3 * The sidebar containing the front page widget areas.
5 * If no active widgets in either sidebar, they will be hidden completely.
8 * @subpackage Twenty_Twelve
9 * @since Twenty Twelve 1.0
13 * The front page widget area is triggered if any of the areas
14 * have widgets. So let's check that first.
16 * If none of the sidebars have widgets, then let's bail early.
18 if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) )
21 // If we get this far, we have widgets. Let do this.
23 <div id="secondary" class="widget-area" role="complementary">
24 <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
25 <div class="first front-widgets">
26 <?php dynamic_sidebar( 'sidebar-2' ); ?>
30 <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
31 <div class="second front-widgets">
32 <?php dynamic_sidebar( 'sidebar-3' ); ?>
33 </div><!-- .second -->
35 </div><!-- #secondary -->