Download project

This commit is contained in:
Roman Pyrih
2024-11-20 09:09:44 +01:00
parent 547a138d6a
commit 5ff041757f
40737 changed files with 7766183 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{$ets_blog_sidebar nofilter}
<div class="blog_center_content col-lg-12 ets_blogpost">
{$ets_blog_content nofilter}
</div>
{Module::getInstanceByName('ets_blog')->displayIframe() nofilter}

View File

@@ -0,0 +1,46 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<script type="text/javascript">
var ets_blog_link_ajax_comment='{$ets_blog_link_ajax_comment nofilter}';
$(document).ready(function(){
$.ajax({
url: ets_blog_link_ajax_comment,
data: 'action=getCountCommentsNoViewed',
type: 'post',
dataType: 'json',
success: function(json){
if(parseInt(json.count) >0)
{
if($('#subtab-AdminEtsBlogComment span').length)
$('#subtab-AdminEtsBlogComment span').append('<span class="count_messages ">'+json.count+'</span>');
else
$('#subtab-AdminEtsBlogComment a').append('<span class="count_messages ">'+json.count+'</span>');
}
else
{
if($('#subtab-AdminEtsBlogComment span').length)
$('#subtab-AdminEtsBlogComment span').append('<span class="count_messages hide">'+json.count+'</span>');
else
$('#subtab-AdminEtsBlogComment a').append('<span class="count_messages hide">'+json.count+'</span>');
}
},
});
});
</script>

View File

@@ -0,0 +1,42 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if $years}
<div class="block ets_block_archive {$ETS_BLOG_RTL_CLASS|escape:'html':'UTF-8'}">
<h4 class="title_blog title_block">
{l s='Archived posts' mod='ets_blog'}
</h4>
<div class="content_block block_content">
<ul class="list-year row">
{foreach from=$years item='year'}
<li class="year-item">
<a href="{$year.link|escape:'html':'UTF-8'}">{l s='Posted in' mod='ets_blog'}&nbsp;{$year.year_add|escape:'html':'UTF-8'} ({$year.total_post|intval})</a>
{*<span class="ets_axpand_button close closed"></span>*}
{if $year.months}
<ul class="list-months">{*hidden*}
{foreach from=$year.months item='month'}
<li class="month-item"><a href="{$month.link|escape:'html':'UTF-8'}">{$month.month_add|escape:'html':'UTF-8'} ({$month.total_post|intval})</a></li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
</ul>
</div>
</div>
{/if}

View File

@@ -0,0 +1,211 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<div class="ets_blog_layout_{$blog_layout|escape:'html':'UTF-8'} ets-blog-wrapper ets-blog-wrapper-blog-list{if isset($ets_blog_config.ETS_BLOG_AUTO_LOAD) &&$ets_blog_config.ETS_BLOG_AUTO_LOAD} loadmore{/if} {if $blog_latest}ets-page-latest{elseif $blog_category}ets-page-category{elseif $blog_search}ets-page-search{elseif $author}ets-page-author{else}ets-page-home{/if}">
{if $blog_category}
{if isset($blog_category.enabled) && $blog_category.enabled}
<div class="blog-category {if $blog_category.image}has-blog-image{/if}">
{if $blog_category.image}
<div class="ets_item_img">
<img src="{$link->getMediaLink("`$smarty.const._PS_ETS_BLOG_IMG_`category/`$blog_category.image|escape:'htmlall':'UTF-8'`")}" alt="{$blog_category.title|escape:'html':'UTF-8'}" title="{$blog_category.title|escape:'html':'UTF-8'}" width="1920px" height="750px" />
</div>
{/if}
<h1 class="page-heading product-listing">{$blog_category.title|escape:'html':'UTF-8'}</h1>
{if $blog_category.description}
<div class="blog-category-desc">
{$blog_category.description|escape nofilter}
</div>
{/if}
</div>
{else}
<p class="alert alert-warning">{l s='This category is not available' mod='ets_blog'}</p>
{/if}
{elseif $blog_latest}
<h1 class="page-heading product-listing">{l s='Latest posts' mod='ets_blog'}</h1>
{elseif $blog_search}
<h1 class="page-heading product-listing">{l s='Search: ' mod='ets_blog'}"{ucfirst(str_replace('+',' ',$blog_search))|escape:'html':'UTF-8'}"</h1>
{elseif $author}
{if isset($author.disabled) && $author.disabled}
<p class="alert alert-warning">{l s='This author is not available' mod='ets_blog'}</p>
{else}
{if isset($ets_blog_config.ETS_BLOG_AUTHOR_INFORMATION)&& $ets_blog_config.ETS_BLOG_AUTHOR_INFORMATION}
{if isset($author.description)&&$author.description}
<div class="ets-block-author ets-block-author-avata">
{if $author.avata}
<div class="avata_img">
<img class="avata" src="{$link->getMediaLink("`$smarty.const._PS_ETS_BLOG_IMG_`avata/`$author.avata|escape:'html':'UTF-8'`")}"/>
</div>
{/if}
<div class="ets-des-and-author">
<div class="ets-author-name">
<h1 class="page-heading product-listing">
<a href="{$author.author_link|escape:'html':'UTF-8'}">
{l s='Author' mod='ets_blog'}: {$author.name|escape:'html':'UTF-8'}
</a>
</h1>
</div>
{if isset($author.description)&&$author.description}
<div class="ets-author-description">
{$author.description nofilter}
</div>
{/if}
</div>
</div>
{else}
<div class="ets-author-name">
<h1 class="page-heading product-listing">
{l s='Author' mod='ets_blog'}: {$author.name|escape:'html':'UTF-8'}
</h1>
</div>
{/if}
{else}
<h1 class="page-heading product-listing">{l s='Author: ' mod='ets_blog'}"{$author.name|escape:'html':'UTF-8'}"</h1>
{/if}
{/if}
{elseif $month}
<h1 class="page-heading product-listing">{l s='Posted in: ' mod='ets_blog'}"{$month|escape:'html':'UTF-8'}"</h1>
{elseif $year}
<h1 class="page-heading product-listing">{l s='Posted in: ' mod='ets_blog'}"{$year|escape:'html':'UTF-8'}"</h1>
{/if}
{if !($blog_category && (!isset($blog_category.enabled) || isset($blog_category.enabled) && !$blog_category.enabled)) && ($blog_category || $blog_search || $author || $is_main_page || $blog_latest || $month || $year) && (!$author || ($author && !isset($author.disabled)))}
{if isset($blog_posts) && $blog_posts}
<ul class="ets-blog-list row {if $is_main_page}blog-main-page{/if}">
{assign var='first_post' value=true}
{foreach from=$blog_posts item='post'}
<li>
<div class="post-wrapper">
{if $is_main_page && $first_post && ($blog_layout == 'large_list' || $blog_layout == 'large_grid')}
{if $post.image}
<a class="ets_item_img{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD} ets_item_img_ladyload{/if}" href="{$post.link|escape:'html':'UTF-8'}">
<img title="{$post.title|escape:'html':'UTF-8'}" src="{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD) && $ets_blog_config.ETS_BLOG_LAZY_LOAD}{$link->getMediaLink("`$smarty.const._MODULE_DIR_`ets_blog/views/img/bg-grey.png")|escape:'html':'UTF-8'}{else}{$post.image|escape:'html':'UTF-8'}{/if}" alt="{$post.title|escape:'html':'UTF-8'}" {if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD} data-original="{$post.image|escape:'html':'UTF-8'}" class="lazyload"{/if} />
{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD}
<svg width="{Configuration::get('ETS_BLOG_IMAGE_BLOG_WIDTH'|escape:'html':'UTF-8')}" height="{Configuration::get('ETS_BLOG_IMAGE_BLOG_HEIGHT'|escape:'html':'UTF-8')}" style="width: 100%;height: auto">
</svg>
{/if}
</a>
{elseif $post.thumb}
<a class="ets_item_img{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD} ets_item_img_ladyload{/if}" href="{$post.link|escape:'html':'UTF-8'}">
<img title="{$post.title|escape:'html':'UTF-8'}" src="{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD) && $ets_blog_config.ETS_BLOG_LAZY_LOAD}{$link->getMediaLink("`$smarty.const._MODULE_DIR_`ets_blog/views/img/bg-grey.png")|escape:'html':'UTF-8'}{else}{$post.thumb|escape:'html':'UTF-8'}{/if}" alt="{$post.title|escape:'html':'UTF-8'}" {if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD} data-original="{$post.thumb|escape:'html':'UTF-8'}" class="lazyload"{/if} />
{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD}
<svg width="{Configuration::get('ETS_BLOG_IMAGE_BLOG_THUMB_WIDTH'|escape:'html':'UTF-8')}" height="{Configuration::get('ETS_BLOG_IMAGE_BLOG_THUMB_HEIGHT'|escape:'html':'UTF-8')}" style="width: 100%;height: auto">
</svg>
{/if}
</a>
{/if}
{assign var='first_post' value=false}
{elseif $post.thumb}
<a class="ets_item_img{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD} ets_item_img_ladyload{/if}" href="{$post.link|escape:'html':'UTF-8'}">
<img title="{$post.title|escape:'html':'UTF-8'}" src="{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD) && $ets_blog_config.ETS_BLOG_LAZY_LOAD}{$link->getMediaLink("`$smarty.const._MODULE_DIR_`ets_blog/views/img/bg-grey.png")|escape:'html':'UTF-8'}{else}{$post.thumb|escape:'html':'UTF-8'}{/if}" alt="{$post.title|escape:'html':'UTF-8'}" {if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD} data-original="{$post.thumb|escape:'html':'UTF-8'}" class="lazyload"{/if} />
{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD}
<svg width="{Configuration::get('ETS_BLOG_IMAGE_BLOG_THUMB_WIDTH'|escape:'html':'UTF-8')}" height="{Configuration::get('ETS_BLOG_IMAGE_BLOG_THUMB_HEIGHT'|escape:'html':'UTF-8')}" style="width: 100%;height: auto">
</svg>
{/if}
</a>
{/if}
<div class="ets-blog-wrapper-content">
<div class="ets-blog-wrapper-content-main">
<a class="ets_title_block" href="{$post.link|escape:'html':'UTF-8'}">{$post.title|escape:'html':'UTF-8'}</a>
{if $show_categories && $post.categories}
<div class="ets-blog-sidear-post-meta">
{if !$date_format}{assign var='date_format' value='F jS Y'}{/if}
{if $show_categories && $post.categories}
<div class="ets-blog-categories">
{assign var='ik' value=0}
{assign var='totalCat' value=count($post.categories)}
<span class="be-label">{l s='Posted in' mod='ets_blog'}: </span>
{foreach from=$post.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}, {/if}
{/foreach}
</div>
{/if}
</div>
{/if}
<div class="ets-blog-latest-toolbar">
{if $allow_rating && $post.total_review}
<div class="blog_rating_wrapper">
<span class="total_views" >{$post.total_review|intval}</span>
<span>
{if $post.total_review != 1}
{l s='Comments' mod='ets_blog'}
{else}
{l s='Comment' mod='ets_blog'}
{/if}
</span>
{if $allow_rating && isset($post.everage_rating) && $post.everage_rating}
{assign var='everage_rating' value=$post.everage_rating}
<div class="blog-extra-item be-rating-block item">
<div class="blog_rating_wrapper">
<div class="ets_blog_review" title="{l s='Average rating' mod='ets_blog'}">
{for $i = 1 to $everage_rating}
{if $i <= $everage_rating}
<div class="star star_on"></div>
{else}
<div class="star star_on_{($i-$everage_rating)*10|intval}"></div>
{/if}
{/for}
{if $everage_rating<5}
{for $i = $everage_rating + 1 to 5}
<div class="star"></div>
{/for}
{/if}
(<span class="ets-blog-rating-value" >{number_format((float)$everage_rating, 1, '.', '')|escape:'html':'UTF-8'}</span>)
</div>
</div>
</div>
{/if}
</div>
{/if}
</div>
<div class="blog_description">
{if $post.short_description}
<p>{$post.short_description|strip_tags:'UTF-8'|truncate:500:'...'|escape:'html':'UTF-8'}</p>
{elseif $post.description}
<p>{$post.description|strip_tags:'UTF-8'|truncate:500:'...'|escape:'html':'UTF-8'}</p>
{/if}
</div>
<a class="read_more" href="{$post.link|escape:'html':'UTF-8'}">{if $ets_blog_config.ETS_BLOG_TEXT_READMORE}{$ets_blog_config.ETS_BLOG_TEXT_READMORE|escape:'html':'UTF-8'}{else}{l s='Read More' mod='ets_blog'}{/if}</a>
</div>
</div>
</div>
</li>
{/foreach}
</ul>
{if $blog_paggination}
<div class="blog-paggination">
{$blog_paggination nofilter}
</div>
{/if}
{if isset($ets_blog_config.ETS_BLOG_AUTO_LOAD) &&$ets_blog_config.ETS_BLOG_AUTO_LOAD}
<div class="ets_blog_loading">
<span id="squaresWaveG">
<span id="squaresWaveG_1" class="squaresWaveG"></span>
<span id="squaresWaveG_2" class="squaresWaveG"></span>
<span id="squaresWaveG_3" class="squaresWaveG"></span>
<span id="squaresWaveG_4" class="squaresWaveG"></span>
<span id="squaresWaveG_5" class="squaresWaveG"></span>
</span>
</div>
<div class="clearfix"></div>
{/if}
{else}
<p>{l s='No posts found' mod='ets_blog'}</p>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,19 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<option class="search_depth_level_{$depth_level|intval}" value="{$id_category|intval}"{if $selected_blog_category==$id_category} selected="selected"{/if} >{if $levelSeparator}{$levelSeparator|escape:'html':'UTF-8'} {/if}{$title|escape:'html':'UTF-8'}</option>

