first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

3303
modules/ets_megamenu/views/css/animate.css vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,175 @@
/*Main background ------- color 1 */
/*background hover item ------- color 2 */
/*text color ------- color 3 */
/*text hover color ------- color 4*/
/*border color ------- color 5 */
.ets_mm_megamenu .mm_menus_li h4,
.ets_mm_megamenu .mm_menus_li h5,
.ets_mm_megamenu .mm_menus_li h6,
.ets_mm_megamenu .mm_menus_li h1,
.ets_mm_megamenu .mm_menus_li h2,
.ets_mm_megamenu .mm_menus_li h3,
.ets_mm_megamenu .mm_menus_li h4 *:not(i),
.ets_mm_megamenu .mm_menus_li h5 *:not(i),
.ets_mm_megamenu .mm_menus_li h6 *:not(i),
.ets_mm_megamenu .mm_menus_li h1 *:not(i),
.ets_mm_megamenu .mm_menus_li h2 *:not(i),
.ets_mm_megamenu .mm_menus_li h3 *:not(i),
.ets_mm_megamenu .mm_menus_li > a{
font-family: font1;
}
.ets_mm_megamenu *{
font-family: font2;
}
.layout_layout1 .mm_menus_li:hover > a,
.layout_layout1 .mm_menus_li.active > a,
#header .layout_layout1 .mm_menus_li:hover > a,
#header .layout_layout1 .mm_menus_li.active > a{color: color2;}
.layout_layout1 li:hover > a,
.layout_layout1 li > a:hover,
#header .layout_layout1 li:hover > a,
#header .layout_layout1 .mm_columns_ul .mm_block_type_product .product-title > a:hover,
#header .layout_layout1 li > a:hover{color: color7;}
.layout_layout2 .mm_columns_ul li:hover > a,
.layout_layout2 .mm_columns_ul li > a:hover,
#header .layout_layout2 .mm_columns_ul .mm_block_type_product .product-title > a:hover,
#header .layout_layout2 .mm_columns_ul li:hover > a,
#header .layout_layout2 .mm_columns_ul li > a:hover{color: color7;}
.layout_layout3 .mm_columns_ul .ets_mm_categories .has-sub li:hover > a,
.layout_layout3 .mm_columns_ul .ets_mm_categories .has-sub li > a:hover,
#header .layout_layout3 .mm_columns_ul .ets_mm_categories .has-sub li:hover > a,
#header .layout_layout3 .mm_columns_ul .ets_mm_categories .has-sub li > a:hover{
color: color7;
}
.layout_layout3 .mm_columns_ul li:hover > a,
.layout_layout3 .mm_columns_ul li > a:hover,
#header .layout_layout3 .mm_columns_ul li:hover > a,
#header .layout_layout3 .mm_columns_ul li > a:hover{color: color7;}
.layout_layout4 .mm_columns_ul li:hover > a,
.layout_layout4 .mm_columns_ul li > a:hover,
#header .layout_layout4 .mm_columns_ul li:hover > a,
#header .layout_layout4 .mm_columns_ul .mm_block_type_product .product-title > a:hover,
#header .layout_layout4 .mm_columns_ul li > a:hover{color: color7;}
.layout_layout5 li:hover > a,
.layout_layout5 li > span.arrow:hover,
.layout_layout5 li > a:hover,
.layout_layout5 .mm_menus_li.active > a,
#header .layout_layout5 li:hover > a,
#header .layout_layout5 .mm_columns_ul .mm_block_type_product .product-title > a:hover,
#header .layout_layout5 li > span.arrow:hover
#header .layout_layout5 li > a:hover,
#header .layout_layout5 .mm_menus_li.active > a,
.layout_layout5 .ets_mm_block_content .has-sub:hover > a:after,
#header .layout_layout5 .ets_mm_block_content .has-sub:hover > a:after{
border-color: color7;
}
/*layout 5*/
.layout_layout5 li:hover > a,
.layout_layout5 li > span.arrow:hover,
.layout_layout5 li > a:hover,
.layout_layout5 .mm_menus_li.active > a,
#header .layout_layout5 li:hover > a,
#header .layout_layout5 .mm_columns_ul .mm_block_type_product .product-title > a:hover,
#header .layout_layout5 li > span.arrow:hover
#header .layout_layout5 li > a:hover,
#header .layout_layout5 .mm_menus_li.active > a{color: color7;}
@media (min-width: 768px){
/*layout 1*/
.layout_layout1 .mm_menus_li > a,
#header .layout_layout1 .mm_menus_li > a{color: color1;}
.layout_layout1 .mm_menus_li > a:before{background-color: color2;}
/*layout 2*/
.layout_layout2 .ets_mm_megamenu_content{background: color3;}
.layout_layout2 .mm_menus_li:hover > a,
.layout_layout2 .mm_menus_li.active > a,
#header .layout_layout2 .mm_menus_li:hover > a,
#header .layout_layout2 .mm_menus_li.active > a{background-color: color4;}
/*layout 3*/
.layout_layout3 .ets_mm_megamenu_content{background: color5;}
.layout_layout3 .mm_menus_li:hover > a,
.layout_layout3 .mm_menus_li.active > a{background-color: color6;}
.mm_columns_ul .ets_mm_categories .has-sub:hover > a:after{
border-color: color7;
}
.layout_layout3 .mm_menus_li > .mm_columns_ul{
background-color: color6;
border-color: color5;
}
.layout_layout3 .mm_menus_li > .mm_columns_ul h4,
.layout_layout3 .mm_menus_li > .mm_columns_ul h4 a,
#header .layout_layout3 .mm_menus_li > .mm_columns_ul h4 a{
color: #fff;
}
.layout_layout3.ets_mm_block_content .has-sub > a:after{
border-top-color: color5;
}
/*layout 4*/
.layout_layout4 .ets_mm_megamenu_content {
border-bottom-color: color2;
}
.layout_layout4 .mm_menus_li:hover > a,
.layout_layout4 .mm_menus_li.active > a,
.layout_layout4 .mm_menus_li:hover > span,
.layout_layout4 .mm_menus_li.active > span,
#header .layout_layout4 .mm_menus_li:hover > a,
#header .layout_layout4 .mm_menus_li.active > a,
#header .layout_layout4 .mm_menus_li:hover > span,
#header .layout_layout4 .mm_menus_li.active > span {
background-color: color2;
color: #fff;
}
}
@media only screen and (max-width: 767px){
.ybc-menu-toggle,
.transition_floating .close_menu,
.transition_full .close_menu {
background-color: color8;
color: color9;
}
.ets_mm_megamenu .ets_mm_megamenu_content .mm_menus_ul .close_menu *{
color: color9 !important;
}
.ets_mm_megamenu .ets_mm_megamenu_content .mm_menus_ul .close_menu .icon-bar{
background-color: color9 !important;
}
.ets_mm_megamenu .mm_menus_back_icon{
border-color: color9;
}
.ybc-menu-toggle .icon-bar {
background-color: color9;
}
.mm_menus_li:hover > a,
#header .mm_menus_li:hover > a{color: color7;}
.mm_menus_li:hover > .arrow:before{
border-color: color7;
}
}

View File

@@ -0,0 +1,13 @@
body{
}
.mm_block_type_product .product_list .ajax_block_product {
padding-left: 0;
padding-right: 0;
}
@media (min-width: 768px){
.hook-default.layout_layout5 .mm_menus_ul {
margin-bottom: -3px;
}
}

View File

@@ -0,0 +1,145 @@
body{
}
.ets_mm_megamenu.hook-default {
clear: none;
float: left;
padding: 0;
width: 60%;
margin-top: 0;
}
.layout_layout5.hook-default .ets_mm_megamenu_content {
background-color: rgba(0, 0, 0, 0);
border-bottom: medium none;
}
.layout_layout5.hook-default .mm_menus_ul .mm_menus_li:not(:nth-child(2)):after {
display: none;
}
.mm_block_type_product .thumbnail-container .product-description {
background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
height: auto;
position: relative;
text-align: left;
width: auto;
}
.ets-dir-rtl .mm_block_type_product .thumbnail-container .product-description,
.ets-dir-rtl .mm_block_type_product .thumbnail-container .product-title > a {
text-align: right;
display: block;
}
.mm_block_type_product .thumbnail-container .thumbnail > img {
margin-left: 0;
}
.mm_block_type_product .thumbnail-container .thumbnail {
float: left;
margin-right: 10px;
width: 90px;
}
.mm_block_type_product .thumbnail-container .thumbnail img{
border: 1px solid #D0D0D0;
}
.mm_block_type_product .thumbnail-container {
box-shadow: none;
display: flex;
display: -webkit-flex;
display: -ms-flex;
display: -o-flex;
height: auto;
width: auto;
background-color: rgba(0, 0, 0, 0);
}
.mm_block_type_product .thumbnail-container:hover, .mm_block_type_product .thumbnail-container:hover .product-description {
box-shadow: none !important;
}
.mm_block_type_product .thumbnail-container .highlighted-informations {
box-shadow: none;
display: none;
position: static;
}
.mm_block_type_product .thumbnail-container .product-title > a {
line-height: 18px;
text-align: left;
}
.mm_block_type_product .thumbnail-container .product-title {
margin-top: 0;
text-align: left;
}
.mm_block_type_product .product-miniature {
clear: left;
display: block;
margin-bottom: 15px;
}
.mm_block_type_product .product-price-and-shipping {
text-align: inherit !important;
}
.hook-default.layout_layout4 .mm_columns_ul > .mm_columns_li,
.hook-default.layout_layout5 .mm_columns_ul > .mm_columns_li {
border-left: medium none;
}
.ets-dir-rtl .mm_block_type_product .thumbnail-container .thumbnail {
float: left;
margin-right: 0px;
margin-left: 10px;
width: 90px;
}
.skin_default.layout_layout4.ets-dir-rtl .mm_columns_ul > .mm_columns_li:first-child,
.skin_default.layout_layout5.ets-dir-rtl .mm_columns_ul > .mm_columns_li:first-child {
border-left: none;
}
.layout_layout5.skin_default:not(.scroll_heading) .mm_blocks_li {
padding: 0 10px;
}
.hook-default.layout_layout5 .mm_menus_li > a {
padding: 12px 15px;
}
.hook-default .ets_mm_megamenu_content .container {
padding: 0;
}
.hook-default.layout_layout5:not(.scroll_heading) .mm_bubble_text {
top: -5px;
}
@media (min-width: 768px){
.layout_layout5.hook-default:not(.scroll_heading) .mm_menus_li > a {
padding: 5px 20px;
}
.hook-default.layout_layout4:not(.scroll_heading) .mm_blocks_li {
padding: 0 15px;
}
.hook-default.layout_layout4:not(.scroll_heading) .mm_columns_ul > .mm_columns_li {
margin: 20px 0 0;
}
.hook-default.layout_layout4:not(.scroll_heading) .mm_columns_ul > .mm_columns_li,
.hook-default.layout_layout5:not(.scroll_heading) .mm_columns_ul > .mm_columns_li {
margin: 10px 0;
}
.layout_layout5:not(.ets-dir-rtl) .mm_menus_ul .mm_menus_li:nth-child(2) > a {
padding-left: 0;
}
}
@media (max-width: 767px){
.ets_mm_megamenu.hook-default {
background-color: rgba(0, 0, 0, 0);
margin-top: 10px;
padding: 0 15px;
width: 100%;
}
}

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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;

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

