Changeset 30394 for trunk/src/wp-content/themes/twentyfifteen/page.php
- Timestamp:
- 11/19/2014 08:27:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/page.php
r30233 r30394 1 1 <?php 2 2 /** 3 * The template for displaying pages .3 * The template for displaying pages 4 4 * 5 5 * This is the template that displays all pages by default. … … 17 17 <main id="main" class="site-main" role="main"> 18 18 19 <?php while ( have_posts() ) : the_post(); ?> 19 <?php 20 // Start the loop. 21 while ( have_posts() ) : the_post(); 20 22 21 <?php get_template_part( 'content', 'page' ); ?> 23 // Include the page content template. 24 get_template_part( 'content', 'page' ); 22 25 23 <?php 24 // If comments are open or we have at least one comment, load up the comment template 25 if ( comments_open() || get_comments_number() ) : 26 comments_template(); 27 endif; 28 ?> 26 // If comments are open or we have at least one comment, load up the comment template. 27 if ( comments_open() || get_comments_number() ) : 28 comments_template(); 29 endif; 29 30 30 <?php endwhile; // end of the loop. ?> 31 // End the loop. 32 endwhile; 33 ?> 31 34 32 35 </main><!-- .site-main -->
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)