first commit

This commit is contained in:
2024-12-17 13:43:22 +01:00
commit 8e6cd8b410
21292 changed files with 3514826 additions and 0 deletions

View File

@@ -0,0 +1,176 @@
/*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 .mm_block_type_html .ets_mm_block_content 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,278 @@
.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;
}
@media (min-width: 768px){
/*layout 1*/
.ets_mm_megamenu.layout_layout1{
background-color: l1_color1;
}
#header .layout_layout1 .mm_menus_li > a{color: l1_color2}
.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: l1_color3;}
.layout_layout1 .mm_menus_li > a:before{background-color: l1_color3;}
.layout_layout1 .mm_menus_li:hover > a,
#header .layout_layout1 .mm_menus_li:hover > a{
background-color: l1_color4;
}
.layout_layout1.ets_mm_megamenu .mm_columns_ul{
background-color: l1_color5;
}
#header .layout_layout1 .ets_mm_block_content a,
#header .layout_layout1 .ets_mm_block_content p{
color: l1_color6;
}
.layout_layout1 .mm_columns_ul h1,
.layout_layout1 .mm_columns_ul h2,
.layout_layout1 .mm_columns_ul h3,
.layout_layout1 .mm_columns_ul h4,
.layout_layout1 .mm_columns_ul h5,
.layout_layout1 .mm_columns_ul h6,
.layout_layout1 .mm_columns_ul .h1,
.layout_layout1 .mm_columns_ul .h2,
.layout_layout1 .mm_columns_ul .h3,
.layout_layout1 .mm_columns_ul .h4,
.layout_layout1 .mm_columns_ul .h5,
.layout_layout1 .mm_columns_ul .h6{
color: l1_color8;
}
.layout_layout1 li:hover > a,
.layout_layout1 li > a:hover,
#header .layout_layout1 .mm_block_type_html .ets_mm_block_content 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: l1_color7;}
/*end layout 1*/
/*layout 2*/
.ets_mm_megamenu.layout_layout2{
background-color: l2_color1;
}
#header .layout_layout2 .mm_menus_li > a{color: l2_color2}
.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{color: l2_color3;}
.layout_layout2 .mm_menus_li:hover > a,
#header .layout_layout2 .mm_menus_li:hover > a{
background-color: l2_color4;
}
.layout_layout2.ets_mm_megamenu .mm_columns_ul{
background-color: l2_color5;
}
#header .layout_layout2 .ets_mm_block_content a,
#header .layout_layout2 .ets_mm_block_content p{
color: l2_color6;
}
.layout_layout2 .mm_columns_ul h1,
.layout_layout2 .mm_columns_ul h2,
.layout_layout2 .mm_columns_ul h3,
.layout_layout2 .mm_columns_ul h4,
.layout_layout2 .mm_columns_ul h5,
.layout_layout2 .mm_columns_ul h6,
.layout_layout2 .mm_columns_ul .h1,
.layout_layout2 .mm_columns_ul .h2,
.layout_layout2 .mm_columns_ul .h3,
.layout_layout2 .mm_columns_ul .h4,
.layout_layout2 .mm_columns_ul .h5,
.layout_layout2 .mm_columns_ul .h6{
color: l2_color8;
}
.layout_layout2 li:hover > a,
.layout_layout2 li > a:hover,
#header .layout_layout2 li:hover > a,
#header .layout_layout2 .mm_columns_ul .mm_block_type_product .product-title > a:hover,
#header .layout_layout2 li > a:hover{color: l2_color7;}
/*layout 3*/
.ets_mm_megamenu.layout_layout3{
background-color: l3_color1;
}
#header .layout_layout3 .mm_menus_li > a{color: l3_color2}
.layout_layout3 .mm_menus_li:hover > a,
.layout_layout3 .mm_menus_li.active > a,
#header .layout_layout3 .mm_menus_li:hover > a,
#header .layout_layout3 .mm_menus_li.active > a{color: l3_color3;}
.layout_layout3 .mm_menus_li:hover > a,
#header .layout_layout3 .mm_menus_li:hover > a{
background-color: l3_color4;
}
.layout_layout3.ets_mm_megamenu .mm_columns_ul{
background-color: l3_color5;
border-color: l3_color5;
}
#header .layout_layout3 .ets_mm_block_content a,
#header .layout_layout3 .ets_mm_block_content p{
color: l3_color6;
}
.layout_layout3 .mm_columns_ul h1,
.layout_layout3 .mm_columns_ul h2,
.layout_layout3 .mm_columns_ul h3,
.layout_layout3 .mm_columns_ul h4,
.layout_layout3 .mm_columns_ul h5,
.layout_layout3 .mm_columns_ul h6,
.layout_layout3 .mm_columns_ul .h1,
.layout_layout3 .mm_columns_ul .h2,
.layout_layout3 .mm_columns_ul .h3,
.layout_layout3 .mm_columns_ul .h4,
.layout_layout3 .mm_columns_ul .h5,
.layout_layout3 .mm_columns_ul .h6{
color: l3_color8;
}
.layout_layout3 li:hover > a,
.layout_layout3 li > a:hover,
#header .layout_layout3 li:hover > a,
#header .layout_layout3 .mm_columns_ul .mm_block_type_product .product-title > a:hover,
#header .layout_layout3 li > a:hover,
.layout_layout3 .has-sub .ets_mm_categories li > a:hover,
#header .layout_layout3 .has-sub .ets_mm_categories li > a:hover{color: l3_color7;}
/*layout 4*/
.ets_mm_megamenu.layout_layout4{
background-color: l4_color1;
}
#header .layout_layout4 .mm_menus_li > a{color: l4_color2}
.layout_layout4 .mm_menus_li:hover > a,
.layout_layout4 .mm_menus_li.active > a,
#header .layout_layout4 .mm_menus_li:hover > a,
#header .layout_layout4 .mm_menus_li.active > a{color: l4_color3;}
.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: l4_color4;
}
.layout_layout4 .ets_mm_megamenu_content {
border-bottom-color: l4_color4;
}
.layout_layout4.ets_mm_megamenu .mm_columns_ul{
background-color: l4_color5;
}
#header .layout_layout4 .ets_mm_block_content a,
#header .layout_layout4 .ets_mm_block_content p{
color: l4_color6;
}
.layout_layout4 .mm_columns_ul h1,
.layout_layout4 .mm_columns_ul h2,
.layout_layout4 .mm_columns_ul h3,
.layout_layout4 .mm_columns_ul h4,
.layout_layout4 .mm_columns_ul h5,
.layout_layout4 .mm_columns_ul h6,
.layout_layout4 .mm_columns_ul .h1,
.layout_layout4 .mm_columns_ul .h2,
.layout_layout4 .mm_columns_ul .h3,
.layout_layout4 .mm_columns_ul .h4,
.layout_layout4 .mm_columns_ul .h5,
.layout_layout4 .mm_columns_ul .h6{
color: l4_color8;
}
.layout_layout4 li:hover > a,
.layout_layout4 li > a:hover,
#header .layout_layout4 li:hover > a,
#header .layout_layout4 .mm_columns_ul .mm_block_type_product .product-title > a:hover,
#header .layout_layout4 li > a:hover{color: l4_color7;}
/* end layout 4*/
/* Layout 5*/
.ets_mm_megamenu.layout_layout5{
background-color: l5_color1;
}
#header .layout_layout5 .mm_menus_li > a{color: l5_color2}
.layout_layout5 .mm_menus_li:hover > a,
.layout_layout5 .mm_menus_li.active > a,
#header .layout_layout5 .mm_menus_li:hover > a,
#header .layout_layout5 .mm_menus_li.active > a{color: l5_color3;}
.layout_layout5 .mm_menus_li > a:before{background-color: l5_color3;}
.layout_layout5 .mm_menus_li:hover > a,
#header .layout_layout5 .mm_menus_li:hover > a{
background-color: l5_color4;
}
.layout_layout5.ets_mm_megamenu .mm_columns_ul{
background-color: l5_color5;
}
#header .layout_layout5 .ets_mm_block_content a,
#header .layout_layout5 .ets_mm_block_content p{
color: l5_color6;
}
.layout_layout5 .mm_columns_ul h1,
.layout_layout5 .mm_columns_ul h2,
.layout_layout5 .mm_columns_ul h3,
.layout_layout5 .mm_columns_ul h4,
.layout_layout5 .mm_columns_ul h5,
.layout_layout5 .mm_columns_ul h6,
.layout_layout5 .mm_columns_ul .h1,
.layout_layout5 .mm_columns_ul .h2,
.layout_layout5 .mm_columns_ul .h3,
.layout_layout5 .mm_columns_ul .h4,
.layout_layout5 .mm_columns_ul .h5,
.layout_layout5 .mm_columns_ul .h6{
color: l5_color8;
}
.layout_layout5 li:hover > a,
.layout_layout5 li > a:hover,
#header .layout_layout5 li:hover > a,
#header .layout_layout5 .mm_columns_ul .mm_block_type_product .product-title > a:hover,
#header .layout_layout5 li > a:hover{color: l5_color7;}
/*end layout 5*/
}

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

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>4</title><g id="Layer_4" data-name="Layer 4"><circle cx="12.02" cy="12" r="10" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.5px"/><line x1="8.54" y1="12.08" x2="15.54" y2="12.08" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.5px"/><line x1="12.04" y1="15.58" x2="12.04" y2="8.58" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.5px"/></g></svg>

