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}

View File

@@ -0,0 +1,37 @@
{*
* 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="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{$config->get('item_diquis_account','demo4antheme')|escape:'html':'UTF-8'}';
var disqus_url = '{$blog_link|escape:'html':'UTF-8'}';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>{l s='Please enable JavaScript to view the.' mod='anblog'} <a href="http://disqus.com/?ref_noscript">{l s='Comments powered by Disqus.' mod='anblog'}.</a></noscript>

View File

@@ -0,0 +1,39 @@
{*
* 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="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {
return;
}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId={$config->get('item_facebook_appid')|escape:'html':'UTF-8'}";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-href="{$blog_link|escape:'html':'UTF-8'}"
data-num-posts="{$config->get("item_limit_comments",10)|escape:'html':'UTF-8'}" data-width="{$config->get('item_facebook_width',600)|escape:'html':'UTF-8'}">
</div>

View File

@@ -0,0 +1,124 @@
{*
* 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
*}
<article class="blog-item">
<div class="blog-image-container">
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}">
{if $blog.preview_url && $config->get('listing_show_image',1)}
<div class="blog-image">
<img src="{$blog.preview_url|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" alt="" class="img-fluid" />
</div>
{elseif $blog.thumb_url && $config->get('listing_show_image',1)}
<div class="blog-image">
<img src="{$blog.thumb_url|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" alt="" class="img-fluid" />
</div>
{/if}
</a>
<div class="blog-meta">
{if $config->get('listing_show_author','1')&&!empty($blog.author)}
<span class="blog-author">
<span>{l s='Posted By' mod='anblog'}:</span>
<a href="{$blog.author_link|escape:'html':'UTF-8'}" title="{$blog.author|escape:'html':'UTF-8'}">{$blog.author|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('listing_show_category','1')}
<span class="blog-cat">
<span>{l s='In' mod='anblog'}:</span>
<a href="{$blog.category_link|escape:'html':'UTF-8'}" title="{$blog.category_title|escape:'html':'UTF-8'}">{$blog.category_title|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('listing_show_created','1')}
<span class="blog-created">
<span>{l s='On' mod='anblog'}: </span>
<time class="date" datetime="{strtotime($blog.date_add)|date_format:"%Y"|escape:'html':'UTF-8'}">
{assign var='blog_month' value=strtotime($blog.date_add)|date_format:"%B"}
{l s=$blog_month mod='anblog'}, <!-- month-->
{assign var='blog_day' value=strtotime($blog.date_add)|date_format:"%e"}
{l s=$blog_day mod='anblog'}, <!-- day of month -->
{assign var='blog_year' value=strtotime($blog.date_add)|date_format:"%Y"}
{l s=$blog_year mod='anblog'} <!-- year -->
</time>
</span>
{/if}
{if isset($blog.comment_count)&&$config->get('listing_show_counter','1')}
<span class="blog-ctncomment">
<span>{l s='Comments' mod='anblog'}:</span>
{$blog.comment_count|intval}
</span>
{/if}
{if $config->get('listing_show_hit','1')}
<span class="blog-hit">
<span>{l s='Views' mod='anblog'}:</span>
{$blog.hits|intval}
</span>
{/if}
</div>
{if $config->get('listing_show_title','1')}
<h4 class="title">
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}">{$blog.title|escape:'html':'UTF-8'}</a>
</h4>
{/if}
</div>
<!--div class="blog-info">
{if $config->get('listing_show_description','1')}
<div class="blog-shortinfo">
{$blog.description|strip_tags:'UTF-8'|truncate:160:'...' nofilter}{* HTML form , no escape necessary *}
</div>
{/if}
{if $config->get('listing_show_readmore',1)}
<p>
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" class="more btn btn-primary">{l s='Read more' mod='anblog'}</a>
</p>
{/if}
</div -->
<div class="hidden-xl-down hidden-xl-up datetime-translate">
{l s='Sunday' mod='anblog'}
{l s='Monday' mod='anblog'}
{l s='Tuesday' mod='anblog'}
{l s='Wednesday' mod='anblog'}
{l s='Thursday' mod='anblog'}
{l s='Friday' mod='anblog'}
{l s='Saturday' mod='anblog'}
{l s='January' mod='anblog'}
{l s='February' mod='anblog'}
{l s='March' mod='anblog'}
{l s='April' mod='anblog'}
{l s='May' mod='anblog'}
{l s='June' mod='anblog'}
{l s='July' mod='anblog'}
{l s='August' mod='anblog'}
{l s='September' mod='anblog'}
{l s='October' mod='anblog'}
{l s='November' mod='anblog'}
{l s='December' mod='anblog'}
</div>
</article>

View File

