FHP75

prod

Jun 18th, 2018
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 [email protected] 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 <[email protected]>
  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 productCarousel = $(".product-carousel");      
  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.     productCarousel.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.             318:{
  50.                 items:itemsMobile
  51.             }
  52.         },
  53.         rtl: rtl,
  54.         nav: {if $navigation == '1'}true{else}false{/if},
  55.         dots: {if $pagination == '1'}true{else}false{/if},
  56.         autoplay:{if $autoplay == '1'}true{else}false{/if},
  57.         rewindNav: {if $rewind == '1'}true{else}false{/if},
  58.         navigationText: ["", ""],
  59.         slideBy: {if $slidebypage == '1'}'page'{else}1{/if},
  60.         slideSpeed: 200
  61.     });
  62. });
  63. </script>
  64.  
  65. {if $addon_title}
  66. <div class="addon-title">
  67.     <h3>{$addon_title|escape:'htmlall':'UTF-8'}</h3>
  68. </div>
  69. {/if}
  70. {if $addon_desc}
  71. <p class="addon-desc">{$addon_desc|escape:'htmlall':'UTF-8'}</p>
  72. {/if}  
  73. {assign var="box_template" "{$addon_tpl_dir}productbox.tpl"}
  74. <div class="product-carousel"> 
  75.     {foreach from = $products_slides item = products_slide}
  76.         <div class="item">
  77.             {foreach from = $products_slide item = product}
  78.                 {include file={$box_template} product=$product}
  79.             {/foreach}
  80.         </div>
  81.     {/foreach}
  82. </div>
Advertisement
Add Comment
Please, Sign In to add comment