wp/wp-content/themes/twentytwelve/page-templates/full-width.php
changeset 8 c7c34916027a
parent 7 cf61fcea0001
child 9 177826044cd9
equal deleted inserted replaced
7:cf61fcea0001 8:c7c34916027a
     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(); ?>