On rajoute encore quelques modules
This commit is contained in:
5
modules/iqitmegamenu/Readme.md
Normal file
5
modules/iqitmegamenu/Readme.md
Normal 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
|
||||
12
modules/iqitmegamenu/config_fr.xml
Normal file
12
modules/iqitmegamenu/config_fr.xml
Normal 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>
|
||||
35
modules/iqitmegamenu/export/index.php
Normal file
35
modules/iqitmegamenu/export/index.php
Normal 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;
|
||||
24
modules/iqitmegamenu/index.php
Normal file
24
modules/iqitmegamenu/index.php
Normal 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;
|
||||
|
||||
5303
modules/iqitmegamenu/iqitmegamenu.php
Normal file
5303
modules/iqitmegamenu/iqitmegamenu.php
Normal file
File diff suppressed because it is too large
Load Diff
BIN
modules/iqitmegamenu/logo.gif
Normal file
BIN
modules/iqitmegamenu/logo.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
BIN
modules/iqitmegamenu/logo.png
Normal file
BIN
modules/iqitmegamenu/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
82
modules/iqitmegamenu/models/IqitMenuHtml.php
Normal file
82
modules/iqitmegamenu/models/IqitMenuHtml.php
Normal 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);
|
||||
}
|
||||
}
|
||||
132
modules/iqitmegamenu/models/IqitMenuLinks.php
Normal file
132
modules/iqitmegamenu/models/IqitMenuLinks.php
Normal 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;
|
||||
}
|
||||
}
|
||||
309
modules/iqitmegamenu/models/IqitMenuTab.php
Normal file
309
modules/iqitmegamenu/models/IqitMenuTab.php
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
35
modules/iqitmegamenu/models/index.php
Normal file
35
modules/iqitmegamenu/models/index.php
Normal 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;
|
||||
BIN
modules/iqitmegamenu/readme_en.pdf
Normal file
BIN
modules/iqitmegamenu/readme_en.pdf
Normal file
Binary file not shown.
0
modules/iqitmegamenu/translations/en.php
Normal file
0
modules/iqitmegamenu/translations/en.php
Normal file
35
modules/iqitmegamenu/translations/index.php
Normal file
35
modules/iqitmegamenu/translations/index.php
Normal 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;
|
||||
35
modules/iqitmegamenu/upgrade/index.php
Normal file
35
modules/iqitmegamenu/upgrade/index.php
Normal 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;
|
||||
22
modules/iqitmegamenu/upgrade/install-1.0.1.php
Normal file
22
modules/iqitmegamenu/upgrade/install-1.0.1.php
Normal 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;
|
||||
}
|
||||
21
modules/iqitmegamenu/upgrade/install-1.0.2.php
Normal file
21
modules/iqitmegamenu/upgrade/install-1.0.2.php
Normal 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;
|
||||
}
|
||||
21
modules/iqitmegamenu/upgrade/install-1.0.5.php
Normal file
21
modules/iqitmegamenu/upgrade/install-1.0.5.php
Normal 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;
|
||||
}
|
||||
38
modules/iqitmegamenu/upgrade/install-1.1.0.php
Normal file
38
modules/iqitmegamenu/upgrade/install-1.1.0.php
Normal 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;
|
||||
}
|
||||
21
modules/iqitmegamenu/upgrade/install-1.1.1.php
Normal file
21
modules/iqitmegamenu/upgrade/install-1.1.1.php
Normal 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;
|
||||
}
|
||||
198
modules/iqitmegamenu/views/css/back.css
Normal file
198
modules/iqitmegamenu/views/css/back.css
Normal 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; }
|
||||
12
modules/iqitmegamenu/views/css/bootstrap.min.css
vendored
Normal file
12
modules/iqitmegamenu/views/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
4
modules/iqitmegamenu/views/css/font-awesome.min.css
vendored
Normal file
4
modules/iqitmegamenu/views/css/font-awesome.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
9
modules/iqitmegamenu/views/css/fontawesome-iconpicker.min.css
vendored
Normal file
9
modules/iqitmegamenu/views/css/fontawesome-iconpicker.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
5
modules/iqitmegamenu/views/css/fontawesome.css
vendored
Normal file
5
modules/iqitmegamenu/views/css/fontawesome.css
vendored
Normal file
File diff suppressed because one or more lines are too long
972
modules/iqitmegamenu/views/css/front.css
Normal file
972
modules/iqitmegamenu/views/css/front.css
Normal 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;
|
||||
}
|
||||
}
|
||||
35
modules/iqitmegamenu/views/css/index.php
Normal file
35
modules/iqitmegamenu/views/css/index.php
Normal 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;
|
||||
1
modules/iqitmegamenu/views/css/iqitmegamenu_s_1.css
Normal file
1
modules/iqitmegamenu/views/css/iqitmegamenu_s_1.css
Normal file
File diff suppressed because one or more lines are too long
1
modules/iqitmegamenu/views/css/iqitmegamenu_s_2.css
Normal file
1
modules/iqitmegamenu/views/css/iqitmegamenu_s_2.css
Normal 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: ; }
|
||||
112
modules/iqitmegamenu/views/css/rtl.css
Normal file
112
modules/iqitmegamenu/views/css/rtl.css
Normal 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; }
|
||||
2776
modules/iqitmegamenu/views/css/tinymce.css
Normal file
2776
modules/iqitmegamenu/views/css/tinymce.css
Normal file
File diff suppressed because it is too large
Load Diff
BIN
modules/iqitmegamenu/views/fonts/FontAwesome.otf
Normal file
BIN
modules/iqitmegamenu/views/fonts/FontAwesome.otf
Normal file
Binary file not shown.
BIN
modules/iqitmegamenu/views/fonts/fontawesome-webfont.eot
Normal file
BIN
modules/iqitmegamenu/views/fonts/fontawesome-webfont.eot
Normal file
Binary file not shown.
2671
modules/iqitmegamenu/views/fonts/fontawesome-webfont.svg
Normal file
2671
modules/iqitmegamenu/views/fonts/fontawesome-webfont.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 433 KiB |
BIN
modules/iqitmegamenu/views/fonts/fontawesome-webfont.ttf
Normal file
BIN
modules/iqitmegamenu/views/fonts/fontawesome-webfont.ttf
Normal file
Binary file not shown.
BIN
modules/iqitmegamenu/views/fonts/fontawesome-webfont.woff
Normal file
BIN
modules/iqitmegamenu/views/fonts/fontawesome-webfont.woff
Normal file
Binary file not shown.
BIN
modules/iqitmegamenu/views/fonts/fontawesome-webfont.woff2
Normal file
BIN
modules/iqitmegamenu/views/fonts/fontawesome-webfont.woff2
Normal file
Binary file not shown.
24
modules/iqitmegamenu/views/fonts/index.php
Normal file
24
modules/iqitmegamenu/views/fonts/index.php
Normal 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;
|
||||
|
||||
24
modules/iqitmegamenu/views/index.php
Normal file
24
modules/iqitmegamenu/views/index.php
Normal 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;
|
||||
|
||||
836
modules/iqitmegamenu/views/js/back.js
Normal file
836
modules/iqitmegamenu/views/js/back.js
Normal 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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
24
modules/iqitmegamenu/views/js/bootstrap.min.js
vendored
Normal file
24
modules/iqitmegamenu/views/js/bootstrap.min.js
vendored
Normal 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);
|
||||
31
modules/iqitmegamenu/views/js/equalheights.js
Normal file
31
modules/iqitmegamenu/views/js/equalheights.js
Normal 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();
|
||||
});
|
||||
15
modules/iqitmegamenu/views/js/fontawesome-iconpicker.min.js
vendored
Normal file
15
modules/iqitmegamenu/views/js/fontawesome-iconpicker.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
355
modules/iqitmegamenu/views/js/front.js
Normal file
355
modules/iqitmegamenu/views/js/front.js
Normal 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();
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
35
modules/iqitmegamenu/views/js/index.php
Normal file
35
modules/iqitmegamenu/views/js/index.php
Normal 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;
|
||||
146
modules/iqitmegamenu/views/js/jquery.auto-complete.js
Normal file
146
modules/iqitmegamenu/views/js/jquery.auto-complete.js
Normal 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));
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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'}
|
||||
|
||||
{else}
|
||||
{$smarty.block.parent}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
@@ -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}
|
||||
@@ -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>
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
22
modules/iqitmegamenu/views/templates/admin/configure.tpl
Normal file
22
modules/iqitmegamenu/views/templates/admin/configure.tpl
Normal file
@@ -0,0 +1,22 @@
|
||||
{*
|
||||
* 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="panel">
|
||||
<h3><i class="icon icon-credit-card"></i> {l s='Drag and Drop megamenu' mod='iqitmegamenu'}</h3>
|
||||
<p>
|
||||
{l s='You can configure it using the following configuration form.' mod='iqitmegamenu'}
|
||||
</p>
|
||||
|
||||
<strong>{l s='Need prestashop help, theme or custom implementation?' mod='iqitmegamenu'}</strong> {l s='Contact with us:' mod='iqitmegamenu'} <a href="http://www.iqit-commerce.com" target="_blank">iqit-commerce.com</a>
|
||||
</p>
|
||||
</div>
|
||||
35
modules/iqitmegamenu/views/templates/admin/index.php
Normal file
35
modules/iqitmegamenu/views/templates/admin/index.php
Normal 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;
|
||||
@@ -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;
|
||||
@@ -0,0 +1,35 @@
|
||||
{*
|
||||
* 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.
|
||||
*
|
||||
*}
|
||||
|
||||
{function name="mobile_links" nodes=[] first=false}
|
||||
{strip}
|
||||
{if $nodes|count}
|
||||
{if !$first}<ul>{/if}
|
||||
{foreach from=$nodes item=node}
|
||||
{if isset($node.title)}
|
||||
<li>{if isset($node.children)}<div class="responsiveInykator">+</div>{/if}<a href="{$node.href}">{$node.title}</a>
|
||||
{if isset($node.children)}
|
||||
{mobile_links nodes=$node.children first=false}
|
||||
{/if}
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if !$first}</ul>{/if}
|
||||
{/if}
|
||||
{/strip}
|
||||
{/function}
|
||||
|
||||
|
||||
{if isset($menu)}
|
||||
{mobile_links nodes=$menu first=true}
|
||||
{/if}
|
||||
@@ -0,0 +1,56 @@
|
||||
{*
|
||||
* 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.
|
||||
*
|
||||
*}
|
||||
|
||||
<ul class="cbp-products-big flexslider_carousel row ">
|
||||
{foreach from=$products item=productMenu name=homeFeaturedProducts}
|
||||
<li class="ajax_block_product col-xs-{$perline}">
|
||||
<div class="product-container">
|
||||
<div class="product-image-container">
|
||||
<a class="product_img_link" href="{$productMenu.link}" title="{$productMenu.name}">
|
||||
<img class="img-fluid img-responsive"
|
||||
src="{$productMenu.cover.bySize.home_default.url}"
|
||||
alt="{if !empty($productMenu.legend)}{$productMenu.legend}{else}{$productMenu.name}{/if}"
|
||||
{if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} />
|
||||
</a>
|
||||
</div>
|
||||
{if isset($productMenu.pack_quantity) && $productMenu.pack_quantity}{$productMenu.pack_quantity|intval|cat:' x '}{/if}
|
||||
<a class="cbp-product-name" href="{$productMenu.link}" title="{$productMenu.name}">
|
||||
{$productMenu.name|truncate:60:'...'}
|
||||
</a>
|
||||
{if $productMenu.show_price}
|
||||
<div class="product-price-and-shipping">
|
||||
{if $productMenu.has_discount}
|
||||
{hook h='displayProductPriceBlock' product=$productMenu type="old_price"}
|
||||
|
||||
<span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span>
|
||||
<span class="regular-price">{$productMenu.regular_price}</span>
|
||||
{if $productMenu.discount_type === 'percentage'}
|
||||
<span class="discount-percentage">{$productMenu.discount_percentage}</span>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$productMenu type="before_price"}
|
||||
|
||||
<span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span>
|
||||
<span itemprop="price" class="price">{$productMenu.price}</span>
|
||||
{hook h='displayPpcPriceList' id_product=$productMenu.id_product}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$productMenu type='unit_price'}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$productMenu type='weight'}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
@@ -0,0 +1,59 @@
|
||||
{*
|
||||
* 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.
|
||||
*
|
||||
*}
|
||||
<ul class="cbp-products-list {if $perline==12}cbp-products-list-one{/if} row ">
|
||||
{foreach from=$products item=productMenu name=homeFeaturedProducts}
|
||||
<li class="ajax_block_product col-xs-{$perline}">
|
||||
<div class="product-container clearfix">
|
||||
<div class="product-image-container">
|
||||
<a class="product_img_link" href="{$productMenu.link}" title="{$productMenu.name}" >
|
||||
<img class="img-fluid img-responsive"
|
||||
src="{$productMenu.cover.bySize.medium_default.url}"
|
||||
alt="{if !empty($productMenu.legend)}{$productMenu.legend}{else}{$productMenu.name}{/if}"
|
||||
{if isset($mediumSize)} width="{$mediumSize.width}" height="{$mediumSize.height}"{/if}/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="cbp-product-info">
|
||||
{if isset($productMenu.pack_quantity) && $productMenu.pack_quantity}{$productMenu.pack_quantity|intval|cat:' x '}{/if}
|
||||
<a class="cbp-product-name" href="{$productMenu.link}" title="{$productMenu.name}" >
|
||||
{$productMenu.name|truncate:35:'...'}
|
||||
</a>
|
||||
|
||||
{if $productMenu.show_price}
|
||||
<div class="product-price-and-shipping">
|
||||
{if $productMenu.has_discount}
|
||||
{hook h='displayProductPriceBlock' product=$productMenu type="old_price"}
|
||||
|
||||
<span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span>
|
||||
<span class="regular-price">{$productMenu.regular_price}</span>
|
||||
{if $productMenu.discount_type === 'percentage'}
|
||||
<span class="discount-percentage">{$productMenu.discount_percentage}</span>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$productMenu type="before_price"}
|
||||
|
||||
<span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span>
|
||||
<span itemprop="price" class="price">{$productMenu.price}</span>
|
||||
{hook h='displayPpcPriceList' id_product=$productMenu.id_product}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$productMenu type='unit_price'}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$productMenu type='weight'}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div></div>
|
||||
</li>
|
||||
|
||||
{/foreach}
|
||||
</ul>
|
||||
@@ -0,0 +1,184 @@
|
||||
{*
|
||||
* 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.
|
||||
*
|
||||
*}
|
||||
|
||||
{function name="categories_links" nodes=[] level=1}
|
||||
{strip}
|
||||
<ul class="{if $level==1}cbp-links cbp-category-tree{elseif $level==2}cbp-hrsub-level2{elseif $level==3}cbp-hrsub-level2 cbp-hrsub-level3{/if}">
|
||||
{foreach $categories as $category}
|
||||
{if isset($category.title)}
|
||||
<li {if isset($category.children)} class="{if $level==1}cbp-hrsub-haslevel2{else}cbp-hrsub-haslevel3{/if}" {/if}>
|
||||
<div class="cbp-category-link-w">
|
||||
<a href="{$category.href}">{$category.title}</a>
|
||||
{if isset($category.children)}
|
||||
{categories_links categories=$category.children level=$level+1}
|
||||
{/if}
|
||||
</div>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/strip}
|
||||
{/function}
|
||||
|
||||
|
||||
|
||||
{if $node.type==1}
|
||||
<div class="row menu_row menu-element {if $node.depth==0} first_rows{/if} menu-element-id-{$node.elementId}">
|
||||
{elseif $node.type==2}
|
||||
<div class="col-xs-{$node.width} cbp-menu-column cbp-menu-element menu-element-id-{$node.elementId} {if $node.contentType==0}cbp-empty-column{/if}{if $node.contentType == 6 && isset($node.content.absolute)} cbp-absolute-column{/if}">
|
||||
<div class="cbp-menu-column-inner">
|
||||
{/if}
|
||||
{if $node.type==2}
|
||||
|
||||
{if isset($node.content_s.title)}
|
||||
{if isset($node.content_s.href)}
|
||||
<a href="{$node.content_s.href}"
|
||||
class="cbp-column-title{if isset($node.content.view) && $node.content.view==2 && $node.contentType==3} cbp-column-title-inline{/if}">{$node.content_s.title} {if isset($node.content_s.legend)}
|
||||
<span class="label cbp-legend cbp-legend-inner">{$node.content_s.legend}
|
||||
<span class="cbp-legend-arrow"></span>
|
||||
</span>{/if}</a>
|
||||
{else}
|
||||
<span class="cbp-column-title{if isset($node.content.view) && $node.content.view==2 && $node.contentType==3} cbp-column-title-inline{/if} transition-300">{$node.content_s.title} {if isset($node.content_s.legend)}
|
||||
<span class="label cbp-legend cbp-legend-inner">{$node.content_s.legend}
|
||||
<span class="cbp-legend-arrow"></span>
|
||||
</span>{/if}</span>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $node.contentType==1}
|
||||
|
||||
{if isset($node.content.ids) && $node.content.ids}
|
||||
{*HTML CONTENT*} {$node.content.ids nofilter}
|
||||
{/if}
|
||||
|
||||
{elseif $node.contentType==2}
|
||||
|
||||
{if isset($node.content.ids)}
|
||||
|
||||
{if $node.content.treep}
|
||||
<div class="row cbp-categories-row">
|
||||
{foreach from=$node.content.ids item=category}
|
||||
{if isset($category.title)}
|
||||
<div class="col-xs-{$node.content.line}">
|
||||
<div class="cbp-category-link-w"><a href="{$category.href}"
|
||||
class="cbp-column-title cbp-category-title">{$category.title}</a>
|
||||
{if isset($category.thumb) && $category.thumb != ''}<a
|
||||
href="{$category.href}" class="cbp-category-thumb"><img
|
||||
class="replace-2x img-fluid" src="{$category.thumb}"
|
||||
alt="{$category.title}"/></a>{/if}
|
||||
{if isset($category.children)}
|
||||
{categories_links categories=$category.children level=1}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{else}
|
||||
<ul class="cbp-links cbp-category-tree">
|
||||
{foreach from=$node.content.ids item=category}
|
||||
{if isset($category.title)}
|
||||
<li {if isset($category.children)}class="cbp-hrsub-haslevel2"{/if}>
|
||||
<div class="cbp-category-link-w">
|
||||
<a href="{$category.href}">{$category.title}</a>
|
||||
|
||||
{if isset($category.children)}
|
||||
{categories_links categories=$category.children level=2}
|
||||
{/if}
|
||||
</div>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{elseif $node.contentType==3}
|
||||
|
||||
{if isset($node.content.ids)}
|
||||
<ul class="cbp-links cbp-valinks{if !$node.content.view} cbp-valinks-vertical{/if}{if $node.content.view==2} cbp-valinks-vertical cbp-valinks-vertical2{/if}">
|
||||
{foreach from=$node.content.ids item=va_link}
|
||||
{if isset($va_link.href) && isset($va_link.title) && $va_link.href != '' && $va_link.title != ''}
|
||||
<li><a href="{$va_link.href}"
|
||||
{if isset($va_link.new_window) && $va_link.new_window}target="_blank"{/if}>{$va_link.title}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
{elseif $node.contentType==4}
|
||||
|
||||
{if isset($node.content.ids)}
|
||||
{if $node.content.view}
|
||||
{include file="module:iqitmegamenu/views/templates/hook/_partials/products_grid.tpl" products=$node.content.ids perline=$node.content.line}
|
||||
{else}
|
||||
{include file="module:iqitmegamenu/views/templates/hook/_partials/products_list.tpl" products=$node.content.ids perline=$node.content.line}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{elseif $node.contentType==5}
|
||||
<ul class="cbp-manufacturers row">
|
||||
{foreach from=$node.content.ids item=manufacturer}
|
||||
{assign var="myfile" value="img/m/{$manufacturer}-small_default.jpg"}
|
||||
{if file_exists($myfile)}
|
||||
<li class="col-xs-{$node.content.line} transition-opacity-300">
|
||||
<a href="{$link->getmanufacturerLink($manufacturer)}"
|
||||
title="Manufacturer - {Manufacturer::getNameById($manufacturer)}">
|
||||
<img src="{$urls.img_manu_url}{$manufacturer}-small_default.jpg"
|
||||
class="img-fluid logo_manufacturer " {if isset($manufacturerSize)} width="{$manufacturerSize.width}" height="{$manufacturerSize.height}"{/if}
|
||||
alt="Manufacturer - {Manufacturer::getNameById($manufacturer)}"/>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{elseif $node.contentType==6}
|
||||
|
||||
{if isset($node.content.source)}
|
||||
{if isset($node.content.href)}<a href="{$node.content.href}">{/if}
|
||||
<img src="{$node.content.source}" class="img-fluid cbp-banner-image"
|
||||
{if isset($node.content.alt)}alt="{$node.content.alt}"{/if}
|
||||
{if isset($node.content.size)} width="{$node.content.size.w}" height="{$node.content.size.h}"{/if} />
|
||||
{if isset($node.content.href)}</a>{/if}
|
||||
{/if}
|
||||
|
||||
{elseif $node.contentType==7}
|
||||
<ul class="cbp-manufacturers cbp-suppliers row">
|
||||
{foreach from=$node.content.ids item=supplier}
|
||||
{assign var="myfile" value="img/su/{$supplier}-small_default.jpg"}
|
||||
{if file_exists($myfile)}
|
||||
<li class="col-xs-{$node.content.line} transition-opacity-300">
|
||||
<a href="{$link->getsupplierLink($supplier)}"
|
||||
title="supplier - {supplier::getNameById($supplier)}">
|
||||
<img src="{$urls.img_sup_url}{$supplier}-small_default.jpg"
|
||||
class="img-fluid logo_manufacturer logo_supplier" {if isset($manufacturerSize)} width="{$manufacturerSize.width}" height="{$manufacturerSize.height}"{/if}
|
||||
alt="supplier - {supplier::getNameById($supplier)}"/>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
{if isset($node.children) && $node.children|@count > 0}
|
||||
{foreach from=$node.children item=child name=categoryTreeBranch}
|
||||
{include file="module:iqitmegamenu/views/templates/hook/_partials/submenu_content.tpl" node=$child}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
{if $node.type==2}</div>{/if}
|
||||
</div>
|
||||
24
modules/iqitmegamenu/views/templates/hook/front_link.tpl
Normal file
24
modules/iqitmegamenu/views/templates/hook/front_link.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
{*
|
||||
* 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.
|
||||
*
|
||||
*}
|
||||
|
||||
<ul>
|
||||
{foreach $childrens as $children}
|
||||
{if isset($children.title)}
|
||||
<li>{if isset($children.children)}<div class="responsiveInykator">+</div>{/if}<a href="{$children.href}">{$children.title}</a>
|
||||
{if isset($children.children)}
|
||||
{include file="./front_link.tpl" childrens=$children.children}
|
||||
{/if}
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
@@ -0,0 +1,26 @@
|
||||
{*
|
||||
* 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.
|
||||
*
|
||||
*}
|
||||
|
||||
<ul class="{if $level==1}cbp-links cbp-category-tree{elseif $level==2}cbp-hrsub-level2{elseif $level==3}cbp-hrsub-level2 cbp-hrsub-level3{/if}">
|
||||
{foreach $categories as $category}
|
||||
{if isset($category.title)}<li {if isset($category.children)} class="{if $level==1}cbp-hrsub-haslevel2{else}cbp-hrsub-haslevel3{/if}" {/if} >
|
||||
<div class="cbp-category-link-w">
|
||||
<a href="{$category.href}">{$category.title}</a>
|
||||
{if isset($category.children)}
|
||||
{include file="./front_subcategory.tpl" categories=$category.children level=$level+1}
|
||||
{/if}
|
||||
</div>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
125
modules/iqitmegamenu/views/templates/hook/horizontal.tpl
Normal file
125
modules/iqitmegamenu/views/templates/hook/horizontal.tpl
Normal file
@@ -0,0 +1,125 @@
|
||||
{*
|
||||
* 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="container container-iqit-menu">
|
||||
<div class="iqitmegamenu-wrapper cbp-hor-width-{$menu_settings.hor_width} iqitmegamenu-all clearfix">
|
||||
<div id="iqitmegamenu-horizontal" class="iqitmegamenu cbp-nosticky {if $menu_settings.hor_s_transparent && $menu_settings.hor_sticky} cbp-sticky-transparent{/if}" role="navigation">
|
||||
<div class="container">
|
||||
|
||||
{if isset($menu_settings_v) && ($menu_settings_v.ver_position==2 || $menu_settings_v.ver_position==3) }
|
||||
|
||||
<div class="cbp-vertical-on-top {if $menu_settings_v.ver_position==2}cbp-homepage-expanded{/if}">
|
||||
{include file="module:iqitmegamenu/views/templates/hook/vertical.tpl" ontop=1}
|
||||
</div>
|
||||
{/if}
|
||||
{hook h='displayAfterIqitMegamenu'}
|
||||
<nav id="cbp-hrmenu" class="cbp-hrmenu cbp-horizontal cbp-hrsub-narrow {if $menu_settings.hor_animation==1}cbp-fade{/if} {if $menu_settings.hor_animation==2}cbp-fade-slide-bottom{/if} {if $menu_settings.hor_animation==3}cbp-fade-slide-top{/if} {if $menu_settings.hor_s_arrow}cbp-arrowed{/if} {if !$menu_settings.hor_arrow} cbp-submenu-notarrowed{/if} {if !$menu_settings.hor_arrow} cbp-submenu-notarrowed{/if} {if $menu_settings.hor_center} cbp-menu-centered{/if} ">
|
||||
<ul>
|
||||
{foreach $horizontal_menu as $tab}
|
||||
<li id="cbp-hrmenu-tab-{$tab.id_tab}" class="cbp-hrmenu-tab cbp-hrmenu-tab-{$tab.id_tab}{if $tab.active_label} cbp-onlyicon{/if}{if $tab.float} pull-right cbp-pulled-right{/if} {if $tab.submenu_type && !empty($tab.submenu_content)} cbp-has-submeu{/if}">
|
||||
{if $tab.url_type == 2}<a role="button" class="cbp-empty-mlink">{else}<a href="{$tab.url}" {if $tab.new_window}target="_blank"{/if}>{/if}
|
||||
|
||||
|
||||
<span class="cbp-tab-title">{if $tab.icon_type && !empty($tab.icon_class)} <i class="icon fa {$tab.icon_class} cbp-mainlink-icon"></i>{/if}
|
||||
|
||||
{if !$tab.icon_type && !empty($tab.icon)} <img src="{$tab.icon}" alt="{$tab.title}" class="cbp-mainlink-iicon" />{/if}{if !$tab.active_label}{$tab.title|replace:'/n':'<br />'}{/if}{if $tab.submenu_type} <i class="fa fa-angle-down cbp-submenu-aindicator"></i>{/if}</span>
|
||||
{if !empty($tab.label)}<span class="label cbp-legend cbp-legend-main">{if !empty($tab.legend_icon)} <i class="icon fa {$tab.legend_icon} cbp-legend-icon"></i>{/if} {$tab.label}
|
||||
<span class="cbp-legend-arrow"></span></span>{/if}
|
||||
</a>
|
||||
{if $tab.submenu_type && !empty($tab.submenu_content)}
|
||||
<div class="cbp-hrsub col-xs-{$tab.submenu_width}">
|
||||
<div class="cbp-triangle-container"><div class="cbp-triangle-top"></div><div class="cbp-triangle-top-back"></div></div>
|
||||
<div class="cbp-hrsub-inner">
|
||||
{if $menu_settings.hor_s_width && !$menu_settings.hor_width && !$menu_settings.hor_sw_width}<div class="container">{/if}
|
||||
{if $tab.submenu_type==1}
|
||||
<div class="container-xs-height cbp-tabs-container">
|
||||
<div class="row row-xs-height">
|
||||
<div class="col-xs-2 col-xs-height">
|
||||
<ul class="cbp-hrsub-tabs-names cbp-tabs-names" >
|
||||
{if isset($tab.submenu_content_tabs)}
|
||||
{foreach $tab.submenu_content_tabs as $innertab name=innertabsnames}
|
||||
<li class="innertab-{$innertab->id} ">
|
||||
<a data-target="#{$innertab->id}-innertab-{$tab.id_tab}" {if $innertab->url_type != 2} href="{$innertab->url}" {/if} {if $smarty.foreach.innertabsnames.first}class="active"{/if}>
|
||||
{if $innertab->icon_type && !empty($innertab->icon_class)} <i class="icon fa {$innertab->icon_class} cbp-mainlink-icon"></i>{/if}
|
||||
{if !$innertab->icon_type && !empty($innertab->icon)} <img src="{$innertab->icon}" alt="{$innertab->title}" class="cbp-mainlink-iicon" />{/if}
|
||||
{if !$innertab->active_label}{$innertab->title} {/if}
|
||||
{if !empty($innertab->label)}<span class="label cbp-legend cbp-legend-inner">{if !empty($innertab->legend_icon)} <i class="icon fa {$innertab->legend_icon} cbp-legend-icon"></i>{/if} {$innertab->label}
|
||||
<span class="cbp-legend-arrow"></span></span>{/if}
|
||||
</a><i class="icon fa fa-angle-right cbp-submenu-it-indicator"></i><span class="cbp-inner-border-hider"></span></li>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{if isset($tab.submenu_content_tabs)}
|
||||
<div class="tab-content">
|
||||
{foreach $tab.submenu_content_tabs as $innertab name=innertabscontent}
|
||||
<div class="col-xs-10 col-xs-height tab-pane cbp-tab-pane {if $smarty.foreach.innertabscontent.first}active{/if} innertabcontent-{$innertab->id}"
|
||||
id="{$innertab->id}-innertab-{$tab.id_tab}" role="tabpanel">
|
||||
|
||||
{if !empty($innertab->submenu_content)}
|
||||
<div class="clearfix">
|
||||
{foreach $innertab->submenu_content as $element}
|
||||
{include file="module:iqitmegamenu/views/templates/hook/_partials/submenu_content.tpl" node=$element}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div></div>
|
||||
{else}
|
||||
|
||||
{if !empty($tab.submenu_content)}
|
||||
{foreach $tab.submenu_content as $element}
|
||||
{include file="module:iqitmegamenu/views/templates/hook/_partials/submenu_content.tpl" node=$element}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
{if $menu_settings.hor_s_width && !$menu_settings.hor_width && !$menu_settings.hor_sw_width}</div>{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="iqitmegamenu-mobile">
|
||||
|
||||
<div id="iqitmegamenu-shower" class="clearfix">
|
||||
<div class="iqitmegamenu-icon"><i class="icon fa fa-reorder"></i></div> <span>{l s='Menu' mod='iqitmegamenu'}</span>
|
||||
</div>
|
||||
<div id="iqitmegamenu-mobile-content">
|
||||
<div class="cbp-mobilesubmenu">
|
||||
<ul id="iqitmegamenu-accordion" class="{if $mobile_menu_style}iqitmegamenu-accordion{else}cbp-spmenu cbp-spmenu-vertical cbp-spmenu-left{/if}">
|
||||
{include file="module:iqitmegamenu/views/templates/hook/_partials/mobile_menu.tpl" menu=$mobile_menu}
|
||||
</ul>
|
||||
</div>
|
||||
{if !$mobile_menu_style}<div id="cbp-spmenu-overlay" class="cbp-spmenu-overlay"><div id="cbp-close-mobile" class="close-btn-ui"><i class="fa fa-times"></i></div></div>{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
35
modules/iqitmegamenu/views/templates/hook/index.php
Normal file
35
modules/iqitmegamenu/views/templates/hook/index.php
Normal 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;
|
||||
56
modules/iqitmegamenu/views/templates/hook/list.tpl
Normal file
56
modules/iqitmegamenu/views/templates/hook/list.tpl
Normal file
@@ -0,0 +1,56 @@
|
||||
{*
|
||||
* 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="panel"><h3><i class="icon-list-ul"></i> {if $menu_type==1}{l s='Horizontal tabs list' mod='iqitmegamenu'}{elseif $menu_type==2}{l s='Vertical tabs list' mod='iqitmegamenu'}{elseif $menu_type==3}{l s='Predefinied submenu tabs' mod='iqitmegamenu'}{/if}
|
||||
<span class="panel-heading-action">
|
||||
<a id="desc-product-new" class="list-toolbar-btn" href="{$link->getAdminLink('AdminModules')}&configure=iqitmegamenu&addTab=1&menu_type={$menu_type}">
|
||||
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="Add new" data-html="true">
|
||||
<i class="process-icon-new "></i>
|
||||
</span>
|
||||
</a>
|
||||
</span>
|
||||
</h3>
|
||||
<div id="tabsContent">
|
||||
<div id="tabs{$menu_type}">
|
||||
{foreach from=$tabs item=tab}
|
||||
<div id="tabs_{$tab.id_tab}" class="panel" style="padding: 10px 10px 0px 10px;">
|
||||
<div class="row">
|
||||
<div class="col-lg-1">
|
||||
<span><i class="icon-arrows "></i></span>
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
<h4 class="pull-left">#{$tab.id_tab} - {$tab.title}</h4>
|
||||
<div class="btn-group-action pull-right">
|
||||
<a class="btn btn-default"
|
||||
href="{$link->getAdminLink('AdminModules')}&configure=iqitmegamenu&duplicateTabC={$tab.id_tab}">
|
||||
<i class="icon-edit"></i>
|
||||
{l s='Duplicate' mod='iqitmegamenu'}
|
||||
</a>
|
||||
<a class="btn btn-default"
|
||||
href="{$link->getAdminLink('AdminModules')}&configure=iqitmegamenu&id_tab={$tab.id_tab}&menu_type={$menu_type}">
|
||||
<i class="icon-edit"></i>
|
||||
{l s='Edit' mod='iqitmegamenu'}
|
||||
</a>
|
||||
<a class="btn btn-default"
|
||||
href="{$link->getAdminLink('AdminModules')}&configure=iqitmegamenu&delete_id_tab={$tab.id_tab}">
|
||||
<i class="icon-trash"></i>
|
||||
{l s='Delete' mod='iqitmegamenu'}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
52
modules/iqitmegamenu/views/templates/hook/list_html.tpl
Normal file
52
modules/iqitmegamenu/views/templates/hook/list_html.tpl
Normal file
@@ -0,0 +1,52 @@
|
||||
{*
|
||||
* 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="panel"><h3><i class="icon-list-ul"></i> {l s='Custom htmls' mod='iqitmegamenu'}
|
||||
<span class="panel-heading-action">
|
||||
<a id="desc-product-new" class="list-toolbar-btn" href="{$link->getAdminLink('AdminModules')}&configure=iqitmegamenu&addCustomHtml=1">
|
||||
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="Add new" data-html="true">
|
||||
<i class="process-icon-new "></i>
|
||||
</span>
|
||||
</a>
|
||||
</span>
|
||||
</h3>
|
||||
<div id="tabsContent">
|
||||
<div id="tabs{$menu_type}">
|
||||
{foreach from=$tabs item=tab}
|
||||
<div id="tabs_{$tab.id_html}" class="panel" style="padding: 10px 10px 0px 10px;">
|
||||
<div class="row">
|
||||
<div class="col-lg-1">
|
||||
<span><i class="icon-arrows "></i></span>
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
<h4 class="pull-left">#{$tab.id_html} - {$tab.title}</h4>
|
||||
<div class="btn-group-action pull-right">
|
||||
|
||||
<a class="btn btn-default"
|
||||
href="{$link->getAdminLink('AdminModules')}&configure=iqitmegamenu&id_html={$tab.id_html}">
|
||||
<i class="icon-edit"></i>
|
||||
{l s='Edit' mod='iqitmegamenu'}
|
||||
</a>
|
||||
<a class="btn btn-default"
|
||||
href="{$link->getAdminLink('AdminModules')}&configure=iqitmegamenu&delete_id_html={$tab.id_html}">
|
||||
<i class="icon-trash"></i>
|
||||
{l s='Delete' mod='iqitmegamenu'}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
85
modules/iqitmegamenu/views/templates/hook/vertical.tpl
Normal file
85
modules/iqitmegamenu/views/templates/hook/vertical.tpl
Normal file
@@ -0,0 +1,85 @@
|
||||
{*
|
||||
* 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.
|
||||
*
|
||||
*}
|
||||
|
||||
<nav id="cbp-hrmenu1" class="cbp-hrmenu iqitmegamenu-all cbp-vertical {if $menu_settings_v.ver_animation==1}cbp-fade{/if} {if $menu_settings_v.ver_s_arrow}cbp-arrowed{/if} {if !$menu_settings_v.ver_arrow} cbp-submenu-notarrowed{/if} {if !$menu_settings_v.ver_arrow} cbp-submenu-notarrowed{/if} ">
|
||||
<div class="cbp-vertical-title"><i class="fa fa-bars cbp-iconbars"></i> {l s='Navigation' mod='iqitmegamenu'}</div>
|
||||
<ul>
|
||||
{foreach $vertical_menu as $tab}
|
||||
<li class="cbp-hrmenu-tab cbp-hrmenu-tab-{$tab.id_tab} {if $tab.active_label} cbp-onlyicon{/if}{if $tab.float} pull-right cbp-pulled-right{/if}">
|
||||
{if $tab.url_type == 2}<a role="button" class="cbp-empty-mlink">{else}<a href="{$tab.url}" onclick="" {if $tab.new_window}target="_blank"{/if}>{/if}
|
||||
{if $tab.icon_type && !empty($tab.icon_class)} <i class="fa fa {$tab.icon_class} cbp-mainlink-icon"></i>{/if}
|
||||
{if !$tab.icon_type && !empty($tab.icon)} <img src="{$tab.icon}" alt="{$tab.title}" class="cbp-mainlink-iicon" />{/if}
|
||||
{if !$tab.active_label}<span>{$tab.title|replace:'/n':'<br />'}</span>{/if}{if $tab.submenu_type} <i class="fa fa icon-angle-right cbp-submenu-aindicator"></i>{/if}
|
||||
{if !empty($tab.label)}<span class="label cbp-legend cbp-legend-vertical cbp-legend-main">{if !empty($tab.legend_icon)} <i class="fa fa {$tab.legend_icon} cbp-legend-icon"></i>{/if} {$tab.label}
|
||||
<span class="cbp-legend-arrow"></span></span>{/if}
|
||||
</a>
|
||||
{if $tab.submenu_type && !empty($tab.submenu_content)}
|
||||
<div class="cbp-hrsub-wrapper">
|
||||
<div class="cbp-hrsub col-xs-{$tab.submenu_width}">
|
||||
<div class="cbp-triangle-container"><div class="cbp-triangle-left"></div><div class="cbp-triangle-left-back"></div></div>
|
||||
<div class="cbp-hrsub-inner">
|
||||
|
||||
{if $tab.submenu_type==1}
|
||||
<div class="container-xs-height cbp-tabs-container">
|
||||
<div class="row row-xs-height">
|
||||
<div class="col-xs-2 col-xs-height">
|
||||
<ul class="cbp-hrsub-tabs-names cbp-tabs-names">
|
||||
{if isset($tab.submenu_content_tabs)}
|
||||
{foreach $tab.submenu_content_tabs as $innertab name=innertabsnames}
|
||||
<li class="innertab-{$innertab->id} {if $smarty.foreach.innertabsnames.first}active{/if}"><a data-target="#{$innertab->id}-innertab-{$tab.id_tab}" {if $innertab->url_type != 2} href="{$innertab->url}" {/if}>
|
||||
{if $innertab->icon_type && !empty($innertab->icon_class)} <i class="fa fa {$innertab->icon_class} cbp-mainlink-icon"></i>{/if}
|
||||
{if !$innertab->icon_type && !empty($innertab->icon)} <img src="{$innertab->icon}" alt="{$innertab->title}" class="cbp-mainlink-iicon" />{/if}
|
||||
{$innertab->title}
|
||||
{if !empty($innertab->label)}<span class="label cbp-legend cbp-legend-inner">{if !empty($innertab->legend_icon)} <i class="fa fa {$innertab->legend_icon} cbp-legend-icon"></i>{/if} {$innertab->label}
|
||||
<span class="cbp-legend-arrow"></span></span>{/if}
|
||||
</a><i class="fa fa icon-angle-right cbp-submenu-it-indicator"></i><span class="cbp-inner-border-hider"></span></li>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{if isset($tab.submenu_content_tabs)}
|
||||
<div class="tab-content">
|
||||
{foreach $tab.submenu_content_tabs as $innertab name=innertabscontent}
|
||||
<div role="tabpanel" class="col-xs-10 col-xs-height tab-pane cbp-tab-pane {if $smarty.foreach.innertabscontent.first}active{/if} innertabcontent-{$innertab->id}" id="{$innertab->id}-innertab-{$tab.id_tab}">
|
||||
|
||||
{if !empty($innertab->submenu_content)}
|
||||
<div class="clearfix">
|
||||
{foreach $innertab->submenu_content as $element}
|
||||
{include file="module:iqitmegamenu/views/templates/hook/_partials/submenu_content.tpl" node=$element}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
</div></div>
|
||||
{else}
|
||||
|
||||
{if !empty($tab.submenu_content)}
|
||||
{foreach $tab.submenu_content as $element}
|
||||
{include file="module:iqitmegamenu/views/templates/hook/_partials/submenu_content.tpl" node=$element}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div></div>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</nav>
|
||||
35
modules/iqitmegamenu/views/templates/index.php
Normal file
35
modules/iqitmegamenu/views/templates/index.php
Normal 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;
|
||||
Reference in New Issue
Block a user