{* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newersend_friend_form_content * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *}
{if $comments} {foreach from=$comments item=comment} {if $comment.content}
{l s='Grade' mod='productcomments'} 
{section name="i" start=0 loop=5 step=1} {if $comment.grade le $smarty.section.i.index}
{else}
{/if} {/section}
{dateFormat date=$comment.date_add|escape:'html':'UTF-8' full=0}

{$comment.title}

{$comment.content|escape:'html':'UTF-8'|nl2br}

    {if $comment.total_advice > 0}
  • {l s='%1$d out of %2$d people found this review useful.' sprintf=[$comment.total_useful,$comment.total_advice] mod='productcomments'}
  • {/if} {if $is_logged} {if !$comment.customer_advice}
  • {l s='Was this comment useful to you?' mod='productcomments'}
  • {/if} {if !$comment.customer_report}
  • {l s='Report abuse' mod='productcomments'}
  • {/if} {/if}
{/if} {/foreach} {if (!$too_early AND ($is_logged OR $allow_guests))}

{l s='Write your review' mod='productcomments'} !

{/if} {else} {if (!$too_early AND ($is_logged OR $allow_guests))}

{l s='Be the first to write your review' mod='productcomments'} !

{else}

{l s='No customer comments for the moment.' mod='productcomments'}

{/if} {/if}

{l s='Write a review' mod='productcomments'}

{if isset($product) && $product}
{$product->name|escape:'html':'UTF-8'}

{$product->name}

{$product->description_short}
{/if}

{l s='Write a review' mod='productcomments'}

{if $criterions|@count > 0}
    {foreach from=$criterions item='criterion'}
  • {/foreach}
{/if} {if $allow_guests == true && !$is_logged} {/if}
{strip} {addJsDef productcomments_controller_url=$productcomments_controller_url|@addcslashes:'\''} {addJsDef moderation_active=$moderation_active|boolval} {addJsDef productcomments_url_rewrite=$productcomments_url_rewriting_activated|boolval} {addJsDef secure_key=$secure_key} {addJsDefL name=confirm_report_message}{l s='Are you sure that you want to report this comment?' mod='productcomments' js=1}{/addJsDefL} {addJsDefL name=productcomment_added}{l s='Your comment has been added!' mod='productcomments' js=1}{/addJsDefL} {addJsDefL name=productcomment_added_moderation}{l s='Your comment has been added and will be available once approved by a moderator' mod='productcomments' js=1}{/addJsDefL} {addJsDefL name=productcomment_title}{l s='New comment' mod='productcomments' js=1}{/addJsDefL} {addJsDefL name=productcomment_ok}{l s='OK' mod='productcomments' js=1}{/addJsDefL} {/strip}