[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The template for displaying all pages
   4   *
   5   * This is the template that displays all pages by default.
   6   * Please note that this is the WordPress construct of pages
   7   * and that other 'pages' on your WordPress site may use a
   8   * different template.
   9   *
  10   * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  11   *
  12   * @package WordPress
  13   * @subpackage Twenty_Seventeen
  14   * @since Twenty Seventeen 1.0
  15   * @version 1.0
  16   */
  17  
  18  get_header(); ?>
  19  
  20  <div class="wrap">
  21      <div id="primary" class="content-area">
  22          <main id="main" class="site-main">
  23  
  24              <?php
  25              while ( have_posts() ) :
  26                  the_post();
  27  
  28                  get_template_part( 'template-parts/page/content', 'page' );
  29  
  30                  // If comments are open or we have at least one comment, load up the comment template.
  31                  if ( comments_open() || get_comments_number() ) :
  32                      comments_template();
  33                  endif;
  34  
  35              endwhile; // End the loop.
  36              ?>
  37  
  38          </main><!-- #main -->
  39      </div><!-- #primary -->
  40  </div><!-- .wrap -->
  41  
  42  <?php
  43  get_footer();


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