Download project

This commit is contained in:
Roman Pyrih
2024-11-20 09:09:44 +01:00
parent 547a138d6a
commit 5ff041757f
40737 changed files with 7766183 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{*
* 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
*}
{if isset($alerts['errors']) && $alerts['errors']}
<div class="alert alert-danger mm-alert mm-alert-{$time|escape:'html':'UTF-8'}">
{foreach from=$alerts['errors'] item='error'}
{$error|escape:'html':'UTF-8'}<br/>
{/foreach}
</div>
{/if}
{if isset($alerts['success']) && $alerts['success']}
<div class="alert alert-success mm-alert mm-alert-{$time|escape:'html':'UTF-8'}">{implode('<br/>',$alerts['success'])|escape:'html':'UTF-8'}</div>
{/if}

View File

@@ -0,0 +1,137 @@
{*
* 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
*}
<script type="text/javascript">
var mmBaseAdminUrl = '{$mmBaseAdminUrl|escape:'quotes':'UTF-8'}';
var mmCloseTxt = '{l s='Close' mod='ets_multilayerslider' js=1}';
var mmOpenTxt = '{l s='Open' mod='ets_multilayerslider' js=1}';
var mmDeleteTxt = '{l s='Delete' mod='ets_multilayerslider' js=1}';
var mmDuplicatedTxt='{l s='Duplicated' mod='ets_multilayerslider' js=1}';
var mmEditTxt = '{l s='Edit' mod='ets_multilayerslider' js=1}';
var mmDeleteTitleTxt = '{l s='Delete this item' mod='ets_multilayerslider' js=1}';
var mmAddMenuTxt = '{l s='Add new slide' mod='ets_multilayerslider' js=1}';
var mmEditMenuTxt = '{l s='Edit slide' mod='ets_multilayerslider' js=1}';
var mmAddLayerTxt = '{l s='Add new layer' mod='ets_multilayerslider' js=1}';
var mmEditLayerTxt = '{l s='Edit layer' mod='ets_multilayerslider' js=1}';
var mmDeleteLayerTxt = '{l s='Delete this layer' mod='ets_multilayerslider' js=1}';
var mmDeleteBlockTxt = '{l s='Delete this block' mod='ets_multilayerslider' js=1}';
var mmEditBlockTxt = '{l s='Edit this block' mod='ets_multilayerslider' js=1}';
var mmAddBlockTxt = '{l s='Add new block' mod='ets_multilayerslider' js=1}';
var ets_mls_invalid_file = '{l s='Image is invalid' mod='ets_multilayerslider' js=1}';
var ets_mls_confirm_delete_layer = '{l s='Do you want to delete this layer?' mod='ets_multilayerslider' js=1}';
var ets_mls_confirm_delete_slide = '{l s='Do you want to delete this slide?' mod='ets_multilayerslider' js=1}';
var layertitle ='{l s='Layers' mod='ets_multilayerslider' js=1}';
var url_base_img ='{$url_base_img|escape:'quotes':'UTF-8'}';
var width_slider ={$width_slider|intval};
var height_slider ={$height_slider|intval};
var id_lang ={$id_lang|intval};
</script>
<div class="ets_multilayerslider_wrapper {$layoutDirection|escape:'html':'UTF-8'}-wrapper mls_desktop_size {if $multiLayoutExist}multi-layout{/if} mls-layout-{$mls_layout|escape:'html':'UTF-8'}">
<div class="ets_multilayerslider">
<div class="mls_slides">
<div data-title="&#xE8B8;" class="mls_config_button btn btn-default">{l s='Settings' mod='ets_multilayerslider'}</div>
<div class="mls_export_button btn btn-default">
<i class="fa fa-exchange" data-title="&#xE8D4;"></i>
{l mod='ets_multilayerslider' s='Import/Export'}
</div>
{if $multiLayoutExist}
<div class="mls_change_mode_dir">
<div data-title="&#xE236;" class="mls_change_mode ltr {if $layoutDirection=='ets-dir-ltr'}active{/if}">{l s='LTR' mod='ets_multilayerslider'}</div>
<div data-title="&#xE237;" class="mls_change_mode rtl {if $layoutDirection=='ets-dir-rtl'}active{/if}">{l s='RTL' mod='ets_multilayerslider'}</div>
</div>
{/if}
<div class="msl_screen_type">
<div data-title="&#xE30B;" class="active msl_screen_desktop" data-size="desktop" data-width="auto">{l s='Desktop' mod='ets_multilayerslider'}</div>
<div data-title="&#xE331;" class="msl_screen_tablet" data-size="tablet" data-zoom="0.615" data-width="768">{l s='Tablet' mod='ets_multilayerslider'}</div>
<div data-title="&#xE325;" class="msl_screen_mobile" data-size="mobile" data-zoom="0.282051" data-width="320">{l s='Mobile' mod='ets_multilayerslider'}</div>
</div>
<div class="mls_players">
<div data-title="&#xE039;" class="mls_play_slider btn btn-default">{l s='Play slider' mod='ets_multilayerslider'}</div>
</div>
<div class="mls_slide_list {if isset($mls_configs.ETS_MLS_SLIDER_TYPE)}mls_slider_type_{strtolower($mls_configs.ETS_MLS_SLIDER_TYPE)|escape:'html':'UTF-8'}{/if} {$layoutDirection|escape:'html':'UTF-8'}" {Module::getInstanceByName('ets_multilayerslider')->hookDisplayMLSConfigs() nofilter}>
{Module::getInstanceByName('ets_multilayerslider')->hookDisplayMLSSlider(['layout' => $mls_layout]) nofilter}
</div>
<div data-title="&#xE147;" class="mls_add_slide btn btn-default">{l s='Add slide' mod='ets_multilayerslider'}</div>
</div>
</div>
<div class="mls_forms mls_overlay hidden">
<div class="mls_slide_form hidden mls_pop_up">
<div data-title="&#xE14C;" class="mls_close">{l s='Close' mod='ets_multilayerslider'}</div>
<div class="mls_form"></div>
</div>
<div class="mls_slide_form_new hidden">{$slideForm nofilter}</div>
<div class="mls_layer_form_new hidden">{$layerForm nofilter}</div>
</div>
<div class="mls_overlay hidden">
<div class="mls_config_form hidden mls_pop_up">
<div data-title="&#xE14C;" class="mls_close">{l s='Close' mod='ets_multilayerslider'}</div>
<div class="mls_config_form_content"><div class="mls_close"></div>{$configForm nofilter}</div>
</div>
</div>
<div class="mls_preview_slider hidden mls_pop_up {if isset($mls_configs.ETS_MLS_SLIDER_TYPE)}mls_preview_type_{strtolower($mls_configs.ETS_MLS_SLIDER_TYPE)|escape:'html':'UTF-8'}{/if}">
<div data-title="&#xE14C;" class="mls_close">{l s='Close' mod='ets_multilayerslider'}</div>
<div class="mls_preview_loading">
<img src="{$url_base_img|escape:'html':'UTF-8'}/../../../modules/ets_multilayerslider/views/img/ajax-loader.gif" />
</div>
<div class="mls_form_preview">
<div data-title="&#xE14C;" class="mls_close">{l s='Close' mod='ets_multilayerslider'}</div>
</div>
</div>
<div class="mls_export_form mls_overlay hidden">
<div data-title="&#xE14C;" class="mls_close">{*l s='Close' mod='ets_multilayerslider'*}</div>
<div class="mls_export mls_pop_up">
<div data-title="&#xE14C;" class="mls_close">{l s='Close' mod='ets_multilayerslider'}</div>
<div class="mls_export_form_content">
<div class="mls_export_option">
<div class="panel-heading">
{l s='Export slider content' mod='ets_multilayerslider'}
</div>
<a class="btn btn-default mls_export_slider" href="{$mmBaseAdminUrl|escape:'html':'UTF-8'}&exportSlider=1" target="_blank">
<i class="fa fa-download" data-title="&#xE2C4;"></i>{l s='Export slider' mod='ets_multilayerslider'}</a>
<p class="mls_export_option_note">{l s='Export all slider data including slider images, text, custom CSS and configuration' mod='ets_multilayerslider'}</p>
</div>
<div class="mls_import_option">
<div class="panel-heading">
{l s='Import slider data' mod='ets_multilayerslider'}
</div>
<form action="{$mmBaseAdminUrl|escape:'html':'UTF-8'}" method="post" enctype="multipart/form-data" class="mls_import_option_form">
<div class="mls_import_option_updata">
<label for="sliderdata">{l s='Data package' mod='ets_multilayerslider'}</label>
<input id="image" type="file" name="sliderdata" id="sliderdata" />
</div>
<div class="mls_import_option_clean">
<input type="checkbox" value="1" id="importoverride" checked="checked" name="importoverride" />
<label for="importoverride">{l s='Clear all slides before importing' mod='ets_multilayerslider'}</label>
</div>
<div class="mls_import_option_button">
<input type="hidden" name="importslider" value="1" />
<div class="mls_import_slider_loading"><img src="{$url_base_img|escape:'html':'UTF-8'}/../../../modules/ets_multilayerslider/views/img/loader.gif" />{l s='Importing data' mod='ets_multilayerslider'}</div>
<div class="mls_import_slider_submit">
<i class="fa fa-compress" data-title="&#xE864;"></i>
<input type="submit" value="{l s='Import slider' mod='ets_multilayerslider'}" class="btn btn-default mls_import_slider"/>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,20 @@
{*
* 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
*}
<script type="text/javascript" src="{$js_dir_path|escape:'quotes':'UTF-8'}mls_slider.pack.js"></script>
<script type="text/javascript" src="{$js_dir_path|escape:'quotes':'UTF-8'}multilayerslider-admin.js"></script>

