[ Index ] |
PHP Cross Reference of WordPress |
[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">' . __( '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>', 34 '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>', 35 ) 36 ); 37 38 endwhile; // End the loop. 39 ?> 40 41 </main><!-- #main --> 42 </div><!-- #primary --> 43 <?php get_sidebar(); ?> 44 </div><!-- .wrap --> 45 46 <?php 47 get_footer();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Nov 21 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |