[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentysixteen/ -> page.php (source)

   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_Sixteen
  11   * @since Twenty Sixteen 1.0
  12   */
  13  
  14  get_header(); ?>
  15  
  16  <div id="primary" class="content-area">
  17      <main id="main" class="site-main">
  18          <?php
  19          // Start the loop.
  20          while ( have_posts() ) :
  21              the_post();
  22  
  23              // Include the page content template.
  24              get_template_part( 'template-parts/content', 'page' );
  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              }
  30  
  31              // End the loop.
  32          endwhile;
  33          ?>
  34  
  35      </main><!-- .site-main -->
  36  
  37      <?php get_sidebar( 'content-bottom' ); ?>
  38  
  39  </div><!-- .content-area -->
  40  
  41  <?php get_sidebar(); ?>
  42  <?php get_footer(); ?>


Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1