/Web/wp-content/themes/twentyeleven/sidebar.php
PHP | 36 lines | 24 code | 5 blank | 7 comment | 3 complexity | 2fcfa846c29d498d91a216a0752a0489 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
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 13if ( '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; ?>