2010-03-29 18:03:15 -04:00
|
|
|
<?php
|
|
|
|
/**
|
2010-05-17 02:32:03 -04:00
|
|
|
* The Sidebar containing the primary and secondary widget areas.
|
2010-03-29 18:03:15 -04:00
|
|
|
*
|
|
|
|
* @package WordPress
|
2010-05-16 13:10:21 -04:00
|
|
|
* @subpackage Twenty_Ten
|
2010-05-17 02:36:11 -04:00
|
|
|
* @since Twenty Ten 1.0
|
2010-03-29 18:03:15 -04:00
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
2010-05-10 17:10:12 -04:00
|
|
|
<div id="primary" class="widget-area" role="complementary">
|
2010-02-07 11:16:26 -05:00
|
|
|
<ul class="xoxo">
|
2010-05-17 02:36:11 -04:00
|
|
|
|
|
|
|
<?php
|
|
|
|
/* When we call the dynamic_sidebar() function, it'll spit out
|
|
|
|
* the widgets for that widget area. If it instead returns false,
|
|
|
|
* then the sidebar simply doesn't exist, so we'll hard-code in
|
|
|
|
* some default sidebar stuff just in case.
|
|
|
|
*/
|
|
|
|
if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>
|
2010-11-19 00:37:47 -05:00
|
|
|
|
2010-02-07 11:16:26 -05:00
|
|
|
<li id="search" class="widget-container widget_search">
|
|
|
|
<?php get_search_form(); ?>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li id="archives" class="widget-container">
|
2010-02-13 20:00:22 -05:00
|
|
|
<h3 class="widget-title"><?php _e( 'Archives', 'twentyten' ); ?></h3>
|
2010-02-07 11:16:26 -05:00
|
|
|
<ul>
|
2010-02-13 20:00:22 -05:00
|
|
|
<?php wp_get_archives( 'type=monthly' ); ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
</ul>
|
|
|
|
</li>
|
2010-02-08 13:02:23 -05:00
|
|
|
|
2010-02-07 11:16:26 -05:00
|
|
|
<li id="meta" class="widget-container">
|
2010-02-13 20:00:22 -05:00
|
|
|
<h3 class="widget-title"><?php _e( 'Meta', 'twentyten' ); ?></h3>
|
2010-02-07 11:16:26 -05:00
|
|
|
<ul>
|
2010-02-13 20:00:22 -05:00
|
|
|
<?php wp_register(); ?>
|
|
|
|
<li><?php wp_loginout(); ?></li>
|
|
|
|
<?php wp_meta(); ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
</ul>
|
2010-02-08 13:02:23 -05:00
|
|
|
</li>
|
2010-05-17 02:36:11 -04:00
|
|
|
|
|
|
|
<?php endif; // end primary widget area ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
</ul>
|
|
|
|
</div><!-- #primary .widget-area -->
|
2010-02-08 13:02:23 -05:00
|
|
|
|
2010-05-17 02:36:11 -04:00
|
|
|
<?php
|
|
|
|
// A second sidebar for widgets, just because.
|
|
|
|
if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?>
|
|
|
|
|
2010-05-10 17:10:12 -04:00
|
|
|
<div id="secondary" class="widget-area" role="complementary">
|
2010-02-07 11:16:26 -05:00
|
|
|
<ul class="xoxo">
|
2010-02-13 20:00:22 -05:00
|
|
|
<?php dynamic_sidebar( 'secondary-widget-area' ); ?>
|
2010-02-07 11:16:26 -05:00
|
|
|
</ul>
|
|
|
|
</div><!-- #secondary .widget-area -->
|
2010-05-17 02:36:11 -04:00
|
|
|
|
2010-03-16 16:17:22 -04:00
|
|
|
<?php endif; ?>
|