<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) { ?>
<li id="calendar">
<?php get_calendar(); ?>
</li>
<li id="search">
Search:
<ul><li>
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div style="text-align:center">
<p><input type="text" name="s" id="s" size="15" /></p>
<p><input type="hidden" name="submit" value="<?php _e('Search'); ?>" /></p>
</div>
</form>
</li></ul>
</li>
<?php wp_list_pages('title_li=Pages' ); ?>
<?php wp_list_categories('show_count=1&title_li=Categories'); ?>
<li>
<?php /* If this is a category archive */ if (is_category()) { ?>
<b><?php _e('Currently Browsing') ?>:</b><br>
<ul><li><?php _e('You are currently browsing the archives for the') ?>
<?php single_cat_title(''); ?>
<?php _e('category.') ?></li></ul>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<b><?php _e('Currently Browsing') ?>:</b><br>
<ul><li><?php _e('You are currently browsing the archives for the day ') ?>
<?php the_time('l, F jS, Y'); ?></li></ul>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<b><?php _e('Currently Browsing') ?>:</b><br>
<ul><li><?php _e('You are currently browsing the archives for the month ') ?>
<?php the_time('F, Y'); ?></li></ul>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<b><?php _e('Currently Browsing') ?>:</b><br>
<ul><li><?php _e('You are currently browsing the archives for the year ') ?>
<?php the_time('Y'); ?></li></ul>
<?php /* If this is paged */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<b><?php _e('Currently Browsing') ?>:</b><br>
<ul><li><?php _e('You are currently browsing the archives of '); ?><a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a></li></ul>
<?php } ?>
</li>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
<?php } ?>