<div id="r_sidebar" class="sidebar"><?php$children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');if ($children) { ?><ul><li><h2>Pages Below Current</h2><ul><?php echo $children; ?></ul></li></ul><?php } ?><ul><!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. <li><h2>Author</h2> <p>A little something about you, the author. Nothing lengthy, just an overview.</p> </li> --> <?php /* If this is a 404 page */ if (is_404()) { ?> <?php /* If this is a category archive */ } elseif (is_category()) { ?> <li><p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p></li> <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> <li><p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives for the day <?php the_time('l, F jS, Y'); ?>.</p></li> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <li><p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives for <?php the_time('F, Y'); ?>.</p></li> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <li><p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives for the year <?php the_time('Y'); ?>.</p></li> <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> <li><p>You have searched the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p></li> <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <li><p>You are currently browsing the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p></li> <?php } ?><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?><li id="rss"><img src="<?php bloginfo('template_directory'); ?>/images/side_syndicate.jpg" alt="Syndicate" border="0" /><ul><li><a href="<?php bloginfo('rss2_url'); ?>">RSS 2.0</a></li><?php /* If this is the frontpage */ if (is_home() ) { ?><li><a href="<?php bloginfo('comments_rss2_url'); ?>">RSS 2.0 (Comments)</a></li><?php }?></ul></li> <!-- <li><img src="<?php bloginfo('template_directory'); ?>/images/side_navigation.jpg" alt="Navigation" border="0" /> <ul><li><a href="<?php bloginfo('url'); ?>" title="Home">Blog</a></li><?php wp_list_pages('title_li='); ?> </ul></li> --> <li><img src="<?php bloginfo('template_directory'); ?>/images/side_categories.jpg" alt="Categories" border="0" /> <form action="<?php bloginfo('url'); ?>" method="get"> <?php wp_dropdown_categories('show_count=1&hierarchical=1&orderby=name'); ?> <input type="submit" name="submit" value="Go" id="catsubmit" style="margin-bottom:7px;"/> </form> <!--<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0&optioncount=1'); ?> --></li><!--<li><img src="<?php bloginfo('template_directory'); ?>/images/side_archives.jpg" alt="Archives" border="0" /> <ul> <?php wp_get_archives('type=monthly'); ?> </ul></li>--><?php /* If this is the frontpage */ if ( is_home() ) { ?><?php if (function_exists('get_recent_comments')) { ?><li><img src="<?php bloginfo('template_directory'); ?>/images/side_comments.jpg" alt="Comments" border="0" /></li><?php if (function_exists('get_recent_comments')) { ?> <li><h2><?php _e('Recent Comments:'); ?></h2> <ul><?php get_recent_comments(); ?></ul> </li><?php } ?><?php if (function_exists('get_recent_trackbacks')) { ?> <li><h2><?php _e('Recent Trackbacks:'); ?></h2> <ul><?php get_recent_trackbacks(); ?></ul> </li></ul><ul><?php } ?><?php } ?><li><img src="<?php bloginfo('template_directory'); ?>/images/side_recent.jpg" alt="Recent" border="0" /><?php$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;$paged = $paged + 1;query_posts("paged=$paged");?><ul> <?php while (have_posts()) : the_post(); ?><li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li> <?php endwhile;?></ul></li><?php endif; ?> </ul></div>