2010-03-30 00:03:15 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The Sidebar containing the primary and secondary widget areas
|
|
|
|
*
|
|
|
|
* @package WordPress
|
2010-05-16 19:10:21 +02:00
|
|
|
* @subpackage Twenty_Ten
|
2010-03-30 00:03:15 +02:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
2010-05-10 23:10:12 +02:00
|
|
|
<div id="primary" class="widget-area" role="complementary">
|
2010-02-07 17:16:26 +01:00
|
|
|
<ul class="xoxo">
|
2010-03-16 21:17:22 +01:00
|
|
|
<?php if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : // begin primary widget area ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
<li id="search" class="widget-container widget_search">
|
|
|
|
<?php get_search_form(); ?>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li id="archives" class="widget-container">
|
2010-02-14 02:00:22 +01:00
|
|
|
<h3 class="widget-title"><?php _e( 'Archives', 'twentyten' ); ?></h3>
|
2010-02-07 17:16:26 +01:00
|
|
|
<ul>
|
2010-02-14 02:00:22 +01:00
|
|
|
<?php wp_get_archives( 'type=monthly' ); ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
2010-02-08 19:02:23 +01:00
|
|
|
|
2010-02-07 17:16:26 +01:00
|
|
|
<li id="meta" class="widget-container">
|
2010-02-14 02:00:22 +01:00
|
|
|
<h3 class="widget-title"><?php _e( 'Meta', 'twentyten' ); ?></h3>
|
2010-02-07 17:16:26 +01:00
|
|
|
<ul>
|
2010-02-14 02:00:22 +01:00
|
|
|
<?php wp_register(); ?>
|
|
|
|
<li><?php wp_loginout(); ?></li>
|
|
|
|
<?php wp_meta(); ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
</ul>
|
2010-02-08 19:02:23 +01:00
|
|
|
</li>
|
2010-02-14 02:00:22 +01:00
|
|
|
<?php endif; // end primary widget area ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
</ul>
|
|
|
|
</div><!-- #primary .widget-area -->
|
2010-02-08 19:02:23 +01:00
|
|
|
|
2010-03-16 21:17:22 +01:00
|
|
|
<?php if ( is_active_sidebar( 'secondary-widget-area' ) ) : // Nothing here by default and design ?>
|
2010-05-10 23:10:12 +02:00
|
|
|
<div id="secondary" class="widget-area" role="complementary">
|
2010-02-07 17:16:26 +01:00
|
|
|
<ul class="xoxo">
|
2010-02-14 02:00:22 +01:00
|
|
|
<?php dynamic_sidebar( 'secondary-widget-area' ); ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
</ul>
|
|
|
|
</div><!-- #secondary .widget-area -->
|
2010-03-16 21:17:22 +01:00
|
|
|
<?php endif; ?>
|