/themes/jms_deermarket/modules/jmspagebuilder/views/templates/hook/addonproducttab-home5-second.tpl
https://bitbucket.org/eljosze94/automasterstore · Smarty Template · 177 lines · 149 code · 3 blank · 25 comment · 6 complexity · 6ded4a8e8d42d70a0bc643a6b22188b0 MD5 · raw file
- {*
- * 2007-2016 PrestaShop
- *
- * NOTICE OF LICENSE
- *
- * This source file is subject to the Academic Free License (AFL 3.0)
- * that is bundled with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://opensource.org/licenses/afl-3.0.php
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@prestashop.com so we can send you a copy immediately.
- *
- * DISCLAIMER
- *
- * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
- * versions in the future. If you wish to customize PrestaShop for your
- * needs please refer to http://www.prestashop.com for more information.
- *
- * @author PrestaShop SA <contact@prestashop.com>
- * @copyright 2007-2016 PrestaShop SA
- * @version Release: $Revision$
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
- * International Registered Trademark & Property of PrestaShop SA
- *}
- <script type="text/javascript">
- jQuery(function ($) {
- "use strict";
- var producttabCarousel = $(".producttab-carousel2");
- var items = {if $cols}{$cols|escape:'htmlall':'UTF-8'}{else}4{/if},
- itemsDesktop = {if $cols}{$cols|escape:'htmlall':'UTF-8'}{else}4{/if},
- itemsDesktopSmall = {if $cols_md}{$cols_md|escape:'htmlall':'UTF-8'}{else}3{/if},
- itemsTablet = {if $cols_sm}{$cols_sm|escape:'htmlall':'UTF-8'}{else}2{/if},
- itemsMobile = {if $cols_xs}{$cols_xs|escape:'htmlall':'UTF-8'}{else}1{/if};
- var rtl = false;
- if ($("body").hasClass("rtl")) rtl = true;
- producttabCarousel.owlCarousel({
- responsiveClass:true,
- responsive:{
- 1199:{
- items:itemsDesktop
- },
- 991:{
- items:itemsDesktopSmall
- },
- 768:{
- items:itemsTablet
- },
- 480:{
- items:itemsMobile
- },
- 0:{
- items:1
- }
- },
- rtl: rtl,
- margin:10,
- nav: {if $navigation == '1'}true{else}false{/if},
- dots: {if $pagination == '1'}true{else}false{/if},
- autoplay:{if $autoplay == '1'}true{else}false{/if},
- rewindNav: {if $rewind == '1'}true{else}false{/if},
- navigationText: ["", ""],
- slideBy: {if $slidebypage == '1'}'page'{else}1{/if},
- slideSpeed: 200
- });
- });
- </script>
- <div class="addon-title">
- {if $addon_title}
- <h3>{$addon_title|escape:'htmlall':'UTF-8'}</h3>
- {/if}
- {if $addon_desc}
- <p class="addon-desc">{$addon_desc|escape:'htmlall':'UTF-8'}</p>
- {/if}
- <div class="jms-tab1">
- <ul class="nav nav-tabs" role="tablist">
- {$cf = 0}
- {if $config.show_featured eq '1'}
- <li class="active"><a class="button" data-toggle="tab" href="#featured2">{l s='FEATURED PRODUCTS ' mod='jmspagebuilder'}</a></li>
- {$cf = $cf + 1}
- {/if}
- {if $config.show_new eq '1'}
- <li {if $cf eq 0}class="active"{/if}><a class="button" data-toggle="tab" href="#latest2">{l s='LATEST PRODUCTS' mod='jmspagebuilder'}</a></li>
- {$cf = $cf + 1}
- {/if}
- {if $config.show_topseller eq '1'}
- <li {if $cf eq 0}class="active"{/if}><a class="button" data-toggle="tab" href="#topseller2">{l s='BEST SELLING' mod='jmspagebuilder'}</a></li>
- {$cf = $cf + 1}
- {/if}
- {if $config.show_special eq '1'}
- <li {if $cf eq 0}class="active"{/if}><a class="button" data-toggle="tab" href="#special2">{l s='Special' mod='jmspagebuilder'}</a></li>
- {$cf = $cf + 1}
- {/if}
- {if $config.show_onsale eq '1'}
- <li {if $cf eq 0}class="active"{/if}><a class="button" data-toggle="tab" href="#onsale2">{l s='On Sale' mod='jmspagebuilder'}</a></li>
- {$cf = $cf + 1}
- {/if}
- </ul>
- </div>
- </div>
- {assign var="box_template" "{$addon_tpl_dir}productbox.tpl"}
- <div class="tab-content">
- {$cf = 0}
- {if $config.show_featured eq '1'}
- <div role="tabpanel" class="tab-pane active" id="featured2">
- <div class="producttab-carousel2">
- {foreach from = $featured_products item = products_slide}
- <div class="item">
- {foreach from = $products_slide item = product}
- {include file={$box_template} product=$product}
- {/foreach}
- </div>
- {/foreach}
- </div>
- </div>
- {$cf = $cf + 1}
- {/if}
- {if $config.show_new eq '1'}
- <div role="tabpanel" class="tab-pane {if $cf eq 0}active{/if}" id="latest2">
- <div class="producttab-carousel2">
- {foreach from = $new_products item = products_slide}
- <div class="item">
- {foreach from = $products_slide item = product}
- {include file={$box_template} product=$product}
- {/foreach}
- </div>
- {/foreach}
- </div>
- </div>
- {$cf = $cf + 1}
- {/if}
- {if $config.show_topseller eq '1'}
- <div role="tabpanel" class="tab-pane {if $cf eq 0}active{/if}" id="topseller2">
- <div class="producttab-carousel2">
- {foreach from = $topseller_products item = products_slide}
- <div class="item">
- {foreach from = $products_slide item = product}
- {include file={$box_template} product=$product}
- {/foreach}
- </div>
- {/foreach}
- </div>
- </div>
- {$cf = $cf + 1}
- {/if}
- {if $config.show_special eq '1'}
- <div role="tabpanel" class="tab-pane {if $cf eq 0}active{/if}" id="special2">
- <div class="producttab-carousel2">
- {foreach from = $special_products item = products_slide}
- <div class="item">
- {foreach from = $products_slide item = product}
- {include file={$box_template} product=$product}
- {/foreach}
- </div>
- {/foreach}
- </div>
- </div>
- {$cf = $cf + 1}
- {/if}
- {if $config.show_onsale eq '1'}
- <div role="tabpanel" class="tab-pane {if $cf eq 0}active{/if}" id="onsale2">
- <div class="producttab-carousel2">
- {foreach from = $onsale_products item = products_slide}
- <div class="item">
- {foreach from = $products_slide item = product}
- {include file={$box_template} product=$product}
- {/foreach}
- </div>
- {/foreach}
- </div>
- </div>
- {$cf = $cf + 1}
- {/if}
- </div>