<div id="sidebar">

<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar') ) : else : ?>

<h2>Pagina&#39;s</h2>
<ul>
<li><a href="<?php bloginfo('home'); ?>">Home</a></li>
<?php wp_list_pages('sort_column=menu_order&title_li=') ?>
</ul>

<h2>Categorieën</h2>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=1&children=1&hide_empty=1'); ?>
</ul>

<?php get_calendar(1); ?>

<h2>Archief</h2>
<ul>
<?php wp_get_archives('type=monthly&show_post_count=1'); ?>
</ul>

<?php include (TEMPLATEPATH . '/searchform.php'); ?>

<?php endif; ?>

<?php wp_meta(); ?>

</div>