{{if $topic->isArchived()}}

{lang="topic_is_archived"}

{lang="topic_archived_desc"}

{{endif}} {{if $topic->isQuestion()}}
{{endif}} {{if $topic->isQuestion()}}
question_rating )"}">
{{endif}}
{{if !$topic->isArchived()}}
{template="follow" app="core" group="global" params="'forums', 'topic', $topic->tid, $topic->followersCount()"}
{{endif}}
{template="userPhoto" group="global" app="core" params="$topic->author(), 'small', $topic->warningRef()"}

{{if $topic->prefix()}} {template="prefix" group="global" app="core" params="$topic->prefix( TRUE ), $topic->prefix()"} {{endif}} {{if $topic->isQuestion()}} {wordbreak="$topic->title"} {{else}} {wordbreak="$topic->title"} {{endif}} {{if $topic->mapped('pinned') || $topic->mapped('featured') || $topic->hidden() === -1 || $topic->hidden() === 1}} {{if $topic->hidden() === -1}} {{elseif $topic->hidden() === 1}} {{endif}} {{if $topic->mapped('pinned')}} {{endif}} {{if $topic->mapped('featured')}} {{endif}} {{endif}}

{{if count( $topic->tags() )}}
{template="tags" group="global" app="core" params="$topic->tags()"} {{endif}}
{{if $topic->isQuestion()}}
{{endif}} {{if $topic->hidden() === 1 and $topic->canUnhide()}} {{endif}}
{{if $topic->container()->forum_allow_rating}}
{{if $topic->canRate()}}

{{if $topic->isQuestion()}}{lang="rate_this_question"}{{else}}{lang="rate_this_topic"}{{endif}}

{{endif}} {$topic->rating()|raw}
{{endif}}
{{if $poll = $topic->getPoll()}} {$poll|raw}
{{endif}}
isLastPage() and !$topic->isQuestion()}}data-lastPage{{endif}} data-feedID='topic-{$topic->tid}' class='cTopic ipsClear ipsSpacer_top'> {{if $topic->isQuestion() && $question}}

{lang="question_title"}

{template="postContainer" group="topics" app="forums" params="$topic, $question, $votes, 'cPostQuestion'"}

posts - 1"}">{lang="answer_count" pluralize="( $topic->posts ) ? $topic->posts - 1 : 0"}

{{if $pagination}} {$pagination|raw} {{endif}}
{{else}}

{lang="reply_count" pluralize="$topic->posts"}

{{if $pagination}}
{$pagination|raw}
{{endif}} {{endif}}
{{$postCount=0; $timeLastRead = $topic->timeLastRead(); $lined = FALSE;}} {{if count( $comments )}} {{foreach $comments as $comment}} {{if !$topic->isQuestion() and !$lined and $timeLastRead and $timeLastRead->getTimestamp() < $comment->mapped('date')}} {{if $lined = TRUE and $postCount}}
{{endif}} {{endif}} {{$postCount++;}} {template="postContainer" group="topics" app="forums" params="$topic, $comment, $votes"} {{if $postCount == 1 AND $advertisement = \IPS\core\Advertisement::loadByLocation( 'ad_topic_view' )}} {$advertisement|raw} {{endif}} {{endforeach}} {{else}} {{if $topic->isQuestion()}}

{lang="no_answers"}

{{endif}} {{endif}} {template="commentMultimod" app="core" group="global" params="$topic"}
{{if $topic->isQuestion()}}
{{endif}} {{if $pagination}}
{$pagination|raw}
{{endif}} {{if $topic->commentForm() || $topic->locked() || \IPS\Member::loggedIn()->restrict_post || \IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings']}}
{{if $topic->commentForm()}} {{if $topic->locked()}}

{lang="topic_locked_can_comment"}

{{endif}} {$topic->commentForm()|raw} {{else}} {{if $topic->locked()}} {template="commentUnavailable" group="forms" location="front" app="core" params="'topic_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}} {{if !$topic->isArchived()}}
{template="follow" app="core" group="global" params="'forums', 'topic', $topic->tid, $topic->followersCount()"}
{{endif}}
{{if $topic->isQuestion()}}
{{endif}}
{{if $nextUnread !== NULL}} {{endif}}
{{if !$topic->container()->disable_sharelinks}}
{template="sharelinks" app="core" group="global" params="$topic"} {{endif}}