Untitled


SUBMITTED BY: Guest

DATE: Dec. 8, 2013, 9:20 p.m.

FORMAT: PHP

SIZE: 3.0 kB

HITS: 10521

  1. <?php /* ----------------------------------------------------
  2. Two Column Mini Slideshow Loop
  3. ------------------------------------------------------- */ ?>
  4. <?php if( $data['home2cols_slide_display'] ) { ?>
  5. <?php $home2cols_slide_col1_cat = ''; ?>
  6. <?php $home2cols_slide_col2_cat = ''; ?>
  7. <?php $home2cols_slide_col1_limit = ''; ?>
  8. <?php $home2cols_slide_col2_limit = ''; ?>
  9. <?php if( $data['home2cols_slide_col1_cat'] ) {
  10. $home2cols_slide_col1_cat = '&cat=' . $data['home2cols_slide_col1_cat'];
  11. $thecat = get_category($data['home2cols_slide_col1_cat']);
  12. $category_name2 = $thecat->name;
  13. } else {
  14. $category_name2 = __('All','qns');
  15. } ?>
  16. <?php if( $data['home2cols_slide_col2_cat'] ) {
  17. $home2cols_slide_col2_cat = '&cat=' . $data['home2cols_slide_col2_cat'];
  18. $thecat = get_category($data['home2cols_slide_col2_cat']);
  19. $category_name3 = $thecat->name;
  20. } else {
  21. $category_name3 = __('All','qns');
  22. } ?>
  23. <?php if( $data['home2cols_slide_col1_limit'] ) { $home2cols_slide_col1_limit = '&posts_per_page=' . $data['home2cols_slide_col1_limit']; } ?>
  24. <?php if( $data['home2cols_slide_col2_limit'] ) { $home2cols_slide_col2_limit = '&posts_per_page=' . $data['home2cols_slide_col2_limit']; } ?>
  25. <!-- BEGIN .shop-block-columns-2 -->
  26. <ul class="shop-block-columns-2 clearfix">
  27. <!-- BEGIN .shop-block-col-2 -->
  28. <li class="shop-block-col-2">
  29. <div class="title-block">
  30. <h3><?php echo $category_name2; ?></h3>
  31. </div>
  32. <?php query_posts( "post_type=post" . $home2cols_slide_col1_cat . $home2cols_slide_col1_limit ); ?>
  33. <?php if ( have_posts() ) : ?>
  34. <div class="slider-news clearfix">
  35. <ul class="slides">
  36. <?php while ( have_posts() ) : the_post(); ?>
  37. <?php get_template_part( 'loop', 'style5' ); ?>
  38. <?php endwhile; ?>
  39. </ul>
  40. </div>
  41. <?php endif; ?>
  42. <!-- END .shop-block-col-2 -->
  43. </li>
  44. <!-- BEGIN .shop-block-col-2 -->
  45. <li class="shop-block-col-2">
  46. <div class="title-block">
  47. <h3><a style="color:#74F6DD; text-decoration:none;" href="http://www.poppet.se/category/poppet-tranar/"/><?php echo $category_name3; ?></a></h3>
  48. </div>
  49. <?php query_posts( "post_type=post" . $home2cols_slide_col2_cat . $home2cols_slide_col2_limit ); ?>
  50. <?php if ( have_posts() ) : ?>
  51. <div class="slider-news clearfix">
  52. <ul class="slides">
  53. <?php while ( have_posts() ) : the_post(); ?>
  54. <?php get_template_part( 'loop', 'style5' ); ?>
  55. <?php endwhile; ?>
  56. </ul>
  57. </div>
  58. <?php endif; ?>
  59. <!-- END .shop-block-col-2 -->
  60. </li>
  61. </ul>
  62. <?php } ?>

comments powered by Disqus