@@ -0,0 +1,122 @@
{*
* 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-localengine">
<h4 class="comment-list-title">{l s='Comments' mod='anblog'}</h4>
{if $comments}
{if $config->get('item_show_listcomment','1') == 1}
<div class="comments clearfix">
<div class="comments-list">
{foreach from=$comments item=comment name=comment} {$default=''}
<div class="comment-item" id="comment{$comment.id_anblog_comment|escape:'html':'UTF-8'}">
<div class="comment-wrap">
<div class="comment-content">
{$comment.comment|nl2br nofilter}{* HTML form , no escape necessary *}
</div>
<div class="comment-meta">
<span class="comment-infor">
<span class="comment-created">
<i class="material-icons">&#xE192;</i>
<span>{l s='Created On' mod='anblog'} {strtotime($comment.date_add)|date_format:"%A, %e/%m/%Y"|escape:'html':'UTF-8'}</span>
</span>
<span class="comment-postedby"><i class="material-icons">person</i><span>{l s='Posted By' mod='anblog'}: {$comment.user|escape:'html':'UTF-8'}</span></span>
</span>
</div>
</div>
</div>
{/foreach}
</div>
{if $blog_count_comment}
<div class="top-pagination-content clearfix bottom-line">
{include file="module:anblog/views/templates/front/_pagination.tpl"}
</div>
{/if}
</div>
{/if}
{/if}
{if $config->get('item_show_formcomment','1') == 1}
<h4>{l s='Leave your comment' mod='anblog'}</h4>
<form class="form-horizontal clearfix" method="post" id="comment-form" action="{$blog_link|escape:'html':'UTF-8'}" onsubmit="return false;">
<div class="form-group row">
<div class="col-lg-3">
<label class="control-label" for="inputFullName">{l s='Full Name' mod='anblog'}</label>
</div>
<div class="col-lg-9">
<input type="text" name="user" placeholder="{l s='Enter your full name' mod='anblog'}" id="inputFullName" class="form-control">
</div>
</div>
<div class="form-group row">
<div class="col-lg-3">
<label class="control-label" for="inputEmail">{l s='Email' mod='anblog'}</label>
</div>
<div class="col-lg-9">
<input type="text" name="email" placeholder="{l s='Enter your email' mod='anblog'}" id="inputEmail" class="form-control">
</div>
</div>
<div class="form-group row">
<div class="col-lg-3">
<label class="control-label" for="inputComment">{l s='Comment' mod='anblog'}</label>
</div>
<div class="col-lg-9">
<textarea type="text" name="comment" rows="6" placeholder="{l s='Enter your comment' mod='anblog'}" id="inputComment" class="form-control"></textarea>
</div>
</div>
{if $config->get('google_captcha_status')}
<div class="form-group row">
<div class="col-lg-3">
<label class="control-label" for="inputEmail">{l s='Captcha' mod='anblog'}</label>
</div>
<div class="col-lg-8 col-md-8 ipts-captcha">
<div class="g-recaptcha" data-sitekey="{$config->get('google_captcha_site_key')|escape:'htmlall':'UTF-8'}"></div>
</div>
</div>
{/if}
<input type="hidden" name="id_anblog_blog" value="{$id_anblog_blog|intval}">
<div class="form-group row">
<div class="col-lg-3">
</div>
<div class="col-lg-9">
<button class="btn btn-primary btn-submit-comment-wrapper" name="submitcomment" type="submit">
<span class="btn-submit-comment">{l s='Submit' mod='anblog'}</span>
<span class="anblog-cssload-container cssload-speeding-wheel"></span>
</button>
</div>
</div>
</form>
{/if}
</div>

View File

@@ -0,0 +1,171 @@
{*
* 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 isset($no_follow) AND $no_follow}
{assign var='no_follow_text' value='rel="nofollow"'}
{else}
{assign var='no_follow_text' value=''}
{/if}
{if isset($p) AND $p}
{if ($n*$p) < $nb_items }
{assign var='blogShowing' value=$n*$p}
{else}
{assign var='blogShowing' value=($n*$p-$nb_items-$n*$p)*-1}
{/if}
{if $p==1}
{assign var='blogShowingStart' value=1}
{else}
{assign var='blogShowingStart' value=$n*$p-$n+1}
{/if}
<nav class="pagination">
{if $start!=$stop}
<div class="col-xs-12 col-md-6 col-lg-6">
{if $nb_items > 1}
{l s='Showing' mod='anblog'} {$blogShowingStart|escape:'htmlall':'UTF-8'} - {$blogShowing|escape:'htmlall':'UTF-8'} {l s='of' mod='anblog'} {$nb_items|escape:'htmlall':'UTF-8'} {l s='items' mod='anblog'}
{else}
{l s='Showing' mod='anblog'} {$blogShowingStart|escape:'htmlall':'UTF-8'} - {$blogShowing|escape:'htmlall':'UTF-8'} {l s='of' mod='anblog'} 1 {l s='item' mod='anblog'}
{/if}
</div>
{/if}
{if $start!=$stop}
<div id="pagination{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}" class="col-xs-12 col-md-6 col-lg-6">
<ul class="page-list clearfix text-sm-center">
{if $p != 1}
{assign var='p_previous' value=$p-1}
<li id="pagination_previous{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}">
<a {$no_follow_text|escape:'html':'UTF-8'} class="previous" rel="prev" href="{$link->goPage($requestPage, $p_previous)|escape:'html':'UTF-8'}">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="16px" height="7px">
<path fill-rule="evenodd" fill="rgb(153, 153, 153)"
d="M0.218,3.005 L3.193,0.205 C3.484,-0.069 3.955,-0.069 4.246,0.205 C4.536,0.479 4.536,0.922 4.246,1.196 L2.540,2.800 L15.256,2.800 C15.667,2.800 16.000,3.113 16.000,3.500 C16.000,3.887 15.667,4.200 15.256,4.200 L2.540,4.200 L4.246,5.804 C4.536,6.078 4.536,6.521 4.246,6.795 C4.100,6.932 3.910,7.000 3.719,7.000 C3.529,7.000 3.339,6.932 3.193,6.795 L0.218,3.995 C-0.073,3.722 -0.073,3.278 0.218,3.005 Z"/>
</svg>
<span>{l s='Previous' mod='anblog'}</span>
</a>
</li>
{else}
<li id="pagination_previous{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}">
<a class="previous disabled" rel="prev" href="#">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="16px" height="7px">
<path fill-rule="evenodd" fill="rgb(153, 153, 153)"
d="M0.218,3.005 L3.193,0.205 C3.484,-0.069 3.955,-0.069 4.246,0.205 C4.536,0.479 4.536,0.922 4.246,1.196 L2.540,2.800 L15.256,2.800 C15.667,2.800 16.000,3.113 16.000,3.500 C16.000,3.887 15.667,4.200 15.256,4.200 L2.540,4.200 L4.246,5.804 C4.536,6.078 4.536,6.521 4.246,6.795 C4.100,6.932 3.910,7.000 3.719,7.000 C3.529,7.000 3.339,6.932 3.193,6.795 L0.218,3.995 C-0.073,3.722 -0.073,3.278 0.218,3.005 Z"/>
</svg>
<span>{l s='Previous' mod='anblog'}</span>
</a>
</li>
{/if}
{if $start==3}
<li><a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, 1)|escape:'html':'UTF-8'}">1</a></li>
<li><a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, 2)|escape:'html':'UTF-8'}">2</a></li>
{/if}
{if $start==2}
<li><a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, 1)|escape:'html':'UTF-8'}">1</a></li>
{/if}
{if $start>3}
<li><a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, 1)|escape:'html':'UTF-8'}">1</a></li>
<li class="truncate">...</li>
{/if}
{section name=pagination start=$start loop=$stop+1 step=1}
{if $p == $smarty.section.pagination.index}
<li class="current">
<a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, $smarty.section.pagination.index)|escape:'html':'UTF-8'}" class="disabled">
{$p|escape:'html':'UTF-8'}
</a>
</li>
{else}
<li>
<a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, $smarty.section.pagination.index)|escape:'html':'UTF-8'}">
{$smarty.section.pagination.index|escape:'html':'UTF-8'}
</a>
</li>
{/if}
{/section}
{if $pages_nb>$stop+2}
<li class="truncate">...</li>
<li>
<a href="{$link->goPage($requestPage, $pages_nb)|escape:'html':'UTF-8'}">
{$pages_nb|intval}
</a>
</li>
{/if}
{if $pages_nb==$stop+1}
<li>
<a href="{$link->goPage($requestPage, $pages_nb)|escape:'html':'UTF-8'}">
{$pages_nb|intval}
</a>
</li>
{/if}
{if $pages_nb==$stop+2}
<li>
<a href="{$link->goPage($requestPage, $pages_nb-1)|escape:'html':'UTF-8'}">
{$pages_nb-1|intval}
</a>
</li>
<li>
<a href="{$link->goPage($requestPage, $pages_nb)|escape:'html':'UTF-8'}">
{$pages_nb|intval}
</a>
</li>
{/if}
{if $pages_nb > 1 AND $p != $pages_nb}
{assign var='p_next' value=$p+1}
<li id="pagination_next{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}">
<a {$no_follow_text|escape:'html':'UTF-8'} class="next" rel="next" href="{$link->goPage($requestPage, $p_next)|escape:'html':'UTF-8'}">
<span>{l s='Next' mod='anblog'}</span>
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="16px" height="8px">
<path fill-rule="evenodd" fill="rgb(153, 153, 153)"
d="M15.782,3.223 L12.807,0.424 C12.516,0.150 12.045,0.150 11.754,0.424 C11.464,0.697 11.464,1.141 11.754,1.414 L13.460,3.018 L0.744,3.018 C0.333,3.018 -0.000,3.332 -0.000,3.719 C-0.000,4.105 0.333,4.419 0.744,4.419 L13.460,4.419 L11.755,6.023 C11.464,6.297 11.464,6.740 11.755,7.014 C11.900,7.150 12.090,7.219 12.281,7.219 C12.471,7.219 12.661,7.150 12.807,7.014 L15.782,4.214 C16.073,3.940 16.073,3.497 15.782,3.223 Z"/>
</svg>
</a>
</li>
{else}
<li id="pagination_next{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}">
<a class="next disabled" rel="next" href="#">
<span>{l s='Next' mod='anblog'}</span>
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="16px" height="8px">
<path fill-rule="evenodd" fill="rgb(153, 153, 153)"
d="M15.782,3.223 L12.807,0.424 C12.516,0.150 12.045,0.150 11.754,0.424 C11.464,0.697 11.464,1.141 11.754,1.414 L13.460,3.018 L0.744,3.018 C0.333,3.018 -0.000,3.332 -0.000,3.719 C-0.000,4.105 0.333,4.419 0.744,4.419 L13.460,4.419 L11.755,6.023 C11.464,6.297 11.464,6.740 11.755,7.014 C11.900,7.150 12.090,7.219 12.281,7.219 C12.471,7.219 12.661,7.150 12.807,7.014 L15.782,4.214 C16.073,3.940 16.073,3.497 15.782,3.223 Z"/>
</svg>
</a>
</li>
{/if}
</ul>
</div>
{/if}
</nav>
{/if}

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
*}
<div class="social-wrap">
<div class="social-heading">{l s='To share with friends' mod='anblog'}:</div>
{if $config->get('social_code','')}
{html_entity_decode($config->get('social_code','')) nofilter} {* HTML form , no escape necessary *}
{else}
<div class="blog-social-list">
<!-- Facebook Button -->
<div class="itemSocialButton itemFacebookButton">
<a href="http://www.facebook.com/sharer.php?u={$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}" class="facebook-share-button" data-count="horizontal" >
</a>
</div>
<!-- Twitter Button -->
<div class="itemSocialButton itemTwitterButton">
<a href="https://twitter.com/intent/tweet?text={$blog->meta_title|escape:'html':'UTF-8'} {$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}" class="twitter-share-button" data-count="horizontal" >
</a>
</div>
<!-- Linkedin Button -->
<div class="itemSocialButton itemLinkedinButton">
<a href="https://www.linkedin.com/shareArticle?mini=true&url={$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}&title={$blog->meta_title|escape:'html':'UTF-8'}&source=LinkedIn" class="linkedin-share-button" data-count="horizontal" >
</a>
</div>
<!-- Tumblr Button -->
<div class="itemSocialButton itemTumblrButton">
<a href="http://www.tumblr.com/share/link?url={$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}" class="tumblr-share-button" data-count="horizontal" >
</a>
</div>
<!-- Pinterest Button -->
<div class="itemSocialButton itemPinterestButton">
<a href="http://www.pinterest.com/pin/create/button/?media={if $blog->preview_url && $config->get('item_show_image','1')}{$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$blog->preview_url|escape:'html':'UTF-8'}{/if}&url={$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}" class="pinterest-share-button" data-count="horizontal" >
</a>
</div>
{/if}
</div>
</div>

