- Timestamp:
- 12/15/2017 12:13:33 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/single.php
r5942 r6277 10 10 namespace WordPressdotorg\Theme; 11 11 12 get_header( 'page' ); ?> 12 get_header(); 13 ?> 13 14 14 15 <main id="main" class="site-main col-8" role="main"> 15 16 16 17 <?php 17 while ( have_posts() ) :18 the_post();18 while ( have_posts() ) : 19 the_post(); 19 20 20 get_template_part( 'template-parts/content', 'single' );21 get_template_part( 'template-parts/content', 'single' ); 21 22 22 // If comments are open or we have at least one comment, load up the comment template.23 if ( comments_open() || get_comments_number() ) :24 comments_template();25 endif;23 // If comments are open or we have at least one comment, load up the comment template. 24 if ( comments_open() || get_comments_number() ) : 25 comments_template(); 26 endif; 26 27 27 // Previous/next post navigation. 28 the_post_navigation( array( 29 'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'wporg' ) . '</span> ' . 30 '<span class="screen-reader-text">' . __( 'Next post:', 'wporg' ) . '</span> ' . 31 '<span class="post-title">%title</span>', 32 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'wporg' ) . '</span> ' . 33 '<span class="screen-reader-text">' . __( 'Previous post:', 'wporg' ) . '</span> ' . 34 '<span class="post-title">%title</span>', 35 ) ); 28 // Previous/next post navigation. 29 the_post_navigation( [ 30 // phpcs:disable WordPress.WhiteSpace.PrecisionAlignment.Found 31 'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'wporg' ) . '</span> ' . 32 '<span class="screen-reader-text">' . __( 'Next post:', 'wporg' ) . '</span> ' . 33 '<span class="post-title">%title</span>', 34 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'wporg' ) . '</span> ' . 35 '<span class="screen-reader-text">' . __( 'Previous post:', 'wporg' ) . '</span> ' . 36 '<span class="post-title">%title</span>', 37 // phpcs:enable WordPress.WhiteSpace.PrecisionAlignment.Found 38 ] ); 36 39 endwhile; // End of the loop. 37 40 ?>
Note: See TracChangeset
for help on using the changeset viewer.