<?php get_header(); ?>	
	<div id="content">
		<?php if (!is_paged()) include_once(TEMPLATEPATH.'/intro.php'); ?>
		<!-- 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) {
					if (get_settings('fallseason_asideid') != "")
					  $AsideId = get_settings('fallseason_asideid');
					function stupid_hack($str)
					{
						return preg_replace('|</ul>\s*<ul class="asides">|', '', $str);
					}
					ob_start('stupid_hack');
					foreach($posts as $post)
					{
						the_post();
					?>
					<?php if ( in_category($AsideId) && !is_single() ) : ?>
						<ul class="asides">
							<li id="p<?php the_ID(); ?>">
								<?php echo wptexturize($post->post_content); ?>							
								<br/>
								<?php comments_popup_link('(0)', '(1)','(%)')?>  | <a href="<?php the_permalink(); ?>" title="Permalink: <?php echo wptexturize(strip_tags(stripslashes($post->post_title), '')); ?>" rel="bookmark">#</a> <?php edit_post_link('Bearbeiten'); ?>
							</li>						
						</ul>
						<?php else: // If it's a regular post or a permalink page ?>
						<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> <?php edit_post_link('Bearbeiten'); ?></p>	
								<?php the_content('Den ganzen Beitrag lesen &raquo;'); ?>
								<?php wp_link_pages(); ?>
                <p class="post-tags">
                  <?php if (function_exists('the_tags')) the_tags('Tags: ', ', ', '<br/>'); ?>
                </p>
								<ul class="controls">
									<li class="more"><?php the_category(' , ') ?></li>				
									<li class="comments"><?php comments_popup_link('Keine Kommentare', '1 Kommentar', '% Kommentare'); ?></li>									
								</ul>
							</div>
						</div>													
						<?php endif; // end if in category ?>
					<?php
					}
				}
				else
				{
					echo '<p>Keine Beitr&auml;ge entsprechen Deinen Kriterien.</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();?>