first commit
This commit is contained in:
21
modules/roy_content/views/templates/admin/admin.tpl
Normal file
21
modules/roy_content/views/templates/admin/admin.tpl
Normal file
@@ -0,0 +1,21 @@
|
||||
<div id="htmlcontent" class="panel roy_content">
|
||||
<div class="rc_title">{$htmlcontent.info.name|escape:'htmlall':'UTF-8'} (v.{$htmlcontent.info.version|escape:'htmlall':'UTF-8'})</div>
|
||||
|
||||
{if isset($error) && $error}
|
||||
{include file="{$htmlcontent.admin_tpl_path|escape:'htmlall':'UTF-8'}messages.tpl" id="main" text=$error class='error'}
|
||||
{/if}
|
||||
{if isset($confirmation) && $confirmation}
|
||||
{include file="{$htmlcontent.admin_tpl_path|escape:'htmlall':'UTF-8'}messages.tpl" id="main" text=$confirmation class='conf'}
|
||||
{/if}
|
||||
<!-- New -->
|
||||
{include file="{$htmlcontent.admin_tpl_path|escape:'htmlall':'UTF-8'}new.tpl"}
|
||||
|
||||
<div class="rc_help">
|
||||
<p>{l s='If you want to use Banner with hover effect - use Title and HTML for banner title and description.' d='Modules.RoyBanners.Shop'}</p>
|
||||
<p>{l s='If you want to use HTML block - just not upload an image' d='Modules.RoyBanners.Shop'}</p>
|
||||
<p>{l s='If you want to use Responsive Video banner - upload only video inside HTML block, and check Video banner checkbox' d='Modules.RoyBanners.Shop'}</p>
|
||||
</div>
|
||||
|
||||
<!-- Slides -->
|
||||
{include file="{$htmlcontent.admin_tpl_path|escape:'htmlall':'UTF-8'}items.tpl"}
|
||||
</div>
|
||||
36
modules/roy_content/views/templates/admin/index.php
Normal file
36
modules/roy_content/views/templates/admin/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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;
|
||||
243
modules/roy_content/views/templates/admin/items.tpl
Normal file
243
modules/roy_content/views/templates/admin/items.tpl
Normal file
@@ -0,0 +1,243 @@
|
||||
<script>
|
||||
theme_url='{$htmlitems.theme_url}'
|
||||
</script>
|
||||
<ul class="nav nav-tabs">
|
||||
{foreach from=$htmlitems.lang.all item=lang}
|
||||
<li id="lang-{$lang.id_lang|escape:'htmlall':'UTF-8'}" class="lang-flag{if $lang.id_lang == $htmlitems.lang.default.id_lang} active{/if}">
|
||||
<a href="#items-{$lang.id_lang|escape:'htmlall':'UTF-8'}" data-toggle="tab">{$lang.name|escape:'htmlall':'UTF-8'}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<div class="lang-items tab-content rb-admin">
|
||||
{foreach name=langs from=$htmlitems.items key=lang item=langItems}
|
||||
<div id="items-{$lang|escape:'htmlall':'UTF-8'}" class="lang-content tab-pane {if $lang == $htmlitems.lang.default.id_lang}active{/if}" >
|
||||
{foreach name=hooks from=$langItems key=hook item=hookItems}
|
||||
<h4 class="hook-title">{l s='Hook' d='Modules.RoyBanners.Shop'} "{$hook|escape:'htmlall':'UTF-8'}"</h4>
|
||||
{if $hookItems}
|
||||
<ul id="items" class="list-unstyled">
|
||||
{foreach name=items from=$hookItems item=hItem}
|
||||
<li id="item-{$hItem.id_item|escape:'htmlall':'UTF-8'}" class="item well">
|
||||
<form method="post" action="{$htmlitems.postAction|escape:'htmlall':'UTF-8'}" enctype="multipart/form-data" class="item-form defaultForm form-horizontal">
|
||||
<div class="btn-group pull-right">
|
||||
<button class="btn btn-default button-edit">
|
||||
<span class="button-edit-edit"><i class="icon-edit"></i> {l s='Edit' d='Modules.RoyBanners.Shop'}</span>
|
||||
<span class="button-edit-close hide"><i class="icon-remove"></i> {l s='Close' d='Modules.RoyBanners.Shop'}</span>
|
||||
</button>
|
||||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="icon-caret-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="{$htmlitems.postAction|escape:'htmlall':'UTF-8'}&removeItem&item_id={$hItem.id_item|escape:'htmlall':'UTF-8'}" name="removeItem" class="link-item-delete">
|
||||
<i class="icon-trash"></i> {l s='Delete item' d='Modules.RoyBanners.Shop'}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<span class="item-order">{if $hItem.item_order le 9}0{/if}{$hItem.item_order|escape:'htmlall':'UTF-8'}</span>
|
||||
<h5 class="item-title">{$hItem.title|escape:'htmlall':'UTF-8'}</h5>
|
||||
<br>
|
||||
{if $hItem.image}
|
||||
<img src="{$module_dir}img/{$hItem.image}" rel="#comments_{$hItem.id_item}" class="preview img-thumbnail" />
|
||||
{/if}
|
||||
<div class="item-container clearfix">
|
||||
<input type="hidden" name="id_lang" value="{$lang|escape:'htmlall':'UTF-8'}" />
|
||||
<input type="hidden" name="item_id" value="{$hItem.id_item|escape:'htmlall':'UTF-8'}" />
|
||||
<input type="hidden" name="item_order" value="{$hItem.item_order|escape:'htmlall':'UTF-8'}" />
|
||||
<div class="item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Enable' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_active" value="1"{if $hItem.active == 1} checked="checked"{/if} />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="item_cols item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Item width' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<select name="item_cols" default="4" class="fixed-width-lg">
|
||||
<option value="1"{if $hItem.cols == '1'} selected="selected"{/if}>1/12</option>
|
||||
<option value="2"{if $hItem.cols == '2'} selected="selected"{/if}>2/12</option>
|
||||
<option value="3"{if $hItem.cols == '3'} selected="selected"{/if}>3/12</option>
|
||||
<option value="4"{if $hItem.cols == '4'} selected="selected"{/if}>4/12</option>
|
||||
<option value="5"{if $hItem.cols == '5'} selected="selected"{/if}>5/12</option>
|
||||
<option value="6"{if $hItem.cols == '6'} selected="selected"{/if}>6/12</option>
|
||||
<option value="7"{if $hItem.cols == '7'} selected="selected"{/if}>7/12</option>
|
||||
<option value="8"{if $hItem.cols == '8'} selected="selected"{/if}>8/12</option>
|
||||
<option value="9"{if $hItem.cols == '9'} selected="selected"{/if}>9/12</option>
|
||||
<option value="10"{if $hItem.cols == '10'} selected="selected"{/if}>10/12</option>
|
||||
<option value="11"{if $hItem.cols == '11'} selected="selected"{/if}>11/12</option>
|
||||
<option value="12"{if $hItem.cols == '12'} selected="selected"{/if}>12/12</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="title_use item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Display title over banner without hover' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_title_use" value="1"{if $hItem.title_use == 1} checked="checked"{/if} />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="target item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Enable hover effect for this banner' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_hover" value="1"{if $hItem.hover == 1} checked="checked"{/if} />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg_color item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Hover background color' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7 color-inside">
|
||||
<input type="color" name="item_bg_color" class="colorpicker" data-hex="true" value="{$hItem.bg_color|escape:'htmlall':'UTF-8'}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="title_color item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Hover title color' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7 color-inside">
|
||||
<input type="color" name="item_title_color" class="colorpicker" data-hex="true" value="{$hItem.title_color|escape:'htmlall':'UTF-8'}" />
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="item_hover_type" value="1" />
|
||||
<div class="item_fit item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Fit banner height to text size on tablets and mobiles' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_fit" value="1"{if $hItem.fit == 1} checked="checked"{/if} />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item_hide item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Hide banner on mobiles' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_hide" value="1"{if $hItem.hide == 1} checked="checked"{/if} />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item_hides item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Hide banner on desktops' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_hides" value="1"{if $hItem.hides == 1} checked="checked"{/if} />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="title item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Title / Image title' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<input type="text" name="item_title" value="{$hItem.title|escape:'htmlall':'UTF-8'}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="hook item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Hook to which the image should be attached' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<select name="item_hook" default="top" class="fixed-width-lg">
|
||||
<option value="toppanel"{if $hItem.hook == 'toppanel'} selected="selected"{/if}>top panel</option>
|
||||
<option value="top"{if $hItem.hook == 'top'} selected="selected"{/if}>top</option>
|
||||
<option value="home"{if $hItem.hook == 'home'} selected="selected"{/if}>home</option>
|
||||
<option value="footerbefore"{if $hItem.hook == 'footerbefore'} selected="selected"{/if}>before footer</option>
|
||||
<option value="footer"{if $hItem.hook == 'footer'} selected="selected"{/if}>footer</option>
|
||||
<option value="left"{if $hItem.hook == 'left'} selected="selected"{/if}>left</option>
|
||||
<option value="right"{if $hItem.hook == 'right'} selected="selected"{/if}>right</option>
|
||||
<option value="sidemobilemenu"{if $hItem.hook == 'sidemobilemenu'} selected="selected"{/if}>side mobile menu</option>
|
||||
<option value="productbeforebuy"{if $hItem.hook == 'productbeforebuy'} selected="selected"{/if}>product before buy</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="image item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Load your image' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<input type="file" name="item_img" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="image_w item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Image width' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<div class="input-group fixed-width-lg">
|
||||
<input name="item_img_w" type="text" maxlength="4" size="4" value="{$hItem.image_w|escape:'htmlall':'UTF-8'}"/>
|
||||
<span class="input-group-addon">{l s='pixels'}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="image_h item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Image height' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<div class="input-group fixed-width-lg">
|
||||
<input name="item_img_h" type="text" maxlength="4" size="4" value="{$hItem.image_h|escape:'htmlall':'UTF-8'}"/>
|
||||
<span class="input-group-addon">{l s='pixels'}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="url item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Target link' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<input type="text" name="item_url" value="{$hItem.url|escape:'htmlall':'UTF-8'}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="target item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Open link in a new tab/page' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_target" value="1"{if $hItem.target == 1} checked="checked"{/if} />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="video item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Use as Video banner' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_video" value="1"{if $hItem.video == 1} checked="checked"{/if} />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="html item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='HTML / Banner description' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<textarea class="rte autoload_rte_custom" name="item_html" cols="65" rows="12">{$hItem.html|escape:'htmlall':'UTF-8'}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-lg-7 col-lg-offset-3">
|
||||
<button type="button" class="btn btn-default button-item-edit-cancel" >
|
||||
<i class="icon-remove"></i> {l s='Cancel' d='Modules.RoyBanners.Shop'}
|
||||
</button>
|
||||
<input type="hidden" name="updateItem" value="" />
|
||||
<button type="submit" value="updateItem" class="btn btn-success button-save pull-right" onClick="this.form.submit();">
|
||||
<i class="icon-save"></i> {l s='Save' d='Modules.RoyBanners.Shop'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{else}
|
||||
<div class="item">
|
||||
<span class="text-muted">{l s='No items available' d='Modules.RoyBanners.Shop'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
3
modules/roy_content/views/templates/admin/messages.tpl
Normal file
3
modules/roy_content/views/templates/admin/messages.tpl
Normal file
@@ -0,0 +1,3 @@
|
||||
<div id="{$id|escape:'htmlall':'UTF-8'}-response" {if !isset($text)}style="display:none;"{/if} class="message alert alert-{if isset($class) && $class=='error'}danger{else}success{/if}">
|
||||
<div>{if isset($text)}{$text|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
</div>
|
||||
206
modules/roy_content/views/templates/admin/new.tpl
Normal file
206
modules/roy_content/views/templates/admin/new.tpl
Normal file
@@ -0,0 +1,206 @@
|
||||
<div class="new-item rb-admin">
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-default btn-lg button-new-item"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus-circle"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg> {l s='Add item' d='Modules.RoyBanners.Shop'}</button>
|
||||
</div>
|
||||
<div class="item-container">
|
||||
<form method="post" action="{$htmlitems.postAction|escape:'htmlall':'UTF-8'}" enctype="multipart/form-data" class="item-form defaultForm form-horizontal">
|
||||
<div class="well">
|
||||
<div class="language item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Language' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" >
|
||||
<span id="selected-language">
|
||||
{foreach from=$htmlitems.lang.all item=lang}
|
||||
{if $lang.id_lang == $htmlitems.lang.default.id_lang} {$lang.iso_code|escape:'htmlall':'UTF-8'}{/if}
|
||||
{/foreach}
|
||||
</span>
|
||||
<span class="caret"> </span>
|
||||
</button>
|
||||
<ul class="languages dropdown-menu">
|
||||
{foreach from=$htmlitems.lang.all item=lang}
|
||||
<li id="lang-{$lang.id_lang|escape:'htmlall':'UTF-8'}" class="new-lang-flag"><a href="javascript:setLanguage({$lang.id_lang|escape:'htmlall':'UTF-8'}, '{$lang.iso_code|escape:'htmlall':'UTF-8'}');">{$lang.name|escape:'htmlall':'UTF-8'}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<input type="hidden" id="lang-id" name="id_lang" value="{$htmlitems.lang.default.id_lang|escape:'htmlall':'UTF-8'}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="title item-field form-group">
|
||||
<label class="control-label col-lg-3 ">{l s='Title' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<input class="form-control" type="text" name="item_title"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cols item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Item width' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<select name="item_cols" default="4" class="fixed-width-lg">
|
||||
<option value="1">1/12</option>
|
||||
<option value="2">2/12</option>
|
||||
<option value="3">3/12</option>
|
||||
<option value="4">4/12</option>
|
||||
<option value="5">5/12</option>
|
||||
<option value="6">6/12</option>
|
||||
<option value="7">7/12</option>
|
||||
<option value="8">8/12</option>
|
||||
<option value="9">9/12</option>
|
||||
<option value="10">10/12</option>
|
||||
<option value="11">11/12</option>
|
||||
<option value="12">12/12</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="title_use item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Display title over banner without hover' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_title_use" value="1" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hover item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Enable hover effect for this banner' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_hover" value="1" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg_color item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Hover background color' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7 color-inside">
|
||||
<input type="color" name="item_bg_color" class="colorpicker" data-hex="true" value="#ffffff" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="title_color item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Hover title color' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7 color-inside">
|
||||
<input type="color" name="item_title_color" class="colorpicker" data-hex="true" value="#777777" />
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="item_hover_type" value="1" />
|
||||
<div class="fit item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Fit banner height to text size on tablets and mobiles' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_fit" value="1" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hide_mobile item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Hide banner on mobiles' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_hide" value="1" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hide_desktop item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Hide banner on desktops' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_hides" value="1" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hook item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Hook' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<select class="form-control fixed-width-lg" name="item_hook" default="top">
|
||||
<option value="toppanel">top panel</option>
|
||||
<option value="top">top</option>
|
||||
<option value="home">home</option>
|
||||
<option value="footerbefore">before footer</option>
|
||||
<option value="footer">footer</option>
|
||||
<option value="left">left</option>
|
||||
<option value="right">right</option>
|
||||
<option value="sidemobilemenu">side mobile menu</option>
|
||||
<option value="productbeforebuy">product before buy</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="image item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Image' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<input type="file" name="item_img" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="image_w item-field form-group">
|
||||
|
||||
<label class="control-label col-lg-3">{l s='Image width' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<div class="input-group fixed-width-lg">
|
||||
<span class="input-group-addon">{l s='px'}</span>
|
||||
<input name="item_img_w" type="text" maxlength="4"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="image_h item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='Image height' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<div class="input-group fixed-width-lg">
|
||||
<span class="input-group-addon">{l s='px'}</span>
|
||||
<input name="item_img_h" type="text" maxlength="4"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="url item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='URL' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<input type="text" name="item_url" placeholder="http://" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="target item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Open in new tab' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_target" value="1" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="video item-field form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<div class="checkbox">
|
||||
<label class="control-label">
|
||||
{l s='Use as Video banner' d='Modules.RoyBanners.Shop'}
|
||||
<input type="checkbox" name="item_video" value="1" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="html item-field form-group">
|
||||
<label class="control-label col-lg-3">{l s='HTML' d='Modules.RoyBanners.Shop'}</label>
|
||||
<div class="col-lg-7">
|
||||
<textarea class="rte autoload_rte_custom" name="item_html" cols="65" rows="12"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-lg-7 col-lg-offset-3">
|
||||
<input type="hidden" name="updateItem" value="" />
|
||||
<button type="button" class="btn btn-default button-new-item-cancel"><i class="icon-remove"></i> {l s='Cancel' d='Modules.RoyBanners.Shop'}</button>
|
||||
<button type="submit" name="newItem" class="button-new-item-save btn btn-default pull-right" onClick="this.form.submit();"><i class="icon-save"></i> {l s='Save' d='Modules.RoyBanners.Shop'}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function setLanguage(language_id, language_code) {
|
||||
$('#lang-id').val(language_id);
|
||||
$('#selected-language').html(language_code);
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user