## Comments Manager

| CID | Comment
{if $comments} {foreach from=$comments item=comment} {if $comment.anonym_name != ""} {assign var=comment_owner value=$comment.anonym_name} {else} {assign var=comment_owner value=$userquery->get_user_details($comment.c_userid)} {/if}
| {$comment.comment_id} | {$comment.comment} {if $type == '' || $type == 'v'} {if is_array($comment_owner)} {$comment_owner.username} {else} {$comment.comment} {$comment_owner} - {lang code="un_reg_user"} {/if} commented on a video named {$comment.title|truncate:40} on {$comment.date_added|date_format} |
{/if} {if $type == 't'} {if is_array($comment_owner)} {$comment_owner.username} {else} {$comment_owner} {/if} commented on {$comment.date_added|date_format} on a topic named {$comment.topic_title|truncate:40} {$comment.comment}
{lang code='view'} {lang code='comment'} | Mark {lang code='spam'} {lang code='remove'} {lang code='spam'} | {lang code='delete'}
{/if} {if $type == 'c'} {$comment.comment}
{if is_array($comment_owner)} {$comment_owner.username} {else} {$comment_owner} {/if} commented on {$comment.date_added|date_format} on a channel named {$comment.username|truncate:40}
{/if} {if $type == 'cl'} {if is_array($comment_owner)} {$comment_owner.username} {else} {$comment_owner}- {lang code="un_reg_user"} {/if} commented on {$comment.date_added|date_format} on a collection named {$comment.collection_name|truncate:40}
{lang code='view'} {lang code='comment'} | Mark {lang code='spam'} {lang code='remove'} {lang code='spam'} | {lang code='delete'}
{/if} {if $type == 'p'} {if is_array($comment_owner)} {$comment_owner.username} {else} {$comment_owner} {/if} commented on {$comment.date_added|date_format} on a photo named {$comment.photo_title|truncate:40} {$comment.comment}
{lang code='view'} {lang code='comment'} | Mark {lang code='spam'} {lang code='remove'} {lang code='spam'} | {lang code='delete'}
{/if} {if $bgcolor == ""} {assign var = bgcolor value = "#EEE"} {else} {assign var = bgcolor value = ""} {/if} {/foreach}

{else}
{lang code='no_comments'}
{/if}
{include file="$style_dir/blocks/pagination.html" }