{{if $club = $topic->container()->club()}} {{if settings.clubs and settings.clubs_header == 'full'}} {template="header" app="core" group="clubs" params="$club, $topic->container()"} {{endif}}
{{endif}} {{if $topic->isArchived()}}

{lang="topic_is_archived"}

{lang="topic_archived_desc"}

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

{{if $topic->mapped('pinned') || $topic->mapped('featured') || $topic->hidden() === -1 || $topic->hidden() === 1 || $topic->hidden() === -2}} {{if $topic->hidden() === -1}} {{elseif $topic->hidden() === -2}} {{elseif $topic->hidden() === 1}} {{endif}} {{if $topic->mapped('pinned')}} {{endif}} {{if $topic->mapped('featured')}} {{endif}} {{endif}} {{if $topic->prefix() OR ( $topic->canEdit() AND $topic::canTag( NULL, $topic->container() ) AND $topic::canPrefix( NULL, $topic->container() ) )}} prefix()}}class='ipsHide'{{endif}} {{if ( $topic->canEdit() AND $topic::canTag( NULL, $topic->container() ) AND $topic::canPrefix( NULL, $topic->container() ) )}}data-editablePrefix{{endif}}> {template="prefix" group="global" app="core" params="$topic->prefix( TRUE ), $topic->prefix()"} {{endif}} {{if $topic->canEdit()}} {$topic->title} {{else}} {$topic->title} {{endif}}

{{if $topic->locked() && $topic->topic_open_time && $topic->topic_open_time > time()}}

{lang="topic_unlocks_at" htmlsprintf="\IPS\DateTime::ts( $topic->topic_open_time )->html(), \IPS\DateTime::ts( $topic->topic_open_time )->localeTime( FALSE )"}

{{elseif !$topic->locked() && $topic->topic_close_time && $topic->topic_close_time > time()}}

{lang="topic_locks_at" htmlsprintf="\IPS\DateTime::ts( $topic->topic_close_time )->html(), \IPS\DateTime::ts( $topic->topic_close_time )->localeTime( FALSE )"}

{{endif}} {{if \count( $topic->tags() ) OR ( $topic->canEdit() AND $topic::canTag( NULL, $topic->container() ) )}} {template="tags" group="global" app="core" params="$topic->tags(), FALSE, FALSE, ( $topic->canEdit() AND $topic::canTag( NULL, $topic->container() ) ) ? $topic->url() : NULL"} {{endif}}
{{if !$topic->container()->disable_sharelinks AND theme.aXenMFluent_Topics_Social == 1}}
{template="sharelinks" app="core" group="global" params="$topic"}
{{endif}}
{{if $topic->isQuestion()}}
{{endif}} {template="contentItemMessages" group="global" app="core" params="$topic->getMessages(), $topic"} {{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()}}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'"}

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

{{if $pagination}} {$pagination|raw} {{endif}}
{{else}} {{if ( \count( $topic->commentMultimodActions() ) && ( $topic->posts > 1 OR $topic->mapped('unapproved_comments') > 0 OR $topic->mapped('hidden_comments') > 0 ) ) || $pagination}}
{{if \count( $topic->commentMultimodActions() )}} {{endif}} {{if $pagination}} {$pagination|raw} {{endif}}
{{endif}} {{endif}} {template="featuredComments" group="global" app="core" params="$topic->featuredComments(), $topic->url()->setQueryString( 'recommended', 'comments' ), 'recommended_posts', 'post_lc'"}
isQuestion()}}class='ipsPad ipsAreaBackground'{{endif}}{{if $topic->isQuestion() AND $topic->topic_answered_pid}} data-topicAnswerID="{$topic->topic_answered_pid}"{{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, ( $topic->isQuestion() ) ? 'cPostQuestion' : ''"} {{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 $pagination}}
{$pagination|raw}
{{endif}} {{if $topic->commentForm() || $topic->locked() || \IPS\Member::loggedIn()->restrict_post || \IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings'] || !\IPS\Member::loggedIn()->checkPostsPerDay()}}
{{if $topic->commentForm()}} {{if $topic->locked()}}

{lang="topic_locked_can_comment"}

{{elseif ( $topic->getPoll() and $topic->getPoll()->poll_only )}}

{lang="topic_poll_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 )"} {{elseif !\IPS\Member::loggedIn()->checkPostsPerDay()}} {template="commentUnavailable" group="forms" location="front" app="core" params="'member_exceeded_posts_per_day'"} {{endif}} {{endif}}
{{endif}} {{if !$topic->isArchived() and !$topic->container()->password}}
{template="follow" app="core" group="global" params="'forums', 'topic', $topic->tid, $topic->followersCount()"}
{template="promote" app="core" group="global" params="$topic"}
{{endif}}
{{if ( $topic->canPin() or $topic->canUnpin() or $topic->canFeature() or $topic->canUnfeature() or $topic->canHide() or $topic->canUnhide() or $topic->canMove() or $topic->canLock() or $topic->canUnlock() or $topic->canDelete() or $topic->availableSavedActions() or $topic->canMerge() or $topic->canUnarchive() or $topic->canRemoveArchiveExcludeFlag() or \IPS\Member::loggedIn()->modPermission('can_view_moderation_log') ) or ( $topic->hidden() == -2 AND \IPS\Member::loggedIn()->modPermission('can_manage_deleted_content') )}} {{endif}} {{if !$topic->container()->disable_sharelinks}}
{template="sharelinks" app="core" group="global" params="$topic"} {{endif}} {{if $topic->container()->club()}}
{{endif}}