View File

@@ -0,0 +1,41 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if $blockCategTree}
{if isset($link_view_all)}
<div class="block ets_block_categories {$ETS_BLOG_RTL_CLASS|escape:'html':'UTF-8'}">
<h4 class="title_blog title_block">{l s='Blog categories' mod='ets_blog'}</h4>
<div class="content_block block_content">
{/if}
<ul class="tree">
{foreach from=$blockCategTree[0].children item=child name=blockCategTree}
{if $smarty.foreach.blockCategTree.last}
{include file="$branche_tpl_path" node=$child last='true'}
{else}
{include file="$branche_tpl_path" node=$child}
{/if}
{/foreach}
</ul>
{if isset($link_view_all)}
<div class="blog_view_all_button">
<a class="blog_view_all" href="{$link_view_all|escape:'html':'UTF-8'}">{l s='View all categories' mod='ets_blog'}</a>
</div>
</div>
</div>
{/if}
{/if}

View File

@@ -0,0 +1,30 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if $blockCategTree}
<ul class="tree-category">
<li class="form-control-label text-right main-category" style="list-style: none;">{l s='Main category' mod='ets_blog'}</li>
{foreach from=$blockCategTree[0].children item=child name=blockCategTree}
{if $smarty.foreach.blockCategTree.last}
{include file="$branche_tpl_path_input" node=$child last='true'}
{else}
{include file="$branche_tpl_path_input" node=$child}
{/if}
{/foreach}
</ul>
{/if}

View File

@@ -0,0 +1,25 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if $categories && count($categories) > 1}
{foreach from=$categories item='category'}
{$category.title|escape:'html':'UTF-8'}<br />
{/foreach}
{elseif isset($categories.0.title)}
{$categories.0.title|escape:'html':'UTF-8'}
{/if}

View File

@@ -0,0 +1,36 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<li style="list-style: none; position: relative;">
<input style="margin: 2px 7px 0 0; float: left;" type="checkbox" {if in_array($node.id_category,$disabled_categories)}disabled="disabled"{else}{if in_array($node.id_category, $selected_categories)} checked="checked"{/if}{/if} value="{$node.id_category|escape:'html':'UTF-8'}" name="{$name|escape:'html':'UTF-8'}[]" id="ybc_input_blog_category_{$node.id_category|escape:'html':'UTF-8'}" /><label for="ybc_input_blog_category_{$node.id_category|intval}">{if isset($node.thumb_link)}{$node.thumb_link nofilter}&nbsp;{/if}{$node.title|escape:'html':'UTF-8'}</label>
{if $node.children|@count > 0}
<span class="category-blog-parent">click</span>
<ul class="children">
{foreach from=$node.children item=child name=categoryTreeBranch}
{if $smarty.foreach.categoryTreeBranch.last}
{include file="$branche_tpl_path_input" node=$child last='true'}
{else}
{include file="$branche_tpl_path_input" node=$child last='false'}
{/if}
{/foreach}
</ul>
{/if}
<input type="radio" name="id_category_default" class="category_default" value="{$node.id_category|intval}"{if $node.id_category==$id_category_default} checked="checked"{/if} />
</li>

View File

@@ -0,0 +1,33 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<li class="category_{$node.id_category|intval}{if isset($last) && $last == 'true'} last{/if} {if $node.id_category==$active}active{/if}">
<a href="{$node.link|escape:'html':'UTF-8'}">{$node.title|escape:'html':'UTF-8'}&nbsp;({$node.count_posts|intval})</a>
{if $node.children|@count > 0}
<span class="ets-category-blog-parent">click</span>
<ul class="children">
{foreach from=$node.children item=child name=categoryTreeBranch}
{if $smarty.foreach.categoryTreeBranch.last}
{include file="$branche_tpl_path" node=$child last='true'}
{else}
{include file="$branche_tpl_path" node=$child last='false'}
{/if}
{/foreach}
</ul>
{/if}
</li>

View File

@@ -0,0 +1,19 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{l s='This comment was posted by' mod='ets_blog'} <a href="{$customerLink|escape:'html':'UTF-8'}">{$comment->name|escape:'html':'UTF-8'}</a> {l s='on' mod='ets_blog'} <a href="{$postLink|escape:'html':'UTF-8'}" target="_blank">{$post_title|escape:'html':'UTF-8'}</a> {l s='on' mod='ets_blog'} {dateFormat date=$comment->date_add|escape:'html':'UTF-8'}

View File

@@ -0,0 +1,27 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<div class="bootstrap">
<div class="module_confirmation conf confirm alert alert-success">
<button type="button" class="close" data-dismiss="alert">&times;</button>
{$ets_blog_string|escape:'html':'UTF-8'}
{if isset($link_view) && $link_view}
<a href="{$link_view|escape:'html':'UTF-8'}" target="_blank">{$view_text|escape:'html':'UTF-8'}</a>
{/if}
</div>
</div>

View File

@@ -0,0 +1,144 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if isset($import_ok) && $import_ok}
<div class="ets_blog_alert success">
<div class="bootstrap">
<div class="module_confirmation conf confirm alert alert-success">
<button data-dismiss="alert" class="close" type="button">×</button>
{l s='Import successfully' mod='ets_blog'}
</div>
</div>
</div>
{/if}
<form id="module_form" class="defaultForm form-horizontal" novalidate="" enctype="multipart/form-data" method="post" action="{$link->getAdminLink('AdminEtsBlogBackup')|escape:'html':'UTF-8'}">
<div id="fieldset_0" class="panel">
<div class="panel-heading">
<i class="material-icons"></i>
{l s='Import/Export' mod='ets_blog'}
</div>
<div class="ets_blog_export_form_content form-group">
<div class="ets_blog_export_option col-lg-6">
<div class="panel-heading">
{l s='EXPORT' mod='ets_blog'}
</div>
<button type="submit" name="submitExportBlog" class="submitExportBlog">
<i class="icon icon-download"></i>{l s='EXPORT' mod='ets_blog'}
</button>
<p class="ets_blog_export_option_note">
{l s='Export entire your blog data including blog posts, blog categories, comments and module configuration. The exported data is a complete backup of your blog module and can be restored using "IMPORT FROM BLOG" feature' mod='ets_blog'}
</p>
</div>
<div class="ets_blog_import_blog_option col-lg-6">
<div class="panel-heading">
{l s='Import' mod='ets_blog'}
</div>
<div class="ets_blog_import_option_updata">
<label for="blogdata">{l s='Data package' mod='ets_blog'}</label>
<input id="blogdata" type="file" name="blogdata" />
</div>
<div class="ets_blog_import_option_data_imoport">
<h4>{l s='Select types of data to import:' mod='ets_blog'}</h4>
<div class="data-group post-category">
<label for="data_import_posts_categories"><input type="checkbox" id="data_import_posts_categories" name="data_import[]" value="posts_categories" {if !isset($data_import) || (isset($data_import) && is_array($data_import) && in_array('posts_categories',$data_import))}checked="checked"{/if} /> {l s='Posts and categories' mod='ets_blog'}</label>
</div>
<div class="data-group comments">
<label for="data_import_posts_comments"><input type="checkbox" id="data_import_posts_comments" name="data_import[]" value="posts_comments" {if !isset($data_import) || (isset($data_import) && is_array($data_import) && in_array('posts_comments',$data_import))}checked="checked"{/if}/> {l s='Posts comments' mod='ets_blog'}</label>
</div>
<div class="data-group config">
<label for="data_import_module_configuration"><input type="checkbox" id="data_import_module_configuration" name="data_import[]" value="module_configuration" {if !isset($data_import) || (isset($data_import) && is_array($data_import) && in_array('module_configuration',$data_import))}checked="checked"{/if}/> {l s='Module configuration' mod='ets_blog'}</label>
</div>
</div>
<div class="ets_blog_import_options">
<h4>{l s='Import options:' mod='ets_blog'}</h4>
<div class="option_group importoverride">
<label for="importoverride"><input type="checkbox" name="importoverride" id="importoverride" value="1" {if !isset($importoverride) ||(isset($importoverride) && $importoverride)}checked="checked"{/if} /> {l s='Override existing if exist the same ID' mod='ets_blog'}</label>
</div>
<div class="option_group keepauthorid">
<label for="keepauthorid"><input type="checkbox" name="keepauthorid" id="keepauthorid" value="1" {if !isset($keepauthorid) ||(isset($keepauthorid) && $keepauthorid)}checked="checked"{/if}/> {l s='Keep post author ID' mod='ets_blog'}</label>
</div>
<div class="option_group keepcommenter">
<label for="keepcommenter"><input type="checkbox" name="keepcommenter" id="keepcommenter" value="1" {if !isset($keepcommenter) ||(isset($keepcommenter) && $keepcommenter)}checked="checked"{/if} /> {l s='Keep commenter ID' mod='ets_blog'}</label>
</div>
</div>
<div class="ets_blog_import_option_button">
<div class="ets_blog_import_submit">
<button type="submit" name="submitImportBlog" class="submitImportBlog"><i class="icon icon-compress"></i>{l s='IMPORT' mod='ets_blog'}</button>
</div>
</div>
</div>
</div>
</div>
</form>
{if isset($errors) && $errors}
<div class="ets_blog_alert error" style="width: 100%;">
<div class="bootstrap">
<div class="module_error alert alert-danger">
<button data-dismiss="alert" class="close" type="button">×</button>
<ul>
{foreach from=$errors item='error'}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
</div>
</div>
</div>
{/if}
<script type="text/javascript">
$(document).ready(function(){
$('#data_import_posts_comments,#data_import_posts_categories').change(function(){
if($('#data_import_posts_categories').is(':checked'))
{
$('.data-group.comments').show();
$('.option_group.keepauthorid').show();
if($('#data_import_posts_comments').is(':checked'))
{
$('.option_group.keepcommenter').show();
}
else
$('.option_group.keepcommenter').hide();
}
else
{
$('.data-group.comments').hide();
$('.option_group.keepauthorid').hide();
$('.option_group.keepcommenter').hide();
$('#data_import_posts_comments').prop('checked',false);
}
});
if($('#data_import_posts_categories').is(':checked'))
{
$('.data-group.comments').show();
$('.option_group.keepauthorid').show();
if($('#data_import_posts_comments').is(':checked'))
{
$('.option_group.keepcommenter').show();
}
else
$('.option_group.keepcommenter').hide();
}
else
{
$('.data-group.comments').hide();
$('.option_group.keepauthorid').hide();
$('.option_group.keepcommenter').hide();
$('#data_import_posts_comments').prop('checked',false);
}
});
</script>