View File

@@ -0,0 +1 @@
jpg

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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;

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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,929 @@
/*
* 2007-2017 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
$(document).ready(function(){
$(document).on('click','.mm_add_menu',function(){
$('.mm_pop_up').addClass('hidden');
$('.mm_menu_form').removeClass('hidden');
$('.mm_forms').removeClass('hidden').parents('.mm_popup_overlay').removeClass('hidden');
if($('.mm_menu_form .mm_form form input[name="itemId"]').length <= 0 || $('.mm_menu_form .mm_form form input[name="mm_object"]')!='MM_Menu' || $('.mm_menu_form .mm_form form input[name="itemId"]').length > 0 && parseInt($('.mm_menu_form .mm_form form input[name="itemId"]').val())!=0)
$('.mm_menu_form .mm_form').html($('.mm_menu_form_new').html());
checkFormFields();
$('.mm-alert').remove();
return false;
});
$(document).on('click','.mm_import_button',function(){
$(this).parents('.mm_pop_up').addClass('hidden');
$(this).parents('.mm_forms').addClass('hidden');
$('.mm_export_form').removeClass('hidden');
$('.mm_export.mm_pop_up').removeClass('hidden');
});
$(document).on('click','.mm_menu_toggle',function(){
if(!$(this).parents('.mm_menus_li').eq(0).hasClass('open'))
{
$('.mm_menus_li').removeClass('open');
$(this).parents('.mm_menus_li').eq(0).addClass('open');
setTimeout(function() {
var item_active_height = $('.mm_menus_li.open').find('.mm_columns_ul').height();
console.log(item_active_height);
$('.ets_megamenu').css('min-height',item_active_height+'px');
}, 200);
}
});
$(document).on('click','.mm_save',function(){
if(!$(this).parents('form').eq(0).hasClass('active') && $('.defaultForm.active').length <= 0)
{
$(this).parents('form').eq(0).addClass('active');
$(this).parents('.mm_save_wrapper').eq(0).addClass('loading');
$('.mm-alert').remove();
var formData = new FormData($(this).parents('form').get(0));
$.ajax({
url: $(this).parents('form').eq(0).attr('action'),
data: formData,
type: 'post',
dataType: 'json',
processData: false,
contentType: false,
success: function(json){
showSaveMessage(json.alert);
$('.mm_save_wrapper').removeClass('loading');
if(json.images && json.success)
{
$.each(json.images,function(i,item){
if($('.defaultForm.active input[name="'+item.name+'"]').length > 0)
{
updatePreviewImage(item.name,item.url,item.delete_url);
}
});
}
if(json.itemId && json.itemKey && json.success)
{
$('.defaultForm.active input[name="'+json.itemKey+'"]').val(json.itemId);
$('.defaultForm.active input[name="itemId"]').val(json.itemId);
}
if(json.mm_object=='MM_Menu' && json.success && json.title)
{
if($('.mm_menus ul').length <= 0)
{
$('.mm_menus').append('<ul class="mm_menus_ul"></ul>');
//Sortable
mmSort('.mm_menus_ul');
}
if($('.mm_menus > ul.mm_menus_ul > li.item'+json.itemId).length <=0 )
{
$('.mm_menus_li').removeClass('open');
$('.mm_menus > ul.mm_menus_ul').append('<li class="mm_menus_li '+(!json.vals.enabled ? ' mm_disabled ' : '')+' item'+json.itemId+' open" data-id-menu="'+json.itemId+'" data-obj="menu"><div class="mm_menus_li_content"><span class="mm_menu_name mm_menu_toggle">'+json.title+'</span><div class="mm_buttons"><span class="mm_menu_delete" title="'+mmDeleteTitleTxt+'">'+mmDeleteTxt+'</span><span class="mm_duplicate" title="'+mmDuplicateMenuTxt+'">'+mmDuplicateTxt+'</span><span class="mm_menu_edit">'+mmEditTxt+'</span><span class="mm_menu_toggle mm_menu_toggle_arrow">'+mmCloseTxt+'</span><div class="mm_add_column btn btn-default" data-id-menu="'+json.vals.id_menu+'">'+mmAddColumnTxt+'</div></div></div><ul class="mm_columns_ul"></ul></li>');
$('.mm_form form .panel-heading').html(mmEditMenuTxt);
mmSort('.mm_columns_ul');
}
else
{
$('.mm_menus > ul.mm_menus_ul > li.item'+json.itemId + ' .mm_menu_name').html(json.title);
if(json.vals.enabled)
$('.mm_menus > ul.mm_menus_ul > li.item'+json.itemId).removeClass('mm_disabled');
else
$('.mm_menus > ul.mm_menus_ul > li.item'+json.itemId).addClass('mm_disabled');
}
}
if(json.mm_object=='MM_Column' && json.success)
{
if($('.mm_menus_li.item'+json.vals.id_menu+' > ul.mm_columns_ul').length <= 0)
{
$('.mm_menus_li.item'+json.vals.id_menu).append('<ul class="mm_columns_ul"></ul>');
//Sortable
mmSort('.mm_columns_ul');
}
if($('.mm_menus_li.item'+json.vals.id_menu+' > ul.mm_columns_ul > li.item'+json.itemId).length <=0 )
{
$('.mm_menus_li.item'+json.vals.id_menu+' > ul.mm_columns_ul').append('<li class="mm_columns_li item'+json.itemId+' column_size_'+json.vals.column_size+' '+(json.vals.is_breaker ? 'mm_breaker' : '')+'" data-id-column="'+json.itemId+'" data-obj="column">'+'<div class="mm_buttons"><span class="mm_column_delete" title="'+mmDeleteColumnTxt+'">'+mmDeleteTxt+'</span><span class="mm_duplicate" title="'+mmDuplicateColumnTxt+'">'+mmDuplicateTxt+'</span><span class="mm_column_edit" title="'+mmEditColumnTxt+'">'+mmEditTxt+'</span><div class="mm_add_block btn btn-default" data-id-column="'+json.vals.id_column+'">'+mmAddBlockTxt+'</div></div><ul class="mm_blocks_ul"></ul></li>');
$('.mm_form form .panel-heading').html(mmEditColumnTxt);
mmSort('.mm_blocks_ul');
}
else
$('.mm_menus_li.item'+json.vals.id_menu+' > ul.mm_columns_ul > li.item'+json.itemId).attr('class','mm_columns_li item'+json.itemId+' column_size_'+json.vals.column_size+' '+(json.vals.is_breaker ? 'mm_breaker' : ''));
}
if(json.mm_object=='MM_Block' && json.success && json.vals.blockHtml)
{
if($('.mm_columns_li.item'+json.vals.id_column+' > ul.mm_blocks_ul').length <= 0)
{
$('.mm_columns_li.item'+json.vals.id_column).append('<ul class="mm_blocks_ul"></ul>');
//Sortable
mmSort('.mm_blocks_ul');
}
if($('.mm_columns_li.item'+json.vals.id_column+' > ul.mm_blocks_ul > li.item'+json.itemId).length <=0 )
{
$('.mm_columns_li.item'+json.vals.id_column+' > ul.mm_blocks_ul').append('<li class="mm_blocks_li '+(!json.vals.enabled ? ' mm_disabled ' : '')+' item'+json.itemId+'" data-id-block="'+json.itemId+'" data-obj="block">'+'<div class="mm_buttons"><span class="mm_block_delete" title="'+mmDeleteBlockTxt+'">'+mmDeleteTxt+'</span><span class="mm_duplicate" title="'+mmDuplicateBlockTxt+'">'+mmDuplicateTxt+'</span><span class="mm_block_edit" title="'+mmEditBlockTxt+'">'+mmEditTxt+'</span></div><div class="mm_block_wrapper">'+json.vals.blockHtml+'</div></li>');
$('.mm_form form .panel-heading').html(mmEditBlockTxt);
}
else
{
$('.mm_columns_li.item'+json.vals.id_column+' > ul.mm_blocks_ul > li.item'+json.itemId + ' .mm_block_wrapper').html(json.vals.blockHtml);
if(json.vals.enabled)
$('.mm_columns_li.item'+json.vals.id_column+' > ul.mm_blocks_ul > li.item'+json.itemId).removeClass('mm_disabled');
else
$('.mm_columns_li.item'+json.vals.id_column+' > ul.mm_blocks_ul > li.item'+json.itemId).addClass('mm_disabled');
}
}
$('.defaultForm.active').removeClass('active');
if(json.success)
{
mmAlertSucccess($('.mm_menu_form .alert-success').html());
$('.mm_pop_up').addClass('hidden').parents('.mm_forms').addClass('hidden').parents('.mm_popup_overlay').addClass('hidden');
}
setTimeout(function() {
var min_height = $('.mm_menus_ul > li.open').find('.mm_columns_ul').height();
$('.ets_megamenu').css('min-height',min_height+'px');
}, 200);
},
error: function(xhr, status, error)
{
$('.defaultForm.active').removeClass('active');
$('.mm_save_wrapper').removeClass('loading');
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
}
});
}
return false;
});
$(document).on('click','.mm_close',function(){
$(this).parents('.mm_pop_up').addClass('hidden').parents('.mm_popup_overlay').addClass('hidden');
$(this).parents('.mm_forms').addClass('hidden');
$('.mm_export_form').addClass('hidden');
});
$(document).on('change','input[type="file"]',function(){
var fileExtension = ['jpeg', 'jpg', 'png', 'gif', 'bmp','zip'];
if ($.inArray($(this).val().split('.').pop().toLowerCase(), fileExtension) == -1) {
$(this).val('');
if($(this).next('.dummyfile').length > 0)
{
$(this).next('.dummyfile').eq(0).find('input[type="text"]').val('');
}
if($(this).parents('.col-lg-9').eq(0).find('.preview_img').length > 0)
$(this).parents('.col-lg-9').eq(0).find('.preview_img').eq(0).remove();
if($(this).parents('.col-lg-9').eq(0).next('.uploaded_image_label').length > 0)
{
$(this).parents('.col-lg-9').eq(0).next('.uploaded_image_label').removeClass('hidden');
$(this).parents('.col-lg-9').eq(0).next('.uploaded_image_label').next('.uploaded_img_wrapper').removeClass('hidden');
}
alert(ets_mm_invalid_file);
}
else
{
readURL(this);
}
});
$(document).on('click','.del_preview',function(){
if($(this).parents('.col-lg-9').eq(0).next('.uploaded_image_label').length > 0)
{
$(this).parents('.col-lg-9').eq(0).next('.uploaded_image_label').removeClass('hidden');
$(this).parents('.col-lg-9').eq(0).next('.uploaded_image_label').next('.uploaded_img_wrapper').removeClass('hidden');
}
$(this).parents('.col-lg-9').eq(0).find('.dummyfile input[type="text"]').val('');
if($(this).parents('.col-lg-9').eq(0).find('input[type="file"]').length > 0)
{
$(this).parents('.col-lg-9').eq(0).find('input[type="file"]').eq(0).val('');
}
$(this).parents('.preview_img').remove();
});
$(document).on('click','.delete_url',function(){
var delLink = $(this);
if(!$(this).parents('form').eq(0).hasClass('active') && $('.defaultForm.active').length <= 0)
{
$(this).parents('form').eq(0).addClass('active');
$.ajax({
url: $(this).attr('href'),
data: {},
type: 'post',
dataType: 'json',
success: function(json){
showSaveMessage(json.alert);
if(json.success)
{
delLink.parents('.uploaded_img_wrapper').eq(0).prev('.uploaded_image_label').eq(0).remove();
delLink.parents('.uploaded_img_wrapper').eq(0).remove();
}
$('.defaultForm.active').removeClass('active');
},
error: function(xhr, status, error)
{
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
$('.defaultForm.active').removeClass('active');
}
});
}
return false;
});
$(document).on('click','.mm_menu_edit',function(){
if(!$(this).hasClass('active'))
{
$(this).addClass('active');
$('.ets_megamenu').addClass('loading-form');
$('.mm-alert').remove();
$.ajax({
url: mmBaseAdminUrl,
dataType: 'json',
type: 'post',
data: {
itemId: $(this).parents('li').eq(0).data('id-menu'),
request_form: 1,
mm_object: 'MM_Menu',
},
success: function(json){
showSaveMessage(json.alert);
$('.mm_pop_up').addClass('hidden');
$('.mm_forms').removeClass('hidden');
$('.mm_menu_form').removeClass('hidden');
$('.mm_menu_form .mm_form').html(json.form);
checkFormFields();
$('.mm_menu_form .mm_form .mColorPickerInput').mColorPicker();
$('.mm_menus_li.item'+json.itemId+' .mm_menu_edit').removeClass('active');
$('.mm_menus_li').removeClass('open');
$('.mm_menus_li.item'+json.itemId).addClass('open');
$('.ets_megamenu').removeClass('loading-form');
},
error: function(xhr, status, error)
{
$('.mm_menu_edit').removeClass('active');
$('.ets_megamenu').removeClass('loading-form');
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
}
});
}
});
$(document).on('click','.mm_menu_delete',function(){
if(!$(this).hasClass('active'))
{
$(this).addClass('active');
$.ajax({
url: mmBaseAdminUrl,
dataType: 'json',
type: 'post',
data: {
itemId: $(this).parents('li').eq(0).data('id-menu'),
deleteobject: 1,
mm_object: 'MM_Menu',
},
success: function(json){
if(json.success)
{
if($('.mm_menus_li.item'+json.itemId).hasClass('open'))
{
if($('.mm_menus_li.item'+json.itemId).prev('li').length > 0)
$('.mm_menus_li.item'+json.itemId).prev('li').addClass('open');
else
if($('.mm_menus_li.item'+json.itemId).next('li').length > 0)
$('.mm_menus_li.item'+json.itemId).next('li').addClass('open');
}
$('.mm_menus_li.item'+json.itemId).remove();
mmAlertSucccess(json.successMsg);
}
else
$('.mm_menus_li.item'+json.itemId+' .mm_menu_delete').removeClass('active');
},
error: function(xhr, status, error)
{
$('.mm_menu_delete').removeClass('active');
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
}
});
}
return false;
});
//Column
$(document).on('click','.mm_add_column',function(){
$('.mm_pop_up').addClass('hidden');
$('.mm_forms').removeClass('hidden');
$('.mm_menu_form').removeClass('hidden');
if($('.mm_menu_form .mm_form form input[name="itemId"]').length <= 0 || $('.mm_menu_form .mm_form form input[name="mm_object"]')!='MM_Column' || $('.mm_menu_form .mm_form form input[name="itemId"]').length > 0 && (parseInt($('.mm_menu_form .mm_form form input[name="itemId"]').val())!=0 || parseInt($('.mm_menu_form .mm_form form input[name="itemId"]').val())==0 && parseInt($('.mm_menu_form .mm_form form input[name="id_menu"]').val()))!=parseInt($(this).attr('data-id-menu')))
{
$('.mm_menu_form .mm_form').html($('.mm_column_form_new').html());
$('.mm_menu_form .mm_form form input[name="id_menu"]').val($(this).attr('data-id-menu'));
}
$('.mm-alert').remove();
return false;
});
$(document).on('click','.mm_column_delete',function(){
if(!$(this).hasClass('active'))
{
$(this).addClass('active');
$.ajax({
url: mmBaseAdminUrl,
dataType: 'json',
type: 'post',
data: {
itemId: $(this).parents('li').eq(0).data('id-column'),
deleteobject: 1,
mm_object: 'MM_Column',
},
success: function(json){
if(json.success)
{
$('.mm_columns_li.item'+json.itemId).remove();
mmAlertSucccess(json.successMsg);
}
else
$('.mm_columns_li.item'+json.itemId+' .mm_column_delete').removeClass('active');
},
error: function(xhr, status, error)
{
$('.mm_column_delete').removeClass('active');
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
}
});
}
return false;
});
$(document).on('click','.mm_column_edit',function(){
if(!$(this).hasClass('active'))
{
$('.ets_megamenu').addClass('loading-form');
$(this).addClass('active');
$('.mm-alert').remove();
$.ajax({
url: mmBaseAdminUrl,
dataType: 'json',
type: 'post',
data: {
itemId: $(this).parents('li').eq(0).data('id-column'),
request_form: 1,
mm_object: 'MM_Column',
},
success: function(json){
$('.mm_pop_up').addClass('hidden');
$('.mm_forms').removeClass('hidden');
$('.mm_menu_form').removeClass('hidden');
$('.mm_menu_form .mm_form').html(json.form);
checkFormFields();
$('.mm_menu_form .mm_form .mColorPickerInput').mColorPicker();
$('.mm_columns_li.item'+json.itemId+' .mm_column_edit').removeClass('active');
$('.ets_megamenu').removeClass('loading-form');
},
error: function(xhr, status, error)
{
$('.mm_column_edit').removeClass('active');
$('.ets_megamenu').removeClass('loading-form');
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
}
});
}
});
//Block
$(document).on('click','.mm_add_block',function(){
$('.mm_pop_up').addClass('hidden');
$('.mm_menu_form').removeClass('hidden');
$('.mm_forms').removeClass('hidden');
if($('.mm_menu_form .mm_form form input[name="itemId"]').length <= 0 || $('.mm_menu_form .mm_form form input[name="mm_object"]')!='MM_Block' || $('.mm_menu_form .mm_form form input[name="itemId"]').length > 0 && (parseInt($('.mm_menu_form .mm_form form input[name="itemId"]').val())!=0 || parseInt($('.mm_menu_form .mm_form form input[name="itemId"]').val())==0 && parseInt($('.mm_menu_form .mm_form form input[name="id_column"]').val()))!=parseInt($(this).attr('data-id-column')))
{
$('.mm_menu_form .mm_form').html($('.mm_block_form_new').html());
$('.mm_menu_form .mm_form form input[name="id_column"]').val($(this).attr('data-id-column'));
checkFormFields();
}
$('.mm-alert').remove();
return false;
});
$(document).on('click','.mm_block_edit',function(){
if(!$(this).hasClass('active'))
{
$(this).addClass('active');
$('.ets_megamenu').addClass('loading-form');
$('.mm-alert').remove();
$.ajax({
url: mmBaseAdminUrl,
dataType: 'json',
type: 'post',
data: {
itemId: $(this).parents('li').eq(0).data('id-block'),
request_form: 1,
mm_object: 'MM_Block',
},
success: function(json){
$('.mm_pop_up').addClass('hidden');
$('.mm_forms').removeClass('hidden');
$('.mm_menu_form').removeClass('hidden');
$('.mm_menu_form .mm_form').html(json.form);
checkFormFields();
$('.mm_menu_form .mm_form .mColorPickerInput').mColorPicker();
$('.mm_blocks_li.item'+json.itemId+' .mm_block_edit').removeClass('active');
$('.ets_megamenu').removeClass('loading-form');
},
error: function(xhr, status, error)
{
$('.mm_block_edit').removeClass('active');
$('.ets_megamenu').removeClass('loading-form');
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
}
});
}
});
$(document).on('click','.mm_block_delete',function(){
if(!$(this).hasClass('active'))
{
$(this).addClass('active');
$.ajax({
url: mmBaseAdminUrl,
dataType: 'json',
type: 'post',
data: {
itemId: $(this).parents('li').eq(0).data('id-block'),
deleteobject: 1,
mm_object: 'MM_Block',
},
success: function(json){
if(json.success)
{
$('.mm_blocks_li.item'+json.itemId).remove();
mmAlertSucccess(json.successMsg);
}
else
$('.mm_blocks_li.item'+json.itemId+' .mm_block_delete').removeClass('active');
},
error: function(xhr, status, error)
{
$('.mm_block_delete').removeClass('active');
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
}
});
}
return false;
});
//Duplicate
$(document).on('click','.mm_duplicate',function(){
if(!$(this).hasClass('active'))
{
$(this).addClass('active');
var mm_object = $(this).parents('li').eq(0).data('obj');
var itemId = 0;
if(mm_object=='menu')
itemId = $(this).parents('li').eq(0).data('id-menu');
else if(mm_object=='column')
itemId = $(this).parents('li').eq(0).data('id-column');
else
itemId = $(this).parents('li').eq(0).data('id-block');
$.ajax({
url: mmBaseAdminUrl,
dataType: 'json',
type: 'post',
data: {
itemId: itemId,
duplicateItem: 1,
mm_object: mm_object,
},
success: function(json){
if(json.mm_object!='menu')
{
if($('li[data-id-'+json.mm_object+'="'+json.itemId+'"] > .mm_buttons .mm_duplicate').length > 0)
$('li[data-id-'+json.mm_object+'="'+json.itemId+'"] > .mm_buttons .mm_duplicate').removeClass('active');
}
else
{
if($('li[data-id-'+json.mm_object+'="'+json.itemId+'"] > .mm_menus_li_content .mm_buttons > .mm_duplicate').length > 0)
$('li[data-id-'+json.mm_object+'="'+json.itemId+'"] > .mm_menus_li_content .mm_buttons > .mm_duplicate').removeClass('active');
}
if(json.html)
{
if($('li[data-id-'+json.mm_object+'="'+json.itemId+'"]').length > 0)
$('li[data-id-'+json.mm_object+'="'+json.itemId+'"]').after(json.html);
else
if($('ul.mm_'+json.mm_object+'s_ul').length > 0)
$('ul.mm_'+json.mm_object+'s_ul').append(json.html);
}
if(json.mm_object=='menu')
{
$('.mm_menus_li').removeClass('open');
$('li[data-id-'+json.mm_object+'="'+json.newItemId+'"]').addClass('open');
setTimeout(function() {
var min_height = $('.mm_menus_ul > li.open').find('.mm_columns_ul').height();
$('.ets_megamenu').css('min-height',min_height+'px');
}, 200);
}
mmSort('.mm_blocks_ul');
mmSort('.mm_columns_ul');
mmSort('.mm_menus_ul');
if(json.alerts.success)
mmAlertSucccess(json.alerts.success);
else
alert(json.alerts.errors);
},
error: function(xhr, status, error)
{
$('.mm_duplicate').removeClass('active');
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
}
});
}
return false;
});
$(document).on('change','.mm_form select[name="link_type"],.mm_form select[name="block_type"]',function(){
checkFormFields();
});
//Config
$(document).on('click','.mm_config_save',function(){
if(!$('.mm_config_form_content').hasClass('active'))
{
$('.mm_config_form_content').addClass('active');
$(this).parents('.mm_save_wrapper').eq(0).addClass('loading');
$('.mm-alert').remove();
var formData = new FormData($(this).parents('form').get(0));
$.ajax({
url: $(this).parents('form').eq(0).attr('action'),
data: formData,
type: 'post',
dataType: 'json',
processData: false,
contentType: false,
success: function(json){
$('.mm-alert').remove();
//$('.ets_megamenu').attr('class','ets_megamenu '+json.layout_direction);
$('.mm_config_form_content').removeClass('active');
$('.mm_config_form_content').append(json.alert);
if(json.success)
{
mmAlertSucccess($('.mm_config_form_content .alert-success').html());
$('.mm_pop_up').addClass('hidden').parents('.mm_popup_overlay').addClass('hidden');
}
$('.mm_save_wrapper').removeClass('loading');
},
error: function(xhr, status, error)
{
$('.mm-alert').remove();
$('.mm_save_wrapper').removeClass('loading');
$('.mm_config_form_content').removeClass('active');
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
}
});
}
return false;
});
$(document).on('click','.mm_config_button',function(){
$('.mm_pop_up').addClass('hidden');
$('.mm_config_form').removeClass('hidden').parents('.mm_popup_overlay').removeClass('hidden');
$('.mm-alert.alert-success').remove();
});
$(document).on('click','.mm_import_menu',function(){
if(!$('.mm_import_option_form').hasClass('active'))
{
$('.mm_import_option_form').addClass('active');
var formData = new FormData($(this).parents('form').get(0));
$('.mm_import_option_form .alert').remove();
$.ajax({
url: $('.mm_import_option_form').attr('action'),
data: formData,
type: 'post',
dataType: 'json',
processData: false,
contentType: false,
success: function(json){
$('.mm_import_option_form').removeClass('active');
if(json.success)
{
$('.mm_pop_up').addClass('hidden');
$('.mm_forms').addClass('hidden');
$('.mm_export_form').addClass('hidden');
$('.mm_export.mm_pop_up').addClass('hidden');
mmAlertSucccess(json.success);
setTimeout(function(){
location.reload();
},3000);
}
else
{
$('.mm_import_option_form').append('<div class="alert alert-danger">'+json.error+'</div>');
}
},
error: function(xhr, status, error)
{
$('.mm_import_option_form').removeClass('active');
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
}
});
}
return false;
});
//Reset
$(document).on('click','.mm_reset_default',function(){
if(!$(this).hasClass('active'))
{
$(this).addClass('active');
$.ajax({
url: mmBaseAdminUrl,
dataType: 'json',
type: 'post',
data: {
reset_config: 1,
},
success: function(json){
$('.mm_reset_default').removeClass('active');
if(json.success)
{
mmAlertSucccess(json.success);
setTimeout(function(){
location.reload();
},3000);
}
},
error: function(xhr, status, error)
{
$('.mm_reset_default').removeClass('active');
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
}
});
}
return false;
});
//Sortable
mmSort('.mm_blocks_ul');
mmSort('.mm_columns_ul');
mmSort('.mm_menus_ul');
//Color
if($('select[name="ETS_MM_SKIN"]').val()=='custom')
$('.row_ets_mm_color1, .row_ets_mm_color2, .row_ets_mm_color3, .row_ets_mm_color4, .row_ets_mm_color5, .row_ets_mm_color6, .row_ets_mm_color7, .row_ets_mm_color8, .row_ets_mm_color9').show();
else
$('.row_ets_mm_color1, .row_ets_mm_color2, .row_ets_mm_color3, .row_ets_mm_color4, .row_ets_mm_color5, .row_ets_mm_color6, .row_ets_mm_color7, .row_ets_mm_color8, .row_ets_mm_color9').hide();
$(document).on('change','select[name="ETS_MM_SKIN"]',function(){
if($('select[name="ETS_MM_SKIN"]').val()=='custom')
$('.row_ets_mm_color1, .row_ets_mm_color2, .row_ets_mm_color3, .row_ets_mm_color4, .row_ets_mm_color5, .row_ets_mm_color6, .row_ets_mm_color7, .row_ets_mm_color8, .row_ets_mm_color9').show();
else
$('.row_ets_mm_color1, .row_ets_mm_color2, .row_ets_mm_color3, .row_ets_mm_color4, .row_ets_mm_color5, .row_ets_mm_color6, .row_ets_mm_color7, .row_ets_mm_color8, .row_ets_mm_color9').hide();
});
//Cache
if(parseInt($('input[name="ETS_MM_CACHE_ENABLED"]:checked').val())==1)
$('.row_ets_mm_cache_life_time').show();
else
$('.row_ets_mm_cache_life_time').hide();
$(document).on('change','input[name="ETS_MM_CACHE_ENABLED"]',function(){
if(parseInt($('input[name="ETS_MM_CACHE_ENABLED"]:checked').val())==1)
$('.row_ets_mm_cache_life_time').show();
else
$('.row_ets_mm_cache_life_time').hide();
});
$(document).on('click','.mm_clear_cache',function(){
if(!$(this).hasClass('active'))
{
$(this).addClass('active');
$.ajax({
url: $(this).attr('href'),
data: {
clearMenuCache: 1,
},
type: 'post',
dataType: 'json',
success: function(json){
$('.mm_clear_cache').removeClass('active');
if(json.success)
mmAlertSucccess(json.success);
},
error: function(xhr, status, error)
{
$('.mm_clear_cache').removeClass('active');
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
}
});
}
return false;
});
//Initial events
$('.ets_mm_fancy').fancybox();
if($('.mm_menus_ul > li').length > 0){
$('.mm_menus_ul > li:first-child').addClass('open');
setTimeout(function() {
var min_height = $('.mm_menus_ul > li:first-child').find('.mm_columns_ul').height();
$('.ets_megamenu').css('min-height',min_height+'px');
}, 200);
}
$(document).mouseup(function (e)
{
var container = $(".mm_pop_up");
var colorpanel = $('#mColorPicker');
if (!container.is(e.target)
&& container.has(e.target).length === 0 && !colorpanel.is(e.target) && colorpanel.has(e.target).length === 0
&& ($('#mColorPicker').length <=0 || ($('#mColorPicker').length > 0 && $('#mColorPicker').css('display')=='none'))
&& $('.mm_export.mm_pop_up').hasClass('hidden'))
{
$('.mm_pop_up').addClass('hidden').parents('.mm_popup_overlay').addClass('hidden');
$('.mm_forms').addClass('hidden');
$('.mm_export_form').addClass('hidden');
}
});
$(document).keyup(function(e) {
if (e.keyCode === 27)
{
$('.mm_pop_up').addClass('hidden').parents('.mm_popup_overlay').addClass('hidden');
$('.mm_forms').addClass('hidden');
$('.mm_export_form').addClass('hidden');
}
});
$(document).on('click','.mm_change_mode',function(){
$('.mm_change_mode').removeClass('active');
$(this).addClass('active');
if($(this).hasClass('mm_layout_rlt'))
$('.ets_megamenu').removeClass('ets-dir-ltr').addClass('ets-dir-rtl');
else
$('.ets_megamenu').removeClass('ets-dir-rtl').addClass('ets-dir-ltr');
});
$(document).on('click','.mm_view_mode',function(){
if(!$(this).hasClass('active'))
{
$('.mm_view_mode').removeClass('active');
$(this).addClass('active');
if($(this).hasClass('mm_view_mode_tab_select'))
$('.ets_megamenu').removeClass('mm_view_mode_list').addClass('mm_view_mode_tab');
else
$('.ets_megamenu').removeClass('mm_view_mode_tab').addClass('mm_view_mode_list');
}
});
if($('select[name="ETS_MM_HOOK_TO"]').val()=='customhook' && $('select[name="ETS_MM_HOOK_TO"]').next('.help-block').length > 0)
$('select[name="ETS_MM_HOOK_TO"]').next('.help-block').addClass('active');
$(document).on('change','select[name="ETS_MM_HOOK_TO"]',function(){
if($(this).val()=='customhook' && $(this).next('.help-block').length > 0)
$(this).next('.help-block').addClass('active');
else
$(this).next('.help-block').removeClass('active');
});
$(document).on('click','.mm_config_form_tab > li',function(){
$('.mm_config_form_tab > li,.mm_config_forms > div').removeClass('active');
$(this).addClass('active');
$('.mm_config_forms div.mm_config_'+$(this).attr('data-tab')).addClass('active');
});
});
function mmSort(selector)
{
$(selector).sortable({
connectWith: selector,
update: function(e,ui)
{
if (this === ui.item.parent()[0]) {
var obj = ui.item.attr('data-obj');
var itemId = ui.item.attr('data-id-'+obj);
var parentObj = ui.item.parents('li').length > 0 ? ui.item.parents('li').eq(0).attr('data-obj') : false;
var parentId = parentObj && ui.item.parents('li').length > 0 ? ui.item.parents('li').eq(0).attr('data-id-'+parentObj) : 0;
var previousId = ui.item.prev('li').length > 0 ? ui.item.prev('li').attr('data-id-'+obj) : 0;
$.ajax({
url: mmBaseAdminUrl,
type: 'post',
dataType: 'json',
data: {
itemId: itemId,
obj: obj,
parentId: parentId,
parentObj: parentObj ? parentObj : '',
previousId: previousId,
updateOrder: 1,
},
success: function(json)
{
if(!json.success)
$(selector).sortable('cancel');
},
error: function()
{
$(selector).sortable('cancel');
}
});
}
}
}).disableSelection();
}
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
if($(input).parents('.col-lg-9').eq(0).find('.preview_img').length <= 0)
{
$(input).parents('.col-lg-9').eq(0).append('<div class="preview_img"><img src="'+e.target.result+'"/> <i style="font-size: 20px;" class="process-icon-delete del_preview"></i></div>');
}
else
{
$(input).parents('.col-lg-9').eq(0).find('.preview_img img').eq(0).attr('src',e.target.result);
}
if($(input).parents('.col-lg-9').eq(0).next('.uploaded_image_label').length > 0)
{
$(input).parents('.col-lg-9').eq(0).next('.uploaded_image_label').addClass('hidden');
$(input).parents('.col-lg-9').eq(0).next('.uploaded_image_label').next('.uploaded_img_wrapper').addClass('hidden');
}
}
reader.readAsDataURL(input.files[0]);
}
}
function updatePreviewImage(name,url,delete_url)
{
if($('.defaultForm.active input[name="'+name+'"]').length > 0 && $('.defaultForm.active input[name="'+name+'"]').parents('.col-lg-9').length > 0)
{
if($('.defaultForm.active input[name="'+name+'"]').parents('.col-lg-9').eq(0).find('.preview_img').length > 0)
$('.defaultForm.active input[name="'+name+'"]').parents('.col-lg-9').eq(0).find('.preview_img').eq(0).remove();
if($('.defaultForm.active input[name="'+name+'"]').parents('.col-lg-9').eq(0).next('.uploaded_image_label').length<=0)
{
$('.defaultForm.active input[name="'+name+'"]').parents('.col-lg-9').eq(0).after('<label class="control-label col-lg-3 uploaded_image_label" style="font-style: italic;">Uploaded image: </label><div class="col-lg-9 uploaded_img_wrapper"><a class="ybc_fancy" href="'+url+'"><img title="Click to see full size image" style="display: inline-block; max-width: 200px;" src="'+url+'"></a>'+(delete_url ? '<a class="delete_url" style="display: inline-block; text-decoration: none!important;" href="'+delete_url+'"><span style="color: #666"><i style="font-size: 20px;" class="process-icon-delete"></i></span></a>' : '')+'</div>');
}
else
{
var imageWrapper = $('.defaultForm.active input[name="'+name+'"]').parents('.col-lg-9').eq(0).next('.uploaded_image_label').next('.col-lg-9');
imageWrapper.find('a.ets_mm_fancy').eq(0).attr('href',url);
imageWrapper.find('a.ets_mm_fancy img').eq(0).attr('src',url);
if(imageWrapper.find('a.delete_url').length > 0)
imageWrapper.find('a.delete_url').eq(0).attr('href',delete_url);
$('.defaultForm.active input[name="'+name+'"]').parents('.col-lg-9').eq(0).next('.uploaded_image_label').removeClass('hidden');
$('.defaultForm.active input[name="'+name+'"]').parents('.col-lg-9').eq(0).next('.uploaded_image_label').next('.uploaded_img_wrapper').removeClass('hidden');
}
$('.defaultForm.active input[name="'+name+'"]').val('');
}
}
function showSaveMessage(alertmsg)
{
if(alertmsg)
{
if($('.defaultForm.active').parents('.mm_pop_up').eq(0).find('.alert').length > 0)
$('.defaultForm.active').parents('.mm_pop_up').eq(0).find('.alert').remove();
$('.defaultForm.active').parents('.mm_pop_up').eq(0).append(alertmsg);
}
}
function checkFormFields()
{
if($('.mm_form select[name="link_type"]').length > 0)
{
$('.mm_form .row_link, .mm_form .row_id_manufacturer, .mm_form .row_id_category, .mm_form .row_id_cms').hide();
if($('.mm_form select[name="link_type"]').val()=='CUSTOM')
$('.mm_form .row_link').show();
else if($('.mm_form select[name="link_type"]').val()=='CMS')
$('.mm_form .row_id_cms').show();
else if($('.mm_form select[name="link_type"]').val()=='CATEGORY')
$('.mm_form .row_id_category').show();
else if($('.mm_form select[name="link_type"]').val()=='MNFT')
$('.mm_form .row_id_manufacturer').show();
}
if($('.mm_form select[name="block_type"]').length > 0)
{
$('.mm_form .row_image, .mm_form .row_id_manufacturers, .mm_form .row_id_categories, .mm_form .row_id_cmss,.mm_form .row_image_link,.mm_form .row_content,.mm_form .row_id_products').hide();
if($('.mm_form select[name="block_type"]').val()=='HTML')
$('.mm_form .row_content').show();
else if($('.mm_form select[name="block_type"]').val()=='CMS')
$('.mm_form .row_id_cmss').show();
else if($('.mm_form select[name="block_type"]').val()=='CATEGORY')
$('.mm_form .row_id_categories').show();
else if($('.mm_form select[name="block_type"]').val()=='MNFT')
$('.mm_form .row_id_manufacturers').show();
else if($('.mm_form select[name="block_type"]').val()=='PRODUCT')
$('.mm_form .row_id_products').show();
else if($('.mm_form select[name="block_type"]').val()=='IMAGE')
{
$('.mm_form .row_image').show();
$('.mm_form .row_image_link').show();
}
}
}
function mmAlertSucccess(successMsg)
{
if($('#content .ets_mm_success_alert').length <= 0)
{
$('#content').append('<div class="alert alert-success ets_mm_success_alert" style="display: none;"></div>');
}
$('#content .ets_mm_success_alert').html(successMsg);
$('#content .ets_mm_success_alert').fadeIn().delay(5000).fadeOut();
}

View File

@@ -0,0 +1,149 @@
/*
* 2007-2017 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
$(function() {
if ($('.ets_mm_megamenu.sticky_enabled').length > 0)
{
var sticky_navigation_offset_top = $('.ets_mm_megamenu.sticky_enabled').offset().top;
var headerFloatingHeight = $('.ets_mm_megamenu.sticky_enabled').height()+($('#header').length > 0 ? parseInt($('.ets_mm_megamenu.sticky_enabled').css('marginTop').replace('px',''))+parseInt($('.ets_mm_megamenu.sticky_enabled').css('marginBottom').replace('px','')) : 0);
var oldHeaderMarginBottom = $('#header').length > 0 ? parseInt($('#header').css('marginBottom').replace('px','')) : 0;
var sticky_navigation = function(){
if(!$('.ets_mm_megamenu').hasClass('sticky_enabled'))
return false;
var scroll_top = $(window).scrollTop();
if (scroll_top > sticky_navigation_offset_top) {
$('.ets_mm_megamenu.sticky_enabled').addClass('scroll_heading');
/*if($('.ybc-layout-layouthome2 #header').length > 0)
$('#header').css({'marginBottom':headerFloatingHeight+'px'});*/
} else {
$('.ets_mm_megamenu.sticky_enabled').removeClass('scroll_heading');
/*if($('.ybc-layout-layouthome2 #header').length > 0)
$('#header').css({'marginBottom':oldHeaderMarginBottom+'px'});*/
}
};
sticky_navigation();
$(window).scroll(function() {
sticky_navigation();
});
if($(window).width() < 768 && !$('body').hasClass('disable-sticky'))
$('body').addClass('disable-sticky');
$(window).on('resize',function(e){
if($(window).width() < 768 && !$('body').hasClass('disable-sticky'))
$('body').addClass('disable-sticky');
else
if($(window).width() >= 768 && $('body').hasClass('disable-sticky'))
$('body').removeClass('disable-sticky');
});
}
$('.transition_slide li.mm_menus_li').hover(function(){
if($(window).width() >= 768){
$(this).find('.mm_columns_ul').stop(true,true).slideDown(300);
}
}, function(){
if($(window).width() >= 768){
$(this).find('.mm_columns_ul').stop(true,true).slideUp(300);
}
});
$('.ybc-menu-toggle').on('click',function(){
if ($(window).width() <= 767){
var wrapper = $(this).next('.mm_menus_ul');
if($(this).hasClass('closed'))
{
var btnObj = $(this);
btnObj.removeClass('closed');
btnObj.addClass('opened');
//btnObj.text('-');
wrapper.stop(true,true).addClass('active');
if ( $('.transition_slide.transition_default').length != '' ){
wrapper.stop(true,true).slideDown(0);
}
}
else
{
var btnObj = $(this);
btnObj.removeClass('opened');
btnObj.addClass('closed');
//btnObj.text('+');
wrapper.stop(true,true).removeClass('active');
if ( $('.transition_slide.transition_default').length != '' ){
wrapper.stop(true,true).slideUp(0);
}
}
}
});
$('.close_menu').on('click',function(){
if ($(window).width() <= 767){
$(this).parent().prev().removeClass('opened');
$(this).parent().prev().addClass('closed');
$(this).parent().stop(true,true).removeClass('active');
$('#menu-icon').stop(true,true).removeClass('opened');
$('#menu-icon').stop(true,true).addClass('closed');
}
});
$('.arrow').on('click',function(){
if ($(window).width() <= 767){
var wrapper = $(this).next('.mm_columns_ul');
if($(this).hasClass('closed'))
{
var btnObj = $(this);
btnObj.removeClass('closed');
btnObj.addClass('opened');
//btnObj.text('-');
wrapper.stop(true,true).addClass('active');
}
else
{
var btnObj = $(this);
btnObj.removeClass('opened');
btnObj.addClass('closed');
//btnObj.text('+');
wrapper.stop(true,true).removeClass('active');
}
}
});
//Active menu
if($('.ets_mm_megamenu').hasClass('enable_active_menu') && $('.mm_menus_ul > li').length > 0)
{
var currentUrl = window.location.href;
$('.mm_menus_ul > li').each(function(){
if($(this).find('a[href="'+currentUrl+'"]').length > 0)
{
$(this).addClass('active');
return false;
}
});
}
if($('.mm_breaker').length > 0 && $('.mm_breaker').prev('li').length > 0)
{
$('.mm_breaker').prev('li').addClass('mm_before_breaker');
}
});

