first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

View File

@@ -0,0 +1,322 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
{extends file="helpers/form/form.tpl"}
{block name="field"}
{if $input.type == 'img_cat'}
{assign var=tree value=$input.tree}
{assign var=imageList value=$input.imageList}
{assign var=selected_images value=$input.selected_images}
<div class="form-group form-select-icon">
<label class="control-label col-lg-3 " for="categories"> {l s='Categories' mod='leobootstrapmenu'} </label>
<div class="col-lg-9">
{$tree}{* HTML form , no escape necessary *}
</div>
<input type="hidden" name="category_img" id="category_img" value='{$selected_images|escape:'html':'UTF-8'}'/>
<div id="list_image_wrapper" style="display:none">
<div class="list-image btn-group">
<button style="background-color:#00aff0; padding:0 8px;" type="button" class="btn dropdown-toggle" data-toggle="dropdown" value="imageicon">icons
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">none</a></li>
{foreach from=$imageList item=image}
<li><a href="#"><img height = '10px' src='{$image["path"]|escape:'html':'UTF-8'}'> {$image["name"]|escape:'html':'UTF-8'}</a></li>
{/foreach}
</ul>
</div>
</div>
</div>
{/if}
{if $input.type == 'file_lang'}
<div class="col-lg-9">
<div class="row">
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field lang-{$language.id_lang|intval}" {if $language.id_lang != $defaultFormLanguage}style="display:none"{/if}>
{/if}
<div class="col-lg-9">
<div class="upload-img-form">
<img id="thumb_slider_thumbnail_{$language.id_lang|intval}" width="50" class="{if !$fields_value[$input.name][$language.id_lang]}nullimg{/if}" alt="" src="{$psBaseModuleUri|escape:'html':'UTF-8'}{$fields_value[$input.name][$language.id_lang]|escape:'html':'UTF-8'}"/>
<input id="{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}" type="hidden" name="{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}" class="hide" value="{$fields_value[$input.name][$language.id_lang]|escape:'html':'UTF-8'}" />
<br>
<a onclick="image_upload('{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}', 'thumb_slider_thumbnail_{$language.id_lang|intval}');" href="javascript:void(0);">{l s='Browse' mod='leobootstrapmenu'}</a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a onclick="$('#thumb_slider_thumbnail_{$language.id_lang|intval}').attr('src', '');$('#thumb_slider_thumbnail_{$language.id_lang|intval}').addClass('nullimg'); $('#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}').attr('value', '');" href="javascript:void(0);">{l s='Clear' mod='leobootstrapmenu'}</a>
</div>
<br/>
</div>
{if $languages|count > 1}
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
{$language.iso_code}{* HTML form , no escape necessary *}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=lang}
<li><a href="javascript:hideOtherLanguage({$lang.id_lang|intval});" tabindex="-1">{$lang.name|escape:'html':'UTF-8'}</a></li>
{/foreach}
</ul>
</div>
{/if}
{if $languages|count > 1}
</div>
{/if}
<script>
$(document).ready(function() {
$('#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}-selectbutton').click(function(e) {
$('#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}').trigger('click');
});
$('#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}').change(function(e) {
var val = $(this).val();
var file = val.split(/[\\/]/);
$('#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}-name').val(file[file.length - 1]);
});
});
</script>
<input id="slider-image_{$language.id_lang|intval}" type="hidden" name="image_{$language.id_lang|intval}" class="hide" value="{$fields_value["image"][$language.id_lang]|escape:'html':'UTF-8'}" />
{/foreach}
</div>
</div>
{/if}
{if $input.type == 'group_background'}
<div class="col-lg-9">
<div class="upload-img-form">
<img id="img_{$input.id|intval}" width="50" class="{if !{$fields_value[$input.name]|escape:'html':'UTF-8'}}nullimg{/if}" alt="{l s='Group Back-ground' mod='leobootstrapmenu'}" src="{$psBaseModuleUri|escape:'html':'UTF-8'}{$fields_value[$input.name]|escape:'html':'UTF-8'}"/>
<input id="{$input.id|intval}" type="hidden" name="group[background_url]" class="hide" value="{$fields_value[$input.name]|escape:'html':'UTF-8'}" />
<br>
<a onclick="background_upload('{$input.id|intval}', 'img_{$input.id|intval}','{$ajaxfilelink}'{* HTML form , no escape necessary *}, '{$psBaseModuleUri|escape:'html':'UTF-8'}');" href="javascript:void(0);">{l s='Browse' mod='leobootstrapmenu'}</a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a onclick="$('#img_{$input.id|intval}').attr('src', '');$('#img_{$input.id|intval}').addClass('nullimg'); $('#{$input.id|intval}').attr('value', '');" href="javascript:void(0);">{l s='Clear' mod='leobootstrapmenu'}</a>
</div>
<p>{l s='Click to upload or select a back-ground' mod='leobootstrapmenu'}</p>
</div>
{/if}
{if $input.type == 'group_button' && $input.id_group}
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<div class="btn-group pull-right">
<a class="btn btn-default {if $languages|count > 1}dropdown-toggle {else}group-preview {/if}color_danger" href="{$previewLink|escape:'html':'UTF-8'}&id_group={$input.id_group|intval}"><i class="icon-eye-open"></i> {l s='Preview Group' mod='leobootstrapmenu'}</a>
{if $languages|count > 1}
<span data-toggle="dropdown" class="btn btn-default dropdown-toggle">
<span class="caret"></span>&nbsp;
</span>
<ul class="dropdown-menu">
{foreach from=$languages item=language}
<li>
{$arrayParam = ['secure_key' => $msecure_key, 'id_group' => $input.id_group|intval]}
<a href="{$link->getModuleLink('leoslideshow','preview', $arrayParam, null, $language.id_lang|intval)}" class="group-preview">
<i class="icon-eye-open"></i> {l s='Preview For' mod='leobootstrapmenu'} {$language.name|escape:'html':'UTF-8'}
</a>
</li>
{/foreach}
</ul>
{/if}
</div>
<button class="btn btn-default dash_trend_right" name="submitGroup" id="module_form_submit_btn" type="submit">
<i class="icon-save"></i> {l s='Save' mod='leobootstrapmenu'}
</button>
<a class="btn btn-default color_success" href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=leoslideshow&showsliders=1&id_group={$input.id_group|intval}"><i class="icon-film"></i> {l s='Manages Sliders' mod='leobootstrapmenu'}</a>
<a class="btn btn-default" href="{$exportLink|escape:'html':'UTF-8'}&id_group={$input.id_group|intval}"><i class="icon-eye-open"></i> {l s='Export Group and sliders' mod='leobootstrapmenu'}</a>
<a class="btn btn-default" href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=leoslideshow&deletegroup=1&id_group={$input.id_group|intval}" onclick="if (confirm('{l s='Delete Selected Group?' mod='leobootstrapmenu'}')) {
return true;
} else {
event.stopPropagation();
event.preventDefault();
}
;" title="{l s='Delete' mod='leobootstrapmenu'}" class="delete">
<i class="icon-trash"></i> {l s='Delete' mod='leobootstrapmenu'}
</a>
</div>
</div>
{/if}
{if $input.type == 'slider_button'}
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<a class="btn btn-default dash_trend_right" href="javascript:void(0)" onclick="return $('#module_form').submit();"><i class="icon-save"></i> {l s='Save Slider' mod='leobootstrapmenu'}</a>
</div>
</div>
{/if}
{if $input.type == 'sperator_form'}
<div class="{if isset($input.class)}{$input.class|escape:'html':'UTF-8'}{else}alert alert-info{/if}"
{if isset($input.name)}name="{$input.name|escape:'html':'UTF-8'}"{/if}
nextClick="false">{$input.text}{* HTML form , no escape necessary *}
</div>
{/if}
{if $input.type == 'video_config'}
<div class="col-lg-9">
<div class="row">
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field lang-{$language.id_lang|intval}" {if $language.id_lang != $defaultFormLanguage}style="display:none"{/if}>
{/if}
<div class="col-lg-9">
<div class="radiolabel">
<lable>{l s='Video Type' mod='leobootstrapmenu'}</lable>
<select name="usevideo_{$language.id_lang|intval}" class="">
<option {if isset($fields_value["usevideo"][$language.id_lang]) && $fields_value["usevideo"][$language.id_lang] && $fields_value["usevideo"][$language.id_lang] eq "0"}selected="selected"{/if} value="0">{l s='No' mod='leobootstrapmenu'}</option>
<option {if isset($fields_value["usevideo"][$language.id_lang]) && $fields_value["usevideo"][$language.id_lang] && $fields_value["usevideo"][$language.id_lang] eq "youtube"}selected="selected"{/if} value="youtube">{l s='Youtube' mod='leobootstrapmenu'}</option>
<option {if isset($fields_value["usevideo"][$language.id_lang]) && $fields_value["usevideo"][$language.id_lang] && $fields_value["usevideo"][$language.id_lang] eq "vimeo"}selected="selected"{/if} value="vimeo">{l s='Vimeo' mod='leobootstrapmenu'}</option>
</select>
</div>
<div class="radiolabel">
<lable>{l s='Video ID' mod='leobootstrapmenu'}</lable>
<input id="videoid_{$language.id_lang|intval}" name="videoid_{$language.id_lang|intval}" type="text" {if isset($fields_value["videoid"][$language.id_lang]) && $fields_value["videoid"][$language.id_lang]} value="{$fields_value["videoid"][$language.id_lang]}"{* HTML form , no escape necessary *}{/if}/>
<div class="input-group col-lg-2">
</div>
<div class="input-group col-lg-2">
<lable>{l s='Auto Play' mod='leobootstrapmenu'}</lable>
<select name="videoauto_{$language.id_lang|intval}">
<option value="1" {if isset($fields_value["videoauto"][$language.id_lang]) && $fields_value["videoauto"][$language.id_lang] == 1}selected="selected"{/if}>{l s='Yes' mod='leobootstrapmenu'}</option>
<option value="0" {if isset($fields_value["videoauto"][$language.id_lang]) && $fields_value["videoauto"][$language.id_lang] == 0}selected="selected"{/if}>{l s='No' mod='leobootstrapmenu'}</option>
</select>
</div>
</div>
</div>
{if $languages|count > 1}
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
{$language.iso_code}{* HTML form , no escape necessary *}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=lang}
<li><a href="javascript:hideOtherLanguage({$lang.id_lang|intval});" tabindex="-1">{$lang.name|escape:'html':'UTF-8'}</a></li>
{/foreach}
</ul>
</div>
{/if}
{if $languages|count > 1}
</div>
{/if}
{/foreach}
</div>
</div>
<input type="hidden" id="current_language" name="current_language" value="{$id_language|escape:'html':'UTF-8'}"/>
{/if}
{if $input.type == 'col_width'}
<div class="col-lg-9">
<input type='hidden' class="col-val {$input.class|escape:'html':'UTF-8'}" name='{$input.name|escape:'html':'UTF-8'}' value='{$fields_value[$input.name]|escape:'html':'UTF-8'}'/>
<button type="button" class="btn btn-default leobtn-width dropdown-toggle" tabindex="-1" data-toggle="dropdown">
<span class="leo-width-val">{$fields_value[$input.name]|replace:'-':'.'}/12</span><span class="leo-width leo-w-{$fields_value[$input.name]|escape:'html':'UTF-8'}"> </span><span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$leo_width item=itemWidth}
<li>
<a class="leo-w-option" data-width="{$itemWidth|intval}" href="javascript:void(0);" tabindex="-1">
<span class="leo-width-val">{$itemWidth|replace:'-':'.'}/12</span><span class="leo-width leo-w-{$itemWidth|intval}"> </span>
</a>
</li>
{/foreach}
</ul>
</div>
{/if}
{if $input.type == 'group_class'}
<div class="col-lg-9">
<div class="well">
<p>
<input type="text" class="group-class" value="{$fields_value[$input.name]|escape:'html':'UTF-8'}" name="{$input.name|escape:'html':'UTF-8'}"/><br />
{l s='insert new or select classes for toggling content across viewport breakpoints' mod='leobootstrapmenu'}<br />
<ul class="leo-col-class">
{foreach from=$hidden_config key=keyHidden item=itemHidden}
<li>
{*
<input type="checkbox" name="col_{$keyHidden|escape:'html':'UTF-8'}" value="1">
*}
<input type="radio"{if strpos($fields_value[$input.name], $keyHidden) !== false} checked="checked"{/if} data-name="{$keyHidden|escape:'html':'UTF-8'}" name="col_class" value="1">
<label class="choise-class">{$itemHidden|escape:'html':'UTF-8'}</label>
</li>
{/foreach}
</ul>
</p>
</div>
</div>
{/if}
{if $input.type == 'color_lang'}
<div class="row">
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field lang-{$language.id_lang|intval}" {if $language.id_lang != $defaultFormLanguage}style="display:none"{/if}>
{/if}
<div class="col-lg-6">
<div class="col-md-4">
<a href="javascript:void(0)" class="btn btn-default btn-update-slider">
<i class="icon-upload"></i> {l s='Select slider background' mod='leobootstrapmenu'}
</a>
</div>
<div class="col-md-4">
<div class="input-group">
<input type="color"
data-hex="true"
{if isset($input.class)}class="{$input.class|escape:'html':'UTF-8'}"
{else}class="color mColorPickerInput"{/if}
name="{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}"
value="{$fields_value[$input.name]|escape:'html':'UTF-8'}" />
</div>
</div>
</div>
{if $languages|count > 1}
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
{$language.iso_code}{* HTML form , no escape necessary *}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=lang}
<li><a href="javascript:hideOtherLanguage({$lang.id_lang|intval});" tabindex="-1">{$lang.name|escape:'html':'UTF-8'}</a></li>
{/foreach}
</ul>
</div>
{/if}
{if $languages|count > 1}
</div>
{/if}
{/foreach}
</div>
{/if}
{if $input.type == 'leo_switch'}
<div class="col-lg-{if isset($input.col)}{$input.col|intval}{else}9{/if} {if !isset($input.label)}col-lg-offset-3{/if}">
<span class="switch prestashop-switch fixed-width-lg {if isset($input.class)}{$input.class|escape:'html':'UTF-8'}{/if}">
{foreach $input.values as $value}
<input type="radio" name="{$input.name|escape:'html':'UTF-8'}"{if $value.value == 1} id="{$input.name|escape:'html':'UTF-8'}_on"{else} id="{$input.name|escape:'html':'UTF-8'}_off"{/if} value="{$value.value}"{if $fields_value[$input.name] == $value.value} checked="checked"{/if}{if isset($input.disabled) && $input.disabled} disabled="disabled"{/if}/>
{strip}
<label {if $value.value == 1} for="{$input.name|escape:'html':'UTF-8'}_on"{else} for="{$input.name|escape:'html':'UTF-8'}_off"{/if}>
{if $value.value == 1}
{l s='Yes' mod='leobootstrapmenu'}
{else}
{l s='No' mod='leobootstrapmenu'}
{/if}
</label>
{/strip}
{/foreach}
<a class="slide-button btn"></a>
</span>
{if isset($input.leo_desc) && !empty($input.leo_desc)}
<p class="help-block">
{if is_array($input.leo_desc)}
{foreach $input.leo_desc as $p}
{if is_array($p)}
<span id="{$p.id|intval}">{$p.text}{* HTML form , no escape necessary *}</span><br />
{else}
{$p}{* HTML form , no escape necessary *}<br />
{/if}
{/foreach}
{else}
{$input.leo_desc}{* HTML form , no escape necessary *}
{/if}
</p>
{/if}
</div>
{/if}
{$smarty.block.parent}
{/block}

