diff options
Diffstat (limited to 'dist/loop-templates/content.php')
| -rw-r--r-- | dist/loop-templates/content.php | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dist/loop-templates/content.php b/dist/loop-templates/content.php new file mode 100644 index 0000000..3205ad9 --- /dev/null +++ b/dist/loop-templates/content.php @@ -0,0 +1,59 @@ +<?php +/** + * Post rendering content according to caller of get_template_part. + * + * @package understrap + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} +?> + +<article <?php post_class('article-mb'); ?> id="post-<?php the_ID(); ?>"> + + <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 --> + + <footer class="entry-footer"> + + <div class="row"> + <?php understrap_entry_footer(); ?> + </div> + + </footer><!-- .entry-footer --> + + <?php endif; ?> + + </header><!-- .entry-header --> + + <a href="<?php echo esc_url( get_permalink() );?>"> + <?php echo get_the_post_thumbnail( $post->ID, 'medium' ); ?> + </a> + + <div class="entry-content"> + + <?php + the_excerpt(); + ?> + + <?php + wp_link_pages( array( + 'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ), + 'after' => '</div>', + ) ); + ?> + + </div><!-- .entry-content --> + <div class="clearfix"></div> + + +</article><!-- #post-## --> |
