3 * The Sidebar containing the primary and secondary widget areas.
6 * @subpackage Twenty_Ten
7 * @since Twenty Ten 1.0
11 <div id="primary" class="widget-area" role="complementary">
15 /* When we call the dynamic_sidebar() function, it'll spit out
16 * the widgets for that widget area. If it instead returns false,
17 * then the sidebar simply doesn't exist, so we'll hard-code in
18 * some default sidebar stuff just in case.
20 if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>
22 <li id="search" class="widget-container widget_search">
23 <?php get_search_form(); ?>
26 <li id="archives" class="widget-container">
27 <h3 class="widget-title"><?php _e( 'Archives', 'twentyten' ); ?></h3>
29 <?php wp_get_archives( 'type=monthly' ); ?>
33 <li id="meta" class="widget-container">
34 <h3 class="widget-title"><?php _e( 'Meta', 'twentyten' ); ?></h3>
36 <?php wp_register(); ?>
37 <li><?php wp_loginout(); ?></li>
42 <?php endif; // end primary widget area ?>
44 </div><!-- #primary .widget-area -->
47 // A second sidebar for widgets, just because.
48 if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?>
50 <div id="secondary" class="widget-area" role="complementary">
52 <?php dynamic_sidebar( 'secondary-widget-area' ); ?>
54 </div><!-- #secondary .widget-area -->