View 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-2014 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;

View 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-2014 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;

View 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-2014 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;

View File

@@ -0,0 +1,16 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="navbar navbar-default">
<nav id="mainmenutop" class="megamenu" role="navigation">
<div class="navbar-header">
<div class="collapse navbar-collapse navbar-ex1-collapse">
{$tree}
</div>
</div>
</nav>
</div>

View File

@@ -0,0 +1,63 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
{if $successful == 1}
<div class="bootstrap">
<div class="alert alert-success megamenu-alert">
<button data-dismiss="alert" class="close" type="button">×</button>
{l s='Successfully' mod='leobootstrapmenu'}
</div>
</div>
{/if}
<div class="col-lg-12">
<div class="" style="float: right">
<div class="pull-right">
<a href="{$live_editor_url}" class="btn btn-danger">{l s='Live Edit Tools' mod='leobootstrapmenu'}</a>
{l s='To Make Rich Content For Megamenu' mod='leobootstrapmenu'}
</div>
</div>
</div>
<div class="tab-content row">
<div class="tab-pane active" id="megamenu">
<div class="col-md-4">
<div class="panel panel-default">
<h3 class="panel-title">{l s='Tree Megamenu Management - Group: ' mod='leobootstrapmenu'}{$current_group_title}{l s=' - Type: ' mod='leobootstrapmenu'}{$current_group_type}</h3>
<div class="panel-content">{l s='To sort orders or update parent-child, you drap and drop expected menu.' mod='leobootstrapmenu'}
<hr>
<p>
<input type="button" value="{l s='New Menu Item' mod='leobootstrapmenu'}" id="addcategory" data-loading-text="{l s='Processing ...' mod='leobootstrapmenu'}" class="btn btn-danger" name="addcategory">
<a href="{$admin_widget_link}" class="leo-modal-action btn btn-modeal btn-success btn-info">{l s='List Widget' mod='leobootstrapmenu'}</a>
</p>
<p>
<a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=leobootstrapmenu&addmenuproductlayout=1&id_group={$id_group}" class="btn btn-modeal btn-success">{l s='Add Menu Item For Product Multi Layout (Only For Developers)' mod='leobootstrapmenu'}</a>
</p>
<hr>
{$tree}
<a href="javascript:void(0);" class="btn btn-danger delete_many_menus">
<i class="icon-trash"></i>&nbsp;Delete selected
</a>
</div>
</div>
</div>
<div class="col-md-8">
{$helper_form}
</div>
<script type="text/javascript">
var addnew ="{$addnew}";
var action="{$action}";
$("#content").PavMegaMenuList({
action:action,
addnew:addnew
});
</script>
</div>
</div>
<script>
$('#myTab a[href="#profile"]').tab('show');
</script>

View File

@@ -0,0 +1,30 @@
{*
* @Module Name: Leo Blog
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Content Management
*}
<ol class="level{$level}{$t}">
{foreach from=$data item=$menu}
<li data-menu-type="{$menu.type}" id="list_{$menu.id_btmegamenu}" data-id-menu="{$menu.id_btmegamenu}" class="nav-item {if $param_id_btmegamenu == $menu.id_btmegamenu}selected{/if}">
<div>
<span class="disclose"><span></span></span>
{$menu.title} (ID:{$menu.id_btmegamenu})
<input type="checkbox" name="menubox[]" value="{$menu.id_btmegamenu}" class="quickselect" title="Select to delete">
<span title="{l s='Edit' mod='leobootstrapmenu'}" class="quickedit" rel="id_{$menu.id_btmegamenu}">E</span>
<span title="{l s='Delete' mod='leobootstrapmenu'}" class="quickdel" rel="id_{$menu.id_btmegamenu}">D</span>
<span title="{l s='Duplicate' mod='leobootstrapmenu'}" class="quickduplicate" rel="id_{$menu.id_btmegamenu}">DUP</span>
{if isset($menu.active) && $menu.active}
<span title="{l s='Click to Disabled' mod='leobootstrapmenu'}" class="quickdeactive" rel="id_{$menu.id_btmegamenu}">ACT</span>
{else}
<span title="{l s='Click to Enabled' mod='leobootstrapmenu'}" class="quickactive" rel="id_{$menu.id_btmegamenu}">DACT</span>
{/if}
</div>
{if $menu.id_btmegamenu != $parent}
{$model_cat->genTree($menu.id_btmegamenu, $level + 1)}
{/if}
</li>
{/foreach}
</ol>

View File