View File

@@ -0,0 +1,119 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helpers/form/form.tpl"}
{block name="input"}
{if $input.type == 'checkbox'}
{if isset($input.values.query) && $input.values.query}
{foreach $input.values.query as $value}
{assign var=id_checkbox value=$input.name|cat:'_'|cat:$value[$input.values.id]|escape:'html':'UTF-8'}
<div class="checkbox{if isset($input.expand) && strtolower($input.expand.default) == 'show'} hidden{/if}">
{strip}
<label for="{$id_checkbox|intval}">
<input type="checkbox" name="{$input.name|escape:'html':'UTF-8'}[]" id="{$id_checkbox|escape:'html':'UTF-8'}" {if isset($value.value)} value="{$value.value|escape:'html':'UTF-8'}"{/if}{if isset($fields_value[$input.name]) && is_array($fields_value[$input.name]) && $fields_value[$input.name] && in_array($value.value,$fields_value[$input.name])} checked="checked"{/if} />
{$value[$input.values.name]|escape:'html':'UTF-8'}
</label>
{/strip}
</div>
{/foreach}
{/if}
{else}
{$smarty.block.parent}
{if $input.name=='ETS_MM_CACHE_LIFE_TIME'}
<a class="mm_clear_cache" href="{$mm_clear_cache_url|escape:'html':'UTF-8'}">{l s='Clear menu cache' mod='ets_megamenu'}</a>
{/if}
{/if}
{/block}
{block name="field"}
{if $input.name}
{$smarty.block.parent}
{if $input.type == 'file' && isset($input.display_img) && $input.display_img}
<label class="control-label col-lg-3 uploaded_image_label" style="font-style: italic;">{l s='Uploaded image: ' mod='ets_megamenu'}</label>
<div class="col-lg-9 uploaded_img_wrapper">
<a class="ets_mm_fancy" href="{$input.display_img|escape:'html':'UTF-8'}"><img title="{l s='Click to see full size image' mod='ets_megamenu'}" style="display: inline-block; max-width: 200px;" src="{$input.display_img|escape:'html':'UTF-8'}" /></a>
{if (!isset($input.hide_delete) || isset($input.hide_delete) && !$input.hide_delete) && isset($input.img_del_link) && $input.img_del_link && !(isset($input.required) && $input.required)}
<a class="delete_url" style="display: inline-block; text-decoration: none!important;" href="{$input.img_del_link|escape:'html':'UTF-8'}"><span style="color: #666"><i style="font-size: 20px;" class="process-icon-delete"></i></span></a>
{/if}
</div>
{/if}
{/if}
{/block}
{block name="footer"}
{capture name='form_submit_btn'}{counter name='form_submit_btn'}{/capture}
{if isset($fieldset['form']['submit']) || isset($fieldset['form']['buttons'])}
<div class="panel-footer">
{if isset($reset_default) && $reset_default}
<span class="btn btn-default mm_reset_default" title="{l s='Only reset configuration to default. Menu data won\'t be lost' mod='ets_megamenu'}">
<img src="{$image_baseurl|escape:'html':'UTF-8'}loader.gif" />
<i class="process-icon-refresh"></i>
{l s='Reset' mod='ets_megamenu'}
</span>
{/if}
{if isset($fieldset['form']['submit']) && !empty($fieldset['form']['submit'])}
<div class="img_loading_wrapper hidden">
<img src="{$image_baseurl|escape:'html':'UTF-8'}ajax-loader.gif" title="{l s='Loading' mod='ets_megamenu'}" class="ets_megamenu_loading" />
</div>
<input type="hidden" name="mm_object" value="{$mm_object|escape:'html':'UTF-8'}" />
{if isset($list_item) && $list_item}
<input type="hidden" name="itemId" value="{$item_id|intval}" />
<input type="hidden" name="mm_form_submitted" value="1" />
{else}
<input type="hidden" name="mm_config_submitted" value="1" />
{/if}
<div class="mm_save_wrapper">
<button type="submit" value="1" class="mm_save_button {if isset($list_item) && $list_item}mm_save{else}mm_config_save{/if} {if isset($fieldset['form']['submit']['class'])}{$fieldset['form']['submit']['class']|escape:'html':'UTF-8'}{else}btn btn-default pull-right{/if}">
<i class="{if isset($fieldset['form']['submit']['icon'])}{$fieldset['form']['submit']['icon']|escape:'html':'UTF-8'}{else}process-icon-save{/if}"></i> {$fieldset['form']['submit']['title']|escape:'html':'UTF-8'}
</button>
<div class="mm_saving">
<img src="{$image_baseurl|escape:'html':'UTF-8'}loader.gif" />
{l s='Saving' mod='ets_megamenu'}
</div>
</div>
{/if}
</div>
{/if}
{/block}
{block name="input_row"}
{if $input.name=='ETS_MM_LAYOUT'}
<div class="mm_config_form_tab_div">
<ul class="mm_config_form_tab">
<li class="mm_config_genneral active" data-tab="general">{l s='General' mod='ets_megamenu'}</li>
<li class="mm_config_design" data-tab="design">{l s='Design' mod='ets_megamenu'}</li>
</ul>
</div>
<div class="mm_config_forms">
<div class="mm_config_general active">
{/if}
{if $input.name=='ETS_MM_SKIN'}
</div>
<div class="mm_config_design">
{/if}
<div class="form-group-wrapper row_{strtolower($input.name)|escape:'html':'UTF-8'}">{$smarty.block.parent}</div>
{if $input.name=='ETS_MM_CUSTOM_CSS'}
</div>
</div>
{/if}
{/block}

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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,30 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if isset($alerts['errors']) && $alerts['errors']}
<div class="alert alert-danger mm-alert mm-alert-{$time|escape:'html':'UTF-8'}">{implode('<br/>',$alerts['errors'])}</div>
{/if}
{if isset($alerts['success']) && $alerts['success']}
<div class="alert alert-success mm-alert mm-alert-{$time|escape:'html':'UTF-8'}">{implode('<br/>',$alerts['success'])}</div>
{/if}

