2009-09-28 05:23:50 +00:00
|
|
|
{assign var='comments' value=$myquery->get_comments($id,$type)}
|
2009-11-04 10:27:40 +00:00
|
|
|
{section loop=$comments name=comment}
|
2009-09-28 05:23:50 +00:00
|
|
|
<div id="comment_{$comment_id}" class="comment">
|
2009-11-04 10:27:40 +00:00
|
|
|
{if $comments[comment].userid !='' && $comments[comment].userid!=0}
|
|
|
|
<a href="#">{assign var=name value=$userquery->get_user_field($comments[comment].userid,username)}{$name.username}</a>
|
2009-09-28 05:23:50 +00:00
|
|
|
{else}
|
2009-11-04 10:27:40 +00:00
|
|
|
<a href='#comment_{$comments[comment].comment_id}'>{$comments[comment].anonym_name}</a>
|
2009-09-28 05:23:50 +00:00
|
|
|
{/if}
|
2009-11-04 10:27:40 +00:00
|
|
|
wrote on {$comments[comment].date_added|date_format}<br />
|
|
|
|
{$comments[comment].comment|comment}
|
2009-09-28 05:23:50 +00:00
|
|
|
</div>
|
2009-11-04 10:27:40 +00:00
|
|
|
{sectionelse}
|
|
|
|
<div align="center" class="no_comments">
|
|
|
|
<em>No Comments</em>
|
|
|
|
</div>
|
|
|
|
{/section}
|