imagecms/ImageCMS

View on GitHub
application/modules/comments/templates/recent_product_comments.tpl

Summary

Maintainability
Test Coverage
<h3>{lang('Recent reviews', 'comments')}</h3>
<div class="news">
    {foreach $comments as $comment}
        <div class="newsitem">
            <span>{$comment.user_name}({date('j.m.Y h:i',$comment.date)})</span>
            <p>{$comment.text} <a href="{shop_url('product')}/{$comment.product_url}#comment_{$comment.id}">&rarr;</a></p>
        </div>
    {/foreach}
</div>