{{- $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 )}}
{{ with .information }}
{{ end }} {{ if .name }}

{{ .name }}

{{ end }} {{ with .information }} {{ partial "PrepareHTML" . }}
{{ end }}
{{ with .contact_details }} {{ with .postal_address }}

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

{{ partial "commons/address.html" . }}
{{ end }} {{ if or .url .emails }}

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

{{ range .emails }}

{{ .label }}

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

{{ .label }}

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

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

{{ range . }}

{{ .label }}

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

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

    {{ partial "commons/socials" (dict "context" . "name" $a11y_name ) }}
{{ end }} {{ 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 -}}