theme_forums_front_topics_activity
test

{{$lastPoster = \IPS\Member::load( $topic->last_poster_id);}}
{{$members = $topic->topPosters(4);}}
{{$busy = $topic->showSummaryFeature('popularDays') ? $topic->popularDays(4) : FALSE;}}
{{$reacted = $topic->showSummaryFeature('topPost') ? $topic->topReactedPosts(3) : FALSE;}}
{{$images = $topic->showSummaryFeature('uploads') ? $topic->imageAttachments(4) : FALSE;}}
{{$isQA = $topic->container()->forums_bitoptions['bw_enable_answers'];}}
{{if $location == 'sidebar'}}
{{else}}
{{endif}}
  • {{if $isQA}}{lang="forum_preview_posts_answers"}{{else}}{lang="replies"}{{endif}} {number="$topic->posts-1" format="short"}
  • {lang="topicactivity_created"} {datetime="$topic->start_date" short="true"}
  • {lang="last_reply"} {datetime="$topic->last_post" short="true"}
{{if $location !== 'sidebar'}}
{{if $members}}

{{if $isQA}}{lang="topicactivity_topposters_qa"}{{else}}{lang="topicactivity_topposters"}{{endif}}

    {{foreach $members as $data}}
  • {template="userPhoto" app="core" group="global" params="$data['member'], 'tiny'"}

    {$data['count']}

  • {{endforeach}}
{{endif}} {{if $busy}}

{lang="topicactivity_populardays"}

{{endif}}
{{endif}}
{{if $members}}

{{if $isQA}}{lang="topicactivity_topposters_qa"}{{else}}{lang="topicactivity_topposters"}{{endif}}

{{endif}} {{if $busy}} {{endif}} {{if $reacted}} {{endif}} {{if $images}}

{lang="topicactivity_images"}

    {{foreach $images as $row}} {{$image = \IPS\File::get( 'core_Attachment', ( $row['attach_thumb_location'] ) ? $row['attach_thumb_location'] : $row['attach_location'] )->url;}}
  • {{endforeach}}
{{endif}}
{{if $location !== 'sidebar'}} {{endif}}