<!-- sidebar: Stuff that goes in the sidebar column (by default, the narrower right column) -->
<div id="sidebar">
<ul>
<?php if(is_home()) { ?>
<li class="box">
	<h4>&Uuml;ber</h4>
		<img src="<?php bloginfo('stylesheet_directory');?>/images/profile.jpg" alt="Profile" class="profile" />
		<p><strong><?php bloginfo('name');?></strong><br/><?php bloginfo('description');?>.<br/>
			Es gibt bisher <?php global $numposts; echo $numposts; ?> Eintr&auml;ge und <?php global $numcmnts; echo $numcmnts;?> Kommentare.
		</p>		
</li>
<?php } ?>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
<li class="box">
	<h4><?php _e('Archiv'); ?></h4>
	<ul><?php wp_get_archives('type=monthly&show_post_count=true'); ?></ul>
</li>

<li class="box">
	<h4><?php _e('Kategorien'); ?></h4>
	<ul>
		<?php wp_list_cats('optioncount=1');    ?>
	</ul>		
</li>
  <?php if (function_exists('wp_tag_cloud')) {	?>
  <li class="box">
    <h4><?php _e('Tags'); ?></h4>
    <p>
      <?php wp_tag_cloud(); ?>
    </p>
  </li>
  <?php } ?> 

<li class="box">
	<h4><?php _e('Seiten'); ?></h4>
	<ul><?php wp_list_pages('title_li=' ); ?></ul>	
</li>
<?php if(is_home()) { ?>
<li class="box">
	<h4><?php _e('Links'); ?></h4>
	<ul><?php get_links_list('name'); ?> </ul>		
</li>
<li class="box">
	<h4>RSS Feed</h4>
	<ul class="feeds">
		<li>
			<a href="<?php bloginfo('rss2_url'); ?>" title="RSS Feed for Posts">Beitr&auml;ge</a>
		</li>
		<li>
			<a href="<?php bloginfo('comments_rss2_url'); ?>" title="RSS Feed for Comments">Kommentare</a>
		</li>
	</ul>
</li>
<li class="box">
	<h4><?php _e('Meta'); ?></h4>
	<ul>
		<?php wp_register(); ?>
		<li><?php wp_loginout(); ?></li>
		<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
		<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
		<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
		<?php wp_meta(); ?>
	</ul>	
</li>
<?php }?>
  <?php endif; ?>
</ul>	
</div><!-- sidebar area end -->