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

git-svn-id: https://develop.svn.wordpress.org/trunk@13179 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Thomas 2010-02-17 19:05:39 +00:00
parent b67384850d
commit ae57a8a0a9
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