[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwelve/page-templates/ -> full-width.php (source)

   1  <?php
   2  /**
   3   * Template Name: Full-width Page Template, No Sidebar
   4   *
   5   * Description: Twenty Twelve loves the no-sidebar look as much as
   6   * you do. Use this page template to remove the sidebar from any page.
   7   *
   8   * Tip: to remove the sidebar from all posts and pages simply remove
   9   * any active widgets from the Main Sidebar area, and the sidebar will
  10   * disappear everywhere.
  11   *
  12   * @package WordPress
  13   * @subpackage Twenty_Twelve
  14   * @since Twenty Twelve 1.0
  15   */
  16  
  17  get_header(); ?>
  18  
  19      <div id="primary" class="site-content">
  20          <div id="content" role="main">
  21  
  22              <?php
  23              while ( have_posts() ) :
  24                  the_post();
  25                  ?>
  26                  <?php get_template_part( 'content', 'page' ); ?>
  27                  <?php comments_template( '', true ); ?>
  28              <?php endwhile; // End of the loop. ?>
  29  
  30          </div><!-- #content -->
  31      </div><!-- #primary -->
  32  
  33  <?php get_footer(); ?>


Generated : Fri Mar 29 08:20:02 2024 Cross-referenced by PHPXref