@@ -0,0 +1,149 @@
|
||||
{*
|
||||
* 2022 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
*
|
||||
* @author Anvanto <anvantoco@gmail.com>
|
||||
* @copyright 2022 Anvanto
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
*}
|
||||
|
||||
{extends file="helpers/form/form.tpl"}
|
||||
|
||||
{block name="input"}
|
||||
|
||||
{if $input.type == 'number'}
|
||||
<input type="number"
|
||||
id="{if isset($input.id)}{$input.id}{else}{$input.name}{/if}"
|
||||
name="{$input.name}"
|
||||
class="form-control {if isset($input.class)} {$input.class} {/if}"
|
||||
onkeyup="return (function (el, e) {
|
||||
if (e.keyCode == 8) return true;
|
||||
jQuery(el).val((parseInt(jQuery(el).val()) || 0));
|
||||
if (jQuery(el).val() < (parseInt(jQuery(el).attr('min')) || 0)) {
|
||||
jQuery(el).val((parseInt(jQuery(el).attr('min')) || 0));
|
||||
} else if (jQuery(el).val() > (parseInt(jQuery(el).attr('max')) || 0)) {
|
||||
jQuery(el).val((parseInt(jQuery(el).attr('max')) || 0));
|
||||
}
|
||||
})(this, event);"
|
||||
value="{$fields_value[$input.name]|escape:'html':'UTF-8'}"
|
||||
{if isset($input.size)} size="{$input.size}"{/if}
|
||||
{if isset($input.maxchar) && $input.maxchar} data-maxchar="{$input.maxchar|intval}"{/if}
|
||||
{if isset($input.maxlength) && $input.maxlength} maxlength="{$input.maxlength|intval}"{/if}
|
||||
{if isset($input.readonly) && $input.readonly} readonly="readonly"{/if}
|
||||
{if isset($input.disabled) && $input.disabled} disabled="disabled"{/if}
|
||||
{if isset($input.autocomplete) && !$input.autocomplete} autocomplete="off"{/if}
|
||||
{if isset($input.required) && $input.required} required="required" {/if}
|
||||
{if isset($input.max)} max="{$input.max|intval}"{/if}
|
||||
{if isset($input.min)} min="{$input.min|intval}"{/if}
|
||||
{if isset($input.placeholder) && $input.placeholder} placeholder="{$input.placeholder}"{/if} />
|
||||
{if isset($input.suffix)}
|
||||
<span class="input-group-addon">
|
||||
{$input.suffix}
|
||||
</span>
|
||||
{/if}
|
||||
{elseif $input.type == 'file_lang'}
|
||||
|
||||
{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="form-group-image">
|
||||
{if isset($fields_value[$input.name][$language.id_lang]) && $fields_value[$input.name][$language.id_lang] != ''}
|
||||
<div class="form-group">
|
||||
<div id="{$input.name}-{$language.id_lang}-images-thumbnails" class="col-lg-12">
|
||||
<img src="../modules/an_banners/img/{$fields_value[$input.name][$language.id_lang]}"
|
||||
class="img-thumbnail"
|
||||
style="max-height: 150px; max-width: 150px;"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div id="{$input.name}-{$language.id_lang}-images-delete" class="col-lg-12">
|
||||
<span id="{$input.name}_{$language.id_lang}-deletebutton" type="button" name="submitDeleteAttachments"
|
||||
class="btn btn-default an-image-deletebutton an-image-deletebutton-{$language.id_lang}">
|
||||
<i class="icon-trash"></i> {l s='Delete' mod='an_banners'}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-lg-9">
|
||||
<input id="{$input.name}_{$language.id_lang}" type="file" name="{$input.name}_{$language.id_lang}" class="hide" />
|
||||
<div class="dummyfile input-group">
|
||||
<span class="input-group-addon"><i class="icon-file"></i></span>
|
||||
<input id="{$input.name}_{$language.id_lang}-name" type="text" class="disabled" name="filename" readonly />
|
||||
<span class="input-group-btn">
|
||||
<button id="{$input.name}_{$language.id_lang}-selectbutton" type="button" name="submitAddAttachments" class="btn btn-default">
|
||||
<i class="icon-folder-open"></i> {l s='Choose a file' mod='an_banners'}
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</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}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{if $languages|count > 1}
|
||||
</div>
|
||||
{/if}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
$('.an-image-deletebutton-{$language.id_lang}').click(function(e){
|
||||
if (confirm('Are you sure?') ) {
|
||||
var formGroupImage = $(this).closest('.form-group-image');
|
||||
|
||||
$(formGroupImage).append('<input type="hidden" name="delete_{$input.name}[{$language.id_lang}]" value="{$language.id_lang}" /> ');
|
||||
|
||||
$(formGroupImage).find('.form-group').fadeOut(function () {
|
||||
$(this).remove();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('#{$input.name}_{$language.id_lang}-selectbutton').click(function(e){
|
||||
$('#{$input.name}_{$language.id_lang}').trigger('click');
|
||||
});
|
||||
$('#{$input.name}_{$language.id_lang}').change(function(e){
|
||||
var val = $(this).val();
|
||||
var file = val.split(/[\\/]/);
|
||||
$('#{$input.name}_{$language.id_lang}-name').val(file[file.length-1]);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/foreach}
|
||||
{if isset($input.desc) && !empty($input.desc)}
|
||||
<p class="help-block">
|
||||
{$input.desc}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{elseif $input.type == 'html'}
|
||||
{if isset($input.html_content)}
|
||||
{if $input.html_content == 'hr'}
|
||||
<hr />
|
||||
{else}
|
||||
{$input.html_content}
|
||||
{/if}
|
||||
{else}
|
||||
{$input.name|escape:'htmlall':'UTF-8'}
|
||||
{/if}
|
||||
{else}
|
||||
{$smarty.block.parent}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -0,0 +1,207 @@
|
||||
{*
|
||||
* 2022 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
*
|
||||
* @author Anvanto <anvantoco@gmail.com>
|
||||
* @copyright 2022 Anvanto
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
*}
|
||||
|
||||
{capture name='tr_count'}{counter name='tr_count'}{/capture}
|
||||
<tbody>
|
||||
{if count($list)}
|
||||
{foreach $list AS $index => $tr}
|
||||
<tr{if $position_identifier} id="tr_{$position_group_identifier}_{$tr.$identifier}_{if isset($tr.position['position'])}{$tr.position['position']}{else}0{/if}"{/if} class="{if isset($tr.class)}{$tr.class}{/if} {if $tr@iteration is odd by 1}odd{/if}"{if isset($tr.color) && $color_on_bg} style="background-color: {$tr.color}"{/if} >
|
||||
{if $bulk_actions && $has_bulk_actions}
|
||||
<td class="row-selector text-center">
|
||||
{if isset($list_skip_actions.delete)}
|
||||
{if !in_array($tr.$identifier, $list_skip_actions.delete)}
|
||||
<input type="checkbox" name="{$list_id}Box[]" value="{$tr.$identifier}"{if isset($checked_boxes) && is_array($checked_boxes) && in_array({$tr.$identifier}, $checked_boxes)} checked="checked"{/if} class="noborder" />
|
||||
{/if}
|
||||
{else}
|
||||
<input type="checkbox" name="{$list_id}Box[]" value="{$tr.$identifier}"{if isset($checked_boxes) && is_array($checked_boxes) && in_array({$tr.$identifier}, $checked_boxes)} checked="checked"{/if} class="noborder" />
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
{foreach $fields_display AS $key => $params}
|
||||
{block name="open_td"}
|
||||
<td
|
||||
{if isset($params.position)}
|
||||
id="td_{if !empty($position_group_identifier)}{$position_group_identifier}{else}0{/if}_{$tr.$identifier}{if $smarty.capture.tr_count > 1}_{($smarty.capture.tr_count - 1)|intval}{/if}"
|
||||
{/if}
|
||||
class="{strip}{if !$no_link}pointer{/if}
|
||||
{if isset($key)} column-{$key|lower}{/if}
|
||||
{if isset($params.position) && $order_by == 'position' && $order_way != 'DESC'} dragHandle{/if}
|
||||
{if isset($params.class)} {$params.class}{/if}
|
||||
{if isset($params.align)} {$params.align}{/if}{/strip}"
|
||||
{if (!isset($params.position) && !$no_link && !isset($params.remove_onclick))}
|
||||
{if isset($tr.link) }
|
||||
onclick="document.location = '{$tr.link|addslashes|escape:'html':'UTF-8'}'">
|
||||
{else}
|
||||
onclick="document.location = '{$current_index|addslashes|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$tr.$identifier|escape:'html':'UTF-8'}{if $view}&view{else}&update{/if}{$table|escape:'html':'UTF-8'}{if $page > 1}&page={$page|intval}{/if}&token={$token|escape:'html':'UTF-8'}'">
|
||||
{/if}
|
||||
{else}
|
||||
>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name="td_content"}
|
||||
{if isset($params.prefix)}{$params.prefix}{/if}
|
||||
{if isset($params.badge_success) && $params.badge_success && isset($tr.badge_success) && $tr.badge_success == $params.badge_success}<span class="badge badge-success">{/if}
|
||||
{if isset($params.badge_warning) && $params.badge_warning && isset($tr.badge_warning) && $tr.badge_warning == $params.badge_warning}<span class="badge badge-warning">{/if}
|
||||
{if isset($params.badge_danger) && $params.badge_danger && isset($tr.badge_danger) && $tr.badge_danger == $params.badge_danger}<span class="badge badge-danger">{/if}
|
||||
{if isset($params.color) && isset($tr[$params.color])}
|
||||
<span class="label color_field" style="background-color:{$tr[$params.color]};color:{if !Tools::isBright($tr[$params.color])}white{else}#383838{/if}">
|
||||
{/if}
|
||||
{if isset($tr.$key)}
|
||||
{if isset($params.active)}
|
||||
{$tr.$key}
|
||||
{elseif isset($params.callback)}
|
||||
{if isset($params.maxlength) && Tools::strlen($tr.$key) > $params.maxlength}
|
||||
<span title="{$tr.$key}">{$tr.$key|truncate:$params.maxlength:'...'}</span>
|
||||
{else}
|
||||
{$tr.$key}
|
||||
{/if}
|
||||
{elseif isset($params.activeVisu)}
|
||||
{if $tr.$key}
|
||||
<i class="icon-check-ok"></i> {l s='Enabled' d='Admin.Global'}
|
||||
{else}
|
||||
<i class="icon-remove"></i> {l s='Disabled' d='Admin.Global'}
|
||||
{/if}
|
||||
{elseif isset($params.position)}
|
||||
{if !$filters_has_value && $order_by == 'position' && $order_way != 'DESC'}
|
||||
<div class="dragGroup">
|
||||
<div class="positions">
|
||||
{$tr.$key.position + 1}
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
{$tr.$key.position + 1}
|
||||
{/if}
|
||||
{elseif isset($params.image)}
|
||||
{$tr.$key}
|
||||
{elseif isset($params.icon)}
|
||||
{if is_array($tr[$key])}
|
||||
{if isset($tr[$key]['class'])}
|
||||
<i class="{$tr[$key]['class']}"></i>
|
||||
{else}
|
||||
<img src="../img/admin/{$tr[$key]['src']}" alt="{$tr[$key]['alt']}" title="{$tr[$key]['alt']}" />
|
||||
{/if}
|
||||
{/if}
|
||||
{elseif isset($params.type) && $params.type == 'image'}
|
||||
{$tr.$key nofilter}
|
||||
{elseif isset($params.type) && $params.type == 'position'}
|
||||
<div style='display: table; width: auto; cursor: pointer' class='form-control handle'><i class='icon-move'></i> <span>{$tr.$key nofilter}</span></div>
|
||||
{elseif isset($params.type) && $params.type == 'price'}
|
||||
{if isset($tr.id_currency)}
|
||||
{displayPrice price=$tr.$key currency=$tr.id_currency}
|
||||
{else}
|
||||
{displayPrice price=$tr.$key}
|
||||
{/if}
|
||||
{elseif isset($params.float)}
|
||||
{$tr.$key}
|
||||
{elseif isset($params.type) && $params.type == 'date'}
|
||||
{dateFormat date=$tr.$key full=0}
|
||||
{elseif isset($params.type) && $params.type == 'datetime'}
|
||||
{dateFormat date=$tr.$key full=1}
|
||||
{elseif isset($params.type) && $params.type == 'decimal'}
|
||||
{$tr.$key|string_format:"%.2f"}
|
||||
{elseif isset($params.type) && $params.type == 'percent'}
|
||||
{$tr.$key} {l s='%'}
|
||||
{elseif isset($params.type) && $params.type == 'bool'}
|
||||
{if $tr.$key == 1}
|
||||
{l s='Yes' d='Admin.Global'}
|
||||
{elseif $tr.$key == 0 && $tr.$key != ''}
|
||||
{l s='No' d='Admin.Global'}
|
||||
{/if}
|
||||
{* If type is 'editable', an input is created *}
|
||||
{elseif isset($params.type) && $params.type == 'editable' && isset($tr.id)}
|
||||
<input type="text" name="{$key}_{$tr.id}" value="{$tr.$key|escape:'html':'UTF-8'}" class="{$key}" />
|
||||
{elseif $key == 'color'}
|
||||
{if !is_array($tr.$key)}
|
||||
<div style="background-color: {$tr.$key};" class="attributes-color-container"></div>
|
||||
{else} {*TEXTURE*}
|
||||
<img src="{$tr.$key.texture}" alt="{$tr.name}" class="attributes-color-container" />
|
||||
{/if}
|
||||
{elseif isset($params.maxlength) && Tools::strlen($tr.$key) > $params.maxlength}
|
||||
<span title="{$tr.$key|escape:'html':'UTF-8'}">{$tr.$key|truncate:$params.maxlength:'...'|escape:'html':'UTF-8'}</span>
|
||||
{else}
|
||||
{$tr.$key|escape:'html':'UTF-8'}
|
||||
{/if}
|
||||
{else}
|
||||
{block name="default_field"}--{/block}
|
||||
{/if}
|
||||
{if isset($params.suffix)}{$params.suffix}{/if}
|
||||
{if isset($params.color) && isset($tr.color)}
|
||||
</span>
|
||||
{/if}
|
||||
{if isset($params.badge_danger) && $params.badge_danger && isset($tr.badge_danger) && $tr.badge_danger == $params.badge_danger}</span>{/if}
|
||||
{if isset($params.badge_warning) && $params.badge_warning && isset($tr.badge_warning) && $tr.badge_warning == $params.badge_warning}</span>{/if}
|
||||
{if isset($params.badge_success) && $params.badge_success && isset($tr.badge_success) && $tr.badge_success == $params.badge_success}</span>{/if}
|
||||
{/block}
|
||||
{block name="close_td"}
|
||||
</td>
|
||||
{/block}
|
||||
{/foreach}
|
||||
|
||||
{if $multishop_active && $shop_link_type}
|
||||
<td title="{$tr.shop_name}">
|
||||
{if isset($tr.shop_short_name)}
|
||||
{$tr.shop_short_name}
|
||||
{else}
|
||||
{$tr.shop_name}
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
{if $has_actions}
|
||||
<td class="text-right">
|
||||
{assign var='compiled_actions' value=array()}
|
||||
{foreach $actions AS $key => $action}
|
||||
{if isset($tr.$action)}
|
||||
{if $key == 0}
|
||||
{assign var='action' value=$action}
|
||||
{/if}
|
||||
{if $action == 'delete' && $actions|@count > 2}
|
||||
{$compiled_actions[] = 'divider'}
|
||||
{/if}
|
||||
{$compiled_actions[] = $tr.$action}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $compiled_actions|count > 0}
|
||||
{if $compiled_actions|count > 1}<div class="btn-group-action">{/if}
|
||||
<div class="btn-group pull-right">
|
||||
{$compiled_actions[0]}
|
||||
{if $compiled_actions|count > 1}
|
||||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="icon-caret-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
{foreach $compiled_actions AS $key => $action}
|
||||
{if $key != 0}
|
||||
<li{if $action == 'divider' && $compiled_actions|count > 3} class="divider"{/if}>
|
||||
{if $action != 'divider'}{$action}{/if}
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{if $compiled_actions|count > 1}</div>{/if}
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr>
|
||||
<td class="list-empty" colspan="{count($fields_display)+1}">
|
||||
<div class="list-empty-msg">
|
||||
<i class="icon-warning-sign list-empty-icon"></i>
|
||||
{l s='No records found'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
0
modules/an_banners/views/templates/admin/index.php
Normal file
0
modules/an_banners/views/templates/admin/index.php
Normal file
13
modules/an_banners/views/templates/admin/list-img.tpl
Normal file
13
modules/an_banners/views/templates/admin/list-img.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
{*
|
||||
* 2022 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
*
|
||||
* @author Anvanto <anvantoco@gmail.com>
|
||||
* @copyright 2022 Anvanto
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
*}
|
||||
|
||||
<img class="an_trust_badges-list-img" src="{$image nofilter}" alt="" class="" style="max-width: 50px; max-height: 50px;" />
|
||||
202
modules/an_banners/views/templates/admin/suggestions.tpl
Normal file
202
modules/an_banners/views/templates/admin/suggestions.tpl
Normal file
@@ -0,0 +1,202 @@
|
||||
{*
|
||||
* 2022 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
*
|
||||
* @author Anvanto <anvantoco@gmail.com>
|
||||
* @copyright 2022 Anvanto
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
*}
|
||||
|
||||
{$contact_us = '#'}
|
||||
{$rate_url = '#'}
|
||||
{$anvanto_url = 'https://bit.ly/2TH0AJ6'}
|
||||
|
||||
{if isset($theme.url_contact_us)}
|
||||
{$contact_us = $theme.url_contact_us}
|
||||
{/if}
|
||||
|
||||
{if isset($theme.url_rate)}
|
||||
{$rate_url = $theme.url_rate}
|
||||
{/if}
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Ubuntu:400,700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
.an_panel {
|
||||
border-radius: 5px;
|
||||
margin: 0 4px 39px;
|
||||
font-family: 'Ubuntu', sans-serif;
|
||||
}
|
||||
.an_panel-link {
|
||||
text-decoration: underline!important;
|
||||
}
|
||||
|
||||
.an_panel_info {
|
||||
font-family: 'Ubuntu', sans-serif;
|
||||
display: flex;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
.an_panel_info-item {
|
||||
background: #fff;
|
||||
box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 2px;
|
||||
padding: 12px 16px 12px 16px;
|
||||
max-width: 330px;
|
||||
width: 100%;
|
||||
margin-right: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.an_panel_info-item:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
.an_panel_info-item-contact {
|
||||
border-left: 3px solid #21a6cb;
|
||||
}
|
||||
.an_panel_info-item-rate {
|
||||
border-left: 3px solid #fed500;
|
||||
}
|
||||
.an_panel_info-item-docs {
|
||||
border-left: 3px solid #e56b93;
|
||||
}
|
||||
.an_panel_info-item-ad {
|
||||
border-left: 3px solid #0ca300;
|
||||
}
|
||||
.an_panel_info-item h2 {
|
||||
font-size: 16px;
|
||||
font-family: 'Ubuntu', sans-serif;
|
||||
font-weight: bold;
|
||||
margin: 0 0 4px;
|
||||
}
|
||||
.an_panel_info-item p {
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
margin: 0;
|
||||
}
|
||||
.an_panel_info .grade {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
justify-content: flex-end;
|
||||
margin-top: 13px;
|
||||
}
|
||||
.an_panel_info-stars {
|
||||
transition: all .2s;
|
||||
padding-right: 3px;
|
||||
}
|
||||
.an_panel_info-stars path {
|
||||
fill: #e0e0e0;
|
||||
}
|
||||
.an_panel_info-stars:nth-of-type(1):hover path,
|
||||
.an_panel_info-stars:nth-of-type(2):hover path,
|
||||
.an_panel_info-stars:nth-of-type(3):hover path,
|
||||
.an_panel_info-stars:nth-of-type(4):hover path,
|
||||
.an_panel_info-stars:nth-of-type(5):hover path,
|
||||
.an_panel_info-stars:nth-of-type(1):hover ~ .an_panel_info-stars:nth-of-type(n+1) path,
|
||||
.an_panel_info-stars:nth-of-type(2):hover ~ .an_panel_info-stars:nth-of-type(n+2) path,
|
||||
.an_panel_info-stars:nth-of-type(3):hover ~ .an_panel_info-stars:nth-of-type(n+3) path,
|
||||
.an_panel_info-stars:nth-of-type(4):hover ~ .an_panel_info-stars:nth-of-type(n+4) path,
|
||||
.an_panel_info-stars:nth-of-type(5):hover ~ .an_panel_info-stars:nth-of-type(n+5) path {
|
||||
fill: #fed500;
|
||||
}
|
||||
@media (max-width: 1366px) {
|
||||
.an_panel_info-item {
|
||||
max-width: 50%;
|
||||
}
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.an_panel_info-item {
|
||||
max-width: 100%;
|
||||
margin-right: 0;
|
||||
}
|
||||
.an_panel_info {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.an_panel_info-item {
|
||||
margin-right: 0;
|
||||
}
|
||||
.an_panel_modules-item {
|
||||
flex-direction: column;
|
||||
padding: 20px 0;
|
||||
position: relative;
|
||||
}
|
||||
.an_panel_modules-item-title {
|
||||
position: static;
|
||||
}
|
||||
.an_panel_modules-disabled-flag {
|
||||
top: 20px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="an_panel_info">
|
||||
<div class="an_panel_info-item an_panel_info-item-contact">
|
||||
<h2>Contact Us</h2>
|
||||
<p><a class="an_panel-link" href="{$contact_us}" target="_blank">Contact us</a> on any question or problem with the module</p>
|
||||
</div>
|
||||
{if $rate_url <> ''}
|
||||
<div class="an_panel_info-item an_panel_info-item-rate">
|
||||
<h2>Rate{if isset($theme.name) AND $theme.name != ''} "{$theme.name}"{/if}</h2>
|
||||
<div class="grade">
|
||||
<a href="{$rate_url}" target="_blank" id="star5" class="an_panel_info-stars">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="21px" height="20px">
|
||||
<path fill-rule="evenodd" fill="rgb(254, 213, 0)"
|
||||
d="M20.495,9.068 C20.889,8.667 21.028,8.079 20.858,7.532 C20.688,6.985 20.245,6.595 19.701,6.512 L14.860,5.778 C14.654,5.746 14.476,5.611 14.384,5.416 L12.220,0.833 C11.977,0.318 11.484,-0.002 10.934,-0.002 C10.386,-0.002 9.892,0.318 9.649,0.833 L7.485,5.416 C7.393,5.612 7.214,5.746 7.008,5.778 L2.168,6.513 C1.624,6.595 1.181,6.986 1.011,7.532 C0.841,8.079 0.980,8.667 1.373,9.068 L4.875,12.635 C5.025,12.787 5.093,13.006 5.058,13.220 L4.232,18.257 C4.158,18.700 4.270,19.131 4.544,19.472 C4.971,20.002 5.716,20.163 6.312,19.836 L10.640,17.458 C10.821,17.359 11.049,17.359 11.229,17.458 L15.558,19.836 C15.769,19.952 15.993,20.010 16.225,20.010 C16.648,20.010 17.049,19.814 17.325,19.472 C17.600,19.131 17.711,18.699 17.638,18.257 L16.811,13.220 C16.776,13.006 16.844,12.787 16.993,12.635 L20.495,9.068 Z"/>
|
||||
</svg>
|
||||
</a>
|
||||
<a href="{$contact_us}" target="_blank" id="star4" class="an_panel_info-stars">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="21px" height="20px">
|
||||
<path fill-rule="evenodd" fill="rgb(254, 213, 0)"
|
||||
d="M20.495,9.068 C20.889,8.667 21.028,8.079 20.858,7.532 C20.688,6.985 20.245,6.595 19.701,6.512 L14.860,5.778 C14.654,5.746 14.476,5.611 14.384,5.416 L12.220,0.833 C11.977,0.318 11.484,-0.002 10.934,-0.002 C10.386,-0.002 9.892,0.318 9.649,0.833 L7.485,5.416 C7.393,5.612 7.214,5.746 7.008,5.778 L2.168,6.513 C1.624,6.595 1.181,6.986 1.011,7.532 C0.841,8.079 0.980,8.667 1.373,9.068 L4.875,12.635 C5.025,12.787 5.093,13.006 5.058,13.220 L4.232,18.257 C4.158,18.700 4.270,19.131 4.544,19.472 C4.971,20.002 5.716,20.163 6.312,19.836 L10.640,17.458 C10.821,17.359 11.049,17.359 11.229,17.458 L15.558,19.836 C15.769,19.952 15.993,20.010 16.225,20.010 C16.648,20.010 17.049,19.814 17.325,19.472 C17.600,19.131 17.711,18.699 17.638,18.257 L16.811,13.220 C16.776,13.006 16.844,12.787 16.993,12.635 L20.495,9.068 Z"/>
|
||||
</svg>
|
||||
</a>
|
||||
<a href="{$contact_us}" target="_blank" class="an_panel_info-stars">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="21px" height="20px">
|
||||
<path fill-rule="evenodd" fill="rgb(254, 213, 0)"
|
||||
d="M20.495,9.068 C20.889,8.667 21.028,8.079 20.858,7.532 C20.688,6.985 20.245,6.595 19.701,6.512 L14.860,5.778 C14.654,5.746 14.476,5.611 14.384,5.416 L12.220,0.833 C11.977,0.318 11.484,-0.002 10.934,-0.002 C10.386,-0.002 9.892,0.318 9.649,0.833 L7.485,5.416 C7.393,5.612 7.214,5.746 7.008,5.778 L2.168,6.513 C1.624,6.595 1.181,6.986 1.011,7.532 C0.841,8.079 0.980,8.667 1.373,9.068 L4.875,12.635 C5.025,12.787 5.093,13.006 5.058,13.220 L4.232,18.257 C4.158,18.700 4.270,19.131 4.544,19.472 C4.971,20.002 5.716,20.163 6.312,19.836 L10.640,17.458 C10.821,17.359 11.049,17.359 11.229,17.458 L15.558,19.836 C15.769,19.952 15.993,20.010 16.225,20.010 C16.648,20.010 17.049,19.814 17.325,19.472 C17.600,19.131 17.711,18.699 17.638,18.257 L16.811,13.220 C16.776,13.006 16.844,12.787 16.993,12.635 L20.495,9.068 Z"/>
|
||||
</svg>
|
||||
</a>
|
||||
<a href="{$contact_us}" target="_blank" class="an_panel_info-stars">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="21px" height="20px">
|
||||
<path fill-rule="evenodd" fill="rgb(254, 213, 0)"
|
||||
d="M20.495,9.068 C20.889,8.667 21.028,8.079 20.858,7.532 C20.688,6.985 20.245,6.595 19.701,6.512 L14.860,5.778 C14.654,5.746 14.476,5.611 14.384,5.416 L12.220,0.833 C11.977,0.318 11.484,-0.002 10.934,-0.002 C10.386,-0.002 9.892,0.318 9.649,0.833 L7.485,5.416 C7.393,5.612 7.214,5.746 7.008,5.778 L2.168,6.513 C1.624,6.595 1.181,6.986 1.011,7.532 C0.841,8.079 0.980,8.667 1.373,9.068 L4.875,12.635 C5.025,12.787 5.093,13.006 5.058,13.220 L4.232,18.257 C4.158,18.700 4.270,19.131 4.544,19.472 C4.971,20.002 5.716,20.163 6.312,19.836 L10.640,17.458 C10.821,17.359 11.049,17.359 11.229,17.458 L15.558,19.836 C15.769,19.952 15.993,20.010 16.225,20.010 C16.648,20.010 17.049,19.814 17.325,19.472 C17.600,19.131 17.711,18.699 17.638,18.257 L16.811,13.220 C16.776,13.006 16.844,12.787 16.993,12.635 L20.495,9.068 Z"/>
|
||||
</svg>
|
||||
</a>
|
||||
<a href="{$contact_us}" target="_blank" class="an_panel_info-stars">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="21px" height="20px">
|
||||
<path fill-rule="evenodd" fill="rgb(254, 213, 0)"
|
||||
d="M20.495,9.068 C20.889,8.667 21.028,8.079 20.858,7.532 C20.688,6.985 20.245,6.595 19.701,6.512 L14.860,5.778 C14.654,5.746 14.476,5.611 14.384,5.416 L12.220,0.833 C11.977,0.318 11.484,-0.002 10.934,-0.002 C10.386,-0.002 9.892,0.318 9.649,0.833 L7.485,5.416 C7.393,5.612 7.214,5.746 7.008,5.778 L2.168,6.513 C1.624,6.595 1.181,6.986 1.011,7.532 C0.841,8.079 0.980,8.667 1.373,9.068 L4.875,12.635 C5.025,12.787 5.093,13.006 5.058,13.220 L4.232,18.257 C4.158,18.700 4.270,19.131 4.544,19.472 C4.971,20.002 5.716,20.163 6.312,19.836 L10.640,17.458 C10.821,17.359 11.049,17.359 11.229,17.458 L15.558,19.836 C15.769,19.952 15.993,20.010 16.225,20.010 C16.648,20.010 17.049,19.814 17.325,19.472 C17.600,19.131 17.711,18.699 17.638,18.257 L16.811,13.220 C16.776,13.006 16.844,12.787 16.993,12.635 L20.495,9.068 Z"/>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="an_panel_info-item an_panel_info-item-docs">
|
||||
<h2><a class="an_panel-link" href="{$anvanto_url}" target="_blank">What's next?</a></h2>
|
||||
<p>Find out how to improve your shop with <a href="{$anvanto_url}" class="suggestions-link" target="_blank">other modules and themes</a> made by Anvanto.</p>
|
||||
</div>
|
||||
|
||||
{*
|
||||
<div class="an_panel_info-item an_panel_info-item-ad">
|
||||
<h2><a class="an_panel-link" href="{$theme.url_doc}" target="_blank">New 4th block</a></h2>
|
||||
<p>New next for this block</p>
|
||||
</div>
|
||||
*}
|
||||
</div>
|
||||
13
modules/an_banners/views/templates/admin/top.tpl
Normal file
13
modules/an_banners/views/templates/admin/top.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
{*
|
||||
* 2022 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
*
|
||||
* @author Anvanto <anvantoco@gmail.com>
|
||||
* @copyright 2022 Anvanto
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
*}
|
||||
|
||||
{include file='./suggestions.tpl'}
|
||||
20
modules/an_banners/views/templates/front/banners.tpl
Normal file
20
modules/an_banners/views/templates/front/banners.tpl
Normal file
@@ -0,0 +1,20 @@
|
||||
{*
|
||||
* 2022 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
*
|
||||
* @author Anvanto <anvantoco@gmail.com>
|
||||
* @copyright 2022 Anvanto
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
*}
|
||||
|
||||
{if count($banners) > 0}
|
||||
<div class="row{if isset($class)} {$class|escape:'htmlall':'UTF-8'}{/if}">
|
||||
{foreach from=$banners item=banner}
|
||||
{include file=$banner.tplFilePath}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
24
modules/an_banners/views/templates/front/banners/default.tpl
Normal file
24
modules/an_banners/views/templates/front/banners/default.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
{*
|
||||
* 2022 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
*
|
||||
* @author Anvanto <anvantoco@gmail.com>
|
||||
* @copyright 2022 Anvanto
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
*}
|
||||
|
||||
<div{if $banner.col != 'div'} class="an_homeproducts-banner {if $banner.imgUrlFile != ''}an_homeproducts-banner-overlay{else}an_homeproducts-banner-noimg{/if} col-sm-{$banner.col|intval}"{/if}>
|
||||
{if $banner.imgUrlFile !=''}
|
||||
<img src="{$banner.imgUrlFile}"/>
|
||||
{/if}
|
||||
<div class="an_homeproducts-banner-content">
|
||||
<p class="an_homeproducts-banner-title h1 {if $banner.text != ''}an_homeproducts-banner-title-margin{/if}">{$banner.title|escape:'htmlall':'UTF-8'}</p>
|
||||
{$banner.text nofilter}
|
||||
</div>
|
||||
{if $banner.link !=''}
|
||||
<a href="{$banner.link|escape:'htmlall':'UTF-8'}" class="an_homeproducts-banner-link"></a>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,27 @@
|
||||
{*
|
||||
* 2022 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
*
|
||||
* @author Anvanto <anvantoco@gmail.com>
|
||||
* @copyright 2022 Anvanto
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
*}
|
||||
|
||||
<div{if $banner.col != 'div'} class="col-sm-{$banner.col|intval}"{/if}>
|
||||
{if $banner.link !=''}
|
||||
<a href="{$banner.link|escape:'htmlall':'UTF-8'}" class="an_homeproducts-banner-link">
|
||||
{/if}
|
||||
{if $banner.imgUrlFile !=''}
|
||||
<img src="{$banner.imgUrlFile}"/>
|
||||
{/if}
|
||||
<div>
|
||||
<p class="h2">{$banner.title|escape:'htmlall':'UTF-8'}</p>
|
||||
{$banner.text nofilter}
|
||||
</div>
|
||||
{if $banner.link !=''}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
0
modules/an_banners/views/templates/front/index.php
Normal file
0
modules/an_banners/views/templates/front/index.php
Normal file
0
modules/an_banners/views/templates/index.php
Normal file
0
modules/an_banners/views/templates/index.php
Normal file
Reference in New Issue
Block a user