This commit is contained in:
2025-07-03 20:56:08 +02:00
parent c5c208aa43
commit cc0c9e86b8
190 changed files with 21992 additions and 61 deletions

View File

@@ -0,0 +1,93 @@
{*
* 2020 Anvanto
*
* 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 Anvanto (anvantoco@gmail.com)
* @copyright 2020 anvanto.com
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helpers/form/form.tpl"}
{block name="input"}
{if $input.type == 'product_autocomplete'}
<div>
<input type="text" id="products_autocomplete" autocomplete="off" size="42" />
<div id="products_autocompleteDiv" style="font-size: 1.1em; margin-top: 10px; margin-left: 10px;">
{if isset($fields_value.products)}
{foreach $fields_value.products as $id => $name}
<p id="product-{$id|escape:'htmlall':'UTF-8'}">#{$id|escape:'htmlall':'UTF-8'} - {$name|escape:'htmlall':'UTF-8'} <span style="cursor: pointer;" onclick="$(this).parent().remove();"><img src="../img/admin/delete.gif" /></span><input type="hidden" name="{$input.name|escape:'htmlall':'UTF-8'}[]" value="{$id|escape:'htmlall':'UTF-8'}" /></p>
{/foreach}
{/if}
</div>
<script type="text/javascript">
function autocompleteProduct() {
$("#products_autocomplete").autocomplete("{$input.ajax_path|escape:'quotes':'UTF-8'}", {
minChars: 1,
autoFill: true,
max:20,
matchContains: true,
mustMatch:true,
scroll:false,
cacheLength:0,
formatItem: function(item) {
return "#"+item[1]+" - "+item[0];
}
}).result(function(event, data, formatted){
if (data == null)
return false;
var productId = data[1];
var productName = data[0];
$("#product-" + productId).remove();
html = html_aclist.replace(/xproductIdy/g,productId).replace(/xproductNamey/g,productName);
$("#products_autocompleteDiv").append(html);
$(this).val("");
});
}
var html_aclist = '<p id="product-xproductIdy">#xproductIdy - xproductNamey <span style="cursor: pointer;" onclick="$(this).parent().remove();"><img src="../img/admin/delete.gif" /></span><input type="hidden" name="{$input.name|escape:'htmlall':'UTF-8'}[]" value="xproductIdy" /></p>';
$(document).ready(function(){
autocompleteProduct();
});
</script>
</div>
{elseif $input.type == 'date_anblog'}
<div class="row">
<div class="input-group col-lg-4">
<input
id="{if isset($input.id)}{$input.id|escape:'htmlall':'UTF-8'}{else}{$input.name|escape:'htmlall':'UTF-8'}{/if}"
type="text"
data-hex="true"
{if isset($input.class)} class="{$input.class|escape:'htmlall':'UTF-8'}"
{else}class="datetimepicker"{/if}
name="{$input.name|escape:'htmlall':'UTF-8'}"
value="{if isset($input.default) && $fields_value[$input.name] == ''}{$input.default|escape:'htmlall':'UTF-8'}{else}{$fields_value[$input.name]|escape:'html':'UTF-8'}{/if}" />
<span class="input-group-addon">
<i class="icon-calendar-empty"></i>
</span>
</div>
</div>
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,25 @@
{*
* 2024 Anvanto
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
*
* @author Anvanto <anvantoco@gmail.com>
* @copyright 2024 Anvanto
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*}
{extends file="helpers/list/list_content.tpl"}
{block name="td_content"}
{if isset($params.type) && $params.type == 'image'}
{if isset($tr.image) && $tr.image !='' }
<img src="{$tr.image|escape:'htmlall':'UTF-8'}" alt="" class="anblog-list" style="max-width: 50px; max-height: 50px;" />
{else}
{l s='No image' mod='anblog'}
{/if}
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,48 @@
{*
* 2021 Anvanto
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 wesite only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* @author Anvanto <anvantoco@gmail.com>
* @copyright 2021 Anvanto
* @license Valid for 1 website (or project) for each purchase of license
* International Registered Trademark & Property of Anvanto
*}
{extends file="helpers/form/form.tpl"}
{block name="input"}
{if $input.type == 'html'}
{if isset($input.html_content)}
{if $input.html_content == 'hr'}
<hr />
{else}
{$input.html_content|escape:'htmlall':'UTF-8'}
{/if}
{else}
{$input.name|escape:'htmlall':'UTF-8'}
{/if}
{else}
{$smarty.block.parent}
{if $input.type == 'file'}
<div class="form-group">
<div class="col-lg-8">
<a class="btn btn-default anblog-del-img-bt"><i class="icon-trash"></i> {l s='Delete' mod='anblog'}</a>
<input class="anblog-input-del" type="hidden" name="image_del" id="image_del" value="0">
</div>
</div>
{/if}
{if $input.name == 'title'}
<script type="text/javascript">
var PS_ALLOW_ACCENTED_CHARS_URL = {$PS_ALLOW_ACCENTED_CHARS_URL|escape:'html':'UTF-8'};
</script>
{/if}
{/if}
{/block}

View File

@@ -0,0 +1,33 @@
{*
* 2024 Anvanto
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
*
* @author Anvanto <anvantoco@gmail.com>
* @copyright 2024 Anvanto
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*}
{extends file="helpers/list/list_content.tpl"}
{block name="td_content"}
{if $key == 'image'}
{if isset($tr.image) && $tr.image !='' }
<img src="{$tr.image|escape:'htmlall':'UTF-8'}" alt="" class="anblog-list" style="max-width: 50px; max-height: 50px;" />
{else}
{l s='No image' mod='anblog'}
{/if}
{elseif $key == 'viewBut'}
{if isset($tr.viewBut) && $tr.viewBut !='' }
<a href="{$tr.viewBut|escape:'html':'UTF-8'}" title="{l s='Sub categories' mod='anblog'}" class="btn btn-primary">
<i class="icon-search-plus"></i>
</a>
{else}
--
{/if}
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,72 @@
{*
* 2020 Anvanto
*
* 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 Anvanto (anvantoco@gmail.com)
* @copyright 2020 anvanto.com
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helpers/form/form.tpl"}
{block name="input"}
{if $input.type == 'tabConfig'}
<div class="row">
{assign var=tabList value=$input.values}
<ul class="nav nav-tabs" role="tablist">
{foreach $tabList as $key => $value name="tabList"}
<li role="presentation" class="{if $smarty.foreach.tabList.first}active{/if}"><a href="#{$key|escape:'html':'UTF-8'}" class="aptab-config" role="tab" data-toggle="tab">{$value|escape:'html':'UTF-8'}</a></li>
{/foreach}
</ul>
</div>
{elseif $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()) || 1));
if (jQuery(el).val() < (parseInt(jQuery(el).attr('min')) || 1)) {
jQuery(el).val((parseInt(jQuery(el).attr('min')) || 1));
} else if (jQuery(el).val() > (parseInt(jQuery(el).attr('max')) || 99999)) {
jQuery(el).val((parseInt(jQuery(el).attr('max')) || 99999));
}
})(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}
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,69 @@
{*
* 2020 Anvanto
*
* 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 Anvanto (anvantoco@gmail.com)
* @copyright 2020 anvanto.com
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div id="blog-dashboard">
<div class="row">
<div class="col-md-12">
<a href="{$preview.href|escape:'html':'UTF-8'}" target="{$preview.target|escape:'html':'UTF-8'}"
class="btn btn-success"
style="width: 100%;
margin-bottom: 10px;">
{$preview.title|escape:'html':'UTF-8'}
</a>
</div>
{*
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">{l s='Global Config' mod='anblog'}</div>
<div class="panel-content" id="bloggeneralsetting">
<ul class="nav nav-tabs anblog-globalconfig" role="tablist">
<li class="nav-item{if $default_tab == '#fieldset_0'} active{/if}">
<a class="nav-link" href="#fieldset_0" role="tab" data-toggle="tab">{l s='General' mod='anblog'}</a>
</li>
<li class="nav-item{if $default_tab == '#fieldset_1_1'} active{/if}">
<a class="nav-link" href="#fieldset_1_1" role="tab" data-toggle="tab">{l s='Blog' mod='anblog'}</a>
</li>
<li class="nav-item{if $default_tab == '#fieldset_2_2'} active{/if}">
<a class="nav-link" href="#fieldset_2_2" role="tab" data-toggle="tab">{l s='Post' mod='anblog'}</a>
</li>
<li class="nav-item{if $default_tab == '#fieldset_3_3'} active{/if}">
<a class="nav-link" href="#fieldset_3_3" role="tab" data-toggle="tab">{l s='Left column' mod='anblog'}</a>
</li>
<li class="nav-item{if $default_tab == '#fieldset_4_4'} active{/if}">
<a class="nav-link" href="#fieldset_4_4" role="tab" data-toggle="tab">{l s='Widget' mod='anblog'}</a>
</li>
</ul>
<div class="tab-content">
{$globalform}
</div>
</div>
</div>
</div>
*}
{$globalform}
</div>
</div>

View File

@@ -0,0 +1,67 @@
{*
* 2020 Anvanto
*
* 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 Anvanto (anvantoco@gmail.com)
* @copyright 2020 anvanto.com
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helpers/form/form.tpl"}
{block name="input"}
{if $input.type == 'tabConfig'}
<div class="row">
{assign var=tabList value=$input.values}
<ul class="nav nav-tabs" role="tablist">
{foreach $tabList as $key => $value name="tabList"}
<li role="presentation" class="{if $smarty.foreach.tabList.first}active{/if}"><a href="#{$key|escape:'html':'UTF-8'}" class="aptab-config" role="tab" data-toggle="tab">{$value|escape:'html':'UTF-8'}</a></li>
{/foreach}
</ul>
</div>
{elseif $input.type == 'number'}
<input type="number"
id="{if isset($input.id)}{$input.id|escape:'html':'UTF-8'}{else}{$input.name|escape:'html':'UTF-8'}{/if}"
name="{$input.name|escape:'html':'UTF-8'}"
class="form-control {if isset($input.class)} {$input.class|escape:'html':'UTF-8'} {/if}"
onkeyup="return (function (el, e) {
if (e.keyCode == 8) return true;
jQuery(el).val((parseInt(jQuery(el).val()) || 1));
if (jQuery(el).val() < (parseInt(jQuery(el).attr('min')) || 1)) {
jQuery(el).val((parseInt(jQuery(el).attr('min')) || 1));
} else if (jQuery(el).val() > (parseInt(jQuery(el).attr('max')) || 99999)) {
jQuery(el).val((parseInt(jQuery(el).attr('max')) || 99999));
}
})(this, event);"
value="{$fields_value[$input.name]|escape:'html':'UTF-8'}"
{if isset($input.size)} size="{$input.size|escape:'html':'UTF-8'}"{/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|escape:'html':'UTF-8'}"{/if} />
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,27 @@
{*
* 2020 Anvanto
*
* 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 Anvanto (anvantoco@gmail.com)
* @copyright 2020 anvanto.com
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$rssLink|escape:'html':'UTF-8'}">{$rssLink|escape:'html':'UTF-8'}</a>

