<?php
/**
 * Module Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_modules_featured_products.php 2935 2006-02-01 11:12:40Z birdbrain $
 */
  $zc_show_featured = false;
  include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_FEATURED_PRODUCTS_MODULE));
?>

<!-- bof: featured products  -->
<?php if ($zc_show_featured == true) { ?>
<section class="featured-products genesis-section centerBoxWrapper" id="featuredProducts">
	<?php require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php'); ?>
	<script>
    jQuery(document).ready(function($) {
    	'use strict';
      var items = $('.featured-products .owl-carousel').data('items');
      if( $('.featured-products .product').length > items ){
        $('.featured-products .owl-carousel').owlCarousel({
          items: items, 
          margin: 30, 
          nav: true, 
          navText: ['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'], 
          navContainer: '.featured-products .product-carousel-nav', 
          navRewind: false, 
          responsive:{
            0:{
              items:1,
              nav:false
            },
            481:{
              items:2,
              nav:false
            },
            621:{
              items:3,
              nav:true
            },
            992:{
              items:4,
              nav:true
            }
          }
        });
      }else{
        $('.featured-products .owl-carousel').removeClass('product-carousel').removeClass('owl-carousel').addClass('grid');
      }
    });
  </script>
</section>
<?php } ?>
<!-- eof: featured products  -->
