60 lines
1.7 KiB
JavaScript
60 lines
1.7 KiB
JavaScript
/**
|
|
* Copyright ETS Software Technology Co., Ltd
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This file is not open source! Each license that you purchased is only available for 1 website only.
|
|
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
|
|
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future.
|
|
*
|
|
* @author ETS Software Technology Co., Ltd
|
|
* @copyright ETS Software Technology Co., Ltd
|
|
* @license Valid for 1 website (or project) for each purchase of license
|
|
*/
|
|
$(document).ready(function(){
|
|
Etsblog_runowl();
|
|
});
|
|
function Etsblog_runowl()
|
|
{
|
|
if ( $('.ets_blog_rtl_mode').length > 0 ){
|
|
var rtl_blog = true;
|
|
|
|
} else {
|
|
var rtl_blog = false;
|
|
}
|
|
if ($('.page_home.ets_block_slider ul').length > 0) {
|
|
$('.page_home.ets_block_slider ul').etsowlCarousel({
|
|
items: 4,
|
|
responsive: {
|
|
0: {
|
|
items: 1
|
|
},
|
|
480: {
|
|
items: 1
|
|
},
|
|
768: {
|
|
items: 3
|
|
},
|
|
992: {
|
|
items: 3
|
|
},
|
|
1199: {
|
|
items: 4
|
|
}
|
|
},
|
|
rtl: rtl_blog,
|
|
nav: true,
|
|
dots: true,
|
|
loop: $(".page_home.ets_block_slider ul li").length > 1,
|
|
rewindNav: false,
|
|
dots: false,
|
|
navText: ['', ''],
|
|
callbacks: true
|
|
});
|
|
}
|
|
} |