[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The template for displaying pages 4 * 5 * This is the template that displays all pages by default. 6 * Please note that this is the WordPress construct of pages and that 7 * other "pages" on your WordPress site will use a different template. 8 * 9 * @package WordPress 10 * @subpackage Twenty_Fifteen 11 * @since Twenty Fifteen 1.0 12 */ 13 14 get_header(); ?> 15 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 // Include the page content template. 25 get_template_part( 'content', 'page' ); 26 27 // If comments are open or we have at least one comment, load up the comment template. 28 if ( comments_open() || get_comments_number() ) : 29 comments_template(); 30 endif; 31 32 // End the loop. 33 endwhile; 34 ?> 35 36 </main><!-- .site-main --> 37 </div><!-- .content-area --> 38 39 <?php 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 |