{lang="block_promoted"}

{{if $orientation !== 'vertical'}}
{{endif}}
    {{foreach $promoted as $item}} {{$photoCount = ( $imageObjects = $item->imageObjects() ) ? \count( $imageObjects ) : 0;}} {{$staff = \IPS\Member::load( $item->added_by );}}
  • {{if $photoCount}} {{$firstPhoto = $item->imageObjects()[0];}} {$item->objectTitle} {{endif}} {{if $photoCount > 1}}
      {{foreach $item->imageObjects() as $file}}
    • {{endforeach}}
    {{endif}}
    {{if $text = $item->getText('internal', true)}}
    {$text|raw}
    {{endif}} {{$reactionClass = $item->objectReactionClass;}} {{if $reactionClass || $item->objectDataCount}}
      {{if $reactionClass}}
    • {template="reactionOverview" group="global" app="core" params="$reactionClass, FALSE"}
    • {{endif}} {{if $counts = $item->objectDataCount}}
    • {$counts['words']}
    • {{endif}}
    {{endif}}
  • {{endforeach}}
{{if $orientation !== 'vertical'}}
{{endif}}