@@ -0,0 +1,28 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
{l s='Check list of icons and class name in here ' mod='leobootstrapmenu'}
<a href="https://design.google.com/icons/" target="_blank">https://design.google.com/icons/</a>
{l s=' Material Font or ' mod='leobootstrapmenu'}
<a href="http://fontawesome.io/icons/" target="_blank">http://fontawesome.io/icons/</a>
{l s=' Awesome Font or your icon class... ' mod='leobootstrapmenu'}
<hr/>
{l s='Special example (Required) for Material Font by Google' mod='leobootstrapmenu'}
<br/>
&lt;i class="material-icons"&gt;&amp;#xE855;&lt;/i&gt;
<br/>
{l s='OR' mod='leobootstrapmenu'}
<br/>
&lt;i class="material-icons"&gt;alarm&lt;/i&gt;
<hr/>
{l s='Example for other fonts (Awesome Font...)' mod='leobootstrapmenu'}
<br/>
&lt;i class="fa fa-arrows"&gt;&lt;/i&gt;
<br/>
{l s='OR' mod='leobootstrapmenu'}
<br/>
fa fa-arrows

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2012 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-2012 PrestaShop SA
* @version Release: $Revision: 13573 $
* @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;

View 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-2014 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;

View File

@@ -0,0 +1,44 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
{if $widget_selected}
{$form}{* HTML form , no escape necessary *}
<script type="text/javascript">
$('#widget_type').change( function(){
location.href = '{html_entity_decode($action|escape:'html':'UTF-8')}&wtype='+$(this).val();
} );
</script>
{else}
<div class="col-lg-12" style="padding:20px;">
{if $is_using_managewidget}
<div class="col-lg-5">
<h3>{l s='Only for Module leomanagewidgets' mod='leobootstrapmenu'}</h3>
{foreach $types as $widget => $text}
{if $text.for == 'manage'}
<div class="col-lg-6">
<h4><a href="{html_entity_decode($action|escape:'html':'UTF-8')}&wtype={$widget|escape:'html':'UTF-8'}">{$text.label|escape:'html':'UTF-8'}</a></h4>
<p><i>{$text.explain}{* HTML form , no escape necessary *}</i></p>
</div>
{/if}
{/foreach}
</div>
{/if}
<div class="col-lg-6 col-lg-offset-1">
{*
<h3>{l s='For all module (leomanagewidget,leomenubootstrap, leomenusidebar)' mod='leobootstrapmenu'}</h3>
*}
{foreach $types as $widget => $text}
{if $text.for != 'manage'}
<div class="col-lg-6">
<h4><a href="{html_entity_decode($action|escape:'html':'UTF-8')}&wtype={$widget|escape:'html':'UTF-8'}">{$text.label|escape:'html':'UTF-8'}</a></h4>
<p><i>{$text.explain}{* HTML form , no escape necessary *}</i></p>
</div>
{/if}
{/foreach}
</div>
</div>
{/if}

View File

@@ -0,0 +1,12 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<option value=""></option>
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">{$w['name']}</option>
{/foreach}

View File

@@ -0,0 +1,19 @@
{*
* @Module Name: Leo Blog
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Content Management
*}
{if isset($menu.megaconfig->subwidth) && $menu.megaconfig->subwidth}
{if $group_type == 'horizontal'}
style="width:{$menu.megaconfig->subwidth}px;"
{else}
{if (isset($typesub) && $typesub == 'left') }
style="width:{$menu.megaconfig->subwidth}px; left: -{$menu.megaconfig->subwidth}px;"
{else}
style="width:{$menu.megaconfig->subwidth}px; left: 100%;"
{/if}
{/if}
{/if}

View File

@@ -0,0 +1,366 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<fieldset>
{*
<div class="panel">
<div class="panel-content">
<a class="btn btn-default btn-primary" onclick="javascript:return confirm('{l s='Do you want to copy CSS, JS folder to current theme folder?' mod='leobootstrapmenu'}')" href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=leobootstrapmenu&leo_copy_lib_to_theme=1">
<i class="icon-AdminParentPreferences"></i> {l s='Copy CSS, JS to theme' mod='leobootstrapmenu'}</a>
</div>
</div>
*}
{if count($groups) > 0}
<div class="panel form-horizontal">
<h3>{l s='Megamenu Control Panel' mod='leobootstrapmenu'}</h3>
<div class="form-wrapper">
<div class="form-group">
<label class="control-label col-md-1">{l s='Select Hook' mod='leobootstrapmenu'}</label>
<div class="col-md-2">
<select class="list_hook" class=" fixed-width-xl">
<option {if $clearcache_hook == '' || $clearcache_hook == 'all'}selected="selected"{/if} value="all">{l s='All hook' mod='leobootstrapmenu'}</option>
{foreach from=$list_hook item=hook}
<option {if $clearcache_hook == $hook}selected="selected"{/if} value="{$hook}">{$hook}</option>
{/foreach}
</select>
</div>
<div class="col-md-2">
<a class="clear_cache btn btn-success" href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=leobootstrapmenu&success=clearcache&hook=">
<i class="icon-AdminTools"></i> {l s='Clear cache' mod='leobootstrapmenu'}
</a>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3">{l s='Backup the database before run correct module to safe' mod='leobootstrapmenu'}</label>
<div class="col-md-9">
<a class="megamenu-correct-module btn btn-success" href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=leobootstrapmenu&success=correct&correctmodule=1">
<i class="icon-AdminParentPreferences"></i> {l s='Correct module' mod='leobootstrapmenu'}
</a>
</div>
</div>
</div>
</div>
{/if}
<div id="groupLayer" class="panel col-md-12">
<h3>{l s='Group List' mod='leobootstrapmenu'}</h3>
{*
<div class="alert alert-info"><a href="http://www.leotheme.com/guides/prestashop17/leo_slider_layer/" target="_blank">{l s='Click to see configuration guide' mod='leobootstrapmenu'}</a></div>
*}
<div class="group-header col-md-8 col-xs-12">
<ol>
<li>
<div class="col-md-1 col-xs-1 text-center">
<span class="title_box ">
{l s='ID' mod='leobootstrapmenu'}
</span>
</div>
<div class="col-md-6 col-xs-3">
<span class="title_box ">
{l s='Group Name' mod='leobootstrapmenu'}
</span>
</div>
<div class="col-md-1 col-xs-2">
<span class="title_box ">{l s='Status' mod='leobootstrapmenu'}</span>
</div>
<div class="col-md-2 col-xs-2">
<span class="title_box ">
{l s='Hook' mod='leobootstrapmenu'}
</span>
</div>
<div class="col-md-2 col-xs-4 text-right">
<a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=leobootstrapmenu&addNewGroup=1" class="btn btn-default">
<i class="icon-plus"></i> {l s='Add new Group' mod='leobootstrapmenu'}
</a>
</div>
</li>
</ol>
</div>
<div class="group-wrapper col-md-8 col-xs-12">
<ol class="tree-group">
{foreach from=$groups item=group}
<li id="list_group_{$group.id_btmegamenu_group}" class="nav-item">
<div class="col-md-1 col-xs-1 text-center"><strong>#{$group.id_btmegamenu_group|intval}</strong></div>
<div class="col-md-6 col-xs-3" class="pointer">
{$group.title|escape:'html':'UTF-8'}
</div>
<div class="col-md-1 col-xs-2">
{$group.status}{* HTML form , no escape necessary *}&nbsp;&nbsp;&nbsp;
</div>
<div class="col-md-2 col-xs-2">
{$group.hook}
</div>
<div class="col-md-2 col-xs-4">
<div class="btn-group-action">
<div class="btn-group pull-right">
{if $group.id_btmegamenu_group != $curentGroup}
<a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=leobootstrapmenu&editgroup=1&id_group={$group.id_btmegamenu_group|escape:'html':'UTF-8'}" title="{l s='Edit Group' mod='leobootstrapmenu'}" class="edit btn btn-default">
<i class="icon-pencil"></i> {l s='Edit' mod='leobootstrapmenu'}
</a>
{else}
<a href="#" title="{l s='Editting' mod='leobootstrapmenu'}" class="btn editting" style="color:#BBBBBB">
{l s='Editting' mod='leobootstrapmenu'}
</a>
{/if}
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>&nbsp;
</button>
<ul class="dropdown-menu">
<li>
<a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=leobootstrapmenu&deletegroup=1&id_group={$group.id_btmegamenu_group|intval}" onclick="if (confirm('{l s='Delete Selected Group?' mod='leobootstrapmenu'}')) {
return true;
} else {
event.stopPropagation();
event.preventDefault();
}
;" title="{l s='Delete' mod='leobootstrapmenu'}" class="delete">
<i class="icon-trash"></i> {l s='Delete' mod='leobootstrapmenu'}
</a>
</li>
<li>
<a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=leobootstrapmenu&duplicategroup=1&id_group={$group.id_btmegamenu_group|intval}" onclick="if (confirm('{l s='Duplicate Selected Group?' mod='leobootstrapmenu'}')) {
return true;
} else {
event.stopPropagation();
event.preventDefault();
}
;" title="{l s='Duplicate' mod='leobootstrapmenu'}" class="duplicate">
<i class="icon-copy"></i> {l s='Duplicate' mod='leobootstrapmenu'}
</a>
</li>
<li>
<a href="{$exportLink}&id_group={$group.id_btmegamenu_group|intval}&widgets=1" title="{l s='Export Group With Widgets' mod='leobootstrapmenu'}" class="export">
<i class="icon-external-link-sign"></i> {l s='Export Group With Widgets' mod='leobootstrapmenu'}
</a>
</li>
<li>
<a href="{$exportLink}&id_group={$group.id_btmegamenu_group|intval}&widgets=0" title="{l s='Export Group Without Widgets' mod='leobootstrapmenu'}" class="export">
<i class="icon-external-link"></i> {l s='Export Group Without Widgets' mod='leobootstrapmenu'}
</a>
</li>
</ul>
</div>
</div>
</div>
</li>
{/foreach}
</ol>
</div>
<div class="group-footer import-group col-md-5">
<form method="post" enctype="multipart/form-data" action="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=leobootstrapmenu&importgroup=1">
<div class="row">
<div class="form-group">
<input type="file" class="hide" name="import_file" id="import_file">
<div class="dummyfile input-group">
<span class="input-group-addon"><i class="icon-file"></i></span>
<input type="text" readonly="" name="filename" class="disabled" id="import_file-name">
<span class="input-group-btn">
<button class="btn btn-default" name="submitAddAttachments" type="button" id="import_file-selectbutton">
<i class="icon-folder-open"></i> {l s='Choose a file' mod='leobootstrapmenu'}
</button>
</span>
</div>
<p class="help-block color_danger">{l s='Please upload *.txt only' mod='leobootstrapmenu'}</p>
</div>
<div class="form-group">
<label class="control-label col-lg-4" for="title_group">
{l s='Overide group or not:' mod='leobootstrapmenu'}
</label>
<div class="input-group col-lg-3 col-xs-3">
<span class="switch prestashop-switch">
<input type="radio" value="1" id="override_group_on" name="override_group">
<label for="override_group_on">
<i class="icon-check-sign color_success"></i> {l s='Yes' mod='leobootstrapmenu'}
</label>
<input type="radio" checked="checked" value="0" id="override_group_off" name="override_group">
<label for="override_group_off">
<i class="icon-ban-circle color_danger"></i> {l s='No' mod='leobootstrapmenu'}
</label>
<a class="slide-button btn btn-default"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-4" for="title_group">
{l s='Overide widgets or not:' mod='leobootstrapmenu'}
</label>
<div class="input-group col-lg-3 col-xs-3">
<span class="switch prestashop-switch">
<input type="radio" value="1" id="override_widget_on" name="override_widget">
<label for="override_widget_on">
<i class="icon-check-sign color_success"></i> {l s='Yes' mod='leobootstrapmenu'}
</label>
<input type="radio" checked="checked" value="0" id="override_widget_off" name="override_widget">
<label for="override_widget_off">
<i class="icon-ban-circle color_danger"></i> {l s='No' mod='leobootstrapmenu'}
</label>
<a class="slide-button btn btn-default"></a>
</span>
</div>
</div>
<div class="form-group">
<div class="col-lg-12">
<button class="btn btn-default dash_trend_right" name="importGroup" id="import_file_submit_btn" type="submit">
{l s='Import Group' mod='leobootstrapmenu'}
</button>
</div>
</div>
</div>
</form>
</div>
<div class="group-footer import-widgets col-md-5">
<form method="post" enctype="multipart/form-data" action="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=leobootstrapmenu&importwidgets=1">
<div class="row">
<div class="form-group">
<input type="file" class="hide" name="import_widgets_file" id="import_widgets_file">
<div class="dummyfile input-group">
<span class="input-group-addon"><i class="icon-file"></i></span>
<input type="text" readonly="" name="filename" class="disabled" id="import_widgets_file-name">
<span class="input-group-btn">
<button class="btn btn-default" name="submitAddAttachments" type="button" id="import_widgets_file-selectbutton">
<i class="icon-folder-open"></i> {l s='Choose a file' mod='leobootstrapmenu'}
</button>
</span>
</div>
<p class="help-block color_danger">{l s='Please upload *.txt only' mod='leobootstrapmenu'}</p>
</div>
<div class="form-group">
<label class="control-label col-lg-4" for="title_group">
{l s='Overide widgets or not:' mod='leobootstrapmenu'}
</label>
<div class="input-group col-lg-3 col-xs-3">
<span class="switch prestashop-switch">
<input type="radio" value="1" id="override_import_widgets_on" name="override_import_widgets">
<label for="override_import_widgets_on">
<i class="icon-check-sign color_success"></i> {l s='Yes' mod='leobootstrapmenu'}
</label>
<input type="radio" checked="checked" value="0" id="override_import_widgets_off" name="override_import_widgets">
<label for="override_import_widgets_off">
<i class="icon-ban-circle color_danger"></i> {l s='No' mod='leobootstrapmenu'}
</label>
<a class="slide-button btn btn-default"></a>
</span>
</div>
</div>
<div class="form-group">
<div class="col-lg-3">
<button class="btn btn-default dash_trend_right" name="importWidgets" id="import_widgets_file_submit_btn" type="submit">
{l s='Import Widgets' mod='leobootstrapmenu'}
</button>
</div>
<div class="col-lg-3">
{*
<button class="btn btn-default dash_trend_up" name="exportWidgets" id="export_file_submit_btn" type="submit">
{l s='Export Widgets of Shop' mod='leobootstrapmenu'}
</button>
*}
<a class="export-widgets" href="{$exportWidgetsLink}" title="Export Widgets Of Shop">
<i class="icon-external-link-sign"></i>
{l s='Export Widgets Of Shop' mod='leobootstrapmenu'}
</a>
</div>
</div>
</div>
</form>
</div>
</div>
</fieldset>
<script type="text/javascript">
var update_group_position_link = "{$update_group_position_link}";
$(document).ready(function() {
//import export fix
$('#import_file-selectbutton').click(function(e){
$('#import_file').trigger('click');
});
$('#import_file').change(function(e){
var val = $(this).val();
var file = val.split(/[\\/]/);
$('#import_file-name').val(file[file.length-1]);
});
$('#import_file_submit_btn').click(function(e){
if($("#import_file-name").val().indexOf(".txt") != -1){
if($("#override_group_on").is(":checked")) return confirm("{l s='Are you sure to override group?' mod='leobootstrapmenu'}");
if($("#override_widget_on").is(":checked")) return confirm("{l s='Are you sure to override widgets?' mod='leobootstrapmenu'}");
return true;
}else{
alert("{l s='Please upload txt file' mod='leobootstrapmenu'}");
$('#import_file').val("");
$('#import_file-name').val("");
return false;
}
});
//import export widgets fix
$('#import_widgets_file-selectbutton').click(function(e){
$('#import_widgets_file').trigger('click');
});
$('#import_widgets_file').change(function(e){
var val = $(this).val();
var file = val.split(/[\\/]/);
$('#import_widgets_file-name').val(file[file.length-1]);
});
$('#import_widgets_file_submit_btn').click(function(e){
if($("#import_widgets_file-name").val().indexOf(".txt") != -1){
if($("#override_import_widgets_on").is(":checked")) return confirm("{l s='Are you sure to override widgets?' mod='leobootstrapmenu'}");
return true;
}else{
alert("{l s='Please upload txt file' mod='leobootstrapmenu'}");
$('#import_widgets_file').val("");
$('#import_widgets_file-name').val("");
return false;
}
});
$(".group-preview").click(function() {
eleDiv = $(this).parent().parent().parent();
if ($(eleDiv).hasClass("open"))
eleDiv.removeClass("open");
var url = $(this).attr("href") + "&content_only=1";
$('#dialog').remove();
$('#content').prepend('<div id="dialog" style="padding: 3px 0px 0px 0px;"><iframe name="iframename2" src="' + url + '" style="padding:0; margin: 0; display: block; width: 100%; height: 100%;" frameborder="no" scrolling="auto"></iframe></div>');
$('#dialog').dialog({
title: 'Preview Management',
close: function(event, ui) {
},
bgiframe: true,
width: 1024,
height: 780,
resizable: false,
draggable:false,
modal: true
});
return false;
});
});
</script>

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2012 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-2012 PrestaShop SA
* @version Release: $Revision: 13573 $
* @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;

