isLastPage()}}data-lastPage{{endif}} data-feedID='image-{$image->id}' id='comments'>

{lang="num_comments_uc" pluralize="$image->comments"}

{{if $image->commentPageCount() > 1}} {$image->commentPagination()|raw}

{{endif}}
{{if count( $image->comments() )}}
{{$commentCount=0; $timeLastRead = $image->timeLastRead(); $lined = FALSE;}} {{foreach $image->comments() 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()|raw} {{endif}} {{if $image->commentForm() || $image->locked() || \IPS\Member::loggedIn()->restrict_post || \IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings']}}
{{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="core" params="'image_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 )"} {{endif}} {{endif}}
{{endif}}