View File

@@ -0,0 +1,57 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<form id="form_comment" class="defaultForm form-horizontal" novalidate="" enctype="multipart/form-data" method="post" action="">
<div class="panel ets-blog-panel">
<div class="panel-heading">
{l s='Edit customer comment' mod='ets_blog'}
</div>
<section class="form-fields">
<div class="form-group row ">
<label class="col-md-3 form-control-label" for="subject">{l s='Subject' mod='ets_blog'}<span class="required">*</span></label>
<div class="col-md-9">
<input id="subject" class="form-control" type="text" value="{if isset($smarty.post.subject)}{$smarty.post.subject|escape:'html':'UTF-8'}{else}{if $ets_comment->id}{$ets_comment->subject|escape:'html':'UTF-8'}{/if}{/if}" name="subject" title="{if $ets_comment->id}{$ets_comment->subject|escape:'html':'UTF-8'}{/if}" />
</div>
</div>
<div class="form-group row">
<label class="col-md-3 form-control-label" for="rating">{l s='Rating' mod='ets_blog'}</label>
<div class="col-md-9">
<select id="rating" class="form-control fixed-width-xl" name="rating">
<option value="1" {if $ets_comment->rating==1}selected="selected"{/if}>{l s='1 rating' mod='ets_blog'}</option>
<option value="2" {if $ets_comment->rating==2}selected="selected"{/if}>{l s='2 ratings' mod='ets_blog'}</option>
<option value="3" {if $ets_comment->rating==3}selected="selected"{/if}>{l s='3 ratings' mod='ets_blog'}</option>
<option value="4" {if $ets_comment->rating==4}selected="selected"{/if}>{l s='4 ratings' mod='ets_blog'}</option>
<option value="5" {if $ets_comment->rating==5}selected="selected"{/if}>{l s='5 ratings' mod='ets_blog'}</option>
</select>
</div>
</div>
<div class="form-group row ">
<label class="col-md-3 form-control-label" for="comment">{l s='Comment' mod='ets_blog'}<span class="required">*</span></label>
<div class="col-md-9">
<textarea rows="5" class="form-control" name="comment" id="comment">{if isset($smarty.post.comment)}{$smarty.post.comment|escape:'html':'UTF-8'}{else}{if $ets_comment->id}{$ets_comment->comment nofilter}{/if}{/if}</textarea>
</div>
</div>
<input name="id_comment" value="{if $ets_comment->id}{$ets_comment->id|intval}{/if}" type="hidden" />
</section>
</div>
<a class="btn btn-primary float-xs-left" href="{$link_back_list|escape:'html':'UTF-8'}">
{l s='Back to list' mod='ets_blog'}
</a>
<button class="btn btn-primary float-xs-right" name="submitComment" type="submit">{l s='Save' mod='ets_blog'}</button>
<button class="btn btn-primary float-xs-right" name="submitCommentStay" type="submit">{l s='Save and stay' mod='ets_blog'}</button>
</form>

View File

@@ -0,0 +1,27 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if isset($ets_blog_post_header)}
<meta property="og:app_id" content="id_app" />
<meta property="og:type" content="article" />
<meta property="og:title" content="{$ets_blog_post_header.title|escape:'html':'UTF-8'}" />
<meta property="og:image" content="{if $ets_blog_post_header.image}{$ets_blog_post_header.image|escape:'html':'UTF-8'}{else}{$ets_blog_post_header.thumb|escape:'html':'UTF-8'}{/if}" />
<meta property="og:description" content="{$ets_blog_post_header.short_description|strip_tags|escape:'html':'UTF-8'}" />
<meta property="og:url" content="{$ets_blog_post_header.link|escape:'quotes':'UTF-8'}" />
<meta name="twitter:card" content="summary_large_image" />
{/if}

View File

@@ -0,0 +1,38 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if $tag}
<{$tag|escape:'html':'UTF-8'}
{if $tag_class} class="{$tag_class|escape:'html':'UTF-8'}"{/if}
{if $tag_id} id="{$tag_id|escape:'html':'UTF-8'}"{/if}
{if $rel} rel="{$rel|escape:'html':'UTF-8'}"{/if}
{if $type} type="{$type|escape:'html':'UTF-8'}"{/if}
{if $data_id_product} data-id_product="{$data_id_product|escape:'html':'UTF-8'}"{/if}
{if $value} value="{$value|escape:'html':'UTF-8'}"{/if}
{if $href} href="{$href nofilter}"{/if}{if $tag=='a' && $blank} target="_blank"{/if}
{if $tag=='img' && $src} src="{$src nofilter}"{/if}
{if $attr_name} name="{$attr_name|escape:'html':'UTF-8'}"{/if}
{if $attr_datas}
{foreach from=$attr_datas item='data'}
{$data.name|escape:'html':'UTF-8'}="{$data.value|escape:'html':'UTF-8'}"
{/foreach}
{/if}
{if $tag=='img' || $tag=='br' || $tag=='input'} /{/if}
>
{/if}{if $tag && $tag!='img' && $tag!='input' && $tag!='br' && !is_null($content)}{$content nofilter}{/if}{if $tag && $tag!='img' && $tag!='input' && $tag!='br'}</{$tag|escape:'html':'UTF-8'}>{/if}

View File

@@ -0,0 +1,31 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<script type="text/javascript">
function phProductFeedResizeIframe(obj) {
$('iframe').css('height','auto');
setTimeout(function() {
$('iframe').css('opacity',1);
var pHeight = $(obj).parent().height();
$(obj).css('height','540px');
}, 300);
}
</script>
<div id="ph_preview_template_html">
<iframe src="{$url_iframe|escape:'html':'UTF-8'}" style="background: #ffffff ; border : 1px solid #ccc;width:100%;height:0;opacity:0;border-radius:5px" onload="phProductFeedResizeIframe(this)"></iframe>
</div>

View File

@@ -0,0 +1,29 @@
<?php
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,94 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if $posts}
<div class="block ets_block_latest {$ETS_BLOG_RTL_CLASS|escape:'html':'UTF-8'} {if isset($page) && $page}page_{$page|escape:'html':'UTF-8'}{else}page_blog{/if} ets_block_slider">
<h4 class="title_blog title_block">{l s='Latest posts' mod='ets_blog'}</h4>
{assign var='product_row' value=4}
<div class="block_content row">
<ul class="owl-rtl {if count($posts)>1}owl-carousel{/if}">
{foreach from=$posts item='post'}
<li {if $page=='home'}class="col-xs-12 col-sm-4 col-lg-{12/$product_row|intval}"{/if}>
{if $post.thumb}
<a class="ets_item_img" href="{$post.link|escape:'html':'UTF-8'}">
<img src="{$post.thumb|escape:'html':'UTF-8'}" alt="{$post.title|escape:'html':'UTF-8'}" title="{$post.title|escape:'html':'UTF-8'}" />
</a>
{/if}
<div class="ets-blog-latest-post-content">
<a class="ets_title_block" href="{$post.link|escape:'html':'UTF-8'}">{$post.title|escape:'html':'UTF-8'}</a>
<div class="ets-blog-sidear-post-meta">
{if isset($post.categories) && $post.categories}
<div class="ets-blog-categories">
{assign var='ik' value=0}
{assign var='totalCat' value=count($post.categories)}
<div class="be-categories">
<span class="be-label">{l s='Posted in' mod='ets_blog'}: </span>
{foreach from=$post.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}<span class="comma">, </span>{/if}
{/foreach}
</div>
</div>
{/if}
<span class="post-date">{dateFormat date=$post.date_add full=0}</span>
</div>
{if $allowComments || $show_views || $allow_like}
<div class="ets-blog-latest-toolbar">
{if $show_views}
<span class="ets-blog-latest-toolbar-views">{$post.click_number|intval} {if $post.click_number!=1}<span>{l s='views' mod='ets_blog'}</span>{else}<span>{l s='view' mod='ets_blog'}</span>{/if}</span>
{/if}
{if $allowComments && $post.comments_num>0}
<span class="ets-blog-latest-toolbar-comments">{$post.comments_num|intval} {if $post.comments_num!=1}<span>
{l s='comments' mod='ets_blog'}</span>{else}<span>{l s='comment' mod='ets_blog'}</span>{/if}</span>
{/if}
{if $allow_like}
<span title="{if $post.liked}{l s='Liked' mod='ets_blog'}{else}{l s='Like this post' mod='ets_blog'}{/if}" class="ets-blog-like-span ets-blog-like-span-{$post.id_post|intval} {if $post.liked}active{/if}" data-id-post="{$post.id_post|intval}">
<span class="ben_{$post.id_post|intval}">{$post.likes|intval}</span>
<span class="blog-post-like-text blog-post-like-text-{$post.id_post|intval}">{l s='Liked' mod='ets_blog'}</span>
</span>
{/if}
</div>
{/if}
{if $post.short_description}
<div class="blog_description">
<p>
{$post.short_description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}
</p>
</div>
{elseif $post.description}
<div class="blog_description">
<p>
{$post.description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}
</p>
</div>
{/if}
<a class="read_more" href="{$post.link|escape:'html':'UTF-8'}">{if $ets_blog_text_Readmore}{$ets_blog_text_Readmore|escape:'html':'UTF-8'}{else}{l s='Read More' mod='ets_blog'}{/if}</a>
</div>
</li>
{/foreach}
</ul>
{if $page!='home'}
<div class="blog_view_all_button">
<a href="{$latest_link|escape:'html':'UTF-8'}" class="view_all_link">{l s='View all latest posts' mod='ets_blog'}</a>
</div>
{/if}
</div>
<div class="clear"></div>
</div>
{/if}