View File

@@ -0,0 +1,151 @@
{*
* 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="page.tpl"}
{block name="left_column"}
{if $show_in_blog}
<div class="row">
<div id="left-column" class="col-xs-12 col-sm-4 col-md-3">
<div class="anblog_left_mobile-cover"></div>
<div class="anblog_left_mobile-modal">
<div id="anblog_left_wrapper">
<div class="mobile-menu-header">
<div class="anblog_left_mobile-btn-close">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="16px" height="16px">
<path fill-rule="evenodd" fill="rgb(0, 0, 0)"
d="M16.002,0.726 L15.274,-0.002 L8.000,7.273 L0.725,-0.002 L-0.002,0.726 L7.273,8.000 L-0.002,15.274 L0.725,16.002 L8.000,8.727 L15.274,16.002 L16.002,15.274 L8.727,8.000 L16.002,0.726 Z"/>
</svg>
</div>
</div>
{Module::getInstanceByName('anblog')->hookDisplayLeftColumn(array()) nofilter}
</div>
</div>
</div>
{/if}
{/block}
{block name="content_wrapper"}
{if !$show_in_blog}
<div class="row">
{/if}
<div id="content-wrapper" class="left-column right-column {if $show_in_blog}col-sm-12 col-md-12 col-lg-9{else}col-sm-12 col-md-12{/if}">
<div class="blog-content-wrapper">
{if $show_in_blog}
<div class="hidden-lg-up">
<button id="anblog_left_toggler" class="btn btn-secondary">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="16px" height="4px">
<image x="0px" y="0px" width="16px" height="4px" xlink:href="data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAECAMAAACwak/eAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAS1BMVEUAAAAmIyQmIyQmIyQmIyQmJCUmIyQmJCQmIyQmJCQmIyQmJCQmIyQlIyQmJCUmIyQmJCUmJCQmJCUlIyQmIyQmJCQmJCUlIyT///8VIQx0AAAAFHRSTlMAX/PXIT7oPu+SwcGSktc+6NfzX4D2ZO4AAAABYktHRBibaYUeAAAAB3RJTUUH4wsSETMJQZd5WgAAAD9JREFUCNcVy8ERgCAMAMFLwIiIggrYf6fG784soiHCYrZCDCqk3jfIY+5QxpscZnHoM8Pxg+jppVqrXq77+QA/HgImmGTStAAAAABJRU5ErkJggg==" />
</svg>
{l s='Show sidebar' mod='anblog'}
</button>
</div>
{/if}
{if isset($no_follow) AND $no_follow}
{assign var='no_follow_text' value='rel="nofollow"'}
{else}
{assign var='no_follow_text' value=''}
{/if}
{************************************************}
{if isset($filter.type)}
{if $filter.type=='tag'}
<h1>{l s='Filter Blogs By Tag' mod='anblog'} : <span>{$filter.tag|escape:'html':'UTF-8'}</span></h1>
{elseif $filter.type=='author'}
{if isset($filter.id_employee)}
<h1>{l s='Filter Blogs By Blogger' mod='anblog'} : <span>{$filter.employee->firstname|escape:'html':'UTF-8'} {$filter.employee->lastname|escape:'html':'UTF-8'}</span></h1>
{else}
<h1>{l s='Filter Blogs By Blogger' mod='anblog'} : <span>{$filter.author_name|escape:'html':'UTF-8'}</span></h1>
{/if}
{/if}
{/if}
{************************************************}
{if isset($category) && $category->id_anblogcat && $category->active}
<h1>{$category->title|escape:'html':'UTF-8'}</h1>
{if $config->get('listing_show_categoryinfo',1)}
<div class="panel panel-default">
<div class="panel-body">
{if $category->image}
<div class="row">
<div class="category-image col-xs-12 col-sm-12 col-lg-4 col-md-6 text-center">
<img src="{$category->image|escape:'html':'UTF-8'}" class="img-fluid" alt="" />
</div>
<div class="col-xs-12 col-sm-12 col-lg-8 col-md-6 category-info caption">
{$category->content_text nofilter}{* HTML form , no escape necessary *}
</div>
</div>
{else}
<div class="category-info caption">
{$category->content_text nofilter}{* HTML form , no escape necessary *}
</div>
{/if}
</div>
</div>
{/if}
{/if}
{************************************************}
{if count($leading_blogs)>0}
<div class="row blog-item-list">
{foreach from=$leading_blogs item=blog name=leading_blog}
{if $post_type == 'Type 1'}
<div class="col-sm-12">
{include file="module:anblog/views/templates/front/miniature-post-type1.tpl"}
</div>
{elseif $post_type == 'Type 2'}
<div class="{if $show_in_blog}col-sm-6{else}col-sm-4{/if}">
{include file="module:anblog/views/templates/front/miniature-post-type2.tpl"}
</div>
{else}
<div class="col-sm-12">
{include file="module:anblog/views/templates/front/miniature-post-type3.tpl"}
</div>
{/if}
{/foreach}
</div>
<div class="{if $config->get('item_posts_type') == 'Type 2'}type-2-pagination {/if}row top-pagination-content clearfix bottom-line">
{include file="module:anblog/views/templates/front/_pagination.tpl"}
</div>
{else}
<div class="alert alert-warning">{l s='Sorry, no posts has been posted in the blog yet, but it will be done soon.' mod='anblog'}</div>
{/if}
</div>
</div>
</div>
</div>
{/block}

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}
<ul {if $parent != 1}id="sub_{$parent|escape:'htmlall':'UTF-8'}"{/if} class="level{$level|escape:'htmlall':'UTF-8'} category-sub-menu{if $level == 1} tree dhtml {else} collapse {/if}">
{foreach $items as $item}
<li id="list_{$item['id_anblogcat']|escape:'htmlall':'UTF-8'}" class=" {if isset($item['menu_class'])} {$item['menu_class']|escape:'htmlall':'UTF-8'}{/if} {if $item['id_anblogcat'] == $selected}selected{/if}">
<a href="{$item['category_link']|escape:'htmlall':'UTF-8'}" class="category-sub-link" title="{$item['title']|escape:'htmlall':'UTF-8'}">
{if ($item['icon_class'])}
<i class="fa fa-{$item['icon_class']|escape:'htmlall':'UTF-8'}"></i>
{/if}
<span>{$item['title']|escape:'htmlall':'UTF-8'}</span>
</a>
{if isset($item['children'])}
<div class="navbar-toggler collapse-icons"
data-toggle="collapse" data-target="#sub_{$item['id_anblogcat']|escape:'htmlall':'UTF-8'}">
<i class="material-icons add">add</i>
<i class="material-icons remove">remove</i>
</div>
{assign var=level value=$level+1}
{call name=printList level=$level parent=$item['id_anblogcat'] items=$item['children']}
{else}
{assign var=level value=$level-1}
{/if}
</li>
{/foreach}
</ul>
{/function}
{call name=printList level=1 parent=1 items=$tree}

