<?php get_header (); ?>
<div id="postit"></div>
<div class="content">
<?php if (have_posts()) { ?>
 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php if (is_category()) { ?>				
	<div id="archivescat">
		<h2 class="archivestitle">Beitr&auml;ge in der Kategorie &#8222;<?php echo single_cat_title(); ?>&#8221;</h2>
	</div>
	<div class="contentpadding">
<?php  } elseif (is_day()) { ?>
	<div id="archivesmonth">
		<h2 class="archivestitle">Eintr&aum;ge am <?php the_time('j. F Y'); ?></h2>
	</div>
	<div class="contentpadding">
<?php  } elseif (is_month()) { ?>
	<div id="archivesmonth">
		<h2 class="archivestitle">Eintr&auml;ge im <?php the_time('F Y'); ?></h2>
	</div>
	<div class="contentpadding">
<?php } ?>
<?php } ?><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="entrytitle"><h3 class="h3heading"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3></div>
		<div class="timestamp"><?php the_time('j. F Y') ?>, um <?php the_time ('H:i'); ?> Uhr</div>
		<div class="postcontent"><?php the_content('weiterlesen &raquo;');Ê?></div>
		<div class="postmeta"><span class="postcoments"><?php comments_popup_link('Kein Kommentar', '1 Kommentar', '% Kommentare','','Kommentare aus'); ?> </span> <span class="postcat"><?php the_category(',');Ê?> </span> <span class="postlink"><a href="<?php the_permalink ();?>">Link</a></span></div>
		<?php endwhile; else: ?>
		<div id="searchhead">
			<h2 class="archivestitle">Nichts gefunden!</h2>
		</div>
		<div class="contentpadding">
	<?php endif; ?>
<?php posts_nav_link('', '<div class="alignleft">&laquo; vorherige Seite</div>', '<div class="alignright">n&auml;chste Seite &raquo;</div>');Ê?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>