View File

@@ -0,0 +1,127 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
var mmBaseAdminUrl = '{$mmBaseAdminUrl|escape:'quotes':'UTF-8'}';
var mmCloseTxt = '{l s='Close' mod='ets_megamenu'}';
var mmOpenTxt = '{l s='Open' mod='ets_megamenu'}';
var mmDeleteTxt = '{l s='Delete' mod='ets_megamenu'}';
var mmEditTxt = '{l s='Edit' mod='ets_megamenu'}';
var mmDeleteTitleTxt = '{l s='Delete this item' mod='ets_megamenu'}';
var mmAddMenuTxt = '{l s='Add new menu' mod='ets_megamenu'}';
var mmEditMenuTxt = '{l s='Edit menu' mod='ets_megamenu'}';
var mmAddColumnTxt = '{l s='Add new column' mod='ets_megamenu'}';
var mmEditColumnTxt = '{l s='Edit column' mod='ets_megamenu'}';
var mmDeleteColumnTxt = '{l s='Delete this column' mod='ets_megamenu'}';
var mmDeleteBlockTxt = '{l s='Delete this block' mod='ets_megamenu'}';
var mmEditBlockTxt = '{l s='Edit this block' mod='ets_megamenu'}';
var mmAddBlockTxt = '{l s='Add new block' mod='ets_megamenu'}';
var mmDuplicateTxt = '{l s='Duplicate' mod='ets_megamenu'}';
var mmDuplicateMenuTxt = '{l s='Duplicate this menu' mod='ets_megamenu'}';
var mmDuplicateColumnTxt = '{l s='Duplicate this column' mod='ets_megamenu'}';
var mmDuplicateBlockTxt = '{l s='Duplicate this block' mod='ets_megamenu'}';
var ets_mm_invalid_file = '{l s='Image is invalid' mod='ets_megamenu'}';
</script>
<div class="ets_megamenu mm_view_mode_tab {if $mm_backend_layout=='rtl'}ets-dir-rtl backend-layout-rtl{else}ets-dir-ltr backend-layout-ltr{/if} {if $multiLayout}mm_multi_layout{else}mm_single_layout{/if}">
<div class="mm_menus">
<div class="mm_useful_buttons_action">
<div class="mm_view_mm_view_modes">
<div class="mm_view_mode mm_view_mode_tab_select active" title="{l s='Preview in tab mode' mod='ets_megamenu'}">{l s='Tab' mod='ets_megamenu'}</div>
<div class="mm_view_mode mm_view_mode_list_select" title="{l s='Preview in list mode' mod='ets_megamenu'}">{l s='List' mod='ets_megamenu'}</div>
</div>
{if $multiLayout}
<div class="mm_layout_mode">
<div data-title="&#xE236;" class="mm_layout_ltr mm_change_mode {if $mm_backend_layout!='rtl'}active{/if}">{l s='LTR' mod='ets_megamenu'}</div>
<div data-title="&#xE237;" class="mm_layout_rlt mm_change_mode {if $mm_backend_layout=='rtl'}active{/if}">{l s='RTL' mod='ets_megamenu'}</div>
</div>
{/if}
<div class="mm_import_button btn btn-default"><i class="fa fa-exchange" data-title="&#xE8D4;"></i>{l s='Import/Export' mod='ets_megamenu'}</div>
<div class="mm_config_button btn btn-default" data-title="&#xE8B8;">{l s='Settings' mod='ets_megamenu'}</div>
</div>
{if $menus}
<ul class="mm_menus_ul">
{foreach from=$menus item='menu'}
{hook h='displayMMItemMenu' menu=$menu}
{/foreach}
</ul>
{/if}
<div class="mm_useful_buttons">
<div class="mm_add_menu btn btn-default">{l s='Add menu' mod='ets_megamenu'}</div>
</div>
</div>
<div class="mm_loading_icon"><img src="{$mm_img_dir|escape:'html':'UTF-8'}ajax-loader.gif" /></div>
<!-- popup forms -->
<div class="mm_forms hidden mm_popup_overlay">
<div class="mm_menu_form hidden mm_pop_up">
<div class="mm_close">{l s='Close' mod='ets_megamenu'}</div>
<div class="mm_form"></div>
</div>
<div class="mm_menu_form_new hidden">{$menuForm nofilter}</div>
<div class="mm_column_form_new hidden">{$columnForm nofilter}</div>
<div class="mm_block_form_new hidden">{$blockForm nofilter}</div>
</div>
<div class="mm_popup_overlay hidden">
<div class="mm_config_form mm_pop_up">
<div class="mm_close" >{l s='Close' mod='ets_megamenu'}</div>
<div class="mm_config_form_content"><div class="mm_close"></div>{$configForm nofilter}</div>
</div>
</div>
<div class="mm_export_form hidden mm_popup_overlay">
<div class="mm_close"></div>
<div class="mm_export mm_pop_up hidden">
<div data-title="&#xE14C;" class="mm_close">{l s='Close' mod='ets_megamenu'}</div>
<div class="mm_export_form_content">
<div class="mm_export_option">
<div class="export_title">{l s='Export menu content' mod='ets_megamenu'}</div>
<a class="btn btn-default mm_export_menu" href="{$mmBaseAdminUrl nofilter}&exportMenu=1" target="_blank">
<i class="fa fa-download" data-title="&#xE864;"></i>{l s='Export menu' mod='ets_megamenu'}
</a>
<p class="mm_export_option_note">{l s='Export all menu data including images, text and configuration' mod='ets_megamenu'}</p>
</div>
<div class="mm_import_option">
<div class="export_title">{l s='Import menu data' mod='ets_megamenu'}</div>
<form action="{$mmBaseAdminUrl nofilter}" method="post" enctype="multipart/form-data" class="mm_import_option_form">
<div class="mm_import_option_updata">
<label for="sliderdata">{l s='Menu data package' mod='ets_megamenu'}</label>
<input id="image" type="file" name="sliderdata" id="sliderdata" />
</div>
<div class="mm_import_option_clean">
<input type="checkbox" value="1" id="importoverride" checked="checked" name="importoverride" />
<label for="importoverride">{l s='Clear all menus before importing' mod='ets_megamenu'}</label>
</div>
<div class="mm_import_option_button">
<input type="hidden" name="importMenu" value="1" />
<div class="mm_import_menu_loading"><img src="{$mm_img_dir nofilter}loader.gif" />{l s='Importing data' mod='ets_megamenu'}</div>
<div class="mm_import_menu_submit">
<i class="fa fa-compress" data-title="&#xE0C3;"></i>
<input type="submit" value="{l s='Import menu' mod='ets_megamenu'}" class="btn btn-default mm_import_menu"/>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,25 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript" src="{$js_dir_path|escape:'quotes':'UTF-8'}megamenu-admin.js"></script>