View File

@@ -0,0 +1,61 @@
{*
* 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-localengine">
<form class="form-horizontal" method="post" id="comment-form" action="{$blog_link|escape:'html':'UTF-8'}" onsubmit="return false;">
<div class="form-group">
<label class="col-lg-3 control-label" for="inputFullName">{l s='Full Name' mod='anblog'}</label>
<div class="col-lg-9">
<input type="text" name="fullname" placeholder="{l s='Enter your full name' mod='anblog'}" id="inputFullName" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label" for="inputEmail">{l s='Email' mod='anblog'}</label>
<div class="col-lg-9">
<input type="text" name="email" placeholder="{l s='Enter your email' mod='anblog'}" id="inputEmail" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label" for="inputComment">{l s='Comments' mod='anblog'}</label>
<div class="col-lg-9">
<textarea type="text" name="comment" rows="6" placeholder="{l s='Enter your comment' mod='anblog'}" id="inputComment" class="form-control"></textarea>
</div>
</div>
<div class="g-recaptcha" data-sitekey="{$config->get('google_captha_site_key')|escape:'htmlall':'UTF-8'}"></div>
<input type="hidden" name="id_anblog_blog" value="{$id_anblog_blog|intval}">
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<button class="btn btn-default btn-submit-comment-wrapper" name="submitcomment" type="submit">
<span class="btn-submit-comment">{l s='Submit' mod='anblog'}</span>
<span class="anblog-cssload-container cssload-speeding-wheel"></span>
</button>
</div>
</div>
</form>
</div>

View File

@@ -0,0 +1,122 @@
{*
* 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
*}
<article class="blog-item">
<div class="blog-image-container">
{if $config->get('listing_show_title','1')}
<h4 class="title">
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}">{$blog.title|escape:'html':'UTF-8'}</a>
</h4>
{/if}
<div class="blog-meta">
{if $config->get('listing_show_author','1')&&!empty($blog.author)}
<span class="blog-author">
<i class="material-icons">person</i> <span>{l s='Posted By' mod='anblog'}:</span>
<a href="{$blog.author_link|escape:'html':'UTF-8'}" title="{$blog.author|escape:'html':'UTF-8'}">{$blog.author|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('listing_show_category','1')}
<span class="blog-cat">
<i class="material-icons">list</i> <span>{l s='In' mod='anblog'}:</span>
<a href="{$blog.category_link|escape:'html':'UTF-8'}" title="{$blog.category_title|escape:'html':'UTF-8'}">{$blog.category_title|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('listing_show_created','1')}
<span class="blog-created">
<i class="material-icons">&#xE192;</i>
<time class="date" datetime="{strtotime($blog.date_add)|date_format:"%Y"|escape:'html':'UTF-8'}">
{assign var='blog_day' value=strtotime($blog.date_add)|date_format:"%e"}
{l s=$blog_day mod='anblog'} <!-- day of month -->
{assign var='blog_month' value=strtotime($blog.date_add)|date_format:"%B"}
{l s=$blog_month mod='anblog'} <!-- month-->
{assign var='blog_year' value=strtotime($blog.date_add)|date_format:"%Y"}
{l s=$blog_year mod='anblog'} <!-- year -->
</time>
</span>
{/if}
{if isset($blog.comment_count)&&$config->get('listing_show_counter','1')}
<span class="blog-ctncomment">
<i class="material-icons">comment</i> <span>{l s='Comments' mod='anblog'}:</span>
{$blog.comment_count|intval}
</span>
{/if}
{if $config->get('listing_show_hit','1')}
<span class="blog-hit">
<i class="material-icons">visibility</i> <span>{l s='Views' mod='anblog'}:</span>
{$blog.hits|intval}
</span>
{/if}
</div>
{if $blog.preview_url && $config->get('listing_show_image',1)}
<div class="blog-image">
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}"><img src="{$blog.preview_url|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" alt="" class="img-fluid" /></a>
</div>
{elseif $blog.thumb_url && $config->get('listing_show_image',1)}
<div class="blog-image">
<img src="{$blog.thumb_url|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" alt="" class="img-fluid" />
</div>
{/if}
</div>
<div class="blog-info">
{if $config->get('listing_show_description','1')}
<div class="blog-shortinfo">
{$blog.description|strip_tags:'UTF-8'|truncate:160:'...' nofilter}{* HTML form , no escape necessary *}
</div>
{/if}
{if $config->get('listing_show_readmore',1)}
<p>
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" class="more btn btn-primary">{l s='Read more' mod='anblog'}</a>
</p>
{/if}
</div>
<div class="hidden-xl-down hidden-xl-up datetime-translate">
{l s='Sunday' mod='anblog'}
{l s='Monday' mod='anblog'}
{l s='Tuesday' mod='anblog'}
{l s='Wednesday' mod='anblog'}
{l s='Thursday' mod='anblog'}
{l s='Friday' mod='anblog'}
{l s='Saturday' mod='anblog'}
{l s='January' mod='anblog'}
{l s='February' mod='anblog'}
{l s='March' mod='anblog'}
{l s='April' mod='anblog'}
{l s='May' mod='anblog'}
{l s='June' mod='anblog'}
{l s='July' mod='anblog'}
{l s='August' mod='anblog'}
{l s='September' mod='anblog'}
{l s='October' mod='anblog'}
{l s='November' mod='anblog'}
{l s='December' mod='anblog'}
</div>
</article>

View File

@@ -0,0 +1,94 @@
{*
* 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
*}
<article class="blog-item blog-item-type-1">
<div class="blog-image-container">
{if $config->get('listing_show_title','1')}
<h4 class="title">
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}">{$blog.title|escape:'html':'UTF-8'}</a>
</h4>
{/if}
<div class="blog-meta">
{if $config->get('listing_show_hit','1')}
<span class="blog-hit">
<i class="material-icons">visibility</i> <span> {$blog.hits|intval} {l s='Views' mod='anblog'}</span>
</span>
{/if}
{if $config->get('listing_show_created','1')}
<span class="blog-created">
<i class="material-icons">&#xE192;</i>
<time class="date" datetime="{strtotime($blog.date_add)|date_format:"%Y"|escape:'html':'UTF-8'}">
{assign var='blog_day' value=strtotime($blog.date_add)|date_format:"%e"}{l s=$blog_day mod='anblog'}/{assign var='blog_month' value=strtotime($blog.date_add)|date_format:"%m"}{l s=$blog_month mod='anblog'}/{assign var='blog_year' value=strtotime($blog.date_add)|date_format:"%Y"}{l s=$blog_year mod='anblog'}
</time>
</span>
{/if}
{if isset($blog.comment_count)&&$config->get('listing_show_counter','1')}
<span class="blog-ctncomment">
<i class="material-icons">comment</i> <span>{$blog.comment_count|intval} {l s='comments' mod='anblog'}</span>
</span>
{/if}
{if $config->get('listing_show_author','1')&&!empty($blog.author)}
<span class="blog-author">
<i class="material-icons">person</i> <span>{l s='Posted By' mod='anblog'}:</span>
<a href="{$blog.author_link|escape:'html':'UTF-8'}" title="{$blog.author|escape:'html':'UTF-8'}">{$blog.author|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('listing_show_category','1')}
<span class="blog-cat">
<i class="material-icons">list</i> <span>{l s='In' mod='anblog'}:</span>
<a href="{$blog.category_link|escape:'html':'UTF-8'}" title="{$blog.category_title|escape:'html':'UTF-8'}">{$blog.category_title|escape:'html':'UTF-8'}</a>
</span>
{/if}
</div>
{if $blog.preview_url && $config->get('listing_show_image',1)}
<div class="blog-image">
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}"><img src="{$blog.preview_url|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" alt="" class="img-fluid" /></a>
</div>
{elseif $blog.thumb_url && $config->get('listing_show_image',1)}
<div class="blog-image">
<img src="{$blog.thumb_url|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" alt="" class="img-fluid" />
</div>
{/if}
</div>
<div class="blog-info">
{if $config->get('listing_show_description','1')}
<div class="blog-shortinfo">
{$blog.description|strip_tags:'UTF-8'|truncate:160:'...' nofilter}{* HTML form , no escape necessary *}
</div>
{/if}
{if $config->get('listing_show_readmore',1)}
<p>
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" class="more btn btn-primary">{l s='Read more' mod='anblog'}</a>
</p>
{/if}
</div>
</article>

View File

@@ -0,0 +1,95 @@
{*
* 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
*}
<article class="blog-item blog-item-type-2">
<div class="blog-image-container">
{if $blog.preview_url && $config->get('listing_show_image',1)}
<div class="blog-image">
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}"><img src="{$blog.preview_url|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" alt="" class="img-fluid" /></a>
</div>
{elseif $blog.thumb_url && $config->get('listing_show_image',1)}
<div class="blog-image">
<img src="{$blog.thumb_url|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" alt="" class="img-fluid" />
</div>
{/if}
{if $config->get('listing_show_title','1')}
<h4 class="title">
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}">{$blog.title|escape:'html':'UTF-8'}</a>
</h4>
{/if}
<div class="blog-meta">
{if $config->get('listing_show_hit','1')}
<span class="blog-hit">
<i class="material-icons">visibility</i> <span> {$blog.hits|intval} {l s='Views' mod='anblog'}</span>
</span>
{/if}
{if $config->get('listing_show_created','1')}
<span class="blog-created">
<i class="material-icons">&#xE192;</i>
<time class="date" datetime="{strtotime($blog.date_add)|date_format:"%Y"|escape:'html':'UTF-8'}">
{assign var='blog_day' value=strtotime($blog.date_add)|date_format:"%e"}{l s=$blog_day mod='anblog'}/{assign var='blog_month' value=strtotime($blog.date_add)|date_format:"%m"}{l s=$blog_month mod='anblog'}/{assign var='blog_year' value=strtotime($blog.date_add)|date_format:"%Y"}{l s=$blog_year mod='anblog'}
</time>
</span>
{/if}
{if isset($blog.comment_count)&&$config->get('listing_show_counter','1')}
<span class="blog-ctncomment">
<i class="material-icons">comment</i> <span>{$blog.comment_count|intval} {l s='comments' mod='anblog'}</span>
</span>
{/if}
{if $config->get('listing_show_author','1')&&!empty($blog.author)}
<span class="blog-author">
<i class="material-icons">person</i> <span>{l s='Posted By' mod='anblog'}:</span>
<a href="{$blog.author_link|escape:'html':'UTF-8'}" title="{$blog.author|escape:'html':'UTF-8'}">{$blog.author|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('listing_show_category','1')}
<span class="blog-cat">
<i class="material-icons">list</i> <span>{l s='In' mod='anblog'}:</span>
<a href="{$blog.category_link|escape:'html':'UTF-8'}" title="{$blog.category_title|escape:'html':'UTF-8'}">{$blog.category_title|escape:'html':'UTF-8'}</a>
</span>
{/if}
</div>
</div>
<div class="blog-info">
{if $config->get('listing_show_description','1')}
<div class="blog-shortinfo">
{$blog.description|strip_tags:'UTF-8'|truncate:140:'...' nofilter}{* HTML form , no escape necessary *}
</div>
{/if}
{if $config->get('listing_show_readmore',1)}
<p>
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" class="more btn btn-primary">{l s='Read more' mod='anblog'}</a>
</p>
{/if}
</div>
</article>

