{{- $block := .block -}} {{- $block_class := partial "GetBlockClass" .block -}} {{- with .block.data -}}
{{ partial "blocks/top.html" (dict "title" $block.title "heading_level" $block.ranks.self "description" .description )}}
{{ if .name }}

{{ .name }}

{{ end }} {{ with .information }} {{ partial "PrepareHTML" . }} {{ end }}
{{ with .address }} {{ if or .address .city .zipcode .country }}

{{- i18n "commons.contact.address" -}}

{{ if .address }} {{ partial "PrepareHTML" .address }},
{{ end }} {{ if .city }} {{ partial "PrepareHTML" .city }} {{ end }} {{ if .zipcode }} {{ partial "PrepareHTML" .zipcode }} {{ end }} {{ if .country }} {{ partial "PrepareHTML" .country }} {{ end }}
{{ end }} {{ end }} {{ if or .url .emails }}

{{ if .url }} {{- i18n "commons.contact.web" -}} {{ else }} {{- i18n "commons.contact.email" -}} {{ end }}

{{ range .emails }}

{{ . }}

{{ end }} {{ with .url }}

{{ . }}

{{ end }}
{{ end }} {{ with .phone_numbers }}

{{- i18n "commons.contact.phone" -}}

{{ range . }}

{{ . }}

{{ end }}
{{ end }} {{ $a11y_name := .name | default (i18n "commons.contact.empty_name") }} {{ with .socials }}

{{- i18n "commons.contact.socials.title" -}}

    {{ partial "commons/socials" (dict "context" . "name" $a11y_name ) }}
{{ end }} {{ if .timetable}} {{ $time_size := "full-size" }} {{ if and (or .emails .url) .phone_numbers .socials }} {{ $time_size = "reduced" }} {{ end}}
  • {{- i18n "commons.contact.schedule" -}}
  • {{ range .timetable }} {{ if or .time_slot_morning.from .time_slot_morning.to .time_slot_afternoon.from .time_slot_afternoon.to }}
  • {{ .title }} {{ if or .time_slot_morning.from .time_slot_morning.to }} {{- if .time_slot_morning.from }} {{ end -}} {{- if .time_slot_morning.to }} {{ end -}} {{ end }} {{ if or .time_slot_afternoon.from .time_slot_afternoon.to }} {{- if .time_slot_afternoon.from }} {{ end -}} {{- if .time_slot_afternoon.to }} {{ end -}} {{ end -}}
  • {{ end }} {{ end }}
{{ end }}
{{- end -}}