WordPress 4.6.3
[autoinstalls/wordpress.git] / wp-content / themes / twentyfourteen / single.php
1 <?php
2 /**
3  * The Template for displaying all single posts
4  *
5  * @package WordPress
6  * @subpackage Twenty_Fourteen
7  * @since Twenty Fourteen 1.0
8  */
9
10 get_header(); ?>
11
12         <div id="primary" class="content-area">
13                 <div id="content" class="site-content" role="main">
14                         <?php
15                                 // Start the Loop.
16                                 while ( have_posts() ) : the_post();
17
18                                         /*
19                                          * Include the post format-specific template for the content. If you want to
20                                          * use this in a child theme, then include a file called called content-___.php
21                                          * (where ___ is the post format) and that will be used instead.
22                                          */
23                                         get_template_part( 'content', get_post_format() );
24
25                                         // Previous/next post navigation.
26                                         twentyfourteen_post_nav();
27
28                                         // If comments are open or we have at least one comment, load up the comment template.
29                                         if ( comments_open() || get_comments_number() ) {
30                                                 comments_template();
31                                         }
32                                 endwhile;
33                         ?>
34                 </div><!-- #content -->
35         </div><!-- #primary -->
36
37 <?php
38 get_sidebar( 'content' );
39 get_sidebar();
40 get_footer();