Changeset 30394 for trunk/src/wp-content/themes/twentyfifteen/single.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/single.php
r30316 r30394 1 1 <?php 2 2 /** 3 * The template for displaying all single posts and attachments .3 * The template for displaying all single posts and attachments 4 4 * 5 5 * @package WordPress … … 13 13 <main id="main" class="site-main" role="main"> 14 14 15 <?php while ( have_posts() ) : the_post(); ?> 15 <?php 16 // Start the loop. 17 while ( have_posts() ) : the_post(); 16 18 17 <?php get_template_part( 'content', get_post_format() ); ?> 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 called content-___.php 22 * (where ___ is the post format) and that will be used instead. 23 */ 24 get_template_part( 'content', get_post_format() ); 18 25 19 <?php 20 // If comments are open or we have at least one comment, load up the comment template 21 if ( comments_open() || get_comments_number() ) : 22 comments_template(); 23 endif; 24 ?> 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; 25 30 26 <?php 27 the_post_navigation( array( 28 'next_text' => _x( '<span class="meta-nav">Next <span class="screen-reader-text">post:</span></span><span class="post-title">%title</span>', 'Next post link', 'twentyfifteen' ), 29 'prev_text' => _x( '<span class="meta-nav">Previous <span class="screen-reader-text">post:</span></span><span class="post-title">%title</span>', 'Previous post link', 'twentyfifteen' ) 30 ) ); 31 ?> 31 // Previous/next post navigation. 32 the_post_navigation( array( 33 'next_text' => _x( '<span class="meta-nav">Next <span class="screen-reader-text">post:</span></span><span class="post-title">%title</span>', 'Next post link', 'twentyfifteen' ), 34 'prev_text' => _x( '<span class="meta-nav">Previous <span class="screen-reader-text">post:</span></span><span class="post-title">%title</span>', 'Previous post link', 'twentyfifteen' ) 35 ) ); 32 36 33 <?php endwhile; // end of the loop. ?> 37 // End the loop. 38 endwhile; 39 ?> 34 40 35 41 </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)