equal
deleted
inserted
replaced
|
1 <?php |
|
2 /** |
|
3 * The Sidebar containing the main widget area. |
|
4 * |
|
5 * @package WordPress |
|
6 * @subpackage Twenty_Eleven |
|
7 * @since Twenty Eleven 1.0 |
|
8 */ |
|
9 |
|
10 $options = twentyeleven_get_theme_options(); |
|
11 $current_layout = $options['theme_layout']; |
|
12 |
|
13 if ( 'content' != $current_layout ) : |
|
14 ?> |
|
15 <div id="secondary" class="widget-area" role="complementary"> |
|
16 <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?> |
|
17 |
|
18 <aside id="archives" class="widget"> |
|
19 <h3 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h3> |
|
20 <ul> |
|
21 <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?> |
|
22 </ul> |
|
23 </aside> |
|
24 |
|
25 <aside id="meta" class="widget"> |
|
26 <h3 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h3> |
|
27 <ul> |
|
28 <?php wp_register(); ?> |
|
29 <li><?php wp_loginout(); ?></li> |
|
30 <?php wp_meta(); ?> |
|
31 </ul> |
|
32 </aside> |
|
33 |
|
34 <?php endif; // end sidebar widget area ?> |
|
35 </div><!-- #secondary .widget-area --> |
|
36 <?php endif; ?> |