first commit
This commit is contained in:
68
modules/appagebuilder/views/templates/hook/ApAccordions.tpl
Normal file
68
modules/appagebuilder/views/templates/hook/ApAccordions.tpl
Normal file
@@ -0,0 +1,68 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApAccordions -->
|
||||
{if isset($isWrapper) && $isWrapper}
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
<input type="hidden" class="runCodeJs ap-accordion"
|
||||
data-active_type="{$formAtts.active_type}"
|
||||
data-id="{$formAtts.id|escape:'html':'UTF-8'}"
|
||||
data-active_accordion="{$formAtts.active_accordion|escape:'html':'UTF-8'}"
|
||||
/>
|
||||
<div{if isset($formAtts.id)} id="{$formAtts.id|escape:'html':'UTF-8'}"{/if} class="ap-accordion panel-group {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}">
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title|rtrim|escape:'html':'UTF-8'}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
|
||||
{if $formAtts.active_type=='set'}
|
||||
// ACTION SET ACTIVE
|
||||
$('#{$formAtts.id|escape:'html':'UTF-8'} .panel-default:nth-child({$formAtts.active_accordion|escape:'html':'UTF-8'}) .panel-heading .panel-title a').trigger('click');
|
||||
{/if}
|
||||
|
||||
{if $formAtts.active_type=='showall'}
|
||||
// ACTION SHOWALL
|
||||
$('#{$formAtts.id|escape:'html':'UTF-8'} .panel-heading .panel-title > a').on('click', function(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
// show, hidden content
|
||||
var div_id = $(this).attr('href');
|
||||
$(div_id ).collapse("toggle");
|
||||
});
|
||||
$('#{$formAtts.id|escape:'html':'UTF-8'} .panel-heading .panel-title > a').trigger('click');
|
||||
{/if}
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
{else}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
<a data-toggle="collapse" data-parent="#{$formAtts.parent_id|escape:'html':'UTF-8'}" aria-controls="{$formAtts.id|escape:'html':'UTF-8'}" aria-expanded="false" class="collapsed"
|
||||
href="#{$formAtts.id|escape:'html':'UTF-8'}">{$formAtts.title|escape:'html':'UTF-8'}</a>
|
||||
</h4>
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div id="{$formAtts.id|escape:'html':'UTF-8'}" class="panel-collapse collapse" role="tabpanel">
|
||||
<div class="panel-body">
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
166
modules/appagebuilder/views/templates/hook/ApAjaxTabs.tpl
Normal file
166
modules/appagebuilder/views/templates/hook/ApAjaxTabs.tpl
Normal file
@@ -0,0 +1,166 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApAjaxTabs -->
|
||||
{if $tab_name == 'ApAjaxTabs'}
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
{if isset($formAtts.fade_effect) && $formAtts.fade_effect}
|
||||
// ACTION USE EFFECT
|
||||
$("#{$formAtts.id|escape:'html':'UTF-8'} .tab-pane").addClass("fade");
|
||||
{/if}
|
||||
|
||||
{if $formAtts.active_tab >= 0}
|
||||
// ACTION SET ACTIVE
|
||||
$('#{$formAtts.id|escape:'html':'UTF-8'} .nav a:eq({$formAtts.active_tab|escape:'html':'UTF-8'})').trigger('click');
|
||||
{/if}
|
||||
});
|
||||
</script>
|
||||
<div{if isset($formAtts.id)} id="{$formAtts.id|escape:'html':'UTF-8'}"{/if} class="ApTabs AjaxTabs {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}">
|
||||
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8'}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.tab_mobile_type) && $formAtts.tab_mobile_type =='tabs-dropdown'}
|
||||
<div class="dropdown tabs-dropdown-menu hidden-sm-up">
|
||||
<button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
{l s='Select tab' mod='appagebuilder'}
|
||||
</button>
|
||||
<div class="dropdown-menu" role="tablist">
|
||||
{foreach from=$subTabContent item=subTab}
|
||||
<a href="#{$subTab.id|escape:'html':'UTF-8'}" class="dropdown-item {$subTab.form_id|escape:'html':'UTF-8'}" role="tab" data-toggle="tab">
|
||||
<span>{$subTab.title|escape:'html':'UTF-8'}</span>
|
||||
{if isset($subTab.sub_title) && $subTab.sub_title}
|
||||
<div class="sub-title-widget">{$subTab.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($subTab.image) && $subTab.image}<img class="img-fluid" src="{$path}{$subTab.image|escape:'html':'UTF-8'}" alt="{$subTab.title}"/>{/if}
|
||||
</a>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($formAtts.categorylist) && $formAtts.categorylist}
|
||||
<div class="dropdown tabs-categories" style="display: inline-block;float: right;">
|
||||
<button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
{l s='Select category' mod='appagebuilder'}
|
||||
</button>
|
||||
<div class="dropdown-menu" >
|
||||
{foreach from=$formAtts.categorylist item=subCat}
|
||||
<a class="dropdown-item" href="#">
|
||||
<input type="radio" class="ajaxtabcate" id="ajaxtabcate{$subCat.id_category}" name="ajaxtabcate" value="{$subCat.id_category}">
|
||||
<label for="ajaxtabcate{$subCat.id_category}"> {$subCat.name|escape:'html':'UTF-8'}</label>
|
||||
</a>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $formAtts.tab_type =='tabs-left'}
|
||||
<div class="block_content">
|
||||
<ul class="nav nav-tabs col-md-3{if isset($formAtts.tab_mobile_type)}{if $formAtts.tab_mobile_type =='tabs-accordion'} tabs-accordion{else if $formAtts.tab_mobile_type =='tabs-dropdown'} tabs-dropdown hidden-xs-down{/if}{/if}" role="tablist">
|
||||
{foreach from=$subTabContent item=subTab}
|
||||
<li class="nav-item {(isset($subTab.css_class)) ? $subTab.css_class : ''|escape:'html':'UTF-8'}">
|
||||
<a href="#{$subTab.id|escape:'html':'UTF-8'}" class="nav-link {$subTab.form_id|escape:'html':'UTF-8'}" role="tab" data-toggle="tab">
|
||||
<span>{$subTab.title|escape:'html':'UTF-8'}</span>
|
||||
{if isset($subTab.sub_title) && $subTab.sub_title}
|
||||
<div class="sub-title-widget">{$subTab.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($subTab.image) && $subTab.image}<img class="img-fluid" src="{$path}{$subTab.image|escape:'html':'UTF-8'}" alt="{$subTab.title}"/>{/if}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
|
||||
</ul>
|
||||
<div class="tab-content col-md-9">
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $formAtts.tab_type =='tabs-right'}
|
||||
<div class="block_content">
|
||||
<div class="tab-content col-md-9">
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
<ul class="nav nav-tabs col-md-3{if isset($formAtts.tab_mobile_type)}{if $formAtts.tab_mobile_type =='tabs-accordion'} tabs-accordion{else if $formAtts.tab_mobile_type =='tabs-dropdown'} tabs-dropdown hidden-xs-down{/if}{/if}" role="tablist">
|
||||
{foreach from=$subTabContent item=subTab}
|
||||
<li class="nav-item {(isset($subTab.css_class)) ? $subTab.css_class : ''|escape:'html':'UTF-8'}">
|
||||
<a href="#{$subTab.id|escape:'html':'UTF-8'}" class="nav-link {$subTab.form_id|escape:'html':'UTF-8'}" role="tab" data-toggle="tab">
|
||||
<span>{$subTab.title|escape:'html':'UTF-8'}</span>
|
||||
{if isset($subTab.sub_title) && $subTab.sub_title}
|
||||
<div class="sub-title-widget">{$subTab.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($subTab.image) && $subTab.image}<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload}data-src{else}src{/if}="{$path}{$subTab.image|escape:'html':'UTF-8'}" alt="{$subTab.title}"/>{/if}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{if $formAtts.tab_type =='tabs-below'}
|
||||
<div class="block_content">
|
||||
<div class="tab-content">
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
<ul class="nav nav-tabs{if isset($formAtts.tab_mobile_type)}{if $formAtts.tab_mobile_type =='tabs-accordion'} tabs-accordion{else if $formAtts.tab_mobile_type =='tabs-dropdown'} tabs-dropdown hidden-xs-down{/if}{/if}" role="tablist">
|
||||
{foreach from=$subTabContent item=subTab}
|
||||
<li class="nav-item {(isset($subTab.css_class)) ? $subTab.css_class : ''|escape:'html':'UTF-8'}">
|
||||
<a href="#{$subTab.id|escape:'html':'UTF-8'}" class="nav-link {$subTab.form_id|escape:'html':'UTF-8'}" role="tab" data-toggle="tab">
|
||||
<span>{$subTab.title|escape:'html':'UTF-8'}</span>
|
||||
{if isset($subTab.sub_title) && $subTab.sub_title}
|
||||
<div class="sub-title-widget">{$subTab.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($subTab.image) && $subTab.image}<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload}data-src{else}src{/if}="{$path}{$subTab.image|escape:'html':'UTF-8'}" alt="{$subTab.title}"/>{/if}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{if $formAtts.tab_type =='tabs-top'}
|
||||
<div class="block_content">
|
||||
<ul class="nav nav-tabs{if isset($formAtts.tab_mobile_type)}{if $formAtts.tab_mobile_type =='tabs-accordion'} tabs-accordion{else if $formAtts.tab_mobile_type =='tabs-dropdown'} tabs-dropdown hidden-xs-down{/if}{/if}" role="tablist">
|
||||
{foreach from=$subTabContent item=subTab}
|
||||
<li class="nav-item {(isset($subTab.css_class)) ? $subTab.css_class : ''|escape:'html':'UTF-8'}">
|
||||
<a href="#{$subTab.id|escape:'html':'UTF-8'}" class="nav-link {$subTab.form_id|escape:'html':'UTF-8'}" role="tab" data-toggle="tab">
|
||||
<span>{$subTab.title|escape:'html':'UTF-8'}</span>
|
||||
{if isset($subTab.sub_title) && $subTab.sub_title}
|
||||
<div class="sub-title-widget">{$subTab.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($subTab.image) && $subTab.image}<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload}data-src{else}src{/if}="{$path}{$subTab.image|escape:'html':'UTF-8'}" alt="{$subTab.title}"/>{/if}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
{if $tab_name == 'ApAjaxTab'}
|
||||
{if isset($formAtts.active) && $formAtts.active}
|
||||
<div id="{$tabID|escape:'html':'UTF-8'}" class="tab-pane leo-ajax-tabs loaded" data-shortcode="{$apshortcode}">
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{else}
|
||||
<div id="{$tabID|escape:'html':'UTF-8'}" class="tab-pane leo-ajax-tabs" data-shortcode="{$apContent}">
|
||||
<div class="slick-loading" style="display: block;">
|
||||
<div class="slick-list" style="height: 600px;"> </div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
25
modules/appagebuilder/views/templates/hook/ApAlert.tpl
Normal file
25
modules/appagebuilder/views/templates/hook/ApAlert.tpl
Normal file
@@ -0,0 +1,25 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApAlert -->
|
||||
<div id="alert-{$formAtts.form_id|escape:'html':'UTF-8'}" class="block">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title) && !empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|rtrim|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
<div class="alert {$formAtts.alert_type|escape:'html':'UTF-8'}">
|
||||
{if isset($formAtts.content_html)}
|
||||
{$formAtts.content_html nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
@@ -0,0 +1,36 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApBlockCarousel -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
<div class="block block_carousel exclusive appagebuilder {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
<div class="block_content">
|
||||
{if !empty($formAtts.slides)}
|
||||
{if $formAtts.carousel_type == "slickcarousel"}
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('ApBlockSlickCarouselItem.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
{else}
|
||||
{if $formAtts.carousel_type == 'boostrap'}
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('ApBlockCarouselItem.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
{else}
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('ApBlockOwlCarouselItem.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
{/if}
|
||||
{/if}
|
||||
{else}
|
||||
<p class="alert alert-info">{l s='No slide at this time.' mod='appagebuilder'}</p>
|
||||
{/if}
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,72 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApBlockCarouselItem -->
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8'}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.descript)}
|
||||
<div>{$formAtts.descript|escape:'html':'UTF-8'}</div>
|
||||
{/if}
|
||||
<div data-ride="carousel" class="carousel slide" id="{$carouselName|escape:'html':'UTF-8'}">
|
||||
{$NumCount = count($formAtts.slides)}
|
||||
{if $NumCount > $itemsperpage}
|
||||
<div class="direction">
|
||||
<a class="carousel-control left" href="#{$carouselName|escape:'html':'UTF-8'}" data-slide="prev">
|
||||
<span class="icon-prev hidden-xs" aria-hidden="true"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="carousel-control right" href="#{$carouselName|escape:'html':'UTF-8'}" data-slide="next">
|
||||
<span class="icon-next" aria-hidden="true"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="carousel-inner">
|
||||
{$Num=array_chunk($formAtts.slides, $itemsperpage)}
|
||||
{foreach from=$Num item=sliders name=val}
|
||||
<div class="carousel-item {if $smarty.foreach.val.first}active{/if}">
|
||||
{foreach from=$sliders item=slider name="sliders"}
|
||||
{if $nbItemsPerLine == 1 || $smarty.foreach.sliders.first || $smarty.foreach.sliders.iteration%$nbItemsPerLine == 1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div class="{$scolumn|escape:'html':'UTF-8'}">
|
||||
{if $slider.link}
|
||||
<a title="{l s='%s' sprintf=[$slider.title] mod='appagebuilder'}" {if $formAtts.is_open}target="_blank"{/if} href="{$slider.link}{*full link can not escape*}">
|
||||
{/if}
|
||||
|
||||
{if isset($slider.image) && !empty($slider.image)}
|
||||
<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload} data-src{else}src{/if}="{$slider.image|escape:'html':'UTF-8'}" alt="{if isset($slider.title)}{$slider.title|escape:'html':'UTF-8'}{/if}"/>
|
||||
{else}
|
||||
{if isset($slider.image_link) && !empty($slider.image_link)}
|
||||
<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload} data-src{else}src{/if}="{$slider.image_link|escape:'html':'UTF-8'}" alt="{if isset($slider.title)}{$slider.title|escape:'html':'UTF-8'}{/if}"/>
|
||||
{/if}
|
||||
{/if}
|
||||
{if isset($slider.title) && !empty($slider.title)}
|
||||
<div class="title">{$slider.title|escape:'html':'UTF-8' nofilter}</div>
|
||||
{/if}
|
||||
{if isset($slider.sub_title) && !empty($slider.sub_title)}
|
||||
<p class="sub-title">{$slider.sub_title|escape:'html':'UTF-8' nofilter}</p>
|
||||
{/if}
|
||||
{if isset($slider.descript) && !empty($slider.descript)}
|
||||
<div class="descript">{$slider.descript nofilter}{* HTML form , no escape necessary *}</div>
|
||||
{/if}
|
||||
{if $slider.link}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
{if $nbItemsPerLine == 1 || $smarty.foreach.sliders.last || $smarty.foreach.sliders.iteration%$nbItemsPerLine == 0}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
64
modules/appagebuilder/views/templates/hook/ApBlockLink.tpl
Normal file
64
modules/appagebuilder/views/templates/hook/ApBlockLink.tpl
Normal file
@@ -0,0 +1,64 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApBlockLink -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
{if !isset($formAtts.accordion_type) || $formAtts.accordion_type == 'full'}{* Default : always full *}
|
||||
<div class="block ApLink {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}">
|
||||
{if isset($formAtts.title) && !empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
|
||||
{if isset($formAtts.links) && $formAtts.links|@count > 0}
|
||||
<ul>
|
||||
{foreach from=$formAtts.links item=item}
|
||||
{if $item.title && $item.link}
|
||||
<li><a href="{$item.link}" target="{$item.target_type}">{$item.title|escape:'html':'UTF-8'}</a></li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{elseif isset($formAtts.accordion_type) && ($formAtts.accordion_type == 'accordion' || $formAtts.accordion_type == 'accordion_small_screen')}{* Case : full or accordion*}
|
||||
<div class="block block-toggler ApLink {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}{if $formAtts.accordion_type == 'accordion_small_screen'} accordion_small_screen{/if}">
|
||||
{if isset($formAtts.title) && !empty($formAtts.title)}
|
||||
<div class="title clearfix" data-target="#footer-link-{$formAtts.form_id|escape:'html':'UTF-8'}" data-toggle="collapse">
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
<span class="float-xs-right">
|
||||
<span class="navbar-toggler collapse-icons">
|
||||
<i class="material-icons add"></i>
|
||||
<i class="material-icons remove"></i>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.links) && $formAtts.links|@count > 0}
|
||||
<ul class="collapse" id="footer-link-{$formAtts.form_id|escape:'html':'UTF-8'}">
|
||||
{foreach from=$formAtts.links item=item}
|
||||
{if $item.title && $item.link}
|
||||
<li><a href="{$item.link}" target="{$item.target_type}">{$item.title|escape:'html':'UTF-8'}</a></li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
@@ -0,0 +1,122 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApBlockOwlCarouselItem -->
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8'}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.description) && $formAtts.description}
|
||||
<p>{$formAtts.description nofilter}{* HTML form , no escape necessary *}</p>
|
||||
{/if}
|
||||
<div class="owl-row">
|
||||
<div class="timeline-wrapper clearfix prepare"
|
||||
data-item="{$formAtts.number_fake_item}"
|
||||
data-xl="{$formAtts.array_fake_item.xl}"
|
||||
data-lg="{$formAtts.array_fake_item.lg}"
|
||||
data-md="{$formAtts.array_fake_item.md}"
|
||||
data-sm="{$formAtts.array_fake_item.sm}"
|
||||
data-m="{$formAtts.array_fake_item.m}"
|
||||
>
|
||||
{for $foo=1 to $formAtts.number_fake_item}
|
||||
<div class="timeline-parent">
|
||||
{for $foo_child=1 to $formAtts.itempercolumn}
|
||||
<div class="timeline-item">
|
||||
<div class="animated-background">
|
||||
<div class="background-masker content-top"></div>
|
||||
<div class="background-masker content-second-line"></div>
|
||||
<div class="background-masker content-third-line"></div>
|
||||
<div class="background-masker content-fourth-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
<div id="{$carouselName|escape:'html':'UTF-8'}" class="owl-carousel owl-theme owl-loading">
|
||||
{$Num=array_chunk($formAtts.slides, $formAtts.itempercolumn)}
|
||||
{foreach from=$Num item=sliders name=manuloop}
|
||||
<div class="item">
|
||||
{foreach from=$sliders item=slider}
|
||||
<div class="block-carousel-container">
|
||||
<div class="left-block">
|
||||
<div class="block-carousel-image-container image">
|
||||
<div class="ap-more-info" data-id="{$slider.id|intval}"></div>
|
||||
{if $slider.link}
|
||||
<a title="{l s='%s' sprintf=[$slider.title] mod='appagebuilder'}" {if $formAtts.is_open}target="_blank"{/if} href="{$slider.link}{*full link can not escape*}">
|
||||
{/if}
|
||||
|
||||
{if (isset($slider.image) && !empty($slider.image)) || (isset($slider.image_link) && !empty($slider.image_link))}
|
||||
{if isset($formAtts) && isset($formAtts.lazyload) && $formAtts.lazyload}
|
||||
{* ENABLE LAZY LOAD OWL_CAROUSEL *}
|
||||
<img class="img-fluid lazyOwl" src="" data-src="{if $slider.image}{$slider.image}{else}{$slider.image_link}{/if}{*full link can not escape*}" alt="{if isset($slider.title)}{$slider.title|escape:'html':'UTF-8'}{/if}"/>
|
||||
{else}
|
||||
<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload} data-src{else}src{/if}="{if $slider.image}{$slider.image}{else}{$slider.image_link}{/if}{*full link can not escape*}" alt="{if isset($slider.title)}{$slider.title|escape:'html':'UTF-8'}{/if}"/>
|
||||
{/if}
|
||||
{/if}
|
||||
{if isset($slider.title) && !empty($slider.title)}
|
||||
<div class="title">{$slider.title|escape:'html':'UTF-8' nofilter}</div>
|
||||
{/if}
|
||||
{if isset($slider.sub_title) && !empty($slider.sub_title)}
|
||||
<p class="sub-title">{$slider.sub_title|escape:'html':'UTF-8' nofilter}</p>
|
||||
{/if}
|
||||
{if isset($slider.descript) && !empty($slider.descript)}
|
||||
<div class="descript">{$slider.descript|rtrim nofilter}{* HTML form , no escape necessary *}</div>
|
||||
{/if}
|
||||
{if $slider.link}{*full link can not escape*}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
$('#{$carouselName|escape:'html':'UTF-8'}').imagesLoaded( function() {
|
||||
$('#{$carouselName|escape:'html':'UTF-8'}').owlCarousel({
|
||||
items : {if $formAtts.items}{$formAtts.items|intval}{else}false{/if},
|
||||
itemsDesktop : {if isset($formAtts.itemsdesktop) && $formAtts.itemsdesktop}[1200,{$formAtts.itemsdesktop|intval}]{else}false{/if},
|
||||
itemsDesktopSmall : {if isset($formAtts.itemsdesktopsmall) && $formAtts.itemsdesktopsmall}[992,{$formAtts.itemsdesktopsmall|intval}]{else}false{/if},
|
||||
itemsTablet : {if isset($formAtts.itemstablet) && $formAtts.itemstablet}[768,{$formAtts.itemstablet|intval}]{else}false{/if},
|
||||
itemsMobile : {if isset($formAtts.itemsmobile) && $formAtts.itemsmobile}[576,{$formAtts.itemsmobile|intval}]{else}false{/if},
|
||||
itemsCustom : {if isset($formAtts.itemscustom) && $formAtts.itemscustom}{$formAtts.itemscustom|escape:'html':'UTF-8'}{else}false{/if},
|
||||
singleItem : false, // true : show only 1 item
|
||||
itemsScaleUp : false,
|
||||
slideSpeed :{if $formAtts.slidespeed}{$formAtts.slidespeed|intval}{else}200{/if}, // change speed when drag and drop a item
|
||||
paginationSpeed : {if $formAtts.paginationspeed}{$formAtts.paginationspeed|intval}{else}800{/if}, // change speed when go next page
|
||||
autoPlay : {if $formAtts.autoplay}true{else}false{/if}, // time to show each item
|
||||
stopOnHover : {if $formAtts.stoponhover}true{else}false{/if},
|
||||
navigation : {if $formAtts.navigation}true{else}false{/if},
|
||||
navigationText : ["‹", "›"],
|
||||
scrollPerPage : {if $formAtts.scrollperpage}true{else}false{/if},
|
||||
pagination : {if $formAtts.pagination}true{else}false{/if}, // show bullist
|
||||
paginationNumbers : {if $formAtts.paginationnumbers}true{else}false{/if}, // show number
|
||||
responsive : {if $formAtts.responsive}true{else}false{/if},
|
||||
lazyLoad : {if $formAtts.lazyload}true{else}false{/if},
|
||||
lazyFollow : {if $formAtts.lazyfollow}true{else}false{/if}, // true : go to page 7th and load all images page 1...7. false : go to page 7th and load only images of page 7th
|
||||
lazyEffect : "{$formAtts.lazyeffect|escape:'html':'UTF-8'}",
|
||||
autoHeight : {if $formAtts.autoheight}true{else}false{/if},
|
||||
mouseDrag : {if $formAtts.mousedrag}true{else}false{/if},
|
||||
touchDrag : {if $formAtts.touchdrag}true{else}false{/if},
|
||||
addClassActive : true,
|
||||
direction: {if $formAtts.rtl}'rtl'{else}false{/if},
|
||||
afterInit: OwlLoaded,
|
||||
afterAction : SetOwlCarouselFirstLast,
|
||||
});
|
||||
});
|
||||
});
|
||||
function OwlLoaded(el){
|
||||
el.removeClass('owl-loading').addClass('owl-loaded').parents('.owl-row').addClass('hide-loading');
|
||||
};
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,133 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApBlockCarousel -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8'}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.description) && $formAtts.description}
|
||||
<p>{$formAtts.description nofilter}{* HTML form , no escape necessary *}</p>
|
||||
{/if}
|
||||
{if !empty($formAtts.slides)}
|
||||
<div class="slick-row">
|
||||
<div class="timeline-wrapper clearfix prepare"
|
||||
data-item="{$formAtts.number_fake_item}"
|
||||
data-xl="{if isset($formAtts.array_fake_item.xl)}{$formAtts.array_fake_item.xl}{/if}"
|
||||
data-lg="{if isset($formAtts.array_fake_item.lg)}{$formAtts.array_fake_item.lg}{/if}"
|
||||
data-md="{if isset($formAtts.array_fake_item.md)}{$formAtts.array_fake_item.md}{/if}"
|
||||
data-sm="{if isset($formAtts.array_fake_item.sm)}{$formAtts.array_fake_item.sm}{/if}"
|
||||
data-m="{if isset($formAtts.array_fake_item.m)}{$formAtts.array_fake_item.m}{/if}"
|
||||
>
|
||||
{for $foo=1 to $formAtts.number_fake_item}
|
||||
<div class="timeline-parent">
|
||||
{for $foo_child=1 to $formAtts.slick_row}
|
||||
<div class="timeline-item">
|
||||
<div class="animated-background">
|
||||
<div class="background-masker content-top"></div>
|
||||
<div class="background-masker content-second-line"></div>
|
||||
<div class="background-masker content-third-line"></div>
|
||||
<div class="background-masker content-fourth-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
<div class="slick-blogs slick-slider slick-loading" id="{$formAtts.form_id|escape:'html':'UTF-8'}">
|
||||
{foreach from=$formAtts.slides item=slider name=mypLoop}
|
||||
<div class="slick-slide {if $smarty.foreach.mypLoop.index == 0} first{/if}">
|
||||
<div class="item">
|
||||
<div class="block-carousel-container">
|
||||
<div class="left-block">
|
||||
<div class="block-carousel-image-container image">
|
||||
<div class="ap-more-info" data-id="{$slider.id|intval}"></div>
|
||||
{if $slider.link}
|
||||
<a title="{l s='%s' sprintf=[$slider.title] mod='appagebuilder'}" {if $formAtts.is_open}target="_blank"{/if} href="{$slider.link}{*full link can not escape*}">
|
||||
{/if}
|
||||
|
||||
{if isset($slider.image) && !empty($slider.image)}
|
||||
<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload} data-src{else}src{/if}="{$slider.image}{*full link can not escape*}" alt="{if isset($slider.title)}{$slider.title|escape:'html':'UTF-8'}{/if}"/>
|
||||
{else}
|
||||
{if isset($slider.image_link) && !empty($slider.image_link)}
|
||||
<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload} data-src{else}src{/if}="{$slider.image_link}{*full link can not escape*}" alt="{if isset($slider.title)}{$slider.title|escape:'html':'UTF-8'}{/if}"/>
|
||||
{/if}
|
||||
{/if}
|
||||
{if isset($slider.title) && !empty($slider.title)}
|
||||
<div class="title">{$slider.title|escape:'html':'UTF-8' nofilter}</div>
|
||||
{/if}
|
||||
{if isset($slider.sub_title) && !empty($slider.sub_title)}
|
||||
<p class="sub-title">{$slider.sub_title|escape:'html':'UTF-8' nofilter}</p>
|
||||
{/if}
|
||||
{if isset($slider.descript) && !empty($slider.descript)}
|
||||
<div class="descript">{$slider.descript|rtrim nofilter}{* HTML form , no escape necessary *}</div>
|
||||
{/if}
|
||||
{if $slider.link}{*full link can not escape*}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<p class="alert alert-info">{l s='No slide at this time.' mod='appagebuilder'}</p>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
$('#{$formAtts.form_id|escape:'html':'UTF-8'}').imagesLoaded( function() {
|
||||
$('#{$formAtts.form_id|escape:'html':'UTF-8'}').slick(
|
||||
{if $formAtts.slick_custom_status}
|
||||
{$formAtts.slick_custom}
|
||||
{else}
|
||||
{
|
||||
centerMode: {if isset($formAtts.slick_centermode) && $formAtts.slick_centermode}true{else}false{/if},
|
||||
centerPadding: '{if isset($formAtts.slick_centerpadding) && $formAtts.slick_centerpadding}{$formAtts.slick_centerpadding}{else}0{/if}px',
|
||||
dots: {if $formAtts.slick_dot}true{else}false{/if},
|
||||
infinite: {if isset($formAtts.slick_loopinfinite) && $formAtts.slick_loopinfinite}true{else}false{/if},
|
||||
vertical: {if $formAtts.slick_vertical}true{else}false{/if},
|
||||
verticalSwiping : {if $formAtts.slick_vertical}true{else}false{/if},
|
||||
autoplay: {if $formAtts.slick_autoplay}true{else}false{/if},
|
||||
pauseonhover: {if $formAtts.slick_pauseonhover}true{else}false{/if},
|
||||
autoplaySpeed: 2000,
|
||||
arrows: {if $formAtts.slick_arrows}true{else}false{/if},
|
||||
rows: {$formAtts.slick_row},
|
||||
slidesToShow: {$formAtts.slick_slidestoshow},
|
||||
slidesToScroll: {if $formAtts.slick_dot}{$formAtts.slick_slidestoshow}{else}{$formAtts.slick_slidestoscroll}{/if},
|
||||
rtl: {if isset($IS_RTL) && $IS_RTL}true{else}false{/if},
|
||||
responsive: [
|
||||
{foreach from=$formAtts.slick_items_custom item=mobile name=mobiles}
|
||||
{
|
||||
breakpoint: {$mobile.0},
|
||||
settings: {
|
||||
centerMode: {if isset($formAtts.slick_centermode) && $formAtts.slick_centermode}true{else}false{/if},
|
||||
centerPadding: '{if isset($formAtts.slick_centerpadding) && $formAtts.slick_centerpadding}{$formAtts.slick_centerpadding}{else}0{/if}px',
|
||||
slidesToShow: {$mobile.1},
|
||||
slidesToScroll: {if $formAtts.slick_dot}{$mobile.1}{else}{$formAtts.slick_slidestoscroll}{/if},
|
||||
}
|
||||
},
|
||||
{/foreach}
|
||||
]
|
||||
}
|
||||
{/if}
|
||||
);
|
||||
$('#{$formAtts.form_id|escape:'html':'UTF-8'}').removeClass('slick-loading').addClass('slick-loaded').parents('.slick-row').addClass('hide-loading');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
50
modules/appagebuilder/views/templates/hook/ApBlog.tpl
Normal file
50
modules/appagebuilder/views/templates/hook/ApBlog.tpl
Normal file
@@ -0,0 +1,50 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApBlog -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
|
||||
<div id="blog-{$formAtts.form_id|escape:'html':'UTF-8'}" class="block latest-blogs exclusive appagebuilder {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}">
|
||||
{($apLiveEdit) ? $apLiveEdit : '' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title)&&!empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|rtrim|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
<div class="block_content">
|
||||
{if !empty($products)}
|
||||
{if $formAtts.carousel_type == "slickcarousel"}
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('BlogSlickCarousel.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
{else}
|
||||
{if $formAtts.carousel_type == 'boostrap'}
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('BlogCarousel.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
{else}
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('BlogOwlCarousel.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
{/if}
|
||||
{/if}
|
||||
{else}
|
||||
<p class="alert alert-info">{l s='No blog at this time.' mod='appagebuilder'}</p>
|
||||
{/if}
|
||||
{if isset($formAtts.bleoblogs_show) && $formAtts.bleoblogs_show}
|
||||
<div class="blog-viewall float-xs-right">
|
||||
<a class="btn btn-primary" href="{$formAtts.leo_blog_helper->getFontBlogLink()}" title="{l s='View All' mod='appagebuilder'}">{l s='View All' mod='appagebuilder'}</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
29
modules/appagebuilder/views/templates/hook/ApButton.tpl
Normal file
29
modules/appagebuilder/views/templates/hook/ApButton.tpl
Normal file
@@ -0,0 +1,29 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApButton -->
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
<div class="AppButton {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'} {if isset($formAtts.is_block) && $formAtts.is_block} btn-block{/if}">
|
||||
{if isset($formAtts.title) && !empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.name) && $formAtts.name}
|
||||
{if isset($formAtts.url) && $formAtts.url}
|
||||
<a href="{$formAtts.url}{*full link can not escape*}" {if isset($formAtts.is_blank) && $formAtts.is_blank}target="_blank"{/if}>
|
||||
{/if}
|
||||
<span class="btn {$formAtts.button_type|escape:'html':'UTF-8'} {$formAtts.button_size|escape:'html':'UTF-8'}">{$formAtts.name|escape:'html':'UTF-8'}</span>
|
||||
{if isset($formAtts.url) && $formAtts.url}
|
||||
</a>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
@@ -0,0 +1,94 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApCategoryImage -->
|
||||
{function name=apmenu level=0}
|
||||
<ul class="level{$level|intval} {if $level == 0} ul-{$random|escape:'html':'UTF-8'}{/if}">
|
||||
{foreach $data as $category}
|
||||
{if isset($category.children) && is_array($category.children)}
|
||||
<li class="cate_{$category.id_category|intval}" >
|
||||
<a href="{$link->getCategoryLink($category.id_category, $category.link_rewrite)|escape:'html':'UTF-8'}">
|
||||
<span class="cate_content">
|
||||
<span class="cover-img">
|
||||
{if isset($category.image)}
|
||||
<img class="img-fluid" {if $aplazyload}class="lazy" data-src{else}src{/if}='{$category["image"]|escape:'html':'UTF-8'}' alt='{$category["name"]|escape:'html':'UTF-8'}'
|
||||
{if $formAtts.showicons == 0 || ($level gt 0 && $formAtts.showicons == 2)} style="display:none"{/if}/>
|
||||
{/if}
|
||||
</span>
|
||||
<span class="cat_name">{$category.name|escape:'html':'UTF-8'}</span>
|
||||
</span>
|
||||
</a>
|
||||
{apmenu data=$category.children level=$level+1}
|
||||
</li>
|
||||
{else}
|
||||
<li class="cate_{$category.id_category|intval}">
|
||||
<a href="{$link->getCategoryLink($category.id_category, $category.link_rewrite)|escape:'html':'UTF-8'}">
|
||||
<span class="cate_content">
|
||||
<span class="cover-img">
|
||||
{if isset($category.image)}
|
||||
<img height = '10px' {if $aplazyload}class="lazy" data-src{else}src{/if}='{$category["image"]|escape:'html':'UTF-8'}' alt='{$category["name"]|escape:'html':'UTF-8'}'
|
||||
{if $formAtts.showicons == 0 || ($level gt 0 && $formAtts.showicons == 2)} style="display:none"{/if}/>
|
||||
{/if}
|
||||
</span>
|
||||
<span>{$category.name|escape:'html':'UTF-8'}</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/function}
|
||||
|
||||
{if isset($categories)}
|
||||
<div class="widget-category_image block {if isset($formAtts.class)}{$formAtts.class|escape:'html':'UTF-8'}{/if}">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title) && !empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
<div class="block_content">
|
||||
{foreach from = $categories key=key item =cate}
|
||||
{apmenu data=$cate}
|
||||
{/foreach}
|
||||
<div id="view_all_wapper_{$random|escape:'html':'UTF-8'}" class="view_all_wapper hide">
|
||||
<a class="btn btn-primary view_all" href="javascript:void(0)">{l s='View all' mod='appagebuilder'}</a>
|
||||
</div>
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
ap_list_functions.push(function(){
|
||||
$(".view_all_wapper").hide();
|
||||
var limit = {/literal}{$formAtts.limit|intval}{literal};
|
||||
var level = {/literal}{$formAtts.cate_depth|intval}{literal} - 1;
|
||||
$("ul.ul-{/literal}{$random|escape:'html':'UTF-8'}, ul.ul-{$random|escape:'html':'UTF-8'} ul"{literal}).each(function(){
|
||||
var element = $(this).find(">li").length;
|
||||
var count = 0;
|
||||
$(this).find(">li").each(function(){
|
||||
count = count + 1;
|
||||
if(count > limit){
|
||||
// $(this).remove();
|
||||
$(this).hide();
|
||||
}
|
||||
});
|
||||
if(element > limit) {
|
||||
view = $(".view_all","#view_all_wapper_{/literal}{$random|escape:'html':'UTF-8'}"){literal}.clone(1);
|
||||
// view.appendTo($(this).find("ul.level" + level));
|
||||
view.appendTo($(this));
|
||||
var href = $(this).closest("li").find('a:first-child').attr('href');
|
||||
$(view).attr("href", href);
|
||||
}
|
||||
})
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
29
modules/appagebuilder/views/templates/hook/ApColumn.tpl
Normal file
29
modules/appagebuilder/views/templates/hook/ApColumn.tpl
Normal file
@@ -0,0 +1,29 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApColumn -->
|
||||
<div{if isset($formAtts.id) && $formAtts.id} id="{$formAtts.id|escape:'html':'UTF-8'}"{/if}
|
||||
class="{(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'} {(isset($formAtts.animation) && $formAtts.animation != 'none'|escape:'html':'UTF-8') ? 'has-animation' : ''}"
|
||||
{if isset($formAtts.animation) && $formAtts.animation != 'none'} data-animation="{$formAtts.animation|escape:'html':'UTF-8'}"
|
||||
{if isset($formAtts.animation_delay) && $formAtts.animation_delay != ''} data-animation-delay="{$formAtts.animation_delay|escape:'html':'UTF-8'}" {/if}
|
||||
{if isset($formAtts.animation_duration) && $formAtts.animation_duration != ''} data-animation-duration="{$formAtts.animation_duration|escape:'html':'UTF-8'}" {/if}
|
||||
{if isset($formAtts.animation_iteration_count) && $formAtts.animation_iteration_count != ''} data-animation-iteration-count="{$formAtts.animation_iteration_count|escape:'html':'UTF-8'}" {/if}
|
||||
{if isset($formAtts.animation_infinite) && $formAtts.animation_infinite != ''} data-animation-infinite="{$formAtts.animation_infinite|escape:'html':'UTF-8'}" {/if}
|
||||
{/if}
|
||||
>
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block title-ap-column">{$formAtts.title nofilter}{* HTML form , no escape necessary *}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget sub-title-ap-column">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.content_html)}
|
||||
{$formAtts.content_html|escape:'html':'UTF-8' nofilter}
|
||||
{else}
|
||||
{$apContent nofilter}
|
||||
{/if}
|
||||
</div>
|
||||
57
modules/appagebuilder/views/templates/hook/ApCountdown.tpl
Normal file
57
modules/appagebuilder/views/templates/hook/ApCountdown.tpl
Normal file
@@ -0,0 +1,57 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApCountdown -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($formAtts.active) && $formAtts.active == 1}
|
||||
<div id="countdown-{$formAtts.form_id|escape:'html':'UTF-8'}" class="{(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}">
|
||||
|
||||
{if isset($formAtts.title) && !empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title nofilter}{* HTML form , no escape necessary *}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.description) && !empty($formAtts.description)}
|
||||
{$formAtts.description nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
|
||||
|
||||
<ul class="ap-countdown-time deal-clock lof-clock-11-detail list-inline"></ul>
|
||||
|
||||
<p class="ap-countdown-link">
|
||||
{if isset($formAtts.link) && $formAtts.link}
|
||||
{if isset($formAtts.new_tab) && $formAtts.new_tab == 1}
|
||||
<a href="{$formAtts.link|escape:'html':'UTF-8'}" target="_blank">{$formAtts.link_label|escape:'html':'UTF-8'}</a>
|
||||
{/if}
|
||||
{if isset($formAtts.new_tab) && $formAtts.new_tab == 0}
|
||||
<a href="{$formAtts.link|escape:'html':'UTF-8'}">{$formAtts.link_label|escape:'html':'UTF-8'}</a>
|
||||
{/if}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
var text_d = '{l s='days' mod='appagebuilder'}';
|
||||
var text_h = '{l s='hours' mod='appagebuilder'}';
|
||||
var text_m = '{l s='min' mod='appagebuilder'}';
|
||||
var text_s = '{l s='sec' mod='appagebuilder'}';
|
||||
$(".lof-clock-11-detail").lofCountDown({
|
||||
TargetDate:"{$formAtts.time_to|escape:'html':'UTF-8'}",
|
||||
DisplayFormat:'<li class="z-depth-1">%%D%%<span>'+text_d+'</span></li><li class="z-depth-1">%%H%%<span>'+text_h+'</span></li><li class="z-depth-1">%%M%%<span>'+text_m+'</span></li><li class="z-depth-1">%%S%%<span>'+text_s+'</span></li>',
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
{/if}
|
||||
47
modules/appagebuilder/views/templates/hook/ApCounter.tpl
Normal file
47
modules/appagebuilder/views/templates/hook/ApCounter.tpl
Normal file
@@ -0,0 +1,47 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\Apcounter -->
|
||||
<div class="block Apcounter {(isset($formAtts.widget_class)) ? $formAtts.widget_class : ''|escape:'html':'UTF-8'}">
|
||||
{if isset($formAtts.widget_title) && !empty($formAtts.widget_title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.widget_title|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
|
||||
{if isset($formAtts.links) && $formAtts.links|@count > 0}
|
||||
<ul>
|
||||
{foreach from=$formAtts.links item=item}
|
||||
<li>
|
||||
{if isset($item.link_title) && !empty($item.link_title)}
|
||||
<h4 class="counter_title_top">
|
||||
{$item.link_title|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
<div class="numscroller{if isset($item.counterclass) && !empty($item.counterclass)} {$item.counterclass}{/if}" data-min="{$item.min}" data-max="{$item.max}" data-delay="{$item.delay}" data-increment="{$item.increment}">0</div>
|
||||
{if isset($item.number_suffix) && !empty($item.number_suffix)}
|
||||
<span class="counter-suffix">{$item.number_suffix}</span>
|
||||
{/if}
|
||||
{if isset($item.bootom_html) && !empty($item.bootom_html)}
|
||||
<div class="counter_bottom">
|
||||
{$item.bootom_html nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
57
modules/appagebuilder/views/templates/hook/ApFacebook.tpl
Normal file
57
modules/appagebuilder/views/templates/hook/ApFacebook.tpl
Normal file
@@ -0,0 +1,57 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApFacebook -->
|
||||
|
||||
<script type="text/javascript">
|
||||
var fb_lang = 'en_US';
|
||||
</script>
|
||||
|
||||
{if isset($formAtts.fb_lang) && $formAtts.fb_lang != ''}
|
||||
<script type="text/javascript">
|
||||
fb_lang = "{$formAtts.fb_lang}";
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
<div class="widget-facebook block">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
<div id="fb-root"></div>
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8'}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.page_url) && $formAtts.page_url}
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
console.log(fb_lang);
|
||||
// Check avoid include duplicate library Facebook SDK
|
||||
if($("#facebook-jssdk").length == 0) {
|
||||
(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "https://connect.facebook.net/" + fb_lang + "/sdk.js#xfbml=1&version=v5.0";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="fb-page" data-href="{$formAtts.page_url|escape:'html':'UTF-8'}" data-tabs="{$formAtts.tabs}"
|
||||
{if isset($formAtts.height) && $formAtts.height}data-height="{$formAtts.height|escape:'html':'UTF-8'}"{/if}
|
||||
{if isset($formAtts.width) && $formAtts.width}data-width="{$formAtts.width|escape:'html':'UTF-8'}"{/if}
|
||||
data-small-header="{if $formAtts.small_header}true{else}false{/if}"
|
||||
data-adapt-container-width="{if $formAtts.adapt_container_width}true{else}false{/if}"
|
||||
data-hide-cover="{if $formAtts.hide_cover}true{else}false{/if}"
|
||||
data-hide-cta = "{if $formAtts.hide_cta}true{else}false{/if}"
|
||||
data-show-facepile="{if $formAtts.show_facepile}true{else}false{/if}">
|
||||
<blockquote cite="{$formAtts.page_url|escape:'html':'UTF-8'}" class="fb-xfbml-parse-ignore"><a href="{$formAtts.page_url|escape:'html':'UTF-8'}"> </a></blockquote></div>
|
||||
{/if}
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
25
modules/appagebuilder/views/templates/hook/ApFontAwesome.tpl
Normal file
25
modules/appagebuilder/views/templates/hook/ApFontAwesome.tpl
Normal file
@@ -0,0 +1,25 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApFontAwesome -->
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title) && !empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.font_name) && $formAtts.font_name}
|
||||
<i class="fa
|
||||
{if isset($formAtts.font_size)}{$formAtts.font_size|escape:'html':'UTF-8'}{/if}
|
||||
{if isset($formAtts.font_type)}{$formAtts.font_type|escape:'html':'UTF-8'}{/if}
|
||||
{if isset($formAtts.is_spin)}{$formAtts.is_spin|escape:'html':'UTF-8'}{/if}
|
||||
{$formAtts.font_name|escape:'html':'UTF-8'}"></i>
|
||||
{/if}
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
67
modules/appagebuilder/views/templates/hook/ApFullSlider.tpl
Normal file
67
modules/appagebuilder/views/templates/hook/ApFullSlider.tpl
Normal file
@@ -0,0 +1,67 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApFullSlider -->
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8'}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if $formAtts.slides}
|
||||
{assign var=slides_count value=$formAtts.slides|@count}
|
||||
<div id="{$formAtts.form_id|escape:'html':'UTF-8'}" class="block carousel slide full-slider {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}"
|
||||
data-ride="carousel"
|
||||
style="width:{if $formAtts.width}{$formAtts.width|escape:'html':'UTF-8'}{else}100%{/if};
|
||||
height:{if $formAtts.height}{$formAtts.height|escape:'html':'UTF-8'}{else}400px{/if};">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
<ol class="carousel-indicators {if (isset($formAtts.display_indicators)
|
||||
&& $formAtts.display_indicators == 0) || $slides_count <= 1}hide{/if}">
|
||||
{assign var="count" value="0"}
|
||||
{foreach $formAtts.slides as $slide}
|
||||
<li {if $count == 0}class="active"{/if} data-slide-to="{$count|intval}" data-target="#{$formAtts.form_id|escape:'html':'UTF-8'}"></li>
|
||||
{$count = $count + 1}
|
||||
{/foreach}
|
||||
</ol>
|
||||
<div role="listbox" class="carousel-inner">
|
||||
{assign var="count" value="0"}
|
||||
{foreach $formAtts.slides as $slide}
|
||||
<div class="carousel-item {if $count == 0}active{/if}">
|
||||
{if $slide['img']}
|
||||
<img {if $aplazyload}class="lazy" data-src{else}src{/if}="{$slide['img']}{*full link can not validate*}" alt="{$slide['title'] nofilter}{* HTML form , no escape necessary *}"/>
|
||||
{else}
|
||||
{if isset($slide['image_link']) && $slide['image_link']}
|
||||
<img {if $aplazyload}class="lazy" data-src{else}src{/if}="{$slide['image_link']}{*full link can not validate*}" alt="{$slide['title'] nofilter}{* HTML form , no escape necessary *}"/>
|
||||
{/if}
|
||||
{/if}
|
||||
<div class="content-slider">{$slide['descript']}</div>
|
||||
{if (isset($formAtts.display_title) && $formAtts.display_title) || !isset($formAtts.display_title)}
|
||||
<div class="carousel-caption">
|
||||
{if $slide['link']}
|
||||
<a href="{$slide['link']}" {if isset($formAtts.is_open) && $formAtts.is_open}target="_blank"{/if}>
|
||||
{/if}
|
||||
<h3>{$slide['title'] nofilter}{* HTML form , no escape necessary *}</h3>
|
||||
{if $slide['link']}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{$count = $count + 1}
|
||||
{/foreach}
|
||||
</div>
|
||||
<a data-slide="prev" role="button" href="#{$formAtts.form_id|escape:'html':'UTF-8'}" class="left carousel-control">
|
||||
<span aria-hidden="true" class="glyphicon glyphicon-chevron-left">‹</span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a data-slide="next" role="button" href="#{$formAtts.form_id|escape:'html':'UTF-8'}" class="right carousel-control">
|
||||
<span aria-hidden="true" class="glyphicon glyphicon-chevron-right">›</span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
19
modules/appagebuilder/views/templates/hook/ApGenCode.tpl
Normal file
19
modules/appagebuilder/views/templates/hook/ApGenCode.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApGenCode -->
|
||||
|
||||
{*{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}*}
|
||||
{if isset($formAtts.tpl_file) && !empty($formAtts.tpl_file)}
|
||||
{include file=$formAtts.tpl_file}
|
||||
{/if}
|
||||
|
||||
{if isset($formAtts.error_file) && !empty($formAtts.error_file)}
|
||||
{$formAtts.error_message nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
24
modules/appagebuilder/views/templates/hook/ApGeneral.tpl
Normal file
24
modules/appagebuilder/views/templates/hook/ApGeneral.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApGeneral -->
|
||||
<div{if isset($formAtts.id) && $formAtts.id} id="{$formAtts.id|escape:'html':'UTF-8' nofilter}"{/if}
|
||||
{if isset($formAtts.class)} class="block {$formAtts.class|escape:'html':'UTF-8'}"{/if}>
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8' nofilter}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.content_html)}
|
||||
{$formAtts.content_html nofilter}{* HTML form , no escape necessary *}
|
||||
{else}
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
150
modules/appagebuilder/views/templates/hook/ApGmap.tpl
Normal file
150
modules/appagebuilder/views/templates/hook/ApGmap.tpl
Normal file
@@ -0,0 +1,150 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApGmap -->
|
||||
{if ($page_name != 'stores' || $formAtts.stores == 1) && ($page_name != 'sitemap' || $formAtts.sitemap == 1)}
|
||||
<div id="google-maps-{$formAtts.form_id|escape:'html':'UTF-8'}" class="block widget-gmap">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title) && !empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
<div class="gmap-cover {if $hasListStore}display-list-store{else}not-display-list-store{/if}" style="width: 100%;
|
||||
height:{if isset($formAtts.height) && $formAtts.height}{$formAtts.height}{else}100%;{/if}; clear:both;">
|
||||
{if $hasListStore}
|
||||
<div class="gmap-content col-lg-9 col-md-8 col-sm-8 col-xs-6">
|
||||
{else}
|
||||
<div class="gmap-content">
|
||||
{/if}
|
||||
<div id="map-canvas-{$formAtts.form_id|escape:'html':'UTF-8'}" class="gmap" style="min-width:100px; min-height:100px;
|
||||
width:{if isset($formAtts.width) && $formAtts.width}{$formAtts.width|escape:'html':'UTF-8'}{else}100%;{/if};
|
||||
height:{if isset($formAtts.height) && $formAtts.height}{$formAtts.height|escape:'html':'UTF-8'}{else}100%;{/if};"></div>
|
||||
</div>
|
||||
{if $hasListStore}
|
||||
<div class="gmap-stores-content col-lg-3 col-md-4 col-sm-4 col-xs-6" style="height: 100%">
|
||||
<div id="gmap-stores-list-{$formAtts.form_id|escape:'html':'UTF-8'}">
|
||||
<ul></ul>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
$('<script>')
|
||||
.attr('type', 'text/javascript')
|
||||
.attr('src', 'https://maps.googleapis.com/maps/api/js?key={if isset($formAtts.gkey) && $formAtts.gkey}{$formAtts.gkey}{/if}&callback=initLeoMap')
|
||||
.appendTo('head');
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var apGMap = {$apGMap nofilter};
|
||||
var marker_list_{$formAtts.form_id} = {$marker_list nofilter};
|
||||
var marker_center = {$marker_center nofilter}
|
||||
var markers_{$formAtts.form_id|escape:'html':'UTF-8'} = [];
|
||||
|
||||
function displayAMarker(data, obj, id) {
|
||||
var m = markers_{$formAtts.form_id|escape:'html':'UTF-8'}[id];
|
||||
google.maps.event.trigger(m, 'click');
|
||||
}
|
||||
function initializeListStore(data, name) {
|
||||
var obj = $("#" + name + " ul");
|
||||
synSize(name);
|
||||
for(var i = 0; i < data.length; i++) {
|
||||
var s = data[i];
|
||||
obj.append("<li class='item-gmap-store' marker-id='" + i + "'"
|
||||
+ "onclick='return displayAMarker(marker_list_{$formAtts.form_id|escape:'html':'UTF-8'}, this, " + i + ");'>"
|
||||
+ "<strong><b><span class='icon-map-marker'></span> "
|
||||
+ s.name + "</b></strong><br/><text>" + s.address + "</text>");
|
||||
}
|
||||
}
|
||||
function initLeoMap(){
|
||||
initializeGmap('',
|
||||
marker_list_{$formAtts.form_id|escape:'html':'UTF-8'},
|
||||
markers_{$formAtts.form_id|escape:'html':'UTF-8'},
|
||||
"map-canvas-{$formAtts.form_id|escape:'html':'UTF-8'}",
|
||||
{$formAtts.zoom|escape:'html':'UTF-8'});
|
||||
|
||||
if("{$hasListStore|escape:'html':'UTF-8'}".length > 0) {
|
||||
initializeListStore(
|
||||
marker_list_{$formAtts.form_id|escape:'html':'UTF-8'},
|
||||
"gmap-stores-list-{$formAtts.form_id|escape:'html':'UTF-8'}");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// CODE HERE not write in *.js, compatility with Chrome
|
||||
function initializeGmap(map, data, markers, nameGmap, zoom)
|
||||
{
|
||||
map = new google.maps.Map(document.getElementById(nameGmap), {
|
||||
center: new google.maps.LatLng(marker_center.latitude, marker_center.longitude),
|
||||
zoom: zoom,
|
||||
mapTypeId: 'roadmap'
|
||||
});
|
||||
|
||||
if(data.length>0)
|
||||
{
|
||||
setTimeout(createMarkers(map, markers, data), 1500);
|
||||
}
|
||||
else
|
||||
{
|
||||
markers[0] = new google.maps.Marker({
|
||||
position: new google.maps.LatLng(marker_center.latitude, marker_center.longitude),
|
||||
animation: google.maps.Animation.DROP,
|
||||
map: map,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
function createMarkers(map, markers, data) {
|
||||
// dataMarkers
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
var obj = data[i];
|
||||
var lg = parseFloat(obj.longitude);
|
||||
var lt = parseFloat(obj.latitude);
|
||||
var name = obj.name;
|
||||
var address = obj.address;
|
||||
var other = obj.other;
|
||||
var id_store = obj.id_store;
|
||||
var has_store_picture = obj.has_store_picture;
|
||||
|
||||
var latlng = new google.maps.LatLng(lt, lg);
|
||||
var html = "<div style='min-width:200px;'><b>" + name + "</b><br/>" + address;
|
||||
html += (has_store_picture ? "<br /><br /><p><img src='" + apGMap.img_store_dir + parseInt(id_store) + ".jpg' alt='' /></p>" : "");
|
||||
html += other + "<a href='http://maps.google.com/maps?saddr=&daddr=" + latlng + "' target='_blank'>" + apGMap.translation_5 +"<\/a>";
|
||||
html += "</div>";
|
||||
|
||||
var infowindow = new google.maps.InfoWindow({
|
||||
content: "loading..."
|
||||
});
|
||||
|
||||
var marker = new google.maps.Marker({
|
||||
position: new google.maps.LatLng(lt, lg),
|
||||
animation: google.maps.Animation.DROP,
|
||||
map: map,
|
||||
icon: apGMap.img_ps_dir + apGMap.logo_store,
|
||||
title: obj.name,
|
||||
html: html
|
||||
});
|
||||
|
||||
google.maps.event.addListener(marker, "click", function () {
|
||||
infowindow.setContent(this.html);
|
||||
infowindow.open(map, this);
|
||||
});
|
||||
markers[i] = marker;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
{/if}
|
||||
51
modules/appagebuilder/views/templates/hook/ApHtml.tpl
Normal file
51
modules/appagebuilder/views/templates/hook/ApHtml.tpl
Normal file
@@ -0,0 +1,51 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApGeneral -->
|
||||
<div{if isset($formAtts.id) && $formAtts.id} id="{$formAtts.id|escape:'html':'UTF-8' nofilter}"{/if}
|
||||
{if !isset($formAtts.accordion_type) || $formAtts.accordion_type == 'full'}{* Default : always full *}
|
||||
{if isset($formAtts.class)} class="block {$formAtts.class|escape:'html':'UTF-8'}"{/if}>
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8' nofilter}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.content_html)}
|
||||
<div class="block_content">{$formAtts.content_html nofilter}{* HTML form , no escape necessary *}</div>
|
||||
{else}
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{elseif isset($formAtts.accordion_type) && ($formAtts.accordion_type == 'accordion' || $formAtts.accordion_type == 'accordion_small_screen')}{* Case : full or accordion*}
|
||||
{if isset($formAtts.class)} class="block block-toggler {$formAtts.class|escape:'html':'UTF-8'}{if $formAtts.accordion_type == 'accordion_small_screen'} accordion_small_screen{/if}"{/if}>
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<div class="title clearfix" data-target="#footer-html-{$formAtts.form_id|escape:'html':'UTF-8'}" data-toggle="collapse">
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8' nofilter}</h4>
|
||||
<span class="float-xs-right">
|
||||
<span class="navbar-toggler collapse-icons">
|
||||
<i class="material-icons add"></i>
|
||||
<i class="material-icons remove"></i>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
<div class="collapse block_content" id="footer-html-{$formAtts.form_id|escape:'html':'UTF-8'}">
|
||||
{if isset($formAtts.content_html)}
|
||||
{$formAtts.content_html nofilter}{* HTML form , no escape necessary *}
|
||||
{else}
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
</div>
|
||||
41
modules/appagebuilder/views/templates/hook/ApImage.tpl
Normal file
41
modules/appagebuilder/views/templates/hook/ApImage.tpl
Normal file
@@ -0,0 +1,41 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApImage -->
|
||||
<div id="image-{$formAtts.form_id|escape:'html':'UTF-8'}" class="block {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title nofilter}{* HTML form , no escape necessary *}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
|
||||
{if (isset($formAtts.image) && $formAtts.image) || (isset($formAtts.image_link) && $formAtts.image_link)}
|
||||
{if isset($formAtts.url) && $formAtts.url}
|
||||
<a href="{$formAtts.url}{*full url can not escape*}" {(isset($formAtts.is_open) && $formAtts.is_open) ? 'target="_blank"' : ''|escape:'html':'UTF-8'}>
|
||||
{/if}
|
||||
<img {if $aplazyload}class="lazy" data-src{else}src{/if}="{if isset($formAtts.image) && $formAtts.image}{$path|escape:'html':'UTF-8'}{$formAtts.image|escape:'html':'UTF-8'}{else}{if isset($formAtts.image_link)}{$formAtts.image_link|escape:'html':'UTF-8'}{/if}{/if}" class="{(isset($formAtts.animation) && $formAtts.animation != 'none') ? 'has-animation' : ''|escape:'html':'UTF-8'}"
|
||||
{if isset($formAtts.animation) && $formAtts.animation != 'none'} data-animation="{$formAtts.animation|escape:'html':'UTF-8'}" {/if}
|
||||
{if $formAtts.animation_delay != ''} data-animation-delay="{$formAtts.animation_delay|escape:'html':'UTF-8'}" {/if}
|
||||
title="{((isset($formAtts.title) && $formAtts.title) ? $formAtts.title : '')|escape:'html':'UTF-8'}"
|
||||
alt="{((isset($formAtts.alt) && $formAtts.alt) ? $formAtts.alt : '')|escape:'html':'UTF-8'}"
|
||||
style=" width:{((isset($formAtts.width) && $formAtts.width) ? $formAtts.width : 'auto')|escape:'html':'UTF-8'};
|
||||
height:{((isset($formAtts.height) && $formAtts.height) ? $formAtts.height : 'auto')|escape:'html':'UTF-8'}" />
|
||||
|
||||
{if isset($formAtts.url) && $formAtts.url}
|
||||
</a>
|
||||
{/if}
|
||||
{/if}
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.description) && $formAtts.description}
|
||||
<div class='image_description'>
|
||||
{($formAtts.description) ? $formAtts.description:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
74
modules/appagebuilder/views/templates/hook/ApImage360.tpl
Normal file
74
modules/appagebuilder/views/templates/hook/ApImage360.tpl
Normal file
@@ -0,0 +1,74 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApImage360 -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title}{*contain html, no escape necessary*}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
<div class="clearfix" id="image-block">
|
||||
<div class="LeoImageToolboxContainer leo-image-360-block">
|
||||
<a id="apImage360" data-magic360-options="columns:{$formAtts.columns};rows:{$formAtts.row};
|
||||
images:{foreach $formAtts.image_list as $image} {if !$image|strstr:"/"}{$formAtts.image_path}{/if}{$image|escape:'html':'UTF-8'}{/foreach}"
|
||||
href="#" class="Magic360"
|
||||
style="display: inline-block; visibility: visible; overflow: hidden; position: relative; vertical-align: middle; text-decoration: none; color: rgb(0, 0, 0); background-repeat: no-repeat; background-size: 458px 458px;
|
||||
background-image:{foreach $formAtts.image_list as $image} url('{if !$image|strstr:"/"}{$formAtts.image_path}{/if}{$image|escape:'html':'UTF-8'}'),{/foreach};
|
||||
background-position:{foreach $formAtts.image_list as $image} 0px -10000px,{/foreach}
|
||||
">
|
||||
<img src="{if !$formAtts.image_default|strstr:"/"}{$formAtts.image_path}{/if}{$formAtts.image_default|escape:'html':'UTF-8'}" style="width: 100%; opacity: 1;" alt="">
|
||||
</a>
|
||||
|
||||
{if ($formAtts.message)}
|
||||
<div class="LeoImageToolboxMessage">{$formAtts.message|default:'Loading image...'|escape:'html':'UTF-8'}</div>
|
||||
{/if}
|
||||
|
||||
<div style="width:0px;height:1px;overflow:hidden;visibility:hidden;">
|
||||
<img src="{if !$formAtts.image_default|strstr:"/"}{$formAtts.image_path}{/if}{$formAtts.image_default|escape:'html':'UTF-8'}" id="bigpic" style="position: absolute; top: 5px; left: 4.5px;" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
|
||||
Magic360.options = {
|
||||
'rows':{if $formAtts.row}{$formAtts.row}{else}1{/if},
|
||||
'columns':{if $formAtts.columns}{$formAtts.columns}{else}5{/if},
|
||||
'magnify':false, // Magnifier effect
|
||||
'magnifier-width':'80%',
|
||||
'magnifier-shape':'inner',
|
||||
'fullscreen':false,
|
||||
'spin':'{$formAtts.spin|escape:'html':'UTF-8'}', // drag, hover
|
||||
'autospin-direction':'{$formAtts.autospin_direction|escape:'html':'UTF-8'}', // clockwise, anticlockwise, alternate-clockwise, alternate-anticlockwise
|
||||
'speed':{if $formAtts.speed}{$formAtts.speed|intval}{else}50{/if}, // 1 -> 100
|
||||
'mousewheel-step':{if $formAtts.mousewheel_step}{$formAtts.mousewheel_step|intval}{else}1{/if},
|
||||
'autospin-speed':{if $formAtts.autospin_speed}{$formAtts.autospin_speed|intval}{else}3600{/if}, // Choose speed of auto-spin
|
||||
'smoothing':{if $formAtts.smoothing}true{else}false{/if}, // Smoothly stop the image spinning
|
||||
'autospin':'{$formAtts.autospin|escape:'html':'UTF-8'}', // once, twice, infinite, off
|
||||
'autospin-start':'{$formAtts.autospin_start|escape:'html':'UTF-8'}', // load, hover, click, load,hover : Autospin starts on
|
||||
'autospin-stop':'{$formAtts.autospin_stop|escape:'html':'UTF-8'}', // click, hover, never,
|
||||
'initialize-on':'{$formAtts.initialize_on|escape:'html':'UTF-8'}', // load, hover, hover : When to initialize 360 (download images).
|
||||
'start-column':{if $formAtts.start_column}{$formAtts.start_column|intval}{else}1{/if}, // : Column from which to start spin. auto means to start from the middle
|
||||
'loop-column':{if $formAtts.loop_column}true{else}false{/if}, // true, false : Continue spin after the last image on X-axis
|
||||
'reverse-column':{if $formAtts.reverse_column}false{else}true{/if}, // true, false :
|
||||
'hint':{if $formAtts.hint}true{else}false{/if}, // true, false : Show hint message
|
||||
}
|
||||
|
||||
Magic360.lang = {
|
||||
'hint-text':'{$formAtts.message_desktop_hint|default:'Drag to spin'|escape:'html':'UTF-8'}',
|
||||
'mobile-hint-text':'{$formAtts.message_mobile_hint|default:'Swipe to spin'|escape:'html':'UTF-8'}',
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
107
modules/appagebuilder/views/templates/hook/ApImageGallery.tpl
Normal file
107
modules/appagebuilder/views/templates/hook/ApImageGallery.tpl
Normal file
@@ -0,0 +1,107 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApImageGallery -->
|
||||
<div class="{$formAtts.class} {$formAtts.form_id} widget ap-image-gallery">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($images)}
|
||||
<div class="widget-images block{if isset($formAtts.class)} {$formAtts.class|escape:'html':'UTF-8'}{/if}">
|
||||
{if isset($formAtts.title)&&!empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
<div class="block_content clearfix">
|
||||
<div class="images-list clearfix">
|
||||
<div class="row show_image">
|
||||
{foreach from=$images item=image name=images}
|
||||
<div class="image-item {if $columns == 5} col-md-2-4 {else} col-md-{12/$columns|intval}{/if} col-xs-12">
|
||||
<a class="fancybox" data-fancybox-group="apimagegallery{$formAtts.form_id|escape:'html':'UTF-8'}" href= "{$image|escape:'html':'UTF-8'}">
|
||||
<img class="replace-2x img-fluid{if $aplazyload} lazy{/if}
|
||||
" {if $aplazyload}data-src{else}src{/if}="{$image|escape:'html':'UTF-8'}" alt=""/>
|
||||
</a>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="alert alert-danger image_error" style="display:none"></div>
|
||||
<div class="image-template" style="display:none">
|
||||
<div class="image-item {if $columns == 5} col-md-2-4 {else} col-md-{12/$columns|intval}{/if} col-xs-12">
|
||||
<a class="fancybox" data-fancybox-group="apimagegallery{$formAtts.form_id|escape:'html':'UTF-8'}" href= "{$image|escape:'html':'UTF-8'}">
|
||||
<img class="replace-2x img-fluid{if $aplazyload} lazy{/if}
|
||||
" {if $aplazyload}data-src{else}src{/if}="{$image|escape:'html':'UTF-8'}" alt=""/>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
$(".fancybox").fancybox({
|
||||
openEffect : 'none',
|
||||
closeEffect : 'none'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
{if isset($show_more_btn) && $show_more_btn}
|
||||
<button name="show_more" class="show_more" data-assign='{$assign}' data-show_number="{$show_number}">{l s='Load more' mod='appagebuilder' js=1}</button>
|
||||
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
$('.{$formAtts.form_id} .show_more').on('click', function(){
|
||||
var show_number = $(this).attr('data-show_number');
|
||||
var assign = $(this).attr('data-assign');
|
||||
|
||||
{literal}
|
||||
$.ajax({
|
||||
headers: {"cache-control": "no-cache"},
|
||||
url: prestashop.urls.base_url + 'modules/appagebuilder/apajax.php' + '?rand=' + new Date().getTime(),
|
||||
async: true,
|
||||
cache: false,
|
||||
dataType: "Json",
|
||||
data: {"widget": 'ApImageGallery', "show_number": show_number, "assign": assign},
|
||||
{/literal}
|
||||
success: function(jsonData) {
|
||||
if (jsonData.hasError)
|
||||
{
|
||||
var errors = '';
|
||||
for(error in jsonData.errors)
|
||||
//IE6 bug fix
|
||||
if(error != 'indexOf')
|
||||
errors += '<li>' + jsonData.errors[error] + '</li>';
|
||||
$('.{$formAtts.form_id} .image_error').html('<ol>' + errors + '</ol>').show();
|
||||
} else {
|
||||
|
||||
for(var image in jsonData.images)
|
||||
{
|
||||
var html = $('.{$formAtts.form_id} .image-template .image-item').clone();
|
||||
$(html).find('a').attr('href', jsonData.images[image]);
|
||||
$(html).find('img').attr('src', jsonData.images[image]);
|
||||
$(html).appendTo('.{$formAtts.form_id} .show_image');
|
||||
}
|
||||
|
||||
if(jsonData.show_number == '-1'){
|
||||
$('.{$formAtts.form_id} .show_more').hide();
|
||||
} else {
|
||||
$('.{$formAtts.form_id} .show_more').attr('data-show_number', jsonData.show_number);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,46 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApImageGalleryProduct -->
|
||||
<div class="widget col-lg-12 col-md-6 col-sm-6 col-xs-6 col-sp-12">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
<!-- {$smallimage|escape:'html':'UTF-8'} -->
|
||||
{if isset($images)}
|
||||
<div class="widget-images block">
|
||||
{if isset($formAtts.title)&&!empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
<div class="block_content clearfix">
|
||||
<div class="images-list clearfix">
|
||||
<div class="row">
|
||||
{foreach from=$images item=image name=images}
|
||||
<div class="image-item {if $columns == 5} col-md-2-4 {else} col-md-{12/$columns|intval}{/if} col-xs-12">
|
||||
<a class="fancybox" rel="leogallery{$formAtts.form_id|escape:'html':'UTF-8'}" href= "{$link->getImageLink($image.link_rewrite, $image.id_image, $thickimage)|escape:'html':'UTF-8'}">
|
||||
<img class="replace-2x img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload}data-src{else}src{/if}="{$link->getImageLink($image.link_rewrite, $image.id_image, $smallimage)|escape:'html':'UTF-8'}" alt=""/>
|
||||
</a>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
$(".fancybox").fancybox({
|
||||
openEffect : 'none',
|
||||
closeEffect : 'none'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
</div>
|
||||
189
modules/appagebuilder/views/templates/hook/ApImageHotspot.tpl
Normal file
189
modules/appagebuilder/views/templates/hook/ApImageHotspot.tpl
Normal file
@@ -0,0 +1,189 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApImage -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
<div id="image-{$formAtts.form_id|escape:'html':'UTF-8'}" class="block {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'} {(isset($formAtts.class) && $formAtts.class) ? $formAtts.class : ''|escape:'html':'UTF-8'}">
|
||||
{($apLiveEdit)?$apLiveEdit:''}{* HTML form , no escape necessary *}
|
||||
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title}{*contain html, no escape necessary*}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if (isset($formAtts.image) && $formAtts.image) || (isset($formAtts.image_link) && $formAtts.image_link)}
|
||||
{if isset($formAtts.url) && $formAtts.url}
|
||||
<a href="{$formAtts.url}{*full url can not escape*}" {(isset($formAtts.is_open) && $formAtts.is_open) ? 'target="_blank"' : ''|escape:'html':'UTF-8'}>
|
||||
{/if}
|
||||
|
||||
<div class="imagehotspot-container">
|
||||
<div class="" style="position: relative">
|
||||
{*<img style="position: absolute; top: 0px; left: 0px; z-index: 102;" alt="" src="images/ford-fusion.jpg" />*}
|
||||
|
||||
<img {if isset($aplazyload) && $aplazyload}class="lazy" data-src{else}src{/if}="{if isset($formAtts.image) && $formAtts.image}{$path|escape:'html':'UTF-8'}{$formAtts.image|escape:'html':'UTF-8'}{else}{if isset($formAtts.image_link)}{$formAtts.image_link|escape:'html':'UTF-8'}{/if}{/if}" class="{(isset($formAtts.animation) && $formAtts.animation != 'none') ? 'has-animation' : ''|escape:'html':'UTF-8'}"
|
||||
{if isset($formAtts.animation) && $formAtts.animation != 'none'} data-animation="{$formAtts.animation|escape:'html':'UTF-8'}" {/if}
|
||||
|
||||
title="{((isset($formAtts.title) && $formAtts.title) ? $formAtts.title : '')|escape:'html':'UTF-8'}"
|
||||
alt="{((isset($formAtts.alt) && $formAtts.alt) ? $formAtts.alt : '')|escape:'html':'UTF-8'}"
|
||||
style=" width:{((isset($formAtts.width) && $formAtts.width) ? $formAtts.width : 'auto')|escape:'html':'UTF-8'};
|
||||
height:{((isset($formAtts.height) && $formAtts.height) ? $formAtts.height : 'auto')|escape:'html':'UTF-8'}" />
|
||||
|
||||
|
||||
{*{if isset($formAtts.title) && $formAtts.title=='White Cart'}
|
||||
<div class="redhotspot" id="fhotspot1" style="position: absolute; z-index: 103; width: 1.667%; height: 3.472%; top: 74%; left: 8.9%;"></div>
|
||||
<div class="redhotspot" id="fhotspot2" style="position: absolute; z-index: 103; width: 1.667%; height: 3.472%; top: 38%; left: 54%;"></div>
|
||||
{/if}*}
|
||||
|
||||
{if isset($formAtts.items) && $formAtts.items}
|
||||
{foreach from=$formAtts.items item=item}
|
||||
<div class="redhotspot {$formAtts.form_id}_{$item.id}" id="hotspot_{$formAtts.form_id}_{$item.id}" style="position: absolute; z-index: 103; width: 1.667%; height: 3.472%; top: {$item.temp_top}%; left: {$item.temp_left}%;"><span>{$item.id}</span></div>
|
||||
<script>
|
||||
ap_list_functions.push(function(){
|
||||
$("#hotspot_{$formAtts.form_id}_{$item.id}").LiteTooltip({
|
||||
location : "{$item.temp_location}",
|
||||
textalign: "{$item.temp_textalign}",
|
||||
trigger: "{$item.temp_trigger}",
|
||||
templatename: "{$item.temp_class}",
|
||||
debug : false,
|
||||
width : '{$item.temp_width}',
|
||||
opacity : '{if $item.temp_opacity == '' || $item.temp_opacity == 0}1{else}{$item.temp_opacity}{/if}',
|
||||
margin : '{$item.temp_margin}',
|
||||
padding: '{$item.temp_padding}',
|
||||
textcolor: '{$item.temp_textcolor}',
|
||||
backcolor: '{$item.temp_backcolor}',
|
||||
title:
|
||||
'<div class="template"><p>'
|
||||
{if isset($item.temp_image) && $item.temp_image}
|
||||
+ '<img src="{$item.temp_image}" class="{if $item.temp_imagealign == 'right'}image-right{elseif $item.temp_imagealign == 'left'}image-left{/if}" style="width: 100%; max-width:200px" />'
|
||||
{else}
|
||||
{if isset($item.temp_image_link) && $item.temp_image_link}
|
||||
+ '<img src="{$item.temp_image_link}" class="{if $item.temp_imagealign == 'right'}image-right{elseif $item.temp_imagealign == 'left'}image-left{/if}" style="width: 100%; max-width:200px" />'
|
||||
{/if}
|
||||
{/if}
|
||||
+ '<span class="temp_description">{$item.temp_description nofilter}</span>'
|
||||
+ '</p></div>'
|
||||
|
||||
});
|
||||
|
||||
$(".{$formAtts.form_id}_{$item.id}").css({
|
||||
"background": "{$item.temp_hpcolor}",
|
||||
"border-radius": "19.2px"
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
{if isset($formAtts.url) && $formAtts.url}
|
||||
</a>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:''}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.description) && $formAtts.description}
|
||||
<div class='image_description'>
|
||||
{($formAtts.description) ? $formAtts.description:''}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
{* var $window = $(window)*}
|
||||
//window.prettyPrint();
|
||||
|
||||
$(".redhotspot").css({
|
||||
{* "border": "solid 1px #990000",*}
|
||||
"background": "#cc0000",
|
||||
"border-radius": "19.2px"
|
||||
});
|
||||
|
||||
function blink_hotspot() {
|
||||
// car image
|
||||
$('.redhotspot').animate({ "opacity": '1' }, 'slow')
|
||||
.animate({ 'opacity': '1' }, 'fast', function () { blink_hotspot(); });
|
||||
}
|
||||
|
||||
blink_hotspot();
|
||||
});
|
||||
|
||||
|
||||
// Dien config vao day
|
||||
// có config : image-left, image-right
|
||||
/*
|
||||
$("#fhotspot1").LiteTooltip({
|
||||
textalign: "left",
|
||||
trigger: "hover", // click
|
||||
templatename: "BostonBlue",
|
||||
backcolor: '#ff0000',
|
||||
delay : '1000',
|
||||
title:
|
||||
'<div class="template">' +
|
||||
'<p style="padding: 15px; font-size: 11px; line-height: 20px;">' +
|
||||
'<img src="animal_1920_1080_1.jpg" class="image-right" style="max-width: 75px; width: 100%;" />' +
|
||||
'Take your pick of standard and available wheels on the 2013 Ford Fusion.' +
|
||||
'</p>' +
|
||||
'</div>'
|
||||
});
|
||||
|
||||
$("#fhotspot2").LiteTooltip({
|
||||
location : "left-bottom",
|
||||
textalign: "center",
|
||||
trigger: "hover",
|
||||
templatename: "BostonBlue",
|
||||
debug : true,
|
||||
width : '500px',
|
||||
delay : '1000',
|
||||
opacity : '0.2',
|
||||
margin : '50px',
|
||||
padding: '10px',
|
||||
textcolor: '#ff0000',
|
||||
backcolor: '#ff0000',
|
||||
title:
|
||||
'<div class="template">' +
|
||||
'<p style="padding: 15px; font-size: 11px; line-height: 20px;">' +
|
||||
'<img src="animal_1920_1080_1.jpg" class="image-right" style="max-width: 75px; width: 100%;" />' +
|
||||
'Ambient lighting in the Titanium with cool interior illumination.' +
|
||||
'</p>' +
|
||||
'</div>'
|
||||
});
|
||||
|
||||
|
||||
location: top | right | bottom | left | top-left | top-right | right-top | right-bottom |bottom-left | bottom-right | left-top | left-bottom
|
||||
title:
|
||||
backcolor: #ff0000
|
||||
textalign: left, right, center
|
||||
trigger: hoverable, hover, focus, click
|
||||
textcolor: #ff0000
|
||||
opacity:
|
||||
templatename:
|
||||
width:
|
||||
margin:
|
||||
padding:
|
||||
delay:
|
||||
issticky: true, false
|
||||
container:
|
||||
shadow:
|
||||
debug:true
|
||||
*/
|
||||
|
||||
</script>
|
||||
{/if}
|
||||
222
modules/appagebuilder/views/templates/hook/ApInstagram.tpl
Normal file
222
modules/appagebuilder/views/templates/hook/ApInstagram.tpl
Normal file
@@ -0,0 +1,222 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApInstagram -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
|
||||
{if !isset($formAtts.accordion_type) || $formAtts.accordion_type == 'full'}{* Default : always full *}
|
||||
<div class="block {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'} instagram-block">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8'}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
|
||||
<div class="block_content">
|
||||
<div id="instafeed" {if isset($formAtts.carousel_type) && $formAtts.carousel_type == "list"}class='normal-list'{/if}></div>
|
||||
<p class="link-instagram">
|
||||
{if isset($formAtts.profile_link) && $formAtts.profile_link}
|
||||
<a href="https://instagram.com/{$formAtts.profile_link|escape:'html':'UTF-8'}" target="_blank" title="{l s='View all in instagram' mod='appagebuilder'}"><i class="fa fa-instagram"></i> {l s='View all in instagram' mod='appagebuilder'}</a>
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
|
||||
{elseif isset($formAtts.accordion_type) && ($formAtts.accordion_type == 'accordion' || $formAtts.accordion_type == 'accordion_small_screen')}{* Case : full or accordion*}
|
||||
<div class="block {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'} instagram-block block-toggler{if $formAtts.accordion_type == 'accordion_small_screen'} accordion_small_screen{/if}">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<div class="title clearfix" data-target="#widget-instagram-{$formAtts.form_id|escape:'html':'UTF-8'}" data-toggle="collapse">
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8'}</h4>
|
||||
<span class="float-xs-right">
|
||||
<span class="navbar-toggler collapse-icons">
|
||||
<i class="material-icons add"></i>
|
||||
<i class="material-icons remove"></i>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
<div class="collapse block_content" id="widget-instagram-{$formAtts.form_id|escape:'html':'UTF-8'}">
|
||||
<div id="instafeed" {if isset($formAtts.carousel_type) && $formAtts.carousel_type == "list"}class='normal-list'{/if}></div>
|
||||
<p class="link-instagram">
|
||||
{if isset($formAtts.profile_link) && $formAtts.profile_link}
|
||||
<a href="https://instagram.com/{$formAtts.profile_link|escape:'html':'UTF-8'}" target="_blank" title="{l s='View all in instagram' mod='appagebuilder'}"><i class="fa fa-instagram"></i> {l s='View all in instagram' mod='appagebuilder'}</a>
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
var instafeed_start = 0;
|
||||
ap_list_functions.push(function(){
|
||||
|
||||
$(window).scroll(function() {
|
||||
if(instafeed_start != 1){
|
||||
var hT = $('#instafeed').offset().top,
|
||||
hH = $('#instafeed').outerHeight(),
|
||||
wH = $(window).height(),
|
||||
wS = $(this).scrollTop();
|
||||
|
||||
if (wS > (hT+hH-wH)){
|
||||
$('#instafeed').fadeOut();
|
||||
instafeed_start = 1;
|
||||
leo_create_instafeed();
|
||||
// $('#instafeed').fadeIn(3500);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var leo_create_instafeed = function() {
|
||||
var feed = new Instafeed({
|
||||
{if isset($formAtts.access_token) && $formAtts.access_token}
|
||||
accessToken: "{$formAtts.access_token|escape:'html':'UTF-8'}",
|
||||
{/if}
|
||||
{if isset($formAtts.limit) && $formAtts.limit}
|
||||
limit: {$formAtts.limit|intval},
|
||||
{/if}
|
||||
|
||||
{if isset($formAtts.carousel_type) && $formAtts.carousel_type == "list"}
|
||||
{literal}
|
||||
template: '<div class="col-sp-12 col-xs-6 col-sm-6 col-md-6 col-lg-4 col-xl-4"><a class="leo-instagram-size" target="_blank" href="{{link}}"><img title="{{caption}}" src="{{image}}"/></a></div>',
|
||||
{/literal}
|
||||
{else}
|
||||
{literal}
|
||||
template: '<a class="leo-instagram-size" target="_blank" href="{{link}}"><img title="{{caption}}" src="{{image}}"/></a>',
|
||||
{/literal}
|
||||
{/if}
|
||||
|
||||
transform: function(item) {
|
||||
var d = new Date(item.timestamp);
|
||||
item.date = [d.getDate(), d.getMonth(), d.getYear()].join('/');
|
||||
return item;
|
||||
},
|
||||
|
||||
{if isset($formAtts.carousel_type) && $formAtts.carousel_type !== "list"}
|
||||
after: function() {
|
||||
{if isset($formAtts) && isset($formAtts.lazyload) && $formAtts.lazyload}
|
||||
{* ENABLE LAZY LOAD OWL_CAROUSEL *}
|
||||
var html = $("#instafeed").html();
|
||||
html = html.replace(/ src="/g,' class="lazyOwl" data-src="');
|
||||
$("#instafeed").html(html);
|
||||
{/if}
|
||||
|
||||
{if $formAtts.carousel_type == "boostrap"}
|
||||
|
||||
{else}
|
||||
{if isset($formAtts.itempercolumn) && $formAtts.itempercolumn > 1}
|
||||
// CASE : 2,3 images in one column
|
||||
var photos = [];
|
||||
$("#instafeed img").each(function() {
|
||||
{*photos.push( $(this).wrap('<p/>').parent().html());*}
|
||||
{*photos.push( $(this).get(0).outerHTML);*}
|
||||
photos.push( $(this).parent().prop('outerHTML'));
|
||||
});
|
||||
$("#instafeed").html('');
|
||||
$("#instafeed").addClass('owl-loading');
|
||||
|
||||
var itempercolumn = {$formAtts.itempercolumn};
|
||||
|
||||
var photos = array_chunk(photos,itempercolumn);
|
||||
var total_column = photos.length;
|
||||
|
||||
for (i = 0; i < total_column; i++)
|
||||
{
|
||||
if(i == 0){
|
||||
var img_html = '<div class="item first">';
|
||||
} else {
|
||||
var img_html = '<div class="item">';
|
||||
}
|
||||
|
||||
for(j=0; j<photos[i].length; j++)
|
||||
{
|
||||
img_html += '<div class="block-carousel-container">';
|
||||
img_html += ' <div class="left-block">';
|
||||
img_html += ' <div class="block-carousel-image-container image">';
|
||||
|
||||
img_html += photos[i][j];
|
||||
|
||||
img_html += ' </div>';
|
||||
img_html += ' </div>';
|
||||
img_html += '</div>';
|
||||
}
|
||||
|
||||
$("#instafeed").html( $("#instafeed").html() + img_html );
|
||||
}
|
||||
{/if}
|
||||
|
||||
$('#instafeed').imagesLoaded( function() {
|
||||
$('#instafeed').owlCarousel({
|
||||
items: {if $formAtts.items}{$formAtts.items|intval}{else}false{/if},
|
||||
itemsDesktop: {if isset($formAtts.itemsdesktop) && $formAtts.itemsdesktop}[1200,{$formAtts.itemsdesktop|intval}]{else}false{/if},
|
||||
itemsDesktopSmall: {if isset($formAtts.itemsdesktopsmall) && $formAtts.itemsdesktopsmall}[992,{$formAtts.itemsdesktopsmall|intval}]{else}false{/if},
|
||||
itemsTablet: {if isset($formAtts.itemstablet) && $formAtts.itemstablet}[768,{$formAtts.itemstablet|intval}]{else}false{/if},
|
||||
itemsMobile: {if isset($formAtts.itemsmobile) && $formAtts.itemsmobile}[576,{$formAtts.itemsmobile|intval}]{else}false{/if},
|
||||
itemsCustom: {if isset($formAtts.itemscustom) && $formAtts.itemscustom}{$formAtts.itemscustom|escape:'html':'UTF-8'}{else}false{/if},
|
||||
singleItem: false, // true : show only 1 item
|
||||
itemsScaleUp: false,
|
||||
slideSpeed: {if $formAtts.slidespeed}{$formAtts.slidespeed|intval}{else}200{/if}, // change speed when drag and drop a item
|
||||
paginationSpeed: {if $formAtts.paginationspeed}{$formAtts.paginationspeed|intval}{else}800{/if}, // change speed when go next page
|
||||
autoPlay: {if $formAtts.autoplay}true{else}false{/if}, // time to show each item
|
||||
stopOnHover: {if $formAtts.stoponhover}true{else}false{/if},
|
||||
navigation: {if $formAtts.navigation}true{else}false{/if},
|
||||
navigationText: ["‹", "›"],
|
||||
scrollPerPage: {if $formAtts.scrollperpage}true{else}false{/if},
|
||||
pagination: {if $formAtts.pagination}true{else}false{/if}, // show bullist
|
||||
paginationNumbers: {if $formAtts.paginationnumbers}true{else}false{/if}, // show number
|
||||
responsive: {if $formAtts.responsive}true{else}false{/if},
|
||||
lazyLoad: {if $formAtts.lazyload}true{else}false{/if},
|
||||
lazyFollow: {if $formAtts.lazyfollow}true{else}false{/if}, // true : go to page 7th and load all images page 1...7. false : go to page 7th and load only images of page 7th
|
||||
lazyEffect: "{$formAtts.lazyeffect|escape:'html':'UTF-8'}",
|
||||
autoHeight: {if $formAtts.autoheight}true{else}false{/if},
|
||||
mouseDrag: {if $formAtts.mousedrag}true{else}false{/if},
|
||||
touchDrag: {if $formAtts.touchdrag}true{else}false{/if},
|
||||
addClassActive: true,
|
||||
direction: {if $formAtts.rtl}'rtl'{else}false{/if},
|
||||
afterInit: OwlLoaded,
|
||||
afterAction : leo_create_show,
|
||||
});
|
||||
});
|
||||
function OwlLoaded(el){
|
||||
el.removeClass('owl-loading').addClass('owl-loaded').parents('.owl-row').addClass('hide-loading');
|
||||
if ($(el).parents('.tab-pane').length && !$(el).parents('.tab-pane').hasClass('active'))
|
||||
el.width('100%');
|
||||
};
|
||||
{/if}
|
||||
}
|
||||
{/if}
|
||||
});
|
||||
feed.run();
|
||||
}
|
||||
|
||||
|
||||
var array_chunk = function(arr, chunkSize) {
|
||||
var groups = [], i;
|
||||
for (i = 0; i < arr.length; i += chunkSize) {
|
||||
groups.push(arr.slice(i, i + chunkSize));
|
||||
}
|
||||
return groups;
|
||||
}
|
||||
|
||||
var leo_create_show = function() {
|
||||
$('#instafeed').fadeIn();
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
22
modules/appagebuilder/views/templates/hook/ApLiveEdit.tpl
Normal file
22
modules/appagebuilder/views/templates/hook/ApLiveEdit.tpl
Normal file
@@ -0,0 +1,22 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApLiveEdit -->
|
||||
{if isset($isLive)}
|
||||
{if isset($isEnd)}
|
||||
</div>
|
||||
{else}
|
||||
<div class="cover-live-edit">
|
||||
{if isset($formAtts) && isset($formAtts.form_id) && $formAtts.form_id}
|
||||
<a class='link-to-back-end' href="{$urlEditProfile}{*full link can not escape*}#{$formAtts.form_id|escape:'html':'UTF-8'}" target="_blank">
|
||||
{else}
|
||||
<a class='link-to-back-end' href="{$urlEditProfile}{*full link can not escape*}" target="_blank">
|
||||
{/if}
|
||||
<i class="icon-pencil"></i> <span>{l s='Edit' mod='appagebuilder'}</span>
|
||||
</a>
|
||||
{/if}
|
||||
{/if}
|
||||
@@ -0,0 +1,44 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApManuFacturersCarousel -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
<div class="block manufacturers_block exclusive appagebuilder {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title)&&!empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
<div class="block_content">
|
||||
{if !empty($manufacturers)}
|
||||
{if $formAtts.carousel_type == "slickcarousel"}
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('manufacturers_slick_carousel.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
{else}
|
||||
{if $formAtts.carousel_type == "boostrap"}
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('manufacturers_carousel.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
{else}
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('manufacturers_owl_carousel.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
{/if}
|
||||
{/if}
|
||||
{else}
|
||||
<p class="alert alert-info">{l s='No manufacturer at this time.' mod='appagebuilder'}</p>
|
||||
{/if}
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
19
modules/appagebuilder/views/templates/hook/ApMegamenu.tpl
Normal file
19
modules/appagebuilder/views/templates/hook/ApMegamenu.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApSlideShow -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
<div id="memgamenu-{$formAtts.form_id|escape:'html':'UTF-8'}" class="ApMegamenu">
|
||||
{if isset($content_megamenu)}
|
||||
{$content_megamenu nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
11
modules/appagebuilder/views/templates/hook/ApModule.tpl
Normal file
11
modules/appagebuilder/views/templates/hook/ApModule.tpl
Normal file
@@ -0,0 +1,11 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApModule -->
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{$apContent nofilter nofilter}{* HTML form , no escape necessary *}
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
@@ -0,0 +1,44 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApProductCarousel -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
<div class="block products_block exclusive appagebuilder {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title)&&!empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|rtrim|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
<div class="block_content">
|
||||
{if !empty($products)}
|
||||
{if $formAtts.carousel_type == "slickcarousel"}
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('ProductSlickCarousel.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
{else}
|
||||
{if $formAtts.carousel_type == "boostrap"}
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('ProductCarousel.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
{else}
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('ProductOwlCarousel.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
{/if}
|
||||
{/if}
|
||||
{else}
|
||||
<p class="alert alert-info">Na razie tutaj jest pusto. Zapraszamy niedługo.</p>
|
||||
{/if}
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
51
modules/appagebuilder/views/templates/hook/ApProductList.tpl
Normal file
51
modules/appagebuilder/views/templates/hook/ApProductList.tpl
Normal file
@@ -0,0 +1,51 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApProductList -->
|
||||
{if !isset($apAjax)}
|
||||
<div class="block {$formAtts.class|escape:'html':'UTF-8'}">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
<input type="hidden" class="apconfig" value='{$apPConfig nofilter}{* HTML form , no escape necessary *}'/>
|
||||
{if isset($formAtts.title) && !empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{if isset($products) && $products}
|
||||
{if !isset($apAjax)}
|
||||
<!-- Products list -->
|
||||
<ul{if isset($id) && $id} id="{$id|intval}"{/if} class="product_list grid row{if isset($class) && $class} {$class|escape:'html':'UTF-8'}{/if} {if isset($productClassWidget)}{$productClassWidget|escape:'html':'UTF-8'}{/if}">
|
||||
{/if}
|
||||
{foreach from=$products item=product name=products key="position"}
|
||||
<li class="ajax_block_product{if isset($formAtts.use_animation) && $formAtts.use_animation} has-animation{/if} product_block
|
||||
{if $scolumn == 5} col-lg-2-4 {else} col-lg-{12/$scolumn|intval}{/if}
|
||||
col-sm-6 col-xs-6 col-sp-12 {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if}"{if isset($formAtts.use_animation) && $formAtts.use_animation} data-animation="fadeInUp" data-animation-delay="{$smarty.foreach.products.iteration*100}ms" data-animation-duration="2s" data-animation-iteration-count="1"{/if}>
|
||||
{if isset($product_item_path)}
|
||||
{include file="$product_item_path" position=$position}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
{if !isset($apAjax)}
|
||||
</ul>
|
||||
<!-- End Products list -->
|
||||
{if isset($formAtts.use_showmore) && $formAtts.use_showmore}
|
||||
<div class="box-show-more open">
|
||||
<a href="javascript:void(0)" class="btn btn-default btn-show-more" data-use-animation="{if isset($formAtts.use_animation) && $formAtts.use_animation}1{else}0{/if}" data-page="{$p|intval}" data-loading-text="{l s='Loading...' mod='appagebuilder'}">
|
||||
<span>{l s='Show more' mod='appagebuilder'}</span></a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
{else}
|
||||
</div>
|
||||
{/if}
|
||||
63
modules/appagebuilder/views/templates/hook/ApProductTag.tpl
Normal file
63
modules/appagebuilder/views/templates/hook/ApProductTag.tpl
Normal file
@@ -0,0 +1,63 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApProductTag.tpl -->
|
||||
{if !isset($formAtts.accordion_type) || $formAtts.accordion_type == 'full'}{* Default : always full *}
|
||||
<div {if isset($formAtts.form_id) && $formAtts.form_id} id="{$formAtts.form_id|escape:'html':'UTF-8' nofilter}"{/if}
|
||||
{if isset($formAtts.class)} class="block {$formAtts.class|escape:'html':'UTF-8'}"{/if}>
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8' nofilter}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
|
||||
<p class="block_content">
|
||||
{if isset($formAtts.tags) && $formAtts.tags}
|
||||
{foreach from=$formAtts.tags item=tag name=myLoop}
|
||||
<a href="{$leolink->getPageLink('search', true, NULL, "tag={$tag.name|urlencode}")|escape:'html'}" title="{l s='More about' mod='appagebuilder'} {$tag.name|escape:html:'UTF-8'}" class="{$tag.class} {if $smarty.foreach.myLoop.last}last_item{elseif $smarty.foreach.myLoop.first}first_item{else}item{/if}">{$tag.name|escape:html:'UTF-8'}</a>
|
||||
{/foreach}
|
||||
{else}
|
||||
{l s='No tags have been specified yet.' mod='appagebuilder'}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
{elseif isset($formAtts.accordion_type) && ($formAtts.accordion_type == 'accordion' || $formAtts.accordion_type == 'accordion_small_screen')}{* Case : full or accordion*}
|
||||
<div {if isset($formAtts.form_id) && $formAtts.form_id} id="{$formAtts.form_id|escape:'html':'UTF-8' nofilter}"{/if}
|
||||
class="{if isset($formAtts.class)}block block-toggler {$formAtts.class|escape:'html':'UTF-8'}{/if}{if $formAtts.accordion_type == 'accordion_small_screen'} accordion_small_screen{/if}">
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<div class="title clearfix" data-target="#ApProductTag_{$formAtts.form_id|escape:'html':'UTF-8'}" data-toggle="collapse">
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|escape:'html':'UTF-8' nofilter}
|
||||
</h4>
|
||||
<span class="float-xs-right">
|
||||
<span class="navbar-toggler collapse-icons">
|
||||
<i class="material-icons add"></i>
|
||||
<i class="material-icons remove"></i>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
|
||||
<div class="block_content">
|
||||
{if isset($formAtts.tags) && $formAtts.tags}
|
||||
<ul class="collapse" id="ApProductTag_{$formAtts.form_id|escape:'html':'UTF-8'}">
|
||||
{foreach from=$formAtts.tags item=tag name=myLoop}
|
||||
<li><a href="{$leolink->getPageLink('search', true, NULL, "tag={$tag.name|urlencode}")|escape:'html'}" title="{l s='More about' mod='appagebuilder'} {$tag.name|escape:html:'UTF-8'}" class="{$tag.class} {if $smarty.foreach.myLoop.last}last_item{elseif $smarty.foreach.myLoop.first}first_item{else}item{/if}">{$tag.name|escape:html:'UTF-8'}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{else}
|
||||
{l s='No tags have been specified yet.' mod='appagebuilder'}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
19
modules/appagebuilder/views/templates/hook/ApQuicklogin.tpl
Normal file
19
modules/appagebuilder/views/templates/hook/ApQuicklogin.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApQuicklogin.tpl -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
<div class="ApQuicklogin">
|
||||
{if isset($content_quicklogin)}
|
||||
{$content_quicklogin nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
69
modules/appagebuilder/views/templates/hook/ApRow.tpl
Normal file
69
modules/appagebuilder/views/templates/hook/ApRow.tpl
Normal file
@@ -0,0 +1,69 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApRow -->
|
||||
{if isset($formAtts.container) && $formAtts.container}
|
||||
<div class="wrapper{if isset($formAtts.bg_img) && $formAtts.bg_img && $aplazyload} lazy{/if}"
|
||||
{if isset($formAtts.id) && $formAtts.id} attr-id="{$formAtts.id|escape:'html':'UTF-8'}"{/if}
|
||||
{if isset($formAtts.bg_config) && $formAtts.bg_config == "fullwidth"}
|
||||
{if isset($formAtts.bg_img) && $formAtts.bg_img}
|
||||
{if $aplazyload}
|
||||
data-src="{$formAtts.bg_img}{*contain link can not escape*}" style="background:{$formAtts.bg_data}{*contain link can not escape*}"
|
||||
{else}
|
||||
style="background:url({$formAtts.bg_img}){*contain link can not escape*} {$formAtts.bg_data}{*contain link can not escape*}"
|
||||
{/if}
|
||||
{else}
|
||||
style="background:{$formAtts.bg_data}{*contain link can not escape*}"
|
||||
{/if}
|
||||
{/if}
|
||||
{if isset($formAtts.bg_config) && $formAtts.bg_config == "fullwidth"}
|
||||
{if isset($formAtts.parallax) && $formAtts.parallax}{$formAtts.parallax nofilter}{*contain img link, can not escape*}{/if}
|
||||
{$formAtts.bg_data=""}
|
||||
{$formAtts.bg_img=""}
|
||||
{$formAtts.parallax=""}
|
||||
{$formAtts.calljsparallax="1"}
|
||||
{/if}>
|
||||
|
||||
<div class="{$formAtts.container|escape:'html':'UTF-8'}">
|
||||
{/if}
|
||||
<div{if isset($formAtts.id) && $formAtts.id} id="{$formAtts.id|escape:'html':'UTF-8'}"{/if}
|
||||
class="{if isset($formAtts.bg_img) && $formAtts.bg_img && isset($formAtts.bg_config) && $formAtts.bg_config == "boxed" && $aplazyload}lazy {/if}{(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'} {(isset($formAtts.animation) && $formAtts.animation != 'none') ? ' has-animation' : ''} {$formAtts.bg_class}{*contain link can not escape*}"
|
||||
{if isset($formAtts.animation) && $formAtts.animation != 'none'} data-animation="{$formAtts.animation|escape:'html':'UTF-8'}" {if isset($formAtts.animation_delay) && $formAtts.animation_delay != ''} data-animation-delay="{$formAtts.animation_delay|escape:'html':'UTF-8'}" {/if}{if isset($formAtts.animation_duration) && $formAtts.animation_duration != ''} data-animation-duration="{$formAtts.animation_duration|escape:'html':'UTF-8'}" {/if}{if isset($formAtts.animation_iteration_count) && $formAtts.animation_iteration_count != ''} data-animation-iteration-count="{$formAtts.animation_iteration_count|escape:'html':'UTF-8'}" {/if}{if isset($formAtts.animation_infinite) && $formAtts.animation_infinite != ''} data-animation-infinite="{$formAtts.animation_infinite|escape:'html':'UTF-8'}" {/if}{/if}
|
||||
{if isset($formAtts.bg_img) && $formAtts.bg_img}data-src="{$formAtts.bg_img nofilter}{* HTML form , no escape necessary *}"{/if}
|
||||
{if isset($formAtts.parallax) && $formAtts.parallax}{$formAtts.parallax nofilter}{* HTML form , no escape necessary *}{/if}
|
||||
{if isset($formAtts.css_style) && $formAtts.css_style}{$formAtts.css_style nofilter}{* HTML form , no escape necessary *}{/if}
|
||||
{if isset($formAtts.bg_data) && $formAtts.bg_data}data-bg_data="{$formAtts.bg_data nofilter}{* HTML form , no escape necessary *}"{/if}
|
||||
>
|
||||
{$formAtts.bg_video nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block title-ap-group">{$formAtts.title nofilter}{* HTML form , no escape necessary *}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget sub-title-ap-group">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.content_html)}
|
||||
{$formAtts.content_html nofilter}{* HTML form , no escape necessary *}
|
||||
{else}
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
</div>
|
||||
{if isset($formAtts.container) && $formAtts.container}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($leoConfiguration) && $leoConfiguration->get('APPAGEBUILDER_LOAD_STELLAR')}
|
||||
{if isset($formAtts.calljsparallax) && $formAtts.calljsparallax}
|
||||
{literal}
|
||||
<script>
|
||||
ap_list_functions.push(function(){
|
||||
$.stellar({horizontalScrolling:false});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
{/if}
|
||||
19
modules/appagebuilder/views/templates/hook/ApSlideShow.tpl
Normal file
19
modules/appagebuilder/views/templates/hook/ApSlideShow.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApSlideShow -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
<div id="slideshow-{$formAtts.form_id|escape:'html':'UTF-8'}" class="ApSlideShow">
|
||||
{if isset($content_slider)}
|
||||
{$content_slider nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
19
modules/appagebuilder/views/templates/hook/ApSliderLayer.tpl
Normal file
19
modules/appagebuilder/views/templates/hook/ApSliderLayer.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApSlideShow -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
<div id="slideshow-{$formAtts.form_id|escape:'html':'UTF-8'}" class="ApSlideShow">
|
||||
{if isset($content_slider)}
|
||||
{$content_slider nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
151
modules/appagebuilder/views/templates/hook/ApTabs.tpl
Normal file
151
modules/appagebuilder/views/templates/hook/ApTabs.tpl
Normal file
@@ -0,0 +1,151 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApTabs -->
|
||||
{if $tab_name == 'ApTabs'}
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
{if isset($formAtts.fade_effect) && $formAtts.fade_effect}
|
||||
// ACTION USE EFFECT
|
||||
$("#{$formAtts.id|escape:'html':'UTF-8'} .tab-pane").addClass("fade");
|
||||
{/if}
|
||||
|
||||
{if $formAtts.active_tab >= 0}
|
||||
// ACTION SET ACTIVE
|
||||
$('#{$formAtts.id|escape:'html':'UTF-8'} .nav a:eq({$formAtts.active_tab|escape:'html':'UTF-8'})').trigger('click');
|
||||
{/if}
|
||||
});
|
||||
</script>
|
||||
<div{if isset($formAtts.id)} id="{$formAtts.id|escape:'html':'UTF-8'}"{/if} class="ApTabs {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}">
|
||||
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
|
||||
<div class="title_container">
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8'}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
</div>
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{if isset($formAtts.tab_mobile_type) && $formAtts.tab_mobile_type =='tabs-dropdown'}
|
||||
<div class="dropdown tabs-dropdown-menu hidden-sm-up">
|
||||
<button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
{l s='Select tab' mod='appagebuilder'}
|
||||
</button>
|
||||
<div class="dropdown-menu" role="tablist">
|
||||
{foreach from=$subTabContent item=subTab}
|
||||
<a href="#{$subTab.id|escape:'html':'UTF-8'}" class="dropdown-item {$subTab.form_id|escape:'html':'UTF-8'}" role="tab" data-toggle="tab">
|
||||
<span>{$subTab.title|escape:'html':'UTF-8'}</span>
|
||||
{if isset($subTab.sub_title) && $subTab.sub_title}
|
||||
<div class="sub-title-widget">{$subTab.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($subTab.image) && $subTab.image}<img class="img-fluid" src="{$path}{$subTab.image|escape:'html':'UTF-8'}" alt="{$subTab.title}"/>{/if}
|
||||
</a>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $formAtts.tab_type =='tabs-left'}
|
||||
<div class="block_content">
|
||||
<ul class="nav nav-tabs col-md-3{if isset($formAtts.tab_mobile_type)}{if $formAtts.tab_mobile_type =='tabs-accordion'} tabs-accordion{else if $formAtts.tab_mobile_type =='tabs-dropdown'} tabs-dropdown hidden-xs-down{/if}{/if}" role="tablist">
|
||||
{foreach from=$subTabContent item=subTab}
|
||||
<li class="nav-item {(isset($subTab.css_class)) ? $subTab.css_class : ''|escape:'html':'UTF-8'}">
|
||||
<a href="#{$subTab.id|escape:'html':'UTF-8'}" class="nav-link {$subTab.form_id|escape:'html':'UTF-8'}" role="tab" data-toggle="tab">
|
||||
<span>{$subTab.title|escape:'html':'UTF-8'}</span>
|
||||
{if isset($subTab.sub_title) && $subTab.sub_title}
|
||||
<div class="sub-title-widget">{$subTab.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($subTab.image) && $subTab.image}<img class="img-fluid" src="{$path}{$subTab.image|escape:'html':'UTF-8'}" alt="{$subTab.title}"/>{/if}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<div class="tab-content col-md-9">
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $formAtts.tab_type =='tabs-right'}
|
||||
<div class="block_content">
|
||||
<div class="tab-content col-md-9">
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
<ul class="nav nav-tabs col-md-3{if isset($formAtts.tab_mobile_type)}{if $formAtts.tab_mobile_type =='tabs-accordion'} tabs-accordion{else if $formAtts.tab_mobile_type =='tabs-dropdown'} tabs-dropdown hidden-xs-down{/if}{/if}" role="tablist">
|
||||
{foreach from=$subTabContent item=subTab}
|
||||
<li class="nav-item {(isset($subTab.css_class)) ? $subTab.css_class : ''|escape:'html':'UTF-8'}">
|
||||
<a href="#{$subTab.id|escape:'html':'UTF-8'}" class="nav-link {$subTab.form_id|escape:'html':'UTF-8'}" role="tab" data-toggle="tab">
|
||||
<span>{$subTab.title|escape:'html':'UTF-8'}</span>
|
||||
{if isset($subTab.sub_title) && $subTab.sub_title}
|
||||
<div class="sub-title-widget">{$subTab.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($subTab.image) && $subTab.image}<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload}data-src{else}src{/if}="{$path}{$subTab.image|escape:'html':'UTF-8'}" alt="{$subTab.title}"/>{/if}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{if $formAtts.tab_type =='tabs-below'}
|
||||
<div class="block_content">
|
||||
<div class="tab-content">
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
<ul class="nav nav-tabs{if isset($formAtts.tab_mobile_type)}{if $formAtts.tab_mobile_type =='tabs-accordion'} tabs-accordion{else if $formAtts.tab_mobile_type =='tabs-dropdown'} tabs-dropdown hidden-xs-down{/if}{/if}" role="tablist">
|
||||
{foreach from=$subTabContent item=subTab}
|
||||
<li class="nav-item {(isset($subTab.css_class)) ? $subTab.css_class : ''|escape:'html':'UTF-8'}">
|
||||
<a href="#{$subTab.id|escape:'html':'UTF-8'}" class="nav-link {$subTab.form_id|escape:'html':'UTF-8'}" role="tab" data-toggle="tab">
|
||||
<span>{$subTab.title|escape:'html':'UTF-8'}</span>
|
||||
{if isset($subTab.sub_title) && $subTab.sub_title}
|
||||
<div class="sub-title-widget">{$subTab.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($subTab.image) && $subTab.image}<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload}data-src{else}src{/if}="{$path}{$subTab.image|escape:'html':'UTF-8'}" alt="{$subTab.title}"/>{/if}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{if $formAtts.tab_type =='tabs-top'}
|
||||
<div class="block_content">
|
||||
<ul class="nav nav-tabs{if isset($formAtts.tab_mobile_type)}{if $formAtts.tab_mobile_type =='tabs-accordion'} tabs-accordion{else if $formAtts.tab_mobile_type =='tabs-dropdown'} tabs-dropdown hidden-xs-down{/if}{/if}" role="tablist">
|
||||
{foreach from=$subTabContent item=subTab}
|
||||
<li class="nav-item {(isset($subTab.css_class)) ? $subTab.css_class : ''|escape:'html':'UTF-8'}">
|
||||
<a href="#{$subTab.id|escape:'html':'UTF-8'}" class="nav-link {$subTab.form_id|escape:'html':'UTF-8'}" role="tab" data-toggle="tab">
|
||||
<span>{$subTab.title|escape:'html':'UTF-8'}</span>
|
||||
{if isset($subTab.sub_title) && $subTab.sub_title}
|
||||
<div class="sub-title-widget">{$subTab.sub_title nofilter}</div>
|
||||
{/if}
|
||||
{if isset($subTab.image) && $subTab.image}<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload}data-src{else}src{/if}="{$path}{$subTab.image|escape:'html':'UTF-8'}" alt="{$subTab.title}"/>{/if}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
{if $tab_name == 'ApTab'}
|
||||
<div id="{$tabID|escape:'html':'UTF-8'}" class="tab-pane">
|
||||
{* {if isset($formAtts.image) && $formAtts.image}<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload}data-src{else}src{/if}="{$path}{$formAtts.image|escape:'html':'UTF-8'}" alt="{$formAtts.title}"/>{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
*}
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
146
modules/appagebuilder/views/templates/hook/ApTwitter.tpl
Normal file
146
modules/appagebuilder/views/templates/hook/ApTwitter.tpl
Normal file
@@ -0,0 +1,146 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApTwitter -->
|
||||
{if isset($formAtts.twidget_id) && $formAtts.twidget_id}
|
||||
{if !isset($formAtts.accordion_type) || $formAtts.accordion_type == 'full'}{* Default : always full *}
|
||||
<div class="block widget-twitter {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8'}</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
|
||||
<div class="block_content">
|
||||
<div id="ap-twitter{$formAtts.twidget_id|escape:'html':'UTF-8'}" class="apollo-twitter">
|
||||
<a class="twitter-timeline" href="https://twitter.com/{$formAtts.username|escape:'html':'UTF-8'}"
|
||||
data-width="{$formAtts.width|intval}"
|
||||
data-height="{$formAtts.height|intval}"
|
||||
data-dnt="true"
|
||||
data-widget-id="{$formAtts.twidget_id|escape:'html':'UTF-8'}"
|
||||
{if isset($formAtts.link_color) && $formAtts.link_color}data-link-color="{$formAtts.link_color|escape:'html':'UTF-8'}"{/if}
|
||||
{if isset($formAtts.border_color) && $formAtts.border_color}data-border-color="{$formAtts.border_color|escape:'html':'UTF-8'}"{/if}
|
||||
{if isset($formAtts.count) && $formAtts.count}data-tweet-limit="{$formAtts.count|intval}"{/if}
|
||||
data-show-replies="{if isset($formAtts.show_replies) && $formAtts.show_replies}true{else}false{/if}"
|
||||
data-chrome="{if isset($formAtts.transparent) && !$formAtts.transparent} transparent{/if}
|
||||
{if isset($formAtts.show_scrollbar) && !$formAtts.show_scrollbar} noscrollbar{/if}
|
||||
{if isset($formAtts.show_border) && !$formAtts.show_border} noborders{/if}
|
||||
{if isset($formAtts.show_header) && !$formAtts.show_header} noheader{/if}
|
||||
{if isset($formAtts.show_footer) && !$formAtts.show_footer} nofooter{/if}"
|
||||
>{l s='Tweets by' mod='appagebuilder'} {$formAtts.username|escape:'html':'UTF-8'}</a>
|
||||
</div>
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{elseif isset($formAtts.accordion_type) && ($formAtts.accordion_type == 'accordion' || $formAtts.accordion_type == 'accordion_small_screen')}{* Case : full or accordion*}
|
||||
|
||||
<div class="block widget-twitter block-toggler {(isset($formAtts.class)) ? $formAtts.class : ''|escape:'html':'UTF-8'}{if $formAtts.accordion_type == 'accordion_small_screen'} accordion_small_screen{/if}">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title) && $formAtts.title}
|
||||
<div class="title clearfix" data-target="#ap-twitter{$formAtts.twidget_id|escape:'html':'UTF-8'}" data-toggle="collapse">
|
||||
<h4 class="title_block">{$formAtts.title|escape:'html':'UTF-8'}</h4>
|
||||
<span class="float-xs-right">
|
||||
<span class="navbar-toggler collapse-icons">
|
||||
<i class="material-icons add"></i>
|
||||
<i class="material-icons remove"></i>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
|
||||
<div class="block_content">
|
||||
<div id="ap-twitter{$formAtts.twidget_id|escape:'html':'UTF-8'}" class="apollo-twitter collapse">
|
||||
<a class="twitter-timeline" href="https://twitter.com/{$formAtts.username|escape:'html':'UTF-8'}"
|
||||
data-width="{$formAtts.width|intval}"
|
||||
data-height="{$formAtts.height|intval}"
|
||||
data-dnt="true"
|
||||
data-widget-id="{$formAtts.twidget_id|escape:'html':'UTF-8'}"
|
||||
{if isset($formAtts.link_color) && $formAtts.link_color}data-link-color="{$formAtts.link_color|escape:'html':'UTF-8'}"{/if}
|
||||
{if isset($formAtts.border_color) && $formAtts.border_color}data-border-color="{$formAtts.border_color|escape:'html':'UTF-8'}"{/if}
|
||||
{if isset($formAtts.count) && $formAtts.count}data-tweet-limit="{$formAtts.count|intval}"{/if}
|
||||
data-show-replies="{if isset($formAtts.show_replies) && $formAtts.show_replies}true{else}false{/if}"
|
||||
data-chrome="{if isset($formAtts.transparent) && !$formAtts.transparent} transparent{/if}
|
||||
{if isset($formAtts.show_scrollbar) && !$formAtts.show_scrollbar} noscrollbar{/if}
|
||||
{if isset($formAtts.show_border) && !$formAtts.show_border} noborders{/if}
|
||||
{if isset($formAtts.show_header) && !$formAtts.show_header} noheader{/if}
|
||||
{if isset($formAtts.show_footer) && !$formAtts.show_footer} nofooter{/if}"
|
||||
>{l s='Tweets by' mod='appagebuilder'} {$formAtts.username|escape:'html':'UTF-8'}</a>
|
||||
</div>
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
<script>
|
||||
ap_list_functions.push(function(){
|
||||
// Check avoid include duplicate library Facebook SDK
|
||||
if($("#twitter-wjs").length == 0) {
|
||||
window.twttr = (function (d, s, id) {
|
||||
var t, js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id; js.src= "https://platform.twitter.com/widgets.js";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
return window.twttr || (t = { _e: [], ready: function (f) { t._e.push(f) } });
|
||||
}(document, "script", "twitter-wjs"));
|
||||
}
|
||||
|
||||
var leo_flag_twitter_set_css = 1;
|
||||
$('#ap-twitter{$formAtts.twidget_id}').bind("DOMSubtreeModified", function() {
|
||||
leo_flag_twitter_set_css++;
|
||||
|
||||
var isRun = 10;
|
||||
|
||||
{*var is_chrome = navigator.userAgent.indexOf('Chrome') > -1;
|
||||
var is_explorer = navigator.userAgent.indexOf('MSIE') > -1;
|
||||
var is_firefox = navigator.userAgent.indexOf('Firefox') > -1;*}
|
||||
var is_safari = navigator.userAgent.indexOf("Safari") > -1;
|
||||
{*var is_opera = navigator.userAgent.toLowerCase().indexOf("op") > -1;
|
||||
if ((is_chrome)&&(is_safari)) {is_safari=false;}
|
||||
if ((is_chrome)&&(is_opera)) {is_chrome=false;} *}
|
||||
if(window.chrome || is_safari){
|
||||
isRun = 5;
|
||||
}
|
||||
|
||||
if(leo_flag_twitter_set_css == isRun)
|
||||
{
|
||||
// Run only one time
|
||||
|
||||
$('#ap-twitter{$formAtts.twidget_id} iframe').ready(function() {
|
||||
|
||||
{if (isset($formAtts.border_color) && $formAtts.border_color) && isset($formAtts.show_border) && $formAtts.show_border }
|
||||
// SHOW BORDER COLOR
|
||||
$('#ap-twitter{$formAtts.twidget_id} iframe').css('border', '1px solid {$formAtts.border_color}');
|
||||
{/if}
|
||||
{if (isset($formAtts.name_color) && $formAtts.name_color) }
|
||||
$('#ap-twitter{$formAtts.twidget_id} iframe').contents().find('.TweetAuthor-name.Identity-name.customisable-highlight').css('color', '{$formAtts.name_color}');
|
||||
{/if}
|
||||
{if (isset($formAtts.mail_color) && $formAtts.mail_color) }
|
||||
$('#ap-twitter{$formAtts.twidget_id} iframe').contents().find('.TweetAuthor-screenName.Identity-screenName').css('color', '{$formAtts.mail_color}');
|
||||
{/if}
|
||||
|
||||
var head = jQuery("#ap-twitter{$formAtts.twidget_id} iframe").contents().find("head");
|
||||
|
||||
var css = {literal}'<style type="text/css">\n\{/literal}
|
||||
{if (isset($formAtts.text_color) && $formAtts.text_color) }\n\
|
||||
body { color : {$formAtts.text_color} ; }\n\
|
||||
{/if}\n\
|
||||
{if (isset($formAtts.link_color) && $formAtts.link_color) }\n\
|
||||
.timeline-Tweet-text a { color : {$formAtts.link_color} ; }\n\
|
||||
{/if}\n\
|
||||
</style>';
|
||||
$(head).append(css);
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
23
modules/appagebuilder/views/templates/hook/ApVideo.tpl
Normal file
23
modules/appagebuilder/views/templates/hook/ApVideo.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApVideo -->
|
||||
<div id="video-{$formAtts.form_id|escape:'html':'UTF-8'}" class="video" style="clear:both;">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if isset($formAtts.title) && !empty($formAtts.title)}
|
||||
<h4 class="title_block">
|
||||
{$formAtts.title|escape:'html':'UTF-8'}
|
||||
</h4>
|
||||
{/if}
|
||||
{if isset($formAtts.sub_title) && $formAtts.sub_title}
|
||||
<div class="sub-title-widget">{$formAtts.sub_title nofilter}</div>
|
||||
{/if}
|
||||
<div style="text-align:{$formAtts.align|escape:'html':'UTF-8'}">
|
||||
{(isset($formAtts.content_html)) ? $formAtts.content_html : '' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
44
modules/appagebuilder/views/templates/hook/BlogCarousel.tpl
Normal file
44
modules/appagebuilder/views/templates/hook/BlogCarousel.tpl
Normal file
@@ -0,0 +1,44 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\BlogCarousel -->
|
||||
<div class="carousel slide blog_last_posts" id="{$carouselName|escape:'html':'UTF-8'}">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if count($products)>$itemsperpage}
|
||||
<div class="direction">
|
||||
<a class="carousel-control left" href="#{$carouselName|escape:'html':'UTF-8'}" data-slide="prev">
|
||||
<span class="icon-prev hidden-xs" aria-hidden="true"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="carousel-control right" href="#{$carouselName|escape:'html':'UTF-8'}" data-slide="next">
|
||||
<span class="icon-next" aria-hidden="true"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="carousel-inner">
|
||||
{$mproducts=array_chunk($products, $itemsperpage)}
|
||||
{foreach from=$mproducts item=products name=mypLoop}
|
||||
<div class="carousel-item {if $smarty.foreach.mypLoop.first}active{/if}">
|
||||
<ul class="product_list row grid">
|
||||
{foreach from=$products item=blog name=products}
|
||||
{* <li class="ajax_block_product product_block {$scolumn|escape:'html':'UTF-8'} {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if}">
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('BlogItem.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
</li> *}
|
||||
<li class="ajax_block_product product_block {if $smarty.foreach.products.first}first_item{/if}">
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('BlogItem.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
|
||||
</div>
|
||||
145
modules/appagebuilder/views/templates/hook/BlogItem.tpl
Normal file
145
modules/appagebuilder/views/templates/hook/BlogItem.tpl
Normal file
@@ -0,0 +1,145 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\BlogItem -->
|
||||
<div class="blog-container" itemscope itemtype="https://schema.org/Blog">
|
||||
<div class="left-block">
|
||||
<div class="blog-image-container">
|
||||
<a class="blog_img_link" href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}"
|
||||
itemprop="url">
|
||||
{if isset($formAtts.bleoblogs_sima) && $formAtts.bleoblogs_sima}
|
||||
{if isset($formAtts) && isset($formAtts.lazyload) && $formAtts.lazyload}
|
||||
{* ENABLE LAZY LOAD OWL_CAROUSEL *}
|
||||
<img class="img-fluid lazyOwl" src=""
|
||||
data-src="{$blog.thumb_url}{*full url can not escape*}"
|
||||
alt="{if !empty($blog.legend)}{$blog.legend|escape:'html':'UTF-8'}{else}{$blog.title|escape:'html':'UTF-8'}{/if}"
|
||||
title="{if !empty($blog.legend)}{$blog.legend|escape:'html':'UTF-8'}{else}{$blog.title|escape:'html':'UTF-8'}{/if}"
|
||||
{if isset($formAtts.bleoblogs_width)}width="{$formAtts.bleoblogs_width|escape:'html':'UTF-8'}" {/if}
|
||||
{if isset($formAtts.bleoblogs_height)} height="{$formAtts.bleoblogs_height|escape:'html':'UTF-8'}" {/if}
|
||||
itemprop="image" />
|
||||
{else}
|
||||
<img class="img-fluid{if $aplazyload} lazy{/if}"
|
||||
{if $aplazyload}data-src{else}src{/if}="{$blog.thumb_url}{*full url can not escape*}"
|
||||
alt="{if !empty($blog.legend)}{$blog.legend|escape:'html':'UTF-8'}{else}{$blog.title|escape:'html':'UTF-8'}{/if}"
|
||||
title="{if !empty($blog.legend)}{$blog.legend|escape:'html':'UTF-8'}{else}{$blog.title|escape:'html':'UTF-8'}{/if}"
|
||||
{if isset($formAtts.bleoblogs_width)}width="{$formAtts.bleoblogs_width|escape:'html':'UTF-8'}" {/if}
|
||||
{if isset($formAtts.bleoblogs_height)} height="{$formAtts.bleoblogs_height|escape:'html':'UTF-8'}" {/if}
|
||||
itemprop="image" />
|
||||
{/if}
|
||||
|
||||
{* {if isset($formAtts) && isset($formAtts.lazyload) && $formAtts.lazyload}
|
||||
<img class="img-fluid lazyOwl" src=""
|
||||
data-src="{if (isset($blog.preview_thumb_url) && $blog.preview_thumb_url != '')}{$blog.preview_thumb_url}{else}{$blog.preview_url}{/if}"
|
||||
alt="{if !empty($blog.legend)}{$blog.legend|escape:'html':'UTF-8'}{else}{$blog.title|escape:'html':'UTF-8'}{/if}"
|
||||
title="{if !empty($blog.legend)}{$blog.legend|escape:'html':'UTF-8'}{else}{$blog.title|escape:'html':'UTF-8'}{/if}"
|
||||
{if isset($formAtts.bleoblogs_width)}width="{$formAtts.bleoblogs_width|escape:'html':'UTF-8'}" {/if}
|
||||
{if isset($formAtts.bleoblogs_height)} height="{$formAtts.bleoblogs_height|escape:'html':'UTF-8'}" {/if}
|
||||
itemprop="image" />
|
||||
{else}
|
||||
<img class="img-fluid{if $aplazyload} lazy{/if}"
|
||||
{if $aplazyload}data-src{else}src{/if}="{if (isset($blog.preview_thumb_url) && $blog.preview_thumb_url != '')}{$blog.preview_thumb_url}{else}{$blog.preview_url}{/if}"
|
||||
alt="{if !empty($blog.legend)}{$blog.legend|escape:'html':'UTF-8'}{else}{$blog.title|escape:'html':'UTF-8'}{/if}"
|
||||
title="{if !empty($blog.legend)}{$blog.legend|escape:'html':'UTF-8'}{else}{$blog.title|escape:'html':'UTF-8'}{/if}"
|
||||
{if isset($formAtts.bleoblogs_width)}width="{$formAtts.bleoblogs_width|escape:'html':'UTF-8'}" {/if}
|
||||
{if isset($formAtts.bleoblogs_height)} height="{$formAtts.bleoblogs_height|escape:'html':'UTF-8'}" {/if}
|
||||
itemprop="image" />
|
||||
{/if} *}
|
||||
{/if}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right-block">
|
||||
{if isset($formAtts.show_title) && $formAtts.show_title}
|
||||
<h5 class="blog-title" itemprop="name"><a href="{$blog.link}{*full url can not escape*}"
|
||||
title="{$blog.title|escape:'html':'UTF-8'}">{$blog.title|strip_tags:'UTF-8'|truncate:80:'...'}</a></h5>
|
||||
{/if}
|
||||
<div class="blog-meta">
|
||||
{if isset($formAtts.bleoblogs_saut) && $formAtts.bleoblogs_saut}
|
||||
<span class="author">
|
||||
<span class="icon-author">
|
||||
{l s='Author' mod='appagebuilder'}:</span>{if isset($blog.author_name) && $blog.author_name != ''}
|
||||
{$blog.author_name|escape:'html':'UTF-8'}{else} {$blog.author|escape:'html':'UTF-8'}
|
||||
{/if}
|
||||
</span>
|
||||
{/if}
|
||||
{if isset($formAtts.bleoblogs_scat) && $formAtts.bleoblogs_scat}
|
||||
<span class="cat"> <span class="icon-list">{l s='In' mod='appagebuilder'}</span>
|
||||
<a href="{$blog.category_link}{*full url can not escape*}"
|
||||
title="{$blog.category_title|escape:'html':'UTF-8'}">{$blog.category_title|escape:'html':'UTF-8'}</a>
|
||||
</span>
|
||||
{/if}
|
||||
{if isset($formAtts.bleoblogs_scre) && $formAtts.bleoblogs_scre}
|
||||
<span class="created"><span class=""></span>
|
||||
<span class="icon-calendar"> {l s='On' mod='appagebuilder'} </span>
|
||||
<time class="date" datetime="{strtotime($blog.date_add)|date_format:"%Y"}{*convert to date time*}">
|
||||
{assign var='blog_date' value=strtotime($blog.date_add)|date_format:"%A"}
|
||||
{l s=$blog_date mod='appagebuilder'},
|
||||
<!-- day of week -->
|
||||
{assign var='blog_month' value=strtotime($blog.date_add)|date_format:"%B"}
|
||||
{l s=$blog_month mod='appagebuilder'}
|
||||
{assign var='blog_date_add' value=strtotime($blog.date_add)|date_format:"%d"}
|
||||
<!-- day of month -->
|
||||
{assign var='blog_day' value=strtotime($blog.date_add)|date_format:"%e"}
|
||||
{l s=$blog_day mod='appagebuilder'}
|
||||
{assign var='blog_daycount' value=$formAtts.leo_blog_helper->string_ordinal($blog_date_add)}
|
||||
{l s=$blog_daycount mod='appagebuilder'},
|
||||
{assign var='blog_year' value=strtotime($blog.date_add)|date_format:"%Y"}
|
||||
{l s=$blog_year mod='appagebuilder'}
|
||||
<!-- year -->
|
||||
</time>
|
||||
</span>
|
||||
{/if}
|
||||
{if isset($formAtts.bleoblogs_scoun) && $formAtts.bleoblogs_scoun}
|
||||
<span class="nbcomment">
|
||||
<span class="icon-comment"> {l s='Comment' mod='appagebuilder'}:</span> {$blog.comment_count|intval}
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if isset($formAtts.bleoblogs_shits) && $formAtts.bleoblogs_shits}
|
||||
<span class="hits">
|
||||
<span class="icon-hits"> {l s='Hits' mod='appagebuilder'}:</span> {$blog.hits|intval}
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
{if isset($formAtts.show_desc) && $formAtts.show_desc}
|
||||
<p class="blog-desc" itemprop="description">
|
||||
{$blog.description|strip_tags:'UTF-8'|truncate:160:'...'}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
|
||||
<a class="btn_orange" href="{$blog.link}">PRZECZYTAJ ARTYKUŁ</a>
|
||||
</div>
|
||||
|
||||
<div class="hidden-xl-down hidden-xl-up datetime-translate">
|
||||
{l s='Sunday' mod='appagebuilder'}
|
||||
{l s='Monday' mod='appagebuilder'}
|
||||
{l s='Tuesday' mod='appagebuilder'}
|
||||
{l s='Wednesday' mod='appagebuilder'}
|
||||
{l s='Thursday' mod='appagebuilder'}
|
||||
{l s='Friday' mod='appagebuilder'}
|
||||
{l s='Saturday' mod='appagebuilder'}
|
||||
|
||||
{l s='January' mod='appagebuilder'}
|
||||
{l s='February' mod='appagebuilder'}
|
||||
{l s='March' mod='appagebuilder'}
|
||||
{l s='April' mod='appagebuilder'}
|
||||
{l s='May' mod='appagebuilder'}
|
||||
{l s='June' mod='appagebuilder'}
|
||||
{l s='July' mod='appagebuilder'}
|
||||
{l s='August' mod='appagebuilder'}
|
||||
{l s='September' mod='appagebuilder'}
|
||||
{l s='October' mod='appagebuilder'}
|
||||
{l s='November' mod='appagebuilder'}
|
||||
{l s='December' mod='appagebuilder'}
|
||||
|
||||
{l s='st' mod='appagebuilder'}
|
||||
{l s='nd' mod='appagebuilder'}
|
||||
{l s='rd' mod='appagebuilder'}
|
||||
{l s='th' mod='appagebuilder'}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,85 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\BlogOwlCarousel -->
|
||||
<div class="owl-row">
|
||||
|
||||
<div class="timeline-wrapper clearfix prepare"
|
||||
data-item="{$formAtts.number_fake_item}"
|
||||
data-xl="{$formAtts.array_fake_item.xl}"
|
||||
data-lg="{$formAtts.array_fake_item.lg}"
|
||||
data-md="{$formAtts.array_fake_item.md}"
|
||||
data-sm="{$formAtts.array_fake_item.sm}"
|
||||
data-m="{$formAtts.array_fake_item.m}"
|
||||
>
|
||||
{for $foo=1 to $formAtts.number_fake_item}
|
||||
<div class="timeline-parent">
|
||||
{for $foo_child=1 to $formAtts.itempercolumn}
|
||||
<div class="timeline-item">
|
||||
<div class="animated-background">
|
||||
<div class="background-masker content-top"></div>
|
||||
<div class="background-masker content-second-line"></div>
|
||||
<div class="background-masker content-third-line"></div>
|
||||
<div class="background-masker content-fourth-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
<div id="{$carouselName nofilter}{* HTML form , no escape necessary *}" class="owl-carousel owl-theme owl-loading">
|
||||
{$mproducts=array_chunk($products, $formAtts.itempercolumn)}
|
||||
{foreach from=$mproducts item=products name=mypLoop}
|
||||
<div class="item">
|
||||
{foreach from=$products item=blog name=products}
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('BlogItem.tpl', $formAtts['override_folder'])}
|
||||
{include file=$leo_include_file}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
$('#{$carouselName|escape:'html':'UTF-8'}').imagesLoaded( function() {
|
||||
$('#{$carouselName|escape:'html':'UTF-8'}').owlCarousel({
|
||||
items : {if $formAtts.items}{$formAtts.items|intval}{else}false{/if},
|
||||
itemsDesktop : {if isset($formAtts.itemsdesktop) && $formAtts.itemsdesktop}[1200,{$formAtts.itemsdesktop|intval}]{else}false{/if},
|
||||
itemsDesktopSmall : {if isset($formAtts.itemsdesktopsmall) && $formAtts.itemsdesktopsmall}[992,{$formAtts.itemsdesktopsmall|intval}]{else}false{/if},
|
||||
itemsTablet : {if isset($formAtts.itemstablet) && $formAtts.itemstablet}[768,{$formAtts.itemstablet|intval}]{else}false{/if},
|
||||
itemsMobile : {if isset($formAtts.itemsmobile) && $formAtts.itemsmobile}[576,{$formAtts.itemsmobile|intval}]{else}false{/if},
|
||||
itemsCustom : {if isset($formAtts.itemscustom) && $formAtts.itemscustom}{$formAtts.itemscustom|escape:'html':'UTF-8'}{else}false{/if},
|
||||
singleItem : false, // true : show only 1 item
|
||||
itemsScaleUp : false,
|
||||
slideSpeed :{if $formAtts.slidespeed}{$formAtts.slidespeed|intval}{else}200{/if}, // change speed when drag and drop a item
|
||||
paginationSpeed : {if $formAtts.paginationspeed}{$formAtts.paginationspeed|intval}{else}800{/if}, // change speed when go next page
|
||||
autoPlay : {if $formAtts.autoplay}true{else}false{/if}, // time to show each item
|
||||
stopOnHover : {if $formAtts.stoponhover}true{else}false{/if},
|
||||
navigation : {if $formAtts.navigation}true{else}false{/if},
|
||||
navigationText : ["‹", "›"],
|
||||
scrollPerPage : {if $formAtts.scrollperpage}true{else}false{/if},
|
||||
pagination : {if $formAtts.pagination}true{else}false{/if}, // show bullist
|
||||
paginationNumbers : {if $formAtts.paginationnumbers}true{else}false{/if}, // show number
|
||||
responsive : {if $formAtts.responsive}true{else}false{/if},
|
||||
lazyLoad : {if $formAtts.lazyload}true{else}false{/if},
|
||||
lazyFollow : {if $formAtts.lazyfollow}true{else}false{/if}, // true : go to page 7th and load all images page 1...7. false : go to page 7th and load only images of page 7th
|
||||
lazyEffect : "{$formAtts.lazyeffect|escape:'html':'UTF-8'}",
|
||||
autoHeight : {if $formAtts.autoheight}true{else}false{/if},
|
||||
mouseDrag : {if $formAtts.mousedrag}true{else}false{/if},
|
||||
touchDrag : {if $formAtts.touchdrag}true{else}false{/if},
|
||||
addClassActive : true,
|
||||
direction: {if $formAtts.rtl}'rtl'{else}false{/if},
|
||||
afterInit: OwlLoaded,
|
||||
afterAction : SetOwlCarouselFirstLast,
|
||||
});
|
||||
});
|
||||
});
|
||||
function OwlLoaded(el){
|
||||
el.removeClass('owl-loading').addClass('owl-loaded').parents('.owl-row').addClass('hide-loading');
|
||||
};
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,98 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\BlogSlickCarousel -->
|
||||
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
{if !empty($products)}
|
||||
<div class="slick-row">
|
||||
<div class="timeline-wrapper clearfix prepare"
|
||||
data-item="{$formAtts.number_fake_item}"
|
||||
data-xl="{if isset($formAtts.array_fake_item.xl)}{$formAtts.array_fake_item.xl}{/if}"
|
||||
data-lg="{if isset($formAtts.array_fake_item.lg)}{$formAtts.array_fake_item.lg}{/if}"
|
||||
data-md="{if isset($formAtts.array_fake_item.md)}{$formAtts.array_fake_item.md}{/if}"
|
||||
data-sm="{if isset($formAtts.array_fake_item.sm)}{$formAtts.array_fake_item.sm}{/if}"
|
||||
data-m="{if isset($formAtts.array_fake_item.m)}{$formAtts.array_fake_item.m}{/if}"
|
||||
>
|
||||
{for $foo=1 to $formAtts.number_fake_item}
|
||||
<div class="timeline-parent">
|
||||
{for $foo_child=1 to $formAtts.slick_row}
|
||||
<div class="timeline-item">
|
||||
<div class="animated-background">
|
||||
<div class="background-masker content-top"></div>
|
||||
<div class="background-masker content-second-line"></div>
|
||||
<div class="background-masker content-third-line"></div>
|
||||
<div class="background-masker content-fourth-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
<div class="list-blog-slick-carousel slick-slider slick-loading" id="{$formAtts.form_id|escape:'html':'UTF-8'}">
|
||||
{assign var=leo_include_file value=$leo_helper->getTplTemplate('BlogItem.tpl', $formAtts['override_folder'])}
|
||||
{foreach from=$products item=blog name=products name=mypLoop}
|
||||
<div class="slick-slide {if $smarty.foreach.mypLoop.index == 0} first{/if}">
|
||||
<div class="item">
|
||||
{include file=$leo_include_file}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<p class="alert alert-info">Na razie tutaj jest pusto. Zapraszamy niedługo.</p>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
$('#{$formAtts.form_id|escape:'html':'UTF-8'}').imagesLoaded( function() {
|
||||
$('#{$formAtts.form_id|escape:'html':'UTF-8'}').slick(
|
||||
{if $formAtts.slick_custom_status}
|
||||
{$formAtts.slick_custom}
|
||||
{else}
|
||||
{
|
||||
centerMode: {if isset($formAtts.slick_centermode) && $formAtts.slick_centermode}true{else}false{/if},
|
||||
centerPadding: '{if isset($formAtts.slick_centerpadding) && $formAtts.slick_centerpadding}{$formAtts.slick_centerpadding}{else}0{/if}px',
|
||||
dots: {if $formAtts.slick_dot}true{else}false{/if},
|
||||
infinite: {if isset($formAtts.slick_loopinfinite) && $formAtts.slick_loopinfinite}true{else}false{/if},
|
||||
vertical: {if $formAtts.slick_vertical}true{else}false{/if},
|
||||
verticalSwiping : {if $formAtts.slick_vertical}true{else}false{/if},
|
||||
autoplay: {if $formAtts.slick_autoplay}true{else}false{/if},
|
||||
pauseonhover: {if $formAtts.slick_pauseonhover}true{else}false{/if},
|
||||
autoplaySpeed: 2000,
|
||||
arrows: {if $formAtts.slick_arrows}true{else}false{/if},
|
||||
rows: {$formAtts.slick_row},
|
||||
slidesToShow: {$formAtts.slick_slidestoshow},
|
||||
slidesToScroll: {if $formAtts.slick_dot}{$formAtts.slick_slidestoshow}{else}{$formAtts.slick_slidestoscroll}{/if},
|
||||
rtl: {if isset($IS_RTL) && $IS_RTL}true{else}false{/if},
|
||||
responsive: [
|
||||
{foreach from=$formAtts.slick_items_custom item=mobile name=mobiles}
|
||||
{
|
||||
breakpoint: {$mobile.0},
|
||||
settings: {
|
||||
centerMode: {if isset($formAtts.slick_centermode) && $formAtts.slick_centermode}true{else}false{/if},
|
||||
centerPadding: '{if isset($formAtts.slick_centerpadding) && $formAtts.slick_centerpadding}{$formAtts.slick_centerpadding}{else}0{/if}px',
|
||||
slidesToShow: {$mobile.1},
|
||||
slidesToScroll: {if $formAtts.slick_dot}{$mobile.1}{else}{$formAtts.slick_slidestoscroll}{/if},
|
||||
}
|
||||
},
|
||||
{/foreach}
|
||||
]
|
||||
}
|
||||
{/if}
|
||||
);
|
||||
$('#{$formAtts.form_id|escape:'html':'UTF-8'}').removeClass('slick-loading').addClass('slick-loaded').parents('.slick-row').addClass('hide-loading');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,40 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ProductCarousel -->
|
||||
<div class="carousel slide" id="{$carouselName|escape:'html':'UTF-8'}">
|
||||
{($apLiveEdit)?$apLiveEdit:'' nofilter}{* HTML form , no escape necessary *}
|
||||
{if count($products)>$itemsperpage}
|
||||
<div class="direction">
|
||||
<a class="carousel-control left" href="#{$carouselName|escape:'html':'UTF-8'}" data-slide="prev">
|
||||
<span class="icon-prev hidden-xs" aria-hidden="true"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="carousel-control right" href="#{$carouselName|escape:'html':'UTF-8'}" data-slide="next">
|
||||
<span class="icon-next" aria-hidden="true"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="carousel-inner">
|
||||
{$mproducts=array_chunk($products,$itemsperpage)}
|
||||
{foreach from=$mproducts item=products name=mypLoop}
|
||||
<div class="carousel-item {if $smarty.foreach.mypLoop.first}active{/if}">
|
||||
<ul class="product_list row grid {if isset($productClassWidget)}{$productClassWidget|escape:'html':'UTF-8'}{/if}">
|
||||
{foreach from=$products item="product" name=products key="position"}
|
||||
<li class="ajax_block_product product_block {$scolumn} {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if}">
|
||||
{if isset($product_item_path)}
|
||||
{include file="$product_item_path" position=$position}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{($apLiveEditEnd)?$apLiveEditEnd:'' nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
11
modules/appagebuilder/views/templates/hook/ProductItem.tpl
Normal file
11
modules/appagebuilder/views/templates/hook/ProductItem.tpl
Normal file
@@ -0,0 +1,11 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ProductItem -->
|
||||
{if isset($product_item_path)}
|
||||
{include file="$product_item_path"}
|
||||
{/if}
|
||||
@@ -0,0 +1,96 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ProductOwlCarousel -->
|
||||
<div class="owl-row">
|
||||
<div class="timeline-wrapper clearfix prepare"
|
||||
data-item="{$formAtts.number_fake_item}"
|
||||
data-xl="{$formAtts.array_fake_item.xl}"
|
||||
data-lg="{$formAtts.array_fake_item.lg}"
|
||||
data-md="{$formAtts.array_fake_item.md}"
|
||||
data-sm="{$formAtts.array_fake_item.sm}"
|
||||
data-m="{$formAtts.array_fake_item.m}"
|
||||
>
|
||||
{for $foo=1 to $formAtts.number_fake_item}
|
||||
<div class="timeline-parent">
|
||||
{for $foo_child=1 to $formAtts.itempercolumn}
|
||||
<div class="timeline-item">
|
||||
<div class="animated-background">
|
||||
<div class="background-masker content-top"></div>
|
||||
<div class="background-masker content-second-line"></div>
|
||||
<div class="background-masker content-third-line"></div>
|
||||
<div class="background-masker content-fourth-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
<div id="{$carouselName|escape:'html':'UTF-8'}" class="owl-carousel owl-theme owl-loading {if isset($productClassWidget)}{$productClassWidget|escape:'html':'UTF-8'}{/if}">
|
||||
{$mproducts=array_chunk($products,$formAtts.itempercolumn)}
|
||||
{foreach from=$mproducts item=products name=mypLoop}
|
||||
<div class="item{if $smarty.foreach.mypLoop.index == 0} first{/if}">
|
||||
{foreach from=$products item=product name=products key="position"}
|
||||
{if isset($product_item_path)}
|
||||
{include file="$product_item_path" position=$position}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
if($('#{$carouselName|escape:'html':'UTF-8'}').parents('.tab-pane').length)
|
||||
{
|
||||
if(!$('#{$carouselName|escape:'html':'UTF-8'}').parents('.tab-pane').hasClass('active'))
|
||||
{
|
||||
var width_owl_active_tab = $('#{$carouselName|escape:'html':'UTF-8'}').parents('.tab-pane').siblings('.active').find('.owl-carousel').width();
|
||||
$('#{$carouselName|escape:'html':'UTF-8'}').width(width_owl_active_tab);
|
||||
}
|
||||
}
|
||||
$('#{$carouselName|escape:'html':'UTF-8'}').imagesLoaded( function() {
|
||||
$('#{$carouselName|escape:'html':'UTF-8'}').owlCarousel({
|
||||
items : {if $formAtts.items}{$formAtts.items|intval}{else}false{/if},
|
||||
itemsDesktop : {if isset($formAtts.itemsdesktop) && $formAtts.itemsdesktop}[1200,{$formAtts.itemsdesktop|intval}]{else}false{/if},
|
||||
itemsDesktopSmall : {if isset($formAtts.itemsdesktopsmall) && $formAtts.itemsdesktopsmall}[992,{$formAtts.itemsdesktopsmall|intval}]{else}false{/if},
|
||||
itemsTablet : {if isset($formAtts.itemstablet) && $formAtts.itemstablet}[768,{$formAtts.itemstablet|intval}]{else}false{/if},
|
||||
itemsMobile : {if isset($formAtts.itemsmobile) && $formAtts.itemsmobile}[576,{$formAtts.itemsmobile|intval}]{else}false{/if},
|
||||
itemsCustom : {if isset($formAtts.itemscustom) && $formAtts.itemscustom}{$formAtts.itemscustom|escape:'html':'UTF-8'}{else}false{/if},
|
||||
singleItem : false, // true : show only 1 item
|
||||
itemsScaleUp : false,
|
||||
slideSpeed :{if $formAtts.slidespeed}{$formAtts.slidespeed|intval}{else}200{/if}, // change speed when drag and drop a item
|
||||
paginationSpeed : {if $formAtts.paginationspeed}{$formAtts.paginationspeed|intval}{else}800{/if}, // change speed when go next page
|
||||
autoPlay : {if $formAtts.autoplay}true{else}false{/if}, // time to show each item
|
||||
stopOnHover : {if $formAtts.stoponhover}true{else}false{/if},
|
||||
navigation : {if $formAtts.navigation}true{else}false{/if},
|
||||
navigationText : ["‹", "›"],
|
||||
scrollPerPage : {if $formAtts.scrollperpage}true{else}false{/if},
|
||||
pagination : {if $formAtts.pagination}true{else}false{/if}, // show bullist
|
||||
paginationNumbers : {if $formAtts.paginationnumbers}true{else}false{/if}, // show number
|
||||
responsive : {if $formAtts.responsive}true{else}false{/if},
|
||||
responsiveRefreshRate : 0,
|
||||
lazyLoad : {if $formAtts.lazyload}true{else}false{/if},
|
||||
lazyFollow : {if $formAtts.lazyfollow}true{else}false{/if}, // true : go to page 7th and load all images page 1...7. false : go to page 7th and load only images of page 7th
|
||||
lazyEffect : "{$formAtts.lazyeffect|escape:'html':'UTF-8'}",
|
||||
autoHeight : {if $formAtts.autoheight}true{else}false{/if},
|
||||
mouseDrag : {if $formAtts.mousedrag}true{else}false{/if},
|
||||
touchDrag : {if $formAtts.touchdrag}true{else}false{/if},
|
||||
addClassActive : true,
|
||||
direction: {if $formAtts.rtl}'rtl'{else}false{/if},
|
||||
afterInit: OwlLoaded,
|
||||
afterAction : SetOwlCarouselFirstLast,
|
||||
});
|
||||
});
|
||||
});
|
||||
function OwlLoaded(el){
|
||||
el.removeClass('owl-loading').addClass('owl-loaded').parents('.owl-row').addClass('hide-loading');
|
||||
if ($(el).parents('.tab-pane').length && !$(el).parents('.tab-pane').hasClass('active'))
|
||||
el.width('100%');
|
||||
};
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,98 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApProductCarousel -->
|
||||
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
{if !empty($products)}
|
||||
<div class="slick-row">
|
||||
<div class="timeline-wrapper clearfix prepare"
|
||||
data-item="{$formAtts.number_fake_item}"
|
||||
data-xl="{if isset($formAtts.array_fake_item.xl)}{$formAtts.array_fake_item.xl}{/if}"
|
||||
data-lg="{if isset($formAtts.array_fake_item.lg)}{$formAtts.array_fake_item.lg}{/if}"
|
||||
data-md="{if isset($formAtts.array_fake_item.md)}{$formAtts.array_fake_item.md}{/if}"
|
||||
data-sm="{if isset($formAtts.array_fake_item.sm)}{$formAtts.array_fake_item.sm}{/if}"
|
||||
data-m="{if isset($formAtts.array_fake_item.m)}{$formAtts.array_fake_item.m}{/if}"
|
||||
>
|
||||
{for $foo=1 to $formAtts.number_fake_item}
|
||||
<div class="timeline-parent">
|
||||
{for $foo_child=1 to $formAtts.slick_row}
|
||||
<div class="timeline-item">
|
||||
<div class="animated-background">
|
||||
<div class="background-masker content-top"></div>
|
||||
<div class="background-masker content-second-line"></div>
|
||||
<div class="background-masker content-third-line"></div>
|
||||
<div class="background-masker content-fourth-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
<div class="list-product-slick-carousel slick-slider slick-loading {if isset($productClassWidget)}{$productClassWidget|escape:'html':'UTF-8'}{/if}" id="{$formAtts.form_id|escape:'html':'UTF-8'}">
|
||||
{foreach from=$products item=product name=products name=mypLoop key="position"}
|
||||
{if isset($product_item_path)}
|
||||
<div class="slick-slide {if $smarty.foreach.mypLoop.index == 0} first{/if}">
|
||||
<div class="item">
|
||||
{include file="$product_item_path" position=$position}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<p class="alert alert-info">Na razie tutaj jest pusto. Zapraszamy niedługo.</p>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
$('#{$formAtts.form_id|escape:'html':'UTF-8'}').imagesLoaded( function() {
|
||||
$('#{$formAtts.form_id|escape:'html':'UTF-8'}').slick(
|
||||
{if $formAtts.slick_custom_status}
|
||||
{$formAtts.slick_custom}
|
||||
{else}
|
||||
{
|
||||
centerMode: {if isset($formAtts.slick_centermode) && $formAtts.slick_centermode}true{else}false{/if},
|
||||
centerPadding: '{if isset($formAtts.slick_centerpadding) && $formAtts.slick_centerpadding}{$formAtts.slick_centerpadding}{else}0{/if}px',
|
||||
dots: {if $formAtts.slick_dot}true{else}false{/if},
|
||||
infinite: {if isset($formAtts.slick_loopinfinite) && $formAtts.slick_loopinfinite}true{else}false{/if},
|
||||
vertical: {if $formAtts.slick_vertical}true{else}false{/if},
|
||||
verticalSwiping : {if $formAtts.slick_vertical}true{else}false{/if},
|
||||
autoplay: {if $formAtts.slick_autoplay}true{else}false{/if},
|
||||
pauseonhover: {if $formAtts.slick_pauseonhover}true{else}false{/if},
|
||||
autoplaySpeed: 2000,
|
||||
arrows: {if $formAtts.slick_arrows}true{else}false{/if},
|
||||
rows: {$formAtts.slick_row},
|
||||
slidesToShow: {$formAtts.slick_slidestoshow},
|
||||
slidesToScroll: {if $formAtts.slick_dot}{$formAtts.slick_slidestoshow}{else}{$formAtts.slick_slidestoscroll}{/if},
|
||||
rtl: {if isset($IS_RTL) && $IS_RTL}true{else}false{/if},
|
||||
responsive: [
|
||||
{foreach from=$formAtts.slick_items_custom item=mobile name=mobiles}
|
||||
{
|
||||
breakpoint: {$mobile.0},
|
||||
settings: {
|
||||
centerMode: {if isset($formAtts.slick_centermode) && $formAtts.slick_centermode}true{else}false{/if},
|
||||
centerPadding: '{if isset($formAtts.slick_centerpadding) && $formAtts.slick_centerpadding}{$formAtts.slick_centerpadding}{else}0{/if}px',
|
||||
slidesToShow: {$mobile.1},
|
||||
slidesToScroll: {if $formAtts.slick_dot}{$mobile.1}{else}{$formAtts.slick_slidestoscroll}{/if},
|
||||
}
|
||||
},
|
||||
{/foreach}
|
||||
]
|
||||
}
|
||||
{/if}
|
||||
);
|
||||
$('#{$formAtts.form_id|escape:'html':'UTF-8'}').removeClass('slick-loading').addClass('slick-loaded').parents('.slick-row').addClass('hide-loading');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,8 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
{$apContent nofilter}{* HTML form , no escape necessary *}
|
||||
90
modules/appagebuilder/views/templates/hook/categoryExtra.tpl
Normal file
90
modules/appagebuilder/views/templates/hook/categoryExtra.tpl
Normal file
@@ -0,0 +1,90 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<div class="form-group row" id="leoCategoryExtra">
|
||||
<label class="control-label col-lg-3">
|
||||
<span class="label-tooltip" data-toggle="tooltip" data-html="true" title="" data-original-title="{l s='Layout Type' mod='appagebuilder'}">
|
||||
{l s='Layout Type' mod='appagebuilder'}
|
||||
</span>
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
|
||||
<select id="aplayout" name="aplayout" class="custom-select">
|
||||
<option value="default">{l s='default' mod='appagebuilder'}</option>
|
||||
{foreach $category_layouts as $aplayout}
|
||||
<option value="{$aplayout['plist_key']}" {if $aplayout['plist_key'] == $current_layout}selected="selected"{/if}>{$aplayout['name']}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<br/>
|
||||
<div class="alert alert-info" role="alert">
|
||||
<p class="alert-text">
|
||||
1. {l s='Create layout file in Ap PageBuilder > Ap product list builder' mod='appagebuilder'}<br>
|
||||
2. {l s='Use code $category.categorylayout to get layout' mod='appagebuilder'}<br>
|
||||
3. {l s='Example code download in' mod='appagebuilder'} <a href="https://github.com/ApolloTheme/appagebuilderlayout/blob/master/YOURTHEMENAME/templates/catalog/listing/category.tpl" title="example">{l s='Here' mod='appagebuilder'}</a>
|
||||
<br>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{foreach from=$apextras key=apextrak item=apextrav}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">{$apextrak}</label>
|
||||
<div class="col-lg-9">
|
||||
<div class="form-group">
|
||||
{foreach from=$languages item=language}
|
||||
{if $languages|count > 1}
|
||||
<div class="row">
|
||||
<div class="translatable-field lang-{$language.id_lang}" {if $language.id_lang != $id_lang_default}style="display:none"{/if}>
|
||||
<div class="col-lg-9">
|
||||
{/if}
|
||||
{if $apextrav == 'varchar(255)'}
|
||||
<input id="{$apextrak}_{$language.id_lang|intval}" type="text" name="{$apextrak}_{$language.id_lang|intval}" value="{if $data_fields}{$data_fields[$apextrak][$language.id_lang]}{/if}"/>
|
||||
{else}
|
||||
<textarea name="{$apextrak}_{$language.id_lang|intval}" rows="2" class="textarea-autosize">{if $data_fields}{$data_fields[$apextrak][$language.id_lang]|escape}{/if}</textarea>
|
||||
{/if}
|
||||
{if $languages|count > 1}
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
{$language.iso_code}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
{foreach from=$languages item=language}
|
||||
<li><a href="javascript:hideOtherLanguage({$language.id_lang});" tabindex="-1">{$language.name}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{/foreach}
|
||||
</div>
|
||||
<p class="alert-text">Use $category.{$apextrak} to get value in category.tpl file</p>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
if($('#category_form .form-wrapper').length)
|
||||
{
|
||||
$("#leoCategoryExtra").hide();
|
||||
$("#leoCategoryExtra").appendTo('#category_form .form-wrapper');
|
||||
$("#leoCategoryExtra").show();
|
||||
}
|
||||
|
||||
if($('form[name="category"] .card-text').length)
|
||||
{
|
||||
$("#leoCategoryExtra").hide();
|
||||
$("#leoCategoryExtra").appendTo('form[name="category"] .card-text');
|
||||
$("#leoCategoryExtra").show();
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
30
modules/appagebuilder/views/templates/hook/cdown.tpl
Normal file
30
modules/appagebuilder/views/templates/hook/cdown.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
|
||||
{if $product}
|
||||
<ul class="deal-clock lof-clock-{$product.id_product|intval}-detail list-inline">
|
||||
</ul>
|
||||
{if isset($product.js) && $product.js != 'unlimited'}
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
jQuery(document).ready(function($){{/literal}
|
||||
var text_d = '{l s='days' mod='appagebuilder'}';
|
||||
var text_h = '{l s='hours' mod='appagebuilder'}';
|
||||
var text_m = '{l s='min' mod='appagebuilder'}';
|
||||
var text_s = '{l s='sec' mod='appagebuilder'}';
|
||||
$(".lof-clock-{$product.id_product|intval}-detail").lofCountDown({literal}{{/literal}
|
||||
TargetDate:"{$product.js.month|escape:'html':'UTF-8'}/{$product.js.day|escape:'html':'UTF-8'}/{$product.js.year|escape:'html':'UTF-8'} {$product.js.hour|escape:'html':'UTF-8'}:{$product.js.minute|escape:'html':'UTF-8'}:{$product.js.seconds|escape:'html':'UTF-8'}",
|
||||
DisplayFormat:'<li class="z-depth-1">%%D%%<span>'+text_d+'</span></li><li class="z-depth-1">%%H%%<span>'+text_h+'</span></li><li class="z-depth-1">%%M%%<span>'+text_m+'</span></li><li class="z-depth-1">%%S%%<span>'+text_s+'</span></li>',
|
||||
FinishMessage: "{$product.finish|escape:'html':'UTF-8'}"
|
||||
{literal}
|
||||
});
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
{/if}
|
||||
{/if}
|
||||
27
modules/appagebuilder/views/templates/hook/color.tpl
Normal file
27
modules/appagebuilder/views/templates/hook/color.tpl
Normal file
@@ -0,0 +1,27 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
|
||||
{if $product}
|
||||
{if $colors}
|
||||
{if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction}
|
||||
{if $product.specific_prices.reduction_type == 'percentage'}
|
||||
{math assign='sale' equation='x*100' x=$product.specific_prices.reduction}
|
||||
{else}
|
||||
{math assign='sale' equation='(x/y)*100' x=$product.specific_prices.reduction y=$product.price_without_reduction}
|
||||
{/if}
|
||||
{foreach from=$colors item=color key=k}
|
||||
{if $k >= $sale }
|
||||
<div>
|
||||
{$color nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{break}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
38
modules/appagebuilder/views/templates/hook/config.tpl
Normal file
38
modules/appagebuilder/views/templates/hook/config.tpl
Normal file
@@ -0,0 +1,38 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<div class="group-input group-{$ap_cf} clearfix">
|
||||
<label class="col-sm-12 control-label">
|
||||
<i class="fa fa-tags"></i>
|
||||
{if $ap_cf == 'profile'}
|
||||
{l s='Home version' mod='appagebuilder'}
|
||||
{else if $ap_cf == 'header'}
|
||||
{l s='Header version' mod='appagebuilder'}
|
||||
{else if $ap_cf == 'footer'}
|
||||
{l s='Footer version' mod='appagebuilder'}
|
||||
{else if $ap_cf == 'product'}
|
||||
{l s='Product version' mod='appagebuilder'}
|
||||
{else if $ap_cf == 'content'}
|
||||
{l s='Content Home' mod='appagebuilder'}
|
||||
{else if $ap_cf == 'product_builder'}
|
||||
{l s='Product Builder' mod='appagebuilder'}
|
||||
{/if}
|
||||
</label>
|
||||
<div class="col-sm-12">
|
||||
{foreach from=$ap_cfdata item=cfdata}
|
||||
{if isset($cfdata.friendly_url) && $cfdata.friendly_url != '' && ( $ap_controller=='index' || $ap_controller=='appagebuilderhome')}
|
||||
{* current_page is index.php, and this link is friendly_url *}
|
||||
<a class="apconfig apconfig-{$ap_cf}{if $cfdata.active} active{/if}" data-type="{$ap_type}" data-id='{$cfdata.id}' data-enableJS="false" href="{$ap_current_url}{$cfdata.friendly_url}.html">{$cfdata.name}</a>
|
||||
{else if ($ap_controller=='index' && $ap_cf=='profile')}
|
||||
{* current_page is index.php (rewrite), and this link is id *}
|
||||
<a class="apconfig apconfig-{$ap_cf}{if $cfdata.active} active{/if}" data-type="{$ap_type}" data-id='{$cfdata.id}' data-enableJS="true" data-url="{$ap_current_url}" href="{$ap_current_url}{$cfdata.friendly_url}.html">{$cfdata.name}</a>
|
||||
{else}
|
||||
<a class="apconfig apconfig-{$ap_cf}{if $cfdata.active} active{/if}" data-type="{$ap_type}" data-id='{$cfdata.id}' data-enableJS="true" href="index.php?{$ap_type}={$cfdata.id}">{$cfdata.name}</a>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,31 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
{if isset($st_att_list_groups)}
|
||||
<div class="st_attr_list_container {if $st_att_list_center} st_attr_list_text_center{/if}">
|
||||
{foreach from=$st_att_list_groups key=id_attribute_group item=group}
|
||||
{if $group.attributes|@count && ($st_att_list_show==1 || array_sum($group.attributes_quantity))}
|
||||
<div class="st_attr_list_item">
|
||||
<strong>{$group.name} :</strong>
|
||||
{if ($group.group_type == 'color' && $st_att_list_color)}
|
||||
{foreach from=$group.attributes key=id_attribute item=group_attribute}
|
||||
{if $st_att_list_show==1 || $group.attributes_quantity[$id_attribute]}
|
||||
<span class="st_attr_list_swatch" title="{$group_attribute}" style="{if $group.colors[$id_attribute]['type']}background-image: url('{$group.colors[$id_attribute]['value']}');{else}background-color:{$group.colors[$id_attribute]['value']};{/if}"></span>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
{foreach from=$group.attributes key=id_attribute item=group_attribute}
|
||||
{if $st_att_list_show==1 || $group.attributes_quantity[$id_attribute]}
|
||||
<span class="st_attr_list_text">{$group_attribute}</span>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
47
modules/appagebuilder/views/templates/hook/header.tpl
Normal file
47
modules/appagebuilder/views/templates/hook/header.tpl
Normal file
@@ -0,0 +1,47 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\header -->
|
||||
|
||||
<script>
|
||||
/**
|
||||
* List functions will run when document.ready()
|
||||
*/
|
||||
var ap_list_functions = [];
|
||||
/**
|
||||
* List functions will run when window.load()
|
||||
*/
|
||||
var ap_list_functions_loaded = [];
|
||||
|
||||
/**
|
||||
* List functions will run when document.ready() for theme
|
||||
*/
|
||||
|
||||
var products_list_functions = [];
|
||||
</script>
|
||||
|
||||
|
||||
{if isset($ajax_enable) && $ajax_enable}
|
||||
<script type='text/javascript'>
|
||||
var leoOption = {
|
||||
category_qty:{if $category_qty}{$category_qty|escape:'html':'UTF-8'}{else}0{/if},
|
||||
product_list_image:{if $product_list_image}{$product_list_image|escape:'html':'UTF-8'}{else}0{/if},
|
||||
product_one_img:{if $product_one_img}{$product_one_img|escape:'html':'UTF-8'}{else}0{/if},
|
||||
productCdown: {if $productCdown}{$productCdown|escape:'html':'UTF-8'}{else}0{/if},
|
||||
productColor: {if $productColor}{$productColor|escape:'html':'UTF-8'}{else}0{/if},
|
||||
homeWidth: {if $homeSize}{$homeSize.width|escape:'html':'UTF-8'}{else}0{/if},
|
||||
homeheight: {if $homeSize}{$homeSize.height|escape:'html':'UTF-8'}{else}0{/if},
|
||||
}
|
||||
|
||||
ap_list_functions.push(function(){
|
||||
if (typeof $.LeoCustomAjax !== "undefined" && $.isFunction($.LeoCustomAjax)) {
|
||||
var leoCustomAjax = new $.LeoCustomAjax();
|
||||
leoCustomAjax.processAjax();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
35
modules/appagebuilder/views/templates/hook/index.php
Normal file
35
modules/appagebuilder/views/templates/hook/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2014 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-2019 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
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;
|
||||
19
modules/appagebuilder/views/templates/hook/link_sitemap.tpl
Normal file
19
modules/appagebuilder/views/templates/hook/link_sitemap.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<div class="col-md-12">
|
||||
<h2>{l s='Home' mod='appagebuilder'}</h2>
|
||||
<ul>
|
||||
{if isset($leo_profiles) && !empty($leo_profiles)}
|
||||
{foreach from=$leo_profiles item=leo_profile}
|
||||
<li>
|
||||
<a href="{$leo_profile.url}">{$leo_profile.name}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
128
modules/appagebuilder/views/templates/hook/list_shortcode.tpl
Normal file
128
modules/appagebuilder/views/templates/hook/list_shortcode.tpl
Normal file
@@ -0,0 +1,128 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
.list-sc-header
|
||||
{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.list-sc-header .btn-success
|
||||
{
|
||||
background: #5cb85c;
|
||||
border-color: #4cae4c;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
padding: 6px 12px;
|
||||
vertical-align: middle;
|
||||
border-radius: 4px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.list-sc-header .btn-info
|
||||
{
|
||||
background: #5bc0de;
|
||||
border-color: #46b8da;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
padding: 6px 12px;
|
||||
vertical-align: middle;
|
||||
border-radius: 4px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.list-sc-item
|
||||
{
|
||||
float: left;
|
||||
width: 30%;
|
||||
text-align: center;
|
||||
border: 1px solid #000;
|
||||
cursor: pointer;
|
||||
background: #337ab7;
|
||||
color: #fff;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.list-sc-item:hover
|
||||
{
|
||||
background: #286090;
|
||||
}
|
||||
|
||||
.list-sc-item.inactive
|
||||
{
|
||||
background: #f0ad4e;
|
||||
}
|
||||
|
||||
.list-sc-item.inactive:hover
|
||||
{
|
||||
background: #ec971f;
|
||||
}
|
||||
|
||||
.list-sc-content
|
||||
{
|
||||
margin-top: 20px;
|
||||
padding-left: 5%;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<script type="text/javascript" src="{$js_dir}jquery/jquery-1.11.0.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!--
|
||||
<div class="cssload-container">
|
||||
<div class="cssload-speeding-wheel"></div>
|
||||
</div>
|
||||
-->
|
||||
<div class="list-sc-header">
|
||||
<a target="_blank" class="sc-direct btn btn-info" href="{$shortcode_url}">{l s='List Shortcode' mod='appagebuilder'}</a>
|
||||
<a target="_blank" class="sc-direct btn btn-success" href="{$shortcode_url_add}">{l s='Create Shortcode' mod='appagebuilder'}</a>
|
||||
</div>
|
||||
{if count($list_shortcode) > 0}
|
||||
<div class="list-sc-content">
|
||||
{foreach from=$list_shortcode item=list_shortcode_item}
|
||||
<div class="list-sc-item{if !$list_shortcode_item['active']} inactive{/if}" data-shortcode-key="{$list_shortcode_item['shortcode_key']}">
|
||||
<div class="sc-name">
|
||||
{$list_shortcode_item['shortcode_name']}
|
||||
</div>
|
||||
<div class="sc-key">
|
||||
{$list_shortcode_item['shortcode_key']}
|
||||
</div>
|
||||
<div class="sc-status">
|
||||
(ID: {$list_shortcode_item['id_appagebuilder_shortcode']} -
|
||||
{if $list_shortcode_item['active']}
|
||||
{l s='Active' mod='appagebuilder'}
|
||||
{else}
|
||||
{l s='Inactive' mod='appagebuilder'}
|
||||
{/if}
|
||||
)
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('.list-sc-item').click(function(){
|
||||
var shortcode_key = $(this).data('shortcode-key');
|
||||
var shortcode_txt = '[ApSC sc_key='+shortcode_key+'][/ApSC]';
|
||||
parent.tinyMCE.execCommand('mceInsertContent', false,shortcode_txt);
|
||||
parent.tinyMCE.activeEditor.windowManager.close();
|
||||
});
|
||||
|
||||
$('.sc-direct').click(function(){
|
||||
window.open($(this).attr('href'), '_blank');
|
||||
parent.tinyMCE.activeEditor.windowManager.close();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,55 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\manufacturers_carousel -->
|
||||
<div data-ride="carousel" class="carousel slide" id="{$carouselName|escape:'html':'UTF-8'}">
|
||||
{$NumManu = count($manufacturers)}
|
||||
{if $NumManu > $itemsperpage}
|
||||
<div class="direction">
|
||||
<a class="carousel-control left" href="#{$carouselName|escape:'html':'UTF-8'}" data-slide="prev">
|
||||
<span class="icon-prev hidden-xs" aria-hidden="true"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="carousel-control right" href="#{$carouselName|escape:'html':'UTF-8'}" data-slide="next">
|
||||
<span class="icon-next" aria-hidden="true"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="carousel-inner">
|
||||
|
||||
{if array_key_exists('value_by_manufacture',$formAtts) && $formAtts.value_by_manufacture eq '1'}
|
||||
{$Num=array_chunk($manuselect,$itemsperpage)}
|
||||
{else}
|
||||
{$Num=array_chunk($manuselect,$itemsperpage)}
|
||||
{/if}
|
||||
{foreach from=$Num item=manuselect name=manuloop}
|
||||
<div class="carousel-item {if $smarty.foreach.manuloop.first}active{/if}">
|
||||
{$i = 0}
|
||||
{foreach from=$manuselect item=manu}
|
||||
{$i = $i+1}
|
||||
{if ($i mod $nbItemsPerLine) eq 1 || $i eq 1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div class="manufacturer-item {$scolumn|escape:'html':'UTF-8'}">
|
||||
<a title="{l s='%s' sprintf=[$manu.name] mod='appagebuilder'}"
|
||||
href="{$link->getmanufacturerLink($manu.id_manufacturer, $manu.link_rewrite)|escape:'html':'UTF-8'}">
|
||||
<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload}data-src{else}src{/if}="{$img_manu_dir|escape:'html':'UTF-8'}{$manu.id_manufacturer|escape:'html':'UTF-8'}-{$image_type|escape:'html':'UTF-8'}.jpg" alt="{$manu.name|escape:'html':'UTF-8'}" />
|
||||
<span>{$manu.name|escape:'html':'UTF-8'}</span>
|
||||
</a>
|
||||
</div>
|
||||
{if ($i mod $nbItemsPerLine) eq 0}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if ($i mod $nbItemsPerLine) gt 0}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,97 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\manufacturers_owl_carousel -->
|
||||
<div class="owl-row">
|
||||
<div class="timeline-wrapper clearfix prepare owl-manu"
|
||||
data-item="{$formAtts.number_fake_item}"
|
||||
data-xl="{$formAtts.array_fake_item.xl}"
|
||||
data-lg="{$formAtts.array_fake_item.lg}"
|
||||
data-md="{$formAtts.array_fake_item.md}"
|
||||
data-sm="{$formAtts.array_fake_item.sm}"
|
||||
data-m="{$formAtts.array_fake_item.m}"
|
||||
>
|
||||
{for $foo=1 to $formAtts.number_fake_item}
|
||||
<div class="timeline-parent">
|
||||
{for $foo_child=1 to $formAtts.itempercolumn}
|
||||
<div class="timeline-item">
|
||||
<div class="animated-background">
|
||||
</div>
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
<div id="{$carouselName|escape:'html':'UTF-8'}" class="owl-carousel owl-theme owl-loading">
|
||||
{if array_key_exists('value_by_manufacture',$formAtts) && $formAtts.value_by_manufacture eq '1' }
|
||||
{$Num=array_chunk($manuselect,$formAtts.itempercolumn)}
|
||||
{else}
|
||||
{$Num=array_chunk($manuselect,$formAtts.itempercolumn)}
|
||||
{/if}
|
||||
|
||||
{foreach from=$Num item=manuselect name=manuloop}
|
||||
<div class="item {if $smarty.foreach.manuloop.index == 0} first{/if}">
|
||||
{foreach from=$manuselect item=manu}
|
||||
<div class="manufacturer-container manufacturer-block" itemscope itemtype="https://schema.org/Brand">
|
||||
<div class="left-block">
|
||||
<div class="manufacturer-image-container image">
|
||||
<a title="{l s='%s' sprintf=[$manu.name] mod='appagebuilder'}" href="{$link->getmanufacturerLink($manu.id_manufacturer, $manu.link_rewrite)|escape:'html':'UTF-8'}" itemprop="url">
|
||||
{if isset($formAtts) && isset($formAtts.lazyload) && $formAtts.lazyload}
|
||||
{* ENABLE LAZY LOAD OWL_CAROUSEL *}
|
||||
<img class="img-fluid lazyOwl" src="" data-src="{$img_manu_dir}{*full link can not escape*}{$manu.id_manufacturer|intval}-{$image_type|escape:'html':'UTF-8'}.jpg" alt="{$manu.name|escape:'html':'UTF-8'}" itemprop="image" />
|
||||
{else}
|
||||
<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload}data-src{else}src{/if}="{$img_manu_dir}{*full link can not escape*}{$manu.id_manufacturer|intval}-{$image_type|escape:'html':'UTF-8'}.jpg" alt="{$manu.name|escape:'html':'UTF-8'}" itemprop="image" />
|
||||
{/if}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
$('#{$carouselName|escape:'html':'UTF-8'}').imagesLoaded( function() {
|
||||
$('#{$carouselName|escape:'html':'UTF-8'}').owlCarousel({
|
||||
items : {if $formAtts.items}{$formAtts.items|intval}{else}false{/if},
|
||||
itemsDesktop : {if isset($formAtts.itemsdesktop) && $formAtts.itemsdesktop}[1200,{$formAtts.itemsdesktop|intval}]{else}false{/if},
|
||||
itemsDesktopSmall : {if isset($formAtts.itemsdesktopsmall) && $formAtts.itemsdesktopsmall}[992,{$formAtts.itemsdesktopsmall|intval}]{else}false{/if},
|
||||
itemsTablet : {if isset($formAtts.itemstablet) && $formAtts.itemstablet}[768,{$formAtts.itemstablet|intval}]{else}false{/if},
|
||||
itemsMobile : {if isset($formAtts.itemsmobile) && $formAtts.itemsmobile}[576,{$formAtts.itemsmobile|intval}]{else}false{/if},
|
||||
itemsCustom : {if isset($formAtts.itemscustom) && $formAtts.itemscustom}{$formAtts.itemscustom|escape:'html':'UTF-8'}{else}false{/if},
|
||||
singleItem : false, // true : show only 1 item
|
||||
itemsScaleUp : false,
|
||||
slideSpeed :{if $formAtts.slidespeed}{$formAtts.slidespeed|intval}{else}200{/if}, // change speed when drag and drop a item
|
||||
paginationSpeed : {if $formAtts.paginationspeed}{$formAtts.paginationspeed|intval}{else}800{/if}, // change speed when go next page
|
||||
autoPlay : {if $formAtts.autoplay}true{else}false{/if}, // time to show each item
|
||||
stopOnHover : {if $formAtts.stoponhover}true{else}false{/if},
|
||||
navigation : {if $formAtts.navigation}true{else}false{/if},
|
||||
navigationText : ["‹", "›"],
|
||||
scrollPerPage : {if $formAtts.scrollperpage}true{else}false{/if},
|
||||
pagination : {if $formAtts.pagination}true{else}false{/if}, // show bullist
|
||||
paginationNumbers : {if $formAtts.paginationnumbers}true{else}false{/if}, // show number
|
||||
responsive : {if $formAtts.responsive}true{else}false{/if},
|
||||
lazyLoad : {if $formAtts.lazyload}true{else}false{/if},
|
||||
lazyFollow : {if $formAtts.lazyfollow}true{else}false{/if}, // true : go to page 7th and load all images page 1...7. false : go to page 7th and load only images of page 7th
|
||||
lazyEffect : "{$formAtts.lazyeffect|escape:'html':'UTF-8'}",
|
||||
autoHeight : {if $formAtts.autoheight}true{else}false{/if},
|
||||
mouseDrag : {if $formAtts.mousedrag}true{else}false{/if},
|
||||
touchDrag : {if $formAtts.touchdrag}true{else}false{/if},
|
||||
addClassActive : true,
|
||||
direction: {if $formAtts.rtl}'rtl'{else}false{/if},
|
||||
afterInit: OwlLoaded,
|
||||
afterAction : SetOwlCarouselFirstLast,
|
||||
});
|
||||
});
|
||||
});
|
||||
function OwlLoaded(el){
|
||||
el.removeClass('owl-loading').addClass('owl-loaded').parents('.owl-row').addClass('hide-loading');
|
||||
};
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,103 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<!-- @file modules\appagebuilder\views\templates\hook\ApManuFacturersCarousel -->
|
||||
{if isset($formAtts.lib_has_error) && $formAtts.lib_has_error}
|
||||
{if isset($formAtts.lib_error) && $formAtts.lib_error}
|
||||
<div class="alert alert-warning leo-lib-error">{$formAtts.lib_error}</div>
|
||||
{/if}
|
||||
{else}
|
||||
{if !empty($manufacturers)}
|
||||
<div class="slick-row">
|
||||
<div class="timeline-wrapper clearfix prepare"
|
||||
data-item="{$formAtts.number_fake_item}"
|
||||
data-xl="{if isset($formAtts.array_fake_item.xl)}{$formAtts.array_fake_item.xl}{/if}"
|
||||
data-lg="{if isset($formAtts.array_fake_item.lg)}{$formAtts.array_fake_item.lg}{/if}"
|
||||
data-md="{if isset($formAtts.array_fake_item.md)}{$formAtts.array_fake_item.md}{/if}"
|
||||
data-sm="{if isset($formAtts.array_fake_item.sm)}{$formAtts.array_fake_item.sm}{/if}"
|
||||
data-m="{if isset($formAtts.array_fake_item.m)}{$formAtts.array_fake_item.m}{/if}"
|
||||
>
|
||||
{for $foo=1 to $formAtts.number_fake_item}
|
||||
<div class="timeline-parent">
|
||||
{for $foo_child=1 to $formAtts.slick_row}
|
||||
<div class="timeline-item">
|
||||
<div class="animated-background">
|
||||
<div class="background-masker content-top"></div>
|
||||
<div class="background-masker content-second-line"></div>
|
||||
<div class="background-masker content-third-line"></div>
|
||||
<div class="background-masker content-fourth-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
<div class="slick-manufacturers slick-slider slick-loading" id="{$formAtts.form_id|escape:'html':'UTF-8'}">
|
||||
{foreach from=$manufacturers item=manu name=mypLoop}
|
||||
<div class="slick-slide {if $smarty.foreach.mypLoop.index == 0} first{/if}">
|
||||
<div class="item">
|
||||
<div class="manufacturer-container manufacturer-block" itemscope itemtype="https://schema.org/Brand">
|
||||
<div class="left-block">
|
||||
<div class="manufacturer-image-container image">
|
||||
<a title="{l s='%s' sprintf=[$manu.name] mod='appagebuilder'}" href="{$link->getmanufacturerLink($manu.id_manufacturer, $manu.link_rewrite)|escape:'html':'UTF-8'}" itemprop="url">
|
||||
<img class="img-fluid{if $aplazyload} lazy{/if}" {if $aplazyload}data-src{else}src{/if}="{$img_manu_dir}{*full link can not escape*}{$manu.id_manufacturer|intval}-{$image_type|escape:'html':'UTF-8'}.jpg" alt="{$manu.name|escape:'html':'UTF-8'}" itemprop="image" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<p class="alert alert-info">{l s='No manufacturer at this time.' mod='appagebuilder'}</p>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
ap_list_functions.push(function(){
|
||||
$('#{$formAtts.form_id|escape:'html':'UTF-8'}').imagesLoaded( function() {
|
||||
$('#{$formAtts.form_id|escape:'html':'UTF-8'}').slick(
|
||||
{if $formAtts.slick_custom_status}
|
||||
{$formAtts.slick_custom}
|
||||
{else}
|
||||
{
|
||||
centerMode: {if isset($formAtts.slick_centermode) && $formAtts.slick_centermode}true{else}false{/if},
|
||||
centerPadding: '{if isset($formAtts.slick_centerpadding) && $formAtts.slick_centerpadding}{$formAtts.slick_centerpadding}{else}0{/if}px',
|
||||
dots: {if $formAtts.slick_dot}true{else}false{/if},
|
||||
infinite: {if isset($formAtts.slick_loopinfinite) && $formAtts.slick_loopinfinite}true{else}false{/if},
|
||||
vertical: {if $formAtts.slick_vertical}true{else}false{/if},
|
||||
verticalSwiping : {if $formAtts.slick_vertical}true{else}false{/if},
|
||||
autoplay: {if $formAtts.slick_autoplay}true{else}false{/if},
|
||||
pauseonhover: {if $formAtts.slick_pauseonhover}true{else}false{/if},
|
||||
autoplaySpeed: 2000,
|
||||
arrows: {if $formAtts.slick_arrows}true{else}false{/if},
|
||||
rows: {$formAtts.slick_row},
|
||||
slidesToShow: {$formAtts.slick_slidestoshow},
|
||||
slidesToScroll: {if $formAtts.slick_dot}{$formAtts.slick_slidestoshow}{else}{$formAtts.slick_slidestoscroll}{/if},
|
||||
rtl: {if isset($IS_RTL) && $IS_RTL}true{else}false{/if},
|
||||
responsive: [
|
||||
{foreach from=$formAtts.slick_items_custom item=mobile name=mobiles}
|
||||
{
|
||||
breakpoint: {$mobile.0},
|
||||
settings: {
|
||||
centerMode: {if isset($formAtts.slick_centermode) && $formAtts.slick_centermode}true{else}false{/if},
|
||||
centerPadding: '{if isset($formAtts.slick_centerpadding) && $formAtts.slick_centerpadding}{$formAtts.slick_centerpadding}{else}0{/if}px',
|
||||
slidesToShow: {$mobile.1},
|
||||
slidesToScroll: {if $formAtts.slick_dot}{$mobile.1}{else}{$formAtts.slick_slidestoscroll}{/if},
|
||||
}
|
||||
},
|
||||
{/foreach}
|
||||
]
|
||||
}
|
||||
{/if}
|
||||
);
|
||||
$('#{$formAtts.form_id|escape:'html':'UTF-8'}').removeClass('slick-loading').addClass('slick-loaded').parents('.slick-row').addClass('hide-loading');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
33
modules/appagebuilder/views/templates/hook/product.tpl
Normal file
33
modules/appagebuilder/views/templates/hook/product.tpl
Normal file
@@ -0,0 +1,33 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
|
||||
<div class="col-1">
|
||||
{assign var='images' value=$product.images}
|
||||
{if isset($images) && count($images) > 0}
|
||||
<!-- thumbnails -->
|
||||
<div class="views_block" class="clearfix {if isset($images) && count($images) < 2}hidden{/if}">
|
||||
{if isset($images) && count($images) > 3}<span class="view_scroll_spacer">
|
||||
<a class="view_scroll_left view_scroll_left_{$product.id_product|intval}" rel="{$product.id_product|intval}" class="hidden" title="{l s='Other views' mod='appagebuilder'}" href="javascript:{ldelim}{rdelim}"><em class="fa fa-chevron-up"></em></a></span>{/if}
|
||||
<div class="thumbs_list thumbs_list_{$product.id_product|intval}">
|
||||
<ul class="thumbs_list_frame">
|
||||
{if isset($images)}
|
||||
{foreach from=$images item=image name=thumbnails}
|
||||
{assign var=imageIds value="`$product.id_product`-`$image.id_image`"}
|
||||
<li id="thumbnail_{$image.id_image|intval}">
|
||||
<a href="{$link->getImageLink($product.link_rewrite, $imageIds, 'large_default')|escape:'html':'UTF-8'}" data-idproduct="{$product.id_product|intval}" rel="other-views" class="thickbox-ajax-{$product.id_product|intval}{if $smarty.foreach.thumbnails.first} shown{/if}" title="{$image.legend|htmlspecialchars}">
|
||||
<img id="thumb_{$image.id_image|intval}" {if $aplazyload}data-src{else}src{/if}="{$link->getImageLink($product.link_rewrite, $imageIds, 'cart_default')|escape:'html':'UTF-8'}" alt="{$image.legend|htmlspecialchars}" rel="{$link->getImageLink($product.link_rewrite, $imageIds, 'home_default')}" class="leo-hover-image{if $aplazyload} lazy{/if}"/>
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
{if isset($images) && count($images) > 3}<a class="view_scroll_right view_scroll_right_{$product.id_product|escape:'html':'UTF-8'}" rel="{$product.id_product|escape:'html':'UTF-8'}" title="{l s='Other views' mod='appagebuilder'}" href="javascript:{ldelim}{rdelim}"><em class="fa fa-chevron-down"></em></a>{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
61
modules/appagebuilder/views/templates/hook/productExtra.tpl
Normal file
61
modules/appagebuilder/views/templates/hook/productExtra.tpl
Normal file
@@ -0,0 +1,61 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2>{l s='Layout Type' mod='appagebuilder'}</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 form-group">
|
||||
<select id="aplayout" name="aplayout" class="form-control select2-hidden-accessible" data-toggle="select2" tabindex="-1" aria-hidden="true">
|
||||
<option value="default">{l s='Global Layout' mod='appagebuilder'}</option>
|
||||
{foreach $product_layouts as $aplayout}
|
||||
<option value="{$aplayout.plist_key}" {if $aplayout.plist_key == $current_layout}selected="selected"{/if}>{$aplayout.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<br>
|
||||
<br>
|
||||
<div class="alert alert-info" role="alert">
|
||||
<i class="material-icons">help</i>
|
||||
<p class="alert-text">
|
||||
1. {l s='Please select layout to show product' mod='appagebuilder'}<br/>
|
||||
2. {l s='Then you can use variable' mod='appagebuilder'}<br/>
|
||||
$product.productLayout<br/>
|
||||
3. {l s='To select product layout in file product.tpl' mod='appagebuilder'}<br/>
|
||||
<br>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{foreach from=$apextras key=apextrak item=apextrav}
|
||||
<div class="row">
|
||||
<div class="col-md-12 form-group">
|
||||
<fieldset class="form-group">
|
||||
<label>{$apextrak}</label>
|
||||
<div class="translations tabbable" id="form_tab_hooks_meta_title">
|
||||
<div class="translationsFields tab-content">
|
||||
{foreach from=$languages item=language}
|
||||
<div class="translationsFields-form_tab_hooks_{$apextrak}_{$language.id_lang} tab-pane translation-field translation-label-{$language.iso_code} {if $language.id_lang == $default_language.id_lang}visible{/if}">
|
||||
{if $apextrav == 'varchar(255)'}
|
||||
<input type="text" id="form_tab_hooks_{$apextrak}_{$language.id_lang}" name="form[tab_hooks][{$apextrak}][{$language.id_lang}]" class="form-control" value="{$data_fields[$apextrak][$language.id_lang]}"/>
|
||||
{else}
|
||||
<textarea name="form[tab_hooks][{$apextrak}][{$language.id_lang}]" rows="2" class="textarea-autosize">{$data_fields[$apextrak][$language.id_lang]|escape}</textarea>
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
<p class="alert-text">Use $product.{$apextrak} to get value in product.tpl file</p>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
Reference in New Issue
Block a user