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

{{endif}}
{{if \count( $file->comments( NULL, NULL, 'date', 'asc', NULL, NULL, NULL, NULL, FALSE, isset( \IPS\Request::i()->showDeleted ) ) )}}
{{$commentCount=0; $timeLastRead = $file->timeLastRead(); $lined = FALSE;}} {{foreach $file->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="$file"}
{{else}}

{lang="no_comments"}

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

{lang="file_locked_can_comment"}

{{endif}} {$file->commentForm()|raw} {{else}} {{if $file->locked()}} {template="commentUnavailable" group="forms" location="front" app="core" params="'file_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}}