{* * 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 Configuration::get('PS_LOGO')}
{/if}
{if $blog_post.image}
{/if}
{if $blog_post}

{$blog_post.title|escape:'html':'UTF-8'}

{if $allow_rating && $everage_rating}
{if $total_review} {$total_review|intval} {if $total_review != 1} {l s='Comments' mod='ets_blog'} {else} {l s='Comment' mod='ets_blog'} {/if} {/if}
{for $i = 1 to $everage_rating} {if $i <= $everage_rating}
{else}
{/if} {/for} {if Ceil($everage_rating)<5} {for $i = ceil($everage_rating)+1 to 5}
{/for} {/if} ({$everage_rating|escape:'html':'UTF-8'})
{/if} {if $show_date} {if !$date_format}{assign var='date_format' value='F jS Y'}{/if} {/if} {if $show_author && isset($blog_post.employee) && $blog_post.employee} {/if} {if isset($blog_post.link_edit) && $blog_post.link_edit}  {l s='Edit' mod='ets_blog'} {/if}
{if $blog_post.description} {$blog_post.description nofilter} {else} {$blog_post.short_description nofilter} {/if}
{if ($show_tags && $blog_post.tags) || ($show_categories && $blog_post.categories)}
{if $show_tags && $blog_post.tags}
{assign var='ik' value=0} {assign var='totalTag' value=count($blog_post.tags)} {if $totalTag > 1}{l s='Tags' mod='ets_blog'} {else}{l s='Tag' mod='ets_blog'}{/if}: {foreach from=$blog_post.tags item='tag'} {assign var='ik' value=$ik+1} {ucfirst($tag.tag)|escape:'html':'UTF-8'}{if $ik < $totalTag}, {/if} {/foreach}
{/if} {if $show_categories && $blog_post.categories}
{assign var='ik' value=0} {assign var='totalCat' value=count($blog_post.categories)}
{l s='Posted in' mod='ets_blog'}: {foreach from=$blog_post.categories item='cat'} {assign var='ik' value=$ik+1} {ucfirst($cat.title)|escape:'html':'UTF-8'}{if $ik < $totalCat}, {/if} {/foreach}
{/if}
{/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}
{if $blog_post.employee.avata}
{/if}
{if isset($blog_post.employee.description)&&$blog_post.employee.description}
{$blog_post.employee.description nofilter}
{/if}
{/if}
{if $allowComments}

{l s='Leave a comment' mod='ets_blog'}

{if $hasLoggedIn || $allowGuestsComments}
{if isset($comment_edit->id) && $comment_edit->id && !$justAdded} {/if} {if !$hasLoggedIn}
{/if}
{if $allow_rating}
{if $allow_rating}
{if $default_rating > 0 && $default_rating <5} {for $i = 1 to $default_rating}
{/for} {for $i = $default_rating + 1 to 5}
{/for} {else} {for $i = 1 to 5}
{/for} {/if}
{/if}
{/if}
{if !Configuration::get('ETS_BLOG_DISPLAY_GDPR_NOTIFICATION')}
{/if}
{if isset($blog_errors) && is_array($blog_errors) && $blog_errors && !isset($replyCommentsave)}
    {foreach from=$blog_errors item='error'}
  • {$error|escape:'html':'UTF-8'}
  • {/foreach}
{/if}
{if isset($blog_success) && $blog_success}

{$blog_success|escape:'html':'UTF-8'}

{/if}
{else}

{l s='Log in to post comments' mod='ets_blog'}

{/if}
{if count($comments)}

{l s='Comments' mod='ets_blog'}

    {foreach from=$comments item='comment'}
  • {**}
    {$comment.subject|escape:'html':'UTF-8'}
    {if $comment.name}{l s='By: ' mod='ets_blog'}{ucfirst($comment.name)|escape:'html':'UTF-8'}{/if} {l s='On' mod='ets_blog'} {date($date_format,strtotime($comment.date_add))|escape:'html':'UTF-8'} {if $allow_rating && $comment.rating > 0}
    {l s='Rating: ' mod='ets_blog'}
    {for $i = 1 to $comment.rating}
    {/for} {if $comment.rating<5} {for $i = $comment.rating + 1 to 5}
    {/for} {/if} {number_format((float)$comment.rating, 1, '.', '')|escape:'html':'UTF-8'}
    {/if}
    {if isset($comment.reply) && $comment.reply} {/if} {if isset($comment.url_edit)} {/if} {if isset($comment.url_delete)} {/if}
    {if $comment.comment}

    {$comment.comment nofilter}

    {/if} {if $comment.replies} {foreach $comment.replies item='reply'}

    {l s='Replied by: ' mod='ets_blog'} {ucfirst($reply.name)|escape:'html':'UTF-8'} {l s='On' mod='ets_blog'} {date($date_format,strtotime($reply.date_add))|escape:'html':'UTF-8'} {$reply.reply|nl2br nofilter}

    {/foreach} {/if} {if isset($replyCommentsave) && $replyCommentsave==$comment.id_comment} {if isset($replyCommentsaveok) && $blog_success}

    {$blog_success|escape:'html':'UTF-8'}

    {else} {if isset($comment.reply) && $comment.reply}
    {if $blog_errors && is_array($blog_errors) && isset($replyCommentsave)}
      {foreach from=$blog_errors item='error'}
    • {$error|escape:'html':'UTF-8'}
    • {/foreach}
    {/if}
    {else} {if $blog_errors && is_array($blog_errors) && isset($replyCommentsave)}
      {foreach from=$blog_errors item='error'}
    • {$error|escape:'html':'UTF-8'}
    • {/foreach}
    {/if} {/if} {/if} {/if}
  • {/foreach}
{if isset($link_view_all_comment)} {/if}
{/if} {/if}
{else}

{l s='No posts found' mod='ets_blog'}

{/if} {if $blog_post.related_posts} {/if}