View File

@@ -0,0 +1,101 @@
{*
* 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
*}
<article class="blog-item blog-item-type-3">
<div class="row">
<div class="blog-image-container col-md-6">
{if $blog.preview_url && $config->get('listing_show_image',1)}
<div class="blog-image">
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}"><img src="{$blog.preview_url|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" alt="" class="img-fluid" /></a>
</div>
{elseif $blog.thumb_url && $config->get('listing_show_image',1)}
<div class="blog-image">
<img src="{$blog.thumb_url|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" alt="" class="img-fluid" />
</div>
{/if}
</div>
<div class="blog-info col-md-6">
{if $config->get('listing_show_title','1')}
<h4 class="title">
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}">{$blog.title|escape:'html':'UTF-8'}</a>
</h4>
{/if}
<div class="blog-meta">
{if $config->get('listing_show_hit','1')}
<span class="blog-hit">
<i class="material-icons">visibility</i> <span> {$blog.hits|intval} {l s='Views' mod='anblog'}</span>
</span>
{/if}
{if $config->get('listing_show_created','1')}
<span class="blog-created">
<i class="material-icons">&#xE192;</i>
<time class="date" datetime="{strtotime($blog.date_add)|date_format:"%Y"|escape:'html':'UTF-8'}">
{assign var='blog_day' value=strtotime($blog.date_add)|date_format:"%e"}{l s=$blog_day mod='anblog'}/{assign var='blog_month' value=strtotime($blog.date_add)|date_format:"%m"}{l s=$blog_month mod='anblog'}/{assign var='blog_year' value=strtotime($blog.date_add)|date_format:"%Y"}{l s=$blog_year mod='anblog'}
</time>
</span>
{/if}
{if isset($blog.comment_count)&&$config->get('listing_show_counter','1')}
<span class="blog-ctncomment">
<i class="material-icons">comment</i> <span>{$blog.comment_count|intval} {l s='comments' mod='anblog'}</span>
</span>
{/if}
{if $config->get('listing_show_author','1')&&!empty($blog.author)}
<span class="blog-author">
<i class="material-icons">person</i> <span>{l s='Posted By' mod='anblog'}:</span>
<a href="{$blog.author_link|escape:'html':'UTF-8'}" title="{$blog.author|escape:'html':'UTF-8'}">{$blog.author|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('listing_show_category','1')}
<span class="blog-cat">
<i class="material-icons">list</i> <span>{l s='In' mod='anblog'}:</span>
<a href="{$blog.category_link|escape:'html':'UTF-8'}" title="{$blog.category_title|escape:'html':'UTF-8'}">{$blog.category_title|escape:'html':'UTF-8'}</a>
</span>
{/if}
</div>
{if $config->get('listing_show_description','1')}
<div class="blog-shortinfo">
{$blog.description|strip_tags:'UTF-8'|truncate:160:'...' nofilter}{* HTML form , no escape necessary *}
</div>
{/if}
{if $config->get('listing_show_readmore',1)}
<p>
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" class="more btn btn-primary">{l s='Read more' mod='anblog'}</a>
</p>
{/if}
</div>
</div>
</article>

View File

