mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-29 23:09:44 +01:00
ac33e2df00
* Add explanatory comments in all templates, following Twenty Ten's example * Stick with twentyeleven_ for prefixing filter names * Use post format content templates in search results * First pass at adding a template for adding a sidebar to pages * Add a featured post header to standard sticky posts * Style fixes: print media, comment styles for pages with sidebars, color of meta links on image post format git-svn-id: http://svn.automattic.com/wordpress/trunk@17802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
26 lines
492 B
PHP
26 lines
492 B
PHP
<?php
|
|
/**
|
|
* Template Name: Sidebar Template
|
|
* Description: A Page Template that adds a sidebar to pages
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty Eleven
|
|
* @since Twenty Eleven 1.0
|
|
*/
|
|
|
|
get_header(); ?>
|
|
|
|
<div id="primary">
|
|
<div id="content" role="main">
|
|
|
|
<?php the_post(); ?>
|
|
|
|
<?php get_template_part( 'content', 'page' ); ?>
|
|
|
|
<?php comments_template( '', true ); ?>
|
|
|
|
</div><!-- #content -->
|
|
</div><!-- #primary -->
|
|
|
|
<?php get_sidebar(); ?>
|
|
<?php get_footer(); ?>
|