[ 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 /* translators: Hidden accessibility text. */ 34 'prev_text' => '<span class="screen-reader-text">' . __( 'Previous Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Previous', 'twentyseventeen' ) . '</span> <span class="nav-title"><span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '</span>%title</span>', 35 /* translators: Hidden accessibility text. */ 36 'next_text' => '<span class="screen-reader-text">' . __( 'Next Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Next', 'twentyseventeen' ) . '</span> <span class="nav-title">%title<span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ) . '</span></span>', 37 ) 38 ); 39 40 endwhile; // End the loop. 41 ?> 42 43 </main><!-- #main --> 44 </div><!-- #primary --> 45 <?php get_sidebar(); ?> 46 </div><!-- .wrap --> 47 48 <?php 49 get_footer();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Sun Dec 22 08:20:01 2024 | Cross-referenced by PHPXref |