@@ -0,0 +1,40 @@
{*
* 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)
*}
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[{$anblogrss.PS_SHOP_NAME|escape:'htmlall':'UTF-8'}]]></title>
<link><![CDATA[{$anblogrss.link|escape:'htmlall':'UTF-8'}]]></link>
<webMaster><![CDATA[{$anblogrss.webMaster|escape:'htmlall':'UTF-8'}]]></webMaster>
<generator>PrestaShop</generator>
<language><![CDATA[{$anblogrss.language|escape:'htmlall':'UTF-8'}]]></language>
<image>
<title><![CDATA[{$anblogrss.PS_SHOP_NAME|escape:'htmlall':'UTF-8'}]]></title>
<url>{$anblogrss.link|escape:'htmlall':'UTF-8'}img/logo.jpg</url>
<link>{$anblogrss.link|escape:'htmlall':'UTF-8'}</link>
</image>
{foreach from=$anblogrss.posts item=post}
<item>
<title><![CDATA[{$post.title|escape:'htmlall':'UTF-8'}]]></title>
<description>
<![CDATA[
{if isset($post.preview_url) && $post.preview_url !=''}
<img src="{$post.preview_url|escape:'htmlall':'UTF-8'}" title="{$post.title|escape:'htmlall':'UTF-8'}" alt="{$post.title|escape:'htmlall':'UTF-8'}" class="img-fluid" />
{/if}
{$post.description|escape:'htmlall':'UTF-8'}]]>
</description>
<link><![CDATA[{$post.link|escape:'htmlall':'UTF-8'}]]></link>
</item>
{/foreach}
</channel>
</rss>

View File

