Adding single-column, no sidebar page template to twentyten. See #9015

git-svn-id: http://svn.automattic.com/wordpress/trunk@13179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
iammattthomas 2010-02-17 19:05:39 +00:00
parent c26e30894e
commit 252bd08b8c
2 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,28 @@
<?php
/*
Template Name: One column, no sidebar
Description: A template with no sidebar
*/
get_header(); ?>
<div id="container" class="onecolumn">
<div id="content">
<?php the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>'); ?>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-content -->
</div><!-- #post-<?php the_ID(); ?> -->
<?php comments_template( '', true ); ?>
</div><!-- #content -->
</div><!-- #container -->
<?php get_footer(); ?>

View File

@ -62,7 +62,7 @@ a img { border: none; }
/* /*
LAYOUT: Two-Column (Right) LAYOUT: Two columns
DESCRIPTION: Two-column fixed layout with one sidebar right of content DESCRIPTION: Two-column fixed layout with one sidebar right of content
*/ */
@ -88,6 +88,16 @@ DESCRIPTION: Two-column fixed layout with one sidebar right of content
width: 100%; width: 100%;
} }
/*
LAYOUT: One column, no sidebar
DESCRIPTION: One centered column with no sidebar
*/
.onecolumn #content {
margin: 0 auto;
width: 640px;
}
/* =Fonts /* =Fonts