<?php get_header(); ?>
<!--archive.php-->
<div class="postbox01">
<div class="article">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; ?>
<?php /* bei  404 Seite */ if (is_404()) { ?>
<?php /* wenn es ein Kategorie Archiv ist */ } elseif (is_category()) { ?>

<h2 class="archive"><?php single_cat_title(); ?></h2>
<div class="cerpt"><?php echo category_description(); ?></div>

<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<h2 class="archive"><?php the_time('l, d.m.Y'); ?></h2>

<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="archive"><?php the_time('F  Y'); ?></h2>

<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="archive"><?php the_time('Y'); ?></h2>

<?php /* If this is searcharchive */ } elseif (is_search()) { ?>
<h2 class="archive"><small>Du hast auf <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> nach </small><br /><strong>'<?php echo wp_specialchars($s); ?>'</strong> <br /><small>gesucht.
Versuche es mit einem anderem Suchwort.</small></h2>

<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="archive"><a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a></h2>
<?php } ?>

 <?php while (have_posts()) : the_post(); ?>
<div class="cerpt">
<?php the_excerpt(); ?>
<h3  id="post-<?php the_ID(); ?>" >
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link zu '<?php the_title(); ?>'"><?php the_title(); ?>
 <?php comments_number('','(1)','(%)'); ?> &raquo;&raquo;</a></h3>
</div><!--cerpt end-->
<?php endwhile; ?>

<?php if (function_exists('print_pg_navigation')) { ?>
<? print_pg_navigation('<p class="navigate">','</p>'); ?>
<?php } else { ?>
<p class="navigate01"><?php next_posts_link('&laquo; Vorherige Eintr&auml;ge') ?> ||<?php previous_posts_link('N&auml;chste Eintr&auml;ge &raquo;') ?></p>
<?php } ?>

<?php endif; ?>
</div>
<br class="clear" /></div>
<!--archive.php end-->
<?php get_sidebar(); ?>
<?php include (TEMPLATEPATH . '/sidebartwo.php'); ?>
<?php get_footer(); ?>