View File

@@ -0,0 +1,56 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if isset($block) && $block && $block.enabled}
<div class="ets_mm_block mm_block_type_{strtolower($block.block_type)|escape:'html':'UTF-8'} {if !$block.display_title}mm_hide_title{/if}">
<h4>{if $block.title_link}<a href="{$block.title_link|escape:'html':'UTF-8'}">{/if}{$block.title|escape:'html':'UTF-8'}{if $block.title_link}</a>{/if}</h4>
<div class="ets_mm_block_content">
{if $block.block_type=='CATEGORY'}
{if isset($block.categoriesHtml)}{$block.categoriesHtml nofilter}{/if}
{elseif $block.block_type=='MNFT'}
{if isset($block.manufacturers) && $block.manufacturers}
<ul>
{foreach from=$block.manufacturers item='manufacturer'}
<li><a href="{$manufacturer.link|escape:'html':'UTF-8'}">{$manufacturer.label|escape:'html':'UTF-8'}</a></li>
{/foreach}
</ul>
{/if}
{elseif $block.block_type=='CMS'}
{if isset($block.cmss) && $block.cmss}
<ul>
{foreach from=$block.cmss item='cms'}
<li><a href="{$cms.link|escape:'html':'UTF-8'}">{$cms.label|escape:'html':'UTF-8'}</a></li>
{/foreach}
</ul>
{/if}
{elseif $block.block_type=='IMAGE'}
{if isset($block.image) && $block.image}{if $block.image_link}<a href="{$block.image_link|escape:'html':'UTF-8'}">{/if}<img src="{$block.image|escape:'html':'UTF-8'}" alt="{$block.title|escape:'html':'UTF-8'}" />{if $block.image_link}</a>{/if}{/if}
{elseif $block.block_type=='PRODUCT'}
{if isset($block.productsHtml)}{$block.productsHtml nofilter}{/if}
{else}
{$block.content nofilter}
{/if}
</div>
</div>
{/if}

