{{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 \IPS\Application::appIsEnabled('cloud') AND \IPS\cloud\Application::featureIsEnabled( 'realtime' )}}
{{endif}} {{if $topic->isQuestion()}}
{{endif}}

{{if $topic->isFutureDate() || $topic->mapped('pinned') || $topic->mapped('featured') || $topic->hidden() === -1 || $topic->hidden() === 1 || $topic->hidden() === -2 || $topic->isSolved() || ( $topic->canToggleItemModeration() and $topic->itemModerationEnabled() )}} {{if $topic->isFutureDate()}} {{endif}} {{if $topic->hidden() === -1}} {{elseif $topic->hidden() === -2}} {{elseif $topic->hidden() === 1}} {{elseif $topic->canToggleItemModeration() and $topic->itemModerationEnabled()}} {{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 ( \count( $topic->tags() ) OR $topic::canTag( NULL, $topic->container() ) ) ) ? $topic->url() : NULL"} {{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}}

{template="userPhoto" group="global" app="core" params="$topic->author(), 'mini', $topic->warningRef()"}
{{if !$topic->isArchived() and !$topic->container()->password}}
{{endif}}
{{if $topic->isSolved()}} {{if $solvedComment = $topic->getSolution() AND ( $solvedComment->hidden() == 0 OR ( \in_array( $solvedComment->hidden(), array( 1, -1 ) ) AND $solvedComment->canUnhide() ) )}}
{lang="solved_and_go"} {lang="solved_byline" htmlsprintf="$solvedComment->author()->name"}, {datetime="$solvedComment->mapped('date')"}
{{endif}} {{endif}} {{if $topic->isQuestion()}}
{{endif}}
{{if $topic->canSolve() AND ! $topic->isSolved() AND $topic->isNotModeratorButCanSolve()}}

{lang="solved_did_it_tho_title" sprintf="\IPS\Member::loggedIn()->name"}

{lang="solved_did_it_tho_desc"} {{if member.members_bitoptions['no_solved_reenage']}} {{endif}}
{{endif}} {template="contentItemMessages" group="global" app="core" params="$topic->getMessages(), $topic"} {{if $topic->hidden() === 1 and $topic->canUnhide()}} {{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 ipsBox--child sm:ipsPadding_horizontal:half'"}
{{if ( $topic->showSummaryOnDesktop() === 'post' OR $topic->showSummaryOnMobile() )}}
{template="activity" group="topics" app="forums" params="$topic, 'post'"}
{{endif}}

{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() AND $topic->topic_answered_pid}} data-topicAnswerID="{$topic->topic_answered_pid}"{{endif}}>
{{$postCount=0; $timeLastRead = $topic->timeLastRead(); $lined = FALSE;}} {{if \count( $comments )}} {{foreach $topic->generateCommentMetaData( $comments, \IPS\Settings::i()->forums_mod_actions_anon ) as $comment}} {{if (!$topic->isQuestion() and !$lined and $timeLastRead and $timeLastRead->getTimestamp() < $comment->mapped('date'))}} {{if $lined = TRUE and $postCount}}
{lang="topic_meta_unread"}
{{endif}} {{endif}} {{$postCount++;}} {template="postContainer" group="topics" app="forums" params="$topic, $comment, $votes, ( $topic->isQuestion() ) ? 'cPostQuestion' : ''"} {{if !$topic->isQuestion() and ( isset( $comment->metaData['comment']['moderation'] ) OR isset( $comment->metaData['comment']['timeGap'] ) )}}
    {{if isset( $comment->metaData['comment']['moderation'] )}} {{foreach $comment->metaData['comment']['moderation'] as $modAction}}
  • {datetime="$modAction['row']['ctime']" short="true"} {$modAction['blurb']}
  • {{endforeach}} {{endif}} {{if isset( $comment->metaData['comment']['timeGap'] )}}
  • {$comment->metaData['comment']['timeGap']['blurb']}...
  • {{endif}}
{{endif}} {{if $postCount == 1 AND $advertisement = \IPS\core\Advertisement::loadByLocation( 'ad_topic_view' )}} {$advertisement|raw} {{endif}} {{if ( ( ! $topic->isQuestion() and $postCount == 1 ) and ( $topic->showSummaryOnDesktop() === 'post' OR $topic->showSummaryOnMobile() ) )}} {template="activity" group="topics" app="forums" params="$topic, 'post'"} {{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->isArchived()}}

{lang="topic_is_archived"}

{lang="topic_archived_desc"}

{{endif}} {{if ( $topic->commentForm() || $topic->locked() || \IPS\Member::loggedIn()->restrict_post || \IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings'] || !\IPS\Member::loggedIn()->checkPostsPerDay()) && !$topic->isArchived()}}
{{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}}
{{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->canToggleItemModeration() ) or ( $topic->hidden() == -2 AND \IPS\Member::loggedIn()->modPermission('can_manage_deleted_content') )}} {{endif}} {{if $topic->container()->club()}}
{{endif}}