View File

@@ -0,0 +1,103 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<div class="ets_blog_layout_{$blog_layout|escape:'html':'UTF-8'} ets-blog-wrapper ets-blog-wrapper-blog-list{if isset($blog_config.ETS_BLOG_AUTO_LOAD) &&$blog_config.ETS_BLOG_AUTO_LOAD} loadmore{/if}">
{if $blog_categories}
<h2 class="page-heading product-listing">{l s='All categories' mod='ets_blog'}</h2>
<ul class="ets-blog-list row">
{assign var='first_post' value=true}
{foreach from=$blog_categories item='category'}
<li class="list_category_item">
<div class="post-wrapper">
{if $first_post && ($blog_layout == 'large_list' || $blog_layout == 'large_grid')}
{if $category.thumb}
<a class="ets_item_img" href="{$category.link|escape:'html':'UTF-8'}">
<img title="{$category.title|escape:'html':'UTF-8'}" src="{$category.thumb|escape:'html':'UTF-8'}" alt="{$category.title|escape:'html':'UTF-8'}" />
</a>
{elseif $category.image}
<a class="ets_item_img" href="{$category.link|escape:'html':'UTF-8'}">
<img title="{$category.title|escape:'html':'UTF-8'}" src="{$category.image|escape:'html':'UTF-8'}" alt="{$category.title|escape:'html':'UTF-8'}" />
</a>
{/if}
{assign var='first_post' value=false}
{else}
{if $category.thumb}
<a class="ets_item_img" href="{$category.link|escape:'html':'UTF-8'}">
<img title="{$category.title|escape:'html':'UTF-8'}" src="{$category.thumb|escape:'html':'UTF-8'}" alt="{$category.title|escape:'html':'UTF-8'}" />
</a>
{elseif $category.image}
<a class="ets_item_img" href="{$category.link|escape:'html':'UTF-8'}">
<img title="{$category.title|escape:'html':'UTF-8'}" src="{$category.image|escape:'html':'UTF-8'}" alt="{$category.title|escape:'html':'UTF-8'}" />
</a>
{/if}
{/if}
<div class="ets-blog-wrapper-content">
<div class="ets-blog-wrapper-content-main">
<a class="ets_title_block" href="{$category.link|escape:'html':'UTF-8'}">
{$category.title|escape:'html':'UTF-8'}&nbsp;({$category.count_posts|intval})
</a>
{if $category.sub_categogires}
<div class="sub_category">
<ul>
{foreach from=$category.sub_categogires item='sub_category'}
<li>
<a href="{$sub_category.link|escape:'html':'UTF-8'}">{$sub_category.title|escape:'html':'UTF-8'}</a>
</li>
{/foreach}
</ul>
</div>
{/if}
<div class="blog_description">
{if $category.description}
{$category.description|truncate:500:'...'|escape:'html':'UTF-8' nofilter}
{/if}
</div><div class="clearfix"></div>
{if ( $category.count_posts > 0 )}
{if ( $category.count_posts == 1 )}
<a class="view_detail_link blog_view_all" href="{$category.link|escape:'html':'UTF-8'}">
{l s='View %d post' sprintf=[$category.count_posts] mod='ets_blog'}
</a>
{else}
<a class="view_detail_link blog_view_all" href="{$category.link|escape:'html':'UTF-8'}">
{l s='View %d posts' sprintf=[$category.count_posts] mod='ets_blog'}
</a>
{/if}
{else}
<a class="view_detail_link blog_view_all" href="{$category.link|escape:'html':'UTF-8'}">
{l s='View detail' mod='ets_blog'}
</a>
{/if}
</div>
</div>
</div>
</li>
{/foreach}
</ul>
{if $blog_paggination}
<div class="blog-paggination">
{$blog_paggination nofilter}
</div>
{/if}
{else}
<p>{l s='No category found' mod='ets_blog'}</p>
{/if}
</div>

View File

