first commit
This commit is contained in:
19
modules/leobootstrapmenu/views/templates/hook/attrw.tpl
Normal file
19
modules/leobootstrapmenu/views/templates/hook/attrw.tpl
Normal 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}
|
||||
366
modules/leobootstrapmenu/views/templates/hook/group_list.tpl
Normal file
366
modules/leobootstrapmenu/views/templates/hook/group_list.tpl
Normal 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 *}
|
||||
</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>
|
||||
</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>
|
||||
36
modules/leobootstrapmenu/views/templates/hook/index.php
Normal file
36
modules/leobootstrapmenu/views/templates/hook/index.php
Normal 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;
|
||||
@@ -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>
|
||||
237
modules/leobootstrapmenu/views/templates/hook/liveeditor.tpl
Normal file
237
modules/leobootstrapmenu/views/templates/hook/liveeditor.tpl
Normal 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">×</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:'&':'&'}';
|
||||
var _action_menu = '{$ajxmenuinfo|replace:'&':'&'}';
|
||||
var _action_widget = '{$action_widget|replace:'&':'&'}';
|
||||
var _action_loadwidget = '{$action_loadwidget|replace:'&':'&'}';
|
||||
var _id_shop = '{$id_shop}';
|
||||
$("#megamenu-content").PavMegamenuEditor({
|
||||
"action": _action,
|
||||
"action_menu": _action_menu,
|
||||
"action_widget": _action_widget,
|
||||
"id_shop": _id_shop,
|
||||
});
|
||||
|
||||
</script>
|
||||
63
modules/leobootstrapmenu/views/templates/hook/megamenu.tpl
Normal file
63
modules/leobootstrapmenu/views/templates/hook/megamenu.tpl
Normal 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>
|
||||
☰
|
||||
<!--
|
||||
<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}
|
||||
@@ -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}
|
||||
@@ -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>
|
||||
@@ -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}
|
||||
@@ -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}
|
||||
27
modules/leobootstrapmenu/views/templates/hook/menutree_1.tpl
Normal file
27
modules/leobootstrapmenu/views/templates/hook/menutree_1.tpl
Normal 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>
|
||||
@@ -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}
|
||||
42
modules/leobootstrapmenu/views/templates/hook/menutree_3.tpl
Normal file
42
modules/leobootstrapmenu/views/templates/hook/menutree_3.tpl
Normal 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>
|
||||
48
modules/leobootstrapmenu/views/templates/hook/menutree_4.tpl
Normal file
48
modules/leobootstrapmenu/views/templates/hook/menutree_4.tpl
Normal 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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user