On rajoute encore quelques modules
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user