mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-25 02:27:50 +01:00
ed2548bb22
* 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: http://svn.automattic.com/wordpress/trunk@19915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
17 lines
421 B
PHP
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; ?>
|