View File

@@ -0,0 +1,31 @@
<?php
/**
* 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
*/
if (!defined('_PS_VERSION_')) { exit; }
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,32 @@
{*
* 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
*}
{if isset($layer) && $layer}
<li data-id-layer="{$layer.id_layer|intval}" class="mls_layers_li item{$layer.id_layer|intval}" data-obj="layer">
{if $layer.layer_type=='image'}
<img src="{$layer.link_image|escape:'html':'UTF-8'}" width="40px" />
{elseif $layer.content_layer|strip_tags|trim|escape:'html':'UTF-8'}
{$layer.content_layer|strip_tags|truncate:25:"..."|escape:'html':'UTF-8'}
{else}
#{$layer.id_layer|intval}
{/if}
<span data-title="&#xE14D;" class="mls_layer_duplicate" title="{l s='Duplicate this layer' mod='ets_multilayerslider'}">{l s='Duplicate' mod='ets_multilayerslider'}</span>
<span data-title="&#xE872;" class="mls_layer_delete" title="{l s='Delete this layer' mod='ets_multilayerslider'}">{l s='Delete' mod='ets_multilayerslider'}</span>
<span data-title="&#xE150;" class="mls_layer_edit" title="{l s='Edit this layer' mod='ets_multilayerslider'}">{l s='Edit' mod='ets_multilayerslider'}</span>
</li>
{/if}

