<div id="sidebar">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
<?php if(is_home()) { ?>
<li>
	<h2><?php _e('&Uuml;ber'); ?></h2>
	<p>
	<img src="<?php bloginfo('stylesheet_directory');?>/images/profile.jpg" alt="Profile" class="profile" />
	<strong><?php bloginfo('name');?></strong><br/><?php bloginfo('description');?>	
	</p>	
</li>
<? } ?>
<li>
	<h2><?php _e('Letzte Beitr&auml;ge'); ?></h2>
	<ul><?php wp_get_archives('type=postbypost&limit=6')?></ul>
</li>
  <?php if (function_exists('wp_tag_cloud')) {	?>
  <li>
    <h2>
      <?php _e('Tags'); ?>
    </h2>
    <p>
      <?php wp_tag_cloud(); ?>
    </p>
  </li>
  <?php } ?>
<li>
	<h2><?php _e('Archiv'); ?></h2>
	<ul><?php wp_get_archives('type=monthly&show_post_count=true'); ?></ul>
</li>

<li>
	<h2><?php _e('Kategorien'); ?></h2>
	<ul>
		<?php 
      if (function_exists('wp_list_categories')) 
        wp_list_categories('title_li=&show_count=1'); 
      else
        wp_list_cats('optioncount=1');    
    ?>
	</ul>		
</li>

<li>
	<h2><?php _e('Seiten'); ?></h2>
	<ul><?php wp_list_pages('title_li=' ); ?></ul>	
</li>
<?php if(is_home()) { terrafirma_ShowLinks(); ?>
  <li>
	<h2><?php _e('RSS Feeds'); ?></h2>
	<ul class="feeds">
		<li>
			<a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Posts Feed'); ?>"><?php _e('Beitr&auml;ge'); ?></a>
		</li>
		<li>
			<a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('Posts Feed'); ?>"><?php _e('Kommentare'); ?></a>
		</li>
	</ul>
</li>
<li>
	<h2><?php _e('Meta'); ?></h2>
	<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><!-- end id:sidebar -->