View File

@@ -0,0 +1,34 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if isset($categories) && $categories}
<ul class="ets_mm_categories">
{foreach from=$categories item='category'}
<li {if isset($category.sub) && $category.sub}class="has-sub"{/if}>
<a href="{$link->getCategoryLink($category.id_category|intval)}">{$category.name|escape:'html':'UTF-8'}</a>
{if isset($category.sub) && $category.sub}{$category.sub nofilter}{/if}
</li>
{/foreach}
</ul>
{/if}

View File

@@ -0,0 +1,27 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if isset($mm_css)&&$mm_css}
<style>{$mm_css nofilter}</style>
{/if}

View File

@@ -0,0 +1,33 @@
{*
* 2007-2021 ETS-Soft
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 wesite only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs, please contact us for extra customization service at an affordable price
*
* @author ETS-Soft <etssoft.jsc@gmail.com>
* @copyright 2007-2021 ETS-Soft
* @license Valid for 1 website (or project) for each purchase of license
* International Registered Trademark & Property of ETS-Soft
*}
<script type="text/javascript">
function phProductFeedResizeIframe(obj) {
$('iframe').css('height','auto');
setTimeout(function() {
$('iframe').css('opacity',1);
var pHeight = $(obj).parent().height();
$(obj).css('height','540px');
}, 300);
}
</script>
<div id="ph_preview_template_html">
<iframe src="{$url_iframe|escape:'html':'UTF-8'}" style="background: #ffffff ; border : 1px solid #ccc;width:100%;height:0;opacity:0;border-radius:5px" onload="phProductFeedResizeIframe(this)"></iframe>
</div>

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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,34 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<li data-id-block="{$block.id_block|intval}" class="mm_blocks_li {if !$block.enabled}mm_disabled{/if} item{$block.id_block|intval}" data-obj="block">
<div class="mm_buttons">
<span class="mm_block_delete" title="{l s='Delete this block' mod='ets_megamenu'}">{l s='Delete' mod='ets_megamenu'}</span>
<span class="mm_duplicate" title="{l s='Duplicate this block' mod='ets_megamenu'}">{l s='Duplicate' mod='ets_megamenu'}</span>
<span class="mm_block_edit" title="{l s='Edit this block' mod='ets_megamenu'}">{l s='Edit' mod='ets_megamenu'}</span>
</div>
<div class="mm_block_wrapper">
{hook h='displayBlock' block=$block}
</div>
</li>