@@ -0,0 +1,377 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<script type="text/javascript">
var text_update_position='{l s='Successfully updated' mod='ets_blog'}';
</script>
<div class="panel ets_blog-panel{if isset($class)} {$class|escape:'html':'UTF-8'}{/if}">
<div class="panel-heading">{*if isset($icon) && $icon}<i class="{$icon|escape:'html':'UTF-8'}"></i>&nbsp;{/if*}{$title nofilter}
{if isset($totalRecords) && $totalRecords>0}<span class="badge">{$totalRecords|intval}</span>{/if}
<span class="panel-heading-action">
{if isset($show_add_new) && $show_add_new}
<a class="btn btn-default add_new_link" href="{if isset($link_new)}{$link_new|escape:'html':'UTF-8'}{else}{$currentIndex|escape:'html':'UTF-8'}{/if}">
<i class="ets_icon">
<svg width="14" height="14" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>
</i> {if isset($add_new_text)}{$add_new_text|escape:'html':'UTF-8'}{else} {l s='Add new' mod='ets_blog'}{/if}
</a>
{/if}
</span>
</div>
{if $fields_list}
<div class="table-responsive clearfix">
<form method="post" action="{if isset($postIndex)}{$postIndex|escape:'html':'UTF-8'}{else}{$currentIndex|escape:'html':'UTF-8'}{/if}">
{if isset($bulk_action_html)}
{$bulk_action_html nofilter}
{/if}
<table class="table configuration list-{$name|escape:'html':'UTF-8'}">
<thead>
<tr class="nodrag nodrop">
{assign var ='i' value=1}
{foreach from=$fields_list item='field' key='index'}
<th class="{$index|escape:'html':'UTF-8'}{if isset($field.class)} {$field.class|escape:'html':'UTF-8'}{/if}" {if $show_action && !$actions && count($fields_list)==$i}colspan="2"{/if}>
<span class="title_box">
{$field.title|escape:'html':'UTF-8'}
{if isset($field.sort) && $field.sort}
<span class="soft">
<a href="{$currentIndex|escape:'html':'UTF-8'}&sort={$index|escape:'html':'UTF-8'}&sort_type=desc{$filter_params nofilter}" {if isset($sort)&& $sort==$index && isset($sort_type) && $sort_type=='desc'} class="active"{/if}><i class="fa fa-caret-down icon-caret-down"></i></a>
<a href="{$currentIndex|escape:'html':'UTF-8'}&sort={$index|escape:'html':'UTF-8'}&sort_type=asc{$filter_params nofilter}" {if isset($sort)&& $sort==$index && isset($sort_type) && $sort_type=='asc'} class="active"{/if}><i class="fa fa-caret-up icon-caret-up"></i></a>
</span>
{/if}
</span>
</th>
{assign var ='i' value=$i+1}
{/foreach}
{if $show_action && $actions}
<th class="table_action" style="text-align: right;">{l s='Action' mod='ets_blog'}</th>
{/if}
</tr>
{if $show_toolbar}
<tr class="nodrag nodrop filter row_hover">
{foreach from=$fields_list item='field' key='index'}
<th class="{$index|escape:'html':'UTF-8'}{if isset($field.class)} {$field.class|escape:'html':'UTF-8'}{/if}">
{if isset($field.filter) && $field.filter}
{if $field.type=='text'}
<input class="filter" name="{$index|escape:'html':'UTF-8'}" type="text" {if isset($field.width)}style="width: {$field.width|intval}px;"{/if} {if isset($field.active)}value="{$field.active|escape:'html':'UTF-8'}"{/if}/>
{/if}
{if $field.type=='select' || $field.type=='active'}
<select {if isset($field.width)}style="width: {$field.width|intval}px;"{/if} name="{$index|escape:'html':'UTF-8'}">
<option value=""> -- </option>
{if isset($field.filter_list.list) && $field.filter_list.list}
{assign var='id_option' value=$field.filter_list.id_option}
{assign var='value' value=$field.filter_list.value}
{foreach from=$field.filter_list.list item='option'}
<option {if ($field.active!=='' && $field.active==$option.$id_option) || ($field.active=='' && $index=='has_post' && $option.$id_option==1 )} selected="selected"{/if} value="{$option.$id_option|escape:'html':'UTF-8'}">{$option.$value|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
{/if}
{if $field.type=='int'}
<label for="{$index|escape:'html':'UTF-8'}_min"><input type="text" placeholder="{l s='Min' mod='ets_blog'}" name="{$index|escape:'html':'UTF-8'}_min" value="{$field.active.min|escape:'html':'UTF-8'}" /></label>
<label for="{$index|escape:'html':'UTF-8'}_max"><input type="text" placeholder="{l s='Max' mod='ets_blog'}" name="{$index|escape:'html':'UTF-8'}_max" value="{$field.active.max|escape:'html':'UTF-8'}" /></label>
{/if}
{if $field.type=='date'}
<fieldset class="form-group">
<div class="input-group ets_blog_datepicker">
<input id="{$index|escape:'html':'UTF-8'}_min" autocomplete="off" class="form-control" name="{$index|escape:'html':'UTF-8'}_min" placeholder="{l s='From' mod='ets_blog'}" value="{$field.active.min|escape:'html':'UTF-8'}" type="text" autocomplete="off" />
<div class="input-group-append">
<div class="input-group-text">
<i class="icon icon-date"></i>
</div>
</div>
</div>
</fieldset>
<fieldset class="form-group">
<div class="input-group ets_blog_datepicker">
<input id="{$index|escape:'html':'UTF-8'}_max" autocomplete="off" class="form-control" name="{$index|escape:'html':'UTF-8'}_max" placeholder="{l s='To' mod='ets_blog'}" value="{$field.active.max|escape:'html':'UTF-8'}" type="text" autocomplete="off" />
<div class="input-group-append">
<div class="input-group-text">
<i class="icon icon-date"></i>
</div>
</div>
</div>
</fieldset>
{/if}
{elseif ( ($name == 'mp_front_products' || $name == 'mp_products') && $field.type == 'text' && isset($index) && $index == 'input_box') }
<div class="md-checkbox">
<label>
<input id="bulk_action_select_all" onclick="$('table').find('td input:checkbox').prop('checked', $(this).prop('checked')); ets_blog_updateBulkMenu();" value="" type="checkbox" />
<i class="md-checkbox-control"></i>
</label>
</div>
{elseif ( $field.type == 'text' && isset($index) && $index == 'input_box') }
<div class="md-checkbox">
<label>
<input id="bulk_action_select_all" onclick="$('table').find('td input:checkbox').prop('checked', $(this).prop('checked')); ets_blog_updateBulkMenu();" value="" type="checkbox" />
<i class="md-checkbox-control"></i>
</label>
</div>
{else}
{l s=' -- ' mod='ets_blog'}
{/if}
</th>
{/foreach}
{if $show_action}
<th class="actions">
<span class="pull-right flex">
<input type="hidden" name="post_filter" value="yes" />
{if $show_reset}<a class="btn btn-warning" href="{$currentIndex|escape:'html':'UTF-8'}"><i class="icon-eraser"></i> {l s='Reset' mod='ets_blog'}</a> &nbsp;{/if}
<button class="btn btn-default" name="ets_blog_submit_{$name|escape:'html':'UTF-8'}" id="ets_blog_submit_{$name|escape:'html':'UTF-8'}" type="submit">
<i class="fa fa-search icon-search"></i> {l s='Filter' mod='ets_blog'}
</button>
</span>
</th>
{/if}
</tr>
{/if}
</thead>
<tbody id="list-{$name|escape:'html':'UTF-8'}">
{if $field_values}
{foreach from=$field_values item='row'}
<tr {if isset($row.viewed) && !$row.viewed}class="no-viewed"{/if} data-id="{$row.$identifier|intval}">
{assign var='i' value=1}
{foreach from=$fields_list item='field' key='key'}
<td class="{$key|escape:'html':'UTF-8'} {if isset($sort)&& $sort==$key && isset($sort_type) && $sort_type=='asc' && isset($field.update_position) && $field.update_position}pointer dragHandle center{/if}{if isset($field.class)} {$field.class|escape:'html':'UTF-8'}{/if}" {if $show_action && !$actions && count($fields_list)==$i}colspan="2"{/if} >
{if isset($field.rating_field) && $field.rating_field}
{if isset($row.$key) && $row.$key > 0}
{for $i=1 to (int)$row.$key}
<div class="star star_on"></div>
{/for}
{if (int)$row.$key < 5}
{for $i=(int)$row.$key+1 to 5}
<div class="star"></div>
{/for}
{/if}
{else}
{l s=' -- ' mod='ets_blog'}
{/if}
{elseif $field.type != 'active'}
{if $field.type=='date'}
{if !$row.$key}
--
{else}
{if $key!='date_from' && $key!='date_to'}
{dateFormat date=$row.$key full=1}
{else}
{dateFormat date=$row.$key full=0}
{/if}
{/if}
{elseif $field.type=='checkbox'}
<input type="checkbox" name="{$name|escape:'html':'UTF-8'}_boxs[]" value="{$row.$identifier|escape:'html':'UTF-8'}" class="{$name|escape:'html':'UTF-8'}_boxs" />
{elseif $field.type=='input_number'}
{assign var='field_input' value=$field.field}
<div class="qty edit_quantity" data-v-599c0dc5="">
<div class="ps-number edit-qty hover-buttons" data-{$identifier|escape:'html':'UTF-8'}="{$row.$identifier|escape:'html':'UTF-8'}">
<input class="form-control {$name|escape:'html':'UTF-8'}_{$field_input|escape:'html':'UTF-8'}" type="number" name="{$name|escape:'html':'UTF-8'}_{$field_input|escape:'html':'UTF-8'}[{$row.$identifier|escape:'html':'UTF-8'}]" value="" placeholder="0" />
<div class="ps-number-spinner d-flex">
<span class="ps-number-up"></span>
<span class="ps-number-down"></span>
</div>
</div>
<button class="check-button" disabled="disabled"><i class="fa fa-check icon-check"></i></button>
</div>
{else}
{if isset($field.update_position) && $field.update_position}
<div class="dragGroup">
<span class="positions">
{/if}
{if isset($row.$key) && $row.$key!=='' && !is_array($row.$key)}{if isset($field.strip_tag) && !$field.strip_tag}{$row.$key nofilter}{else}{$row.$key|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}{/if}{else}--{/if}
{if isset($row.$key) && is_array($row.$key) && isset($row.$key.image_field) && $row.$key.image_field}
<a class="ets_blog_fancy" href="{$row.$key.img_url|escape:'html':'UTF-8'}"><img style="{if isset($row.$key.height) && $row.$key.height}max-height: {$row.$key.height|intval}px;{/if}{if isset($row.$key.width) && $row.$key.width}max-width: {$row.$key.width|intval}px;{/if}" src="{$row.$key.img_url|escape:'html':'UTF-8'}" /></a>
{/if}
{if isset($field.update_position) && $field.update_position}
</div>
</span>
{/if}
{/if}
{else}
{if isset($row.$key) && $row.$key}
{if (!isset($row.action_edit_approved) || $row.action_edit_approved)}
<a name="{$name|escape:'html':'UTF-8'}" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&change_enabled=0&field={$key|escape:'html':'UTF-8'}" class="list-action field-{$key|escape:'html':'UTF-8'} list-action-enable action-enabled list-item-{$row.$identifier|escape:'html':'UTF-8'}" data-id="{$row.$identifier|escape:'html':'UTF-8'}" title="{if $key=='reported'}{l s='Click to unreport' mod='ets_blog'}{else}{l s='Click to disable' mod='ets_blog'}{/if}">
<i class="icon icon-check fa fa-check"></i>
</a>
{else}
<span class="list-action-enable action-enabled" title="{l s='Enabled' mod='ets_blog'}">
<i class="icon icon-check fa fa-check"></i>
</span>
{/if}
{else}
{if (!isset($row.action_edit_approved) || $row.action_edit_approved)}
<a name="{$name|escape:'html':'UTF-8'}" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&change_enabled=1&field={$key|escape:'html':'UTF-8'}" class="list-action field-{$key|escape:'html':'UTF-8'} list-action-enable action-disabled list-item-{$row.$identifier|escape:'html':'UTF-8'}" data-id="{$row.$identifier|escape:'html':'UTF-8'}" title="{if $key=='reported'}{l s='Click to mark as reported' mod='ets_blog'}{else}{l s='Click to enable' mod='ets_blog'}{/if}">
<i class="icon icon-remove fa fa-remove"></i>
</a>
{else}
<span class="list-action-enable action-disabled" title="{l s='Disabled' mod='ets_blog'}">
<i class="icon icon-remove fa fa-remove"></i>
</span>
{/if}
{/if}
{/if}
</td>
{assign var='i' value=$i+1}
{/foreach}
{if $show_action}
{if $actions}
<td class="text-right">
<div class="btn-group-action">
<div class="btn-group pull-right">
{if $actions[0]=='view'}
{if (isset($row.child_view_url) && $row.child_view_url) || (isset($row.view_url) && $row.view_url)}
{if isset($row.child_view_url) && $row.child_view_url}
<a class="btn btn-default" href="{$row.child_view_url|escape:'html':'UTF-8'}"><i class="fa fa-search-plus icon icon-search-plus"></i> {l s='View sub' mod='ets_blog'}</a>
{elseif isset($row.view_url) && $row.view_url}
<a class="btn btn-default" href="{$row.view_url|escape:'html':'UTF-8'}"><i class="fa fa-search-plus icon icon-search-plus"></i> {l s='View' mod='ets_blog'}</a>
{/if}
{elseif !isset($row.action_edit) || $row.action_edit}
<a class="btn btn-default link_edit" href="{$currentIndex|escape:'html':'UTF-8'}&edit{$name|escape:'html':'UTF-8'}=1&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}" ><i class="icon icon-pencil fa fa-pencil"></i> {l s='Edit' mod='ets_blog'}</a>
{/if}
{/if}
{if $actions[0]=='edit'}
{if isset($row.child_view_url) && $row.child_view_url}
<a class="btn btn-default" href="{$row.child_view_url|escape:'html':'UTF-8'}"><i class="fa fa-search-plus icon icon-search-plus"></i> {l s='Sub categories' mod='ets_blog'}</a>
{else}
<a class="btn btn-default link_edit" href="{$currentIndex|escape:'html':'UTF-8'}&edit{$name|escape:'html':'UTF-8'}=1&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}" ><i class="icon icon-pencil fa fa-pencil"></i> {l s='Edit' mod='ets_blog'}</a>
{/if}
{/if}
{if $actions[0]=='delete'}
<a class="btn btn-default" onclick="return confirm('{l s='Do you want to delete this item?' mod='ets_blog' js=1}');" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&del=yes"><i class="icon icon-trash fa fa-trash"></i> {l s='Delete' mod='ets_blog'}</a>
{/if}
{if $actions[0]=='send_mail'}
<a class="btn btn-default btn-send-mail" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&submitSendMail=1"><i class="icon icon-envelope fa fa-envelope"></i> {l s='Send mail' mod='ets_blog'}</a>
{/if}
{if $actions|count >=2 && (!isset($row.action_edit) || $row.action_edit || in_array('action',$actions) || (isset($row.action_delete) &&$row.action_delete) )}
<button data-toggle="dropdown" class="btn btn-default dropdown-toggle">
<i class="fa fa-caret-down icon-caret-down"></i>&nbsp;
</button>
<ul class="dropdown-menu">
{if $actions[0]=='edit' && isset($row.child_view_url) && $row.child_view_url}
<li>
<a class="btn btn-default link_edit" href="{$currentIndex|escape:'html':'UTF-8'}&edit{$name|escape:'html':'UTF-8'}=1&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}" ><i class="icon icon-pencil fa fa-pencil"></i> {l s='Edit' mod='ets_blog'}</a>
</li>
{/if}
{foreach from=$actions item='action' key='key'}
{if $key!=0}
{if $action=='delete' && (!isset($row.view_order_url) || (isset($row.view_order_url) && !$row.view_order_url) )}
<li><a class="btn btn-default" onclick="return confirm('{l s='Do you want to delete this item?' mod='ets_blog' js=1}');" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&del=yes{if isset($row.type)}&type={$row.type|escape:'html':'UTF-8'}{/if}"><i class="fa fa-trash icon icon-trash"></i> {l s='Delete' mod='ets_blog'}</a></li>
{/if}
{if $action=='delete_all'}
<li><a class="btn btn-default" onclick="return confirm('{l s='Do you want to delete this shop and all of its data?' mod='ets_blog' js=1}');" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&delall=yes{if isset($row.type)}&type={$row.type|escape:'html':'UTF-8'}{/if}"><i class="fa fa-trash icon icon-trash"></i> {l s='Delete all' mod='ets_blog'}</a></li>
{/if}
{if $action=='view_post' && isset($row.post_url)}
<li><a class="btn btn-default" target="_blank" href="{$row.post_url|escape:'html':'UTF-8'}"><i class="fa fa-search-plus icon icon-search-plus"></i> {l s='View post' mod='ets_blog'}</a></li>
{/if}
{if $action=='approve' && isset($row.approved_url)}
<li><a class="btn btn-default" href="{$row.approved_url|escape:'html':'UTF-8'}"><i class="fa fa-check icon icon-check"></i> {l s='Approved' mod='ets_blog'}</a></li>
{/if}
{if $action=='view'}
{if isset($row.view_url) && $row.view_url}
<li><a class="btn btn-default" target="_blank" href="{$row.view_url|escape:'html':'UTF-8'}"><i class="fa fa-search-plus icon icon-search-plus"></i> {l s='View' mod='ets_blog'}</a></li>
{else}
<li>
<a class="btn btn-default link_edit" href="{$currentIndex|escape:'html':'UTF-8'}&edit{$name|escape:'html':'UTF-8'}=1&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}" ><i class="icon icon-pencil fa fa-pencil"></i> {l s='Edit' mod='ets_blog'}</a>
</li>
{/if}
{/if}
{if $action =='edit'}
<li><a class="btn btn-default" href="{$currentIndex|escape:'html':'UTF-8'}&edit{$name|escape:'html':'UTF-8'}=1&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}"><i class="fa fa-pencil icon icon-pencil"></i> {l s='Edit' mod='ets_blog'}</a></li>
{/if}
{/if}
{/foreach}
</ul>
{/if}
</div>
</div>
</td>
{/if}
{/if}
</tr>
{/foreach}
{/if}
{if !$field_values}
<tr class="no-record not_items_found list-empty">
<td colspan="100%">
<p class="list-empty-msg">
<i class="icon-warning-sign list-empty-icon"></i>
{l s='No items found' mod='ets_blog'}</p>
</td>
</tr>
{/if}
</tbody>
</table>
{if isset($show_bulk_action) && $show_bulk_action}
<div id="catalog-actions" class="col order-first">
<div class="row">
<div class="col">
<div class="d-inline-block hide">
<div class="btn-group dropdown bulk-catalog">
<button id="product_bulk_menu" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="true" style="color:black;">
{l s='Bulk actions' mod='ets_blog'}
<i class="fa fa-caret-up icon-caret-up"></i>
</button>
<div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 35px, 0px); top: 0px; left: 0px; will-change: transform;">
<div class="dropdown-divider"></div>
<button class="dropdown-item" name="submitBulkDelete" type="submit" style="border:none;background:none" onclick="return confirm('{l s='Do you want to delete the selected items?' mod='ets_blog' js=1}');">
<i class="fa fa-trash-o icon-trash-o" aria-hidden="true"></i>
{l s='Delete selected' mod='ets_blog'}
</button>
</div>
{if $name=='mail_queue'}
<div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 35px, 0px); top: 32px; left: 0px; will-change: transform;">
<div class="dropdown-divider"></div>
<button class="dropdown-item" name="submitBulkSend" type="submit" style="border:none;background:none" onclick="return confirm('{l s='Do you want to send email to the selected items?' mod='ets_blog' js=1}');">
<i class="icon icon-envelope fa fa-envelope" aria-hidden="true"></i>
{l s='Send email' mod='ets_blog'}
</button>
</div>
{/if}
</div>
</div>
</div>
</div>
</div>
{/if}
{if $paggination}
<div class="ets_blog_paggination" style="margin-top: 10px;">
{$paggination nofilter}
</div>
{/if}
</form>
</div>
{/if}
</div>
<script type="text/javascript">
function ets_blog_updateBulkMenu()
{
$('tbody input[type="checkbox"]').parent().removeClass('checked');
$('tbody input[type="checkbox"]:checked').parent().addClass('checked');
if($('tbody input[type="checkbox"]:checked').length) {
$('#product_bulk_menu').removeAttr('disabled').parents('.d-inline-block').removeClass('hide');
} else {
$('#product_bulk_menu').attr('disabled','disabled').parents('.d-inline-block').addClass('hide');
}
}
$(document).ready(function(){
$(document).on('click','tbody input[type="checkbox"]',function(){
ets_blog_updateBulkMenu();
});
});
$(document).on('change','.paginator_select_limit',function(e){
$(this).parents('form').submit();
});
</script>

