isLastPage()}}data-lastPage{{endif}} data-feedID='image-{$image->id}' id='comments'> {{if $image->commentPageCount() > 1}} {$image->commentPagination( array('tab') )|raw}

{{endif}} {template="featuredComments" group="global" app="gallery" params="$image->featuredComments(), $image->url()->setQueryString('tab', 'comments')->setQueryString('recommended', 'comments')"} {template="commentMultimodHeader" app="core" group="global" params="$image, '#comments'"}
{{if \count( $image->comments( NULL, NULL, 'date', 'asc', NULL, NULL, NULL, NULL, FALSE, isset( \IPS\Request::i()->showDeleted ) ) )}}
{{$commentCount=0; $timeLastRead = $image->timeLastRead(); $lined = FALSE;}} {{foreach $image->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="$image"}
{{else}}

{lang="no_comments"}

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

{lang="image_locked_can_comment"}

{{endif}} {$image->commentForm()|raw} {{else}} {{if $image->locked()}} {template="commentUnavailable" group="forms" location="front" app="gallery" params="'image_locked_cannot_comment'"} {{elseif \IPS\Member::loggedIn()->restrict_post}} {template="commentUnavailable" group="forms" location="front" app="gallery" 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="gallery" params="'unacknowledged_warning_cannot_post', \IPS\Member::loggedIn()->warnings( 1, FALSE )"} {{elseif !\IPS\Member::loggedIn()->checkPostsPerDay()}} {template="commentUnavailable" group="forms" location="front" app="gallery" params="'member_exceeded_posts_per_day'"} {{endif}} {{endif}}
{{endif}}