View File

@@ -0,0 +1,72 @@
{*
* 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
*}
{if isset($layer) && $layer && $layer.layer_type=='image' && $layer.image || $layer.layer_type!='image'&&$layer.content_layer}
<div class="msl_layer item{$layer.id_layer|intval} layer_layout_{$mls_layout|escape:'html':'UTF-8'} mls_layer_type_{$layer.layer_type|escape:'html':'UTF-8'}" style="position: absolute;
{if $mls_layout=='rtl' && $mls_multilayout}
right:{$layer.right|escape:'html':'UTF-8'}px; top:{$layer.top_right|escape:'html':'UTF-8'}px; left: auto;
{else}
left:{$layer.left|escape:'html':'UTF-8'}px; top:{$layer.top|escape:'html':'UTF-8'}px; right: auto;
{/if} float:left; bottom: auto; z-index: {$layer.sort_order|intval};" data-id-layer="{$layer.id_layer|intval}"
data-animation-in="{$layer.animation_in|escape:'html':'UTF-8'}"
data-animation-out="{$layer.animation_out|escape:'html':'UTF-8'}"
data-move-in="{$layer.move_in|escape:'html':'UTF-8'}"
data-move-out="{$layer.move_out|escape:'html':'UTF-8'}"
data-start-delay="{$layer.start_delay|escape:'html':'UTF-8'}"
data-stand-duration="{$layer.stand_duration|escape:'html':'UTF-8'}"
data-left="{$layer.left|floatval}"
data-right="{$layer.right|floatval}"
data-top="{$layer.top|floatval}"
data-top-rtl="{$layer.top_right|floatval}"
>
{if $layer.layer_type=='image'}
<img class="spot" src="{$layer.link_image|escape:'html':'UTF-8'}" style="{if $layer.width}width: {$layer.width|floatval}px;{/if}{if $layer.height}height: {$layer.height|floatval}px;{/if}" />
{elseif $layer.layer_type=='text' || $layer.layer_type=='link'}
<span style="
{if $layer.font_size}font-size:{$layer.font_size|escape:'html':'UTF-8'}px{/if};
{if $layer.text_color}color:{$layer.text_color|escape:'html':'UTF-8'};{/if}
{if $layer.font_family}font-family:{$layer.font_family|escape:'html':'UTF-8'};{/if}
{if $layer.font_weight}font-weight:{$layer.font_weight|escape:'html':'UTF-8'};{/if}
{if $layer.text_decoration}text-decoration:{$layer.text_decoration|escape:'html':'UTF-8'};{/if}
{if $layer.text_transform}text-transform:{$layer.text_transform|escape:'html':'UTF-8'};{/if}
">{$layer.content_layer|nl2br nofilter}</span>
{elseif $layer.layer_type=='text_background'}
<span style="
{if $layer.font_size}font-size:{$layer.font_size|escape:'html':'UTF-8'}px{/if};
{if $layer.text_color}color:{$layer.text_color|escape:'html':'UTF-8'};{/if}
{if $layer.font_family}font-family:'{$layer.font_family|escape:'html':'UTF-8'}';{/if}
{if $layer.font_weight}font-weight:{$layer.font_weight|escape:'html':'UTF-8'};{/if}
{if $layer.background_color}background-color:{$layer.background_color|escape:'html':'UTF-8'};{/if}
{if $layer.text_decoration}text-decoration:{$layer.text_decoration|escape:'html':'UTF-8'};{/if}
{if $layer.text_transform}text-transform:{$layer.text_transform|escape:'html':'UTF-8'};{/if}
{if $layer.padding}padding:{$layer.padding|escape:'html':'UTF-8'};{/if}
">{$layer.content_layer nofilter}</span>
{elseif $layer.layer_type=='button'}
<span style="
{if $layer.font_size}font-size:{$layer.font_size|escape:'html':'UTF-8'}px{/if};
{if $layer.text_color}color:{$layer.text_color|escape:'html':'UTF-8'};{/if}
{if $layer.font_family}font-family:'{$layer.font_family|escape:'html':'UTF-8'}';{/if}
{if $layer.font_weight}font-weight:{$layer.font_weight|escape:'html':'UTF-8'};{/if}
{if $layer.background_color}background-color:{$layer.background_color|escape:'html':'UTF-8'};{/if}
{if $layer.text_decoration}text-decoration:{$layer.text_decoration|escape:'html':'UTF-8'};{/if}
{if $layer.padding}padding:{$layer.padding|escape:'html':'UTF-8'};{/if}
{if $layer.box_radius}border-radius:{$layer.box_radius|intval}px;{/if}
">{$layer.content_layer nofilter}</span>
{/if}
</div>
{/if}

