{{$currLang:=.Page.Lang }}
{{ $year := .Get "year" }}
{{ if $year }}
{{ .Scratch.Set "base" (index (index .Site.Data $currLang) $year) }}
{{ else }}
{{ .Scratch.Set "base" (index .Site.Data $currLang) }}
{{ end }}
{{ $base := .Scratch.Get "base" }}
{{ .Scratch.Set "agenda" $base.agenda }}
{{$event_id := .Get "event"}}
{{ if and ($event_id) (ne $event_id "") }}
{{ .Scratch.Set "agenda" (index $base $event_id).agenda }}
{{ end }}
{{$events := (.Scratch.Get "agenda").items}}
{{$types := (.Scratch.Get "agenda").types}}
{{$complete := (.Scratch.Get "agenda").complete }}
{{$title_suffix := .Get "title" }}
{{ $has_slides:=false }}
{{ range $events }}
{{ if isset . "slides" }}
{{ $has_slides = true }}
{{ end }}
{{ end }}
{{$cont:=(.Page.Params.container | default .Site.Params.container | default "container")}}
{{ $sectionId := .Get "sectionId" | default "registration" }}
{{ $sectionClass := .Get "sectionClass" }}
{{ $containerClass := .Get "containerClass" | default "container" }}
{{ i18n "agenda-legend" }}
{{ range $types }}
{{ i18n "agenda-sessions" }}
{{ range $events }}
{{ i18n "agenda-session-name" }}
{{ i18n "agenda-presenter-name" }}
{{ if $complete }}
{{ i18n "agenda-session-recording" }}
{{ else }}
{{ i18n "agenda-session-schedule" }}
{{ end }}
{{ if $has_slides }}
{{ i18n "agenda-session-slides" }}
{{ end }}
{{ end }}
{{ if $types }}
{{ i18n "agenda-abstract-modal-alt" . }}
{{ end }}
{{ end }}
{{ .name }}
{{ if isset . "abstract" }}
{{ .presenter }}
{{ if $complete }}
{{ i18n "agenda-session-recording-button-alt" . }}
{{ else }}
{{ .time }}
{{ end }}
{{ if $has_slides }}
{{ if (isset . "slides") }}
{{ i18n "agenda-session-slides-button-alt" . }}
{{ end }}
{{ end }}