@@ -0,0 +1,273 @@
{*
* 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="page.tpl"}
{block name='hook_extra'}
<meta property="og:title" content="{$blog->meta_title|escape:'html':'UTF-8'}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://{$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}" />
<meta property="og:image" content="https://{$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$blog->preview_url|escape:'html':'UTF-8'}" />
<meta property="og:image:width" content="400" />
<meta property="og:description" content="{$blog->description|escape:'htmlall':'UTF-8'}" />
<meta property="article:published_time" content="{strtotime($blog->date_add)|date_format:"%A, %B %e, %Y"|escape:'html':'UTF-8'}" />
<meta property="article:author" content="{$blog->author|escape:'html':'UTF-8'}" />
<meta property="article:section" content="{$blog->category_title|escape:'html':'UTF-8'}" />
<meta property="article:tag" content="{foreach from=$tags item=tag name=tag} {$tag.tag|escape:'html':'UTF-8'}{/foreach}" />
{/block}
{block name="left_column"}
{if $show_in_post}
<div class="row">
<div id="left-column" class="col-xs-12 col-sm-4 col-md-3">
<div class="anblog_left_mobile-cover"></div>
<div class="anblog_left_mobile-modal">
<div id="anblog_left_wrapper">
<div class="mobile-menu-header">
<div class="anblog_left_mobile-btn-close">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="16px" height="16px">
<path fill-rule="evenodd" fill="rgb(0, 0, 0)"
d="M16.002,0.726 L15.274,-0.002 L8.000,7.273 L0.725,-0.002 L-0.002,0.726 L7.273,8.000 L-0.002,15.274 L0.725,16.002 L8.000,8.727 L15.274,16.002 L16.002,15.274 L8.727,8.000 L16.002,0.726 Z"/>
</svg>
</div>
</div>
{Module::getInstanceByName('anblog')->hookDisplayLeftColumn(array()) nofilter}
</div>
</div>
</div>
{/if}
{/block}
{block name="content_wrapper"}
{if !$show_in_post}
<div class="row">
{/if}
<div id="content-wrapper" class="left-column right-column {if $show_in_post}col-sm-12 col-md-12 col-lg-9 {else}col-sm-12 col-md-12{/if}">
<div class="blog-content-wrapper">
{if $show_in_blog}
<div class="hidden-lg-up">
<button id="anblog_left_toggler" class="btn btn-secondary">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="16px" height="4px">
<image x="0px" y="0px" width="16px" height="4px" xlink:href="data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAECAMAAACwak/eAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAS1BMVEUAAAAmIyQmIyQmIyQmIyQmJCUmIyQmJCQmIyQmJCQmIyQmJCQmIyQlIyQmJCUmIyQmJCUmJCQmJCUlIyQmIyQmJCQmJCUlIyT///8VIQx0AAAAFHRSTlMAX/PXIT7oPu+SwcGSktc+6NfzX4D2ZO4AAAABYktHRBibaYUeAAAAB3RJTUUH4wsSETMJQZd5WgAAAD9JREFUCNcVy8ERgCAMAMFLwIiIggrYf6fG784soiHCYrZCDCqk3jfIY+5QxpscZnHoM8Pxg+jppVqrXq77+QA/HgImmGTStAAAAABJRU5ErkJggg==" />
</svg>
{l s='Show sidebar' mod='anblog'}
</button>
</div>
{/if}
<section id="main">
{if isset($error)}
<div id="blogpage">
<div class="blog-detail">
<div class="alert alert-warning">{l s='Sorry, no posts has been posted in the blog yet, but it will be done soon' mod='anblog'}</div>
</div>
</div>
{else}
<div id="blogpage">
<article class="blog-detail">
{if $is_active}
<h1 class="blog-title">{$blog->meta_title|escape:'html':'UTF-8'}</h1>
<div class="blog-meta">
{if isset($blog->hits)&&$config->get('item_show_hit','1')}
<span class="blog-hit">
<i class="material-icons">visibility</i> <span>{$blog->hits|intval} {l s='Views' mod='anblog'}</span>
</span>
{/if}
{if $config->get('item_show_created','1')}
<span class="blog-created">
<i class="material-icons">&#xE192;</i> <span></span>
<time class="date" datetime="{strtotime($blog->date_add)|date_format:"%Y"|escape:'html':'UTF-8'}">
{assign var='blog_day' value=strtotime($blog->date_add)|date_format:"%e"}{l s=$blog_day mod='anblog'}/{assign var='blog_month' value=strtotime($blog->date_add)|date_format:"%m"}{l s=$blog_month mod='anblog'}/{assign var='blog_year' value=strtotime($blog->date_add)|date_format:"%Y"}{l s=$blog_year mod='anblog'} <!-- year -->
</time>
</span>
{/if}
{if isset($blog_count_comment)&&$config->get('item_show_counter','1')}
<span class="blog-ctncomment">
<i class="material-icons">comment</i> <span>{$blog_count_comment|intval} {l s='comments' mod='anblog'}</span>
</span>
{/if}
{if $config->get('item_show_author','1')}
<span class="blog-author">
<i class="material-icons">person</i> <span>{l s='Posted By' mod='anblog'}: </span>
<a href="{$blog->author_link|escape:'html':'UTF-8'}" title="{$blog->author|escape:'html':'UTF-8'}">{$blog->author|escape:'html':'UTF-8'}</a>
</span>
{/if}
{if $config->get('item_show_category','1')}
<span class="blog-cat">
<i class="material-icons">list</i> <span>{l s='In' mod='anblog'}: </span>
<a href="{$blog->category_link|escape:'html':'UTF-8'}" title="{$blog->category_title|escape:'html':'UTF-8'}">{$blog->category_title|escape:'html':'UTF-8'}</a>
</span>
{/if}
</div>
{if $blog->preview_url && $config->get('item_show_image','1')}
<div class="blog-image">
<img src="{$blog->preview_url|escape:'html':'UTF-8'}" title="{$blog->meta_title|escape:'html':'UTF-8'}" class="img-fluid" />
</div>
{/if}
{if $config->get('likes','1')}
<div class="anblog-like-wrapper">
<a
type="button"
data-contoller="{$anBlogLikes.addLink|escape:'html':'UTF-8'}"
class="btn btn-primary js-anblog-like anblog-like-button{if $anBlogLikes.isLike} active{/if}">
<svg class="anblog-like-icon"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="19px" height="17px">
<path fill-rule="evenodd" fill="rgb(185, 185, 185)"
d="M9.309,16.459 C9.195,16.459 9.083,16.429 8.983,16.374 C8.629,16.175 0.306,11.442 0.306,5.448 C0.307,2.683 2.548,0.442 5.311,0.443 C6.884,0.444 8.365,1.184 9.309,2.442 C10.970,0.232 14.106,-0.214 16.315,1.447 C17.572,2.393 18.312,3.875 18.312,5.448 C18.312,7.998 16.836,10.620 13.924,13.243 C12.603,14.428 11.166,15.477 9.635,16.374 C9.536,16.429 9.423,16.459 9.309,16.459 ZM8.983,15.209 L8.983,15.209 ZM5.308,1.778 C3.283,1.780 1.642,3.422 1.640,5.448 C1.640,10.056 7.807,14.100 9.309,15.016 C10.811,14.099 16.979,10.050 16.979,5.448 C16.978,3.421 15.335,1.777 13.309,1.778 C11.830,1.778 10.495,2.668 9.925,4.034 C9.783,4.374 9.392,4.535 9.052,4.393 C8.890,4.325 8.762,4.196 8.694,4.034 C8.125,2.666 6.789,1.776 5.308,1.778 Z"/>
</svg>
<svg class="anblog-like-icon-active"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="19px" height="17px">
<path fill-rule="evenodd" fill="rgb(239, 25, 25)"
d="M9.309,16.459 C9.195,16.459 9.083,16.429 8.983,16.374 C8.629,16.175 0.306,11.442 0.306,5.448 C0.307,2.683 2.548,0.442 5.311,0.443 C6.884,0.444 8.365,1.184 9.309,2.442 C10.970,0.232 14.106,-0.214 16.315,1.447 C17.572,2.393 18.312,3.875 18.312,5.448 C18.312,7.998 16.836,10.620 13.924,13.243 C12.603,14.428 11.166,15.477 9.635,16.374 C9.536,16.429 9.423,16.459 9.309,16.459 ZM8.983,15.209 L8.983,15.209 Z"/>
</svg>
<span class="anblog-like-text">{l s='Like' mod='anblog'}</span>
<span class="badge js-anblog-like-count">{$anBlogLikes.count|escape:'html':'UTF-8'}</span>
</a>
</div>
{/if}
<div class="blog-description">
{if $config->get('item_show_description',1)}
{$blog->description nofilter}{* HTML form , no escape necessary *}
{/if}
{$blog->content nofilter}{* HTML form , no escape necessary *}
</div>
{if trim($blog->video_code)}
<div class="blog-video-code">
<div class="inner ">
{$blog->video_code nofilter}{* HTML form , no escape necessary *}
</div>
</div>
{/if}
{if $blog->products}
<div class="products-grid col-xs-12 col-sm-12 col-md-12">
{foreach from=$blog->products item=product name=products}
<div class="product-item col-xs-12 col-sm-4 col-md-3">
<div class="product-thumbnail"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}"><img class="img-fluid" src="{if isset($product.cover.bySize.menu_default)}{$product.cover.bySize.menu_default.url|escape:'htmlall':'UTF-8'}{else} {$product.cover.bySize.home_default.url|escape:'htmlall':'UTF-8'}{/if}" alt="{$product.cover.legend|escape:'html':'UTF-8'}" /></a></div>
<div class="product-information-dropdown">
<h5 class="product-name"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|escape:'html':'UTF-8'}</a></h5>
{if $product.show_price}
<div class="product-price-and-shipping"><span class="price product-price">{$product.price|escape:'html':'UTF-8'}</span>
{if $product.has_discount}<span class="regular-price">{$product.regular_price|escape:'html':'UTF-8'}</span>{/if}</div>
{/if}
</div>
</div>
{/foreach}
</div>
{/if}
{if $tags}
<div class="blog-tags">
<span>{l s='Tags:' mod='anblog'}</span>
{foreach from=$tags item=tag name=tag}
<a href="{$tag.link|escape:'html':'UTF-8'}" title="{$tag.tag|escape:'html':'UTF-8'}"><span>{$tag.tag|escape:'html':'UTF-8'}</span></a>
{/foreach}
</div>
{/if}
<div class="social-share">
{include file="module:anblog/views/templates/front/_social.tpl" social_code=$config->get('social_code','')}
</div>
{if $config->get('item_show_listcomment','1') == 1}
<div class="blog-comment-block clearfix">
{if $config->get('item_comment_engine','local')=='facebook'}
{include file="module:anblog/views/templates/front/_facebook_comment.tpl"}
{elseif $config->get('item_comment_engine','local')=='diquis'}
{include file="module:anblog/views/templates/front/_diquis_comment.tpl"}
{elseif ($config->get('google_captcha_site_key') && $config->get('google_captcha_site_key')) || !$config->get('google_captcha_status')}
{include file="module:anblog/views/templates/front/_local_comment.tpl"}
{/if}
{elseif $config->get('item_show_listcomment','1') == 0 && $config->get('item_show_formcomment','1') == 1 && (($config->get('google_captcha_site_key') && $config->get('google_captcha_site_key')) || !$config->get('google_captcha_status') ) }
<div class="blog-comment-block clearfix">
{include file="module:anblog/views/templates/front/_local_comment.tpl"}
</div>
{/if}
{else}
<div class="alert alert-warning">{l s='Sorry, This blog is not avariable. May be this was unpublished or deleted.' mod='anblog'}</div>
{/if}
</article>
</div>
<div class="hidden-xl-down hidden-xl-up datetime-translate">
{l s='Sunday' mod='anblog'}
{l s='Monday' mod='anblog'}
{l s='Tuesday' mod='anblog'}
{l s='Wednesday' mod='anblog'}
{l s='Thursday' mod='anblog'}
{l s='Friday' mod='anblog'}
{l s='Saturday' mod='anblog'}
{l s='January' mod='anblog'}
{l s='February' mod='anblog'}
{l s='March' mod='anblog'}
{l s='April' mod='anblog'}
{l s='May' mod='anblog'}
{l s='June' mod='anblog'}
{l s='July' mod='anblog'}
{l s='August' mod='anblog'}
{l s='September' mod='anblog'}
{l s='October' mod='anblog'}
{l s='November' mod='anblog'}
{l s='December' mod='anblog'}
</div>
{/if}
</section>
</div>
{/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)
*}
<?xml version="1.0" encoding="UTF-8"?>
{if isset($anblogsitemap.sitemapLinks)}
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{foreach from=$anblogsitemap.sitemapLinks item=$linkMap}
<sitemap>
<loc><![CDATA[{$linkMap|escape:'htmlall':'UTF-8'}]]></loc>
</sitemap>
{/foreach}
</sitemapindex>
{/if}
{if isset($anblogsitemap.posts) && isset($anblogsitemap.categories)}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<link>{$anblogsitemap.linkSiteMap|escape:'htmlall':'UTF-8'}</link>
<priority>1.0</priority>
<changefreq>daily</changefreq>
</url>
{foreach from=$anblogsitemap.posts item=$post}
<url>
<loc><![CDATA[{$post.link|escape:'htmlall':'UTF-8'}]]></loc>
<priority>0.9</priority>
<lastmod>{$anblogsitemap.lastmod|escape:'htmlall':'UTF-8'}</lastmod>
<changefreq>daily</changefreq>
{if $post.preview_url !== ''}
<image:image>
<image:loc>
<![CDATA[{$post.preview_url|escape:'htmlall':'UTF-8'}]]>
</image:loc>
<image:caption>
<![CDATA[{$post.title|escape:'htmlall':'UTF-8'}]]>
</image:caption>
<image:title>
<![CDATA[{$post.title|escape:'htmlall':'UTF-8'}]]>
</image:title>
</image:image>
{/if}
</url>
{/foreach}
{foreach from=$anblogsitemap.categories item=$category}
<url>
<loc><![CDATA[{$category.category_link|escape:'htmlall':'UTF-8'}"]]></loc>
<priority>0.8</priority>
<lastmod>{$anblogsitemap.lastmod|escape:'htmlall':'UTF-8'}</lastmod>
<changefreq>daily</changefreq>
{if $category.thumb !== ''}
<image:image>
<image:loc>
<![CDATA[{$category.thumb|escape:'htmlall':'UTF-8'}"]]>
</image:loc>
<image:caption>
<![CDATA[{$category.title|escape:'htmlall':'UTF-8'}"]]>
</image:caption>
<image:title>
<![CDATA[{$category.title|escape:'htmlall':'UTF-8'}"]]>
</image:title>
</image:image>
{/if}
</url>
{/foreach}
</urlset>
{/if}

View File

@@ -0,0 +1,38 @@
{*
* 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
*}
<!-- Block categories module -->
{if $tree}
<div id="categories_blog_menu" class="block blog-menu block-categories">
<div class="blog-menu-title">
<h4 class="title_block text-uppercase h6">{if isset($currentCategory)}{$currentCategory->title|escape:'html':'UTF-8'}{else}{l s='Blog Categories' mod='anblog'}{/if}</h4>
</div>
<div class="block_content">
{$tree nofilter}{* HTML form , no escape necessary *}
</div>
</div>
{/if}
<!-- /Block categories module -->

View File

@@ -0,0 +1,35 @@
{*
* 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 isset($anblogtags) AND !empty($anblogtags)}
<section id="tags_blog_block_left" class="block an-blog-tags block-categories">
<h4 class='title_block'><a href="">{l s='Tags Post' mod='anblog'}</a></h4>
<div class="block_content clearfix">
{foreach from=$anblogtags item="tag"}
<a href="{$tag.link|escape:'htmlall':'UTF-8'}">{$tag.name|escape:'html':'UTF-8'}</a>
{/foreach}
</div>
</section>
{/if}

View File

@@ -0,0 +1,38 @@
{*
* 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 isset($an_left_category) AND !empty($an_left_category)}
{$an_left_category nofilter} {* HTML form , no escape necessary *}
{/if}
{if isset($an_left_tag) AND !empty($an_left_tag)}
{$an_left_tag nofilter} {* HTML form , no escape necessary *}
{/if}
{if isset($an_left_recent) AND !empty($an_left_recent)}
{$an_left_recent nofilter} {* HTML form , no escape necessary *}
{/if}
{if isset($url_rss) && $url_rss != ''}
<a href="{$url_rss|escape:'html':'UTF-8'}" class="btn btn-primary ">{$config->get('rss_title_item')|escape:'html':'UTF-8'}</a>
{/if}

View File

@@ -0,0 +1,48 @@
{*
* 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 isset($leading_blogs) AND !empty($leading_blogs)}
<section id="blogPopularBlog" class="block an-block-sidebar hidden-sm-down block-categories">
<h4 class='title_block'><a href="">{l s='Popular Articles' mod='anblog'}</a></h4>
<div class="block_content products-block">
<ul class="lists">
{foreach from=$leading_blogs item="blog" name=leading_blog}
<li class="list-item clearfix{if $smarty.foreach.leading_blog.last} last_item{elseif $smarty.foreach.leading_blog.first} first_item{else}{/if}">
<div class="blog-image">
<a class="products-block-image" title="{$blog.title|escape:'html':'UTF-8'}" href="{$blog.link|escape:'html':'UTF-8'}">
<img alt="{$blog.title|escape:'html':'UTF-8'}" src="{$blog.preview_url|escape:'html':'UTF-8'}" class="img-fluid">
</a>
</div>
<div class="blog-content">
<h3 class="post-name"><a title="{$blog.title|escape:'html':'UTF-8'}" href="{$blog.link|escape:'html':'UTF-8'}">{$blog.title|escape:'html':'UTF-8'}</a></h3>
<span class="info">{$blog.date_add|date_format:"%b %d, %Y"|escape:'htmlall':'UTF-8'}</span>
</div>
</li>
{/foreach}
</ul>
</div>
</section>
{/if}

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 isset($leading_blogs) AND !empty($leading_blogs)}
<section id="blogRecentBlog" class="block an-block-sidebar block-categories">
<h4 class='title_block'><a href="">{l s='Recent Articles' mod='anblog'}</a></h4>
<div class="block_content products-block">
<ul class="lists">
{foreach from=$leading_blogs item="blog" name=leading_blog}
<li class="list-item clearfix{if $smarty.foreach.leading_blog.last} last_item{elseif $smarty.foreach.leading_blog.first} first_item{else}{/if}">
<div class="blog-image">
<a class="products-block-image" title="{$blog.title|escape:'html':'UTF-8'}" href="{$blog.link|escape:'html':'UTF-8'}">
<img alt="{$blog.title|escape:'html':'UTF-8'}" src="{$blog.preview_url|escape:'html':'UTF-8'}" class="img-fluid">
</a>
</div>
<div class="blog-content">
<h5 class="post-name"><a title="{$blog.title|escape:'html':'UTF-8'}" href="{$blog.link|escape:'html':'UTF-8'}">{$blog.title|escape:'html':'UTF-8'}</a></h5>
<span class="info"> <i class="material-icons">&#xE192;</i> {$blog.date_add|date_format:"%d/%m/%Y"|escape:'htmlall':'UTF-8'}</span>
<div class="blog-shortinfo">
{$blog.description|strip_tags:'UTF-8'|truncate:70:'...' nofilter}{* HTML form , no escape necessary *}
</div>
</div>
</li>
{/foreach}
</ul>
</div>
</section>
{/if}

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
*}
{if isset($articles) AND !empty($articles)}
<div class="clearfix"></div>
<div class="secondary-blog">
<div class="row">
<div class="an_brandslider-title"><h3>Blog</h3></div>
</div>
{foreach from=$articles item=blog name=articlesListing}
{if ($blog@iteration%$columnCount==1)&&$columnCount>1}
<div class="row">
{/if}
<div class="{if $columnCount<=1}no{/if}col-lg-{floor(12/$columnCount|escape:'html':'UTF-8')}">
{include file="module:anblog/views/templates/front/default/_listing_blog.tpl"}
</div>
{if ($blog@iteration%$columnCount==0&&$smarty.foreach.secondary_blog.last)&&$columnCount>1}
</div>
{/if}
{/foreach}
</div>
<div class="clearfix"></div>
{/if}

View File

@@ -0,0 +1,56 @@
{*
* 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 isset($articles) AND !empty($articles)}
<div class="clearfix"></div>
<div class="secondary-blog">
<div class="row">
<div class="h3">
<a href="{$anblog_main_page|escape:'html':'UTF-8'}">
{if isset($titleWidget) && $titleWidget != ''}
{$titleWidget|escape:'html':'UTF-8'}
{else}
{l s='Blog' mod='anblog'}
{/if}
</a>
</div>
</div>
{$columnCount = 3}
{foreach from=$articles item=blog name=articlesListing}
{if ($smarty.foreach.articlesListing.iteration%$columnCount==1)&&$columnCount>1}
<div class="row">
{/if}
<div class="{if $columnCount<=1}no{/if}col-lg-{floor(12/$columnCount|escape:'html':'UTF-8')}">
{include file="module:anblog/views/templates/front/default/_listing_blog.tpl"}
</div>
{if ($smarty.foreach.articlesListing.iteration%$columnCount==0&&$smarty.foreach.articlesListing.last)&&$columnCount>1}
</div>
{/if}
{/foreach}
</div>
<div class="clearfix"></div>
{/if}

View File