View File

@@ -0,0 +1,58 @@
{*
* 2020 Anvanto
*
* 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 Anvanto (anvantoco@gmail.com)
* @copyright 2020 anvanto.com
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helpers/form/form.tpl"}
{block name="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()) || 1));
if (jQuery(el).val() < (parseInt(jQuery(el).attr('min')) || 1)) {
jQuery(el).val((parseInt(jQuery(el).attr('min')) || 1));
} else if (jQuery(el).val() > (parseInt(jQuery(el).attr('max')) || 99999)) {
jQuery(el).val((parseInt(jQuery(el).attr('max')) || 99999));
}
})(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} />
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,73 @@
{*
* 2023 Anvanto
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
*
* @author Anvanto <anvantoco@gmail.com>
* @copyright 2023 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 == 'anSearchProductsList'}
<div class="col-lg-12">
<div id="{if isset($input.id)}{$input.id|escape:'html':'UTF-8'}{else}{$input.name|escape:'html':'UTF-8'}{/if}"
class="anblog_search_products{if isset($input.class)} {$input.class|escape:'html':'UTF-8'}{/if} {* fixed-width-xl *}"
data-searchProdutsController="{if isset($input.searchProdutsController)}{$input.searchProdutsController|escape:'html':'UTF-8'}{/if}"
data-classProductLine="js-anblog_search-line anblog_search_products-line{if isset($input.classProductLine)} {$input.classProductLine|escape:'html':'UTF-8'}{/if}"
data-classProductRemove="js-anblog_search_products-remove {if isset($input.classProductRemove)}{$input.classProductRemove|escape:'html':'UTF-8'}{/if}"
data-inputName="{$input.name|escape:'html':'UTF-8'}"
data-classSarchInput="{if isset($input.classSarchInput)}{$input.classSarchInput|escape:'html':'UTF-8'}{/if}"
>
{foreach from=$fields_value[$input.name] item=item name=fo}
<div class="js-anblog_search-line anblog_search_products-line {if isset($input.classProductLine)}{$input.classProductLine|escape:'html':'UTF-8'}{/if}">
<input type="hidden" name="{$input.name|escape:'html':'UTF-8'}" value="{$item.id_product|escape:'htmlall':'UTF-8'}" />{* <img src="'+img+'" />*}
<div class="label">{$item.name|escape:'htmlall':'UTF-8'} (ref: {$item.reference|escape:'htmlall':'UTF-8'}) <i class="material-icons delete js-anblog_search_products-remove {if isset($input.classProductRemove)}{$input.classProductRemove|escape:'html':'UTF-8'}{/if}">delete</i></div>
</div>
{/foreach}
</div>
</div>
{elseif $input.type == 'number'}
<input type="number"
id="{if isset($input.id)}{$input.id|escape:'html':'UTF-8'}{else}{$input.name|escape:'htmlall':'UTF-8'}{/if}"
name="{$input.name|escape:'htmlall':'UTF-8'}"
class="form-control {if isset($input.class)} {$input.class|escape:'htmlall':'UTF-8'} {/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|escape:'htmlall':'UTF-8'}"{/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|escape:'htmlall':'UTF-8'}"{/if} />
{elseif $input.type == 'html'}
{if isset($input.html_content)}
{if $input.html_content == 'hr'}
<hr />
{else}
{$input.html_content|escape:'htmlall':'UTF-8'}
{/if}
{else}
{$input.name|escape:'htmlall':'UTF-8'}
{/if}
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,36 @@
{*
* 2020 Anvanto
*
* 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 Anvanto (anvantoco@gmail.com)
* @copyright 2020 anvanto.com
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
var PS_ALLOW_ACCENTED_CHARS_URL = {$PS_ALLOW_ACCENTED_CHARS_URL|escape:'html':'UTF-8'};
var anblog_del_img_txt = "{$anblog_del_img_txt|escape:'html':'UTF-8'}";
var anblog_del_img_mess = "{$anblog_del_img_mess|escape:'html':'UTF-8'}";
</script>
<style>
select#shops {
width: 75% !important;
}
</style>

