{lang="num_comments_uc" pluralize="$entry->num_comments"}


{template="featuredComments" group="global" app="core" params="$entry->featuredComments(), $entry->url()->setQueryString( 'recommended', 'comments' )"} {template="commentMultimodHeader" app="core" group="global" params="$entry, '#comments'"} {{if $entry->commentPageCount() > 1}} {$entry->commentPagination( array('tab') )|raw}

{{endif}}
{{if \count( $entry->comments( NULL, NULL, 'date', 'asc', NULL, NULL, NULL, NULL, FALSE, isset( \IPS\Request::i()->showDeleted ) ) )}}
{{$commentCount=0; $timeLastRead = $entry->timeLastRead(); $lined = FALSE;}} {{foreach $entry->comments( NULL, NULL, 'date', 'asc', NULL, NULL, NULL, NULL, FALSE, isset( \IPS\Request::i()->showDeleted ) ) as $comment}} {{if !$lined and $timeLastRead and $timeLastRead->getTimestamp() < $comment->mapped('date')}} {{if $lined = TRUE and $commentCount}}
{{endif}} {{endif}} {{$commentCount++;}} {$comment->html()|raw} {{endforeach}} {template="commentMultimod" app="core" group="global" params="$entry"}
{{else}}

{lang="no_comments"}

{{endif}}
{{if $entry->commentPageCount() > 1}}
{$entry->commentPagination( array('tab') )|raw} {{endif}} {{if $entry->commentForm() || $entry->locked() || \IPS\Member::loggedin()->restrict_post || \IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings'] || !\IPS\Member::loggedIn()->checkPostsPerDay()}}
{{if $entry->commentForm()}} {{if $entry->locked()}}

{lang="blog_entry_locked_can_comment"}

{{endif}} {$entry->commentForm()|raw} {{else}} {{if $entry->locked()}} {template="commentUnavailable" group="forms" location="front" app="core" params="'blog_entry_locked_cannot_comment'"} {{elseif \IPS\Member::loggedin()->restrict_post}} {template="commentUnavailable" group="forms" location="front" app="core" params="'restricted_cannot_comment', \IPS\Member::loggedIn()->warnings(5,NULL,'rpa'), \IPS\Member::loggedIn()->restrict_post"} {{elseif \IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings']}} {template="commentUnavailable" group="forms" location="front" app="core" params="'unacknowledged_warning_cannot_post', \IPS\Member::loggedIn()->warnings( 1, FALSE )"} {{elseif !\IPS\Member::loggedIn()->checkPostsPerDay()}} {template="commentUnavailable" group="forms" location="front" app="core" params="'member_exceeded_posts_per_day'"} {{endif}} {{endif}}
{{endif}}