{{if $event->container()->allow_comments && $orientation == 'vertical'}}
{{endif}}
{{if $event->unread()}}
{{endif}}{wordbreak="$event->title"}{{if $event->unread()}}{{endif}}
{{if $event->nextOccurrence( $today, 'startDate' )}}
{$event->nextOccurrence( $today, 'startDate' )->calendarDate()}{{if !$event->all_day}} {$event->nextOccurrence( $today, 'startDate' )->localeTime( FALSE )} {{endif}}
{{if $event->nextOccurrence( $event->nextOccurrence( $today, 'startDate' ) ?: $today, 'endDate' ) }}
{{if $orientation == 'vertical'}}
{{endif}}
{lang="until"}{{if $orientation == 'vertical'}}
{{endif}}
{$event->nextOccurrence( $event->nextOccurrence( $today, 'startDate' ) ?: $today, 'endDate' )->calendarDate()}{{if !$event->all_day}} {$event->nextOccurrence( $event->nextOccurrence( $today, 'startDate' ) ?: $today, 'endDate' )->localeTime( FALSE )}{{endif}}
{{endif}}
{{else}}
{$event->lastOccurrence( 'startDate' )->calendarDate()}{{if !$event->all_day}} {$event->lastOccurrence( 'startDate' )->localeTime( FALSE )} {{endif}}
{{if $event->lastOccurrence( 'endDate' ) }}
{{if $orientation == 'vertical'}}
{{endif}}
{lang="until"}{{if $orientation == 'vertical'}}
{{endif}}
{$event->lastOccurrence( 'endDate' )->calendarDate()}{{if !$event->all_day}} {$event->lastOccurrence( 'endDate' )->localeTime( FALSE )}{{endif}}
{{endif}}
{{endif}}
{{if $event->container()->allow_comments && $orientation == 'horizontal'}}
{{endif}}
{{if $event->rsvp}}
{{$attendees = $event->attendees();}}
{lang="x_users_going" pluralize="count( $attendees[1] )"}
{{if isset( $attendees[1][ \IPS\Member::loggedIn()->member_id ] )}}
{{if $orientation == 'vertical'}}
{{else}} {{endif}}
{lang="you_are_going"}
{{endif}}
{{endif}}
{{if $orientation == 'horizontal'}}
{$event->truncated()|raw}
{{endif}}