{template="embedHeader" group="embed" app="core" params="$item, $item->mapped('title'), $item->mapped('date'), $url"} {{if $item->map( 500, 100 )}} {{elseif $item->coverPhoto() && $item->coverPhoto()->file}} {{$photo = $item->coverPhoto()->file;}} {{endif}}
{{$nextOccurrence = $item->nextOccurrence( \IPS\calendar\Date::getDate(), 'startDate' ) ?: $item->lastOccurrence( 'startDate' );}}
{{if $item->_end_date}}
{lang="from"}
{lang="until"}
{{else}}

{{endif}}
{{if $desc = $item->truncated(TRUE)}}
{$desc|raw}
{{endif}}
{{if $item->rsvp}} {{$attendees = $item->attendees();}}
{{endif}}
{template="embedItemStats" group="embed" app="core" params="$item"}