View File

@@ -0,0 +1,28 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<li class="col-lg-4 col-md-6 col-sm-6 col-xs-12" >
<a id="author-blog-comment-link" href="{$link->getModuleLink('ets_blog','comments')|escape:'html':'UTF-8'}" title="{l s='My blog comments' mod='ets_blog'}">
<span class="link-item">
<span class="ss_icon_group">
<i class="fa fa-comments"></i>
</span>
{l s='My blog comments' mod='ets_blog'}
</span>
</a>
</li>

View File

@@ -0,0 +1,112 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<div class="panel ets_blogcomment_reply">
<div class="comment-content">
<span class="panel-heading-action">
<span>
{l s='Status' mod='ets_blog'}:&nbsp;{if $comment->approved}{l s='Approved' mod='ets_blog'}{else}{l s='Pending' mod='ets_blog'}{/if}
</span>
<a class="del_comment" title="{l s='Delete' mod='ets_blog'}" onclick="return confirm('Do you want to delete this comment?');" href="{$link_delete|escape:'html':'UTF-8'}">
<i class="icon-trash"></i>
{l s='Delete' mod='ets_blog'}
</a>
{if $comment->approved}
<a class="field-approved list-action-enable action-disabled" title="{l s='Click to disapprove' mod='ets_blog'}" href="{$curenturl|escape:'html':'UTF-8'}&id_comment={$comment->id|intval}&change_comment_approved=0">
<i class="icon-check"></i>
</a>
{else}
<a class="field-approved list-action-enable action-enabled" title="{l s='Click to mark as approved' mod='ets_blog'}" href="{$curenturl|escape:'html':'UTF-8'}&id_comment={$comment->id|intval}&change_comment_approved=1">
<i class="icon-remove"></i>
</a>
{/if}
</span>
<h4 class="subject_comment">{$comment->subject|escape:'html':'UTF-8'}</h4>
{if $comment->name}
<h4 class="comment_name">
{l s='By' mod='ets_blog'}: <span>{$comment->name|escape:'html':'UTF-8'}</span>
</h4>
{/if}
<h4 class="post_title">
{l s='Post title' mod='ets_blog'}: <span><a target="_blank" href="{$post_link|escape:'html':'UTF-8'}" title="{$post_class->title|escape:'html':'UTF-8'}">{$post_class->title|escape:'html':'UTF-8'}</a></span>
</h4>
<div class="comment-content">
<p>{$comment->comment|nl2br nofilter}</p>
</div>
<form method="post" action="">
<div class="form_reply">
<textarea id="reply_comwent_text" placeholder="{l s='Reply ...' mod='ets_blog'}" name="reply_comwent_text">{if isset($reply_comwent_text)}{$reply_comwent_text|escape:'html':'UTF-8'}{/if}</textarea>
<input class="btn btn-primary btn-default" type="submit" value="{l s='Send' mod='ets_blog'}" name="addReplyComment"/><br />
</div>
{if $replies}
<h4 class="replies_comment">{l s='Replies' mod='ets_blog'}:</h4>
<div class="table-responsive clearfix">
<table class="table configuration">
<thead>
<tr class="nodrag nodrop">
<script type="text/javascript">
var detele_confirm ="{l s='Do you want to delete this item?' mod='ets_blog'}";
</script>
<td>{l s='Id' mod='ets_blog'}</td>
<td>{l s='Name' mod='ets_blog'}</td>
<td>{l s='Reply content' mod='ets_blog'}</td>
<td class="text-center">{l s='Approved' mod='ets_blog'}</td>
<td class="text-center">{l s='Action' mod='ets_blog'}</td>
</tr>
</thead>
<tbody id="list-ets_reply">
{foreach from=$replies item='reply'}
<tr>
<td>{$reply.id_reply|intval}</td>
<td>{$reply.name|escape:'html':'UTF-8'}</td>
<td>{$reply.reply|nl2br nofilter}</td>
<td class="text-center">
{if $reply.approved}
<a class="list-action field-approved list-action-enable action-enabled list-item-{$reply.id_reply|intval}" data-id="{$reply.id_reply|intval}" title="{l s='Unapproved' mod='ets_blog'}" href="{$curenturl|escape:'html':'UTF-8'}&id_reply={$reply.id_reply|intval}&change_approved=0">
<i class="icon-check"></i>
</a>
{else}
<a class="list-action field-approved list-action-enable action-disabled list-item-{$reply.id_reply|intval}" data-id="{$reply.id_reply|intval}" title="{l s='Approved' mod='ets_blog'}" href="{$curenturl|escape:'html':'UTF-8'}&id_reply={$reply.id_reply|intval}&change_approved=1">
<i class="icon-remove"></i>
</a>
{/if}
</td>
<td class="text-center">
<a class="del_reply" href="{$curenturl|escape:'html':'UTF-8'}&delreply=1&id_reply={$reply.id_reply|intval}" onclick="return confirm('{l s='Do you want to delete this item?' mod='ets_blog'}');" title="{l s='Delete' mod='ets_blog'}"><i class="icon-trash"></i>{l s='Delete' mod='ets_blog'}</a>
</td>
</tr>
{/foreach}
</tbody>
</table>
<select id="bulk_action_reply" name="bulk_action_reply" style="display:none;width: 200px;">
<option value="">{l s='Bulk actions' mod='ets_blog'}</option>
<option value="mark_as_approved">{l s='Approved' mod='ets_blog'}</option>
<option value="mark_as_unapproved">{l s='Unapproved' mod='ets_blog'}</option>
<option value="delete_selected">{l s='Delete selected' mod='ets_blog'}</option>
</select>
</div>
{/if}
<div class="panel-footer">
<a class="btn btn-default" href="{$link_back|escape:'html':'UTF-8'}" title="{l s='Back' mod='ets_blog'}">
<i class="process-icon-cancel"></i>
{l s='Back' mod='ets_blog'}
</a>
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,28 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<div class="block ets_block_search {$ETS_BLOG_RTL_CLASS|escape:'html':'UTF-8'}">
<h4 class="title_blog title_block">{l s='Search in blog' mod='ets_blog'}</h4>
<div class="content_block block_content">
<form action="{$action|escape:'html':'UTF-8'}" method="post">
<input class="form-control" type="text" name="ets_blog_search" placeholder="{l s='Type in keywords...' mod='ets_blog'}" value="{$search|escape:'html':'UTF-8'}" />
<input class="button" type="submit" value="{l s='Search' mod='ets_blog'}" />
<span class="icon_search"></span>
</form>
</div>
</div>