View File

@@ -0,0 +1,30 @@
{*
* 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
*}
<div class="action">
<span data-title="&#xE14C;" class="mls_slide_delete" title="{l s='Delete this item' mod='ets_multilayerslider'}">{l s='Delete' mod='ets_multilayerslider'}</span>
<span data-title="&#xE14D;" class="mls_slide_duplicated" title="{l s='Duplicate this slide' mod='ets_multilayerslider'}">{l s='Duplicate' mod='ets_multilayerslider'}</span>
<span data-title="&#xE150;" class="mls_slide_edit">{l s='Edit' mod='ets_multilayerslider'}</span>
</div>
<div class="msl_layer_wrapper" data-width="{$sliderWidth|intval}" data-height="{$sliderHeight|intval}" style="position: relative;width:{$sliderWidth|intval}px;height:{$sliderHeight|intval}px;{if $slide.link_img} background-image: url('{$slide.link_img|escape:'html':'UTF-8'}');background-repeat: {if $slide.repeat_x&&$slide.repeat_y}repeat{elseif $slide.repeat_x}repeat-x{elseif $slide.repeat_y}repeat-y{else}no-repeat{/if};{/if}{if $slide.backgroud_color} background-color:{$slide.backgroud_color|escape:'html':'UTF-8'}; {/if}">
{if isset($slide.layers) && $slide.layers}
{foreach from=$slide.layers item='layer'}
{Module::getInstanceByName('ets_multilayerslider')->hookDisplayMLSLayer(['layout' => $mls_layout, 'layer' => $layer]) nofilter}
{/foreach}
{/if}
</div>

