Changeset 26556 for trunk/src/wp-content/themes/twentyfourteen/page.php
- Timestamp:
- 12/03/2013 05:05:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/page.php
r26260 r26556 4 4 * 5 5 * This is the template that displays all pages by default. 6 * Please note that this is the WordPress construct of pages and that other 'pages'7 * o n your WordPress site will use a different template.6 * Please note that this is the WordPress construct of pages and that 7 * other 'pages' on your WordPress site will use a different template. 8 8 * 9 9 * @package WordPress … … 17 17 18 18 <?php 19 if ( is_front_page() && twentyfourteen_has_featured_posts() ) { 19 if ( is_front_page() && twentyfourteen_has_featured_posts() ) :\ 20 // Include the featured content template. 20 21 get_template_part( 'featured-content' ); 21 }22 endif; 22 23 ?> 23 24 <div id="primary" class="content-area"> … … 25 26 26 27 <?php 27 while ( have_posts() ) :28 28 // Start the Loop. 29 while ( have_posts() ) : the_post(); 29 30 31 // Include the page content template. 30 32 get_template_part( 'content', 'page' ); 31 33 32 34 // If comments are open or we have at least one comment, load up the comment template. 33 if ( comments_open() || get_comments_number() ) {35 if ( comments_open() || get_comments_number() ) : 34 36 comments_template(); 35 }37 endif; 36 38 endwhile; 37 39 ?>
Note: See TracChangeset
for help on using the changeset viewer.