{{$rowIds = array();}} {{foreach $rows as $row}} {{$idField = $row::$databaseColumnId;}} {{$rowIds[] = $row->$idField;}} {{endforeach}} {{if \count( $rows )}} {{$rowCount=0; $adShown=0;}} {{foreach $rows as $row}} {{if $rowCount == 1 AND $advertisement = \IPS\core\Advertisement::loadByLocation( 'ad_forum_listing' )}}
  • {$advertisement|raw}
  • {{endif}} {{$rowCount++;}} {{$idField = $row::$databaseColumnId;}} {{if $row->mapped('moved_to')}} {{if $movedTo = $row->movedTo() AND $movedTo->container()->can('view')}}
  • {$row->mapped('title')}

    {{if isset( $row::$databaseColumnMap['status'] )}} {{$statusField = $row::$databaseColumnMap['status'];}} {{if $row->$statusField == 'merged'}} {{else}} {{endif}} {{else}} {{endif}}
    {{if $table->canModerate()}}
    mapped('featured')}}featured{{endif}}'>
    {{endif}}
  • {{endif}} {{else}}
  • locationHash)}}data-location='{$row->locationHash}'{{endif}}>
    {template="userPhoto" app="core" group="global" params="$row->author(), 'small'"}

    {{if $row->locked()}} {{endif}} {{if $row->isFutureDate()}} {{endif}} {{if $row->isSolved()}} {{endif}} {{if $row->hidden() === -1}} {{elseif $row->hidden() === 1}} {{elseif $row->canToggleItemModeration() and $row->itemModerationEnabled()}} {{endif}} {{if $row->mapped('pinned')}} {{endif}} {{if $row->mapped('featured')}} {{endif}} {{if $row->mapped('poll')}} {{endif}} {{if $row->prefix()}} {template="prefix" group="global" app="core" params="$row->prefix( TRUE ), $row->prefix()"} {{endif}} {{if member.member_id}} {{if $row->unread()}} {{else}} {{if \in_array( $row->$idField, $table->contentPostedIn )}} {{endif}} {{endif}} {{endif}} mapped('title')}{{else}}{lang="content_deleted"}{{endif}} {{if $row->canEdit()}}{lang="click_hold_edit"}{{endif}}' {{if $row->tableHoverUrl and $row->canView()}} data-ipsHover data-ipsHover-target='{$row->url()->setQueryString('preview', 1)}' data-ipsHover-timeout='1.5'{{endif}}{{if $row->canEdit()}} data-role="editableTitle"{{endif}}> {{if $row->mapped('title') or $row->mapped('title') == 0}}{$row->mapped('title')}{{else}}{lang="content_deleted"}{{endif}} {{if $row->commentPageCount() > 1}} {$row->commentPagination( array(), 'miniPagination' )|raw} {{endif}}

      {{if $row->groupsPosted}}
    • {template="groupPostedBadges" group="global" app="core" location="front" params="$row->groupsPosted, 'topic_posted_in_groups'"}
    • {{endif}} {{if $row->followerCount}}
    • {lang="topic_follower_count" pluralize="$row->followerCount"}
    • {{endif}} {{foreach $row->stats(FALSE) as $k => $v}}
    • hotStats )}}class="ipsDataItem_stats_hot" data-text='{lang="hot_item"}' data-ipsTooltip title='{lang="hot_item_desc"}'{{endif}} data-statType="{$k}"> {number="$v" format="short"} {lang="{$k}" pluralize="$v" format="short"} {{if ( $k == 'forums_comments' OR $k == 'answers_no_number' ) && \IPS\forums\Topic::modPermission( 'unhide', NULL, $row->container() ) AND $unapprovedComments = $row->mapped('unapproved_comments')}}   {$unapprovedComments} {{endif}}
    • {{endforeach}}
    {{if $table->canModerate()}}
    multimodActions( $row ) )"}" data-state='{{if $row->tableStates()}}{$row->tableStates()}{{endif}}'>
    {{endif}}
    {{if isset($row->firstComment)}} {{endif}}
    {template="userPhoto" app="core" group="global" params="$row->lastCommenter(), 'tiny'"}
    {{if $row->locked()}} {{if $row->topic_open_time && $row->topic_open_time > time()}} {lang="topic_unlocks_at_short" sprintf="\IPS\DateTime::ts($row->topic_open_time)->relative(1)"}   {{endif}} {{elseif !$row->locked() && $row->topic_close_time && $row->topic_close_time > time()}} {lang="topic_locks_at_short" sprintf="\IPS\DateTime::ts($row->topic_close_time)->relative(1)"}   {{endif}} {{if \count( $row->tags() )}}
    {template="tags" group="global" app="core" params="$row->tags(), true"}
    {{endif}}
    {template="reactionOverview" group="global" app="core" params="$row, NULL, NULL"}
  • {{endif}} {{if $advertisement = \IPS\core\Advertisement::loadByLocation( 'ad_fluid_index_view' ) and ( $rowCount + 1 > $advertisement->_additional_settings['ad_fluid_index_view_number'] and ( ( $rowCount + 1 ) % $advertisement->_additional_settings['ad_fluid_index_view_number'] === 1 ) )}} {{if $advertisement->_additional_settings['ad_fluid_index_view_repeat'] == -1 or ( $advertisement->_additional_settings['ad_fluid_index_view_repeat'] > $adShown )}}
  • {$advertisement|raw}
  • {{$adShown++;}} {{endif}} {{endif}} {{endforeach}} {{endif}}