{{$image = FALSE;}} {{$coverPhoto = $event->coverPhoto();}} {{if $coverPhoto->file}} {{$image = $coverPhoto->file;}} {{elseif $event->container()->club() !== NULL && $event->container()->club()->profile_photo}} {{$image = \IPS\File::get('core_Clubs', $event->container()->club()->profile_photo );}} {{endif}}
{{if $image}} {$event->title} {{endif}}
{{if $event->nextOccurrence( \IPS\calendar\Date::getDate(), 'startDate' )}} {lang="_date_month_short" pluralize="$event->nextOccurrence( \IPS\calendar\Date::getDate(), 'startDate' )->format( 'n' )"} {$event->nextOccurrence( \IPS\calendar\Date::getDate(), 'startDate' )->format( 'd' )} {{else}} {lang="_date_month_short" pluralize="$event->lastOccurrence( 'startDate' )->format( 'n' )"} {$event->lastOccurrence( 'startDate' )->format('d')} {{endif}}
{{if $event->_happening}}
{$event->_happening}
{{endif}}

{$event->title}

{{if $event->_end_date}}  -  {{endif}}

{$event->truncated(TRUE, 400)}

{{if ($event->club_associations && \count( $event->getAssociatedClubs() )) || $event->venue || $event->location}}
    {{if $event->club_associations && \count( $event->getAssociatedClubs() )}} {{$clubNames = [];}} {{foreach $event->getAssociatedClubs() as $club}} {{$clubNames[] = $club->name;}} {{endforeach}} {{shuffle( $clubNames );}}
  • {expression="implode(', ', $clubNames )"}
  • {{elseif $event->container()->club() !== NULL}}
  • {$event->container()->club()->name}
  • {{endif}} {{if $event->venue || $event->location}} {{if $event->venue}}
  • {lang="calendar_venue_{$event->venue()->id}" escape="true"}
  • {{elseif $event->location}} {{$location = \IPS\GeoLocation::buildFromjson( $event->location );}}
  • {$location->toString()}
  • {{endif}} {{endif}}
{{endif}} View event