Hier mal meine Sidebar.php:
PHP
<div id="sidebar">
<ul>
<li>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</li>
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2>Autor</h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->
<li>
<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>Du durchsuchst derzeit das Archiv der <?php single_cat_title(''); ?> Kategorie.</p>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<p>Du durchsuchst derzeit das <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> Archiv
nach <?php the_time('l,'); ?> den <?php the_time('j. F Y'); ?>.</p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>Du durchsuchst derzeit das <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> Archiv
nach dem Monat <?php the_time('F Y'); ?>.</p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>Du durchsuchst derzeit das <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> Archiv
nach dem Jahr <?php the_time('Y'); ?>.</p>
<?php /* more links to find */ } elseif (is_search()) { ?>
<p>Du hast das <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> Archiv nach
<strong>'<?php echo wp_specialchars($s); ?>'</strong> durchsucht. Wenn du in den Ergebnissen nichts gefunden hast, helfen dir eventuell die folgenden Links.</p>
<?php /* If this is not a specified archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>Du durchsuchst derzeit das <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> Archiv.</p>
<?php } ?>
</li>
<?php wp_list_pages('title_li=<h2>Seiten</h2>' ); ?>
<li><h2>Kategorien</h2>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</ul>
</li>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php get_links_list(); ?>
<li><h2>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://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<li><a href="http://wordpress-deutschland.org/" title="Deutsche WordPress Community">WordPress.de</a></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php } ?>
</ul>
<?php if(function_exists('zc_show_events')) { ?>
<li>
<?php zc_show_events('sidebar'); ?>
</li>
<?php } ?>
<?php echo displayCurrentSong();?>
</div> </p>
<?php if (function_exists('vote_poll')): ?>
<li><h2>Umfragen</h2>
<ul>
<?php get_poll(); ?></li>
<li><a href="<?php echo get_settings('home'); ?>/wp-content/plugins/polls/wp-polls.php">Alte Umfragen</a></li>
</ul>
</li>
<?php endif; ?>
Alles anzeigen