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.3)} {/if} {/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} {/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} {/if} commented on {$comment.date_added|date_format} on a collection named {$comment.collection_name|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 == '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}
{$comment.comment_id} {if $type == '' || $type == 'v'} {if is_array($comment_owner)} {$comment_owner.username} {else} {$comment.comment}
{$comment_owner} {/if} commented on a video named {$comment.title|truncate:40} on {$comment.date_added|date_format}
{else}
{lang code='no_comments'}
{/if}
{include file="$style_dir/blocks/pagination.html" }