<?php
/**
 * @package Genesis
 * @copyright Copyright 2012 - 2015 Sammycorp
 * @author Sammycorp
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */
?>
<section class="brands genesis-section centerBoxWrapper" id="manufacturersDefault">
	<?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 = $('.brands .owl-carousel').data('items');
      if( $('.brands .product').length > items ){
        $('.brands .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: '.brands .product-carousel-nav', 
          navRewind: false, 
          responsive:{
            0:{
              items:1,
              nav:false
            },
            481:{
              items:2,
              nav:false
            },
            621:{
              items:4,
              nav:true
            },
            992:{
              items:5,
              nav:true
            }
          }
        });
      }else{
        $('.brands .owl-carousel').removeClass('product-carousel').removeClass('owl-carousel').addClass('grid');
      }
    });
  </script>
</section> 