View File

@@ -0,0 +1,26 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<script type="text/javascript">
{literal}
var FancyboxI18nClose = "{/literal}{l s='Close' mod='leobootstrapmenu'}{literal}";
var FancyboxI18nNext = "{/literal}{l s='Next' mod='leobootstrapmenu'}{literal}";
var FancyboxI18nPrev = "{/literal}{l s='Previous' mod='leobootstrapmenu'}{literal}";
var current_link = "{/literal}{$current_link}{literal}";
var currentURL = window.location;
currentURL = String(currentURL);
currentURL = currentURL.replace("https://","").replace("http://","").replace("www.","").replace( /#\w*/, "" );
current_link = current_link.replace("https://","").replace("http://","").replace("www.","");
var text_warning_select_txt = "{/literal}{l s='Please select One to remove?' mod='leobootstrapmenu'}";{literal}
var text_confirm_remove_txt = "{/literal}{l s='Are you sure to remove footer row?' mod='leobootstrapmenu'}";{literal}
var close_bt_txt = "{/literal}{l s='Close' mod='leobootstrapmenu'}";{literal}
var list_menu = [];
var list_menu_tmp = {};
var list_tab = [];
var isHomeMenu = 0;
{/literal}
</script>

View File

@@ -0,0 +1,237 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div id="page-content">
<div id="menu-form" style="display: none; left: 340px; top: 15px; max-width:600px" class="popover top out form-setting">
<div class="arrow"></div>
<div style="display: block;" class="popover-title">
{l s='Sub Menu Setting' mod='leobootstrapmenu'}
<span class="badge pull-right">{l s='Close' mod='leobootstrapmenu'}</span>
</div>
<div class="popover-content">
<form method="post" action="{$liveedit_action}" enctype="multipart/form-data" >
<div class="col-lg-12">
<table class="table table-hover">
<tr>
<td>{l s='Create Submenu' mod='leobootstrapmenu'}</td>
<td>
<select name="menu_submenu" class="menu_submenu">
<option value="0">{l s='No' mod='leobootstrapmenu'}</option>
<option value="1">{l s='Yes' mod='leobootstrapmenu'}</option>
</select>
</td>
</tr>
<tr>
<td>{l s='Submenu Width' mod='leobootstrapmenu'}</td>
<td>
<input type="text" name="menu_subwidth" class="menu_subwidth">
</td>
</tr>
<tr class="group-submenu">
<td>{l s='Group Submenu' mod='leobootstrapmenu'}</td>
<td>
<div id="submenu-form" >
<input type="hidden" name="submenu_id">
<select name="submenu_group" class="submenu_group">
<option value="0">{l s='No' mod='leobootstrapmenu'}</option>
<option value="1">{l s='Yes' mod='leobootstrapmenu'}</option>
</select>
</div>
</td>
</tr>
<tr class="aligned-submenu">
<td>{l s='Align Submenu' mod='leobootstrapmenu'}</td>
<td>
<div class="btn-group button-aligned">
<button type="button" class="btn btn-default" data-option="aligned-left"><span class="icon icon-align-left"></span></button>
<button type="button" class="btn btn-default" data-option="aligned-center"><span class="icon icon-align-center"></span></button>
<button type="button" class="btn btn-default" data-option="aligned-right"><span class="icon icon-align-right"></span></button>
<button type="button" class="btn btn-default" data-option="aligned-fullwidth"><span class="icon icon-align-justify"></span></button>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<button type="button" class="add-row btn btn-success btn-sm">{l s='Add Row' mod='leobootstrapmenu'}</button>
<button type="button" class="remove-row btn btn-default btn-sm">{l s='Remove Row' mod='leobootstrapmenu'}</button>
| <button type="button" class="add-col btn btn-success btn-sm">{l s='Add Column' mod='leobootstrapmenu'}</button>
</td>
</tr>
</table>
<input type="hidden" name="menu_id">
</div>
</form>
</div>
</div>
<div id="column-form" style="display: none; left: 340px; top: 45px;" class="popover top form-setting">
<div class="arrow"></div>
<div style="display: block;" class="popover-title">
{l s='Column Setting' mod='leobootstrapmenu'}
<span class="badge pull-right">{l s='Close' mod='leobootstrapmenu'}</span>
</div>
<div class="popover-content">
<form method="post" action="{$liveedit_action}" enctype="multipart/form-data" >
<table class="table table-hover">
<tr>
<td>{l s='Addition Class' mod='leobootstrapmenu'}</td>
<td>
<input type="text" name="colclass">
</td>
</tr>
<tr>
<td>{l s='Column Width' mod='leobootstrapmenu'}</td>
<td>
<select class="colwidth" name="colwidth">
{for $i=1 to 12}
<option value="{$i|intval}">{$i|intval}</option>
{/for}
</select>
</td>
</tr>
<tr>
<td colspan="2"> <button type="button" class="remove-col btn btn-default btn-sm">{l s='Remove Column' mod='leobootstrapmenu'}</button> </td>
</tr>
</table>
</form>
</div>
</div>
<div id="widget-form" style="display: none; left: 340px; min-width:400px" class="popover bottom form-setting">
<div class="arrow"></div>
<div style="display: block;" class="popover-title">
{l s='Widget Setting' mod='leobootstrapmenu'}
<span class="badge pull-right">{l s='Close' mod='leobootstrapmenu'}</span>
</div>
<div class="popover-content">
{if !empty($widgets)}
<select name="inject_widget" class="inject_widget">
<option value="">{l s='' mod='leobootstrapmenu'}</option>
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
<button type="button" id="btn-inject-widget" class="btn btn-primary btn-sm">{l s='Insert' mod='leobootstrapmenu'}</button>
{else}
<select style="display:none" name="inject_widget" class="inject_widget">
</select>
<button style="display:none" type="button" id="btn-inject-widget" class="btn btn-primary btn-sm">{l s='Insert' mod='leobootstrapmenu'}</button>
{/if}
<button type="button" id="btn-create-widget" class="btn btn-primary btn-sm">{l s='Create New Widget' mod='leobootstrapmenu'}</button>
</div>
</div>
<div id="content-s">
<div class="container">
<div class="page-header">
<h1>{l s='Live Megamenu Editor: ' mod='leobootstrapmenu'}{$group_title} ({$group_type})</h1>
</div>
<div class="bs-example">
<div class="alert alert-danger fade in">
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
<strong>{l s='By using this tool, allow to create sub menu having multiple rows and multiple columns. You can inject widgets inside columns or group sub menus in same level of parent.Note: Some configurations as group, columns width setting will be overrided' mod='leobootstrapmenu'}</strong>
</div>
</div>
</div>
<div id="pav-megamenu-liveedit">
<div id="toolbar" class="container">
<div id="menu-toolbars">
<div>
<div class="pull-right">
<a href="{$link->getAdminLink('AdminLeoWidgets')}&widgets=1" class="leo-modal-action btn btn-modeal btn-info btn-action">
{l s='List Widget' mod='leobootstrapmenu'}</a>
-
<a href="{$link->getAdminLink('AdminLeoWidgets')}&addbtmegamenu_widgets&widgets=1" class="leo-modal-action btn btn-modeal btn-success btn-action">
{l s='Create A Widget' mod='leobootstrapmenu'}</a>
-
<a href="{$live_site_url}" class="btn btn-modal btn-primary btn-sm btn-action" >
{l s='Preview On Live Site' mod='leobootstrapmenu'}</a> |
<a id="unset-data-menu" href="#" class="btn btn-danger btn-action">{l s='Reset Configuration' mod='leobootstrapmenu'}</a>
<button id="save-data-menu" class="btn btn-warning">{l s='Save' mod='leobootstrapmenu'}</button>
</div>
<a id="save-data-back" class="btn btn-default" href="{$action_backlink}">
{l s='Back' mod='leobootstrapmenu'}
</a>
</div>
</div>
</div>
<div class="container"><div class="megamenu-wrap">
<div class="progress" id="leo-progress">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 00%;">
<span class="sr-only">60% Complete</span>
</div>
</div>
<div id="megamenu-content" class="{if ($group_type == 'vertical')}vertical {$group_type_sub}{/if}">
</div></div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">{l s='Preview On Live Site' mod='leobootstrapmenu'}</h4>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"></button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(".btn-modal").click(function() {
$('#myModal .modal-dialog ').css('width', '100%');
$('#myModal .modal-dialog ').css('height', '90%');
var a = $('<span class="glyphicon glyphicon-refresh"></span><div class="cssload-container"><div class="cssload-speeding-wheel"></div></div><iframe src="' + $(this).attr('href') + '" style="width:100%;height:100%; display:none"/>');
$('#myModal .modal-body').html(a);
$('#myModal').modal();
$('#myModal').attr('rel', $(this).attr('rel'));
$(a).load(function() {
$('#myModal .modal-body .glyphicon-refresh').hide();
$('#myModal .modal-body .cssload-container').hide();
$('#myModal .modal-body iframe').show();
$('#myModal .modal-body').css('height', '85%');
$('#myModal .modal-content ').css('height', '100%');
});
return false;
});
$('#myModal').on('hidden.bs.modal', function() {
if ($(this).attr('rel') == 'refresh-page') {
location.reload();
}
})
var live_editor = true;
var list_tab_live_editor = [];
var _action = '{$ajxgenmenu|replace:'&amp;':'&'}';
var _action_menu = '{$ajxmenuinfo|replace:'&amp;':'&'}';
var _action_widget = '{$action_widget|replace:'&amp;':'&'}';
var _action_loadwidget = '{$action_loadwidget|replace:'&amp;':'&'}';
var _id_shop = '{$id_shop}';
$("#megamenu-content").PavMegamenuEditor({
"action": _action,
"action_menu": _action_menu,
"action_widget": _action_widget,
"id_shop": _id_shop,
});
</script>

View File

@@ -0,0 +1,63 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
{if isset($error) && $error}
<div class="alert alert-warning leo-lib-error">{$error}</div>
{else}
{if $group_type && $group_type == 'horizontal'}
<nav data-megamenu-id="{$megamenu_id}" class="leo-megamenu cavas_menu navbar navbar-default {if $show_cavas && $show_cavas == 1}enable-canvas{else}disable-canvas{/if} {if $group_class && $group_class != ''}{$group_class}{/if}" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggler hidden-lg-up" data-toggle="collapse" data-target=".megamenu-off-canvas-{$megamenu_id}">
<span class="sr-only">{l s='Toggle navigation' mod='leobootstrapmenu'}</span>
&#9776;
<!--
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
-->
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
{*
<div id="leo-top-menu" class="collapse navbar-collapse navbar-ex1-collapse">{$boostrapmenu|escape:'html':'UTF-8'}</div>
*}
<div class="leo-top-menu collapse navbar-toggleable-md megamenu-off-canvas megamenu-off-canvas-{$megamenu_id}">{$boostrapmenu|escape:'html':'UTF-8' nofilter}{* HTML form , no escape necessary *}</div>
</nav>
<script type="text/javascript">
list_menu_tmp.id = '{$megamenu_id}';
list_menu_tmp.type = 'horizontal';
{if $show_cavas && $show_cavas == 1}
list_menu_tmp.show_cavas =1;
{else}
list_menu_tmp.show_cavas =0;
{/if}
list_menu_tmp.list_tab = list_tab;
list_menu.push(list_menu_tmp);
list_menu_tmp = {};
list_tab = {};
</script>
{else}
<div data-megamenu-id="{$megamenu_id}" class="leo-verticalmenu {if $group_class && $group_class != ''}{$group_class}{/if}">
<h4 class="title_block verticalmenu-button">{$group_title}</h4>
<div class="box-content block_content">
<div class="verticalmenu" role="navigation">{$boostrapmenu|escape:'html':'UTF-8' nofilter}{* HTML form , no escape necessary *}</div>
</div>
</div>
<script type="text/javascript">
list_menu_tmp.id = '{$megamenu_id}';
list_menu_tmp.type = 'vertical';
list_menu_tmp.list_tab = list_tab;
list_menu.push(list_menu_tmp);
list_menu_tmp = {};
list_tab = {};
</script>
{/if}
{/if}

View File

@@ -0,0 +1,41 @@
{*
* @Module Name: Leo Blog
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Content Management
*}
{if $menu.active == 1}
<li data-menu-type="{$menu.type}" class="nav-item parent dropdown {$menu.menu_class} {$align} {$addwidget}" {$model->renderAttrs($menu)}>
<a class="123123123 nav-link dropdown-toggle has-category" data-toggle="dropdown" href="{$model->getLink($menu)}" target="{$menu.target}">
{if $menu.icon_class}
{if $menu.icon_class != $menu.icon_class|strip_tags}
<span class="hasicon menu-icon-class">{$menu.icon_class nofilter}
{else}
<span class="hasicon menu-icon-class"><i class="{$menu.icon_class}"></i>
{/if}
{elseif $menu.image}
<span class="hasicon menu-icon" style="background:url('{$model->image_base_url}{$menu.image}') no-repeat">
{/if}
{if $menu.show_title}
<span class="menu-title">{$menu.title}</span>
{/if}
{if $menu.text}
<span class="sub-title">{$menu.text}</span>
{/if}
{if $menu.description}
<span class="menu-desc">{$menu.description}</span>
{/if}
{if $menu.image || $menu.icon_class}
</span>
{/if}
{if $model->is_live_edit && $menu.is_group == 0}<b class="caret"></b>{/if}
</a>
{if !$model->is_live_edit && $menu.is_group == 0}<b class="caret"></b>{/if}
{$model->genFrontTree($menu.megamenu_id, 1, $menu, $typesub, $group_type) nofilter}{* HTML form , no escape necessary *}
</li>
{/if}

View File

@@ -0,0 +1,37 @@
{*
* @Module Name: Leo Blog
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Content Management
*}
{* # ONLY HTML + NOT SHOW SUBMENU *}
<li data-menu-type="{$menu.type}" class="nav-item {$menu.menu_class} {$addwidget}" {$model->renderAttrs($menu)}>
<a href="{$model->getLink($menu)}" target="{$menu.target}" class="nav-link has-category has-subhtml">
{if $menu.icon_class}
{if $menu.icon_class != $menu.icon_class|strip_tags}
<span class="hasicon menu-icon-class">{$menu.icon_class nofilter}
{else}
<span class="hasicon menu-icon-class"><i class="{$menu.icon_class}"></i>
{/if}
{elseif $menu.image}
<span class="hasicon menu-icon" style="background:url('{$model->image_base_url}{$menu.image}') no-repeat">
{/if}
{if $menu.show_title}
<span class="menu-title">{$menu.title}</span>
{/if}
{if $menu.text}
<span class="sub-title">{$menu.text}</span>
{/if}
{if $menu.description}
<span class="menu-desc">{$menu.description}</span>
{/if}
{if $menu.image || $menu.icon_class}
</span>
{/if}
</a>
{if $menu.content_text}
<div class="menu-content">{$menu.content_text nofilter}{* HTML form , no escape necessary *}</div>
{/if}
</li>

View File

@@ -0,0 +1,35 @@
{*
* @Module Name: Leo Blog
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Content Management
*}
{if $menu.active == 1}
<li data-menu-type="{$menu.type}" class="nav-item {$menu.menu_class} {$addwidget}" {$model->renderAttrs($menu)}>
<a class="nav-link has-category" href="{$model->getLink($menu)}" target="{$menu.target}">
{if $menu.icon_class}
{if $menu.icon_class != $menu.icon_class|strip_tags}
<span class="hasicon menu-icon-class">{$menu.icon_class nofilter}
{else}
<span class="hasicon menu-icon-class"><i class="{$menu.icon_class}"></i>
{/if}
{elseif $menu.image}
<span class="hasicon menu-icon" style="background:url('{$model->image_base_url}{$menu.image}') no-repeat">
{/if}
{if $menu.show_title}
<span class="menu-title">{$menu.title}</span>
{/if}
{if $menu.text}
<span class="sub-title">{$menu.text}</span>
{/if}
{if $menu.description}
<span class="menu-desc">{$menu.description}</span>
{/if}
{if $menu.image || $menu.icon_class}
</span>
{/if}
</a>
</li>
{/if}

View File

@@ -0,0 +1,59 @@
{*
* @Module Name: Leo Blog
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Content Management
*}
{* function genMegaMenuByConfig *}
{if $menu.active == 1}
<li data-menu-type="{$menu.type}" class="nav-item parent {$menu.menu_class} {$class} {if $hascat}{$align}{/if} {$addwidget} " {$model->renderAttrs($menu)}>
<a class="nav-link dropdown-toggle {if $hascat}has-category{/if}" data-toggle="dropdown" href="{$model->getLink($menu)}" target="{$menu.target}">
{if $menu.icon_class}
{if $menu.icon_class != $menu.icon_class|strip_tags}
<span class="hasicon menu-icon-class">{$menu.icon_class nofilter}
{else}
<span class="hasicon menu-icon-class"><i class="{$menu.icon_class}"></i>
{/if}
{elseif $menu.image}
<span class="hasicon menu-icon" style="background:url('{$model->image_base_url}{$menu.image}') no-repeat">
{/if}
{if $menu.show_title}
<span class="menu-title">{$menu.title}</span>
{/if}
{if $menu.text}
<span class="sub-title">{$menu.text}</span>
{/if}
{if $menu.description}
<span class="menu-desc">{$menu.description}</span>
{/if}
{if $menu.image || $menu.icon_class}
</span>
{/if}
{if $model->is_live_edit && $menu.is_group == 0}<b class="caret"></b>{/if}
</a>
{if !$model->is_live_edit && $menu.is_group == 0}<b class="caret"></b>{/if}
{if $menu.sub_with == 'widget'}
<div class="dropdown-sub {if $menu.is_group == 1}dropdown-mega{else}dropdown-menu{/if}" {$style nofilter}>
<div class="dropdown-menu-inner">
{foreach from=$menu.megaconfig->rows item=row}
<div class="row">
{foreach from=$row->cols item=col}
<div class="mega-col col-md-{$col->colwidth}" {$model->getColumnDataConfig($col)}>
<div class="mega-col-inner{if isset($col->colclass)} {$col->colclass}{/if}">
{$model->renderWidgetsInCol($col) nofilter}{* HTML form , no escape necessary *}
</div>
</div>
{/foreach}
</div>
{/foreach}
</div>
</div>
{/if}
</li>
{/if}

View File

@@ -0,0 +1,27 @@
{*
* @Module Name: Leo Blog
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Content Management
*}
<div class="{$class} dropdown-sub mega-cols cols{$parent.colums}" {$attrw}>
<div class="dropdown-menu-inner">
<div class="row">
{foreach from=$cols key=i item=menus}
{assign var="colwidth" value= $o_spans.{$i + 1}}
{$colwidth|replace:'col-sm-':''}
<div class="mega-col {$o_spans.{$i + 1}} col-{$i + 1}" data-type="menu" data-colwidth="{$colwidth}">
<div class="inner">
<ul>
{foreach from=$menus item=menu}
{$mod_menu->renderMenuContent($menu, $level + 1, $typesub, $group_type) nofilter}{* HTML form , no escape necessary *}
{/foreach}
</ul>
</div>
</div>
{/foreach}
</div>
</div>
</div>

View File

@@ -0,0 +1,42 @@
{*
* @Module Name: Leo Blog
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Content Management
*}
{if isset($colums) && $colums > 1}
<div class="{$class} level{$level}" {$attrw} >
<div class="dropdown-menu-inner">
<div class="row">
<div class="col-sm-12 mega-col" data-colwidth="12" data-type="menu" >
<div class="inner">
<div class="row">
{foreach from=$data item=menu}
<ul class="col-md-{$cols}">
{$mod_menu->renderMenuContent($menu, $level + 1, $typesub, $group_type) nofilter}
</ul>
{/foreach}
</div>
</div>
</div>
</div>
</div>
</div>
{else}
<div class="{$class} level{$level}" {$attrw} >
<div class="dropdown-menu-inner">
<div class="row">
<div class="col-sm-12 mega-col" data-colwidth="12" data-type="menu" >
<div class="inner">
<ul>
{foreach from=$data item=menu}
{$mod_menu->renderMenuContent($menu, $level + 1, $typesub, $group_type) nofilter}{* HTML form , no escape necessary *}
{/foreach}
</ul>
</div>
</div>
</div>
</div>
</div>
{/if}

View File

@@ -0,0 +1,42 @@
{*
* @Module Name: Leo Blog
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Content Management
*}
<div class="{$class} level{$level}" {$attrw} >
<div class="dropdown-menu-inner">
{foreach from=$parent.megaconfig item=rows}
{foreach from=$rows item=rowcols}
<div class="row">
{foreach from=$rowcols item=col}
{assign var=colclass value=''}
{if isset($col->colclass) && $col.colclass}
{assign var=colclass value=$col.colclass}
{/if}
{if isset($col->type) && $col->type=='menu'}
<div class="mega-col col-md-{$col->colwidth}" data-type="menu" {$mod_menu->getColumnDataConfig($col)}>
<div class="mega-col-inner {$colclass}">
<ul>
{foreach from=$data item=menu}
{$mod_menu->renderMenuContent($menu, $level + 1, $typesub, $group_type) nofilter}{* HTML form , no escape necessary *}
{/foreach}
</ul>
</div>
</div>
{else}
<div class="mega-col col-md-{$col->colwidth}" {$mod_menu->getColumnDataConfig($col)}>
<div class="mega-col-inner {$colclass}">
{$mod_menu->renderWidgetsInCol($col)}
</div>
</div>
{/if}
{/foreach}
</div>
{/foreach}
{/foreach}
</div>
</div>

View File

@@ -0,0 +1,48 @@
{*
* @Module Name: Leo Blog
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Content Management
*}
<div class="dropdown-sub {$class} level{$level}" {$attrw} >
<div class="dropdown-menu-inner">
{foreach from=$parent.megaconfig->rows item=rows}
{foreach from=$rows item=rowcols}
<div class="row">
{foreach from=$rowcols key=key item=col}
{assign var=colwidth value='6'}
{if isset($col->colwidth) && $col.colwidth}
{assign var=colwidth value=$col.colwidth}
{/if}
{assign var=colclass value=''}
{if isset($col->colclass) && $col.colclass}
{assign var=colclass value=$col.colclass}
{/if}
{if isset($col->type) && $col->type == 'menu' && isset($cols.$key)}
<div class="mega-col col-md-{$col->colwidth}" data-type="menu" {$mod_menu->getColumnDataConfig($col)}>
<div class="mega-col-inner {$colclass}">
<ul>
{foreach from=$cols.$key item=menu}
{$mod_menu->renderMenuContent($menu, $level + 1, $typesub, $group_type nofilter}{* HTML form , no escape necessary *}
{/foreach}
</ul>
</div>
</div>
{else}
<div class="mega-col col-md-{$col->colwidth}" {$mod_menu->getColumnDataConfig($col)}>
<div class="mega-col-inner {$colclass}">
{$mod_menu->renderWidgetsInCol($col) nofilter}{* HTML form , no escape necessary *}
</div>
</div>
{/if}
{/foreach}
</div>
{/foreach}
{/foreach}
</div>
</div>

View File

@@ -0,0 +1,42 @@
{*
* @Module Name: Leo Blog
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Content Management
*}
<li data-menu-type="{$menu.type}" class="nav-item parent dropdown-submenu{$menu.menu_class}" {$model->renderAttrs($menu)}>
{if $menu.show_title}
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="{$model->getLink($menu)}" target="{$menu.target}">
{if $menu.icon_class}
{if $menu.icon_class != $menu.icon_class|strip_tags}
<span class="hasicon menu-icon-class">{$menu.icon_class nofilter}
{else}
<span class="hasicon menu-icon-class"><i class="{$menu.icon_class}"></i>
{/if}
{elseif $menu.image }
<span class="hasicon menu-icon" style="background:url('{$model->image_base_url}{$menu.image}') no-repeat">
{/if}
{if $menu.show_title}
<span class="menu-title">{$menu.title}</span>
{/if}
{if $menu.text}
<span class="sub-title">{$menu.text}</span>
{/if}
{if $menu.description}
<span class="menu-desc">{$menu.description}</span>
{/if}
{if $menu.image || $menu.icon_class}
</span>
{/if}
{if $model->is_live_edit && $menu.is_group == 0}<b class="caret"></b>{/if}
</a>
{if !$model->is_live_edit && $menu.is_group == 0}<b class="caret"></b>{/if}
{/if}
{$model->genFrontTree($menu.megamenu_id, $level, $menu, $typesub, $group_type) nofilter}{* HTML form , no escape necessary *}
</li>

View File

@@ -0,0 +1,39 @@
{*
* @Module Name: Leo Blog
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Content Management
*}
<li data-menu-type="{$menu.type}" class="nav-item {$menu.menu_class}" {$model->renderAttrs($menu)}>
{if $menu.show_title}
<a class="nav-link" href="{$model->getLink($menu)}" target="{$menu.target}">
{if $menu.icon_class}
{if $menu.icon_class != $menu.icon_class|strip_tags}
<span class="hasicon menu-icon-class">{$menu.icon_class nofilter}
{else}
<span class="hasicon menu-icon-class"><i class="{$menu.icon_class}"></i>
{/if}
{elseif $menu.image }
<span class="hasicon menu-icon" style="background:url('{$model->image_base_url}{$menu.image}') no-repeat">
{/if}
{if $menu.show_title}
<span class="menu-title">{$menu.title}</span>
{/if}
{if $menu.text}
<span class="sub-title">{$menu.text}</span>
{/if}
{if $menu.description}
<span class="menu-desc">{$menu.description}</span>
{/if}
{if $menu.image || $menu.icon_class}
</span>
{/if}
</a>
{/if}
</li>

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2012 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-2012 PrestaShop SA
* @version Release: $Revision: 13573 $
* @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;

View File

@@ -0,0 +1,49 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($accordions)}
<div class="widget-accordion">
{if isset($widget_heading)&&!empty($widget_heading)}
<div class="menu-title">
{$widget_heading}
</div>
{/if}
<div class="widget-inner">
<div id="accordion{$id}" class="panel-group">
{foreach $accordions as $key => $ac}
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#collapseAc{$id}{$key}" data-parent="#accordion{$id}" data-toggle="collapse" class="accordion-toggle collapsed">
{$ac.header}
</a>
</h4>
</div>
<div class="panel-collapse collapse {if $key==0} in {else} out{/if}" id="collapseAc{$id}{$key}" >
<div class="panel-body">
{$ac.content nofilter}{* HTML form , no escape necessary *}
</div>
</div>
</div>
{/foreach}
</div>
</div>
</div>
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,25 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($html)&& !empty($html)}
<div class="alert {$alert_type}">
{$html nofilter}{* HTML form , no escape necessary *}
</div>
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,68 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
{function name=menu_cat_img level=0}
<ul class="level{$level}{if $level != 0} dropdown-sub dropdown-menu{/if}">
{foreach $data as $category}
{if isset($category.children) && is_array($category.children)}
<li class="cate_{$category.id_category}" ><a href="{$link->getCategoryLink($category.id_category, $category.link_rewrite)|escape:'html':'UTF-8'}"><span {if {$category.id_category} == {$id_root}} style="display:none"{/if}>{$category.name}{if isset($category.image)}<span {if {$showicons} == 0 || ({$level} gt 0 && {$showicons} == 2)} style="display:none"{/if}><img height = '20px' {if isset($aplazyload) && $aplazyload}class="lazy" data-src{else}src{/if}='{$category["image"]}' alt='{$category["name"]}'></span>{/if}</span></a>
<b class="caret"{if {$category.id_category} == {$id_root}} style="display:none"{/if}></b>
{menu_cat_img data=$category.children level=$level+1}</li>
{else}
<li class="cate_{$category.id_category}"><a href="{$link->getCategoryLink($category.id_category, $category.link_rewrite)|escape:'html':'UTF-8'}">{$category.name}{if isset($category.image)}<span {if {$showicons} == 0 || ({$level} gt 0 && {$showicons} == 2)} style="display:none"{/if}><img height = '10px' {if isset($aplazyload) && $aplazyload}class="lazy" data-src{else}src{/if}='{$category["image"]}' alt='{$category["name"]}'></span>{/if}</a></li>
{/if}
{/foreach}
</ul>
{/function}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($categories)}
{*
<div class="widget-category_image block widget-category_image_{$level}">
*}
<div class="widget-category_image block widget-category_image_{if $cate_depth}{$cate_depth}{else}0{/if}" data-level="{if $cate_depth}{$cate_depth}{else}0{/if}" data-limit="{if $limit}{$limit}{else}5{/if}">
{if isset($widget_heading)&&!empty($widget_heading)}
<h4 class="menu-title">
{$widget_heading}
</h4>
{/if}
<div class="block_content">
{foreach from = $categories key=key item=cate}
{menu_cat_img data=$cate}
{/foreach}
<div id="view_all_wapper" style="display:none">
<span class ="view_all"><a href="javascript:void(0)">{l s='View all' mod='leobootstrapmenu'}</a></span>
</div>
</div>
</div>
{/if}
<script type="text/javascript">
{literal}
if ( typeof live_editor !== 'undefined' && live_editor)
{
var limit = {/literal}{if $limit}{$limit}{else}5{/if}{literal};
var level = {/literal}{if $cate_depth}{$cate_depth}{else}0{/if}{literal};
}else
{
list_menu_tmp.limit = {/literal}{if $limit}{$limit}{else}5{/if}{literal};
list_menu_tmp.level = {/literal}{if $cate_depth}{$cate_depth}{else}0{/if}{literal};
}
{/literal}
</script>
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,42 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
<div class="facebook-wrapper" style="width:{$width}" >
{if isset($application_id)&&$application_id}
<div id="fb-root"></div>
<script>(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 = "//connect.facebook.net/{$displaylanguage}/all.js#xfbml=1&appId={$application_id}";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
{else}
<div id="fb-root"></div>
<script>(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 = "//connect.facebook.net/{$displaylanguage}/sdk.js#xfbml=1&version=v2.8";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
{/if}
<div class="fb-page" data-href="{$page_url}" data-tabs="{$tabdisplay}" data-height="{$height}" data-width="{$width}" data-show-facepile="{$show_faces}" data-hide-cover="{$hide_cover}" data-small-header="{$small_header}"></div>
</div>
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,32 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($html)}
<div class="widget-html">
{if isset($widget_heading)&&!empty($widget_heading)}
<div class="menu-title">
{$widget_heading}
</div>
{/if}
<div class="widget-inner">
{$html nofilter}{* HTML form , no escape necessary *}
</div>
</div>
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,47 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($images) && $images}
<div class="widget-images">
{if isset($widget_heading)&&!empty($widget_heading)}
<div class="menu-title">
{$widget_heading}
</div>
{/if}
<div class="widget-inner clearfix">
<div class="images-list clearfix">
<div>
{foreach from=$images item=image name=images}
{if $smarty.foreach.images.index == 0 || $smarty.foreach.images.index % $columns == 0}
<div class="row">
{/if}
<div class="image-item {if 12 % $columns == 0}col-md-{12/$columns}{/if} col-xs-12">
<img class="replace-2x img-fluid{if isset($aplazyload) && $aplazyload} lazy{/if}" {if isset($aplazyload) && $aplazyload}data-src{else}src{/if}="{$image}" alt=""/>
</div>
{if $smarty.foreach.images.index % $columns == $columns-1 || $smarty.foreach.images.last}
</div>
{/if}
{/foreach}
</div>
</div>
</div>
</div>
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,42 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($images)}
<div class="widget-images block">
{if isset($widget_heading)&&!empty($widget_heading)}
<h4 class="title_block">
{$widget_heading}
</h4>
{/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}{/if} col-xs-12">
<a class="fancybox" rel="leogallery{$id_btmegamenu_widgets}" href= "{$link->getImageLink($image.link_rewrite, $image.id_image, $thickimage)}">
<img class="replace-2x img-fluid{if isset($aplazyload) && $aplazyload} lazy{/if}" {if isset($aplazyload) && $aplazyload}data-src{else}src{/if}="{$link->getImageLink($image.link_rewrite, $image.id_image, $smallimage)}" alt=""/>
</a>
</div>
{/foreach}
</div>
</div>
</div>
</div>
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,38 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($links)}
<div class="widget-links">
{if isset($widget_heading)&&!empty($widget_heading)}
<div class="menu-title">
{$widget_heading}
</div>
{/if}
<div class="widget-inner">
<div id="tabs{$id}" class="panel-group">
<ul class="nav-links">
{foreach $links as $key => $ac}
<li ><a href="{$ac.link}" >{$ac.text}</a></li>
{/foreach}
</ul>
</div>
</div>
</div>
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,38 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
<div class="widget-manufacture">
{if isset($widget_heading)&&!empty($widget_heading)}
<div class="menu-title">
{$widget_heading}
</div>
{/if}
<div class="widget-inner">
{if manufacturers}
<div class="manu-logo">
{foreach from=$manufacturers item=manufacturer name=manufacturers}
<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{l s='view products' mod='leobootstrapmenu'}">
<img {if isset($aplazyload) && $aplazyload}class="lazy" data-src{else}src{/if}="{$manufacturer.image|escape:'htmlall':'UTF-8'}" alt=""> </a>
{/foreach}
</div>
{else}
<p class="alert alert-info">{l s='No image logo at this time.' mod='leobootstrapmenu'}</p>
{/if}
</div>
</div>
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,75 @@
{*
* Leo Theme for Prestashop 1.6.x
*
* @author http://www.leotheme.com
* @copyright Copyright (C) October 2013 LeoThemes.com <@emai:leotheme@gmail.com>
* <info@leotheme.com>.All rights reserved.
* @license GNU General Public License version 2
*}
<!-- Block Newsletter module-->
<div id="newsletter_block_footer" class="leo-newsletter">
<h4 class="menu-title">{l s='Newsletter' mod='leobootstrapmenu'}</h4>
<div class="block_content">
<form action="{$link->getPageLink('index')|escape:'html'}" method="post">
{if $information}
<div class="newsletter-info">{$information nofilter}</div>
{/if}
<div class="alert alert-danger hide">{l s='Newsletter: Invalid email address' mod='leobootstrapmenu'}</div>
<div class="input-group">
<input class="form-control" id="newsletter-input-footer" type="text" name="email" value="{if isset($value) && $value}{$value}{else}{l s='your e-mail' mod='leobootstrapmenu'}{/if}" />
<input type="hidden" name="action" value="0" />
<span class="input-group-btn">
<button type="submit" class="btn btn-default" name="submitNewsletter" >{l s='Go!' mod='leobootstrapmenu'}</button>
</span>
</div>
</form>
</div>
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>
<!-- /Block Newsletter module-->
<script type="text/javascript">
var placeholder = "{l s='your e-mail' mod='leobootstrapmenu' js=1}";
{literal}
$(document).ready(function() {
$('#newsletter-input-footer').on({
focus: function() {
if ($(this).val() == placeholder) {
$(this).val('');
}
},
blur: function() {
if ($(this).val() == '') {
$(this).val(placeholder);
}
}
});
$("#newsletter_block_footer form").submit( function(){
if ( $('#newsletter-input-footer').val() == placeholder) {
$("#newsletter_block_footer .alert").removeClass("hide");
return false;
}else {
$("#newsletter_block_footer .alert").addClass("hide");
return true;
}
} );
});
{/literal}
</script>

