{* * 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='No posts found' mod='ets_blog'}
{/if} {if $blog_post.related_posts} {/if}
{l s='Leave a comment' mod='ets_blog'}
{l s='Log in to post comments' mod='ets_blog'}
{/if}{l s='Comments' mod='ets_blog'}
{foreach from=$comments item='comment'}-
{**}
{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 $comment.comment}
{/if}
{/if}
{/if}
{/if}
{/foreach}
{if isset($link_view_all_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}{$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'}
{/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} {else} {if $blog_errors && is_array($blog_errors) && isset($replyCommentsave)}{foreach from=$blog_errors item='error'}- {$error|escape:'html':'UTF-8'}
{/foreach}