/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

  1. {*
  2. * 2007-2016 PrestaShop
  3. *
  4. * NOTICE OF LICENSE
  5. *
  6. * This source file is subject to the Academic Free License (AFL 3.0)
  7. * that is bundled with this package in the file LICENSE.txt.
  8. * It is also available through the world-wide-web at this URL:
  9. * http://opensource.org/licenses/afl-3.0.php
  10. * If you did not receive a copy of the license and are unable to
  11. * obtain it through the world-wide-web, please send an email
  12. * to license@prestashop.com so we can send you a copy immediately.
  13. *
  14. * DISCLAIMER
  15. *
  16. * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
  17. * versions in the future. If you wish to customize PrestaShop for your
  18. * needs please refer to http://www.prestashop.com for more information.
  19. *
  20. * @author PrestaShop SA <contact@prestashop.com>
  21. * @copyright 2007-2016 PrestaShop SA
  22. * @version Release: $Revision$
  23. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  24. * International Registered Trademark & Property of PrestaShop SA
  25. *}
  26. <script type="text/javascript">
  27. jQuery(function ($) {
  28. "use strict";
  29. var producttabCarousel = $(".producttab-carousel2");
  30. var items = {if $cols}{$cols|escape:'htmlall':'UTF-8'}{else}4{/if},
  31. itemsDesktop = {if $cols}{$cols|escape:'htmlall':'UTF-8'}{else}4{/if},
  32. itemsDesktopSmall = {if $cols_md}{$cols_md|escape:'htmlall':'UTF-8'}{else}3{/if},
  33. itemsTablet = {if $cols_sm}{$cols_sm|escape:'htmlall':'UTF-8'}{else}2{/if},
  34. itemsMobile = {if $cols_xs}{$cols_xs|escape:'htmlall':'UTF-8'}{else}1{/if};
  35. var rtl = false;
  36. if ($("body").hasClass("rtl")) rtl = true;
  37. producttabCarousel.owlCarousel({
  38. responsiveClass:true,
  39. responsive:{
  40. 1199:{
  41. items:itemsDesktop
  42. },
  43. 991:{
  44. items:itemsDesktopSmall
  45. },
  46. 768:{
  47. items:itemsTablet
  48. },
  49. 480:{
  50. items:itemsMobile
  51. },
  52. 0:{
  53. items:1
  54. }
  55. },
  56. rtl: rtl,
  57. margin:10,
  58. nav: {if $navigation == '1'}true{else}false{/if},
  59. dots: {if $pagination == '1'}true{else}false{/if},
  60. autoplay:{if $autoplay == '1'}true{else}false{/if},
  61. rewindNav: {if $rewind == '1'}true{else}false{/if},
  62. navigationText: ["", ""],
  63. slideBy: {if $slidebypage == '1'}'page'{else}1{/if},
  64. slideSpeed: 200
  65. });
  66. });
  67. </script>
  68. <div class="addon-title">
  69. {if $addon_title}
  70. <h3>{$addon_title|escape:'htmlall':'UTF-8'}</h3>
  71. {/if}
  72. {if $addon_desc}
  73. <p class="addon-desc">{$addon_desc|escape:'htmlall':'UTF-8'}</p>
  74. {/if}
  75. <div class="jms-tab1">
  76. <ul class="nav nav-tabs" role="tablist">
  77. {$cf = 0}
  78. {if $config.show_featured eq '1'}
  79. <li class="active"><a class="button" data-toggle="tab" href="#featured2">{l s='FEATURED PRODUCTS ' mod='jmspagebuilder'}</a></li>
  80. {$cf = $cf + 1}
  81. {/if}
  82. {if $config.show_new eq '1'}
  83. <li {if $cf eq 0}class="active"{/if}><a class="button" data-toggle="tab" href="#latest2">{l s='LATEST PRODUCTS' mod='jmspagebuilder'}</a></li>
  84. {$cf = $cf + 1}
  85. {/if}
  86. {if $config.show_topseller eq '1'}
  87. <li {if $cf eq 0}class="active"{/if}><a class="button" data-toggle="tab" href="#topseller2">{l s='BEST SELLING' mod='jmspagebuilder'}</a></li>
  88. {$cf = $cf + 1}
  89. {/if}
  90. {if $config.show_special eq '1'}
  91. <li {if $cf eq 0}class="active"{/if}><a class="button" data-toggle="tab" href="#special2">{l s='Special' mod='jmspagebuilder'}</a></li>
  92. {$cf = $cf + 1}
  93. {/if}
  94. {if $config.show_onsale eq '1'}
  95. <li {if $cf eq 0}class="active"{/if}><a class="button" data-toggle="tab" href="#onsale2">{l s='On Sale' mod='jmspagebuilder'}</a></li>
  96. {$cf = $cf + 1}
  97. {/if}
  98. </ul>
  99. </div>
  100. </div>
  101. {assign var="box_template" "{$addon_tpl_dir}productbox.tpl"}
  102. <div class="tab-content">
  103. {$cf = 0}
  104. {if $config.show_featured eq '1'}
  105. <div role="tabpanel" class="tab-pane active" id="featured2">
  106. <div class="producttab-carousel2">
  107. {foreach from = $featured_products item = products_slide}
  108. <div class="item">
  109. {foreach from = $products_slide item = product}
  110. {include file={$box_template} product=$product}
  111. {/foreach}
  112. </div>
  113. {/foreach}
  114. </div>
  115. </div>
  116. {$cf = $cf + 1}
  117. {/if}
  118. {if $config.show_new eq '1'}
  119. <div role="tabpanel" class="tab-pane {if $cf eq 0}active{/if}" id="latest2">
  120. <div class="producttab-carousel2">
  121. {foreach from = $new_products item = products_slide}
  122. <div class="item">
  123. {foreach from = $products_slide item = product}
  124. {include file={$box_template} product=$product}
  125. {/foreach}
  126. </div>
  127. {/foreach}
  128. </div>
  129. </div>
  130. {$cf = $cf + 1}
  131. {/if}
  132. {if $config.show_topseller eq '1'}
  133. <div role="tabpanel" class="tab-pane {if $cf eq 0}active{/if}" id="topseller2">
  134. <div class="producttab-carousel2">
  135. {foreach from = $topseller_products item = products_slide}
  136. <div class="item">
  137. {foreach from = $products_slide item = product}
  138. {include file={$box_template} product=$product}
  139. {/foreach}
  140. </div>
  141. {/foreach}
  142. </div>
  143. </div>
  144. {$cf = $cf + 1}
  145. {/if}
  146. {if $config.show_special eq '1'}
  147. <div role="tabpanel" class="tab-pane {if $cf eq 0}active{/if}" id="special2">
  148. <div class="producttab-carousel2">
  149. {foreach from = $special_products item = products_slide}
  150. <div class="item">
  151. {foreach from = $products_slide item = product}
  152. {include file={$box_template} product=$product}
  153. {/foreach}
  154. </div>
  155. {/foreach}
  156. </div>
  157. </div>
  158. {$cf = $cf + 1}
  159. {/if}
  160. {if $config.show_onsale eq '1'}
  161. <div role="tabpanel" class="tab-pane {if $cf eq 0}active{/if}" id="onsale2">
  162. <div class="producttab-carousel2">
  163. {foreach from = $onsale_products item = products_slide}
  164. <div class="item">
  165. {foreach from = $products_slide item = product}
  166. {include file={$box_template} product=$product}
  167. {/foreach}
  168. </div>
  169. {/foreach}
  170. </div>
  171. </div>
  172. {$cf = $cf + 1}
  173. {/if}
  174. </div>