The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 06:20:46 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2013-09-20 21:24:09 +02:00
|
|
|
* The sidebar containing the front page widget areas
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 06:20:46 +02:00
|
|
|
*
|
2013-09-20 21:24:09 +02:00
|
|
|
* If no active widgets are in either sidebar, hide them completely.
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 06:20:46 +02:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Twelve
|
|
|
|
* @since Twenty Twelve 1.0
|
|
|
|
*/
|
2012-08-20 20:45:00 +02:00
|
|
|
|
2013-10-09 22:39:09 +02:00
|
|
|
/*
|
2012-09-18 19:28:36 +02:00
|
|
|
* The front page widget area is triggered if any of the areas
|
2012-08-25 18:53:32 +02:00
|
|
|
* have widgets. So let's check that first.
|
|
|
|
*
|
|
|
|
* If none of the sidebars have widgets, then let's bail early.
|
|
|
|
*/
|
2017-12-01 00:11:00 +01:00
|
|
|
if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) {
|
2012-08-20 20:45:00 +02:00
|
|
|
return;
|
2017-12-01 00:11:00 +01:00
|
|
|
}
|
2012-08-20 20:45:00 +02:00
|
|
|
|
|
|
|
// If we get this far, we have widgets. Let do this.
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 06:20:46 +02:00
|
|
|
?>
|
2012-09-24 18:57:42 +02:00
|
|
|
<div id="secondary" class="widget-area" role="complementary">
|
2012-08-28 19:16:18 +02:00
|
|
|
<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
|
2012-09-18 19:28:36 +02:00
|
|
|
<div class="first front-widgets">
|
2012-08-28 19:16:18 +02:00
|
|
|
<?php dynamic_sidebar( 'sidebar-2' ); ?>
|
2012-08-25 19:16:56 +02:00
|
|
|
</div><!-- .first -->
|
2012-08-20 20:45:00 +02:00
|
|
|
<?php endif; ?>
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 06:20:46 +02:00
|
|
|
|
2012-08-28 19:16:18 +02:00
|
|
|
<?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
|
2012-09-18 19:28:36 +02:00
|
|
|
<div class="second front-widgets">
|
2012-08-28 19:16:18 +02:00
|
|
|
<?php dynamic_sidebar( 'sidebar-3' ); ?>
|
2012-08-25 19:16:56 +02:00
|
|
|
</div><!-- .second -->
|
2012-08-20 20:45:00 +02:00
|
|
|
<?php endif; ?>
|
2017-12-01 00:11:00 +01:00
|
|
|
</div><!-- #secondary -->
|