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: https://develop.svn.wordpress.org/trunk@21261 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-12 06:20:46 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2012-09-18 19:28:36 +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: https://develop.svn.wordpress.org/trunk@21261 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-12 06:20:46 +02:00
|
|
|
*
|
2012-08-20 20:45:00 +02:00
|
|
|
* If no active widgets in either sidebar, they will be hidden 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: https://develop.svn.wordpress.org/trunk@21261 602fd350-edb4-49c9-b593-d223f7449a82
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
|
|
|
|
|
|
|
/*
|
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.
|
|
|
|
*/
|
2012-08-28 19:16:18 +02:00
|
|
|
if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) )
|
2012-08-20 20:45:00 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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: https://develop.svn.wordpress.org/trunk@21261 602fd350-edb4-49c9-b593-d223f7449a82
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: https://develop.svn.wordpress.org/trunk@21261 602fd350-edb4-49c9-b593-d223f7449a82
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; ?>
|
2012-08-25 19:16:56 +02:00
|
|
|
</div><!-- #secondary -->
|