After

Width:  |  Height:  |  Size: 533 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>4</title><g id="Layer_4" data-name="Layer 4"><path d="M14,10v5a3,3,0,0,1-3,3H6a3,3,0,0,1-3-3V5A3,3,0,0,1,6,2h4.12A3.87,3.87,0,0,1,14,5.87" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/><path d="M13,6h4.12A3.87,3.87,0,0,1,21,9.87V19a3,3,0,0,1-3,3H13a3,3,0,0,1-3-3V9A3,3,0,0,1,13,6Z" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/></g></svg>

After

Width:  |  Height:  |  Size: 495 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>4</title><g id="Layer_4" data-name="Layer 4"><circle cx="6.5" cy="6.5" r="2.5" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/><circle cx="17.5" cy="17.5" r="2.5" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/><path d="M12.27,21.54A9.77,9.77,0,0,1,2.5,11.77" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/><path d="M12.27,2A9.77,9.77,0,0,1,22,11.77" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/></g></svg>

After

Width:  |  Height:  |  Size: 649 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>4</title><g id="Layer_4" data-name="Layer 4"><line x1="13.82" y1="11.36" x2="13.82" y2="17.64" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/><line x1="10.45" y1="14.5" x2="10.45" y2="17.64" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/><path d="M6,11.36v8.18A2.46,2.46,0,0,0,8.45,22h7.09A2.46,2.46,0,0,0,18,19.55V8" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.200000047683716px"/><path d="M14.71,8H6.29A2.3,2.3,0,0,1,4,5.71V5.44A2.44,2.44,0,0,1,6.44,3H17.56A2.44,2.44,0,0,1,20,5.44v.27A2.3,2.3,0,0,1,17.71,8" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/></g></svg>

After

Width:  |  Height:  |  Size: 810 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>4</title><g id="Layer_4" data-name="Layer 4"><path d="M22.08,10.56l-2.48-.34a6.68,6.68,0,0,0-.7-1.81l1.6-2q.43-.52.1-.92L19.12,4a.67.67,0,0,0-1,0l-2,1.52a6.65,6.65,0,0,0-1.78-.77l-.24-2.52q-.07-.66-.59-.73l-2.14,0c-.35,0-.56.26-.62.7l-.37,2.48A6,6,0,0,0,9.32,5a5.08,5.08,0,0,0-.75.38l-2-1.6q-.52-.43-.92-.1L4.14,5.16a.67.67,0,0,0,0,1l1.52,2a7.24,7.24,0,0,0-.8,1.81l-2.52.24q-.66.07-.73.59l0,2.14q0,.53.7.62l2.5.37a7.36,7.36,0,0,0,.73,1.81l-1.6,2q-.43.52-.1.92l1.48,1.54a.67.67,0,0,0,1,0l2-1.52A6.15,6.15,0,0,0,9,19a10.27,10.27,0,0,0,1,.39l.27,2.52c0,.44.24.68.59.73l2.14,0q.53,0,.62-.7l.34-2.5a8.06,8.06,0,0,0,1.81-.7l2,1.57c.35.29.65.32.92.1l1.54-1.48a.67.67,0,0,0,0-1l-1.52-2a7.11,7.11,0,0,0,.78-1.81L22,13.91c.44,0,.68-.24.72-.59l0-2.14Q22.74,10.65,22.08,10.56Zm-8.64,4.22a3,3,0,1,1,1.48-4A3,3,0,0,1,13.45,14.78Z" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/></g></svg>

After

Width:  |  Height:  |  Size: 985 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,910 @@
/*
* 2007-2018 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-2018 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');
}
});
$(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');
}
},
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');
}
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
$('.custom_color').hide();
$('.custom_color.'+$('#ETS_MM_LAYOUT').val()).show();
$(document).on('change','#ETS_MM_LAYOUT',function(){
$('.custom_color').hide();
$('.custom_color.'+$('#ETS_MM_LAYOUT').val()).show();
});
//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');
$(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');
});
if($('.mm_block_wrapper a').length > 0)
$('.mm_block_wrapper a').attr('target','_blank');
});
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,.mm_form .row_id_supplier').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();
else if($('.mm_form select[name="link_type"]').val()=='MNSP')
$('.mm_form .row_id_supplier').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, .mm_form .row_id_suppliers').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()=='MNSP')
$('.mm_form .row_id_suppliers').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,475 @@
/**
* 2007-2019 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-2019 ETS-Soft
* @license Valid for 1 website (or project) for each purchase of license
* International Registered Trademark & Property of ETS-Soft
*/
$(function() {
$(document).mouseup(function (e)
{
var container_block_search = $('.mm_extra_item.active');
if (!container_block_search.is(e.target)&& container_block_search.has(e.target).length === 0)
{
$('.mm_extra_item').removeClass('active');
}
});
if($('.mm_extra_item button[type="submit"]').length)
{
$(document).on('click','.mm_extra_item button[type="submit"]',function(){
if(!$(this).closest('.mm_extra_item').hasClass('mm_display_search_default') )
{
if ( !$(this).closest('.mm_extra_item').hasClass('active') ){
$(this).closest('.mm_extra_item').addClass('active');
return false;
} else {
if ($(this).prev('input').val() == 0){
$('.mm_extra_item').removeClass('active');
return false;
}
}
}
});
}
displayHeightTab();
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($('#header').length > 0)
$('#header').css({'marginBottom':headerFloatingHeight+'px'});
} else {
$('.ets_mm_megamenu.sticky_enabled').removeClass('scroll_heading');
if($('#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');
});
}
$(window).load(function(){
if ($('.ets_mn_submenu_full_height').length > 0 ){
var ver_sub_height = $('.ets_mn_submenu_full_height').height();
$('.ets_mn_submenu_full_height').find('.mm_columns_ul').css("min-height",ver_sub_height);
}
});
if ( $('.mm_columns_ul_tab_content').length > 0 && $('body#index').length >0 ){
$('.mm_columns_ul_tab_content').addClass('active').prev('.arrow').removeClass('closed').addClass('opened');
}
$(window).resize(function(){
$('.mm_menus_ul:not(.ets_mm_all_show_resize)').removeClass('ets_mn_active');
});
$(document).on('click','.mm_has_sub > .arrow',function(){
var wrapper = $(this).next('.mm_columns_ul');
if($(this).hasClass('closed'))
{
$('.mm_columns_ul').removeClass('active');
$('.mm_has_sub > .arrow').removeClass('opened');
$('.mm_has_sub > .arrow').addClass('closed');
var btnObj = $(this);
btnObj.removeClass('closed');
btnObj.addClass('opened');
wrapper.stop(true,true).addClass('active');
}
else
{
var btnObj = $(this);
btnObj.removeClass('opened');
btnObj.addClass('closed');
//btnObj.text('+');
wrapper.stop(true,true).removeClass('active');
}
});
$('.transition_slide:not(.changestatus) 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(0);
}
});
$('.ybc-menu-toggle, .ybc-menu-vertical-button').on('click',function(){
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(){
$(this).parent().prev().removeClass('opened');
$(this).parent().prev().addClass('closed');
$(this).parent().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');
}
$('.mm_tab_li_content').hover(function(){
if(!$(this).closest('.mm_tabs_li').hasClass('open'))
{
$(this).closest('.mm_columns_ul_tab').find('.mm_tabs_li').removeClass('open');
$(this).closest('.mm_tabs_li').addClass('open');
$(this).closest('.mm_columns_ul').removeClass('mm_tab_no_content');
if ( !$(this).next('.mm_columns_contents_ul').length ){
$(this).closest('.mm_columns_ul').addClass('mm_tab_no_content');
}
displayHeightTab();
}
});
if ($('.clicktext_show_submenu').length <= 0)
{
$(document).on('click touchstar', '.mm_tab_li_content', function (evt) {
var btnObj = $(this), wrapper = $(this).next();
if (!btnObj.find('.mm_tab_toggle_title a').is(evt.target))
{
if(btnObj.hasClass('closed'))
{
$('.mm_tab_li_content').removeClass('opened');
$('.mm_tab_li_content').addClass('closed');
$('.mm_columns_contents_ul').removeClass('active');
btnObj.removeClass('closed');
btnObj.addClass('opened');
wrapper.stop(true,true).addClass('active');
}
else
{
btnObj.removeClass('opened');
btnObj.addClass('closed');
wrapper.stop(true,true).removeClass('active');
}
}
});
}
var ETS_MM_ACTIVE_BG_GRAY = $('.ets_mm_megamenu').attr('data-bggray');
if (typeof ETS_MM_ACTIVE_BG_GRAY !== "undefined" && ETS_MM_ACTIVE_BG_GRAY ) {
$('.ets_mm_megamenu:not(.changestatus) .mm_menus_li.mm_has_sub').hover(function(){
if ( $(window).width() > 767 ){
$('body').addClass('hover_menu');
}
}, function(){
$('body').removeClass('hover_menu');
});
}
});
function autoChangeStatus()
{
var width_ul_menu = $('ul.mm_menus_ul').width();
var width_li_menu=0;
$('ul.mm_menus_ul li.mm_menus_li').each(function(){
width_li_menu += parseFloat($(this).width());
});
if(width_li_menu > width_ul_menu+5)
{
$('.ets_mm_megamenu').addClass('changestatus');
$('.menu_ver_alway_show_sub .mm_columns_ul_tab_content').removeClass('active');
$('#index .menu_ver_alway_show_sub .arrow').removeClass('opened').addClass('closed');
}
else
{
$('.ets_mm_megamenu').removeClass('changestatus');
if ( $(window).width() > 767 ){
$('#index .menu_ver_alway_show_sub .arrow').addClass('opened').removeClass('closed');
$('#index .menu_ver_alway_show_sub .mm_columns_ul_tab_content').addClass('active');
}
}
if ( $(window).width() < 768 ){
$('.menu_ver_alway_show_sub .mm_columns_ul_tab_content').removeClass('active');
$('.menu_ver_alway_show_sub .arrow').removeClass('opened').addClass('closed');
}
}
function itemClickMenu($this){
var btnObj = $($this).next('.arrow');
var wrapper = btnObj.next();
if ( ! btnObj.length ){
var btn_temp = $($this).closest('.mm_tab_li_content').first();
var wrapper = btn_temp.next();
if( btn_temp.hasClass('closed')){
$('.mm_tab_li_content').removeClass('opened');
$('.mm_tab_li_content').addClass('closed');
$('.mm_tab_li_content + .mm_columns_contents_ul').removeClass('active');
btn_temp.removeClass('closed');
btn_temp.addClass('opened');
wrapper.stop(true,true).addClass('active');
}else{
btn_temp.removeClass('opened');
btn_temp.addClass('closed');
wrapper.stop(true,true).removeClass('active');
}
}else{
if(btnObj.hasClass('closed'))
{
$('.mm_has_sub > .arrow').removeClass('opened');
$('.mm_has_sub > .arrow').addClass('closed');
$('.mm_columns_ul').removeClass('active');
btnObj.removeClass('closed');
btnObj.addClass('opened');
wrapper.stop(true,true).addClass('active');
}
else
{
btnObj.removeClass('opened');
btnObj.addClass('closed');
wrapper.stop(true,true).removeClass('active');
}
}
}
function clickTextShowMenu(){
if ( $('.clicktext_show_submenu').length > 0 ){
$('.clicktext_show_submenu li.has-sub').each(function() {
$(this).find('a').first().on('click', function(e){
if ($(window).width() <= 767 ){
e.preventDefault();
var btnObj = $(this).next('.arrow');
var wrapper = btnObj.next();
if(btnObj.hasClass('closed'))
{
btnObj.removeClass('closed');
btnObj.addClass('opened');
wrapper.stop(true,true).addClass('active');
}
else
{
btnObj.removeClass('opened');
btnObj.addClass('closed');
wrapper.stop(true,true).removeClass('active');
}
}
});
});
}
if ( $('.clicktext_show_submenu').length > 0 ){
$('.clicktext_show_submenu li.has-sub').each(function() {
$(this).find('a').first().on('click', function(e){
if ( $('.ets_mm_megamenu').hasClass('changestatus') && $(window).width() > 767 ){
e.preventDefault();
//itemClickMenu(this);
var btnObj = $(this).next('.arrow');
var wrapper = btnObj.next();
if(btnObj.hasClass('closed'))
{
btnObj.removeClass('closed');
btnObj.addClass('opened');
wrapper.stop(true,true).addClass('active');
}
else
{
btnObj.removeClass('opened');
btnObj.addClass('closed');
wrapper.stop(true,true).removeClass('active');
}
}
});
});
}
if ( $('.clicktext_show_submenu').length > 0 ){
$('.clicktext_show_submenu li.mm_tabs_has_content > div').each(function() {
$(this).find('a').first().on('click', function(e){
if ($(window).width() <= 767 ){
e.preventDefault();
itemClickMenu(this);
}
});
});
}
if ( $('.clicktext_show_submenu').length > 0 ){
$('.clicktext_show_submenu li.mm_tabs_has_content > div').each(function() {
$(this).find('a').first().on('click', function(e){
if ( $('.ets_mm_megamenu').hasClass('changestatus') && $(window).width() > 767 ){
e.preventDefault();
itemClickMenu(this);
}
});
});
}
if ( $('.clicktext_show_submenu').length > 0 ){
$('.clicktext_show_submenu li.mm_has_sub > a').each(function() {
$(this).on('click', function(e){
if ($(window).width() <= 767 ){
e.preventDefault();
itemClickMenu(this);
}
});
});
}
if ( $('.clicktext_show_submenu').length > 0 ){
$('.clicktext_show_submenu li.mm_has_sub > a').each(function() {
$(this).on('click', function(e){
if ( $('.ets_mm_megamenu').hasClass('changestatus') && $(window).width() > 767 ){
e.preventDefault();
itemClickMenu(this);
}
});
});
}
if ( $('.clicktext_show_submenu').length > 0 ){
$('.mm_tab_has_child > .mm_tab_toggle_title').on('click', function(e){
if ( $(this).find('a').length <= 0 ){
if ( $('.ets_mm_megamenu').hasClass('changestatus') || $(window).width() > 767 ){
var btnObj = $(this).parents('.mm_tab_li_content'), wrapper = $(this).parents('.mm_tab_li_content').next();
if(btnObj.hasClass('closed'))
{
$('.mm_tab_li_content').removeClass('opened');
$('.mm_tab_li_content').addClass('closed');
$('.mm_tab_li_content + .mm_columns_contents_ul').removeClass('active');
btnObj.removeClass('closed');
btnObj.addClass('opened');
wrapper.stop(true,true).addClass('active');
}
else
{
btnObj.removeClass('opened');
btnObj.addClass('closed');
wrapper.stop(true,true).removeClass('active');
}
}
}
});
}
}
$(document).on('click','.ets_mm_categories .has-sub .arrow',function(e){
e.stopPropagation();
var wrapper = $(this).next('.ets_mm_categories');
if($(this).hasClass('closed'))
{
var btnObj = $(this);
btnObj.removeClass('closed');
btnObj.addClass('opened');
wrapper.stop(true,true).addClass('active');
}
else
{
var btnObj = $(this);
btnObj.removeClass('opened');
btnObj.addClass('closed');
//btnObj.text('+');
wrapper.stop(true,true).removeClass('active');
}
});
function displayHeightTab()
{
if($('.mm_tabs_li.open .mm_columns_contents_ul').length)
{
$('.mm_tabs_li.open .mm_columns_contents_ul').each(function(){
$(this).closest('.mm_columns_ul_tab').css('height', $(this).height('px'));
});
}
}
$(document).ready(function(){
$('.ets_mm_megamenu').removeClass('bg_submenu');
$('.ets_mm_megamenu .mm_menus_ul > li.mm_has_sub').hover(function(){
if($('.ets_mm_megamenu').hasClass('bg_submenu')){
$(this).closest('.ets_mm_megamenu').stop().removeClass('bg_submenu');
}else{
$(this).closest('.ets_mm_megamenu').stop().addClass('bg_submenu');
}
});
});
$(document).ready(function(){
autoChangeStatus();
clickTextShowMenu();
$(window).resize(function(){
autoChangeStatus();
});
});

View File

@@ -0,0 +1,33 @@
{*
* 2007-2019 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-2019 ETS-Soft
* @license Valid for 1 website (or project) for each purchase of license
* International Registered Trademark & Property of ETS-Soft
*}
{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}
<span class="arrow closed"></span>
{$category.sub nofilter}
{/if}
</li>
{/foreach}
</ul>
{/if}

View File

@@ -0,0 +1,44 @@
{*
* 2007-2018 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-2018 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="menu-prods">
{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}">
<div class="thumbnail-container tip_inside">
{block name='product_thumbnail'}
<a href="{$product.url|escape:'html':'UTF-8'}" class="thumbnail product-thumbnail">
<img
src = "{$product.cover.bySize.small_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'}"
/>
<span class="tip">{$product.name|escape:'html':'UTF-8'}</span>
</a>
{/block}
</div>
</article>
{/foreach}
{/if}
</div>

View File

@@ -0,0 +1,73 @@
{*
* 2007-2018 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-2018 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-2018 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-2018 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;