2010-03-30 00:03:15 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2013-09-25 19:04:10 +02:00
|
|
|
* Sidebar template containing the primary and secondary widget areas
|
2010-03-30 00:03:15 +02:00
|
|
|
*
|
|
|
|
* @package WordPress
|
2010-05-16 19:10:21 +02:00
|
|
|
* @subpackage Twenty_Ten
|
2010-05-17 08:36:11 +02:00
|
|
|
* @since Twenty Ten 1.0
|
2010-03-30 00:03:15 +02:00
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
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-05-17 08:36:11 +02:00
|
|
|
|
|
|
|
<?php
|
2013-09-25 19:04:10 +02:00
|
|
|
/**
|
|
|
|
* When we call the dynamic_sidebar() function, it'll spit out
|
2010-05-17 08:36:11 +02:00
|
|
|
* 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 06:37:47 +01:00
|
|
|
|
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-05-17 08:36:11 +02: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-05-17 08:36:11 +02:00
|
|
|
<?php
|
|
|
|
// A second sidebar for widgets, just because.
|
|
|
|
if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?>
|
|
|
|
|
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-05-17 08:36:11 +02:00
|
|
|
|
2010-03-16 21:17:22 +01:00
|
|
|
<?php endif; ?>
|