Make WordPress Core


Ignore:
Timestamp:
08/14/2013 04:38:01 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: first pass at matching code standards achieved with Twenty Thirteen development. See #24858, props obenland.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/single.php

    r24832 r25021  
    1111<div id="primary" class="content-area">
    1212    <div id="content" class="site-content" role="main">
     13        <?php
     14            while ( have_posts() ) :
     15                the_post();
    1316
    14     <?php while ( have_posts() ) : the_post(); ?>
     17                get_template_part( 'content', 'single' );
    1518
    16         <?php get_template_part( 'content', 'single' ); ?>
     19                twentyfourteen_content_nav( 'nav-below' );
    1720
    18         <?php twentyfourteen_content_nav( 'nav-below' ); ?>
     21                // If comments are open or we have at least one comment, load up the comment template.
     22                if ( comments_open() || get_comments_number() )
     23                    comments_template();
     24            endwhile;
     25        ?>
     26    </div><!-- #content -->
     27</div><!-- #primary -->
    1928
    20         <?php
    21             // If comments are open or we have at least one comment, load up the comment template
    22             if ( comments_open() || '0' != get_comments_number() )
    23                 comments_template( '', true );
    24         ?>
    25 
    26     <?php endwhile; // end of the loop. ?>
    27 
    28     </div><!-- #content .site-content -->
    29 </div><!-- #primary .content-area -->
    30 
    31 <?php get_sidebar( 'content' ); ?>
    32 
    33 <?php get_sidebar(); ?>
    34 
    35 <?php get_footer(); ?>
     29<?php
     30get_sidebar( 'content' );
     31get_sidebar();
     32get_footer();
Note: See TracChangeset for help on using the changeset viewer.