View File

@@ -0,0 +1,54 @@
{*
* 2020 Anvanto
*
* 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 Anvanto (anvantoco@gmail.com)
* @copyright 2020 anvanto.com
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{function name=printList}
<ol class="level{$level|escape:'htmlall':'UTF-8'} {if $level == 1}sortable{/if}" >
{foreach $items as $item}
<li id="list_{$item['id_anblogcat']|escape:'htmlall':'UTF-8'}" class="{if $item['id_anblogcat'] == $selected}selected{/if}">
<div>
<span class="disclose">
<span>
</span>
</span>
{$item['title']|escape:'htmlall':'UTF-8'}
(ID:{$item['id_anblogcat']|escape:'htmlall':'UTF-8'})
<span class="quickedit" rel="id_{$item['id_anblogcat']|escape:'htmlall':'UTF-8'}">E</span>
<span class="quickdel" rel="id_{$item['id_anblogcat']|escape:'htmlall':'UTF-8'}">D</span>
</div>
{if isset($item['children'])}
{assign var=level value=$level+1}
{call name=printList level=$level items=$item['children']}
{else}
{assign var=level value=$level-1}
{/if}
</li>
{/foreach}
</ol>
{/function}
{call name=printList level=1 items=$tree}

View File

@@ -0,0 +1,49 @@
{*
* 2020 Anvanto
*
* 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 Anvanto (anvantoco@gmail.com)
* @copyright 2020 anvanto.com
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{function name=printList}
<ol class="level{$level|escape:'htmlall'} {if $level == 1}sortable{/if}" >
{foreach $items as $item}
<li id="list_{$item['id_anblogcat']|escape:'htmlall'}">
<div>
<input type="checkbox"
value="{$item['randkey']|escape:'htmlall'}" name="chk_cat[]" id="chk-{$item['id_anblogcat']|escape:'htmlall'}" {if in_array($current_item,$select)}checked="checked"{/if}/>
<label for="chk-'.$menu['id_anblogcat'].'">{if isset($item['title'])}{$item['title']|escape:'htmlall'}{/if} { (ID:{$item['id_anblogcat']|escape:'htmlall'})</label>';
<span class="quickedit" rel="id_{$item['id_anblogcat']|escape:'htmlall'}">E</span>
<span class="quickdel" rel="id_{$item['id_anblogcat']|escape:'htmlall'}">D</span>
</div>
{if isset($item['children'])}
{assign var=level value=$level+1}
{call name=printList level=$level items=$item['children']}
{else}
{assign var=level value=$level-1}
{/if}
</li>
{/foreach}
</ol>
{/function}
{call name=printList level=1 items=$tree}

View File

@@ -0,0 +1,19 @@
{*
* 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 class="row" style="padding-bottom: 10px;">
<div class="col-sm-12">
<a href="{$anblogTopLink.href|escape:'htmlall':'UTF-8'}" class="btn btn-primary" style="width: 100%;" target="_blank">
{$anblogTopLink.title|escape:'htmlall':'UTF-8'}
</a>
</div>
</div>

View File

@@ -0,0 +1,52 @@
{*
* 2020 Anvanto
*
* 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 Anvanto (anvantoco@gmail.com)
* @copyright 2020 anvanto.com
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $warning}
<div class="alert alert-danger">{$warning|escape:'html':'UTF-8'}</div>
{/if}
{if $widget_selected}
{$form}{* HTML form , no escape necessary *}
<script type="text/javascript">
$('#widget_type').change( function(){
location.href = '{html_entity_decode($fb_widget_action|escape:'html':'UTF-8')}&wtype='+$(this).val();
} );
</script>
{else}
<div class="widgets">
{$i=0} <div class="row">
{foreach $types as $widget => $text}
<div class="col-md-4 col-sm-4">
<div class="widget-item">
<h4><a href="{html_entity_decode($fb_widget_action|escape:'html':'UTF-8')}&wtype={$widget|escape:'html':'UTF-8'}">{$text.label|escape:'html':'UTF-8'}</a></h4>
<p><i>{$text.explain}{* HTML form , no escape necessary *}</i></p>
</div>
</div>
{/foreach} <div class="row">
</div>
{/if}