equal
deleted
inserted
replaced
|
1 <?php |
|
2 /** |
|
3 * The sidebar containing the front page widget areas. |
|
4 * |
|
5 * If no active widgets in either sidebar, they will be hidden completely. |
|
6 * |
|
7 * @package WordPress |
|
8 * @subpackage Twenty_Twelve |
|
9 * @since Twenty Twelve 1.0 |
|
10 */ |
|
11 |
|
12 /* |
|
13 * The front page widget area is triggered if any of the areas |
|
14 * have widgets. So let's check that first. |
|
15 * |
|
16 * If none of the sidebars have widgets, then let's bail early. |
|
17 */ |
|
18 if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) |
|
19 return; |
|
20 |
|
21 // If we get this far, we have widgets. Let do this. |
|
22 ?> |
|
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' ); ?> |
|
27 </div><!-- .first --> |
|
28 <?php endif; ?> |
|
29 |
|
30 <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?> |
|
31 <div class="second front-widgets"> |
|
32 <?php dynamic_sidebar( 'sidebar-3' ); ?> |
|
33 </div><!-- .second --> |
|
34 <?php endif; ?> |
|
35 </div><!-- #secondary --> |