diff options
Diffstat (limited to 'dist/loop-templates/content-single.php')
| -rw-r--r-- | dist/loop-templates/content-single.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dist/loop-templates/content-single.php b/dist/loop-templates/content-single.php new file mode 100644 index 0000000..76c6bbd --- /dev/null +++ b/dist/loop-templates/content-single.php @@ -0,0 +1,51 @@ +<?php +/** + * Single post partial template. + * + * @package understrap + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} +?> + +<article <?php post_class(array('')); ?> id="post-<?php the_ID(); ?>"> + + <header class="entry-header"> + + <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> + + <?php echo get_the_post_thumbnail( $post->ID, 'large', array( 'class' => 'mx-auto d-block border rounded' ) ); ?> + + <div class="entry-meta entry-meta-single text-muted"> + + <?php understrap_posted_on(); ?> + + </div><!-- .entry-meta --> + <footer class="entry-footer"> + + <div class="row"> + <?php understrap_entry_footer(); ?> + </div> + + </footer><!-- .entry-footer --> + + </header><!-- .entry-header --> +<hr> + + <div class="entry-content"> + + <?php the_content(); ?> + + <?php + wp_link_pages( array( + 'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ), + 'after' => '</div>', + ) ); + ?> + + </div><!-- .entry-content --> + + +</article><!-- #post-## --> |
