| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The template for displaying all single posts 4 * 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post 6 * 7 * @package WordPress 8 * @subpackage Twenty_Seventeen 9 * @since Twenty Seventeen 1.0 10 * @version 1.0 11 */ 12 13 get_header(); ?> 14 15 <div class="wrap"> 16 <div id="primary" class="content-area"> 17 <main id="main" class="site-main"> 18 19 <?php 20 // Start the Loop. 21 while ( have_posts() ) : 22 the_post(); 23 24 get_template_part( 'template-parts/post/content', get_post_format() ); 25 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; 30 31 the_post_navigation( 32 array( 33 'prev_text' => '<span class="screen-reader-text">' . 34 /* translators: Hidden accessibility text. */ 35 __( 'Previous Post', 'twentyseventeen' ) . 36 '</span><span aria-hidden="true" class="nav-subtitle">' . 37 /* translators: Visible label for the link to the previous post. */ 38 __( 'Previous', 'twentyseventeen' ) . 39 '</span> <span class="nav-title"><span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '</span>%title</span>', 40 'next_text' => '<span class="screen-reader-text">' . 41 /* translators: Hidden accessibility text. */ 42 __( 'Next Post', 'twentyseventeen' ) . 43 '</span><span aria-hidden="true" class="nav-subtitle">' . 44 /* translators: Visible label for the link to the next post. */ 45 __( 'Next', 'twentyseventeen' ) . 46 '</span> <span class="nav-title">%title<span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ) . '</span></span>', 47 ) 48 ); 49 50 endwhile; // End the loop. 51 ?> 52 53 </main><!-- #main --> 54 </div><!-- #primary --> 55 <?php get_sidebar(); ?> 56 </div><!-- .wrap --> 57 58 <?php 59 get_footer();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Thu Nov 26 08:20:01 2026 | Cross-referenced by PHPXref |