View File

@@ -0,0 +1,41 @@
{*
* 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
*}
{if isset($slide) && $slide}
<li class="mls_slides_li item{$slide.id_slide|intval} {if !$slide.enabled}mls_disabled{/if}" data-id-slide="{$slide.id_slide|intval}" data-obj="slide">
<span class="title-silde" ><span>{if $slide.title}{$slide.title|escape:'html':'UTF-8'}{else}{$slide.id_slide|intval}{/if}</span></span>
<div class="slide-content">
<div class="left-block col-lg-9" >
<div class="left-content">
{Module::getInstanceByName('ets_multilayerslider')->hookDisplayMLSSlideInner(['slide' => $slide, 'layout' => $mls_layout]) nofilter}
</div>
</div>
<div class="right-block col-lg-3">
<h2 data-title="&#xE3C4;">{l s='Layers' mod='ets_multilayerslider'}</h2>
<div data-title="&#xE145;" class="mls_add_layer btn btn-default" data-id-slide="{$slide.id_slide|intval}">{l s='Add new layer' mod='ets_multilayerslider'}</div>
<ul id="layers_slide{$slide.id_slide|intval}" class="mls_layers_ul">
{if isset($slide.layers) && $slide.layers}
{foreach from=$slide.layers item='layer'}
{Module::getInstanceByName('ets_multilayerslider')->hookDisplayMLSLayerSort(['layer' => $layer]) nofilter}
{/foreach}
{/if}
</ul>
</div>
</div>
</li>
{/if}

View File

@@ -0,0 +1,26 @@
{*
* 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
*}
<ul class="mls_slides_ul">
{if isset($slides)&&$slides}
{foreach from=$slides item='slide'}
{Module::getInstanceByName('ets_multilayerslider')->hookDisplayMLSSlide(['slide' => $slide, 'layout' => $mls_layout]) nofilter}
{/foreach}
{/if}
</ul>
<div class="alert alert-warning msl_no_slides {if $slides}hidden{/if}">{l s='No slide available. Click "Add slide" to add new slides!' mod='ets_multilayerslider'}</div>

View File

