forked from crondeau/WP-starter-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
executable file
·48 lines (34 loc) · 1.2 KB
/
single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* The Template for displaying all single posts.
*
* @package blm_basic
*/
get_header(); ?>
<section class="site__main row">
<div class="container">
<main id="primary" class="content block__left">
<?php while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="title__post"><?php the_title(); ?></h1>
<div class="entry__meta">
<?php blm_basic_posted_on(); ?>
</div>
<div class="content__area">
<?php the_content(); ?>
</div>
<nav class="navigation post__nav" role="navigation">
<h2 class="screen-reader-text"><?php _e( 'Post navigation', 'blm_basic' ); ?></h2>
<div class="post__nav--previous"><?php previous_post_link( '%link' ); ?></div>
<div class="post__nav--next"><?php next_post_link( '%link' ); ?></div>
</nav>
</article><!-- #post-## -->
<?php // If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif; endwhile; ?>
</main><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .container -->
</section><!-- .site__main -->
<?php get_footer(); ?>