]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentytwelve/page-templates/full-width.php
Wordpress 3.5
[autoinstalls/wordpress.git] / wp-content / themes / twentytwelve / page-templates / full-width.php
diff --git a/wp-content/themes/twentytwelve/page-templates/full-width.php b/wp-content/themes/twentytwelve/page-templates/full-width.php
new file mode 100644 (file)
index 0000000..b0ce333
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+/**
+ * Template Name: Full-width Page Template, No Sidebar
+ *
+ * Description: Twenty Twelve loves the no-sidebar look as much as
+ * you do. Use this page template to remove the sidebar from any page.
+ *
+ * Tip: to remove the sidebar from all posts and pages simply remove
+ * any active widgets from the Main Sidebar area, and the sidebar will
+ * disappear everywhere.
+ *
+ * @package WordPress
+ * @subpackage Twenty_Twelve
+ * @since Twenty Twelve 1.0
+ */
+
+get_header(); ?>
+
+       <div id="primary" class="site-content">
+               <div id="content" role="main">
+
+                       <?php while ( have_posts() ) : the_post(); ?>
+                               <?php get_template_part( 'content', 'page' ); ?>
+                               <?php comments_template( '', true ); ?>
+                       <?php endwhile; // end of the loop. ?>
+
+               </div><!-- #content -->
+       </div><!-- #primary -->
+
+<?php get_footer(); ?>
\ No newline at end of file