<?php get_header(); ?>

	<div id="content">
				
  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		
			<div class="postwrapper wideposts" id="post-<?php the_ID(); ?>">
			  <div class="title">
				<small><?php the_time('j.m.Y') ?></small>
				<h2><?php the_title(); ?></h2>
			  </div>
			  <div class="post">
			    <div class="entry">
			      <?php the_content(''); ?>
				  <?php wp_link_pages('<p class="pages">Pages: ', '</p>', '', '', '', ''); ?>
		        </div>
			    <div class="postinfo">
			      <p>Geschrieben von: <strong><?php the_author() ?></strong></p>
				  <p>Kategorien:</p>
				  	<ul class="catlist">
                      <li><?php the_category('</li><li>') ?></li>
	                </ul>
			    </div>
			  </div>
			</div>
		
	<?php comments_template(); ?>
	
	<?php endwhile; else: ?>
	
		<div class="title">
		  <h2>Nicht gefunden</h2>
		</div>
		<div class="post">
		<p class="center">Zu der Anfrage wurden keine Ergebnisse gefunden.</p>
		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
	    </div>
<?php endif; ?>
	
	<div class="title">
	  <h2>Kategorien</h2>
	</div>
	<div class="post">
	  <ul class="catlist">
        <?php wp_list_cats('sort_column=name&hide_empty=0'); ?>	
	  </ul>
	</div>
	
  </div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
