<?php get_header(); ?>
<?php if (have_posts()) : $count = 0; ?>
<ol id="posts">
<div id="slideshow1" style="height: 460px;">
<?php while (have_posts()) : the_post(); $count++; ?>
<?php if($count <3): ?>
<div style="margin-bottom:0px;" class="fluidContainer <?php the_category_unlinked(''); ?>">
<div class="topicImage">
<img src="<?php echo get_post_meta($post->ID, 'postimageBig', true); ?>">
<div class="imgOverlay transparens">
<div class="preOverlay" id="<?php the_category_unlinked(''); ?>"> </div>
<div style="padding: 8px 0 8px 0">
<a href="<?php the_permalink() ?>" rel="bookmark"><h1><?php the_title(); ?></h1></a>
</div>
</div>
</div>
<div class="subContent frontPage <?php the_category_unlinked(' '); ?>" style:>
<a href="<?php the_permalink() ?>" rel="bookmark"><h1><?php the_title(); ?></h1></a>
<p><?php the_content('Læs mere...'); ?></p>
</div>
</div>
<?php else:
if ($count ===3) { echo '</div>'; }?>
<!-- TOPIC START-->
<div class="topicContainer smallPost" id="<?php the_category_unlinked(''); ?>">
<a href="<?php the_permalink() ?>" rel="bookmark"><h2><?php the_category_unlinked(''); ?>: </h2><h1><?php the_title(); ?></h1></a>
</div>
<!-- TOPIC END-->
<?php endif; ?>
<?php endwhile; ?>
</ol>
<?php else: ?>
<p style="color:#000; font-size: 60px;"><?php _e('Ups, der er slet ingen indlæg. Prøv igen...'); ?></p>
<?php endif; ?>
<?php get_footer(); ?>