View File

@@ -0,0 +1,79 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($product)}
<div class="widget-product">
{if isset($widget_heading)&&!empty($widget_heading)}
<div class="menu-title">
{$widget_heading}
</div>
{/if}
<div class="widget-inner">
<div class="product_block">
<div class="product-miniature js-product-miniature" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product">
<div class="thumbnail-container clearfix">
<div class="product-image">
{block name='product_thumbnail'}
<a href="{$product.url}" class="thumbnail product-thumbnail">
<img
class="img-fluid{if isset($aplazyload) && $aplazyload} lazy{/if}"
{if isset($aplazyload) && $aplazyload}data-src{else}src{/if} = "{$product.cover.bySize.cart_default.url}"
alt = "{$product.cover.legend}"
data-full-size-image-url = "{$product.cover.large.url}"
>
</a>
{/block}
</div>
<div class="product-meta">
<div class="product-description">
{block name='product_name'}
<h4 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h4>
{/block}
{block name='product_price_and_shipping'}
{if $product.show_price}
<div class="product-price-and-shipping">
{if $product.has_discount}
{hook h='displayProductPriceBlock' product=$product type="old_price"}
<span class="regular-price">{$product.regular_price}</span>
{if $product.discount_type === 'percentage'}
<span class="discount-percentage">{$product.discount_percentage}</span>
{/if}
{/if}
{hook h='displayProductPriceBlock' product=$product type="before_price"}
<span class="price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<span itemprop="priceCurrency" content="{$currency.iso_code}"></span><span itemprop="price" content="{$product.price_amount}">{$product.price}</span>
</span>
{hook h='displayProductPriceBlock' product=$product type='unit_price'}
{hook h='displayProductPriceBlock' product=$product type='weight'}
</div>
{/if}
{/block}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,97 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($products) && !empty($products)}
<div class="widget-products">
{if isset($widget_heading)&&!empty($widget_heading)}
<div class="menu-title">
{$widget_heading}
</div>
{/if}
<div class="widget-inner">
{if isset($products) AND $products}
<div class="product-block">
{assign var='liHeight' value=140}
{assign var='nbItemsPerLine' value=3}
{assign var='nbLi' value=$limit}
{math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
{math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight}
{$mproducts=array_chunk($products,$limit)}
{foreach from=$products item=product name=homeFeaturedProducts}
{math equation="(total%perLine)" total=$smarty.foreach.homeFeaturedProducts.total perLine=$nbItemsPerLine assign=totModulo}
{if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
<div class="product-miniature js-product-miniature" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product">
<div class="thumbnail-container clearfix">
<div class="product-image">
{block name='product_thumbnail'}
<a href="{$product.url}" class="thumbnail product-thumbnail">
<img
class="img-fluid{if isset($aplazyload) && $aplazyload} lazy{/if}"
{if isset($aplazyload) && $aplazyload}data-src{else}src{/if} = "{$product.cover.bySize.small_default.url}"
alt = "{$product.cover.legend}"
data-full-size-image-url = "{$product.cover.large.url}"
>
</a>
{/block}
</div>
<div class="product-meta">
<div class="product-description">
{block name='product_name'}
<h4 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h4>
{/block}
{block name='product_price_and_shipping'}
{if $product.show_price}
<div class="product-price-and-shipping">
{if $product.has_discount}
{hook h='displayProductPriceBlock' product=$product type="old_price"}
<span class="regular-price">{$product.regular_price}</span>
{if $product.discount_type === 'percentage'}
<span class="discount-percentage">{$product.discount_percentage}</span>
{/if}
{/if}
{hook h='displayProductPriceBlock' product=$product type="before_price"}
<span class="price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<span itemprop="priceCurrency" content="{$currency.iso_code}"></span><span itemprop="price" content="{$product.price_amount}">{$product.price}</span>
</span>
{hook h='displayProductPriceBlock' product=$product type='unit_price'}
{hook h='displayProductPriceBlock' product=$product type='weight'}
</div>
{/if}
{/block}
</div>
</div>
</div>
</div>
{/foreach}
</div>
{/if}
</div>
</div>
{else}
<div class="widget-products">
<p class="alert alert-info">{l s='No products found.' mod='leobootstrapmenu'}</p>
</div>
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,32 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($raw_html)}
<div class="widget-raw-html">
{if isset($widget_heading)&&!empty($widget_heading)}
<div class="menu-title">
{$widget_heading}
</div>
{/if}
<div class="widget-inner">
{$raw_html nofilter}{* HTML form , no escape necessary *}
</div>
</div>
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,51 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($subcategories)}
<div class="widget-subcategories">
{if isset($widget_heading)&&!empty($widget_heading)}
<div class="widget-heading">
{$widget_heading}
</div>
{/if}
<div class="widget-inner">
{if $cat->id_category != ''}
<div class="menu-title">
<a href="{$link->getCategoryLink($cat->id_category, $cat->link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$cat->name|escape:'htmlall':'UTF-8'}" class="img">
{$cat->name|escape:'htmlall':'UTF-8'}
</a>
</div>
<ul>
{foreach from=$subcategories item=subcategory}
<li class="clearfix">
<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img">
{$subcategory.name|escape:'htmlall':'UTF-8'}
</a>
</li>
{/foreach}
</ul>
{else}
<div class="alert alert-warning">
{l s='The ID category does not exist' mod='leobootstrapmenu'}
</div>
{/if}
</div>
</div>
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,43 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($tabs)}
<div class="widget-tab">
{if isset($widget_heading)&&!empty($widget_heading)}
<div class="menu-title">
{$widget_heading}
</div>
{/if}
<div class="widget-inner">
<div id="tabs{$id}" class="panel-group">
<ul class="nav nav-tabs">
{foreach $tabs as $key => $ac}
<li class="{if $key==0}active{/if}"><a href="#tab{$id}{$key}" >{$ac.header}</a></li>
{/foreach}
</ul>
<div class="tab-content">
{foreach $tabs as $key => $ac}
<div class="tab-pane{if $key==0} active{/if} " id="tab{$id}{$key}">{$ac.content}</div>
{/foreach}
</div>
</div>
</div>
</div>
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,58 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($tabhtmls)}
<div id="tabhtml{$id|escape:'html':'UTF-8'}" class="widget-tab block">
{if isset($widget_heading)&&!empty($widget_heading)}
<h4 class="title_block">
{$widget_heading|escape:'html':'UTF-8'}
</h4>
{/if}
<div class="block_content">
<div id="tabhtmls{$id|escape:'html':'UTF-8'}" class="panel-group">
<ul class="nav nav-tabs">
{foreach $tabhtmls as $key => $ac}
<li class="nav-item{if $key==0} active{/if}"><a href="#tabhtml{$id|escape:'html':'UTF-8'}{$key|escape:'html':'UTF-8'}" class="nav-link tab-link" >{$ac.title|escape:'html':'UTF-8'}</a></li>
{/foreach}
</ul>
<div class="tab-content">
{foreach $tabhtmls as $key => $ac}
<div class="tab-pane{if $key==0} active{/if} " id="tabhtml{$id|escape:'html':'UTF-8'}{$key|escape:'html':'UTF-8'}">{$ac.content nofilter}{* HTML form , no escape necessary *}</div>
{/foreach}
</div>
</div>
</div>
</div>
<script type="text/javascript">
{literal}
if ( typeof live_editor !== 'undefined' && live_editor)
{
// var tabhtml_id = {/literal}{$id}{literal};
list_tab_live_editor.push({/literal}{$id}{literal});
}
else
{
// list_menu_tmp.list_tab.push({$id});
list_tab.push({/literal}{$id}{literal}) ;
}
{/literal}
</script>
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,35 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($username)}
<div class="widget-twitter">
{if isset($widget_heading)&&!empty($widget_heading)}
<div class="menu-title">
{$widget_heading}
</div>
{/if}
<div class="widget-inner">
<a class="twitter-timeline" data-dnt="true" data-theme="{$theme}" data-link-color="#FFFFFF" width="{$width}" height="{$height}" data-chrome="{$chrome}" data-border-color="#{$border_color}" lang="EN" data-tweet-limit="{$count}" data-show-replies="{$show_replies}" href="https://twitter.com/{$username}" data-widget-id="{$twidget_id}">Tweets by @{$username}</a>
</div>
</div>
{literal}
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if (!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
{/literal}
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,32 @@
{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($video_code)}
<div class="widget-video">
{if isset($widget_heading)&&!empty($widget_heading)}
<div class="menu-title">
{$widget_heading}
</div>
{/if}
<div class="widget-inner">
{$video_code nofilter}{* HTML form , no escape necessary *}
</div>
</div>
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2012 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-2012 PrestaShop SA
* @version Release: $Revision: 13573 $
* @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;