[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentyfourteen/ -> 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 and that
   7   * other 'pages' on your WordPress site will use a different template.
   8   *
   9   * @package WordPress
  10   * @subpackage Twenty_Fourteen
  11   * @since Twenty Fourteen 1.0
  12   */
  13  
  14  get_header(); ?>
  15  
  16  <div id="main-content" class="main-content">
  17  
  18  <?php
  19  if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
  20      // Include the featured content template.
  21      get_template_part( 'featured-content' );
  22  }
  23  ?>
  24      <div id="primary" class="content-area">
  25          <div id="content" class="site-content" role="main">
  26  
  27              <?php
  28              // Start the Loop.
  29              while ( have_posts() ) :
  30                  the_post();
  31  
  32                  // Include the page content template.
  33                  get_template_part( 'content', 'page' );
  34  
  35                  // If comments are open or we have at least one comment, load up the comment template.
  36                  if ( comments_open() || get_comments_number() ) {
  37                      comments_template();
  38                  }
  39                  endwhile;
  40              ?>
  41  
  42          </div><!-- #content -->
  43      </div><!-- #primary -->
  44      <?php get_sidebar( 'content' ); ?>
  45  </div><!-- #main-content -->
  46  
  47  <?php
  48  get_sidebar();
  49  get_footer();


Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref