On rajoute encore quelques modules

This commit is contained in:
2020-10-13 14:58:11 +02:00
parent c513c15cdc
commit 25cb197711
201 changed files with 22431 additions and 27 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,22 @@
{if $MENU != ''}
<!-- Menu -->
<div id="block_top_menu" class="sf-contener clearfix col-lg-12">
<div class="cat-title">{l s='Menu' mod='blocktopdropdownmenu'}</div>
<ul class="sf-menu clearfix menu-content">
{$MENU nofilter}
{if $MENU_SEARCH}
<li class="sf-search noBack" style="float:right">
<form id="searchbox" action="{$link->getPageLink('search')|escape:'html':'UTF-8'}" method="get">
<p>
<input type="hidden" name="controller" value="search" />
<input type="hidden" value="position" name="orderby"/>
<input type="hidden" value="desc" name="orderway"/>
<input type="text" class="mypresta_search_query" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|escape:'html':'UTF-8'}{/if}" />
</p>
</form>
</li>
{/if}
</ul>
</div>
<!--/ Menu -->
{/if}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>blocktopdropdownmenu</name>
<displayName><![CDATA[Top horizontal menu]]></displayName>
<version><![CDATA[1.0.5]]></version>
<description><![CDATA[Adds a new horizontal menu to the top of your e-commerce website. It is an modification of default module that creates dropdown menu]]></description>
<author><![CDATA[MyPresta.eu + PrestaShop]]></author>
<tab><![CDATA[front_office_features]]></tab>
<is_configurable>1</is_configurable>
<need_instance>1</need_instance>
<limited_countries></limited_countries>
</module>

View File

@@ -0,0 +1,24 @@
li.sf-search #searchbox p::after {
direction: ltr;
font-family: 'Material Icons';
font-size: 24px;
font-style: normal;
font-weight: normal;
letter-spacing: normal;
line-height: 1;
text-transform: none;
white-space: nowrap;
word-wrap: normal;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
content: "search";
display: block;
width: 23px;
height: 20px;
line-height: 20px;
z-index: 99999;
position: absolute;
top: 18px;
right: 20px;
text-align: center;
}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,294 @@
/*** ESSENTIAL STYLES ***/
.sf-contener {
clear: both;
float: left;
width: 100%;
}
.sf-menu, .sf-menu * {
margin: 0;
padding: 0;
list-style: none;
}
.sf-menu {
position: relative;
padding: 0;
width: 100%;
border-bottom: 3px solid #e9e9e9;
background: #f6f6f6;
}
@media (max-width: 767px) {
.sf-menu {
display: none;
}
}
.sf-menu ul {
position: absolute;
top: -999em;
background: #fff;
}
@media (max-width: 767px) {
.sf-menu ul {
top:0;
position: relative;
}
}
.sf-menu > li > a {
font: 600 18px/22px "Open Sans", sans-serif;
text-transform: uppercase;
color: #484848;
display: block;
padding: 17px 20px;
}
.sf-menu .sf-sub-indicator {
display:none;
}
.sf-menu ul li {
width: 100%;
}
.sf-menu li:hover {
visibility: inherit;
/* fixes IE7 'sticky bug' */
}
.sf-menu > li {
float: left;
position: relative;
border-right: 1px solid #eadbdb;
}
.sf-menu a {
display: block;
position: relative;
color:#000;
}
.sf-menu li:hover ul, .sf-menu li.sfHover ul {
left: 0;
top: 57px;
/* match top ul list item height */
z-index: 99;
width:auto;
}
ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul {
top: -999em;
}
ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul {
left: 300px;
/* match ul width */
top: 0;
}
ul.sf-menu li li:hover li ul, ul.sf-menu li li.sfHover li ul {
top: -999em;
}
ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul {
left: 300px;
/* match ul width */
top: 0;
}
/*** DEMO SKIN ***/
.sf-menu {
float: left;
margin-bottom: 1em;
}
.sf-menu a {
display:block;
padding: 5px 22px 5px 20px;
line-height:34px;
border: 0;
text-decoration:none;
}
.sf-menu a, .sf-menu a:visited {
color: rgba(0, 0, 0, 0.65);
white-space:nowrap;
text-shadow: 1px 1px 0px #fff;
}
.sf-menu li li {
background: rgba(246, 246, 246, 0.9);
}
.sf-menu li li li {
background: rgba(246, 246, 246, 0.9);
}
.sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active {
background: rgba(255, 255, 255, 0.98);
}
.sf-menu ul li:hover, .sf-menu ul li.sfHover, .sf-menu ul li a:focus, .sf-menu ul li a:hover, .sf-menu ul li a:active {
background: rgba(255, 255, 255, 0.98);
outline: 0;
}
/*** arrows **/
.sf-sub-indicator {
position: absolute;
display: block;
right: 10px;
top: 1.05em;
/* IE6 only */
width: 10px;
height: 10px;
text-indent: -999em;
overflow: hidden;
}
.sf-sub-indicator:after {
font-family: 'Material Icons';
content: '\e5cc';
}
a > .sf-sub-indicator {
/* give all except IE6 the correct values */
top: 11px;
background-position: 0 -100px;
/* use translucent arrow for modern browsers*/
}
/* apply hovers to modern browsers */
a:focus > .sf-sub-indicator, a:hover > .sf-sub-indicator, a:active > .sf-sub-indicator, li:hover > a > .sf-sub-indicator, li.sfHover > a > .sf-sub-indicator {
background-position: -10px -100px;
/* arrow hovers for modern browsers*/
}
/* point right for anchors in subs */
.sf-menu ul .sf-sub-indicator {
background-position: -10px 0;
}
.sf-menu ul a > .sf-sub-indicator {
background-position: 0 0;
}
/* apply hovers to modern browsers */
.sf-menu ul a:focus > .sf-sub-indicator, .sf-menu ul a:hover > .sf-sub-indicator, .sf-menu ul a:active > .sf-sub-indicator, .sf-menu ul li:hover > a > .sf-sub-indicator, .sf-menu ul li.sfHover > a > .sf-sub-indicator {
background-position: -10px 0;
/* arrow hovers for modern browsers*/
}
/*** shadows for all but IE6 ***/
.sf-shadow ul {
/* background: url('../img/shadow.png') no-repeat bottom right;
*/
/* padding: 0 8px 9px 0;
*/
-moz-border-bottom-left-radius: 17px;
-moz-border-top-right-radius: 17px;
-webkit-border-top-right-radius: 17px;
-webkit-border-bottom-left-radius: 17px;
}
.sf-shadow ul.sf-shadow-off {
background: transparent;
}
li.sf-search {
background: inherit;
float: right;
line-height: 25px;
}
li.sf-search input {
border-radius: 5px;
padding: 8px 0;
padding-left: 10px;
font-size:16px;
margin: 6px 6px 0 0;
background: #ffffff;
border:1px solid #eadbdb;
}
/* hack IE7 */
.sf-menu a, .sf-menu a:visited {
height:34px !IE;
}
.sf-menu li li {
width:300px;
background:#726f72 !IE;
}
.sf-menu .category-thumbnail img {
max-width:100%;
height:auto;
}
@media (max-width: 767px){
.sf-menu .sf-search {
display: none !important;
}
.sf-menu > li span {
position: absolute;
right: 6px;
top: 20px;
width: 30px;
height: 30px;
z-index: 2;
}
.sf-menu > li span:after {
font-family: "Material Icons";
content: "\e145";
font-size: 26px;
}
.sf-menu li, .sf-menu li ul {
width:100%!important;
}
.sf-menu li:hover ul, .sf-menu li.sfHover ul {
left: 0;
top: 0px;
}
ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul {
left:0;
}
.menu-mobile {
display:none;
}
ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul {
top: 0;
}
ul.sf-menu li ul li ul li {
padding-left:15px;
}
ul.sf-menu li ul li ul li:before {
width:1px;
height:44px;
display:inline-block;
float:left;
position:relative;
margin-left:10px;
background:#ece7e7;
content:' '
}
.sf-menu > li span.active:after {
content: "\e15b";
}
}
.cat-title {
display: none;
}
@media (max-width: 767px) {
.cat-title {
display: block;
font: 600 18px/22px "Open Sans", sans-serif;
text-transform: uppercase;
color: #484848;
display: block;
padding: 17px 20px;
border-bottom: 3px solid #e9e9e9;
background: #f6f6f6;
position: relative;
}
.cat-title:hover {
background: #333;
border-bottom-color: #666666;
color: #fff;
}
.cat-title:after {
display: block;
font-family: "Material Icons";
content: "\e5d2";
position: absolute;
right: 15px;
top: 18px;
font-size: 26px;
}
.cat-title.active:after {
content: "\e14c";
}
}
.submenu-container, .submenu-container ul {
box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.2);
}
.sf-menu li:last-child {
border:none!important;
}
#block_top_menu {
padding:0px;
}
.sf-menu li {
position:relative!important;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,131 @@
/*
* 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
*/
var responsiveflagMenu = false;
var categoryMenu = $('ul.sf-menu');
var mCategoryGrover = $('.sf-contener .cat-title');
$(document).ready(function(){
categoryMenu = $('ul.sf-menu');
mCategoryGrover = $('.sf-contener .cat-title');
responsiveMenu();
$(window).resize(responsiveMenu);
});
// check resolution
function responsiveMenu()
{
if ($(window).width() <= 767 && responsiveflagMenu == false) {
menuChange('enable');
responsiveflagMenu = true;
} else if ($(window).width() >= 768) {
menuChange('disable');
responsiveflagMenu = false;
}
}
// init Super Fish Menu for 767px+ resolution
function desktopInit()
{
mCategoryGrover.off();
mCategoryGrover.removeClass('active');
$('.sf-menu > li > ul').removeClass('menu-mobile').parent().find('.menu-mobile-grover').remove();
$('.sf-menu').removeAttr('style');
categoryMenu.superfish('init');
//add class for width define
$('.sf-menu > li > ul').addClass('submenu-container clearfix');
// loop through each sublist under each top list item
$('.sf-menu > li > ul').each(function(){
i = 0;
//add classes for clearing
$(this).each(function(){
if ($(this).attr('class') != "category-thumbnail"){
i++;
if(i % 2 == 1)
$(this).addClass('first-in-line-xs');
else if (i % 5 == 1)
$(this).addClass('first-in-line-lg');
}
});
});
}
function mobileInit()
{
categoryMenu.superfish('destroy');
$('.sf-menu').removeAttr('style');
mCategoryGrover.on('click', function(e){
$(this).toggleClass('active').parent().find('ul.menu-content').stop().slideToggle('medium');
return false;
});
$('.sf-menu > li > ul').addClass('menu-mobile clearfix').parent().prepend('<span class="menu-mobile-grover"></span>');
$(".sf-menu .menu-mobile-grover").on('click', function(e){
var catSubUl = $(this).next().next('.menu-mobile');
if (catSubUl.is(':hidden'))
{
catSubUl.slideDown();
$(this).addClass('active');
}
else
{
catSubUl.slideUp();
$(this).removeClass('active');
}
return false;
});
$('#block_top_menu > ul:first > li > a').on('click', function(e){
var parentOffset = $(this).prev().offset();
var relX = parentOffset.left - e.pageX;
if ($(this).parent('li').find('ul').length && relX >= 0 && relX <= 20)
{
e.preventDefault();
var mobCatSubUl = $(this).next('.menu-mobile');
var mobMenuGrover = $(this).prev();
if (mobCatSubUl.is(':hidden'))
{
mobCatSubUl.slideDown();
mobMenuGrover.addClass('active');
}
else
{
mobCatSubUl.slideUp();
mobMenuGrover.removeClass('active');
}
}
});
}
// change the menu display at different resolutions
function menuChange(status)
{
status == 'enable' ? mobileInit(): desktopInit();
}

View File

@@ -0,0 +1,114 @@
/**
* hoverIntent is similar to jQuery's built-in "hover" method except that
* instead of firing the handlerIn function immediately, hoverIntent checks
* to see if the user's mouse has slowed down (beneath the sensitivity
* threshold) before firing the event. The handlerOut function is only
* called after a matching handlerIn.
*
* hoverIntent r7 // 2013.03.11 // jQuery 1.9.1+
* http://cherne.net/brian/resources/jquery.hoverIntent.html
*
* You may use hoverIntent under the terms of the MIT license. Basically that
* means you are free to use hoverIntent as long as this header is left intact.
* Copyright 2007, 2013 Brian Cherne
*
* // basic usage ... just like .hover()
* .hoverIntent( handlerIn, handlerOut )
* .hoverIntent( handlerInOut )
*
* // basic usage ... with event delegation!
* .hoverIntent( handlerIn, handlerOut, selector )
* .hoverIntent( handlerInOut, selector )
*
* // using a basic configuration object
* .hoverIntent( config )
*
* @param handlerIn function OR configuration object
* @param handlerOut function OR selector for delegation OR undefined
* @param selector selector OR undefined
* @author Brian Cherne <brian(at)cherne(dot)net>
**/
(function($) {
$.fn.hoverIntent = function(handlerIn,handlerOut,selector) {
// default configuration values
var cfg = {
interval: 100,
sensitivity: 7,
timeout: 0
};
if ( typeof handlerIn === "object" ) {
cfg = $.extend(cfg, handlerIn );
} else if ($.isFunction(handlerOut)) {
cfg = $.extend(cfg, { over: handlerIn, out: handlerOut, selector: selector } );
} else {
cfg = $.extend(cfg, { over: handlerIn, out: handlerIn, selector: handlerOut } );
}
// instantiate variables
// cX, cY = current X and Y position of mouse, updated by mousemove event
// pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
var cX, cY, pX, pY;
// A private function for getting mouse position
var track = function(ev) {
cX = ev.pageX;
cY = ev.pageY;
};
// A private function for comparing current and previous mouse position
var compare = function(ev,ob) {
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
// compare mouse positions to see if they've crossed the threshold
if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
$(ob).off("mousemove.hoverIntent",track);
// set hoverIntent state to true (so mouseOut can be called)
ob.hoverIntent_s = 1;
return cfg.over.apply(ob,[ev]);
} else {
// set previous coordinates for next time
pX = cX; pY = cY;
// use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
}
};
// A private function for delaying the mouseOut function
var delay = function(ev,ob) {
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
ob.hoverIntent_s = 0;
return cfg.out.apply(ob,[ev]);
};
// A private function for handling mouse 'hovering'
var handleHover = function(e) {
// copy objects to be passed into t (required for event object to be passed in IE)
var ev = jQuery.extend({},e);
var ob = this;
// cancel hoverIntent timer if it exists
if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }
// if e.type == "mouseenter"
if (e.type == "mouseenter") {
// set "previous" X and Y position based on initial entry point
pX = ev.pageX; pY = ev.pageY;
// update "current" X and Y position based on mousemove
$(ob).on("mousemove.hoverIntent",track);
// start polling interval (self-calling timeout) to compare mouse coordinates over time
if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}
// else e.type == "mouseleave"
} else {
// unbind expensive mousemove event
$(ob).off("mousemove.hoverIntent",track);
// if hoverIntent state is true, then call the mouseOut function after the specified delay
if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
}
};
// listen for mouseenter and mouseleave
return this.on({'mouseenter.hoverIntent':handleHover,'mouseleave.hoverIntent':handleHover}, cfg.selector);
};
})(jQuery);

View File

@@ -0,0 +1,35 @@
<?php
/*
* 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
*/
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,257 @@
/*
* jQuery Superfish Menu Plugin - v1.7.4
* Copyright (c) 2013 Joel Birch
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
(function ($) {
"use strict";
var methods = (function () {
// private properties and methods go here
var c = {
bcClass: 'sf-breadcrumb',
menuClass: 'sf-js-enabled',
anchorClass: 'sf-with-ul',
menuArrowClass: 'sf-arrows'
},
ios = (function () {
var ios = /iPhone|iPad|iPod/i.test(navigator.userAgent);
if (ios) {
// iOS clicks only bubble as far as body children
$(window).load(function () {
$('body').children().on('click', $.noop);
});
}
return ios;
})(),
wp7 = (function () {
var style = document.documentElement.style;
return ('behavior' in style && 'fill' in style && /iemobile/i.test(navigator.userAgent));
})(),
toggleMenuClasses = function ($menu, o) {
var classes = c.menuClass;
if (o.cssArrows) {
classes += ' ' + c.menuArrowClass;
}
$menu.toggleClass(classes);
},
setPathToCurrent = function ($menu, o) {
return $menu.find('li.' + o.pathClass).slice(0, o.pathLevels)
.addClass(o.hoverClass + ' ' + c.bcClass)
.filter(function () {
return ($(this).children(o.popUpSelector).hide().show().length);
}).removeClass(o.pathClass);
},
toggleAnchorClass = function ($li) {
$li.children('a').toggleClass(c.anchorClass);
},
toggleTouchAction = function ($menu) {
var touchAction = $menu.css('ms-touch-action');
touchAction = (touchAction === 'pan-y') ? 'auto' : 'pan-y';
$menu.css('ms-touch-action', touchAction);
},
applyHandlers = function ($menu, o) {
var targets = 'li:has(' + o.popUpSelector + ')';
if ($.fn.hoverIntent && !o.disableHI) {
$menu.hoverIntent(over, out, targets);
}
else {
$menu
.on('mouseenter.superfish', targets, over)
.on('mouseleave.superfish', targets, out);
}
var touchevent = 'MSPointerDown.superfish';
if (!ios) {
touchevent += ' touchend.superfish';
}
if (wp7) {
touchevent += ' mousedown.superfish';
}
$menu
.on('focusin.superfish', 'li', over)
.on('focusout.superfish', 'li', out)
.on(touchevent, 'a', o, touchHandler);
},
touchHandler = function (e) {
var $this = $(this),
$ul = $this.siblings(e.data.popUpSelector);
if ($ul.length > 0 && $ul.is(':hidden')) {
$this.one('click.superfish', false);
if (e.type === 'MSPointerDown') {
$this.trigger('focus');
} else {
$.proxy(over, $this.parent('li'))();
}
}
},
over = function () {
var $this = $(this),
o = getOptions($this);
clearTimeout(o.sfTimer);
$this.siblings().superfish('hide').end().superfish('show');
},
out = function () {
var $this = $(this),
o = getOptions($this);
if (ios) {
$.proxy(close, $this, o)();
}
else {
clearTimeout(o.sfTimer);
o.sfTimer = setTimeout($.proxy(close, $this, o), o.delay);
}
},
close = function (o) {
o.retainPath = ($.inArray(this[0], o.$path) > -1);
this.superfish('hide');
if (!this.parents('.' + o.hoverClass).length) {
o.onIdle.call(getMenu(this));
if (o.$path.length) {
$.proxy(over, o.$path)();
}
}
},
getMenu = function ($el) {
return $el.closest('.' + c.menuClass);
},
getOptions = function ($el) {
return getMenu($el).data('sf-options');
};
return {
// public methods
hide: function (instant) {
if (this.length) {
var $this = this,
o = getOptions($this);
if (!o) {
return this;
}
var not = (o.retainPath === true) ? o.$path : '',
$ul = $this.find('li.' + o.hoverClass).add(this).not(not).removeClass(o.hoverClass).children(o.popUpSelector),
speed = o.speedOut;
if (instant) {
$ul.show();
speed = 0;
}
o.retainPath = false;
o.onBeforeHide.call($ul);
$ul.stop(true, true).animate(o.animationOut, speed, function () {
var $this = $(this);
o.onHide.call($this);
});
}
return this;
},
show: function () {
var o = getOptions(this);
if (!o) {
return this;
}
var $this = this.addClass(o.hoverClass),
$ul = $this.children(o.popUpSelector);
o.onBeforeShow.call($ul);
$ul.stop(true, true).animate(o.animation, o.speed, function () {
o.onShow.call($ul);
});
return this;
},
destroy: function () {
return this.each(function () {
var $this = $(this),
o = $this.data('sf-options'),
$hasPopUp;
if (!o) {
return false;
}
$hasPopUp = $this.find(o.popUpSelector).parent('li');
clearTimeout(o.sfTimer);
toggleMenuClasses($this, o);
toggleAnchorClass($hasPopUp);
toggleTouchAction($this);
// remove event handlers
$this.off('.superfish').off('.hoverIntent');
// clear animation's inline display style
$hasPopUp.children(o.popUpSelector).attr('style', function (i, style) {
return style.replace(/display[^;]+;?/g, '');
});
// reset 'current' path classes
o.$path.removeClass(o.hoverClass + ' ' + c.bcClass).addClass(o.pathClass);
$this.find('.' + o.hoverClass).removeClass(o.hoverClass);
o.onDestroy.call($this);
$this.removeData('sf-options');
});
},
init: function (op) {
return this.each(function () {
var $this = $(this);
if ($this.data('sf-options')) {
return false;
}
var o = $.extend({}, $.fn.superfish.defaults, op),
$hasPopUp = $this.find(o.popUpSelector).parent('li');
o.$path = setPathToCurrent($this, o);
$this.data('sf-options', o);
toggleMenuClasses($this, o);
toggleAnchorClass($hasPopUp);
toggleTouchAction($this);
applyHandlers($this, o);
$hasPopUp.not('.' + c.bcClass).superfish('hide', true);
o.onInit.call(this);
});
}
};
})();
$.fn.superfish = function (method, args) {
if (methods[method]) {
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
}
else if (typeof method === 'object' || ! method) {
return methods.init.apply(this, arguments);
}
else {
return $.error('Method ' + method + ' does not exist on jQuery.fn.superfish');
}
};
$.fn.superfish.defaults = {
popUpSelector: 'ul,.sf-mega', // within menu context
hoverClass: 'sfHover',
pathClass: 'overrideThisToUse',
pathLevels: 1,
delay: 800,
animation: {opacity: 'show'},
animationOut: {opacity: 'hide'},
speed: 'normal',
speedOut: 'fast',
cssArrows: true,
disableHI: false,
onInit: $.noop,
onBeforeShow: $.noop,
onShow: $.noop,
onBeforeHide: $.noop,
onHide: $.noop,
onIdle: $.noop,
onDestroy: $.noop
};
// soon to be deprecated
$.fn.extend({
hideSuperfishUl: methods.hide,
showSuperfishUl: methods.show
});
})(jQuery);

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

@@ -0,0 +1,146 @@
<?php
/*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
class MenuTopDropdownLinks
{
public static function gets($id_lang, $id_linksmenutop = null, $id_shop)
{
$sql = 'SELECT l.id_linksmenutop, l.new_window, s.name, ll.link, ll.label
FROM '._DB_PREFIX_.'linksmenutop l
LEFT JOIN '._DB_PREFIX_.'linksmenutop_lang ll ON (l.id_linksmenutop = ll.id_linksmenutop AND ll.id_lang = '.(int)$id_lang.' AND ll.id_shop='.(int)$id_shop.')
LEFT JOIN '._DB_PREFIX_.'shop s ON l.id_shop = s.id_shop
WHERE 1 '.((!is_null($id_linksmenutop)) ? ' AND l.id_linksmenutop = "'.(int)$id_linksmenutop.'"' : '').'
AND l.id_shop IN (0, '.(int)$id_shop.')';
return Db::getInstance()->executeS($sql);
}
public static function get($id_linksmenutop, $id_lang, $id_shop)
{
return self::gets($id_lang, $id_linksmenutop, $id_shop);
}
public static function getLinkLang($id_linksmenutop, $id_shop)
{
$ret = Db::getInstance()->executeS('
SELECT l.id_linksmenutop, l.new_window, ll.link, ll.label, ll.id_lang
FROM '._DB_PREFIX_.'linksmenutop l
LEFT JOIN '._DB_PREFIX_.'linksmenutop_lang ll ON (l.id_linksmenutop = ll.id_linksmenutop AND ll.id_shop='.(int)$id_shop.')
WHERE 1
'.((!is_null($id_linksmenutop)) ? ' AND l.id_linksmenutop = "'.(int)$id_linksmenutop.'"' : '').'
AND l.id_shop IN (0, '.(int)$id_shop.')
');
$link = array();
$label = array();
$new_window = false;
foreach ($ret as $line) {
$link[$line['id_lang']] = Tools::safeOutput($line['link']);
$label[$line['id_lang']] = Tools::safeOutput($line['label']);
$new_window = (bool)$line['new_window'];
}
return array('link' => $link, 'label' => $label, 'new_window' => $new_window);
}
public static function add($link, $label, $newWindow = 0, $id_shop)
{
if (!is_array($label)) {
return false;
}
if (!is_array($link)) {
return false;
}
Db::getInstance()->insert(
'linksmenutop',
array(
'new_window'=>(int)$newWindow,
'id_shop' => (int)$id_shop
)
);
$id_linksmenutop = Db::getInstance()->Insert_ID();
$result = true;
foreach ($label as $id_lang=>$label) {
$result &= Db::getInstance()->insert(
'linksmenutop_lang',
array(
'id_linksmenutop'=>(int)$id_linksmenutop,
'id_lang'=>(int)$id_lang,
'id_shop'=>(int)$id_shop,
'label'=>pSQL($label),
'link'=>pSQL($link[$id_lang])
)
);
}
return $result;
}
public static function update($link, $labels, $newWindow = 0, $id_shop, $id_link)
{
if (!is_array($labels)) {
return false;
}
if (!is_array($link)) {
return false;
}
Db::getInstance()->update(
'linksmenutop',
array(
'new_window'=>(int)$newWindow,
'id_shop' => (int)$id_shop
),
'id_linksmenutop = '.(int)$id_link
);
foreach ($labels as $id_lang => $label) {
Db::getInstance()->update(
'linksmenutop_lang',
array(
'id_shop'=>(int)$id_shop,
'label'=>pSQL($label),
'link'=>pSQL($link[$id_lang])
),
'id_linksmenutop = '.(int)$id_link.' AND id_lang = '.(int)$id_lang
);
}
}
public static function remove($id_linksmenutop, $id_shop)
{
$result = true;
$result &= Db::getInstance()->delete('linksmenutop', 'id_linksmenutop = '.(int)$id_linksmenutop.' AND id_shop = '.(int)$id_shop);
$result &= Db::getInstance()->delete('linksmenutop_lang', 'id_linksmenutop = '.(int)$id_linksmenutop);
return $result;
}
}

View File

@@ -0,0 +1,54 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e5b7525b4214a759876af4448bd6b87d'] = 'Top horizontal menu';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_f7979d86fe0b2cd11f44747ed4ff1100'] = 'Adds a new horizontal menu to the top of your e-commerce website.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_efc226b17e0532afff43be870bff0de7'] = 'The settings have been updated.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_d9a776c185f73d018b2915f4d5e7cc05'] = 'Unable to update settings for the following shop(s): %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_f32880ae5183a02c0a743bfd37a42cbc'] = 'Please complete the \"Link\" field.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_cf8d684bd5f89d30da67c95363a48ab9'] = 'Please add a label.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e8d6809226ab177013e0a26bd2d8b60d'] = 'Please add a label for your default language.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_3da9d5745155a430aac6d7de3b6de0c8'] = 'The link has been added.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_022bb0995e3256abeeac1788a5e2c5b3'] = 'Unable to add link for the following shop(s): %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e24e88b590807c2816be15abd7c7dbbc'] = 'The link has been removed.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e418ee8626f7941239c5b7a0880691ae'] = 'Unable to remove link for the following shop(s): %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_beb4f951c292ec9218473ffe5f59849d'] = 'The link has been edited.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b1a23c1a76918c10acc27bfa60798c42'] = 'You cannot manage top menu items from a \"All Shops\" or a \"Group Shop\" context, select directly the shop you want to edit';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_298b615220606d42b6ac60269df0d321'] = 'The modifications will be applied to shop: %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_aef3662e6419ddaaa0a31df70e3b6557'] = 'The modifications will be applied to this group: %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_dd25f68471362f6f5f183d6158d67854'] = 'The modifications will be applied to all shops';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_bf24faeb13210b5a703f3ccef792b000'] = 'All manufacturers';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ecf253735ac0cba84a9d2eeff1f1b87c'] = 'All suppliers';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_944d19a34e5fa333a6a0de27e8c971da'] = 'Menu Top Link';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_eacd852cc1f621763dccbda3f3c15081'] = 'Search bar';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Enabled';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b9f5c797ebbf55adccdd8539a65a0241'] = 'Disabled';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c9cc8cce247e49bae79f15173ce97354'] = 'Save';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_0a112e5da975d8eaf28df9219c397764'] = 'All active products combinations quantities will be changed';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_1a6191a2dc928ff8fb8c02c050975ea7'] = 'Update link';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_58e9b25bb2e2699986a3abe2c92fc82e'] = 'Add a new link';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b021df6aac4654c454f46c77646e745f'] = 'Label';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_97e7c9a7d06eac006a28bf05467fcc8b'] = 'Link';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e5dc8e5afea0a065948622039358de37'] = 'New window';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ec211f7c20af43e742bf2570c3cb84f9'] = 'Add';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_06933067aafd48425d67bcb01bba5cb6'] = 'Update';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c7da501f54544eba6787960200d9efdb'] = 'CMS';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ec136b444eede3bc85639fac0dd06229'] = 'Supplier';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c0bd7654d5b278e65f21cf4e9153fdb4'] = 'Manufacturer';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_af1b98adf7f686b84cd0b443e022b7a0'] = 'Categories';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_12a521af593422cd508f7707662c9eb2'] = 'Shops';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_068f80c7519d0528fb08e82137a72131'] = 'Products';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_778118c7dd993db08f704e15efa4a7fa'] = 'Choose product ID';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_56e8bf6c54f1638e7bce5a2fcd5b20fe'] = 'Menu Top Links';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_449f6d82cde894eafd3c85b6fa918f89'] = 'Link ID';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e93c33bd1341ab74195430daeb63db13'] = 'Shop name';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_387a8014f530f080bf2f3be723f8c164'] = 'Link list';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_17a1352d3f69a733fd472fce0238a07d'] = 'Indicate the ID number for the product';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_6bb999afde6fca60d70edce79d20b370'] = 'Product ID #';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_3ee3549ff0c93372a730749f784e9438'] = 'Please select just one item';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_e1b11c03820641dd1d1441bf68898d08'] = 'Change position';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_3713a99a6284e39061bd48069807aa52'] = 'Selected items';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_8fb31b552d63ffef9df733646a195bc0'] = 'Available items';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_1063e38cb53d94d386f21227fcd84717'] = 'Remove';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_ec211f7c20af43e742bf2570c3cb84f9'] = 'Add';

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,54 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e5b7525b4214a759876af4448bd6b87d'] = 'Top Menù Orizzontale';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_f7979d86fe0b2cd11f44747ed4ff1100'] = 'Aggiunge un nuovo menù orizzontale in cima al tuo negozio.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_efc226b17e0532afff43be870bff0de7'] = 'Le impostazioni sono state aggiornate.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_d9a776c185f73d018b2915f4d5e7cc05'] = 'Impossibile aggiornare le impostazioni dei seguenti negozi: %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_f32880ae5183a02c0a743bfd37a42cbc'] = 'Riempire il campo “link”.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_cf8d684bd5f89d30da67c95363a48ab9'] = 'Aggiungi un\'etichetta.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e8d6809226ab177013e0a26bd2d8b60d'] = 'Aggiungi un\'etichetta per la lingua di default.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_3da9d5745155a430aac6d7de3b6de0c8'] = 'Il link è stato aggiunto con successo';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_022bb0995e3256abeeac1788a5e2c5b3'] = 'Impossibile aggiungere il link ai seguenti negozi: %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e24e88b590807c2816be15abd7c7dbbc'] = 'Il link è stato rimosso.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e418ee8626f7941239c5b7a0880691ae'] = 'Impossibile rimuovere il link ai seguenti negozi: %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_beb4f951c292ec9218473ffe5f59849d'] = 'Il link è stato modificato.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b1a23c1a76918c10acc27bfa60798c42'] = 'Non puoi amministrare gli oggetti del menù superiore da un contesto \"Tutti i negozi\" o \"Gruppo Negozi\". Seleziona direttamente il negozio che vuoi modificare.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_298b615220606d42b6ac60269df0d321'] = 'Le modifiche verranno applicate al negozio: %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_aef3662e6419ddaaa0a31df70e3b6557'] = 'Le modifiche verranno applicate a questo gruppo: %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_dd25f68471362f6f5f183d6158d67854'] = 'Le modifiche verranno applicate a tutti i negozi';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_bf24faeb13210b5a703f3ccef792b000'] = 'Tutti i produttori';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ecf253735ac0cba84a9d2eeff1f1b87c'] = 'Tutti i fornitori';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_944d19a34e5fa333a6a0de27e8c971da'] = 'Link del menu';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_eacd852cc1f621763dccbda3f3c15081'] = 'Barra di ricerca';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Attivato';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b9f5c797ebbf55adccdd8539a65a0241'] = 'Disattivato';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c9cc8cce247e49bae79f15173ce97354'] = 'Salva';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_0a112e5da975d8eaf28df9219c397764'] = 'Tutti prodotti, le combinazione e le quantità attive verranno cambiate';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_1a6191a2dc928ff8fb8c02c050975ea7'] = 'Aggiornamento Link';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_58e9b25bb2e2699986a3abe2c92fc82e'] = 'Aggiungi un nuovo link';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b021df6aac4654c454f46c77646e745f'] = 'Etichetta';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_97e7c9a7d06eac006a28bf05467fcc8b'] = 'Link';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e5dc8e5afea0a065948622039358de37'] = 'Nuova finestra';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ec211f7c20af43e742bf2570c3cb84f9'] = 'Aggiungi';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_06933067aafd48425d67bcb01bba5cb6'] = 'Aggiorna';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c7da501f54544eba6787960200d9efdb'] = 'CMS';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ec136b444eede3bc85639fac0dd06229'] = 'Fornitore';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c0bd7654d5b278e65f21cf4e9153fdb4'] = 'Produttore';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_af1b98adf7f686b84cd0b443e022b7a0'] = 'Categorie';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_12a521af593422cd508f7707662c9eb2'] = 'Negozi';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_068f80c7519d0528fb08e82137a72131'] = 'Prodotti';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_778118c7dd993db08f704e15efa4a7fa'] = 'Scegli un ID prodotto';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_56e8bf6c54f1638e7bce5a2fcd5b20fe'] = 'Link Top Menù';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_449f6d82cde894eafd3c85b6fa918f89'] = 'ID del Link';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e93c33bd1341ab74195430daeb63db13'] = 'Nome del negozio';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_387a8014f530f080bf2f3be723f8c164'] = 'Lista link';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_17a1352d3f69a733fd472fce0238a07d'] = 'Indica il numero ID del prodotto';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_6bb999afde6fca60d70edce79d20b370'] = 'ID prodotto:';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_3ee3549ff0c93372a730749f784e9438'] = 'Scegliere solo un articolo alla volta';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_e1b11c03820641dd1d1441bf68898d08'] = 'Cambia posizione';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_3713a99a6284e39061bd48069807aa52'] = 'Elementi selezionati';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_8fb31b552d63ffef9df733646a195bc0'] = 'Elementi disponibili';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_1063e38cb53d94d386f21227fcd84717'] = 'Rimuovi';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_ec211f7c20af43e742bf2570c3cb84f9'] = 'Aggiungi';

View File

@@ -0,0 +1,53 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e5b7525b4214a759876af4448bd6b87d'] = 'Górne menu poziome';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c9cc8cce247e49bae79f15173ce97354'] = 'Zapisz';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_efc226b17e0532afff43be870bff0de7'] = 'Ustawienia zostały zaktualizowane.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_d9a776c185f73d018b2915f4d5e7cc05'] = 'Nie można zaktualizować ustawienia dla następujących sklepów: %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_f32880ae5183a02c0a743bfd37a42cbc'] = 'Wypełnij proszę pole \"Link\".';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_cf8d684bd5f89d30da67c95363a48ab9'] = 'Proszę dodać etykietę.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e8d6809226ab177013e0a26bd2d8b60d'] = 'Podaj etykietę dla domyślnego języka';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_3da9d5745155a430aac6d7de3b6de0c8'] = 'Link został dodany.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_022bb0995e3256abeeac1788a5e2c5b3'] = 'Nie można dodać linku do następujących sklepów: %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e24e88b590807c2816be15abd7c7dbbc'] = 'Link został usunięty.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e418ee8626f7941239c5b7a0880691ae'] = 'Nie można usunąć łącza do następujących sklepów: %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_beb4f951c292ec9218473ffe5f59849d'] = 'Link został edytowany.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b1a23c1a76918c10acc27bfa60798c42'] = 'Nie możesz zarządzać elementami górnego menu w kontekście wszystkich sklepów lub grupy sklepów, wybierz bezpośrednio konkretny sklep do edycji.';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_298b615220606d42b6ac60269df0d321'] = 'Zmiany zostaną zastosowane do sklepu: %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_aef3662e6419ddaaa0a31df70e3b6557'] = 'Zmiany zostaną zastosowane do tej grupy: %s';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_dd25f68471362f6f5f183d6158d67854'] = 'Zmiany zostaną zastosowane do wszystkich sklepów';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_bf24faeb13210b5a703f3ccef792b000'] = 'Wszyscy producenci';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ecf253735ac0cba84a9d2eeff1f1b87c'] = 'Wszyscy dostawcy';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_944d19a34e5fa333a6a0de27e8c971da'] = 'Link górnego menu';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_eacd852cc1f621763dccbda3f3c15081'] = 'Pasek Szukania';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Włączony';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b9f5c797ebbf55adccdd8539a65a0241'] = 'Wyłączony';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_0a112e5da975d8eaf28df9219c397764'] = 'Wszystkie aktywne ilości kombinacji produktów zostaną zmienione';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_1a6191a2dc928ff8fb8c02c050975ea7'] = 'Link aktualizacji';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_58e9b25bb2e2699986a3abe2c92fc82e'] = 'Dodaj nowy link';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b021df6aac4654c454f46c77646e745f'] = 'Etykieta';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_97e7c9a7d06eac006a28bf05467fcc8b'] = 'Odnośnik';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e5dc8e5afea0a065948622039358de37'] = 'Nowe okno';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ec211f7c20af43e742bf2570c3cb84f9'] = 'Dodaj';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_06933067aafd48425d67bcb01bba5cb6'] = 'Uaktualnij';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c7da501f54544eba6787960200d9efdb'] = 'CMS';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ec136b444eede3bc85639fac0dd06229'] = 'Dostawca';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c0bd7654d5b278e65f21cf4e9153fdb4'] = 'Producent';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_af1b98adf7f686b84cd0b443e022b7a0'] = 'Kategorie';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_12a521af593422cd508f7707662c9eb2'] = 'Sklepy';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_068f80c7519d0528fb08e82137a72131'] = 'Produkty';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_778118c7dd993db08f704e15efa4a7fa'] = 'Wybierz ID produktu';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_56e8bf6c54f1638e7bce5a2fcd5b20fe'] = 'Linki górnego menu';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_449f6d82cde894eafd3c85b6fa918f89'] = 'ID linku';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e93c33bd1341ab74195430daeb63db13'] = 'Nazwa sklepu';
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_387a8014f530f080bf2f3be723f8c164'] = 'Lista linków';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_17a1352d3f69a733fd472fce0238a07d'] = 'Podaje numer ID produktu';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_6bb999afde6fca60d70edce79d20b370'] = 'ID produktu #';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_3ee3549ff0c93372a730749f784e9438'] = 'Proszę wybrać tylko jeden';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_e1b11c03820641dd1d1441bf68898d08'] = 'Zmień położenie';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_3713a99a6284e39061bd48069807aa52'] = 'Wybrane elementy';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_8fb31b552d63ffef9df733646a195bc0'] = 'Dostępne elementy';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_1063e38cb53d94d386f21227fcd84717'] = 'Usuń';
$_MODULE['<{blocktopdropdownmenu}prestashop>form_ec211f7c20af43e742bf2570c3cb84f9'] = 'Dodaj';

View File

@@ -0,0 +1,10 @@
<?php
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_6($object)
{
return ($object->registerHook('actionObjectCategoryAddAfter'));
}

View File

@@ -0,0 +1,33 @@
<?php
/*
* 2007-2016 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-2016 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 (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_2_1_1($object)
{
return ($object->registerHook('header'));
}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,125 @@
{*
* 2007-2016 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-2016 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="script"}
$(document).ready(function(){
$('#menuOrderUp').click(function(e){
e.preventDefault();
move(true);
});
$('#menuOrderDown').click(function(e){
e.preventDefault();
move();
});
$("#items").closest('form').on('submit', function(e) {
$("#items option").prop('selected', true);
});
$("#addItem").click(add);
$("#availableItems").dblclick(add);
$("#removeItem").click(remove);
$("#items").dblclick(remove);
function add()
{
$("#availableItems option:selected").each(function(i){
var val = $(this).val();
var text = $(this).text();
text = text.replace(/(^\s*)|(\s*$)/gi,"");
if (val == "PRODUCT")
{
val = prompt('{l s="Indicate the ID number for the product" mod='blocktopdropdownmenu' js=1}');
if (val == null || val == "" || isNaN(val))
return;
text = '{l s="Product ID #" mod='blocktopdropdownmenu' js=1}'+val;
val = "PRD"+val;
}
$("#items").append('<option value="'+val+'" selected="selected">'+text+'</option>');
});
serialize();
return false;
}
function remove()
{
$("#items option:selected").each(function(i){
$(this).remove();
});
serialize();
return false;
}
function serialize()
{
var options = "";
$("#items option").each(function(i){
options += $(this).val()+",";
});
$("#itemsInput").val(options.substr(0, options.length - 1));
}
function move(up)
{
var tomove = $('#items option:selected');
if (tomove.length >1)
{
alert('{l s="Please select just one item" mod='blocktopdropdownmenu'}');
return false;
}
if (up)
tomove.prev().insertAfter(tomove);
else
tomove.next().insertBefore(tomove);
serialize();
return false;
}
});
{/block}
{block name="input"}
{if $input.type == 'link_choice'}
<div class="row">
<div class="col-lg-1">
<h4 style="margin-top:5px;">{l s='Change position' mod='blocktopdropdownmenu'}</h4>
<a href="#" id="menuOrderUp" class="btn btn-default" style="font-size:20px;display:block;"><i class="icon-chevron-up"></i></a><br/>
<a href="#" id="menuOrderDown" class="btn btn-default" style="font-size:20px;display:block;"><i class="icon-chevron-down"></i></a><br/>
</div>
<div class="col-lg-4">
<h4 style="margin-top:5px;">{l s='Selected items' mod='blocktopdropdownmenu'}</h4>
{$selected_links}
</div>
<div class="col-lg-4">
<h4 style="margin-top:5px;">{l s='Available items' mod='blocktopdropdownmenu'}</h4>
{$choices}
</div>
</div>
<br/>
<div class="row">
<div class="col-lg-1"></div>
<div class="col-lg-4"><a href="#" id="removeItem" class="btn btn-default"><i class="icon-arrow-right"></i> {l s='Remove' mod='blocktopdropdownmenu'}</a></div>
<div class="col-lg-4"><a href="#" id="addItem" class="btn btn-default"><i class="icon-arrow-left"></i> {l s='Add' mod='blocktopdropdownmenu'}</a></div>
</div>
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,34 @@
{*
* 2007-2016 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-2016 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/list/list_content.tpl"}
{block name="td_content"}
{if isset($params.type) && $params.type == 'link'}
<a href="{$tr.$key|escape:'html':'UTF-8'}" target="_blank">{$tr.$key|escape:'html':'UTF-8'}</a>
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,21 @@
{**
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA https://www.prestashop.com/forums/user/132608-vekia/
* @copyright 2010-9999 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER http://mypresta.eu
* support@mypresta.eu
*}
<div style="display:block; clear:both; margin-bottom:20px;" class="panel">
<div class="panel-heading">
<i class="icon-cogs"></i>&nbsp;{l s='Advertisement' mod='mib'}
<a style="top:3px;" class="pull-right btn button label label-danger" target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7WE8PTH4ZPYZA"><i class="icon-paypal"></i> {l s='send me a donation' mod='mib'}</span></a>
<span class="pull-right">&nbsp;{l s='or:' mod='mib'}&nbsp;</span>
<a style="top:3px; margin-right:3px;" class="pull-right btn button label label-info" target="_blank" href="https://www.facebook.com/mypresta"><i class="icon-facebook"></i> {l s='Like on facebook' mod='mib'}</span></a>
<span class="pull-right">{l s='We are developing it for free. Just support us on ' mod='mib'}&nbsp;</span>
</div>
<iframe src="//apps.facepages.eu/somestuff/onlyexample.html" width="100%" height="150" border="0" style="border:none;"></iframe>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

View File

View File

View File

View File

View File

View File

View File

View File

@@ -0,0 +1,5 @@
IQITMEGAMENU
Created by iqit-commerce.com
Video guide: https://www.youtube.com/watch?v=-m_HB1_2Bek
Doc guide in readme_en.pdf

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>iqitmegamenu</name>
<displayName><![CDATA[IQITMEGAMENU - most powerfull navigation for Prestashop]]></displayName>
<version><![CDATA[1.2.2]]></version>
<description><![CDATA[With drag and drop submenu creator]]></description>
<author><![CDATA[IQIT-COMMERCE.COM]]></author>
<tab><![CDATA[front_office_features]]></tab>
<is_configurable>1</is_configurable>
<need_instance>0</need_instance>
<limited_countries></limited_countries>
</module>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,24 @@
<?php
/**
* 2007-2015 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2015 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*
*/
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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1,82 @@
<?php
/**
* 2007-2015 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2015 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*/
class IqitMenuHtml extends ObjectModel
{
public $title;
public $html;
/**
* @see ObjectModel::$definition
*/
public static $definition = array(
'table' => 'iqitmegamenu_htmlc',
'primary' => 'id_html',
'multilang' => true,
'fields' => array(
'title' => array('type' => self::TYPE_STRING, 'validate' => 'isCleanHtml', 'size' => 255),
'html' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isString'),
),
);
public function __construct($id_html = null, $id_lang = null, $id_shop = null)
{
parent::__construct($id_html, $id_lang, $id_shop);
}
public function add($autodate = true, $null_values = false)
{
$context = Context::getContext();
$id_shop = $context->shop->id;
$res = parent::add($autodate, $null_values);
$res &= Db::getInstance()->execute('INSERT INTO `' . _DB_PREFIX_ . 'iqitmegamenu_html` (`id_html`, `id_shop`)
VALUES(' . (int) $this->id . ', ' . (int) $id_shop . ')');
return $res;
}
public function delete()
{
$res = true;
$res &= Db::getInstance()->execute('DELETE FROM `' . _DB_PREFIX_ . 'iqitmegamenu_html`
WHERE `id_html` = ' . (int) $this->id);
$res &= parent::delete();
return $res;
}
public static function getHtmls()
{
$context = Context::getContext();
$id_shop = $context->shop->id;
$id_lang = $context->language->id;
return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('SELECT hs.`id_html` as id_html, hss.`title`, hssl.`html`
FROM ' . _DB_PREFIX_ . 'iqitmegamenu_html hs
LEFT JOIN ' . _DB_PREFIX_ . 'iqitmegamenu_htmlc hss ON (hs.id_html = hss.id_html)
LEFT JOIN ' . _DB_PREFIX_ . 'iqitmegamenu_htmlc_lang hssl ON (hs.id_html = hssl.id_html)
WHERE hs.id_shop = ' . (int) $id_shop . '
AND hssl.id_lang = ' . (int) $id_lang);
}
public static function htmlExists($id_html)
{
$req = 'SELECT hs.`id_html` as id_html
FROM `' . _DB_PREFIX_ . 'iqitmegamenu_html` hs
WHERE hs.`id_html` = ' . (int) $id_html;
$row = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($req);
return ($row);
}
}

View File

@@ -0,0 +1,132 @@
<?php
/**
* 2007-2015 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2015 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*/
class IqitMenuLinks
{
public static function gets($id_lang, $id_shop, $id_iqitmenulinks = null)
{
$sql = 'SELECT l.id_iqitmenulinks, l.new_window, s.name, ll.link, ll.label
FROM ' . _DB_PREFIX_ . 'iqitmenulinks l
LEFT JOIN ' . _DB_PREFIX_ . 'iqitmenulinks_lang ll ON (l.id_iqitmenulinks = ll.id_iqitmenulinks AND ll.id_lang = ' . (int) $id_lang . ' AND ll.id_shop=' . (int) $id_shop . ')
LEFT JOIN ' . _DB_PREFIX_ . 'shop s ON l.id_shop = s.id_shop
WHERE 1 ' . ((!is_null($id_iqitmenulinks)) ? ' AND l.id_iqitmenulinks = "' . (int) $id_iqitmenulinks . '"' : '') . '
AND l.id_shop IN (0, ' . (int) $id_shop . ')';
return Db::getInstance()->executeS($sql);
}
public static function get($id_iqitmenulinks, $id_lang, $id_shop)
{
return self::gets($id_lang, $id_shop, $id_iqitmenulinks);
}
public static function getLinkLang($id_iqitmenulinks, $id_shop)
{
$ret = Db::getInstance()->executeS('SELECT l.id_iqitmenulinks, l.new_window, ll.link, ll.label, ll.id_lang FROM ' . _DB_PREFIX_ . 'iqitmenulinks l
LEFT JOIN ' . _DB_PREFIX_ . 'iqitmenulinks_lang ll ON (l.id_iqitmenulinks = ll.id_iqitmenulinks AND ll.id_shop=' . (int) $id_shop . ')
WHERE 1
' . ((!is_null($id_iqitmenulinks)) ? ' AND l.id_iqitmenulinks = "' . (int) $id_iqitmenulinks . '"' : '') . '
AND l.id_shop IN (0, ' . (int) $id_shop . ')');
$link = array();
$label = array();
$new_window = false;
foreach ($ret as $line) {
$link[$line['id_lang']] = Tools::safeOutput($line['link']);
$label[$line['id_lang']] = Tools::safeOutput($line['label']);
$new_window = (bool) $line['new_window'];
}
return array('link' => $link, 'label' => $label, 'new_window' => $new_window);
}
public static function add($link, $label, $id_shop, $newWindow = 0)
{
if (!is_array($label)) {
return false;
}
if (!is_array($link)) {
return false;
}
Db::getInstance()->insert(
'iqitmenulinks',
array(
'new_window' => (int) $newWindow,
'id_shop' => (int) $id_shop,
)
);
$id_iqitmenulinks = Db::getInstance()->Insert_ID();
$result = true;
foreach ($label as $id_lang => $label) {
$result &= Db::getInstance()->insert(
'iqitmenulinks_lang',
array(
'id_iqitmenulinks' => (int) $id_iqitmenulinks,
'id_lang' => (int) $id_lang,
'id_shop' => (int) $id_shop,
'label' => pSQL($label),
'link' => pSQL($link[$id_lang]),
)
);
}
return $result;
}
public static function update($link, $labels, $id_shop, $id_link, $newWindow = 0)
{
if (!is_array($labels)) {
return false;
}
if (!is_array($link)) {
return false;
}
Db::getInstance()->update(
'iqitmenulinks',
array(
'new_window' => (int) $newWindow,
'id_shop' => (int) $id_shop,
),
'id_iqitmenulinks = ' . (int) $id_link
);
foreach ($labels as $id_lang => $label) {
Db::getInstance()->update(
'iqitmenulinks_lang',
array(
'id_shop' => (int) $id_shop,
'label' => pSQL($label),
'link' => pSQL($link[$id_lang]),
),
'id_iqitmenulinks = ' . (int) $id_link . ' AND id_lang = ' . (int) $id_lang
);
}
return true;
}
public static function remove($id_iqitmenulinks, $id_shop)
{
$result = true;
$result &= Db::getInstance()->delete('iqitmenulinks', 'id_iqitmenulinks = ' . (int) $id_iqitmenulinks . ' AND id_shop = ' . (int) $id_shop);
$result &= Db::getInstance()->delete('iqitmenulinks_lang', 'id_iqitmenulinks = ' . (int) $id_iqitmenulinks);
return $result;
}
}

View File

@@ -0,0 +1,309 @@
<?php
/**
* 2007-2015 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2015 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*/
class IqitMenuTab extends ObjectModel
{
public $id;
public $menu_type;
public $id_tab;
public $id_shop_list;
public $id_shop;
public $active;
public $active_label;
public $position;
public $url_type;
public $id_url;
public $icon_type;
public $icon_class;
public $icon;
public $legend_icon;
public $new_window;
public $float;
public $submenu_type;
public $submenu_width;
public $submenu_bg_color;
public $submenu_image;
public $submenu_repeat;
public $submenu_bg_position;
public $submenu_link_color;
public $submenu_hover_color;
public $submenu_content;
public $submenu_title_color;
public $submenu_title_colorh;
public $submenu_titleb_color;
public $submenu_border_t;
public $submenu_border_r;
public $submenu_border_b;
public $submenu_border_l;
public $submenu_border_i;
public $title;
public $label;
public $url;
public $bg_color;
public $txt_color;
public $h_bg_color;
public $h_txt_color;
public $labelbg_color;
public $labeltxt_color;
public $group_access;
/**
* @see ObjectModel::$definition
*/
public static $definition = array(
'table' => 'iqitmegamenu_tabs',
'primary' => 'id_tab',
'multilang' => true,
'fields' => array(
'menu_type' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true),
'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'required' => true),
'active_label' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'required' => true),
'position' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true),
'url_type' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true),
'id_url' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'icon_type' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true),
'icon_class' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'legend_icon' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'icon' => array('type' => self::TYPE_STRING, 'validate' => 'isCleanHtml', 'size' => 255),
'new_window' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'required' => true),
'float' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'required' => true),
'submenu_content' => array('type' => self::TYPE_STRING),
'submenu_type' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true),
'submenu_width' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true),
'submenu_bg_color' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'submenu_image' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'submenu_repeat' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'),
'submenu_bg_position' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'),
'submenu_link_color' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'submenu_hover_color' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'submenu_title_color' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'submenu_title_colorh' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'submenu_titleb_color' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'submenu_border_t' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'submenu_border_r' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'submenu_border_b' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'submenu_border_l' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'submenu_border_i' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'bg_color' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'txt_color' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'h_bg_color' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'h_txt_color' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'labelbg_color' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'labeltxt_color' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
'title' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isCleanHtml', 'required' => true, 'size' => 255),
'label' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isCleanHtml', 'size' => 255),
'url' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isUrl', 'size' => 255),
'group_access' => array('type' => self::TYPE_STRING),
),
);
public function __construct($id_menu = null, $id_lang = null, $id_shop = null)
{
Shop::addTableAssociation('iqitmegamenu_tabs', array('type' => 'shop'));
parent::__construct($id_menu, $id_lang, $id_shop);
}
public function add($autodate = true, $null_values = false)
{
$res = parent::add($autodate, $null_values);
$this->associateTo($this->id_shop_list);
return $res;
}
public function delete()
{
$res = true;
$tab = new IqitMenuTab((int) $this->id);
$res &= $this->reOrderPositions($tab->menu_type);
$res &= Db::getInstance()->execute('DELETE FROM `' . _DB_PREFIX_ . 'iqitmegamenu_tabs_shop`
WHERE `id_tab` = ' . (int) $this->id);
$res &= parent::delete();
return $res;
}
public function update($null_values = false)
{
if (isset($this->id)) {
Db::getInstance()->delete('iqitmegamenu_tabs_shop', 'id_tab = ' . (int) $this->id);
}
$this->associateTo($this->id_shop_list);
return parent::update();
}
public static function getTabs($menu_type)
{
$context = Context::getContext();
$id_shop = $context->shop->id;
$id_lang = $context->language->id;
return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('SELECT hs.`id_tab` as id_tab, hssl.`title`, hss.`position`
FROM ' . _DB_PREFIX_ . 'iqitmegamenu_tabs_shop hs
LEFT JOIN ' . _DB_PREFIX_ . 'iqitmegamenu_tabs hss ON (hs.id_tab = hss.id_tab)
LEFT JOIN ' . _DB_PREFIX_ . 'iqitmegamenu_tabs_lang hssl ON (hss.id_tab = hssl.id_tab)
WHERE id_shop = ' . (int) $id_shop . ' AND menu_type = ' . (int) $menu_type . '
AND hssl.id_lang = ' . (int) $id_lang . '
ORDER BY hss.position');
}
public static function getTabsFrontend($menu_type, $css_generator)
{
$context = Context::getContext();
$id_shop = $context->shop->id;
$id_lang = $context->language->id;
$tabs = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('SELECT hs.`id_tab` as id_tab, hssl.`title`, hssl.`label`, hssl.`url`,
hss.`position`, hss.`active_label`, hss.`url_type`, hss.`id_url`, hss.`icon_type`, hss.`icon_class`, hss.`icon`, hss.`legend_icon`,
hss.`new_window`, hss.`float`, hss.`submenu_type`, hss.`submenu_content`, hss.`submenu_width`, hss.`group_access`
' . ($css_generator ? ', hss.`bg_color`, hss.`txt_color`, hss.`h_bg_color`, hss.`h_txt_color`, hss.`labelbg_color`, hss.`labeltxt_color`,
hss.`submenu_bg_color`, hss.`submenu_image`, hss.`submenu_repeat`, hss.`submenu_bg_position`,
hss.`submenu_link_color`, hss.`submenu_hover_color`, hss.`submenu_link_color`, hss.`submenu_hover_color`, hss.`submenu_title_color`,
hss.`submenu_title_colorh`, hss.`submenu_titleb_color`, hss.`submenu_border_t`, hss.`submenu_border_r`, hss.`submenu_border_b`,
hss.`submenu_border_l`, hss.`submenu_border_i` ' : '') . '
FROM ' . _DB_PREFIX_ . 'iqitmegamenu_tabs_shop hs
LEFT JOIN ' . _DB_PREFIX_ . 'iqitmegamenu_tabs hss ON (hs.id_tab = hss.id_tab)
LEFT JOIN ' . _DB_PREFIX_ . 'iqitmegamenu_tabs_lang hssl ON (hss.id_tab = hssl.id_tab)
WHERE id_shop = ' . (int) $id_shop . ' AND menu_type = ' . (int) $menu_type . ' AND active = 1
AND hssl.id_lang = ' . (int) $id_lang . '
ORDER BY hss.position');
if (Context::getContext()->customer) {
foreach ($tabs as $key => $tab) {
if ($userGroups = Context::getContext()->customer->getGroups()) {
$tmpLinkGroups = unserialize($tab['group_access']);
$linkGroups = array();
foreach ($tmpLinkGroups as $groupID => $status) {
if ($status) {
$linkGroups[] = $groupID;
}
}
$intersect = array_intersect($userGroups, $linkGroups);
if (!count($intersect)) {
unset($tabs[$key]);
}
}
}
return $tabs;
} else {
return $tabs;
}
}
public static function getNextPosition($menu_type)
{
$context = Context::getContext();
$id_shop = $context->shop->id;
$row = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow('SELECT MAX(hss.`position`) AS `next_position`
FROM `' . _DB_PREFIX_ . 'iqitmegamenu_tabs` hss, `' . _DB_PREFIX_ . 'iqitmegamenu_tabs_shop` hs
WHERE hss.`id_tab` = hs.`id_tab` AND hss.`menu_type` = ' . (int) $menu_type . ' AND hs.`id_shop` = ' . (int) $id_shop);
return (++$row['next_position']);
}
public static function tabExists($id_tab)
{
$req = 'SELECT hs.`id_tab` as id_tab
FROM `' . _DB_PREFIX_ . 'iqitmegamenu_tabs_shop` hs
WHERE hs.`id_tab` = ' . (int) $id_tab;
$row = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($req);
return ($row);
}
public static function getAllShopTabs()
{
$id_shop = Context::getContext()->shop->id;
$req = 'SELECT hs.`id_tab` as id_tab
FROM `' . _DB_PREFIX_ . 'iqitmegamenu_tabs_shop` hs
WHERE hs.`id_shop` = ' . (int) $id_shop;
$rows = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($req);
$tabs = array();
foreach ($rows as $id => $tab) {
$tabs[$tab['id_tab']] = new IqitMenuTab($tab['id_tab']);
$tabs[$tab['id_tab']]->id_shop_list = $id_shop;
}
return $tabs;
}
public static function importTabs($id_tab)
{
$req = 'SELECT hs.`id_tab` as id_tab
FROM `' . _DB_PREFIX_ . 'iqitmegamenu_tabs_shop` hs
WHERE hs.`id_tab` = ' . (int) $id_tab;
$row = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($req);
return ($row);
}
public function reOrderPositions($menu_type)
{
$id_tab = $this->id;
$context = Context::getContext();
$id_shop = $context->shop->id;
$max = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('SELECT MAX(hss.`position`) as position
FROM `' . _DB_PREFIX_ . 'iqitmegamenu_tabs` hss, `' . _DB_PREFIX_ . 'iqitmegamenu_tabs_shop` hs
WHERE hss.`id_tab` = hs.`id_tab` AND hss.`menu_type` = ' . (int) $menu_type . ' AND hs.`id_shop` = ' . (int) $id_shop);
if ((int) $max == (int) $id_tab) {
return true;
}
$rows = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('SELECT hss.`position` as position, hss.`id_tab` as id_tab
FROM `' . _DB_PREFIX_ . 'iqitmegamenu_tabs` hss
LEFT JOIN `' . _DB_PREFIX_ . 'iqitmegamenu_tabs_shop` hs ON (hss.`id_tab` = hs.`id_tab`)
WHERE hs.`id_shop` = ' . (int) $id_shop . ' AND hss.`menu_type` = ' . (int) $menu_type . ' AND hss.`position` > ' . (int) $this->position);
foreach ($rows as $row) {
$current_tab = new IqitMenuTab($row['id_tab']);
--$current_tab->position;
$current_tab->update();
unset($current_tab);
}
return true;
}
public function verifyAccess()
{
if (Context::getContext()->customer) {
if ($userGroups = Context::getContext()->customer->getGroups()) {
$tmpLinkGroups = unserialize($this->group_access);
$linkGroups = array();
foreach ($tmpLinkGroups as $groupID => $status) {
if ($status) {
$linkGroups[] = $groupID;
}
}
$intersect = array_intersect($userGroups, $linkGroups);
if (!count($intersect)) {
return false;
}
}
return true;
} else {
return true;
}
}
}

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

Binary file not shown.

View File

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,22 @@
<?php
/**
* 2007-2015 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2015 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_0_1($object)
{
Configuration::updateValue('iqitmegamenu_hor_bootstrap', 0);
return true;
}

View File

@@ -0,0 +1,21 @@
<?php
/**
* 2007-2015 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2015 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_0_2($object)
{
return true;
}

View File

@@ -0,0 +1,21 @@
<?php
/**
* 2007-2015 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2015 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_0_5($object)
{
return true;
}

View File

@@ -0,0 +1,38 @@
<?php
/**
* 2007-2015 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2015 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_1_0($object)
{
Configuration::updateValue('iqitmegamenu_hor_hook', 0);
$object->registerHook('displayIqitMenu');
Db::getInstance()->execute('ALTER TABLE `' . _DB_PREFIX_ . 'iqitmegamenu_tabs` ADD group_access TEXT NOT NULL AFTER submenu_border_i');
$groups = Group::getGroups(Context::getContext()->language->id);
$group_access = array();
foreach ($groups as $group) {
$group_access[$group['id_group']] = true;
}
$group_access = serialize($group_access);
Db::getInstance()->execute('UPDATE `' . _DB_PREFIX_ . 'iqitmegamenu_tabs` SET group_access = "' . $group_access . '" WHERE 1');
Db::getInstance()->execute('RENAME TABLE `' . _DB_PREFIX_ . 'iqitmegamenu` TO `' . _DB_PREFIX_ . 'iqitmegamenu_tabs_shop`');
return true;
}

View File

@@ -0,0 +1,21 @@
<?php
/**
* 2007-2015 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2015 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_1_1($object)
{
return true;
}

View File

@@ -0,0 +1,198 @@
/**
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
.tab-content .tab-pane-wrapper{
display: none;
}
.list-wrapper{
display: none;
}
.tab-content .tab-pane-wrapper.active{
display: block;
}
#options_tab .active a{
z-index: 2;
color: white;
background-color: #00aff0;
border-color: #00aff0;
}
#options_tab ul{list-style-type: none;}
.grid_creator{
}
.menu_row{
background: #F3F3F3;
padding: 10px;
margin-bottom: 2px;
margin-left: 0px !important;
margin-right: 0px !important;
min-height: 50px;
position: relative;
padding-top: 50px;
margin-bottom: 20px;
}
.menu_row .menu_column{
border: 1px dashed #e6e6e6;
min-height: 200px;
padding-top: 45px;
position: relative;
background: #fff;
position: relative;
padding-left: 10px;
padding-right: 10px;
}
#tabs-submenu{
border-bottom: 3px solid #e6e6e6;
padding: 15px;
margin-bottom: 20px;
}
#buttons-sample{
border-bottom: 3px solid #e6e6e6;
margin-top: 5px;
padding-top: 10px;
clear: both;
text-align: center;
padding-bottom: 10px;
}
#buttons-sample .dragger-handle{
display: none;
}
.menu_column > .action-buttons-container .add-column-action, .menu_row > .action-buttons-container .column-content-edit, .menu_row > .action-buttons-container .duplicate-element-action, #buttons-sample .duplicate-element-action{
display: none;
}
#buttons-sample .action-buttons-container{
border: 1px dashed #e6e6e6;
padding: 10px;
}
.dragger-handle{
position: absolute;
left: 0px;
top: 0px;
color: #676767 !important;
background-color: #CDCDCD !important;
border: none !important;
border-radius: 0px !important;
font-size: 10px !important;
}
.dragger-handle .icon-arrows {
font-size: 10px !important;
}
.menu-element > .action-buttons-container .btn, .menu-element > .action-buttons-container .btn i {
font-size: 10px;
}
#buttons-sample .add-column-action, #buttons-sample .remove-element-action{
display: none;
}
.menu_row .action-buttons-container{
background: #ECECEC;
position: absolute;
right: 0px;
font-size: 12px !important;
top: 0px;
padding: 5px;
border: 1px solid #e6e6e6;
}
.menu_row > .action-buttons-container .add-row-action{
display: none;
}
.menu_column > .action-buttons-container .add-column-action{
display: none;
}
.menu_column .menu_column .action-buttons-container .add-row-action{
display: none;
}
.row-placeholder{
background: #eeefbb;
border: 1px dashed #b3b478;
width: 100%;
height: 50px;
}
.col-placeholder{
background: #eeefbb;
border: 1px dashed #b3b478;
width: 25%;
height: 100px;
float: left;
}
.row-title{
font-size: 14px;
font-weight: bold;
margin-bottom: 20px;
}
.column-content-modal .style-wrapper{
background: #F7F7F7;
margin-top: 20px;
padding: 10px 20px;
border: 1px dotted #E5E5E5;
}
.menu-column-content .modal-dialog {
max-width: 900px;
width: 70%;
min-width: 600px;
}
.column-checkbox{
display: inline-block;
border: 1px dotted #cecece;
padding: 2px 4px;
margin-right: 5px;
}
#cssstyle-submenu{
border-bottom: 3px solid #e6e6e6;
padding: 15px;
margin-bottom: 20px;
}
.menu-collapse-expand{
float: right;
}
.collapse-menu-expand{
margin-top: 30px;
}
.autocomplete-suggestions {
text-align: left; cursor: default; border: 1px solid #ccc; border-top: 0; background: #fff; box-shadow: -1px 1px 3px rgba(0,0,0,.1);
/* core styles should not be changed */
position: absolute; display: none; z-index: 9999; max-height: 254px; overflow: hidden; overflow-y: auto; box-sizing: border-box;
}
.autocomplete-suggestion { position: relative; padding: 0 .6em; line-height: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.02em; color: #333; }
.autocomplete-suggestion b { font-weight: normal; color: #1f8dd6; }
.autocomplete-suggestion.selected { background: #f0f0f0; }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,972 @@
.iqitmegamenu-wrapper {
z-index: 97;
clear: both; }
.iqitmegamenu-wrapper.cbp-hor-width-0 {
padding-left: 0px;
padding-right: 0px; }
.container-iqit-menu{
z-index: 10;
position: relative;
}
.cbp-hor-width-1 .container {
padding-left: 0px;
padding-right: 0px; }
.iqitmegamenu {
background: #cecece; }
.iqitmegamenu .container .row {
margin-left: 0px;
margin-right: 0px; }
.cbp-sticky.cbp-sticky-transparent {
opacity: 0.85;
transition: opacity 300ms ease-in-out; }
.cbp-sticky.cbp-sticky-transparent:hover {
opacity: 1; }
#iqitmegamenu-horizontal.cbp-sticky {
position: fixed !important;
top: 0 !important;
width: 100% !important;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
z-index: 90;
left: 0;
-webkit-backface-visibility: hidden; }
@media (max-width: 999px) {
#iqitmegamenu-horizontal.cbp-sticky {
position: static !important; } }
#iqitmegamenu-horizontal.cbp-sticky .cbp-hrmenu-tab > a > .cbp-legend {
display: none; }
.cbp-hrmenu {
width: 100%; }
@media (max-width: 999px) {
.cbp-hrmenu {
display: none; } }
.cbp-hrmenu ul {
margin: 0;
padding: 0;
list-style-type: none; }
.cbp-hrmenu .col-xs-12 {
float: left; }
.cbp-hrmenu .cbp-tab-title {
display: inline-block;
vertical-align: middle;
position: relative;
top: -1px; }
.cbp-hrmenu .cbp-manufacturers {
margin-top: -10px; }
.cbp-hrmenu .cbp-manufacturers li {
margin-top: 10px; }
.cbp-hrmenu .cbp-manufacturers li:hover {
opacity: 0.85; }
.cbp-hrmenu .cbp-vertical-title {
transition: all 300ms ease-in-out;
padding: 0px 15px; }
.cbp-hrmenu .cbp-vertical-title .icon {
margin-right: 10px; }
.cbp-hrmenu .cbp-categories-row {
margin-top: -10px; }
.cbp-hrmenu .cbp-categories-row > div {
margin-top: 10px; }
.cbp-hrmenu .menu_row {
position: static;
}
.cbp-hrmenu .cbp-empty-column .cbp-menu-column-inner > .menu_row:first-child {
margin-top: -20px; }
.cbp-hrmenu .cbp-tabs-container {
width: 100%; }
.cbp-hrmenu .cbp-absolute-column {
margin: 0px;
padding: 0px;
position: absolute;
width: auto !important;
z-index: 2; }
.cbp-hrmenu .cbp-column-title {
display: block;
margin-bottom: 8px; }
.cbp-hrmenu .cbp-column-title .cbp-legend.cbp-legend-inner {
top: -2px; }
.cbp-hrmenu .cbp-column-title .cbp-legend.cbp-legend-inner .cbp-legend-arrow:before {
top: -1px; }
.cbp-hrmenu .cbp-column-title.cbp-column-title-inline {
padding: 0px !important;
border: none !important;
margin: 0px !important;
margin-right: 10px !important;
display: inline-block;
vertical-align: middle; }
.cbp-hrmenu .cbp-menu-column {
margin-top: 20px; }
.cbp-hrmenu .cbp-menu-column .row {
margin-left: -10px;
margin-right: -10px; }
.cbp-hrmenu .cbp-mainlink-iicon, .cbp-hrmenu .cbp-mainlink-icon {
width: auto;
display: inline;
vertical-align: middle;
margin-right: 4px; }
.cbp-hrmenu .cbp-onlyicon .cbp-mainlink-iicon, .cbp-hrmenu .cbp-onlyicon .cbp-mainlink-icon {
margin-right: 0px; }
.cbp-hrmenu .cbp-legend {
display: inline-block;
top: -15px;
right: 5px;
background-color: #999999;
color: #ffffff;
position: absolute;
font-weight: normal;
font-size: 10px;
padding: 4px 6px;
text-transform: none;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
line-height: initial;
}
.cbp-hrmenu .cbp-legend .cbp-legend-arrow:before {
font-family: "FontAwesome";
content: "\F0D7";
font-size: 15px;
position: absolute;
bottom: -10px;
right: 5px; }
.cbp-hrmenu .cbp-legend.cbp-legend-inner {
position: relative;
top: 0px;
margin-left: 5px;
right: 0px;
padding: 2px 4px;
vertical-align: middle; }
.cbp-hrmenu .cbp-legend.cbp-legend-inner .cbp-legend-arrow:before {
content: "\f0d9";
bottom: 0px;
top: 0px;
margin-top: 1px;
z-index: 2;
right: auto;
left: -4px; }
.cbp-hrmenu .cbp-tab-content {
border-left: 1px solid #cecece;
margin-top: 0px !important;
margin-bottom: 0px !important;
padding: 0px;
vertical-align: top; }
.cbp-hrmenu .cbp-products-big * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }
.cbp-hrmenu .cbp-products-big .quick-view {
font-size: 0px; }
.cbp-hrmenu .cbp-products-big .online-label, .cbp-hrmenu .cbp-products-big .new-label, .cbp-hrmenu .cbp-products-big .sale-label {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box; }
.cbp-hrmenu .cbp-products-big li.ajax_block_product {
text-align: center;
margin-bottom: 10px; }
.cbp-hrmenu .cbp-products-big li.ajax_block_product:hover {
padding-top: 0px;
padding-bottom: 0px; }
.cbp-hrmenu .cbp-products-big li.ajax_block_product:hover .functional-buttons-grid {
visibility: visible;
opacity: 0.9;
margin-bottom: 0px; }
.cbp-hrmenu .price.product-price{
font-size: 14px;
line-height: 14px;
}
.cbp-hrmenu .old-price.product-price{
font-size: 13px;
}
.cbp-hrmenu .cbp-products-list .product-name, .cbp-hrmenu .cbp-products-list .product-name-container {
height: auto;
line-height: inherit; }
.cbp-hrmenu .cbp-products-list > li {
padding-top: 9px;
padding-bottom: 9px; }
.cbp-hrmenu .cbp-products-list .product-image-container {
float: left;
margin-right: 10px;
max-width: 60px;
min-width: 30px; }
.cbp-hrmenu .cbp-hrsub-tabs-names {
margin-right: -10px;
margin-left: -10px; }
.cbp-hrmenu .cbp-hrsub-tabs-names li {
position: relative;
border-bottom: 1px solid #cecece; }
.cbp-hrmenu .cbp-hrsub-tabs-names li .cbp-inner-border-hider {
position: absolute;
top: 0px;
background: white;
display: block;
height: 100%;
z-index: 1;
display: none; }
.cbp-hrmenu .cbp-hrsub-tabs-names li.active .cbp-inner-border-hider {
display: block; }
.cbp-hrmenu .cbp-hrsub-tabs-names li a {
position: relative;
display: block;
transition: none;
padding: 14px 16px; }
.cbp-hrmenu.cbp-submenu-notarrowed .cbp-submenu-aindicator {
display: none; }
.cbp-hrmenu .cbp-submenu-aindicator {
margin-left: 3px; }
.cbp-hrmenu .cbp-submenu-it-indicator {
position: absolute;
top: 0px;
bottom: 0px;
right: 10px;
margin: auto;
height: 15px; }
.cbp-hrmenu.cbp-menu-centered > ul {
text-align: center; }
.cbp-hrmenu.cbp-menu-centered > ul > li {
text-align: left;
float: none; }
.cbp-hrmenu .cbp-links li {
margin: 3px 0;
padding-left: 2px;
position: relative; }
.cbp-hrmenu .cbp-links li:last-child {
margin-bottom: 0px; }
.cbp-hrmenu .cbp-links li.cbp-hrsub-haslevel2 > div > a:after, .cbp-hrmenu .cbp-links li .cbp-hrsub-haslevel3 > div > a:after {
content: "\f0da";
display: inline;
font-family: "FontAwesome";
padding-left: 4px;
opacity: 0.2;
position: relative;
-webkit-transition: opacity 0.3s ease;
-moz-transition: opacity 0.3s ease;
-o-transition: opacity 0.3s ease;
transition: opacity 0.3s ease; }
.cbp-hrmenu .cbp-links li a {
padding-left: 10px;
display: inline-block; }
.cbp-hrmenu .cbp-links li a:before {
content: "\f105";
display: inline;
font-family: "FontAwesome";
position: absolute;
left: 0px;
-webkit-transition: left 0.3s ease, right 0.3s ease;
-moz-transition: left 0.3s ease, right 0.3s ease;
-o-transition: left 0.3s ease, right 0.3s ease;
transition: left 0.3s ease, right 0.3s ease; }
.cbp-hrmenu .cbp-links li a:hover:before {
left: 3px; }
.cbp-hrmenu .cbp-links.cbp-valinks-vertical li {
display: inline-block;
margin: 0px;
margin-right: 12px;
padding: 0px; }
.cbp-hrmenu .cbp-links.cbp-valinks-vertical.cbp-valinks-vertical2 {
display: inline-block;
vertical-align: middle; }
.cbp-category-thumb{
display: block;
margin-bottom: 10px;
}
/* vertical style */
.cbp-hrmenu.cbp-vertical > ul > li {
float: none;
display: block; }
.cbp-vertical-on-top {
float: left;
width: 250px;
position: relative; }
.cbp-vertical-on-top > .cbp-vertical > ul {
position: absolute;
visibility: hidden;
opacity: 0; }
.cbp-vertical-on-top.cbp-vert-expanded > .cbp-vertical > ul {
visibility: visible;
opacity: 1; }
.cbp-vertical-on-top nav#cbp-hrmenu1 {
margin-bottom: 0px; }
#index .cbp-homepage-expanded > .cbp-vertical > ul {
visibility: visible;
opacity: 1; }
#index .cbp-sticky .cbp-homepage-expanded > .cbp-vertical > ul {
visibility: hidden;
opacity: 0; }
#index .cbp-sticky .cbp-vert-expanded > .cbp-vertical > ul {
visibility: visible;
opacity: 1; }
.cbp-hrmenu.cbp-vertical {
width: 100%;
margin-bottom: 20px; }
.cbp-hrmenu.cbp-vertical .cbp-submenu-aindicator {
position: absolute;
right: 8px;
margin-top: 1px; }
.cbp-hrmenu.cbp-vertical .cbp-legend-vertical {
top: -8px;
right: 14px; }
.cbp-hrmenu.cbp-vertical > ul {
width: 100%;
max-width: 100%;
padding: 0px; }
.cbp-hrmenu.cbp-vertical > ul > li > a, .cbp-hrmenu.cbp-vertical > ul > li .span.cbp-main-link {
padding-left: 15px;
padding-right: 15px;
display: block; }
.cbp-hrmenu.cbp-vertical > ul > li:first-child > a, .cbp-hrmenu.cbp-vertical > ul > li:first-child .span.cbp-main-link {
border-top: none; }
.cbp-hrmenu.cbp-vertical .cbp-hrsub-wrapper {
position: absolute;
visibility: hidden;
opacity: 0;
z-index: 100; }
.cbp-hrmenu.cbp-vertical .cbp-hropen .cbp-hrsub-wrapper {
visibility: visible;
opacity: 1.0; }
/* first level ul style */
.cbp-hrmenu > ul,
.cbp-hrmenu .cbp-hrsub-inner {
margin: 0 auto; }
.cbp-hrmenu > ul > li {
display: inline-block;
float: left; }
.cbp-hrmenu > ul > li > a, .cbp-hrmenu > ul > li > span.cbp-main-link {
display: inline-block;
position: relative;
text-decoration: none;
cursor: pointer;
-webkit-transition: color 0.3s ease, background-color 0.3s ease;
-moz-transition: color 0.3s ease, background-color 0.3s ease;
-o-transition: color 0.3s ease, background-color 0.3s ease;
transition: color 0.3s ease, background-color 0.3s ease; }
.cbp-hrmenu > ul > li:first-child > a, .cbp-hrmenu > ul > li:first-child > span.cbp-main-link {
border-left: none !important; }
/* sub-menu */
.cbp-hrmenu.cbp-arrowed .cbp-triangle-container {
display: block; }
.cbp-hrmenu .cbp-triangle-top {
width: 0;
height: 0;
position: absolute;
z-index: 1;
border-left: 12px solid transparent;
border-right: 12px solid transparent;
border-bottom: 12px solid #fff;
top: 1px; }
.cbp-hrmenu .cbp-triangle-top-back {
width: 0;
height: 0;
position: absolute;
left: -1px;
border-left: 13px solid transparent;
border-right: 13px solid transparent;
border-bottom: 13px solid #EAEAEA; }
.cbp-hrmenu .cbp-triangle-container {
display: none;
left: 0px;
top: 0px;
position: absolute; }
.cbp-hrmenu .cbp-triangle-left, #columns .cbp-hrmenu .cbp-triangle-left {
position: absolute;
width: 0;
height: 0;
left: 1px;
z-index: 1;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
border-right: 12px solid #fff; }
.cbp-hrmenu .cbp-triangle-left-back, #columns .cbp-hrmenu .cbp-triangle-left-back {
position: absolute;
width: 0;
height: 0;
top: -1px;
left: 0px;
border-top: 13px solid transparent;
border-bottom: 13px solid transparent;
border-right: 13px solid #EAEAEA; }
.cbp-horizontal.cbp-arrowed .cbp-triangle-container {
position: absolute;
bottom: -13px; }
.cbp-vertical.cbp-arrowed .cbp-hrsub-inner {
margin-left: 12px; }
.cbp-horizontal.cbp-arrowed .cbp-hrsub-inner {
margin-top: 12px; }
.cbp-hrmenu .cbp-hrsub {
visibility: hidden;
opacity: 0;
position: absolute;
display: none;
padding-bottom: 20px;
padding: 0px !important; }
.cbp-hropen .cbp-hrsub {
visibility: visible;
opacity: 1.0;
z-index: 1; }
.cbp-hrmenu .cbp-hrsub-inner {
background: #fff;
border: 1px solid #EAEAEA; }
.cbp-hrmenu .cbp-hrsub-inner > .row {
margin-left: 10px;
margin-right: 10px; }
.cbp-hrmenu .cbp-hrsub-inner > .row:last-child {
margin-bottom: 20px; }
.cbp-hrsub-wide .cbp-hrsub-inner .container > .row:last-child {
margin-bottom: 20px; }
.cbp-hrmenu .cbp-notfit {
right: 0px; }
.cbp-hrmenu .cbp-show {
display: block; }
.cbp-category-link-w{
position: relative;
}
.cbp-category-tree{
display: inline-block;
}
.cbp-hrmenu ul.cbp-hrsub-level2 {
visibility: hidden;
opacity: 0;
position: absolute;
left: 100%;
margin-top: -20px;
padding: 8px 10px;
z-index: 3;
width: auto;
background: #fff;
border: 1px solid #EAEAEA;
white-space: nowrap; }
.cbp-hrmenu ul.cbp-hrsub-level3{
left: 101%;
}
.cbp-hrmenu .pull-right {
float: right !important;
}
.cbp-hrsub-haslevel3 > .cbp-category-link-w > ul {
visibility: hidden;
opacity: 0;
position: absolute;
left: 100px;
margin-top: -20px;
padding: 8px 10px;
z-index: 3;
width: auto;
transition: visibility 180ms ease-in-out,opacity 180ms ease-in-out;
white-space: nowrap;
left: 101%;
}
.cbp-hrsub-haslevel3:hover > .cbp-category-link-w > ul {
visibility: visible;
opacity: 1.0;
}
.cbp-hrsub-haslevel3:hover .cbp-hrsub-level2{
visibility: visible;
opacity: 1.0;
}
.cbp-hrsub-haslevel2:hover > div > ul.cbp-hrsub-level2 {
visibility: visible;
opacity: 1.0; }
.cbp-hrmenu .cbp-tab-pane {
display: none; }
.cbp-hrmenu .cbp-tab-pane > .clearfix > .row {
margin: 0px;
}
.cbp-hrmenu .cbp-tab-pane > div > .row:last-child {
margin-bottom: 20px; }
.cbp-hrmenu .cbp-hropen .cbp-tab-pane.active {
visibility: visible;
opacity: 1.0; }
.cbp-hrmenu .cbp-tab-pane.active {
display: table-cell; }
/* wide submenu wrapper */
.cbp-hor-width-0 .cbp-hrsub-wide .cbp-hrsub {
width: 100%;
left: 0; }
/* wide submenu submenucontent */
.cbp-hrsub-wide.cbp-hrsub-widec .cbp-hrsub-inner {
width: 100%;
max-width: 100%; }
/* narrow submenu wrapper */
.cbp-hrsub-narrow {
position: relative; }
/* submenu effects */
.cbp-fade .cbp-hrsub {
transition: visibility 300ms ease-in-out, opacity 300ms ease-in-out; }
.cbp-fade .cbp-hrsub-level2 {
transition: visibility 300ms ease-in-out, opacity 300ms ease-in-out; }
.cbp-fade .cbp-hrsub-wrapper {
transition: visibility 300ms ease-in-out, opacity 300ms ease-in-out; }
.cbp-fade.cbp-vertical > ul {
transition: visibility 300ms ease-in-out, opacity 300ms ease-in-out; }
.cbp-fade-slide-bottom .cbp-hrsub {
transition: all 300ms ease-in-out;
margin-top: 15px; }
.cbp-fade-slide-bottom .cbp-hropen .cbp-hrsub {
transition: all 300ms ease-in-out;
margin-top: 0px; }
.cbp-fade-slide-bottom .cbp-hrsub-level2 {
transition: visibility 300ms ease-in-out, opacity 300ms ease-in-out; }
.cbp-fade-slide-top .cbp-hrsub {
transition: all 300ms ease-in-out;
margin-top: -15px;
z-index: -20; }
.cbp-fade-slide-top .cbp-hropen .cbp-hrsub {
transition: all 300ms ease-in-out;
margin-top: 0px;
z-index: 1; }
.cbp-fade-slide-top .cbp-hrsub-level2 {
transition: visibility 300ms ease-in-out, opacity 300ms ease-in-out; }
.cbp-hrmenu .cbp-hrsub-inner:before,
.cbp-hrmenu .cbp-hrsub-inner:after {
content: "";
display: table; }
.cbp-hrmenu .cbp-hrsub-inner:after {
clear: both; }
.cbp-hrsub h4 {
color: #afdefa;
padding: 2em 0 0.6em;
margin: 0;
font-size: 160%;
font-weight: 300; }
@media (min-width: 1000px) {
.cbp-spmenu-push-toright {
left: 0px !important; } }
/* Responsive styling*/
#iqitmegamenu-mobile {
display: none;
text-align: left; }
@media (max-width: 999px) {
#iqitmegamenu-mobile {
display: block; } }
#iqitmegamenu-mobile ul, #iqitmegamenu-mobile li {
list-style-type: none; }
#iqitmegamenu-mobile #iqitmegamenu-shower {
text-transform: uppercase;
padding: 12px 15px;
cursor: pointer;
line-height: 36px; }
#iqitmegamenu-mobile .iqitmegamenu-icon {
margin-right: 10px;
color: #000;
display: block;
background-color: #fff;
font-weight: bold;
font-size: 24px;
float: left;
width: 36px;
text-align: center;
cursor: pointer; }
#iqitmegamenu-mobile .iqitmegamenu-accordion {
list-style: none;
padding: 0px;
overflow: hidden;
height: auto;
max-height: 0px;
margin: 0px;
-webkit-transition: all 0.5s ease;
-webkit-transition-delay: 0s;
-moz-transition: all 0.5s ease 0s;
-o-transition: all 0.5s ease 0s;
transition: all 0.5s ease 0s; }
#iqitmegamenu-mobile .iqitmegamenu-accordion.showedmenu {
border-top: none;
padding: 12px;
max-height: 9999px;
-webkit-transition: all 0.5s ease;
-webkit-transition-delay: 0s;
-moz-transition: all 0.5s ease 0s;
-o-transition: all 0.5s ease 0s;
transition: all 0.5s ease 0s; }
#iqitmegamenu-mobile .iqitmegamenu-accordion > li {
border-bottom: 1px dashed #dddddd; }
#iqitmegamenu-mobile .iqitmegamenu-accordion > li:last-child {
border-bottom: none; }
#iqitmegamenu-mobile .iqitmegamenu-accordion > li > a {
text-transform: uppercase;
display: block;
padding: 10px 0; }
#iqitmegamenu-mobile .iqitmegamenu-accordion > li ul {
background-color: #f8f8f8; }
#iqitmegamenu-mobile .iqitmegamenu-accordion > li ul a {
display: block;
padding: 10px 0;
border-top: 1px dashed #dddddd; }
#iqitmegamenu-mobile .iqitmegamenu-accordion ul {
list-style: none;
padding: 0 0 0 0; }
#iqitmegamenu-mobile .iqitmegamenu-accordion ul li {
font-weight: normal;
cursor: auto;
padding: 0 0 0 7px; }
#iqitmegamenu-mobile .iqitmegamenu-accordion a {
text-decoration: none; }
#iqitmegamenu-mobile .iqitmegamenu-accordion a:hover {
text-decoration: none; }
#iqitmegamenu-accordion {
display: none; }
#iqitmegamenu-accordion div.responsiveInykator {
display: block;
font-weight: bold;
font-size: 24px;
float: right;
padding: 6px 0;
position: relative;
top: 7px;
width: 32px;
text-align: center;
cursor: pointer; }
#iqitmegamenu-accordion > li ul {
display: none; }
@media (max-width: 999px) {
#iqitmegamenu-accordion {
display: block; } }
#iqitmegamenu-accordion.cbp-spmenu div.responsiveInykator {
border: none; }
#iqitmegamenu-accordion.cbp-spmenu li a:hover {
-webkit-box-shadow: inset -134px 0px 10px -133px rgba(0, 0, 0, 0.4);
-moz-box-shadow: inset -134px 0px 10px -133px rgba(0, 0, 0, 0.4);
box-shadow: inset -134px 0px 10px -133px rgba(0, 0, 0, 0.4); }
#iqitmegamenu-accordion.cbp-spmenu > li a {
text-transform: uppercase;
font-weight: bold; }
#iqitmegamenu-accordion.cbp-spmenu > li ul{
padding: 0px 10px;
display: none;
font-size: 90%;
-webkit-box-shadow: inset -134px 0px 10px -133px rgba(0, 0, 0, 0.4);
-moz-box-shadow: inset -134px 0px 10px -133px rgba(0, 0, 0, 0.4);
box-shadow: inset -134px 0px 10px -133px rgba(0, 0, 0, 0.4); }
#iqitmegamenu-accordion > li ul.cbpm-ul-showed {
display: block; }
#iqitmegamenu-accordion.cbp-spmenu > li ul ul {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none; }
#iqitmegamenu-accordion.cbp-spmenu > li ul ul a:hover {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none; }
#iqitmegamenu-accordion.cbp-spmenu > li ul div.responsiveInykator {
background: none;
margin-right: 0px;
color: #fff;}
#iqitmegamenu-accordion.cbp-spmenu > li ul ul {
margin: 0px; }
#iqitmegamenu-accordion.cbp-spmenu > li ul ul a {
text-transform: none;
border: none; }
#iqitmegamenu-accordion.cbp-spmenu > li ul ul ul a {
text-transform: none;
font-weight: normal; }
#iqitmegamenu-mobile .iqitmegamenu-accordion li a {
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease; }
.cbp-spmenu div.responsiveInykator {
margin-right: 10px; }
#cbp-close-mobile {
padding: 0px;
text-align: center;
width: 50px;
height: 50px;
position: absolute;
left: -50px;
visibility: hidden;
opacity: 0;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
transition: all 0.3s ease;
border: none !important;
}
#cbp-close-mobile i {
line-height: 50px;
font-size: 28px; }
.cbp-spmenu-overlay {
position: fixed;
width: 100%;
height: 100%;
left: 0px;
top: 0px;
z-index: 5102;
visibility: hidden;
opacity: 0;
display: none; }
@media (max-width: 999px) {
.cbp-spmenu-overlay {
display: block; } }
.cbp-spmenu-overlay-show {
visibility: visible;
opacity: 1; }
.cbp-spmenu-overlay-show #cbp-close-mobile {
left: 240px;
visibility: visible;
opacity: 1;
}
.cbp-spmenu {
position: fixed;
z-index: 5103;
-webkit-box-shadow: inset -134px 0px 10px -133px rgba(0, 0, 0, 0.4);
-moz-box-shadow: inset -134px 0px 10px -133px rgba(0, 0, 0, 0.4);
box-shadow: inset -134px 0px 10px -133px rgba(0, 0, 0, 0.4);
overflow-y: auto;}
.cbp-spmenu h3 {
color: #afdefa;
font-size: 1.9em;
padding: 20px;
margin: 0;
font-weight: 300;
background: #0d77b6; }
.cbp-spmenu a {
display: block;
color: #fff;
font-size: 1.1em;
font-weight: 300; }
.cbp-spmenu > li > ul > li > a:hover {
margin-left: -10px;
margin-right: -10px;
padding-left: 23px; }
.cbp-spmenu a:active {
background: #afdefa;
color: #47a3da; }
/* Orientation-dependent styles for the content of the menu */
.cbp-spmenu-vertical {
width: 240px;
height: 100%;
top: 0; }
.cbp-spmenu-vertical a {
border-bottom: 1px solid #258ecd;
padding: 1em; }
/* Vertical menu that slides from the left or right */
.cbp-spmenu-left {
left: -240px; }
.cbp-spmenu-left.cbp-spmenu-open {
left: 0px; }
/* Push classes applied to the body */
.cbp-spmenu-push {
overflow-x: hidden;
position: relative;
left: 0; }
@media (max-width: 999px){
.cbp-spmenu-push-toright {
left: 240px;
width: 100%;
position: fixed;}
}
.cbp-spmenu-push-toleft {
left: -240px; }
/* Transitions */
.cbp-spmenu,
.cbp-spmenu-push {
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
transition: all 0.3s ease; }
/* Example media queries */
@media screen and (max-width: 55.1875em) {
.cbp-spmenu-top {
top: -110px; }
.cbp-spmenu-bottom {
bottom: -110px; } }
.container-xs-height {
display: table;
padding-left: 0px;
padding-right: 0px; }
.row-xs-height {
display: table-row; }
.row-xs-height:before {
display: none; }
.row-xs-height:after {
display: none; }
.col-xs-height {
display: table-cell;
float: none;
vertical-align: top; }
#iqitmegamenu-horizontal #search_block_top_content {
width: auto;
float: right;
position: relative;
width: 160px;
right: 0px; }
#iqitmegamenu-horizontal #search_block_top {
position: absolute;
top: 0px;
width: 150px;
right: 0px;
bottom: 0px;
margin: auto; }
@media (max-width: 999px) {
#iqitmegamenu-horizontal > .container {
position: relative; } }
@media (max-width: 767px) {
#iqitmegamenu-horizontal #search_block_top_content {
width: 100%;
margin-bottom: 10px; } }
@media (min-width: 768px) and (max-width: 999px) {
#iqitmegamenu-horizontal #search_block_top_content {
position: absolute;
right: 20px;
top: 10px;
bottom: 10px;
margin-right: 0px !important; } }
@media (max-width: 767px) {
#iqitmegamenu-horizontal #search_block_top {
left: 0px; } }
.cbp-hor-width-1 #iqitmegamenu-horizontal #search_block_top_content {
margin-right: 15px; }
@media (max-width: 767px) {
#iqitmegamenu-horizontal {
background: transparent !important;
border: none !important; } }
.cbp-hrmenu .col-xs-1, .cbp-hrmenu .col-xs-2, .cbp-hrmenu .col-xs-3, .cbp-hrmenu .col-xs-4, .cbp-hrmenu .col-xs-5, .cbp-hrmenu .col-xs-6, .cbp-hrmenu .col-xs-7, .cbp-hrmenu .col-xs-8, .cbp-hrmenu .col-xs-9, .cbp-hrmenu .col-xs-10, .cbp-hrmenu .col-xs-11, .cbp-hrmenu .col-xs-12, .cbp-hrmenu .col-sm-1, .cbp-hrmenu .col-sm-2, .cbp-hrmenu .col-sm-3, .cbp-hrmenu .col-sm-4,
.cbp-hrmenu .col-sm-5, .cbp-hrmenu .col-sm-6, .cbp-hrmenu .col-sm-7, .cbp-hrmenu .col-sm-8, .cbp-hrmenu .col-sm-9, .cbp-hrmenu .col-sm-10, .cbp-hrmenu .col-sm-11, .cbp-hrmenu .col-sm-12, .cbp-hrmenu .col-md-1, .cbp-hrmenu .col-md-2, .cbp-hrmenu .col-md-3, .cbp-hrmenu .col-md-4, .cbp-hrmenu .col-md-5, .cbp-hrmenu .col-md-6, .cbp-hrmenu .col-md-7, .cbp-hrmenu .col-md-8,
.cbp-hrmenu .col-md-9, .cbp-hrmenu .col-md-10, .cbp-hrmenu .col-md-11, .cbp-hrmenu .col-md-12, .cbp-hrmenu .col-lg-1, .cbp-hrmenu .col-lg-2, .cbp-hrmenu .col-lg-3, .cbp-hrmenu .col-lg-4, .cbp-hrmenu .col-lg-5, .cbp-hrmenu .col-lg-6, .cbp-hrmenu .col-lg-7, .cbp-hrmenu .col-lg-8, .cbp-hrmenu .col-lg-9, .cbp-hrmenu .col-lg-10, .cbp-hrmenu .col-lg-11, .cbp-hrmenu .col-lg-12
{
padding-left: 10px;
padding-right: 10px;
}
#iqitmegamenu-horizontal.cbp-nosticky .container{
max-width: 100%;
}
.cbp-hor-width-0 #iqitmegamenu-horizontal{
margin: 0 -500%;
padding: 0 500%;
}
.cbp-hor-width-0 #iqitmegamenu-horizontal .container{
padding-left: 10px;
padding-right: 10px;
}
.cbp-hor-width-0 #iqitmegamenu-horizontal.cbp-sticky{
margin: 0px;
padding: 0px;
}
body{
overflow-x: hidden;
}
.col-xs-15,
.col-sm-15,
.col-md-15,
.col-lg-15 {
position: relative;
min-height: 1px;
padding-right: 10px;
padding-left: 10px;
}
.col-xs-15 {
width: 20%;
float: left;
}
@media (min-width: 768px) {
.col-sm-15 {
width: 20%;
float: left;
}
}
@media (min-width: 992px) {
.col-md-15 {
width: 20%;
float: left;
}
}
@media (min-width: 1200px) {
.col-lg-15 {
width: 20%;
float: left;
}
}

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
#iqitmegamenu-horizontal{ background-color: ; } .cbp-horizontal .cbp-legend{ background-color: ; color: ; } .cbp-horizontal .cbp-legend .cbp-legend-arrow{ color: ; } .cbp-horizontal > ul > li.cbp-hropen > a, .cbp-horizontal > ul > li.cbp-hropen > a:hover{ background-color: ; color: ; } .cbp-horizontal > ul > li > a, .cbp-horizontal > ul > li > span.cbp-main-link{ color: ; line-height: px; padding-left: px; max-width: px; padding-right: px; font-size: px; } .cbp-horizontal .cbp-tab-title{ line-height: 1px; } @media (min-width: 1320px){ .cbp-horizontal .cbp-tab-title{ line-height: 1px; } .cbp-horizontal > ul > li > a, .cbp-horizontal > ul > li > span.cbp-main-link{ font-size: px; padding-left: px; padding-right: px; } } .cbp-vertical-on-top .cbp-vertical-title{ line-height: px; } .cbp-horizontal > ul > li > a .cbp-mainlink-icon, .cbp-horizontal > ul > li > a .cbp-mainlink-iicon{ font-size: px; max-height: px; } .cbp-hrmenu .cbp-hrsub-inner, .cbp-hrmenu ul.cbp-hrsub-level2, .cbp-hrsub-haslevel3 > .cbp-category-link-w > ul { background-color: ; } .cbp-hrmenu .cbp-triangle-top{ border-bottom-color: ; top: px; } .cbp-hrmenu .cbp-triangle-left, #columns .cbp-hrmenu .cbp-triangle-left{ border-right-color: ; left: px; } .cbp-hrmenu .cbp-triangle-top-back{} .cbp-hrmenu .cbp-triangle-left-back, #columns .cbp-hrmenu .cbp-triangle-left-back{} .cbp-hrmenu .menu_column { border-color: ; } .cbp-hrmenu .cbp-hrsub-tabs-names li .cbp-inner-border-hider{ width: px; right: 0px; } .cbp-hrmenu .cbp-hrsub-tabs-names li{ } .cbp-hrmenu .cbp-tab-pane{ } .is_rtl .cbp-hrmenu .cbp-tab-pane{ } .cbp-hrmenu .cbp-hrsub-inner .cbp-column-title, .cbp-hrmenu .cbp-hrsub-inner a.cbp-column-title:link { font-size: px; line-height: 4px; color: ; } .cbp-hrmenu .cbp-hrsub-inner a.cbp-column-title:hover { color: ; } .cbp-hrmenu .cbp-hrsub-inner{ font-size: px; line-height: 4px; color: ; } .cbp-hrmenu .cbp-hrsub-inner a, .cbp-hrmenu .cbp-hrsub-inner a:link{ color: ; } .cbp-hrmenu .cbp-hrsub-inner a:hover{ color: ; } .cbp-hrmenu .cbp-links li a:before{ display: none; } .cbp-hrmenu .cbp-links li, .cbp-hrmenu .cbp-links li a { padding-left: 0px; } .cbp-hrmenu .cbp-links li.cbp-hrsub-haslevel2 > a:after{ display: none; } .cbp-vertical-title{ background-color: ; color: ; font-size: px; line-height: px; } .cbp-vertical-title:hover{ background-color: ; color: ; } .cbp-hrmenu.cbp-vertical > ul{ background-color: ; } .cbp-vertical .cbp-legend{ background-color: ; color: ; } .cbp-vertical .cbp-legend .cbp-legend-arrow{ color: ; } .cbp-vertical > ul > li.cbp-hropen > a, .cbp-vertical > ul > li.cbp-hropen > a:hover{ background-color: ; color: ; } .cbp-vertical > ul > li > a, .cbp-vertical > ul > li > span.cbp-main-link{ color: ; padding-top: px; padding-bottom: px; font-size: px; } .cbp-vertical > ul > li > a .cbp-mainlink-icon, .cbp-vertical > ul > li > a .cbp-mainlink-iicon{ font-size: px; max-height: px; }.cbp-hrmenu .cbp-hrsub-inner .cbp-tabs-names li a { background-color: ; color: ; } .cbp-hrmenu .cbp-submenu-it-indicator{ color: ;} .cbp-tabs-names li a:hover, .cbp-hrmenu .cbp-hrsub-tabs-names li.active a, .cbp-tabs-names li .cbp-inner-border-hider { background-color: ; color: ; } .cbp-hrmenu li.active .cbp-submenu-it-indicator{ color: ;} #iqitmegamenu-mobile #iqitmegamenu-shower, #cbp-close-mobile { background-color: ; color: ; } #iqitmegamenu-mobile .iqitmegamenu-icon{ color: ; background-color: ; } .cbp-mobilesubmenu{ background-color: ; color: ; } #iqitmegamenu-accordion{ background-color: ; color: ; } #iqitmegamenu-mobile .iqitmegamenu-accordion > li ul{ background-color: ; } #iqitmegamenu-accordion.cbp-spmenu > li ul{ background-color: ; } #iqitmegamenu-mobile .iqitmegamenu-accordion > li ul a{ } #iqitmegamenu-mobile .iqitmegamenu-accordion > li{ } .cbp-spmenu-vertical a{ } #iqitmegamenu-accordion.cbp-spmenu > li ul div.responsiveInykator{ color: ; } #iqitmegamenu-mobile .iqitmegamenu-accordion li a, .cbp-spmenu a{ color: ; } #iqitmegamenu-mobile .iqitmegamenu-accordion li a:hover{ color: ; background-color: ; padding-left: 10px; } .cbp-spmenu a:hover{ color: ; background-color: ; } #iqitmegamenu-accordion div.responsiveInykator{ color: ; background-color: ; }

View File

@@ -0,0 +1,112 @@
.cbp-hrmenu .cbp-submenu-aindicator {
margin-left: 0px;
margin-right: 3px; }
.cbp-hrmenu .cbp-mainlink-iicon, .cbp-hrmenu .cbp-mainlink-icon {
margin-right: 0px;
margin-left: 4px;
float: right; }
.cbp-hrmenu .cbp-vertical-title .icon {
margin-left: 10px;
margin-right: 0px; }
.cbp-vertical-on-top {
float: right; }
.cbp-hrmenu > ul > li {
float: right;
direction: ltr !important; }
.cbp-hrmenu .cbp-links li {
padding-left: 0px;
padding-right: 2px; }
.cbp-hrmenu .cbp-links li a {
padding-right: 10px;
padding-left: 0px; }
.cbp-hrmenu .cbp-hrsub, .cbp-horizontal > ul > li > a, .cbp-horizontal > ul > li > span.cbp-main-link {
direction: rtl !important; }
#iqitmegamenu-horizontal #search_block_top_content {
float: left; }
.cbp-hrmenu.cbp-vertical .cbp-hrsub-wrapper {
right: 0px; }
.cbp-hrmenu.cbp-menu-centered > ul > li {
text-align: right; }
.cbp-hrmenu .cbp-links li a:before {
left: auto;
right: 0px;
content: "\f104"; }
.cbp-hrmenu .cbp-links li a:hover:before {
left: auto;
right: 3px; }
.cbp-hrmenu .cbp-links li.cbp-hrsub-haslevel2 > a:after {
content: "\f0d9";
float: left;
padding-left: 0px;
padding-right: 4px; }
.cbp-hrmenu .cbp-submenu-it-indicator {
left: 10px;
right: auto; }
.cbp-hrmenu .cbp-submenu-it-indicator:before {
content: "\f104"; }
.cbp-hrmenu .cbp-hrsub-tabs-names li .cbp-inner-border-hider {
left: -1px;
right: auto; }
.cbp-hrmenu .cbp-products-list .product-image-container {
float: right;
margin-right: 0px;
margin-left: 10px; }
.cbp-hrmenu .cbp-triangle-top {
left: 0px; }
.cbp-hrmenu .cbp-tab-pane {
border-left: none !important; }
.cbp-hrmenu.cbp-vertical .cbp-submenu-aindicator {
left: 8px;
right: auto; }
.cbp-hrmenu.cbp-vertical .cbp-submenu-aindicator:before {
content: "\f104"; }
#cbp-hrmenu1 .cbp-triangle-container {
left: auto;
right: 0px;
transform: rotateY(180deg);
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
-ms-transform: rotateY(180deg); }
.cbp-vertical.cbp-arrowed .cbp-hrsub-inner {
margin-left: 0px;
margin-right: 12px; }
#responsiveMenuShower {
text-align: right; }
#responsiveMenuShower div.responsiveInykator2 {
float: right;
margin-left: 10px;
margin-right: 0px; }
#responsiveAccordion {
text-align: right; }
#responsiveAccordion div.responsiveInykator {
float: left;
left: 4px;
right: auto; }
#responsiveAccordion ul li {
padding: 0 7px 0 0px; }

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 433 KiB

View File

@@ -0,0 +1,24 @@
<?php
/**
* 2007-2015 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2015 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*
*/
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,24 @@
<?php
/**
* 2007-2015 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2015 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*
*/
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,836 @@
/**
* 2014-2017 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2017 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*
*/
$(document).ready(function () {
var $myHorizontalTabs = $('#tabs1');
$myHorizontalTabs.sortable({
opacity: 0.6,
cursor: 'move',
update: function() {
var order = $(this).sortable('serialize') + "&action=updateHorizontalTabsPosition&ajax=true";
$.post(iqitsearch_url, order);
}
});
$myHorizontalTabs.hover(function() {
$(this).css("cursor","move");
},
function() {
$(this).css("cursor","auto");
});
var $myVerticalTabs = $('#tabs2');
$myVerticalTabs.sortable({
opacity: 0.6,
cursor: "move",
update: function() {
var order = $(this).sortable("serialize") + "&action=updateVerticalTabsPosition&ajax=true";
$.post(iqitsearch_url, order);
}
});
$myVerticalTabs.hover(function() {
$(this).css("cursor","move");
},
function() {
$(this).css("cursor","auto");
});
$('.list-wrapper').detach().prependTo('#list-container');
$('.icp-auto').iconpicker({
iconBaseClass: 'icon',
iconComponentBaseClass: 'icon',
iconClassPrefix: 'fa-'
});
var p_auto_settings = {
minChars: 1,
cache: 0,
source: function(term, response){
$.getJSON(iqitsearch_url, { q: term, ajax: true, action: 'SearchProducts' }, function(data){ response(data); });
},
renderItem: function (item, search){
return '<div class="autocomplete-suggestion" data-id="' + item.id + '" data-name="' + item.name + '">' +
'<img src="' + item.image + '" style="width: 30px; max-height: 100%; margin-right: 5px; border: 1px dotted #cecece; display: inline-block; vertical-align: middle;" />(ID: ' + item.id + ') ' + item.name + '</div>';
},
onSelect: function(e, term, item){
item.parents('.products-wrapper').first().find('.select-products-ids').first().append('<option value="' + item.data('id') + '">' + '(ID: ' + item.data('id') + ') ' + item.data('name') + '</option>');
}
};
$('.product-autocomplete').autoCompleteIq(p_auto_settings);
//fix for tinymce source code edit
$(document).on('focusin', function (e) {
if ($(e.target).closest(".mce-window").length) {
e.stopImmediatePropagation();
}
});
/**
* Grid creator
* type = 1 = row
* type = 2 = column
*/
//first rows sortable init
$('.first-rows-wrapper').sortable({
items: ".first_rows",
placeholder: "row-placeholder",
handle: ".dragger-handle"
});
//$( '.first-rows-wrapper' ).disableSelection();
//menu row sortable init
$('.menu_row').sortable({
items: ".menu_column",
handle: ".dragger-handle",
forcePlaceholderSize: true,
placeholder: "col-placeholder",
start: function (e, ui) {
ui.placeholder.height(ui.item.outerHeight());
ui.placeholder.addClass('col-xs-' + ui.item.data('width'));
},
connectWith: ".menu_row"
});
//$( '.menu_row' ).disableSelection();
//menu column sortable init
$('.menu_column').sortable({
items: ".menu_row",
handle: ".dragger-handle",
placeholder: "row-placeholder",
connectWith: ".menu_column"
});
//$( '.menu_column' ).disableSelection();
//bind sort update
$('.first-rows-wrapper').on('sortupdate', function (event, ui) {
tmpelementId1 = ui.item.data('elementId');
if (typeof ui.item.parent().data('elementId') === 'undefined') {
tmpparentId = 0;
}
;
tmpparentId = ui.item.parent().data('elementId');
if (submenu_content.hasOwnProperty(tmpelementId1)) {
submenu_content[tmpelementId1].parentId = tmpparentId;
}
updateElementsPositions();
});
//set column width
$('.grid_creator').on('change', '.select-column-width', function () {
$element = $(this).parent().parent().parent();
tmpelementId = $element.data('elementId');
$element.removeClass('col-xs-' + $element.data('width'));
$element.addClass('col-xs-' + this.value);
$element.data('width', this.value);
if (submenu_content.hasOwnProperty(tmpelementId)) {
submenu_content[tmpelementId].width = parseInt(this.value);
}
});
//open content modal
$('.grid_creator').on('click', '.column-content-edit', function () {
$($(this).parent().parent().find('.column-content-modal').first()).modal({
keyboard: false
});
});
//colum type
$('.grid_creator').on('change', '.select-column-content', function () {
$element = $(this).parents('.menu_column').first();
elmid = $element.data('elementId');
if (submenu_content.hasOwnProperty(elmid)) {
submenu_content[elmid].contentType = parseInt(this.value);
}
setContentForm($element, this.value);
});
//set content options
$('.grid_creator').on('hidden.bs.modal', '.column-content-modal', function (e) {
modid = $(this).parents('.menu_column').first().data('elementId');
if (submenu_content.hasOwnProperty(modid)) {
delete submenu_content[modid].content;
}
switch (parseInt($(this).find('.select-column-content').first().val())) {
case 1:
setHtmlContent(this, modid);
break;
case 2:
setCategoriesContent(this, modid);
break;
case 3:
setLinksContent(this, modid);
break;
case 4:
setProductsContent(this, modid);
break;
case 5:
setManufacturersContent(this, modid);
break;
case 6:
setImagesContent(this, modid);
break;
case 7:
setSuppliersContent(this, modid);
break;
}
setColumnStyle(this, modid);
});
function setCategoriesContent(modal, elmid) {
column_content = {};
if (ids = $(modal).find('.select-categories-ids').first().val()) {
column_content.ids = ids;
column_content.treep = parseInt($(modal).find('.select-categories-treep').first().val());
column_content.thumb = parseInt($(modal).find('.select-categories-thumb').first().val());
column_content.depth = parseInt($(modal).find('.select-categories-depth').first().val());
column_content.line = parseInt($(modal).find('.select-categories-line').first().val());
column_content.sublimit = parseInt($(modal).find('.select-categories-sublimit').first().val());
}
if (submenu_content.hasOwnProperty(elmid)) {
submenu_content[elmid].content = column_content;
}
}
function getMeta(url) {
var img = new Image();
img.src = url;
var size = {};
img.addEventListener("load", function () {
size['w'] = this.naturalWidth;
size['h'] = this.naturalHeight;
return size;
});
return size;
}
function setImagesContent(modal, elmid) {
column_content = {};
source = {};
href = {};
alt = {};
size = {};
if (typeof languages != "undefined") {
languages.forEach(function (jsLang) {
source[jsLang.id_lang] = $(modal).find('.image-source-' + jsLang.id_lang).first().val();
href[jsLang.id_lang] = $(modal).find('.image-href-' + jsLang.id_lang).first().val();
alt[jsLang.id_lang] = $(modal).find('.image-alt-' + jsLang.id_lang).first().val();
size[jsLang.id_lang] = getMeta(source[jsLang.id_lang]);
});
} else {
source[id_language] = $(modal).find('.image-source-' + id_language).first().val();
href[id_language] = $(modal).find('.image-href-' + id_language).first().val();
alt[id_language] = $(modal).find('.image-alt-' + id_language).first().val();
size[id_language] = getMeta(source[id_language]);
}
column_content.source = source;
column_content.href = href;
column_content.alt = alt;
column_content.size = size;
if (absolute = parseInt($(modal).find('.select-image-absolute').first().val())) {
column_content.absolute = 1;
column_content.i_a_t = $(modal).find('.image-absolute-t').first().val();
column_content.i_a_r = $(modal).find('.image-absolute-r').first().val();
column_content.i_a_b = $(modal).find('.image-absolute-b').first().val();
column_content.i_a_l = $(modal).find('.image-absolute-l').first().val();
}
if (submenu_content.hasOwnProperty(elmid)) {
submenu_content[elmid].content = column_content;
}
}
function setProductsContent(modal, elmid) {
column_content = {};
if (ids = serialize_productsselect($(modal).find('.select-products-ids').first().find('option'))) {
column_content.ids = ids;
column_content.line = parseInt($(modal).find('.select-products-line').first().val());
column_content.view = parseInt($(modal).find('.select-products-view').first().val());
}
if (submenu_content.hasOwnProperty(elmid)) {
submenu_content[elmid].content = column_content;
}
}
function setManufacturersContent(modal, elmid) {
column_content = {};
if (ids = $(modal).find('.select-manufacturers-ids').first().val()) {
column_content.ids = ids;
column_content.line = parseInt($(modal).find('.select-manufacturers-line').first().val());
}
if (submenu_content.hasOwnProperty(elmid)) {
submenu_content[elmid].content = column_content;
}
}
function setSuppliersContent(modal, elmid) {
column_content = {};
if (ids = $(modal).find('.select-suppliers-ids').first().val()) {
column_content.ids = ids;
column_content.line = parseInt($(modal).find('.select-suppliers-line').first().val());
}
if (submenu_content.hasOwnProperty(elmid)) {
submenu_content[elmid].content = column_content;
}
}
function setLinksContent(modal, elmid) {
column_content = {};
if (ids = $(modal).find('.select-links-ids').first().val()) {
column_content.ids = ids;
column_content.view = parseInt($(modal).find('.select-links-view').first().val());
}
if (submenu_content.hasOwnProperty(elmid)) {
submenu_content[elmid].content = column_content;
}
}
function setHtmlContent(modal, elmid) {
column_content = {};
if (ids = $(modal).find('.select-customhtml').first().val()) {
column_content.ids = ids;
}
if (submenu_content.hasOwnProperty(elmid)) {
submenu_content[elmid].content = column_content;
}
}
function setColumnStyle(modal, elmid) {
submenu_style = {};
title = {};
href = {};
legend = {};
if (typeof languages != "undefined") {
languages.forEach(function (jsLang) {
title[jsLang.id_lang] = $(modal).find('.column-title-' + jsLang.id_lang).first().val();
href[jsLang.id_lang] = $(modal).find('.column-href-' + jsLang.id_lang).first().val();
legend[jsLang.id_lang] = $(modal).find('.column-legend-' + jsLang.id_lang).first().val();
});
} else {
title[id_language] = $(modal).find('.column-title-' + id_language).first().val();
href[id_language] = $(modal).find('.column-href-' + id_language).first().val();
legendf[id_language] = $(modal).find('.column-legen-' + id_language).first().val();
}
submenu_style.title = title;
submenu_style.href = href;
submenu_style.legend = legend;
if (bgcolor = $(modal).find('.column_bg_color').first().val())
submenu_style.bg_color = bgcolor;
if (legend_bg = $(modal).find('.legend_bg').first().val())
submenu_style.legend_bg = legend_bg;
if (legend_txt = $(modal).find('.legend_txt').first().val())
submenu_style.legend_txt = legend_txt;
if (title_borderc = $(modal).find('.title_borderc').first().val())
submenu_style.title_borderc = title_borderc;
if (title_color = $(modal).find('.title_color').first().val())
submenu_style.title_color = title_color;
if (title_colorh = $(modal).find('.title_colorh').first().val())
submenu_style.title_colorh = title_colorh;
if (txt_color = $(modal).find('.txt_color').first().val())
submenu_style.txt_color = txt_color;
if (txt_colorh = $(modal).find('.txt_colorh').first().val())
submenu_style.txt_colorh = txt_colorh;
if (br_top_st = parseInt($(modal).find('.br_top_st').first().val())) {
submenu_style.br_top_st = br_top_st;
submenu_style.br_top_wh = parseInt($(modal).find('.br_top_wh').first().val());
submenu_style.br_top_c = $(modal).find('.br_top_c').first().val();
}
if (br_right_st = parseInt($(modal).find('.br_right_st').first().val())) {
submenu_style.br_right_st = br_right_st;
submenu_style.br_right_wh = parseInt($(modal).find('.br_right_wh').first().val());
submenu_style.br_right_c = $(modal).find('.br_right_c').first().val();
}
if (br_bottom_st = parseInt($(modal).find('.br_bottom_st').first().val())) {
submenu_style.br_bottom_st = br_bottom_st;
submenu_style.br_bottom_wh = parseInt($(modal).find('.br_bottom_wh').first().val());
submenu_style.br_bottom_c = $(modal).find('.br_bottom_c').first().val();
}
if (br_left_st = parseInt($(modal).find('.br_left_st').first().val())) {
submenu_style.br_left_st = br_left_st;
submenu_style.br_left_wh = parseInt($(modal).find('.br_left_wh').first().val());
submenu_style.br_left_c = $(modal).find('.br_left_c').first().val();
}
//paddings
if ($(modal).find('.c-padding-top').first().prop('checked'))
submenu_style.c_p_t = 1;
if ($(modal).find('.c-padding-right').first().prop('checked'))
submenu_style.c_p_r = 1;
if ($(modal).find('.c-padding-bottom').first().prop('checked'))
submenu_style.c_p_b = 1;
if ($(modal).find('.c-padding-left').first().prop('checked'))
submenu_style.c_p_l = 1;
//margins
if ($(modal).find('.c-margin-top').first().prop('checked'))
submenu_style.c_m_t = 1;
if ($(modal).find('.c-margin-right').first().prop('checked'))
submenu_style.c_m_r = 1;
if ($(modal).find('.c-margin-bottom').first().prop('checked'))
submenu_style.c_m_b = 1;
if ($(modal).find('.c-margin-left').first().prop('checked'))
submenu_style.c_m_l = 1;
if (submenu_content.hasOwnProperty(elmid)) {
submenu_content[elmid].content_s = submenu_style;
}
}
function serialize_productsselect(element) {
options = [];
element.each(function (i) {
options[i] = $(this).val();
});
return uniqProducts(options);
}
function uniqProducts(a) {
var prims = {"boolean": {}, "number": {}, "string": {}}, objs = [];
return a.filter(function (item) {
var type = typeof item;
if (type in prims)
return prims[type].hasOwnProperty(item) ? false : (prims[type][item] = true);
else
return objs.indexOf(item) >= 0 ? false : objs.push(item);
});
}
function setContentForm($element, val) {
$element.find('.column-content-info').first().text($element.find('.select-column-content option[value="' + parseInt(val) + '"]').first().text());
switch (parseInt(val)) {
case 0:
$element.find('.content-options-wrapper').hide();
break;
case 1:
$element.find('.content-options-wrapper').not('.htmlcontent-wrapper').hide();
$element.find('.htmlcontent-wrapper').show();
break;
case 2:
$element.find('.content-options-wrapper').not('.categorytree-wrapper').hide();
$element.find('.categorytree-wrapper').show();
break;
case 3:
$element.find('.content-options-wrapper').not('.va-links-wrapper').hide();
$element.find('.va-links-wrapper').show();
break;
case 4:
$element.find('.content-options-wrapper').not('.products-wrapper').hide();
$element.find('.products-wrapper').show();
break;
case 5:
$element.find('.content-options-wrapper').not('.manufacturers-wrapper').hide();
$element.find('.manufacturers-wrapper').show();
break;
case 6:
$element.find('.content-options-wrapper').not('.column-image-wrapper').hide();
$element.find('.column-image-wrapper').show();
break;
case 7:
$element.find('.content-options-wrapper').not('.suppliers-wrapper').hide();
$element.find('.suppliers-wrapper').show();
break;
}
}
//init submenu elements
var submenu_content = {};
var elementId = 0;
if ($('#submenu-elements').length) {
var prev_submenu_val = $('#submenu-elements').val();
if (prev_submenu_val.length !== 0) {
var old_submenu_content = JSON.parse(prev_submenu_val);
$.extend(submenu_content, old_submenu_content);
var ids = $(".menu-element").map(function () {
return parseInt($(this).data('element-id'), 10);
}).get();
elementId = Math.max.apply(Math, ids);
}
}
$('.menu_column').each(function () {
$(this).find('.column_bg_color-' + $(this).data('element-id')).first().mColorPicker();
$(this).find('.legend_bg-' + $(this).data('element-id')).first().mColorPicker();
$(this).find('.legend_txt-' + $(this).data('element-id')).first().mColorPicker();
$(this).find('.br_top_c-' + $(this).data('element-id')).first().mColorPicker();
$(this).find('.br_right_c-' + $(this).data('element-id')).first().mColorPicker();
$(this).find('.br_bottom_c-' + $(this).data('element-id')).first().mColorPicker();
$(this).find('.br_left_c-' + $(this).data('element-id')).first().mColorPicker();
$(this).find('.title_borderc-' + $(this).data('element-id')).first().mColorPicker();
$(this).find('.title_color-' + $(this).data('element-id')).first().mColorPicker();
$(this).find('.title_colorh-' + $(this).data('element-id')).first().mColorPicker();
$(this).find('.txt_color-' + $(this).data('element-id')).first().mColorPicker();
$(this).find('.txt_colorh-' + $(this).data('element-id')).first().mColorPicker();
setContentForm($(this), $(this).data('contenttype'));
});
//add first row button
$('#buttons-sample').on('click', '.add-row-action', function () {
$parentElement = $(this).parent().parent().parent().find('.first-rows-wrapper');
$parentElement.append('<div data-element-type="1" data-depth="0" data-element-id="' + (++elementId) + '" class="row menu_row first_rows menu-element menu-element-id-' + (elementId) + '">' + $('#buttons-sample').html() + '</div>');
$('.menu-element-id-' + elementId).sortable({
items: ".menu_column",
handle: ".dragger-handle",
connectWith: ".menu_row",
placeholder: "col-placeholder",
});
//$( '.menu-element-id-' + elementId).disableSelection();
position = $parentElement.children().length;
var newElement = {
'elementId': elementId,
'type': 1,
'depth': 0,
'position': position,
'parentId': 0
};
submenu_content[elementId] = newElement;
});
//add row button
$('.grid_creator').on('click', '.menu-element .add-row-action', function () {
parentId = $(this).parent().parent().data("element-id");
depth = $(this).parent().parent().data("depth") + 1;
$parentElement = $(this).parent().parent();
$parentElement.append('<div data-element-type="1" data-depth="' + depth + '" data-element-id="' + (++elementId) + '" class="row menu_row menu-element menu-element-id-' + (elementId) + '">' + $('#buttons-sample').html() + ' </div>');
$('.menu-element-id-' + elementId).sortable({
items: ".menu_column",
handle: ".dragger-handle",
placeholder: "col-placeholder",
connectWith: ".menu_row"
});
//$( '.menu-element-id-' + elementId).disableSelection();
position = $parentElement.children().length;
var newElement = {
'elementId': elementId,
'type': 1,
'depth': depth,
'position': position,
'parentId': parentId
};
submenu_content[elementId] = newElement;
});
//clone column
$('.grid_creator').on('click', ' .duplicate-element-action', function () {
$brotherElement = $(this).parents('.menu-element').first();
brotherId = $brotherElement.data('element-id');
if (submenu_content.hasOwnProperty(brotherId)) {
clonedElement = clone(submenu_content[brotherId]);
clonedElement.elementId = ++elementId;
$cloneElement = $brotherElement.clone(true);
$cloneElement.data('element-id', elementId);
$cloneElement.removeClass('menu-element-id-' + brotherId);
$cloneElement.addClass('menu-element-id-' + elementId).appendTo($brotherElement.parent());
submenu_content[elementId] = clonedElement;
}
});
//add column button
$('.grid_creator').on('click', '.menu-element .add-column-action', function () {
parentId = $(this).parent().parent().data('element-id');
depth = $(this).parent().parent().data("depth") + 1;
$parentElement = $(this).parent().parent();
$parentElement.append('<div data-element-type="2" data-depth="' + depth + '" data-width="3" data-element-id="' + (++elementId) + '" class="col-xs-3 menu_column menu-element menu-element-id-' + (elementId) + '">' + $('#buttons-sample').html() + $('#column-content-sample').html() + '</div>');
$('.menu-element-id-' + elementId).sortable({
items: ".menu_row",
handle: ".dragger-handle",
placeholder: "row-placeholder",
connectWith: ".menu_column"
});
//$( '.menu-element-id-' + elementId).disableSelection();
position = $parentElement.children().length;
var newElement = {
'elementId': elementId,
'type': 2,
'depth': depth,
'width': 3,
'contentType': 0,
'position': position,
'parentId': parentId
};
$('.menu-element-id-' + elementId + ' .column_bg_color').addClass('column_bg_color-' + elementId);
$('.menu-element-id-' + elementId + ' .column_bg_color-' + elementId).mColorPicker();
$('.menu-element-id-' + elementId + ' .legend_bg').addClass('legend_bg-' + elementId);
$('.menu-element-id-' + elementId + ' .legend_bg-' + elementId).mColorPicker();
$('.menu-element-id-' + elementId + ' .legend_txt').addClass('legend_txt-' + elementId);
$('.menu-element-id-' + elementId + ' .legend_txt-' + elementId).mColorPicker();
$('.menu-element-id-' + elementId + ' .br_top_c').addClass('br_top_c-' + elementId);
$('.menu-element-id-' + elementId + ' .br_top_c-' + elementId).mColorPicker();
$('.menu-element-id-' + elementId + ' .br_right_c').addClass('br_right_c-' + elementId);
$('.menu-element-id-' + elementId + ' .br_right_c-' + elementId).mColorPicker();
$('.menu-element-id-' + elementId + ' .br_bottom_c').addClass('br_bottom_c-' + elementId);
$('.menu-element-id-' + elementId + ' .br_bottom_c-' + elementId).mColorPicker();
$('.menu-element-id-' + elementId + ' .br_left_c').addClass('br_left_c-' + elementId);
$('.menu-element-id-' + elementId + ' .br_left_c-' + elementId).mColorPicker();
$('.menu-element-id-' + elementId + ' .title_borderc').addClass('title_borderc-' + elementId);
$('.menu-element-id-' + elementId + ' .title_borderc-' + elementId).mColorPicker();
$('.menu-element-id-' + elementId + ' .title_color').addClass('title_color-' + elementId);
$('.menu-element-id-' + elementId + ' .title_color-' + elementId).mColorPicker();
$('.menu-element-id-' + elementId + ' .title_colorh').addClass('title_colorh-' + elementId);
$('.menu-element-id-' + elementId + ' .title_colorh-' + elementId).mColorPicker();
$('.menu-element-id-' + elementId + ' .txt_color').addClass('txt_color-' + elementId);
$('.menu-element-id-' + elementId + ' .txt_color-' + elementId).mColorPicker();
$('.menu-element-id-' + elementId + ' .txt_colorh').addClass('txt_colorh-' + elementId);
$('.menu-element-id-' + elementId + ' .txt_colorh-' + elementId).mColorPicker();
$('.menu-element-id-' + elementId + ' .image-source').attr('id', elementId + '-image-source-' + $(this).data('lang-id'));
$('.menu-element-id-' + elementId + ' .image-source').each(function () {
$(this).attr('id', elementId + '-image-source-' + $(this).data('lang-id'));
$(this).parent().find('.iframe-column-upload').data('input-name', elementId + '-image-source-' + $(this).data('lang-id'));
});
$('.menu-element-id-' + elementId + ' .rte').each(function () {
$(this).attr('id', elementId + '-htmlcontent-' + $(this).data('lang-id'));
});
submenu_content[elementId] = newElement;
setContentForm($('.menu-element-id-' + elementId), 0);
$('.menu-element-id-' + elementId + ' .product-autocomplete').autoCompleteIq(p_auto_settings);
});
//remove element button
$('.grid_creator').on('click', '.remove-element-action', function () {
deleteId = $(this).parent().parent().data('element-id');
$(this).parent().parent().remove();
delete submenu_content[deleteId];
deleteMenuElelement(deleteId)
});
//pass submenu to input field
$('button[name="submitAddTab"]').on("click", function () {
if ($.isEmptyObject(submenu_content))
$('#submenu-elements').val('');
else
$('#submenu-elements').val(encodeURIComponent(JSON.stringify(submenu_content)));
});
//remove product fromc olumn
$('.grid_creator').on('click', '.remove-products-ids', function () {
$(this).parent().find('.select-products-ids option:selected').each(function (i) {
$(this).remove();
});
});
//delete menu elements recursivly
function deleteMenuElelement(id) {
for (var key in submenu_content) {
if (submenu_content.hasOwnProperty(key)) {
if (submenu_content[key].parentId == id) {
tmpelid = submenu_content[key].elementId;
delete submenu_content[key];
deleteMenuElelement(tmpelid);
}
}
}
}
//update all menu positions after drag and drop
function updateElementsPositions() {
for (var key in submenu_content) {
if (submenu_content.hasOwnProperty(key)) {
submenu_content[key].position = $('.menu-element-id-' + submenu_content[key].elementId).index();
}
}
}
function clone(src) {
function mixin(dest, source, copyFunc) {
var name, s, i, empty = {};
for (name in source) {
// the (!(name in empty) || empty[name] !== s) condition avoids copying properties in "source"
// inherited from Object.prototype. For example, if dest has a custom toString() method,
// don't overwrite it with the toString() method that source inherited from Object.prototype
s = source[name];
if (!(name in dest) || (dest[name] !== s && (!(name in empty) || empty[name] !== s))) {
dest[name] = copyFunc ? copyFunc(s) : s;
}
}
return dest;
}
if (!src || typeof src != "object" || Object.prototype.toString.call(src) === "[object Function]") {
// null, undefined, any non-object, or function
return src; // anything
}
if (src.nodeType && "cloneNode" in src) {
// DOM Node
return src.cloneNode(true); // Node
}
if (src instanceof Date) {
// Date
return new Date(src.getTime()); // Date
}
if (src instanceof RegExp) {
// RegExp
return new RegExp(src); // RegExp
}
var r, i, l;
if (src instanceof Array) {
// array
r = [];
for (i = 0, l = src.length; i < l; ++i) {
if (i in src) {
r.push(clone(src[i]));
}
}
// we don't clone functions for performance reasons
// }else if(d.isFunction(src)){
// // function
// r = function(){ return src.apply(this, arguments); };
} else {
// generic objects
r = src.constructor ? new src.constructor() : {};
}
return mixin(r, src, clone);
}
});

View File

@@ -0,0 +1,24 @@
/**
* 2014-2017 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2017 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*
*/
/*!
* Bootstrap v3.3.4 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=996541fddb4cc32bdd52)
* Config saved to config.json and https://gist.github.com/996541fddb4cc32bdd52
*/
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var a=t.fn.jquery.split(" ")[0].split(".");if(a[0]<2&&a[1]<9||1==a[0]&&9==a[1]&&a[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(t){"use strict";function a(a){return this.each(function(){var n=t(this),r=n.data("bs.tab");r||n.data("bs.tab",r=new e(this)),"string"==typeof a&&r[a]()})}var e=function(a){this.element=t(a)};e.VERSION="3.3.2",e.TRANSITION_DURATION=150,e.prototype.show=function(){var a=this.element,e=a.closest("ul:not(.dropdown-menu)"),n=a.data("target");if(n||(n=a.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!a.parent("li").hasClass("active")){var r=e.find(".active:last a"),i=t.Event("hide.bs.tab",{relatedTarget:a[0]}),s=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(i),a.trigger(s),!s.isDefaultPrevented()&&!i.isDefaultPrevented()){var o=t(n);this.activate(a.closest("li"),e),this.activate(o,o.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:a[0]}),a.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},e.prototype.activate=function(a,n,r){function i(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),a.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade"),a.parent(".dropdown-menu").length&&a.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var s=n.find("> .active"),o=r&&t.support.transition&&(s.length&&s.hasClass("fade")||!!n.find("> .fade").length);s.length&&o?s.one("bsTransitionEnd",i).emulateTransitionEnd(e.TRANSITION_DURATION):i(),s.removeClass("in")};var n=t.fn.tab;t.fn.tab=a,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var r=function(e){e.preventDefault(),a.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery);

View File

@@ -0,0 +1,31 @@
/**
* 2014-2017 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2017 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*
*/
/**
* jquery.matchHeight-min.js v0.5.2
* http://brm.io/jquery-match-height/
* License: MIT
*/
(function(c){var n=-1,f=-1,r=function(a){var b=null,d=[];c(a).each(function(){var a=c(this),k=a.offset().top-h(a.css("margin-top")),l=0<d.length?d[d.length-1]:null;null===l?d.push(a):1>=Math.floor(Math.abs(b-k))?d[d.length-1]=l.add(a):d.push(a);b=k});return d},h=function(a){return parseFloat(a)||0},p=function(a){var b={byRow:!0,remove:!1,property:"height"};if("object"===typeof a)return c.extend(b,a);"boolean"===typeof a?b.byRow=a:"remove"===a&&(b.remove=!0);return b},b=c.fn.matchHeight=function(a){a=
p(a);if(a.remove){var e=this;this.css(a.property,"");c.each(b._groups,function(a,b){b.elements=b.elements.not(e)});return this}if(1>=this.length)return this;b._groups.push({elements:this,options:a});b._apply(this,a);return this};b._groups=[];b._throttle=80;b._maintainScroll=!1;b._beforeUpdate=null;b._afterUpdate=null;b._apply=function(a,e){var d=p(e),g=c(a),k=[g],l=c(window).scrollTop(),f=c("html").outerHeight(!0),m=g.parents().filter(":hidden");m.each(function(){var a=c(this);a.data("style-cache",
a.attr("style"))});m.css("display","block");d.byRow&&(g.each(function(){var a=c(this),b="inline-block"===a.css("display")?"inline-block":"block";a.data("style-cache",a.attr("style"));a.css({display:b,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"})}),k=r(g),g.each(function(){var a=c(this);a.attr("style",a.data("style-cache")||"")}));c.each(k,function(a,b){var e=c(b),f=0;d.byRow&&1>=e.length?e.css(d.property,
""):(e.each(function(){var a=c(this),b={display:"inline-block"===a.css("display")?"inline-block":"block"};b[d.property]="";a.css(b);a.outerHeight(!1)>f&&(f=a.outerHeight(!1));a.css("display","")}),e.each(function(){var a=c(this),b=0;"border-box"!==a.css("box-sizing")&&(b+=h(a.css("border-top-width"))+h(a.css("border-bottom-width")),b+=h(a.css("padding-top"))+h(a.css("padding-bottom")));a.css(d.property,f-b)}))});m.each(function(){var a=c(this);a.attr("style",a.data("style-cache")||null)});b._maintainScroll&&
c(window).scrollTop(l/f*c("html").outerHeight(!0));return this};b._applyDataApi=function(){var a={};c("[data-match-height], [data-mh]").each(function(){var b=c(this),d=b.attr("data-match-height")||b.attr("data-mh");a[d]=d in a?a[d].add(b):b});c.each(a,function(){this.matchHeight(!0)})};var q=function(a){b._beforeUpdate&&b._beforeUpdate(a,b._groups);c.each(b._groups,function(){b._apply(this.elements,this.options)});b._afterUpdate&&b._afterUpdate(a,b._groups)};b._update=function(a,e){if(e&&"resize"===
e.type){var d=c(window).width();if(d===n)return;n=d}a?-1===f&&(f=setTimeout(function(){q(e);f=-1},b._throttle)):q(e)};c(b._applyDataApi);c(window).bind("load",function(a){b._update(!1,a)});c(window).bind("resize orientationchange",function(a){b._update(!0,a)})})(jQuery);
$(document).ready(function(){
$('.cbp-menu-column').matchHeight();
});

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,355 @@
/**
* 2014-2017 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2017 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*
*/
// classie - class helper functions, from bonzo https://github.com/ded/bonzo
!function(a){"use strict";function b(a){return new RegExp("(^|\\s+)"+a+"(\\s+|$)")}function f(a,b){var f=c(a,b)?e:d;f(a,b)}var c,d,e;"classList"in document.documentElement?(c=function(a,b){return a.classList.contains(b)},d=function(a,b){a.classList.add(b)},e=function(a,b){a.classList.remove(b)}):(c=function(a,c){return b(c).test(a.className)},d=function(a,b){c(a,b)||(a.className=a.className+" "+b)},e=function(a,c){a.className=a.className.replace(b(c)," ")});var g={hasClass:c,addClass:d,removeClass:e,toggleClass:f,has:c,add:d,remove:e,toggle:f};"function"==typeof define&&define.amd?define(g):a.classie=g}(window);
//hover intent
(function($){$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var cfg={interval:100,sensitivity:6,timeout:0};if(typeof handlerIn==="object"){cfg=$.extend(cfg,handlerIn)}else{if($.isFunction(handlerOut)){cfg=$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector})}else{cfg=$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut})}}var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if(Math.sqrt((pX-cX)*(pX-cX)+(pY-cY)*(pY-cY))<cfg.sensitivity){$(ob).off("mousemove.hoverIntent",track);ob.hoverIntent_s=true;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=false;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var ev=$.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}if(e.type==="mouseenter"){pX=ev.pageX;pY=ev.pageY;$(ob).on("mousemove.hoverIntent",track);if(!ob.hoverIntent_s){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}}else{$(ob).off("mousemove.hoverIntent",track);if(ob.hoverIntent_s){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}}};return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}})(jQuery);
//double tap
;(function(e,t,n,r){e.fn.doubleTapToGo=function(r){if(!("ontouchstart"in t)&&!navigator.msMaxTouchPoints&&!navigator.userAgent.toLowerCase().match(/windows phone os 7/i))return false;this.each(function(){var t=false;e(this).on("click",function(n){var r=e(this);if(r[0]!=t[0]){n.preventDefault();t=r}});e(n).on("click touchstart MSPointerDown",function(n){var r=true,i=e(n.target).parents();for(var s=0;s<i.length;s++)if(i[s]==t[0])r=false;if(r)t=false})});return this}})(jQuery,window,document);
var cbpHorizontalMenu, cbpVerticalmenu;
$(document).ready(function(){
cbpHorizontalMenu = (function() {
var menuId = '#cbp-hrmenu',
$listItems = $( menuId + '> ul > li' ),
$menuItems = $listItems.children( 'a, .cbp-main-link' ),
$innerTabs = $( menuId + ' .cbp-hrsub-tabs-names li > a' ),
$body = $( 'body' ),
current = -1;
currentlevel = -1;
$listItems.has('ul').find(' > a').doubleTapToGo();
function init() {
var isTouchDevice = 'ontouchstart' in document.documentElement;
if( isTouchDevice ) {
$menuItems.on( 'mouseover', open );
}
else{
$menuItems.hoverIntent( {
over: open,
out: dnthing,
interval: 30
} );
}
$listItems.on( 'mouseover', function( event ) { event.stopPropagation(); } );
$innerTabs.hover( function(){
$innerTabs.removeClass('active');
$(this).tab('show');
});
}
var setCurrent = function(strName) {
current = strName;
};
function dnthing( event ) {
}
function open( event ) {
$othemenuitem = $('#cbp-hrmenu1').find('.cbp-hropen');
$othemenuitem.find('.cbp-hrsub').removeClass('cbp-show');
$othemenuitem.removeClass( 'cbp-hropen' );
cbpVerticalmenu.setCurrent(-1);
var $item = $( event.currentTarget ).parent( 'li' ),
idx = $item.index();
$submenu = $item.find('.cbp-hrsub');
if(current == idx )
return;
$submenu.removeClass('cbp-notfit');
$submenu.removeClass('cbp-show');
if( current !== -1 ) {
$listItems.eq( current ).removeClass( 'cbp-hropen' );
}
if( current === idx ) {
$item.removeClass( 'cbp-hropen' );
current = -1;
}
else {
$submenu.addClass( 'cbp-show' );
iqitmenuwidth = $(menuId).width();
iqititemposition = $item.position().left;
triangleoffset = iqitmenuwidth-$submenu.width();
if((iqitmenuwidth-iqititemposition)<$submenu.width())
{
$submenu.addClass( 'cbp-notfit' );
$submenu.find('.cbp-triangle-container').css({left: (iqititemposition-12+$item.width()/2)-triangleoffset });
}
else
$submenu.find('.cbp-triangle-container').css({left: (-12+$item.width()/2) });
$item.addClass( 'cbp-hropen' );
current = idx;
$body.off( 'mouseover' ).on( 'mouseover', close );
}
return false;
}
function close( event ) {
$listItems.eq( current ).removeClass( 'cbp-hropen' );
current = -1;
}
return { init : init,
setCurrent: setCurrent
};
})();
cbpHorizontalMenu.init();
if (iqitmegamenu.sticky) {
var s = $("#iqitmegamenu-horizontal");
var pos = s.offset();
var alreadySticky = false;
$(window).scroll(function() {
var windowpos = $(window).scrollTop();
if ( s.length ){
if(!alreadySticky) {
if (windowpos >= pos.top) {
alreadySticky = true;
s.parent().height(s.height());
s.removeClass("cbp-nosticky");
s.addClass("cbp-sticky");
}
}
if(alreadySticky) {
if (windowpos < pos.top) {
alreadySticky = false;
s.removeClass("cbp-sticky");
s.addClass("cbp-nosticky");
s.parent().removeAttr("style");
}}
}
});
}
});
$(document).ready(function(){
$('.cbp-vertical-on-top').on( 'mouseover', function() {
$(this).addClass('cbp-vert-expanded');
});
$('.cbp-vertical-on-top').on( 'mouseleave', function() {
$(this).removeClass('cbp-vert-expanded');
});
cbpVerticalmenu = (function(test) {
var menuId = '#cbp-hrmenu1',
$listItems = $( menuId + '> ul > li' ),
$menuItems = $listItems.children( 'a' ),
$innerTabs = $( menuId + ' .cbp-hrsub-tabs-names li > a' ),
$body = $( 'body' ),
current = -1,
currentlevel = -1;
$listItems.has('ul').find(' > a').doubleTapToGo();
function init() {
var isTouchDevice = 'ontouchstart' in document.documentElement;
if( isTouchDevice ) {
$menuItems.on( 'mouseover', open );
}
else{
$menuItems.hoverIntent( {
over: open,
out: dnthing,
interval: 30
} );
}
$listItems.on( 'mouseover', function( event ) { event.stopPropagation(); } );
$innerTabs.hover( function(){
console.log('aas');
$innerTabs.removeClass('active');
$(this).tab('show');
});
$( window ).resize(function() {
$('cbp-hrmenu-tab').not('.cbp-hropen').find( '.cbp-hrsub-wrapper' ).removeAttr( 'style' );
});
}
function dnthing( event ) {
}
var setCurrent = function(strName) {
current = strName;
};
function open( event ) {
$othemenuitem = $('#cbp-hrmenu').find('.cbp-hropen');
$othemenuitem.find('.cbp-hrsub').removeClass('cbp-show');
closeElement($othemenuitem);
cbpHorizontalMenu.setCurrent(-1);
var $item = $( event.currentTarget ).parent( 'li' ),
idx = $item.index();
if(current == idx )
return;
$submenu = $item.find('.cbp-hrsub');
$submenu.removeClass('cbp-show');
if( current !== -1 ) {
closeElement($listItems.eq( current ));
}
if( current === idx ) {
closeElement($item);
current = -1;
}
else {
$submenu.parent().width($(iqitmegamenu.containerSelector).width()-$(menuId).width());
callerHeight = $item.height();
$submenu.parent().css( { marginLeft : $item.innerWidth()+"px", marginRight : $item.innerWidth()+"px", marginTop : -callerHeight+"px" } );
$submenu.find('.cbp-triangle-container').css({top: (callerHeight-24)/2});
$submenu.addClass( 'cbp-show' );
$item.addClass( 'cbp-hropen' );
current = idx;
$body.off( 'mouseover' ).on( 'mouseover', close );
}
return false;
}
function close( event ) {
closeElement($listItems.eq( current ));
current = -1;
}
function closeElement( $element ) {
$element.removeClass( 'cbp-hropen' );
}
return { init : init,
setCurrent: setCurrent
};
})();
cbpVerticalmenu.init();
});
$(document).ready(function(){
var cbpPush = (function() {
$('body').prepend($('#iqitmegamenu-mobile-content'));
$(".responsiveInykator").on("click", function () {
if (false == $(this).parent().next().is(':visible')) {
$('#iqitmegamenu-accordion > ul').removeClass('cbpm-ul-showed');
}
if ($(this).text() == "+"){
$(this).text("-");
}
else{
$(this).text("+");
}
$(this).parent().children('ul').toggleClass('cbpm-ul-showed');
});
var menuLeft = document.getElementById('iqitmegamenu-accordion'),
showLeftPush = document.getElementById('iqitmegamenu-shower'),
menuoverlay = document.getElementById('cbp-spmenu-overlay'),
body = document.body;
classie.addClass(body, 'cbp-spmenu-body');
$('#iqitmegamenu-shower').on("touchstart click", function (e) {
e.stopPropagation();
e.preventDefault();
classie.toggle(showLeftPush, 'active');
classie.toggle(body, 'cbp-spmenu-push-toright');
classie.toggle(menuLeft, 'cbp-spmenu-open');
classie.toggle(menuoverlay, 'cbp-spmenu-overlay-show');
});
$('#cbp-spmenu-overlay').on("touchstart click", function (e) {
e.stopPropagation();
e.preventDefault();
classie.toggle(this, 'active');
classie.toggle(body, 'cbp-spmenu-push-toright');
classie.toggle(menuLeft, 'cbp-spmenu-open');
classie.toggle(this, 'cbp-spmenu-overlay-show');
});
});
cbpPush();
});

View File

@@ -0,0 +1,35 @@
<?php
/**
* 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-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,146 @@
/*
jQuery autoComplete v1.0.7
Copyright (c) 2014 Simon Steinberger / Pixabay
GitHub: https://github.com/Pixabay/jQuery-autoComplete
License: http://www.opensource.org/licenses/mit-license.php
*/
(function($){
$.fn.autoCompleteIq = function(options){
var o = $.extend({}, $.fn.autoCompleteIq.defaults, options);
// public methods
if (typeof options == 'string') {
this.each(function(){
var that = $(this);
if (options == 'destroy') {
that.off('blur.autocomplete focus.autocomplete keydown.autocomplete keyup.autocomplete');
if (that.data('autocomplete'))
that.attr('autocomplete', that.data('autocomplete'));
else
that.removeAttr('autocomplete');
$(that.data('sc')).remove();
that.removeData('sc').removeData('autocomplete');
}
});
return this;
}
return this.each(function(){
var that = $(this);
// sc = 'suggestions container'
that.sc = $('<div class="autocomplete-suggestions '+o.menuClass+'"></div>');
that.data('sc', that.sc).data('autocomplete', that.attr('autocomplete'));
that.attr('autocomplete', 'off');
that.cache = {};
that.last_val = '';
that.updateSC = function(resize, next){
that.sc.show();
};
that.sc.insertAfter(that.parent());
that.sc.on('mouseleave', '.autocomplete-suggestion', function (){
$('.autocomplete-suggestion.selected').removeClass('selected');
});
that.sc.on('mouseenter', '.autocomplete-suggestion', function (){
$('.autocomplete-suggestion.selected').removeClass('selected');
$(this).addClass('selected');
});
that.sc.on('mousedown click', '.autocomplete-suggestion', function (e){
var item = $(this), v = item.data('val');
if (v || item.hasClass('autocomplete-suggestion')) { // else outside click
that.val(v);
o.onSelect(e, v, item);
that.sc.hide();
}
return false;
});
that.on('blur.autocomplete', function(){
that.sc.hide();
});
if (!o.minChars) that.on('focus.autocomplete', function(){ that.last_val = '\n'; that.trigger('keyup.autocomplete'); });
function suggest(data){
var val = that.val();
that.cache[val] = data;
if (data.length && val.length >= o.minChars) {
var s = '';
for (var i=0;i<data.length;i++) s += o.renderItem(data[i], val);
that.sc.html(s);
that.updateSC(0);
}
else
that.sc.hide();
}
that.on('keydown.autocomplete', function(e){
// down (40), up (38)
if ((e.which == 40 || e.which == 38) && that.sc.html()) {
var next, sel = $('.autocomplete-suggestion.selected', that.sc);
if (!sel.length) {
next = (e.which == 40) ? $('.autocomplete-suggestion', that.sc).first() : $('.autocomplete-suggestion', that.sc).last();
that.val(next.addClass('selected').data('val'));
} else {
next = (e.which == 40) ? sel.next('.autocomplete-suggestion') : sel.prev('.autocomplete-suggestion');
if (next.length) { sel.removeClass('selected'); that.val(next.addClass('selected').data('val')); }
else { sel.removeClass('selected'); that.val(that.last_val); next = 0; }
}
that.updateSC(0, next);
return false;
}
// esc
else if (e.which == 27) that.val(that.last_val).sc.hide();
// enter or tab
else if (e.which == 13 || e.which == 9) {
var sel = $('.autocomplete-suggestion.selected', that.sc);
if (sel.length && that.sc.is(':visible')) { o.onSelect(e, sel.data('val'), sel); setTimeout(function(){ that.sc.hide(); }, 20); }
}
});
that.on('keyup.autocomplete', function(e){
if (!~$.inArray(e.which, [13, 27, 35, 36, 37, 38, 39, 40])) {
var val = that.val();
if (val.length >= o.minChars) {
if (val != that.last_val) {
that.last_val = val;
clearTimeout(that.timer);
if (o.cache) {
if (val in that.cache) { suggest(that.cache[val]); return; }
// no requests if previous suggestions were empty
for (var i=1; i<val.length-o.minChars; i++) {
var part = val.slice(0, val.length-i);
if (part in that.cache && !that.cache[part].length) { suggest([]); return; }
}
}
that.timer = setTimeout(function(){ o.source(val, suggest) }, o.delay);
}
} else {
that.last_val = val;
that.sc.hide();
}
}
});
});
}
$.fn.autoCompleteIq.defaults = {
source: 0,
minChars: 3,
delay: 150,
cache: 1,
menuClass: '',
renderItem: function (item, search){
// escape special characters
search = search.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
var re = new RegExp("(" + search.split(' ').join('|') + ")", "gi");
return '<div class="autocomplete-suggestion" data-val="' + item + '">' + item.replace(re, "<b>$1</b>") + '</div>';
},
onSelect: function(e, term, item){}
};
}(jQuery));

View File

@@ -0,0 +1,871 @@
{*
* 2007-2017 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2017 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*
*}
<div class="menu-column-content">
<p>
<label>{l s='Column width' mod='iqitmegamenu'}:</label>
<select class="select-column-width">
{for $i=1 to 12}
<option value="{$i}" {if isset($node.width)}{if $node.width==$i}selected{/if}{else}{if $i==3}selected{/if}{/if}>{$i}/12</option>
{/for}
</select>
</p>
<label>{l s='Column content' mod='iqitmegamenu'}:</label>
<p class="column-content-info">{l s='Empty' mod='iqitmegamenu'}</p>
<p class="edit-btn-wrapper"><button type="button" class="btn btn-default column-content-edit"><i class="icon-pencil"></i> {l s='Edit content' mod='iqitmegamenu'}</button></p>
<div class="modal fade column-content-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Column title' mod='iqitmegamenu'}
</label>
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field lang-{$language.id_lang}" {if $language.id_lang != $defaultFormLanguage}style="display:none"{/if}>
{/if}
<div class="col-lg-7">
<input value="{if isset($node.content_s.title[$language.id_lang])}{$node.content_s.title[$language.id_lang]}{/if}" type="text" class="column-title-{$language.id_lang}">
<p class="help-block">
{l s='Optional column title' mod='iqitmegamenu'}
</p>
</div>
{if $languages|count > 1}
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
{$language.iso_code}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=lang}
<li><a href="javascript:hideOtherLanguage({$lang.id_lang} );" tabindex="-1">{$lang.name|escape:'html'}</a></li>
{/foreach}
</ul>
</div>
{/if}
{if $languages|count > 1}
</div>
{/if}
{/foreach}
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Column title link' mod='iqitmegamenu'}
</label>
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field lang-{$language.id_lang}" {if $language.id_lang != $defaultFormLanguage}style="display:none"{/if}>
{/if}
<div class="col-lg-7">
<input value="{if isset($node.content_s.href[$language.id_lang])}{$node.content_s.href[$language.id_lang]}{/if}" type="text" class="column-href-{$language.id_lang}">
<p class="help-block">
{l s='Optional link. Use entire url with http:// prefix' mod='iqitmegamenu'}
</p>
</div>
{if $languages|count > 1}
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
{$language.iso_code}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=lang}
<li><a href="javascript:hideOtherLanguage({$lang.id_lang} );" tabindex="-1">{$lang.name|escape:'html'}</a></li>
{/foreach}
</ul>
</div>
{/if}
{if $languages|count > 1}
</div>
{/if}
{/foreach}
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Title legend' mod='iqitmegamenu'}
</label>
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field lang-{$language.id_lang}" {if $language.id_lang != $defaultFormLanguage}style="display:none"{/if}>
{/if}
<div class="col-lg-7">
<input value="{if isset($node.content_s.legend[$language.id_lang])}{$node.content_s.legend[$language.id_lang]}{/if}" type="text" class="column-legend-{$language.id_lang}">
<p class="help-block">
{l s='Optional additional text showed in tooltip' mod='iqitmegamenu'}
</p>
</div>
{if $languages|count > 1}
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
{$language.iso_code}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=lang}
<li><a href="javascript:hideOtherLanguage({$lang.id_lang} );" tabindex="-1">{$lang.name|escape:'html'}</a></li>
{/foreach}
</ul>
</div>
{/if}
{if $languages|count > 1}
</div>
{/if}
{/foreach}
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Content type' mod='iqitmegamenu'}</label>
<select class="select-column-content col-lg-9">
<option value="7" {if isset($node.contentType) && $node.contentType==7}selected{/if}>{l s='Suppliers logos' mod='iqitmegamenu'}</option>
<option value="6" {if isset($node.contentType) && $node.contentType==6}selected{/if}>{l s='Banner image' mod='iqitmegamenu'}</option>
<option value="5" {if isset($node.contentType) && $node.contentType==5}selected{/if}>{l s='Manufacturers logos' mod='iqitmegamenu'}</option>
<option value="4" {if isset($node.contentType) && $node.contentType==4}selected{/if}>{l s='Products' mod='iqitmegamenu'}</option>
<option value="3" {if isset($node.contentType) && $node.contentType==3}selected{/if}>{l s='Various links' mod='iqitmegamenu'}</option>
<option value="2" {if isset($node.contentType) && $node.contentType==2}selected{/if}>{l s='Categories tree' mod='iqitmegamenu'}</option>
<option value="1" {if isset($node.contentType) && $node.contentType==1}selected{/if}>{l s='Html Content' mod='iqitmegamenu'}</option>
<option value="0" {if isset($node.contentType)}{if $node.contentType==0}selected{/if}{else}selected{/if} >{l s='Empty' mod='iqitmegamenu'}</option>
</select></div>
<div class="htmlcontent-wrapper content-options-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Custom Html content' mod='iqitmegamenu'}
</label>
<select class="select-customhtml col-lg-9">
<option value="0">{l s='No content' mod='iqitmegamenu'}</option>
{foreach from=$custom_html_select item=customhtml}
<option value="{$customhtml.id_html}" {if isset($node.content.ids) && $node.content.ids == $customhtml.id_html}selected{/if} >{$customhtml.title}</option>
{/foreach}
</select>
</div>
</div>
<div class="categorytree-wrapper content-options-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">{l s='Categories' mod='iqitmegamenu'}</label>
<select class="select-categories-ids col-lg-9" multiple="multiple" style="height: 160px;">
{foreach from=$categories_select item=category}
<option value="{$category.id}" {if isset($node.content.ids) && $node.contentType == 2 && in_array($category.id, $node.content.ids)}selected{/if} disabled>{$category.name}</option>
{if isset($category.children)}
{if isset($node.content.ids) && $node.contentType == 2}
{include file="./subcategory.tpl" categories=$category.children ids=$node.content.ids type=$node.contentType}
{else}
{include file="./subcategory.tpl" categories=$category.children}
{/if}
{/if}
{/foreach}
</select>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Selected categories as tree root' mod='iqitmegamenu'}</label>
<div class="col-lg-9"><select class="select-categories-treep">
<option value="1" {if isset($node.content.treep) && $node.content.treep == 1}selected{/if} >{l s='Yes' mod='iqitmegamenu'}</option>
<option value="0" {if isset($node.content.treep) && $node.content.treep == 0}selected{/if}>{l s='No' mod='iqitmegamenu'}</option>
</select>
<p class="help-block">
{l s='If enabled each selected category will have block title style. Enable only if you selecting categories with subcategories' mod='iqitmegamenu'}
</p></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Show category thumb' mod='iqitmegamenu'}</label>
<div class="col-lg-9"><select class="select-categories-thumb">
<option value="1" {if isset($node.content.thumb) && $node.content.thumb == 1}selected{/if} >{l s='Yes' mod='iqitmegamenu'}</option>
<option value="0" {if isset($node.content.thumb) && $node.content.thumb == 0}selected{/if}>{l s='No' mod='iqitmegamenu'}</option>
</select>
<p class="help-block">
{l s='It works only with enabled option "selected categories as tree root". It will show first menu thumbail. You can define menu thumbail during category edit.' mod='iqitmegamenu'}
</p></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Categories per line' mod='iqitmegamenu'}</label>
<div class="col-lg-9"><select class="select-categories-line">
<option value="12" {if isset($node.content.line) && $node.content.line == 12}selected{/if} >1</option>
<option value="6" {if isset($node.content.line) && $node.content.line == 6}selected{/if}>2</option>
<option value="4" {if isset($node.content.line) && $node.content.line == 4}selected{/if} >3</option>
<option value="3" {if isset($node.content.line) && $node.content.line == 3}selected{/if}>4</option>
<option value="15" {if isset($node.content.line) && $node.content.line == 15}selected{/if}>5</option>
<option value="2" {if isset($node.content.line) && $node.content.line == 2}selected{/if}>6</option>
</select>
<p class="help-block">
{l s='If Selected categories as root is enabled, you can decide how meny cats per row to show' mod='iqitmegamenu'}
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Depth limit' mod='iqitmegamenu'}</label>
<select class="select-categories-depth col-lg-9">
<option value="4" {if isset($node.content.depth) && $node.content.depth == 4}selected{/if} >{l s='4' mod='iqitmegamenu'}</option>
<option value="3" {if isset($node.content.depth) && $node.content.depth == 3}selected{/if} >{l s='3' mod='iqitmegamenu'}</option>
<option value="2" {if isset($node.content.depth) && $node.content.depth == 2}selected{/if} >{l s='2' mod='iqitmegamenu'}</option>
<option value="1" {if isset($node.content.depth) && $node.content.depth == 1}selected{/if} >{l s='1' mod='iqitmegamenu'}</option>
<option value="0" {if isset($node.content.depth) && $node.content.depth == 0}selected{/if} >{l s='0' mod='iqitmegamenu'}</option>
</select>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Subcategories limit' mod='iqitmegamenu'}</label>
<div class="col-lg-9">
<select class="select-categories-sublimit">
{for $i=5 to 60 step 5}
<option value="{$i}" {if isset($node.content.sublimit)}{if $node.content.sublimit==$i}selected{/if}{else}{if $i==15}selected{/if}{/if}>{$i}</option>
{/for}
</select>
<p class="help-block">
{l s='If limit will be reach, they will be not showed. Helpfull if you have some category with long list of subcategories' mod='iqitmegamenu'}
</p></div>
</div>
</div>
<div class="va-links-wrapper content-options-wrapper {if isset($node.elementId)}va-links-wrapper-{$node.elementId}{/if}">
<div class="form-group">
<label class="control-label col-lg-3">{l s='Select links' mod='iqitmegamenu'}</label>
{*HTML CONTENT*} {$va_links_select nofilter}
{if isset($node.content.ids) && $node.contentType == 3}
<script>
$(".{if isset($node.elementId)}va-links-wrapper-{$node.elementId}{/if} .select-links-ids").val({$node.content.ids|json_encode});
</script>
{/if}
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Select view' mod='iqitmegamenu'}</label>
<select class="select-links-view col-lg-9">
<option value="2" {if isset($node.content.view) && $node.content.view == 2}selected{/if} >{l s='Horizontal(with column title inline)' mod='iqitmegamenu'}</option>
<option value="1" {if isset($node.content.view) && $node.content.view == 1}selected{/if} >{l s='Vertical' mod='iqitmegamenu'}</option>
<option value="0" {if isset($node.content.view)}{if $node.content.view == 0}selected{/if}{else}selected{/if}>{l s='Horizontal(with column title above)' mod='iqitmegamenu'}</option>
</select>
</div>
</div>
<div class="column-image-wrapper content-options-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Image source' mod='iqitmegamenu'}
</label>
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field lang-{$language.id_lang}" {if $language.id_lang != $defaultFormLanguage}style="display:none"{/if}>
{/if}
<div class="col-lg-7">
<input value="{if isset($node.content.source[$language.id_lang])}{$node.content.source[$language.id_lang]}{/if}" type="text" class="image-source image-source-{$language.id_lang}" name="{if isset($node.elementId)}{$node.elementId}-{/if}image-source-{$language.id_lang}" id="{if isset($node.elementId)}{$node.elementId}-{/if}image-source-{$language.id_lang}" data-lang-id="{$language.id_lang}" >
<a href="filemanager/dialog.php?type=1&field_id={if isset($node.elementId)}{$node.elementId}-{/if}image-source-{$language.id_lang}" class="btn btn-default iframe-column-upload" data-input-name="{if isset($node.elementId)}{$node.elementId}-{/if}image-source-{$language.id_lang}" type="button">{l s='Select image' mod='iqitmegamenu'} <i class="icon-angle-right"></i></a>
</div>
{if $languages|count > 1}
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
{$language.iso_code}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=lang}
<li><a href="javascript:hideOtherLanguage({$lang.id_lang} );" tabindex="-1">{$lang.name|escape:'html'}</a></li>
{/foreach}
</ul>
</div>
{/if}
{if $languages|count > 1}
</div>
{/if}
{/foreach}
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Image link' mod='iqitmegamenu'}
</label>
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field lang-{$language.id_lang}" {if $language.id_lang != $defaultFormLanguage}style="display:none"{/if}>
{/if}
<div class="col-lg-7">
<input value="{if isset($node.content.href[$language.id_lang])}{$node.content.href[$language.id_lang]}{/if}" type="text" class="image-href-{$language.id_lang}">
<p class="help-block">
{l s='Optional link. Use entire url with http:// prefix' mod='iqitmegamenu'}
</p>
</div>
{if $languages|count > 1}
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
{$language.iso_code}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=lang}
<li><a href="javascript:hideOtherLanguage({$lang.id_lang});" tabindex="-1">{$lang.name|escape:'html'}</a></li>
{/foreach}
</ul>
</div>
{/if}
{if $languages|count > 1}
</div>
{/if}
{/foreach}
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Alt tag(image description)' mod='iqitmegamenu'}
</label>
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field lang-{$language.id_lang}" {if $language.id_lang != $defaultFormLanguage}style="display:none"{/if}>
{/if}
<div class="col-lg-7">
<input value="{if isset($node.content.alt[$language.id_lang])}{$node.content.alt[$language.id_lang]}{/if}" type="text" class="image-alt-{$language.id_lang}">
</div>
{if $languages|count > 1}
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
{$language.iso_code}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=lang}
<li><a href="javascript:hideOtherLanguage({$lang.id_lang});" tabindex="-1">{$lang.name|escape:'html'}</a></li>
{/foreach}
</ul>
</div>
{/if}
{if $languages|count > 1}
</div>
{/if}
{/foreach}
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Absolute positions' mod='iqitmegamenu'}</label>
<div class="col-lg-9">
<select class="select-image-absolute">
<option value="1" {if isset($node.content.absolute) && $node.content.absolute == 1}selected{/if} >{l s='Yes' mod='iqitmegamenu'}</option>
<option value="0" {if isset($node.content.absolute)}{if $node.content.absolute == 0}selected{/if}{else}selected{/if}>{l s='No' mod='iqitmegamenu'}</option>
</select>
<p class="help-block">
{l s='Thanks to that option you can position image for example in a corner of submenu. You can use - values. If you want to position in right bottom corner set values like: right: -20, bottom: -20, left: , top: . Two values should be always empty. You should not set column title or style when this option is enabled' mod='iqitmegamenu'}
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Top' mod='iqitmegamenu'}</label>
<div class="col-lg-9">
<input value="{if isset($node.content.i_a_t)}{$node.content.i_a_t}{/if}" type="text" class="image-absolute-t">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Right' mod='iqitmegamenu'}</label>
<div class="col-lg-9">
<input value="{if isset($node.content.i_a_r)}{$node.content.i_a_r}{/if}" type="text" class="image-absolute-r">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Bottom' mod='iqitmegamenu'}</label>
<div class="col-lg-9">
<input value="{if isset($node.content.i_a_b)}{$node.content.i_a_b}{/if}" type="text" class="image-absolute-b">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Left' mod='iqitmegamenu'}</label>
<div class="col-lg-9">
<input value="{if isset($node.content.i_a_l)}{$node.content.i_a_l}{/if}" type="text" class="image-absolute-l">
</div>
</div>
</div>
<div class="products-wrapper content-options-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">{l s='Search product' mod='iqitmegamenu'}</label>
<div class="col-lg-9"><div class="autocomplete-wrapper"><input type="text" class="product-autocomplete form-control" ></div></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Selected products' mod='iqitmegamenu'}</label>
<div class="col-lg-9">
<select class="select-products-ids" multiple="multiple" style="height: 160px;">
{if isset($node.content.ids) && $node.contentType == 4}
{foreach from=$node.content.ids item=product}
<option value="{$product.id_product}" >(ID: {$product.id_product}) {$product.name}</option>
{/foreach}
{/if}
</select>
<br />
<button type="button" class="btn btn-danger remove-products-ids"><i class="icon-trash"></i> {l s='Remove selected' mod='iqitmegamenu'}</button>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Select view' mod='iqitmegamenu'}</label>
<select class="select-products-view col-lg-9">
<option value="1" {if isset($node.content.view) && $node.content.view == 1}selected{/if} >{l s='Grid(big image + product name below)' mod='iqitmegamenu'}</option>
<option value="0" {if isset($node.content.view) && $node.content.view == 0}selected{/if}>{l s='List(small image + product name next to it)' mod='iqitmegamenu'}</option>
</select>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Products per line' mod='iqitmegamenu'}</label>
<select class="select-products-line col-lg-9">
<option value="12" {if isset($node.content.line) && $node.content.line == 12}selected{/if} >1</option>
<option value="6" {if isset($node.content.line) && $node.content.line == 6}selected{/if}>2</option>
<option value="4" {if isset($node.content.line) && $node.content.line == 4}selected{/if} >3</option>
<option value="3" {if isset($node.content.line) && $node.content.line == 3}selected{/if}>4</option>
<option value="15" {if isset($node.content.line) && $node.content.line == 15}selected{/if}>5</option>
<option value="2" {if isset($node.content.line) && $node.content.line == 2}selected{/if}>6</option>
</select>
</div>
</div>
<div class="manufacturers-wrapper content-options-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">{l s='Select manufacturers' mod='iqitmegamenu'}</label>
<select class="select-manufacturers-ids col-lg-9" multiple="multiple" style="height: 160px;">
{foreach from=$manufacturers_select item=manufacturer}
<option value="{$manufacturer.id}" {if isset($node.content.ids) && $node.contentType == 5 && in_array($manufacturer.id, $node.content.ids)}selected{/if} >{$manufacturer.name}</option>
{/foreach}
</select>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Logos per line' mod='iqitmegamenu'}</label>
<select class="select-manufacturers-line col-lg-9">
<option value="12" {if isset($node.content.line) && $node.content.line == 12}selected{/if} >1</option>
<option value="6" {if isset($node.content.line) && $node.content.line == 6}selected{/if}>2</option>
<option value="4" {if isset($node.content.line) && $node.content.line == 4}selected{/if} >3</option>
<option value="3" {if isset($node.content.line) && $node.content.line == 3}selected{/if}>4</option>
<option value="15" {if isset($node.content.line) && $node.content.line == 15}selected{/if}>5</option>
<option value="2" {if isset($node.content.line) && $node.content.line == 2}selected{/if}>6</option>
<option value="1" {if isset($node.content.line) && $node.content.line == 1}selected{/if}>12</option>
</select>
</div>
</div>
<div class="suppliers-wrapper content-options-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">{l s='Select suppliers' mod='iqitmegamenu'}</label>
<select class="select-suppliers-ids col-lg-9" multiple="multiple" style="height: 160px;">
{foreach from=$suppliers_select item=supplier}
<option value="{$supplier.id}" {if isset($node.content.ids) && $node.contentType == 7 && in_array($supplier.id, $node.content.ids)}selected{/if} >{$supplier.name}</option>
{/foreach}
</select>
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Logos per line' mod='iqitmegamenu'}</label>
<select class="select-suppliers-line col-lg-9">
<option value="12" {if isset($node.content.line) && $node.content.line == 12}selected{/if} >1</option>
<option value="6" {if isset($node.content.line) && $node.content.line == 6}selected{/if}>2</option>
<option value="4" {if isset($node.content.line) && $node.content.line == 4}selected{/if} >3</option>
<option value="3" {if isset($node.content.line) && $node.content.line == 3}selected{/if}>4</option>
<option value="15" {if isset($node.content.line) && $node.content.line == 15}selected{/if}>5</option>
<option value="2" {if isset($node.content.line) && $node.content.line == 2}selected{/if}>6</option>
<option value="1" {if isset($node.content.line) && $node.content.line == 1}selected{/if}>12</option>
</select>
</div>
</div>
<div class="style-wrapper clearfix">
<div class="col-lg-9 col-md-offset-3">
<p class="help-block">
{l s='Optional column style fields' mod='iqitmegamenu'}
</p>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Backgrund color' mod='iqitmegamenu'}
</label>
<div class="col-lg-3 ">
<div class="form-group">
<div class="col-lg-10">
<div class="row">
<div class="input-group">
<input type="text" data-hex="true" class="column_bg_color {if isset($node.elementId)}column_bg_color-{$node.elementId}{/if}" name="column_bg_color" value="{if isset($node.content_s.bg_color)}{$node.content_s.bg_color}{/if}" />
</div>
</div>
</div>
</div>
</div>
<label class="control-label col-lg-3">
{l s='Title border color if exist' mod='iqitmegamenu'}
</label>
<div class="col-lg-3 ">
<div class="form-group">
<div class="col-lg-12">
<div class="row">
<div class="input-group">
<input type="text" data-hex="true" class="title_borderc {if isset($node.elementId)}title_borderc-{$node.elementId}{/if}" value="{if isset($node.content_s.title_borderc)}{$node.content_s.title_borderc}{/if}" />
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Title color' mod='iqitmegamenu'}
</label>
<div class="col-lg-3 ">
<div class="form-group">
<div class="col-lg-12">
<div class="row">
<div class="input-group">
<input type="text" data-hex="true" class="title_color {if isset($node.elementId)}title_color-{$node.elementId}{/if}" value="{if isset($node.content_s.title_color)}{$node.content_s.title_color}{/if}" />
</div>
</div>
</div>
</div>
</div>
<label class="control-label col-lg-3">
{l s='Title hover color' mod='iqitmegamenu'}
</label>
<div class="col-lg-3 ">
<div class="form-group">
<div class="col-lg-12">
<div class="row">
<div class="input-group">
<input type="text" data-hex="true" class="title_colorh {if isset($node.elementId)}title_colorh-{$node.elementId}{/if}" value="{if isset($node.content_s.title_colorh)}{$node.content_s.title_colorh}{/if}" />
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Title legend backgrund color' mod='iqitmegamenu'}
</label>
<div class="col-lg-3 ">
<div class="form-group">
<div class="col-lg-12">
<div class="row">
<div class="input-group">
<input type="text" data-hex="true" class="legend_bg {if isset($node.elementId)}legend_bg-{$node.elementId}{/if}" name="legend_bg" value="{if isset($node.content_s.legend_bg)}{$node.content_s.legend_bg}{/if}" />
</div>
</div>
</div>
</div>
</div>
<label class="control-label col-lg-3">
{l s='Title legend text color' mod='iqitmegamenu'}
</label>
<div class="col-lg-3 ">
<div class="form-group">
<div class="col-lg-12">
<div class="row">
<div class="input-group">
<input type="text" data-hex="true" class="legend_txt {if isset($node.elementId)}legend_txt-{$node.elementId}{/if}" name="legend_txt" value="{if isset($node.content_s.legend_txt)}{$node.content_s.legend_txt}{/if}" />
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Text color' mod='iqitmegamenu'}
</label>
<div class="col-lg-3 ">
<div class="form-group">
<div class="col-lg-12">
<div class="row">
<div class="input-group">
<input type="text" data-hex="true" class="txt_color {if isset($node.elementId)}txt_color-{$node.elementId}{/if}" value="{if isset($node.content_s.txt_color)}{$node.content_s.txt_color}{/if}" />
</div>
</div>
</div>
</div>
</div>
<label class="control-label col-lg-3">
{l s='Text hover color' mod='iqitmegamenu'}
</label>
<div class="col-lg-3 ">
<div class="form-group">
<div class="col-lg-12">
<div class="row">
<div class="input-group">
<input type="text" data-hex="true" class="txt_colorh {if isset($node.elementId)}txt_colorh-{$node.elementId}{/if}" value="{if isset($node.content_s.txt_colorh)}{$node.content_s.txt_colorh}{/if}" />
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Border top' mod='iqitmegamenu'}
</label>
<div class="col-lg-9 ">
<div class="form-group">
<div class="row">
<div class="col-xs-6">
<select name="br_top_st" class="br_top_st">
<option value="5" {if isset($node.content_s.br_top_st) && $node.content_s.br_top_st==5}selected{/if}>{l s='groove' mod='iqitmegamenu'}</option>
<option value="4" {if isset($node.content_s.br_top_st) && $node.content_s.br_top_st==4}selected{/if}>{l s='double' mod='iqitmegamenu'}</option>
<option value="3" {if isset($node.content_s.br_top_st) && $node.content_s.br_top_st==3}selected{/if}>{l s='dotted' mod='iqitmegamenu'}</option>
<option value="2" {if isset($node.content_s.br_top_st) && $node.content_s.br_top_st==2}selected{/if}>{l s='dashed' mod='iqitmegamenu'}</option>
<option value="1" {if isset($node.content_s.br_top_st) && $node.content_s.br_top_st==1}selected{/if}>{l s='solid' mod='iqitmegamenu'}</option>
<option value="0" {if isset($node.content_s.br_top_st)}{if $node.content_s.br_top_st==0}selected{/if}{else}selected{/if}>{l s='none' mod='iqitmegamenu'}</option>
</select>
</div>
<div class="col-xs-3">
<select name="br_top_wh" class="br_top_wh">
{for $i=1 to 10}
<option value="{$i}" {if isset($node.content_s.br_top_wh)}{if $i==$node.content_s.br_top_wh}selected{/if}{else}{if $i==1}selected{/if}{/if}>{$i}px</option>
{/for}
</select>
</div>
<div class="col-xs-3">
<div class="form-group">
<div class="col-xs-12">
<div class="row">
<div class="input-group">
<input type="text" data-hex="true" class="br_top_c {if isset($node.elementId)}br_top_c-{$node.elementId}{/if}" value="{if isset($node.content_s.br_top_c)}{$node.content_s.br_top_c}{/if}" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Border right' mod='iqitmegamenu'}
</label>
<div class="col-lg-9 ">
<div class="form-group">
<div class="row">
<div class="col-xs-6">
<select name="br_right_st" class="br_right_st">
<option value="5" {if isset($node.content_s.br_right_st) && $node.content_s.br_right_st==5}selected{/if}>{l s='groove' mod='iqitmegamenu'}</option>
<option value="4" {if isset($node.content_s.br_right_st) && $node.content_s.br_right_st==4}selected{/if}>{l s='double' mod='iqitmegamenu'}</option>
<option value="3" {if isset($node.content_s.br_right_st) && $node.content_s.br_right_st==3}selected{/if}>{l s='dotted' mod='iqitmegamenu'}</option>
<option value="2" {if isset($node.content_s.br_right_st) && $node.content_s.br_right_st==2}selected{/if}>{l s='dashed' mod='iqitmegamenu'}</option>
<option value="1" {if isset($node.content_s.br_right_st) && $node.content_s.br_right_st==1}selected{/if}>{l s='solid' mod='iqitmegamenu'}</option>
<option value="0" {if isset($node.content_s.br_right_st)}{if $node.content_s.br_right_st==0}selected{/if}{else}selected{/if}>{l s='none' mod='iqitmegamenu'}</option>
</select>
</div>
<div class="col-xs-3">
<select name="br_right_wh" class="br_right_wh">
{for $i=1 to 10}
<option value="{$i}" {if isset($node.content_s.br_right_wh)}{if $i==$node.content_s.br_right_wh}selected{/if}{else}{if $i==1}selected{/if}{/if}>{$i}px</option>
{/for}
</select>
</div>
<div class="col-xs-3">
<div class="form-group">
<div class="col-xs-12">
<div class="row">
<div class="input-group">
<input type="text" data-hex="true" class="br_right_c {if isset($node.elementId)}br_right_c-{$node.elementId}{/if}" value="{if isset($node.content_s.br_right_c)}{$node.content_s.br_right_c}{/if}" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Border bottom' mod='iqitmegamenu'}
</label>
<div class="col-lg-9 ">
<div class="form-group">
<div class="row">
<div class="col-xs-6">
<select name="br_bottom_st" class="br_bottom_st">
<option value="5" {if isset($node.content_s.br_bottom_st) && $node.content_s.br_bottom_st==5}selected{/if}>{l s='groove' mod='iqitmegamenu'}</option>
<option value="4" {if isset($node.content_s.br_bottom_st) && $node.content_s.br_bottom_st==4}selected{/if}>{l s='double' mod='iqitmegamenu'}</option>
<option value="3" {if isset($node.content_s.br_bottom_st) && $node.content_s.br_bottom_st==3}selected{/if}>{l s='dotted' mod='iqitmegamenu'}</option>
<option value="2" {if isset($node.content_s.br_bottom_st) && $node.content_s.br_bottom_st==2}selected{/if}>{l s='dashed' mod='iqitmegamenu'}</option>
<option value="1" {if isset($node.content_s.br_bottom_st) && $node.content_s.br_bottom_st==1}selected{/if}>{l s='solid' mod='iqitmegamenu'}</option>
<option value="0" {if isset($node.content_s.br_bottom_st)}{if $node.content_s.br_bottom_st==0}selected{/if}{else}selected{/if}>{l s='none' mod='iqitmegamenu'}</option>
</select>
</div>
<div class="col-xs-3">
<select name="br_bottom_wh" class="br_bottom_wh">
{for $i=1 to 10}
<option value="{$i}" {if isset($node.content_s.br_bottom_wh)}{if $i==$node.content_s.br_bottom_wh}selected{/if}{else}{if $i==1}selected{/if}{/if}>{$i}px</option>
{/for}
</select>
</div>
<div class="col-xs-3">
<div class="form-group">
<div class="col-xs-12">
<div class="row">
<div class="input-group">
<input type="text" data-hex="true" class="br_bottom_c {if isset($node.elementId)}br_bottom_c-{$node.elementId}{/if}" value="{if isset($node.content_s.br_bottom_c)}{$node.content_s.br_bottom_c}{/if}" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Border left' mod='iqitmegamenu'}
</label>
<div class="col-lg-9 ">
<div class="form-group">
<div class="row">
<div class="col-xs-6">
<select name="br_left_st" class="br_left_st">
<option value="5" {if isset($node.content_s.br_left_st) && $node.content_s.br_left_st==5}selected{/if}>{l s='groove' mod='iqitmegamenu'}</option>
<option value="4" {if isset($node.content_s.br_left_st) && $node.content_s.br_left_st==4}selected{/if}>{l s='double' mod='iqitmegamenu'}</option>
<option value="3" {if isset($node.content_s.br_left_st) && $node.content_s.br_left_st==3}selected{/if}>{l s='dotted' mod='iqitmegamenu'}</option>
<option value="2" {if isset($node.content_s.br_left_st) && $node.content_s.br_left_st==2}selected{/if}>{l s='dashed' mod='iqitmegamenu'}</option>
<option value="1" {if isset($node.content_s.br_left_st) && $node.content_s.br_left_st==1}selected{/if}>{l s='solid' mod='iqitmegamenu'}</option>
<option value="0" {if isset($node.content_s.br_left_st)}{if $node.content_s.br_left_st==0}selected{/if}{else}selected{/if}>{l s='none' mod='iqitmegamenu'}</option>
</select>
</div>
<div class="col-xs-3">
<select name="br_left_wh" class="br_left_wh">
{for $i=1 to 10}
<option value="{$i}" {if isset($node.content_s.br_left_wh)}{if $i==$node.content_s.br_left_wh}selected{/if}{else}{if $i==1}selected{/if}{/if}>{$i}px</option>
{/for}
</select>
</div>
<div class="col-xs-3">
<div class="form-group">
<div class="col-xs-12">
<div class="row">
<div class="input-group">
<input type="text" data-hex="true" class="br_left_c {if isset($node.elementId)}br_left_c-{$node.elementId}{/if}" value="{if isset($node.content_s.br_left_c)}{$node.content_s.br_left_c}{/if}" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Padding' mod='iqitmegamenu'}
</label>
<div class="col-lg-9 ">
<div class="column-checkbox"><input type="checkbox" class="c-padding-top" value="1" {if isset($node.content_s.c_p_t) && $node.content_s.c_p_t==1}checked{/if}> {l s='Top' mod='iqitmegamenu'} </div>
<div class="column-checkbox"><input type="checkbox" class="c-padding-right" value="1" {if isset($node.content_s.c_p_r) && $node.content_s.c_p_r==1}checked{/if} > {l s='Right' mod='iqitmegamenu'} </div>
<div class="column-checkbox"><input type="checkbox" class="c-padding-bottom" value="1" {if isset($node.content_s.c_p_b) && $node.content_s.c_p_b==1}checked{/if}> {l s='Bottom' mod='iqitmegamenu'} </div>
<div class="column-checkbox"><input type="checkbox" class="c-padding-left" value="1" {if isset($node.content_s.c_p_l) && $node.content_s.c_p_l==1}checked{/if}> {l s='Left' mod='iqitmegamenu'} </div>
<p class="help-block">
{l s='If you enabled borders or custom background color it maybe needed to add padding for better effect' mod='iqitmegamenu'}
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Negative margin' mod='iqitmegamenu'}
</label>
<div class="col-lg-9 ">
<div class="column-checkbox"><input type="checkbox" class="c-margin-top" value="1" {if isset($node.content_s.c_m_t) && $node.content_s.c_m_t==1}checked{/if}> {l s='Top' mod='iqitmegamenu'} </div>
<div class="column-checkbox"><input type="checkbox" class="c-margin-right" value="1" {if isset($node.content_s.c_m_r) && $node.content_s.c_m_r==1}checked{/if}> {l s='Right' mod='iqitmegamenu'} </div>
<div class="column-checkbox"><input type="checkbox" class="c-margin-left" value="1" {if isset($node.content_s.c_m_l) && $node.content_s.c_m_l==1}checked{/if}> {l s='Left' mod='iqitmegamenu'} </div>
<p class="help-block">
{l s='If you enabled padding, it maybe needed to add negative margin. For example you added background and padding only in one column from a row and you want to position title on the same height as other blocks, you have to add top negative margin.' mod='iqitmegamenu'}
</p>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">{l s='Save' mod='iqitmegamenu'}</button>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,470 @@
{*
* 2007-2017 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2017 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*
*}
{extends file="helpers/form/form.tpl"}
{block name="script"}
$(document).ready(function() {
$('.iframe-upload').fancybox({
'width' : 900,
'height' : 600,
'type' : 'iframe',
'autoScale' : false,
'autoDimensions': false,
'fitToView' : false,
'autoSize' : false,
onUpdate : function(){ $('.fancybox-iframe').contents().find('a.link').data('field_id', $(this.element).data("input-name"));
$('.fancybox-iframe').contents().find('a.link').attr('data-field_id', $(this.element).data("input-name"));},
afterShow: function(){
$('.fancybox-iframe').contents().find('a.link').data('field_id', $(this.element).data("input-name"));
$('.fancybox-iframe').contents().find('a.link').attr('data-field_id', $(this.element).data("input-name"));
}
});
$('.iframe-column-upload').fancybox({
'width' : 900,
'height' : 600,
'type' : 'iframe',
'autoScale' : false,
'autoDimensions': false,
'fitToView' : false,
'autoSize' : false,
onUpdate : function(){
$('.fancybox-iframe').contents().find('a.link').data('field_id', $(this.element).data("input-name"));
$('.fancybox-iframe').contents().find('a.link').attr('data-field_id', $(this.element).data("input-name"));
},
afterShow: function(){
$('.fancybox-iframe').contents().find('a.link').data('field_id', $(this.element).data("input-name"));
$('.fancybox-iframe').contents().find('a.link').attr('data-field_id', $(this.element).data("input-name"));
}
});
var control = $("#url_type");
if (control.val() == 1)
{
$("#custom-url-wrapper").removeClass('hidden');
$("#system-url-wrapper").addClass('hidden');
}
if (control.val() == 0) {
$("#custom-url-wrapper").addClass('hidden');
$("#system-url-wrapper").removeClass('hidden');
}
if (control.val() == 2) {
$("#custom-url-wrapper").addClass('hidden');
$("#system-url-wrapper").addClass('hidden');
}
$("#url_type").change(function() {
var control = $(this);
if (control.val() == 1)
{
$("#custom-url-wrapper").removeClass('hidden');
$("#system-url-wrapper").addClass('hidden');
}
if (control.val() == 0) {
$("#custom-url-wrapper").addClass('hidden');
$("#system-url-wrapper").removeClass('hidden');
}
if (control.val() == 2) {
$("#custom-url-wrapper").addClass('hidden');
$("#system-url-wrapper").addClass('hidden');
}
});
var control = $("#icon_type");
if (control.val() == 1)
{
$("#icon-class-wrapper").removeClass('hidden');
$("#image-icon-wrapper").addClass('hidden');
}
if (control.val() == 0) {
$("#icon-class-wrapper").addClass('hidden');
$("#image-icon-wrapper").removeClass('hidden');
}
$("#icon_type").change(function() {
var control = $(this);
if (control.val() == 1)
{
$("#icon-class-wrapper").removeClass('hidden');
$("#image-icon-wrapper").addClass('hidden');
}
if (control.val() == 0) {
$("#icon-class-wrapper").addClass('hidden');
$("#image-icon-wrapper").removeClass('hidden');
}
});
var control1 = $("#submenu_type");
if (control1.val() == 2)
{
$("#grid-submenu").removeClass('hidden');
$("#cssstyle-submenu").removeClass('hidden');
}
if (control1.val() == 1)
{
$("#tabs-submenu").removeClass('hidden');
$("#cssstyle-submenu").removeClass('hidden');
}
$("#submenu_type").change(function() {
var control1 = $(this);
if (control1.val() == 2)
{
$("#grid-submenu").removeClass('hidden');
$("#cssstyle-submenu").removeClass('hidden');
$("#tabs-submenu").addClass('hidden');
}
if (control1.val() == 1)
{
$("#tabs-submenu").removeClass('hidden');
$("#grid-submenu").addClass('hidden');
$("#cssstyle-submenu").removeClass('hidden');
}
if (control1.val() == 0) {
$("#tabs-submenu").addClass('hidden');
$("#grid-submenu").addClass('hidden');
$("#cssstyle-submenu").addClass('hidden');
}
});
$('.list-wrapper-horizontal').show();
$('#options_tab a').click(function (e) {
e.preventDefault();
$('.list-wrapper').hide();
if($(this).attr('href')=='#main_tab')
$('.list-wrapper-horizontal').show();
if($(this).attr('href')=='#vertical_tab')
$('.list-wrapper-vertical').show();
if($(this).attr('href')=='#submenutabs_tab')
$('.list-wrapper-submenutabs').show();
if($(this).attr('href')=='#customhtml_tab')
$('.list-wrapper-html').show();
$(this).tab('show');
});
$('#menuOrderUp').click(function(e){
e.preventDefault();
move(true);
});
$('#menuOrderDown').click(function(e){
e.preventDefault();
move();
});
$("#items").closest('form').on('submit', function(e) {
$("#items option").prop('selected', true);
});
$("#addItem").click(add);
$("#availableItems").dblclick(add);
$("#removeItem").click(remove);
$("#items").dblclick(remove);
function add()
{
$("#availableItems option:selected").each(function(i){
var val = $(this).val();
var text = $(this).text();
text = text.replace(/(^\s*)|(\s*$)/gi,"");
if (val == "PRODUCT")
{
val = prompt('{l s='Indicate the ID number for the product' mod='iqitmegamenu' js=1}');
if (val == null || val == "" || isNaN(val))
return;
text = '{l s='Product ID #' mod='iqitmegamenu' js=1}'+val;
val = "PRD"+val;
}
$("#items").append('<option value="'+val+'" selected="selected">'+text+'</option>');
});
serialize();
return false;
}
function remove()
{
$("#items option:selected").each(function(i){
$(this).remove();
});
serialize();
return false;
}
function serialize()
{
var options = "";
$("#items option").each(function(i){
options += $(this).val()+",";
});
$("#itemsInput").val(options.substr(0, options.length - 1));
}
function move(up)
{
var tomove = $('#items option:selected');
if (tomove.length >1)
{
alert('{l s='Please select just one item' mod='iqitmegamenu'}');
return false;
}
if (up)
tomove.prev().insertAfter(tomove);
else
tomove.next().insertBefore(tomove);
serialize();
return false;
}
});
{/block}
{block name="defaultForm"}
<div class="row">
<div class="col-lg-2">
<div id="options_tab" class="">
<ul class="list-group">
{foreach $fields as $tab}
{if $tab.form.tab_name != 'save_tab'}<li {if $tab.form.tab_name == 'main_tab'}class="active"{/if}><a class="list-group-item" href="#{$tab.form.tab_name}">{$tab.form.legend.title}</a></li>{/if}
{/foreach}
<ul>
</div>
</div>
<div id="list-container" class="col-lg-10 tab-content">
{$smarty.block.parent}
</div>
</div>
{/block}
{block name="fieldset"}
{if $fieldset.form.tab_name != 'save_tab'}
<div class="tab-pane-wrapper {if $fieldset.form.tab_name == 'main_tab'}active{/if}" id="{$fieldset.form.tab_name}">
{*HTML CONTENT*} {if isset($fieldset.form.assigned_list)}<div class="tab-pane clearfix">{$fieldset.form.assigned_list nofilter}</div>{/if}
<div class="tab-pane">
{/if}
{$smarty.block.parent}
{if $fieldset.form.tab_name != 'save_tab'}</div></div>{/if}
{/block}
{block name="label"}
{if ($input.type == 'grid_creator') || ($input.type == 'ietool') }
{else}
{$smarty.block.parent}
{/if}
{/block}
{block name="input_row"}
{if !isset($input.iqitTheme) || !$input.iqitTheme}
{if isset($input.hide) && $input.hide}<div style="display: none !important;">{/if}
{if isset($input.preffix_wrapper)}<div id="{$input.preffix_wrapper}" {if isset($input.wrapper_hidden) && $input.wrapper_hidden} class="hidden clearfix"{/if}>{/if}
{if isset($input.accordion_wrapper)}<a class="btn btn-primary menu-collapse-expand" data-toggle="collapse" href="#{$input.accordion_wrapper}" aria-expanded="false" aria-controls="{$input.accordion_wrapper}">{l s='Expand submenu optional design options' mod='iqitmegamenu'}
<i class="icon-angle-double-down"></i> </a><div id="{$input.accordion_wrapper}" class="collapse collapse-menu-expand">{/if}
{if isset($input.upper_separator) && $input.upper_separator}<hr>{/if}
{if isset($input.row_title)}
<div class="col-lg-9 col-lg-offset-3 row-title">{$input.row_title}</div>
{/if}
{$smarty.block.parent}
{if isset($input.separator) && $input.separator}<hr>{/if}
{if isset($input.suffix_a_wrapper) && $input.suffix_wrapper}</div>{/if}
{if isset($input.suffix_wrapper) && $input.suffix_wrapper}</div>{/if}
{if isset($input.hide) && $input.hide}</div>{/if}
{/if}
{/block}
{block name="input"}
{if $input.type == 'link_choice'}
<div class="row">
<div class="col-lg-1">
<h4 style="margin-top:5px;">{l s='Change position' mod='iqitmegamenu'}</h4>
<a href="#" id="menuOrderUp" class="btn btn-default" style="font-size:20px;display:block;"><i class="icon-chevron-up"></i></a><br/>
<a href="#" id="menuOrderDown" class="btn btn-default" style="font-size:20px;display:block;"><i class="icon-chevron-down"></i></a><br/>
</div>
<div class="col-lg-4">
<h4 style="margin-top:5px;">{l s='Selected items' mod='iqitmegamenu'}</h4>
{*HTML CONTENT*} {$selected_links nofilter}
</div>
<div class="col-lg-4">
<h4 style="margin-top:5px;">{l s='Available items' mod='iqitmegamenu'}</h4>
{*HTML CONTENT*} {$choices nofilter}
</div>
</div>
<br/>
<div class="row">
<div class="col-lg-1"></div>
<div class="col-lg-4"><a href="#" id="removeItem" class="btn btn-default"><i class="icon-arrow-right"></i> {l s='Remove' mod='iqitmegamenu'}</a></div>
<div class="col-lg-4"><a href="#" id="addItem" class="btn btn-default"><i class="icon-arrow-left"></i> {l s='Add' mod='iqitmegamenu'}</a></div>
</div>
{elseif $input.type == 'tabs_choice'}
<div class="row">
<div class="col-lg-1">
<h4 style="margin-top:5px;">{l s='Change position' mod='iqitmegamenu'}</h4>
<a href="#" id="menuOrderUp" class="btn btn-default" style="font-size:20px;display:block;"><i class="icon-chevron-up"></i></a><br/>
<a href="#" id="menuOrderDown" class="btn btn-default" style="font-size:20px;display:block;"><i class="icon-chevron-down"></i></a><br/>
</div>
<div class="col-lg-4">
<h4 style="margin-top:5px;">{l s='Selected tabs' mod='iqitmegamenu'}</h4>
{*HTML CONTENT*} {$selected_tabs nofilter}
</div>
<div class="col-lg-4">
<h4 style="margin-top:5px;">{l s='Available predefined tabs' mod='iqitmegamenu'}</h4>
{*HTML CONTENT*} {$choices_tabs nofilter}
</div>
</div>
<br/>
<div class="row">
<div class="col-lg-1"></div>
<div class="col-lg-4"><a href="#" id="removeItem" class="btn btn-default"><i class="icon-arrow-right"></i> {l s='Remove' mod='iqitmegamenu'}</a></div>
<div class="col-lg-4"><a href="#" id="addItem" class="btn btn-default"><i class="icon-arrow-left"></i> {l s='Add' mod='iqitmegamenu'}</a></div>
</div>
{elseif $input.type == 'grid_creator'}
{*HTML CONTENT*} <input type="hidden" name="submenu-elements" id="submenu-elements" value="{$submenu_content nofilter}">
<div id="column-content-sample" class="hidden">
{include file="./column_content.tpl"}
</div>
<div class="row grid_creator">
<div class="col-xs-12 first-rows-wrapper" data-element-id="0">
{foreach $submenu_content_format as $element}
{include file="./submenu_content.tpl" node=$element}
{/foreach}
</div>
<div id="buttons-sample">
<div class="action-buttons-container">
<button type="button" class="btn btn-default add-row-action" ><i class="icon icon-plus"></i> {l s='Row' mod='iqitmegamenu'}</button>
<button type="button" class="btn btn-default add-column-action" ><i class="icon icon-plus"></i> {l s='Column' mod='iqitmegamenu'}</button>
<button type="button" class="btn btn-default duplicate-element-action" ><i class="icon icon-files-o"></i> </button>
<button type="button" class="btn btn-danger remove-element-action" ><i class="icon-trash"></i> </button>
</div>
<div class="dragger-handle btn btn-danger"><i class="icon-arrows "></i></a></div>
</div>
</div>
{elseif $input.type == 'image_upload'}
<p> <input id="{$input.name}" type="text" name="{$input.name}" value="{$fields_value[$input.name]}"> </p>
<a href="filemanager/dialog.php?type=1&field_id={$input.name}" class="btn btn-default iframe-upload" data-input-name="{$input.name}" type="button">{l s='Select image' mod='iqitmegamenu'} <i class="icon-angle-right"></i></a>
{elseif $input.type == 'ietool'}
<div class="row-title">{l s='Design import/export' mod='iqitmegamenu'} </div>
<div style="display:inline-block;"><input type="file" id="uploadConfig" name="uploadConfig" /></div>
<button type="submit" class="btn btn-default btn-lg" name="importConfiguration" ><span class="icon icon-upload"></span> {l s='Import design' mod='iqitmegamenu'} </button>
<button type="submit" class="btn btn-default btn-lg" name="exportConfiguration" ><span class="icon icon-share"></span> {l s='Export design' mod='iqitmegamenu'} </button>
<hr>
<div class="row-title">{l s='Tabs import/export' mod='iqitmegamenu'} </div>
<div style="display:inline-block;"><input type="file" id="uploadTabs" name="uploadTabs" /></div>
<button type="submit" class="btn btn-default btn-lg" name="importTabs" ><span class="icon icon-upload"></span> {l s='Import tabs' mod='iqitmegamenu'} </button>
<button type="submit" class="btn btn-default btn-lg" name="exportTabs" ><span class="icon icon-share"></span> {l s='Export tabs' mod='iqitmegamenu'} </button>
<hr>
<div class="alert alert-info">
{l s='If you using multistore: It will import or export design or tabs of your currently selected store only.' mod='iqitmegamenu'}
</div>
{elseif $input.type == 'custom_select'}
{*HTML CONTENT*} {$input.choices nofilter}
<script>
$("#{$input.name} option").filter(function() {
return $(this).val() == '{$fields_value[$input.name]}';
}).prop('selected', true);
</script>
{elseif $input.type == 'icon_selector'}
<div class="input-group col-lg-3">
<input type="text" name="{$input.name}" class="icp icp-auto" id="{$input.name}" value="{$fields_value[$input.name]}">
<span class="input-group-addon">{l s='Select icon' mod='iqitmegamenu'}</span>
</div>
{elseif $input.type == 'border_generator'}
<div class="col-xs-2">
<select name="{$input.name}_type" id="{$input.name}_type">
<option value="5" {if $fields_value[$input.name].type==5}selected{/if}>{l s='groove' mod='iqitmegamenu'}</option>
<option value="4" {if $fields_value[$input.name].type==4}selected{/if}>{l s='double' mod='iqitmegamenu'}</option>
<option value="3" {if $fields_value[$input.name].type==3}selected{/if}>{l s='dotted' mod='iqitmegamenu'}</option>
<option value="2" {if $fields_value[$input.name].type==2}selected{/if}>{l s='dashed' mod='iqitmegamenu'}</option>
<option value="1" {if $fields_value[$input.name].type==1}selected{/if}>{l s='solid' mod='iqitmegamenu'}</option>
<option value="0" {if $fields_value[$input.name].type==0}selected{/if}>{l s='none' mod='iqitmegamenu'}</option>
</select>
</div>
<div class="col-xs-2">
<select name="{$input.name}_width" id="{$input.name}_width">
{for $i=1 to 10}
<option value="{$i}" {if $fields_value[$input.name].width == $i}selected{/if}>{$i} px</option>
{/for}
</select>
</div>
<div class="col-xs-2">
<div class="row">
<div class="input-group">
<input type="color" data-hex="true" class="color mColorPickerInput" name="{$input.name}_color" value="{$fields_value[$input.name].color}" />
</div> </div> </div>
{elseif $input.type == 'custom_info'}
&nbsp;
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,25 @@
{*
* 2007-2017 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2017 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*
*}
{foreach $categories as $category}
<option value="{$category.id}" {if isset($ids) && $type == 2 && in_array($category.id, $ids)}selected{/if} > {$category.name}</option>
{if isset($category.children)}
{if isset($ids) && $type == 2}
{include file="./subcategory.tpl" categories=$category.children ids=$ids type=$type}
{else}
{include file="./subcategory.tpl" categories=$category.children}
{/if}
{/if}
{/foreach}

View File

@@ -0,0 +1,38 @@
{*
* 2007-2017 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <support@iqit-commerce.com>
* @copyright 2007-2017 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*
*}
{if $node.type==1}
<div data-element-type="1" data-depth="{$node.depth}" data-element-id="{$node.elementId}" class="row menu_row menu-element {if $node.depth==0} first_rows{/if} menu-element-id-{$node.elementId}">
{elseif $node.type==2}
<div data-element-type="2" data-depth="{$node.depth}" data-width="{$node.width}" data-contenttype="{$node.contentType}" data-element-id="{$node.elementId}" class="col-xs-{$node.width} menu_column menu-element menu-element-id-{$node.elementId}">
{/if}
<div class="action-buttons-container">
<button type="button" class="btn btn-default add-row-action" ><i class="icon icon-plus"></i> {l s='Row' mod='iqitmegamenu'}</button>
<button type="button" class="btn btn-default add-column-action" ><i class="icon icon-plus"></i> {l s='Column' mod='iqitmegamenu'}</button>
<button type="button" class="btn btn-default duplicate-element-action" ><i class="icon icon-files-o"></i> </button>
<button type="button" class="btn btn-danger remove-element-action" ><i class="icon-trash"></i> </button>
</div>
<div class="dragger-handle btn btn-danger"><i class="icon-arrows "></i></a></div>
{if $node.type==2}
{include file="./column_content.tpl" node=$node}
{/if}
{if isset($node.children) && $node.children|@count > 0}
{foreach from=$node.children item=child name=categoryTreeBranch}
{include file="./submenu_content.tpl" node=$child }
{/foreach}
{/if}
</div>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

Some files were not shown because too many files have changed in this diff Show More