Newer
Older
{{- $position := .block.position -}}
{{- $title := .block.title -}}
<div class="{{ $class }}{{ if $title }} block-with-title{{ end }}">
<div class="description">
{{ partial "PrepareHTML" .description }}
</div>
{{ end -}}
<div class="informations">
<address itemscope itemtype="https://schema.org/Organization">
{{ if .name }}
<p itemprop="name">{{ .name }}</p>
{{ with .information }}
{{ partial "PrepareHTML" . }}
{{ end }}
{{ with .address }}
{{ if or .address .city .zipcode .country }}
<div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
{{ if .address }}
<span itemprop="streetAddress">
{{ partial "PrepareHTML" .address }},
</span>
{{ end }}
<br>
{{ if .city }}
<span itemprop="addressLocality">
{{ partial "PrepareHTML" .city }}
{{ if .zipcode }}
<span itemprop="postalCode">
{{ partial "PrepareHTML" .zipcode }}
</span>
{{ end }}
{{ if .country }}
<span itemprop="addressCountry">
{{ partial "PrepareHTML" .country }}
</span>
{{ end }}
</div>
{{ end }}
{{ end }}
<p><a href="{{ . }}" target="_blank" rel="noreferrer">{{ . }}</a></p>
{{ end }}
{{ range .phone_numbers }}
<p><a itemprop="telephone" href="tel:{{ . }}">{{ . }}</a></p>
{{ end }}
{{ range .emails }}
<p><a itemprop="email" href="mailto:{{ . }}">{{ . }}</a></p>
</address>
{{ if .timetable}}
<ul>
{{ range .timetable }}
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<li>
<span>{{ .title }}</span>
{{ if or
.time_slot_morning.from
.time_slot_morning.to
}}
<span>
{{- if .time_slot_morning.from }}
<time datetime="{{ .time_slot_morning.from }}">{{ .time_slot_morning.from }}</time>
{{ end -}}
{{- if .time_slot_morning.to }}
<time datetime="{{ .time_slot_morning.to }}">{{ .time_slot_morning.to }}</time>
{{ end -}}
</span>
{{ end }}
{{ if or
.time_slot_afternoon.from
.time_slot_afternoon.to
}}
<span>
{{- if .time_slot_afternoon.from }}
<time datetime="{{ .time_slot_afternoon.from }}">{{ .time_slot_afternoon.from }}</time>
{{ end -}}
{{- if .time_slot_afternoon.to }}
<time datetime="{{ .time_slot_afternoon.to }}">{{ .time_slot_afternoon.to }}</time>
{{ end -}}
</span>
{{ end -}}
</li>
{{ end }}
{{ end }}
</ul>
{{ end }}
</div>