[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Template Name: Sidebar Template
   4   *
   5   * Description: A Page Template that adds a sidebar to pages.
   6   *
   7   * @package WordPress
   8   * @subpackage Twenty_Eleven
   9   * @since Twenty Eleven 1.0
  10   */
  11  
  12  get_header(); ?>
  13  
  14          <div id="primary">
  15              <div id="content" role="main">
  16  
  17                  <?php
  18                  while ( have_posts() ) :
  19                      the_post();
  20                      ?>
  21  
  22                      <?php get_template_part( 'content', 'page' ); ?>
  23  
  24                      <?php comments_template( '', true ); ?>
  25  
  26                  <?php endwhile; // end of the loop. ?>
  27  
  28              </div><!-- #content -->
  29          </div><!-- #primary -->
  30  
  31  <?php get_sidebar(); ?>
  32  <?php get_footer(); ?>


Generated: Mon Dec 16 01:00:04 2019 Cross-referenced by PHPXref 0.7.1