View File

@@ -0,0 +1,39 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<li data-id-column="{$column.id_column|intval}" class="mm_columns_li item{$column.id_column|intval} column_size_{$column.column_size|intval} {if $column.is_breaker}mm_breaker{/if}" data-obj="column">
<div class="mm_buttons">
<span class="mm_column_delete" title="{l s='Delete this column' mod='ets_megamenu'}">{l s='Delete' mod='ets_megamenu'}</span>
<span class="mm_duplicate" title="{l s='Duplicate this column' mod='ets_megamenu'}">{l s='Duplicate' mod='ets_megamenu'}</span>
<span class="mm_column_edit" title="{l s='Edit this column' mod='ets_megamenu'}">{l s='Edit' mod='ets_megamenu'}</span>
<div class="mm_add_block btn btn-default" data-id-column="{$column.id_column|intval}">{l s='Add new block' mod='ets_megamenu'}</div>
</div>
<ul class="mm_blocks_ul">
{if isset($column.blocks) && $column.blocks}
{foreach from=$column.blocks item='block'}
{hook h='displayMMItemBlock' block=$block}
{/foreach}
{/if}
</ul>
</li>

View File

@@ -0,0 +1,43 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<li class="mm_menus_li item{$menu.id_menu|intval} {if !$menu.enabled}mm_disabled{/if}" data-id-menu="{$menu.id_menu|intval}" data-obj="menu">
<div class="mm_menus_li_content">
<span class="mm_menu_name mm_menu_toggle">{$menu.title|escape:'html':'UTF-8'}</span>
<div class="mm_buttons">
<span class="mm_menu_delete" title="{l s='Delete this item' mod='ets_megamenu'}">{l s='Delete' mod='ets_megamenu'}</span>
<span class="mm_duplicate" title="{l s='Duplicate this menu' mod='ets_megamenu'}">{l s='Duplicate' mod='ets_megamenu'}</span>
<span class="mm_menu_edit">{l s='Edit' mod='ets_megamenu'}</span>
<span class="mm_menu_toggle mm_menu_toggle_arrow">{l s='Close' mod='ets_megamenu'}</span>
<div class="mm_add_column btn btn-default" data-id-menu="{$menu.id_menu|intval}">{l s='Add new column' mod='ets_megamenu'}</div>
</div>
</div>
<ul class="mm_columns_ul">
{if $menu.columns}
{foreach from=$menu.columns item='column'}
{hook h='displayMMItemColumn' column=$column}
{/foreach}
{/if}
</ul>
</li>

View File

@@ -0,0 +1,51 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $menusHTML}
<div class="ets_mm_megamenu
{if isset($mm_config.ETS_MM_LAYOUT)&&$mm_config.ETS_MM_LAYOUT}layout_{$mm_config.ETS_MM_LAYOUT|escape:'html':'UTF-8'}{/if}
{if isset($mm_config.ETS_MM_SKIN)&&$mm_config.ETS_MM_SKIN}skin_{$mm_config.ETS_MM_SKIN|escape:'html':'UTF-8'}{/if}
{if isset($mm_config.ETS_MM_TRANSITION_EFFECT)&&$mm_config.ETS_MM_TRANSITION_EFFECT}transition_{$mm_config.ETS_MM_TRANSITION_EFFECT|escape:'html':'UTF-8'}{/if}
{if isset($mm_config.ETS_MOBILE_MM_TYPE)&&$mm_config.ETS_MOBILE_MM_TYPE}transition_{$mm_config.ETS_MOBILE_MM_TYPE|escape:'html':'UTF-8'}{/if}
{if isset($mm_config.ETS_MM_CUSTOM_CLASS)&&$mm_config.ETS_MM_CUSTOM_CLASS}{$mm_config.ETS_MM_CUSTOM_CLASS|escape:'html':'UTF-8'}{/if}
{if isset($mm_config.ETS_MM_STICKY_ENABLED)&&$mm_config.ETS_MM_STICKY_ENABLED}sticky_enabled{else}sticky_disabled{/if}
{if isset($mm_config.ETS_MM_ACTIVE_ENABLED)&&$mm_config.ETS_MM_ACTIVE_ENABLED}enable_active_menu{/if}
{if isset($mm_layout_direction)&&$mm_layout_direction}{$mm_layout_direction|escape:'html':'UTF-8'}{else}ets-dir-ltr{/if}
{if isset($mm_config.ETS_MM_HOOK_TO)&&$mm_config.ETS_MM_HOOK_TO=='customhook'}hook-custom{else}hook-default{/if}
{if isset($mm_multiLayout)&&$mm_multiLayout}multi_layout{else}single_layout{/if}">
<div class="ets_mm_megamenu_content">
<div class="container">
<div class="ybc-menu-toggle ybc-menu-btn closed">
<span class="ybc-menu-button-toggle_icon">
<i class="icon-bar"></i>
<i class="icon-bar"></i>
<i class="icon-bar"></i>
</span>
{l s='Menu' mod='ets_megamenu'}
</div>
{$menusHTML nofilter}
</div>
</div>
</div>
{/if}

View File

@@ -0,0 +1,72 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if isset($menus) && $menus}
<ul class="mm_menus_ul">
<li class="close_menu">
<div class="pull-left">
<span class="mm_menus_back">
<i class="icon-bar"></i>
<i class="icon-bar"></i>
<i class="icon-bar"></i>
</span>
{l s='Menu' mod='ets_megamenu'}
</div>
<div class="pull-right">
<span class="mm_menus_back_icon"></span>
{l s='Back' mod='ets_megamenu'}
</div>
</li>
{foreach from=$menus item='menu'}
<li class="mm_menus_li {if $menu.custom_class}{$menu.custom_class|escape:'html':'UTF-8'}{/if} {if $menu.sub_menu_type}mm_sub_align_{strtolower($menu.sub_menu_type)|escape:'html':'UTF-8'}{/if} {if $menu.columns}mm_has_sub{/if}">
<a href="{$menu.menu_link|escape:'html':'UTF-8'}">
{$menu.title|escape:'html':'UTF-8'}
{if $menu.columns}<span class="mm_arrow"></span>{/if}
{if $menu.bubble_text}<span class="mm_bubble_text" style="background: {if $menu.bubble_background_color}{$menu.bubble_background_color|escape:'html':'UTF-8'}{else}#FC4444{/if}; color: {if $menu.bubble_text_color|escape:'html':'UTF-8'}{$menu.bubble_text_color|escape:'html':'UTF-8'}{else}#ffffff{/if};">{$menu.bubble_text|escape:'html':'UTF-8'}</span>{/if}
</a>
{if $menu.columns}<span class="arrow closed"></span>{/if}
{if $menu.columns}
<ul class="mm_columns_ul" style="width:{$menu.sub_menu_max_width|floatval}%;">
{foreach from=$menu.columns item='column'}
<li class="mm_columns_li column_size_{$column.column_size|intval} {if $column.is_breaker}mm_breaker{/if} {if $column.blocks}mm_has_sub{/if}">
{if isset($column.blocks) && $column.blocks}
<ul class="mm_blocks_ul">
{foreach from=$column.blocks item='block'}
<li data-id-block="{$block.id_block|intval}" class="mm_blocks_li">
{hook h='displayBlock' block=$block}
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
</ul>
{/if}

View File