@@ -0,0 +1,108 @@
{*
* 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
*}
<script type="text/javascript">
var width_slider = {$mls_width|intval};
var height_slider = {$mls_height|intval};
</script>
{if isset($mls_slides) && $mls_slides}
<div class="ets_multilayerslider {if $mls_configs.ETS_MLS_SLIDER_TYPE=='full'}hidden{/if}">
<div class="mls_slides">
<div data-max-slide-time="{$mls_max_slide_time|intval}" class="mls_slider {if $mls_configs.ETS_MLS_ENABLE_LOADING_ICON}loading{/if} {if isset($mls_configs.ETS_MLS_SLIDER_TYPE)}mls_slider_type_{strtolower($mls_configs.ETS_MLS_SLIDER_TYPE)|escape:'html':'UTF-8'}{/if} mls_layout_{$mls_layout|escape:'html':'UTF-8'}" style="width: {$mls_width|intval}px; height: {$mls_height|intval}px; {if $mls_configs.ETS_MLS_SLIDER_BACKGROUND}background-color: {$mls_configs.ETS_MLS_SLIDER_BACKGROUND|escape:'html':'UTF-8'};{/if}" {Module::getInstanceByName('ets_multilayerslider')->hookDisplayMLSConfigs() nofilter}>
<div class="mls_slider_running" style="{if $mls_configs.ETS_MLS_SLIDER_BUTTON_COLOR}background-color: {$mls_configs.ETS_MLS_SLIDER_BUTTON_COLOR|escape:'html':'UTF-8'};{else}#000000;{/if}"></div>
<ul class="mls_slides_front">
{assign var='ik' value=0}
{foreach from=$mls_slides item='slide'}
{assign var='ik' value=$ik+1}
<li data-slide-background-image="{$slide.link_img|escape:'html':'UTF-8'}" data-slide-order="{$ik|intval}" data-max-layer-in="{$slide.max_layer_in|intval}" data-max-layer-out="{$slide.max_layer_out|intval}" data-animation-in="{$slide.animation_in|escape:'html':'UTF-8'}" data-animation-out="{$slide.animation_out|escape:'html':'UTF-8'}" data-id-slide="{$slide.id_slide|intval}" class="mls_slide_front {if isset($slide.custom_class) && $slide.custom_class}{$slide.custom_class|escape:'html':'UTF-8'}{/if} item_{$ik|intval} mls_slide_{$slide.id_slide|intval}" style="{if $slide.link_img|escape:'html':'UTF-8'} {if !$mls_configs.ETS_MLS_ENABLE_LOADING_ICON || $mls_configs.ETS_MLS_ENABLE_LOADING_ICON && $ik>1}background-image: url('{$slide.link_img|escape:'html':'UTF-8'}');{/if}background-repeat: {if $slide.repeat_x&&$slide.repeat_y}repeat{elseif $slide.repeat_x}repeat-x{elseif $slide.repeat_y}repeat-y{else}no-repeat{/if};{/if}{if $slide.backgroud_color} background-color:{$slide.backgroud_color|escape:'html':'UTF-8'}; {/if} position: relative;">
{if isset($slide.layers) && $slide.layers}
{foreach from=$slide.layers item='layer'}
{if $layer.layer_type=='image' && $layer.image || $layer.layer_type!='image'&&$layer.content_layer}
<div class="msl_layer_front msl_layer_{$layer.id_layer|intval} layer_layout_{$mls_layout|escape:'html':'UTF-8'} mls_layer_type_front_{$layer.layer_type|escape:'html':'UTF-8'}" style="position: absolute; {if $mls_layout=='rtl' && $mls_multilayout}right:{$layer.right|escape:'html':'UTF-8'}px; top:{$layer.top_right|escape:'html':'UTF-8'}px; left: auto;{else}left:{$layer.left|escape:'html':'UTF-8'}px; top:{$layer.top|escape:'html':'UTF-8'}px; right: auto;{/if} float:left; bottom: auto; z-index: {$layer.sort_order|intval};" data-top="{$layer.top|escape:'html':'UTF-8'}" data-id-layer="{$layer.id_layer|intval}"
data-animation-in="{$layer.animation_in|escape:'html':'UTF-8'}"
data-animation-out="{$layer.animation_out|escape:'html':'UTF-8'}"
data-move-in="{$layer.move_in|escape:'html':'UTF-8'}"
data-move-out="{$layer.move_out|escape:'html':'UTF-8'}"
data-delay-in="{$layer.start_delay|escape:'html':'UTF-8'}"
data-delay-out="{$layer.stand_duration|escape:'html':'UTF-8'}">
{if $layer.layer_type=='image'}
{if $layer.link}<a href="{$layer.link|escape:'html':'UTF-8'}">{/if}<img class="spot" src="{$layer.link_image|escape:'html':'UTF-8'}" style="{if $layer.width}width: {$layer.width|floatval}px;{/if}{if $layer.height}height: {$layer.height|floatval}px;{/if}" />{if $layer.link}</a>{/if}
{elseif $layer.layer_type=='text' || $layer.layer_type=='link'}
{if $layer.link && $layer.layer_type=='link'}<a href="{$layer.link|escape:'html':'UTF-8'}">{/if}<span style="
{if $layer.font_size}font-size:{$layer.font_size|escape:'html':'UTF-8'}px{/if};
{if $layer.text_color}color:{$layer.text_color|escape:'html':'UTF-8'};{/if}
{if $layer.font_family}font-family:{$layer.font_family|escape:'html':'UTF-8'};{/if}
{if $layer.font_weight}font-weight:{$layer.font_weight|escape:'html':'UTF-8'};{/if}
{if $layer.text_decoration}text-decoration:{$layer.text_decoration|escape:'html':'UTF-8'};{/if}
{if $layer.text_transform}text-transform:{$layer.text_transform|escape:'html':'UTF-8'};{/if}
">{$layer.content_layer|nl2br nofilter}</span>{if $layer.link && $layer.layer_type=='link'}</a>{/if}
{elseif $layer.layer_type=='text_background'}
<span style="
{if $layer.font_size}font-size:{$layer.font_size|escape:'html':'UTF-8'}px{/if};
{if $layer.text_color}color:{$layer.text_color|escape:'html':'UTF-8'};{/if}
{if $layer.font_family}font-family:'{$layer.font_family|escape:'html':'UTF-8'}';{/if}
{if $layer.font_weight}font-weight:{$layer.font_weight|escape:'html':'UTF-8'};{/if}
{if $layer.background_color}background-color:{$layer.background_color|escape:'html':'UTF-8'};{/if}
{if $layer.text_decoration}text-decoration:{$layer.text_decoration|escape:'html':'UTF-8'};{/if}
{if $layer.text_transform}text-transform:{$layer.text_transform|escape:'html':'UTF-8'};{/if}
{if $layer.padding}padding:{$layer.padding|escape:'html':'UTF-8'};{/if}
">{$layer.content_layer nofilter}</span>
{elseif $layer.layer_type=='button'}
{if $layer.link}<a href="{$layer.link|escape:'html':'UTF-8'}">{/if}<span style="
{if $layer.font_size}font-size:{$layer.font_size|escape:'html':'UTF-8'}px{/if};
{if $layer.text_color}color:{$layer.text_color|escape:'html':'UTF-8'};{/if}
{if $layer.font_family}font-family:'{$layer.font_family|escape:'html':'UTF-8'}';{/if}
{if $layer.font_weight}font-weight:{$layer.font_weight|escape:'html':'UTF-8'};{/if}
{if $layer.background_color}background-color:{$layer.background_color|escape:'html':'UTF-8'};{/if}
{if $layer.text_decoration}text-decoration:{$layer.text_decoration|escape:'html':'UTF-8'};{/if}
{if $layer.padding}padding:{$layer.padding|escape:'html':'UTF-8'};{/if}
{if $layer.box_radius}border-radius:{$layer.box_radius|intval}px;{/if}
">{$layer.content_layer nofilter}</span>{if $layer.link|escape:'html':'UTF-8'}</a>{/if}
{/if}
</div>
{/if}
{/foreach}
{/if}
</li>
{/foreach}
</ul>
{if $mls_configs.ETS_MLS_ENABLE_LOADING_ICON}
<div class="mls_loading_icon" style="{if $mls_configs.ETS_MLS_SLIDER_BACKGROUND}background-color: {$mls_configs.ETS_MLS_SLIDER_BACKGROUND|escape:'html':'UTF-8'};{else}#000000;{/if}"><img src="{$mls_img_base_dir|escape:'html':'UTF-8'}ajax-loader.gif"/></div>
{/if}
{if $mls_configs.ETS_MLS_ENABLE_NEXT_PREV}
<div class="mls_nav">
<div data-title="&#xE314;" class="mls_prev" style="{if $mls_configs.ETS_MLS_SLIDER_BUTTON_COLOR}background-color: {$mls_configs.ETS_MLS_SLIDER_BUTTON_COLOR|escape:'html':'UTF-8'};{else}#000000;{/if}">{l s='Prev' mod='ets_multilayerslider'}</div>
<div data-title="&#xE315;" class="mls_next" style="{if $mls_configs.ETS_MLS_SLIDER_BUTTON_COLOR}background-color: {$mls_configs.ETS_MLS_SLIDER_BUTTON_COLOR|escape:'html':'UTF-8'};{else}#000000;{/if}">{l s='Next' mod='ets_multilayerslider'}</div>
</div>
{/if}
{if $mls_configs.ETS_MLS_ENABLE_PAGINATION}
<div class="mls_pagination">
{assign var='ik' value=0}
{foreach from=$mls_slides item='slide'}
{assign var='ik' value=$ik+1}
<div class="mls_pag_button" style="background-color: {if isset($mls_configs.ETS_MLS_SLIDER_BUTTON_COLOR) && $mls_configs.ETS_MLS_SLIDER_BUTTON_COLOR}{$mls_configs.ETS_MLS_SLIDER_BUTTON_COLOR|escape:'html':'UTF-8'}{else}#000000;{/if}" class="mls_pag_{$ik|intval}" data-slide-order="{$ik|intval}" data-id-slide="{$slide.id_slide|intval}">{$ik|intval}</div>
{/foreach}
</div>
{/if}
</div>
</div>
</div>
{/if}
{if !$mls_slides && $mls_backend_load}
<div class="alert alert-warning">{l s='No active slides available' mod='ets_multilayerslider'}</div>
{/if}