wp/wp-content/themes/twentyfourteen/single.php
changeset 8 c7c34916027a
parent 7 cf61fcea0001
child 9 177826044cd9
equal deleted inserted replaced
7:cf61fcea0001 8:c7c34916027a
     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() ) :
       
    17 				the_post();
       
    18 
       
    19 				/*
       
    20 				 * Include the post format-specific template for the content. If you want to
       
    21 				 * use this in a child theme, then include a file called content-___.php
       
    22 				 * (where ___ is the post format) and that will be used instead.
       
    23 				 */
       
    24 				get_template_part( 'content', get_post_format() );
       
    25 
       
    26 				// Previous/next post navigation.
       
    27 				twentyfourteen_post_nav();
       
    28 
       
    29 				// If comments are open or we have at least one comment, load up the comment template.
       
    30 				if ( comments_open() || get_comments_number() ) {
       
    31 					comments_template();
       
    32 				}
       
    33 				endwhile;
       
    34 			?>
       
    35 		</div><!-- #content -->
       
    36 	</div><!-- #primary -->
       
    37 
       
    38 <?php
       
    39 get_sidebar( 'content' );
       
    40 get_sidebar();
       
    41 get_footer();