View File

@@ -0,0 +1,27 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<div class="ets-left-panel col-lg-12">
<div class="blog-list-group">
{if $list}
{foreach from=$list item='tab'}
<a class="{if $controller == $tab.controller} active{/if} blog-list-group-item" href="{$tab.url|escape:'html':'UTF-8'}" id="{$tab.id|escape:'html':'UTF-8'}">{if isset($tab.icon)}<i class="{$tab.icon|escape:'html':'UTF-8'}"></i> {/if}{$tab.label|escape:'html':'UTF-8'}{if isset($tab.total_result) && $tab.total_result} ({$tab.total_result|intval}){/if}</a>
{/foreach}
{/if}
</div>
</div>

View File

@@ -0,0 +1,432 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<script type="text/javascript">
ets_blog_report_url = '{$report_url nofilter}';
ets_blog_report_warning ="{l s='Do you want to report this comment?' mod='ets_blog'}";
ets_blog_error = "{l s='There was a problem while submitting your report. Try again later' mod='ets_blog'}";
</script>
<div class="ets_blog_layout_{$blog_layout|escape:'html':'UTF-8'} ets-blog-wrapper-detail" itemscope itemType="http://schema.org/newsarticle">
<div itemprop="publisher" itemtype="http://schema.org/Organization" itemscope="">
<meta itemprop="name" content="{Configuration::get('PS_SHOP_NAME')|escape:'html':'UTF-8'}" />
{if Configuration::get('PS_LOGO')}
<div itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
<meta itemprop="url" content="{$ets_blog_config.ETS_BLOG_SHOP_URI|escape:'html':'UTF-8'}img/{Configuration::get('PS_LOGO')|escape:'html':'UTF-8'}" />
<meta itemprop="width" content="200px" />
<meta itemprop="height" content="100px" />
</div>
{/if}
</div>
{if $blog_post.image}
<div class="ets_blog_img_wrapper" itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<div class="ets_image-single">
<img title="{$blog_post.title|escape:'html':'UTF-8'}" src="{$blog_post.image|escape:'html':'UTF-8'}" alt="{$blog_post.title|escape:'html':'UTF-8'}" itemprop="url"/>
</div>
<meta itemprop="width" content="600px" />
<meta itemprop="height" content="300px" />
</div>
{/if}
<div class="ets-blog-wrapper-content">
{if $blog_post}
<h1 class="page-heading product-listing" itemprop="mainEntityOfPage"><span class="title_cat" itemprop="headline">{$blog_post.title|escape:'html':'UTF-8'}</span></h1>
<div class="post-details">
<div class="blog-extra">
<div class="ets-blog-latest-toolbar">
{if $allow_rating && $everage_rating}
<div class="blog_rating_wrapper">
{if $total_review}
<span title="{l s='Comments' mod='ets_blog'}" class="blog_rating_reviews">
<span class="total_views">{$total_review|intval}</span>
<span>
{if $total_review != 1}
{l s='Comments' mod='ets_blog'}
{else}
{l s='Comment' mod='ets_blog'}
{/if}
</span>
</span>
{/if}
<div title="{l s='Average rating' mod='ets_blog'}" class="ets_blog_review">
{for $i = 1 to $everage_rating}
{if $i <= $everage_rating}
<div class="star star_on"></div>
{else}
<div class="star star_on_{($i-$everage_rating)*10|intval}"></div>
{/if}
{/for}
{if Ceil($everage_rating)<5}
{for $i = ceil($everage_rating)+1 to 5}
<div class="star"></div>
{/for}
{/if}
<span class="ets-blog-rating-value">({$everage_rating|escape:'html':'UTF-8'})</span>
</div>
</div>
{/if}
{if $show_date}
{if !$date_format}{assign var='date_format' value='F jS Y'}{/if}
<span class="post-date">
<span class="be-label">{l s='Posted on' mod='ets_blog'}: </span>
<span>{date($date_format,strtotime($blog_post.date_add))|escape:'html':'UTF-8'}</span>
<meta itemprop="datePublished" content="{date('Y-m-d',strtotime($blog_post.date_add))|escape:'html':'UTF-8'}" />
<meta itemprop="dateModified" content="{date('Y-m-d',strtotime($blog_post.date_upd))|escape:'html':'UTF-8'}" />
</span>
{/if}
{if $show_author && isset($blog_post.employee) && $blog_post.employee}
<div class="author-block" itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="post-author-label">{l s='By ' mod='ets_blog'}</span>
<a itemprop="url" href="{$blog_post.author_link|escape:'html':'UTF-8'}">
<span class="post-author-name" itemprop="name">
{if isset($blog_post.employee.name) && $blog_post.employee.name}
{ucfirst($blog_post.employee.name)|escape:'html':'UTF-8'}
{else}
{ucfirst($blog_post.employee.firstname)|escape:'html':'UTF-8'} {ucfirst($blog_post.employee.lastname)|escape:'html':'UTF-8'}
{/if}
</span>
</a>
</div>
{/if}
{if isset($blog_post.link_edit) && $blog_post.link_edit}
<a class="ets-block-post-edit" href="{$blog_post.link_edit|escape:'html':'UTF-8'}" title="{l s='Edit' mod='ets_blog'}"><i class="fa fa-pencil" aria-hidden="true"></i>&nbsp;{l s='Edit' mod='ets_blog'}</a>
{/if}
</div>
</div>
<div class="blog_description">
{if $blog_post.description}
{$blog_post.description nofilter}
{else}
{$blog_post.short_description nofilter}
{/if}
</div>
{if ($show_tags && $blog_post.tags) || ($show_categories && $blog_post.categories)}
<div class="extra_tag_cat">
{if $show_tags && $blog_post.tags}
<div class="ets-blog-tags">
{assign var='ik' value=0}
{assign var='totalTag' value=count($blog_post.tags)}
<span class="be-label">
{if $totalTag > 1}{l s='Tags' mod='ets_blog'}
{else}{l s='Tag' mod='ets_blog'}{/if}:
</span>
{foreach from=$blog_post.tags item='tag'}
{assign var='ik' value=$ik+1}
<a href="{$tag.link|escape:'html':'UTF-8'}">{ucfirst($tag.tag)|escape:'html':'UTF-8'}</a>{if $ik < $totalTag}, {/if}
{/foreach}
</div>
{/if}
{if $show_categories && $blog_post.categories}
<div class="ets-blog-categories">
{assign var='ik' value=0}
{assign var='totalCat' value=count($blog_post.categories)}
<div class="be-categories">
<span class="be-label">{l s='Posted in' mod='ets_blog'}: </span>
{foreach from=$blog_post.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}, {/if}
{/foreach}
</div>
</div>
{/if}
</div>
{/if}
{if isset($ets_blog_config.ETS_BLOG_AUTHOR_INFORMATION)&& $ets_blog_config.ETS_BLOG_AUTHOR_INFORMATION && isset($blog_post.employee.description)&& $blog_post.employee.description}
<div class="ets-block-author ets-block-author-avata {if $blog_post.employee.avata} ets-block-author-avata{/if}">
{if $blog_post.employee.avata}
<div class="avata_img">
<img class="avata" src="{$link->getMediaLink("`$smarty.const._PS_ETS_BLOG_IMG_`avata/`$blog_post.employee.avata|escape:'htmlall':'UTF-8'`")}"/>
</div>
{/if}
<div class="ets-des-and-author">
<div class="ets-author-name">
<a href="{$blog_post.author_link|escape:'html':'UTF-8'}">
{l s='Author' mod='ets_blog'}: {$blog_post.employee.name|escape:'html':'UTF-8'}
</a>
</div>
{if isset($blog_post.employee.description)&&$blog_post.employee.description}
<div class="ets-author-description">
{$blog_post.employee.description nofilter}
</div>
{/if}
</div>
</div>
{/if}
<div class="ets-blog-wrapper-comment">
{if $allowComments}
<div class="ets_comment_form_blog">
<h4 class="title_blog">{l s='Leave a comment' mod='ets_blog'}</h4>
<div class="ets-blog-form-comment" id="ets-blog-form-comment">
{if $hasLoggedIn || $allowGuestsComments}
<form action="#ets-blog-form-comment" method="post">
{if isset($comment_edit->id) && $comment_edit->id && !$justAdded}
<input type="hidden" value="{$comment_edit->id|intval}" name="id_comment" />
{/if}
{if !$hasLoggedIn}
<div class="blog-comment-row blog-name">
<label for="bc-name">{l s='Name' mod='ets_blog'}</label>
<input class="form-control" name="name_customer" id="bc-name" type="text" value="{if isset($name_customer)}{$name_customer|escape:'html':'UTF-8'}{elseif isset($comment_edit->name) && !$justAdded}{$comment_edit->name|escape:'html':'UTF-8'}{/if}" />
</div>
<div class="blog-comment-row blog-email">
<label for="bc-email">{l s='Email' mod='ets_blog'}</label>
<input class="form-control" name="email_customer" id="bc-email" type="text" value="{if isset($email_customer)}{$email_customer|escape:'html':'UTF-8'}{elseif isset($comment_edit->email)&& !$justAdded}{$comment_edit->email|escape:'html':'UTF-8'}{/if}" />
</div>
{/if}
<div class="blog-comment-row blog-title">
<label for="bc-subject">{l s='Subject ' mod='ets_blog'}</label>
<input class="form-control" name="subject" id="bc-subject" type="text" value="{if isset($subject)}{$subject|escape:'html':'UTF-8'}{elseif isset($comment_edit->subject)&& !$justAdded}{$comment_edit->subject|escape:'html':'UTF-8'}{/if}" />
</div>
<div class="blog-comment-row blog-content-comment">
<label for="bc-comment">{l s='Comment ' mod='ets_blog'}</label>
<textarea class="form-control" name="comment" id="bc-comment">{if isset($comment)}{$comment|escape:'html':'UTF-8'}{elseif isset($comment_edit->comment)&& !$justAdded}{$comment_edit->comment|escape:'html':'UTF-8'}{/if}</textarea>
</div>
<div class="blog-comment-row flex_space_between flex-bottom">
{if $allow_rating}
<div class="blog-rate-capcha">
{if $allow_rating}
<div class="blog-rate-post">
<label>{l s='Rating: ' mod='ets_blog'}</label>
<div class="blog_rating_box">
{if $default_rating > 0 && $default_rating <5}
<input id="blog_rating" type="hidden" name="rating" value="{$default_rating|intval}" />
{for $i = 1 to $default_rating}
<div rel="{$i|intval}" class="star star_on blog_rating_star blog_rating_star_{$i|intval}"></div>
{/for}
{for $i = $default_rating + 1 to 5}
<div rel="{$i|intval}" class="star blog_rating_star blog_rating_star_{$i|intval}"></div>
{/for}
{else}
<input id="blog_rating" type="hidden" name="rating" value="5" />
{for $i = 1 to 5}
<div rel="{$i|intval}" class="star star_on blog_rating_star blog_rating_star_{$i|intval}"></div>
{/for}
{/if}
</div>
</div>
{/if}
</div>
{/if}
<div class="blog-submit-form">
{if !Configuration::get('ETS_BLOG_DISPLAY_GDPR_NOTIFICATION')}
<div class="blog-submit">
<input class="button" type="submit" value="{l s='Submit Comment' mod='ets_blog'}" name="bcsubmit" />
</div>
{/if}
</div>
{if isset($blog_errors) && is_array($blog_errors) && $blog_errors && !isset($replyCommentsave)}
<div class="alert alert-danger ets_alert-danger">
<button class="close" type="button" data-dismiss="alert">×</button>
<ul>
{foreach from=$blog_errors item='error'}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
</div>
{/if}
</div>
<div class="blog-comment-row">
<div class="blog-submit-form">
{if Configuration::get('ETS_BLOG_DISPLAY_GDPR_NOTIFICATION')}
<label for="check_gpdr">
<input id="check_gpdr" type="checkbox" type="check_gpdr" value="1"/>&nbsp;{$text_gdpr|escape:'html':'UTF-8'}
<a href="{if Configuration::get('ETS_BLOG_TEXT_GDPR_NOTIFICATION_URL_MORE',$id_lang)}{Configuration::get('ETS_BLOG_TEXT_GDPR_NOTIFICATION_URL_MORE',$id_lang)|escape:'html':'UTF-8'}{else}#{/if}">{if Configuration::get('ETS_BLOG_TEXT_GDPR_NOTIFICATION_TEXT_MORE',$id_lang)}{Configuration::get('ETS_BLOG_TEXT_GDPR_NOTIFICATION_TEXT_MORE',$id_lang)|escape:'html':'UTF-8'}{else}{l s='View more details here' mod='ets_blog'}{/if}</a>
</label>
<div class="blog-submit">
<input class="button" type="submit" disabled="disabled" value="{l s='Submit Comment' mod='ets_blog'}" name="bcsubmit" />
</div>
{/if}
</div>
</div>
{if isset($blog_success) && $blog_success}
<p class="alert alert-success ets_alert-success">
<button class="close" type="button" data-dismiss="alert">×</button>
{$blog_success|escape:'html':'UTF-8'}
</p>
{/if}
</form>
{else}
<p class="alert alert-warning">{l s='Log in to post comments' mod='ets_blog'}</p>
{/if}
</div>
</div>
{if count($comments)}
<div class="ets_blog-comments-list">
<h4 class="title_blog">{l s='Comments' mod='ets_blog'}</h4>
<ul id="blog-comments-list" class="blog-comments-list">
{foreach from=$comments item='comment'}
<li id="blog_comment_line_{$comment.id_comment|intval}" class="blog-comment-line" {*itemprop="review" itemscope="" itemtype="http://schema.org/Review"*}>
{*<meta itemprop="author" content="{ucfirst($comment.name)|escape:'html':'UTF-8'}"/>*}
<div class="ets-blog-detail-comment">
<h5 class="comment-subject">{$comment.subject|escape:'html':'UTF-8'}</h5>
{if $comment.name}<span class="comment-by">{l s='By: ' mod='ets_blog'}<b>{ucfirst($comment.name)|escape:'html':'UTF-8'}</b></span>{/if}
<span class="comment-time"><span>{l s='On' mod='ets_blog'} </span>{date($date_format,strtotime($comment.date_add))|escape:'html':'UTF-8'}</span>
{if $allow_rating && $comment.rating > 0}
<div class="comment-rating" >
<span>{l s='Rating: ' mod='ets_blog'}</span>
<div class="ets_blog_review">
{for $i = 1 to $comment.rating}
<div class="star star_on"></div>
{/for}
{if $comment.rating<5}
{for $i = $comment.rating + 1 to 5}
<div class="star"></div>
{/for}
{/if}
<span class="ets-blog-everage-rating"> {number_format((float)$comment.rating, 1, '.', '')|escape:'html':'UTF-8'}</span>
</div>
</div>
{/if}
<div class="ets-block-report-reply-edit-delete">
{if isset($comment.reply) && $comment.reply}
<span class="ets-block-comment-reply comment-reply-{$comment.id_comment|intval}" rel="{$comment.id_comment|intval}"><i class="fa fa-reply" aria-hidden="true" title="{l s='Reply' mod='ets_blog'}"></i></span>
{/if}
{if isset($comment.url_edit)}
<a class="ets-block-comment-edit comment-edit-{$comment.id_comment|intval}" href="{$comment.url_edit|escape:'html':'UTF-8'}"><i class="fa fa-pencil" aria-hidden="true" title="{l s='Edit this comment' mod='ets_blog'}"></i></a>
{/if}
{if isset($comment.url_delete)}
<a class="ets-block-comment-delete delete-edit-{$comment.id_comment|intval}" href="{$comment.url_delete|escape:'html':'UTF-8'}"><i class="fa fa-trash" aria-hidden="true" title="{l s='Delete this comment' mod='ets_blog'}"></i></a>
{/if}
</div>
{if $comment.comment}<p class="comment-content">{$comment.comment nofilter}</p>{/if}
{if $comment.replies}
{foreach $comment.replies item='reply'}
<p class="comment-reply">
<span class="ets-blog-replied-by">
{l s='Replied by: ' mod='ets_blog'}
<span class="ets-blog-replied-by-name">
{ucfirst($reply.name)|escape:'html':'UTF-8'}
</span>
</span>
<span class="comment-time"><span>{l s='On' mod='ets_blog'} </span>{date($date_format,strtotime($reply.date_add))|escape:'html':'UTF-8'}</span>
<span class="ets-blog-reply-content">
{$reply.reply|nl2br nofilter}
</span>
</p>
{/foreach}
{/if}
{if isset($replyCommentsave) && $replyCommentsave==$comment.id_comment}
{if isset($replyCommentsaveok) && $blog_success}
<p class="alert alert-success ets_alert-success">
<button class="close" type="button" data-dismiss="alert">×</button>{$blog_success|escape:'html':'UTF-8'}
</p>
{else}
{if isset($comment.reply) && $comment.reply}
<form class="form_reply_comment" action="#blog_comment_line_{$comment.id_comment|intval}" method="post">
{if $blog_errors && is_array($blog_errors) && isset($replyCommentsave)}
<div class="alert alert-danger ets_alert-danger">
<button class="close" type="button" data-dismiss="alert">×</button>
<ul >
{foreach from=$blog_errors item='error'}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
</div>
{/if}
<input type="hidden" name="replyCommentsave" value="{$comment.id_comment|intval}" />
<textarea name="reply_comwent_text" placeholder="{l s='Enter your message...' mod='ets_blog'}">{$reply_comwent_text nofilter}</textarea>
<input type="submit" value="Send" />
</form>
{else}
{if $blog_errors && is_array($blog_errors) && isset($replyCommentsave)}
<div class="alert alert-danger ets_alert-danger">
<button class="close" type="button" data-dismiss="alert">×</button>
<ul >
{foreach from=$blog_errors item='error'}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
</div>
{/if}
{/if}
{/if}
{/if}
</div>
</li>
{/foreach}
</ul>
{if isset($link_view_all_comment)}
<div class="blog_view_all_button">
<a href="{$link_view_all_comment|escape:'html':'UTF-8'}" class="view_all_link">{l s='View all comments' mod='ets_blog'}</a>
</div>
{/if}
</div>
{/if}
{/if}
</div>
</div>
{else}
<p class="warning">{l s='No posts found' mod='ets_blog'}</p>
{/if}
{if $blog_post.related_posts}
<div class="ets-blog-related-posts ets_blog_related_posts_type_{if $blog_related_posts_type}{$blog_related_posts_type|escape:'html':'UTF-8'}{else}default{/if}">
<h4 class="title_blog">{l s='Related posts' mod='ets_blog'}</h4>
<div class="ets-blog-related-posts-wrapper">
{assign var='post_row' value=3}
<ul class="ets-blog-related-posts-list dt-{$post_row|intval}">
{foreach from=$blog_post.related_posts item='rpost'}
<li class="ets-blog-related-posts-list-li col-xs-12 col-sm-4 col-lg-{12/$post_row|intval} thumbnail-container">
{if $rpost.thumb}
<a class="ets_item_img" href="{$rpost.link|escape:'html':'UTF-8'}">
<img src="{$rpost.thumb|escape:'html':'UTF-8'}" alt="{$rpost.title|escape:'html':'UTF-8'}" />
</a>
{/if}
<a class="ets_title_block" href="{$rpost.link|escape:'html':'UTF-8'}">{$rpost.title|escape:'html':'UTF-8'}</a>
<div class="ets-blog-sidear-post-meta">
{if $rpost.categories}
{assign var='ik' value=0}
{assign var='totalCat' value=count($rpost.categories)}
<div class="ets-blog-categories">
<span class="be-label">{l s='Posted in' mod='ets_blog'}: </span>
{foreach from=$rpost.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}, {/if}
{/foreach}
</div>
{/if}
<span class="post-date">{date($date_format,strtotime($rpost.date_add))|escape:'html':'UTF-8'}</span>
</div>
{if $allowComments || $show_views || $allow_like}
<div class="ets-blog-latest-toolbar">
{if $allowComments}
{if $rpost.comments_num > 0 }
<span class="ets-blog-latest-toolbar-comments">{$rpost.comments_num|intval}
{if $rpost.comments_num!=1}
<span>{l s='comments' mod='ets_blog'}</span>
{else}
<span>{l s='comment' mod='ets_blog'}</span>
{/if}
</span>
{/if}
{/if}
</div>
{/if}
{if $display_desc}
{if $rpost.short_description}
<div class="blog_description">{$rpost.short_description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}</div>
{elseif $rpost.description}
<div class="blog_description">{$rpost.description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}</div>
{/if}
{/if}
<a class="read_more" href="{$rpost.link|escape:'html':'UTF-8'}">{if $ets_blog_config.ETS_BLOG_TEXT_READMORE}{$ets_blog_config.ETS_BLOG_TEXT_READMORE|escape:'html':'UTF-8'}{else}{l s='Read More' mod='ets_blog'}{/if}</a>
</li>
{/foreach}
</ul>
</div>
</div>
{/if}
</div>
</div>