@@ -0,0 +1,93 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if isset($products) && $products}
{foreach from=$products item="product"}
<article class="product-miniature js-product-miniature" data-id-product="{$product.id_product|intval}" data-id-product-attribute="{$product.id_product_attribute|intval}" itemscope itemtype="http://schema.org/Product">
<div class="thumbnail-container">
{block name='product_thumbnail'}
<a href="{$product.url|escape:'html':'UTF-8'}" class="thumbnail product-thumbnail">
<img
src = "{$product.cover.bySize.home_default.url|escape:'html':'UTF-8'}"
alt = "{$product.cover.legend|escape:'html':'UTF-8'}"
data-full-size-image-url = "{$product.cover.large.url|escape:'html':'UTF-8'}"
/>
</a>
{/block}
<div class="product-description">
{block name='product_name'}
<h1 class="h3 product-title" itemprop="name"><a href="{$product.url|escape:'html':'UTF-8'}">{$product.name|escape:'html':'UTF-8'|truncate:30:'...'}</a></h1>
{/block}
{hook h='displayProductListReviews' product=$product}
{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"}
{hook h='displayProductPriceBlock' product=$product type="before_price"}
<span itemprop="price" class="price">{$product.price|escape:'html':'UTF-8'}</span>
{hook h='displayProductPriceBlock' product=$product type='unit_price'}
{hook h='displayProductPriceBlock' product=$product type='weight'}
<span class="regular-price">{$product.regular_price|escape:'html':'UTF-8'}</span>
{if $product.discount_type === 'percentage'}
<span class="discount-percentage">{$product.discount_percentage|escape:'html':'UTF-8'}</span>
{/if}
{/if}
</div>
{/if}
{/block}
</div>
{block name='product_flags'}
<ul class="product-flags">
{foreach from=$product.flags item=flag}
<li class="{$flag.type|escape:'html':'UTF-8'}">{$flag.label|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/block}
<div class="highlighted-informations{if !$product.main_variants} no-variants{/if} hidden-sm-down">
<a
href="#"
class="quick-view"
data-link-action="quickview"
>
<i class="material-icons search">&#xE8B6;</i> {l s='Quick view' mod='ets_megamenu'}
</a>
{block name='product_variants'}
{if $product.main_variants}
{include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants}
{/if}
{/block}
</div>
</div>
</article>
{/foreach}
{/if}

View File

@@ -0,0 +1,73 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if isset($products) && $products}
<!-- Products list -->
<ul{if isset($id) && $id} id="{$id|intval}"{/if} class="product_list grid row{if isset($class) && $class} {$class|escape:'html':'UTF-8'}{/if}">
{foreach from=$products item=product name=products}
<li class="ajax_block_product col-xs-12 col-sm-12">
<div class="product-container" itemscope itemtype="https://schema.org/Product">
<div class="left-block">
<div class="product-image-container">
<a class="product_img_link" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url">
{assign var='imageLink' value=$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}
<img class="replace-2x img-responsive" src="{if (strpos($imageLink,'http://')===false || strpos($imageLink,'https://'))}{$protocol_link|escape:'html':'UTF-8'}{/if}{$imageLink|escape:'html':'UTF-8'}" alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" {if isset($homeSize)} width="{$homeSize.width|floatval}" height="{$homeSize.height|floatval}"{/if} itemprop="image" />
</a>
</div>
</div>
<div class="right-block">
<h5 itemprop="name">
{if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}
<a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" >
{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}
</a>
</h5>
{if (!$PS_CATALOG_MODE && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
<div class="content_price" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
<span itemprop="price" class="price product-price">
{hook h="displayProductPriceBlock" product=$product type="before_price"}
{if isset($priceDisplay) && !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
</span>
{if $product.price_without_reduction > 0 && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0}
{hook h="displayProductPriceBlock" product=$product type="old_price"}
<span class="old-price product-price">
{displayWtPrice p=$product.price_without_reduction}
</span>
{if $product.specific_prices.reduction_type == 'percentage'}
<span class="price-percent-reduction">-{($product.specific_prices.reduction * 100)|floatval}%</span>
{/if}
{/if}
{/if}
</div>
{/if}
<p class="product-desc" itemprop="description">
{$product.description_short|strip_tags|escape:'html':'UTF-8'|truncate:60:'...'}
</p>
</div>
</div><!-- .product-container> -->
</li>
{/foreach}
</ul>
{/if}

View File

@@ -0,0 +1,157 @@
{*
* 2007-2015 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-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if isset($products) && $products}
<!-- Products list -->
<ul{if isset($id) && $id} id="{$id|intval}"{/if} class="product_list row{if isset($class) && $class} {$class|escape:'html':'UTF-8'}{/if}">
{foreach from=$products item=product name=products}
<li class="ajax_block_product col-xs-12 col-sm-12">
<div class="product-container" itemscope itemtype="https://schema.org/Product">
<div class="left-block">
<div class="product-image-container">
<a class="product_img_link" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url">
{assign var='imageLink' value=$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}
<img class="replace-2x img-responsive" src="{if (strpos($imageLink,'http://')===false || strpos($imageLink,'https://'))}{$protocol_link nofilter}{/if}{$imageLink|escape:'html':'UTF-8'}" alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" {if isset($homeSize)} width="{$homeSize.width|floatval}" height="{$homeSize.height|floatval}"{/if} itemprop="image" />
</a>
{if isset($quick_view) && $quick_view}
<div class="quick-view-wrapper-mobile">
<a class="quick-view-mobile" href="{$product.link|escape:'html':'UTF-8'}" rel="{$product.link|escape:'html':'UTF-8'}">
<i class="icon-eye-open"></i>
</a>
</div>
<a class="quick-view" href="{$product.link|escape:'html':'UTF-8'}" rel="{$product.link|escape:'html':'UTF-8'}">
<span>{l s='Quick view' mod='ets_megamenu'}</span>
</a>
{/if}
<div class="button-container">
{if isset($PS_CATALOG_MODE) && ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.customizable != 2 && !$PS_CATALOG_MODE}
{if (!isset($product.customization_required) || !$product.customization_required) && ($product.allow_oosp || $product.quantity > 0)}
{capture}add=1&amp;id_product={$product.id_product|intval}{if isset($product.id_product_attribute) && $product.id_product_attribute}&amp;ipa={$product.id_product_attribute|intval}{/if}{if isset($static_token)}&amp;token={$static_token|escape:'html':'UTF-8'}{/if}{/capture}
<a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart', true, NULL, $smarty.capture.default, false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='ets_megamenu'}" data-id-product-attribute="{$product.id_product_attribute|intval}" data-id-product="{$product.id_product|intval}" data-minimal_quantity="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity >= 1}{$product.product_attribute_minimal_quantity|intval}{else}{$product.minimal_quantity|intval}{/if}">
<span>{l s='Add to cart' mod='ets_megamenu'}</span>
</a>
{else}
<span class="button ajax_add_to_cart_button btn btn-default disabled">
<span>{l s='Add to cart' mod='ets_megamenu'}</span>
</span>
{/if}
{/if}
</div>
{if isset($product.new) && $product.new == 1}
<a class="new-box" href="{$product.link|escape:'html':'UTF-8'}">
<span class="new-label">{l s='New' mod='ets_megamenu'}</span>
</a>
{/if}
{if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
<a class="sale-box" href="{$product.link|escape:'html':'UTF-8'}">
<span class="sale-label">{l s='Sale!' mod='ets_megamenu'}</span>
</a>
{/if}
</div>
{if isset($product.is_virtual) && !$product.is_virtual}{hook h="displayProductDeliveryTime" product=$product}{/if}
{hook h="displayProductPriceBlock" product=$product type="weight"}
</div>
<div class="right-block">
<h5 itemprop="name">
{if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}
<a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" >
{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}
</a>
</h5>
{capture name='displayProductListReviews'}{hook h='displayProductListReviews' product=$product}{/capture}
{if $smarty.capture.displayProductListReviews}
<div class="hook-reviews">
{hook h='displayProductListReviews' product=$product}
</div>
{/if}
{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
<div class="content_price">
{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
{hook h="displayProductPriceBlock" product=$product type='before_price'}
<span class="price product-price">
{if isset($priceDisplay) && !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
</span>
{if $product.price_without_reduction > 0 && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0}
{hook h="displayProductPriceBlock" product=$product type="old_price"}
<span class="old-price product-price">
{displayWtPrice p=$product.price_without_reduction}
</span>
{hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"}
{if $product.specific_prices.reduction_type == 'percentage'}
<span class="price-percent-reduction">-{($product.specific_prices.reduction * 100)|floatval}%</span>
{/if}
{/if}
{hook h="displayProductPriceBlock" product=$product type="price"}
{hook h="displayProductPriceBlock" product=$product type="unit_price"}
{hook h="displayProductPriceBlock" product=$product type='after_price'}
{/if}
</div>
{/if}
<p class="product-desc" itemprop="description">
{$product.description_short|strip_tags|escape:'html':'UTF-8'|truncate:60:'...'}
</p>
{if isset($product.color_list)}
<div class="color-list-container">{$product.color_list nofilter}</div>
{/if}
<div class="product-flags">
{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
{if isset($product.online_only) && $product.online_only}
<span class="online_only">{l s='Online only' mod='ets_megamenu'}</span>
{/if}
{/if}
{if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
{elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
<span class="discount">{l s='Reduced price!' mod='ets_megamenu'}</span>
{/if}
</div>
{if (!$PS_CATALOG_MODE && isset($PS_STOCK_MANAGEMENT) && $PS_STOCK_MANAGEMENT && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
{if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}
<span class="availability">
{if ($product.allow_oosp || $product.quantity > 0)}
<span class="{if $product.quantity <= 0 && isset($product.allow_oosp) && !$product.allow_oosp} label-danger{elseif $product.quantity <= 0} label-warning{else} label-success{/if}">
{if $product.quantity <= 0}{if $product.allow_oosp}{if isset($product.available_later) && $product.available_later}{$product.available_later|escape:'html':'UTF-8'}{else}{l s='In Stock' mod='ets_megamenu'}{/if}{else}{l s='Out of stock' mod='ets_megamenu'}{/if}{else}{if isset($product.available_now) && $product.available_now}{$product.available_now|escape:'html':'UTF-8'}{else}{l s='In Stock' mod='ets_megamenu'}{/if}{/if}
</span>
{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}
<span class="label-warning">
{l s='Product available with different options' mod='ets_megamenu'}
</span>
{else}
<span class="label-danger">
{l s='Out of stock' mod='ets_megamenu'}
</span>
{/if}
</span>
{/if}
{/if}
</div>
</div><!-- .product-container> -->
</li>
{/foreach}
</ul>
{addJsDefL name=min_item}{l s='Please select at least one product' js=1 mod='ets_megamenu'}{/addJsDefL}
{addJsDefL name=max_item}{l s='You cannot add more than %d product(s) to the product comparison' sprintf=$comparator_max_item js=1 mod='ets_megamenu'}{/addJsDefL}
{addJsDef comparator_max_item=$comparator_max_item}
{addJsDef comparedProductsIds=$compared_products}
{/if}

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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;