<?php get_header(); ?>	
	<div id="content">		
		<!-- Primary content: Stuff that goes in the primary content column (by default, the left column) -->
		<div id="primarycontainer">
			<div id="primarycontent">
				<div id="contentarea"><!-- Primary content area start -->
				<?php if ($posts) {
					foreach($posts as $post)
					{
						the_post();
					?>
					<div class="post" id="post-<?php the_ID(); ?>">
						<h4><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h4>
						<div class="contentarea">
							<p class="details"><span class="user"><?php the_author_posts_link() ?></span> <span class="date"><?php the_time('j. F Y') ?></span></p>	
							<?php the_content('Den ganzen Beitrag lesen &raquo;'); ?>
              <p class="post-tags">
                <?php if (function_exists('the_tags')) the_tags('Tags: ', ', ', '<br/>'); ?>
              </p>
							<ul class="controls">
								<li class="more"><?php the_category(' , ') ?> <?php edit_post_link('Bearbeiten'); ?></li>				
								<li class="comments"><?php comments_number('Keine Kommentare', '1 Kommentar', '% Kommentare'); ?></li>									
							</ul>
						</div>
					</div>		
					<?php comments_template();?>					
					<?php
					} /* end for "for-each" */
				}/* end for "if posts" */
				else
				{
					echo '<p>Es gibt leider keine Beitr&auml;ge, die deinen Kriterien entsprechen.</p>';
				}
				?>
				<p align="center"><?php posts_nav_link(' - ','&#171; Vorherige Eintr&auml;ge','N&auml;chste Eintr&auml;ge &#187;') ?></p>
				
			</div><!-- primarycontent end -->
		</div><!-- primarycontainer end -->
	</div><!--content end -->
<?php get_sidebar(); ?>
<?php get_footer();?>