<?php /* ----------------------------------------------------
Two Column Mini Slideshow Loop
------------------------------------------------------- */ ?>
<?php if( $data['home2cols_slide_display'] ) { ?>
<?php $home2cols_slide_col1_cat = ''; ?>
<?php $home2cols_slide_col2_cat = ''; ?>
<?php $home2cols_slide_col1_limit = ''; ?>
<?php $home2cols_slide_col2_limit = ''; ?>
<?php if( $data['home2cols_slide_col1_cat'] ) {
$home2cols_slide_col1_cat = '&cat=' . $data['home2cols_slide_col1_cat'];
$thecat = get_category($data['home2cols_slide_col1_cat']);
$category_name2 = $thecat->name;
} else {
$category_name2 = __('All','qns');
} ?>
<?php if( $data['home2cols_slide_col2_cat'] ) {
$home2cols_slide_col2_cat = '&cat=' . $data['home2cols_slide_col2_cat'];
$thecat = get_category($data['home2cols_slide_col2_cat']);
$category_name3 = $thecat->name;
} else {
$category_name3 = __('All','qns');
} ?>
<?php if( $data['home2cols_slide_col1_limit'] ) { $home2cols_slide_col1_limit = '&posts_per_page=' . $data['home2cols_slide_col1_limit']; } ?>
<?php if( $data['home2cols_slide_col2_limit'] ) { $home2cols_slide_col2_limit = '&posts_per_page=' . $data['home2cols_slide_col2_limit']; } ?>
<!-- BEGIN .shop-block-columns-2 -->
<ul class="shop-block-columns-2 clearfix">
<!-- BEGIN .shop-block-col-2 -->
<li class="shop-block-col-2">
<div class="title-block">
<h3><?php echo $category_name2; ?></h3>
</div>
<?php query_posts( "post_type=post" . $home2cols_slide_col1_cat . $home2cols_slide_col1_limit ); ?>
<?php if ( have_posts() ) : ?>
<div class="slider-news clearfix">
<ul class="slides">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'loop', 'style5' ); ?>
<?php endwhile; ?>
</ul>
</div>
<?php endif; ?>
<!-- END .shop-block-col-2 -->
</li>
<!-- BEGIN .shop-block-col-2 -->
<li class="shop-block-col-2">
<div class="title-block">
<h3><a style="color:#74F6DD; text-decoration:none;" href="http://www.poppet.se/category/poppet-tranar/"/><?php echo $category_name3; ?></a></h3>
</div>
<?php query_posts( "post_type=post" . $home2cols_slide_col2_cat . $home2cols_slide_col2_limit ); ?>
<?php if ( have_posts() ) : ?>
<div class="slider-news clearfix">
<ul class="slides">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'loop', 'style5' ); ?>
<?php endwhile; ?>
</ul>
</div>
<?php endif; ?>
<!-- END .shop-block-col-2 -->
</li>
</ul>
<?php } ?>