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,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>