<?php if (!empty($news['bottomCat'])) { ?>
	<?php foreach($news['bottomCat'] as $category) { ?>

		<div class="bottom-cat">
			
			<h3><span class="bottom-title"><?php echo get_cat_name($category); ?></span><span class="bottom-title-feed"><a href="<?php echo get_category_feed_link($category); ?>" title="<?php echo get_cat_name($category); ?> RSS Feed"></a></span></h3>
			<div class="clear"></div>

			<?php $display = new WP_query(); $display->query('showposts='.$news['bottomcatnum'].'&cat='.$category); global $wp_query; $wp_query->in_the_loop = true; if ($display->have_posts()) : ?>
			<?php $p = 0; while ($display->have_posts()) : $display->the_post(); $p++ ?>
			
			<div class="bottom-item"<?php if ($p % 3 == 0) { echo ' style="margin: 10px 0 0 0"'; } ?>>
				<div class="equal"><h4><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php dt_posttype() ?><?php dt_title('limit=40'); ?></a></h4></div>
				<div class="storythumb"><?php dt_thumb('width=150&height=100&link=image'); ?></div>
				<?php dt_excerpt('limit=100'); ?><div class="clear"></div>
				<?php if ($news['homegetauth'] == 1) : ?><div class="show_author"><?php printf(__('Published by <strong>%s</strong>','news'), get_the_author()); ?></div><?php endif; ?>
				<div class="reactions"><?php the_time('d.m.Y'); ?> | <?php comments_popup_link(__('0 comments','news'), __('1 comment','news'), __('% comments','news'), '', 'Comments are closed'); ?></div><div class="clear"></div>
			</div>
			
			<?php endwhile; ?>
			<?php endif; ?>
			
			<div class="clear"></div>
			<div class="bottom-cat-link"><a href="<?php echo get_category_link($category); ?>" class="rounded-orange"><?php printf(__('More in %s <span>&raquo;</span>','news'), get_cat_name($category)); ?></a></div>
		
		</div><div class="clear"></div>

	<?php } ?>
<?php } ?>