diff options
| author | Max | 2017-05-18 14:03:27 +0200 |
|---|---|---|
| committer | Max | 2017-05-18 14:03:27 +0200 |
| commit | f597e2fe949a1e18eb778b9a5bd102de88570555 (patch) | |
| tree | 7e42e6f91dd3e764cd2cf0c4f61f48501c2ed98f /loop-templates | |
| download | docs.maxmail.xyz-f597e2fe949a1e18eb778b9a5bd102de88570555.tar.gz | |
Diffstat (limited to 'loop-templates')
| -rw-r--r-- | loop-templates/content-jumbo.php | 32 | ||||
| -rw-r--r-- | loop-templates/content-none.php | 41 | ||||
| -rw-r--r-- | loop-templates/content-page.php | 39 | ||||
| -rw-r--r-- | loop-templates/content-search.php | 37 | ||||
| -rw-r--r-- | loop-templates/content-single.php | 42 | ||||
| -rw-r--r-- | loop-templates/content.php | 46 |
6 files changed, 237 insertions, 0 deletions
diff --git a/loop-templates/content-jumbo.php b/loop-templates/content-jumbo.php new file mode 100644 index 0000000..e2ec8a5 --- /dev/null +++ b/loop-templates/content-jumbo.php @@ -0,0 +1,32 @@ +<?php +/** + * The template used for displaying page content in page.php + * + * @package understrap + */ +?> + +<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> + + <?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?> + + <div class="entry-content"> + + <?php the_content(); ?> + + <?php + wp_link_pages( array( + 'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ), + 'after' => '</div>', + ) ); + ?> + + </div><!-- .entry-content --> + + <footer class="entry-footer"> + + <?php edit_post_link( __( 'Edit', 'understrap' ), '<span class="edit-link">', '</span>' ); ?> + + </footer><!-- .entry-footer --> + +</article><!-- #post-## --> diff --git a/loop-templates/content-none.php b/loop-templates/content-none.php new file mode 100644 index 0000000..38429da --- /dev/null +++ b/loop-templates/content-none.php @@ -0,0 +1,41 @@ +<?php +/** + * The template part for displaying a message that posts cannot be found. + * + * Learn more: http://codex.wordpress.org/Template_Hierarchy + * + * @package understrap + */ + +?> + +<article id="post-0" class="post no-results not-found"> + + <header class="page-header"> + + <h2 class="page-title"><?php _e( 'Nothing Found', 'understrap' ); ?></h2> + + </header><!-- .page-header --> + + <div class="page-content"> + + <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> + + <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'understrap' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p> + + <?php elseif ( is_search() ) : ?> + + <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'understrap' ); ?></p> + <?php get_search_form(); ?> + + <?php else : ?> + + <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'understrap' ); ?></p> + + <?php get_search_form(); ?> + + <?php endif; ?> + + </div><!-- .page-content --> + +</article><!-- .no-results --> diff --git a/loop-templates/content-page.php b/loop-templates/content-page.php new file mode 100644 index 0000000..133c48a --- /dev/null +++ b/loop-templates/content-page.php @@ -0,0 +1,39 @@ +<?php +/** + * The template used for displaying page content in page.php + * + * @package understrap + */ +?> + +<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> + + <header class="entry-header"> + + <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> + <hr class="colored"> + + </header><!-- .entry-header --> + + <?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?> + + <div class="entry-content"> + + <?php the_content(); ?> + + <?php + wp_link_pages( array( + 'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ), + 'after' => '</div>', + ) ); + ?> + + </div><!-- .entry-content --> + + <footer class="entry-footer"> + + <?php edit_post_link( __( 'Edit', 'understrap' ), '<span class="edit-link">', '</span>' ); ?> + + </footer><!-- .entry-footer --> + +</article><!-- #post-## --> diff --git a/loop-templates/content-search.php b/loop-templates/content-search.php new file mode 100644 index 0000000..871b96f --- /dev/null +++ b/loop-templates/content-search.php @@ -0,0 +1,37 @@ +<?php +/** + * @package understrap + */ +?> + +<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> + + <header class="entry-header"> + + <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> + + <?php if ( 'post' == get_post_type() ) : ?> + + <div class="entry-meta"> + + <?php understrap_posted_on(); ?> + + </div><!-- .entry-meta --> + + <?php endif; ?> + + </header><!-- .entry-header --> + + <div class="entry-summary"> + + <?php the_excerpt(); ?> + + </div><!-- .entry-summary --> + + <footer class="entry-footer"> + + <?php understrap_entry_footer(); ?> + + </footer><!-- .entry-footer --> + +</article><!-- #post-## --> diff --git a/loop-templates/content-single.php b/loop-templates/content-single.php new file mode 100644 index 0000000..988f665 --- /dev/null +++ b/loop-templates/content-single.php @@ -0,0 +1,42 @@ +<?php +/** + * @package understrap + */ +?> + +<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> + + <header class="entry-header"> + + <?php the_title( '<h2 class="entry-title">', '</h2>' ); ?> + + <div class="entry-meta"> + + <?php understrap_posted_on(); ?> + + </div><!-- .entry-meta --> + + </header><!-- .entry-header --> + + <?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?> + + <div class="entry-content"> + + <?php the_content(); ?> + + <?php + wp_link_pages( array( + 'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ), + 'after' => '</div>', + ) ); + ?> + + </div><!-- .entry-content --> + + <footer class="entry-footer"> + + <?php understrap_entry_footer(); ?> + + </footer><!-- .entry-footer --> + +</article><!-- #post-## --> diff --git a/loop-templates/content.php b/loop-templates/content.php new file mode 100644 index 0000000..f45242f --- /dev/null +++ b/loop-templates/content.php @@ -0,0 +1,46 @@ +<?php +/** + * @package understrap + */ +?> + +<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> + + <header class="entry-header"> + + <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> + + <?php if ( 'post' == get_post_type() ) : ?> + + <div class="entry-meta"> + <?php understrap_posted_on(); ?> + </div><!-- .entry-meta --> + + <?php endif; ?> + + </header><!-- .entry-header --> + + <?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?> + + <div class="entry-content"> + + <?php + the_excerpt(); + ?> + + <?php + wp_link_pages( array( + 'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ), + 'after' => '</div>', + ) ); + ?> + + </div><!-- .entry-content --> + + <footer class="entry-footer"> + + <?php understrap_entry_footer(); ?> + + </footer><!-- .entry-footer --> + +</article><!-- #post-## -->
\ No newline at end of file |
