Wordpress/wp-content/themes/twentytwelve/sidebar.php
Lance Willett a6951d77f3 Twenty Twelve template changes and fixes ... see #19978.
* Add custom header support
 * header.php: use `get_stylesheet_uri()` to load stylesheet, props Mamaduka
 * Add full-width template, including adding relevant body_class value as a CSS hook
 * Hide sidebar on all views if no active widgets exist
 * Fix site title output (was missing site title)
 * Remove "featured" title for sticky posts
 * Add content template files for aside, image, link, and quote post formats
 * Indent content-single.php to match content.php
 * Remove sample JPG since Twenty Twelve ships with no default header images

... and style updates, props drewstrojny

 * Better footer styles
 * Styling for full-width layouts
 * Add basic styles for archive views
 * Refine post header/footer styles a bit


git-svn-id: https://develop.svn.wordpress.org/trunk@19915 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-14 03:54:46 +00:00

17 lines
421 B
PHP

<?php
/**
* The Sidebar containing the main widget area.
*
* If no active widgets in sidebar, hide it completely.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<div id="secondary" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</div><!-- #secondary .widget-area -->
<?php endif; ?>