<div class="main-navbar__left">
<ul class="list-unstyled main-navbar__link-list">
{% if (not microSiteConfig or not microSiteConfig.hideFacility) and siteConfig.facilitiesOverviewDocument %}
{% set trackingKey = 'click-header-icon-facility' %}
{% set trackingData = {
"trigger": "click",
'datalayer': {
'event': 'click_header_icon',
'click_item': 'icon-lift',
'click_url': siteConfig.facilitiesOverviewDocument.path
}
} %}
{% do jsConfig('_trackingData').add({
(trackingKey): trackingData
}) %}
<li class="main-navbar__link-list-item">
<a href="{{ siteConfig.facilitiesOverviewDocument }}" class="main-navbar__link js-cursor__interaction" data-event-tracking-key="{{ trackingKey }}">
<span class="icon icon-lift main-navbar__link-icon" aria-hidden="true"></span>
{{ 'header.facility-overview'|trans }}
</a>
</li>
{% endif %}
{% if (not microSiteConfig or not microSiteConfig.hideWeather) and siteConfig.weatherDocument %}
{% set trackingKey = 'click-header-icon-weather' %}
{% set trackingData = {
"trigger": "click",
'datalayer': {
'event': 'click_header_icon',
'click_item': 'icon-weather',
'click_url': siteConfig.weatherDocument.path
}
} %}
{% do jsConfig('_trackingData').add({
(trackingKey): trackingData
}) %}
<li class="main-navbar__link-list-item">
<a href="{{ siteConfig.weatherDocument }}" class="main-navbar__link js-cursor__interaction" data-event-tracking-key="{{ trackingKey }}">
<span class="icon icon-cloud-sun main-navbar__link-icon" aria-hidden="true"></span>
{% if getTemperature() != '' %}
{{ getTemperature() }} {{ 'general.degree'|trans }}
{% else %}
{{ 'header.weather-overview'|trans }}
{% endif %}
</a>
</li>
{% endif %}
{% if (not microSiteConfig or not microSiteConfig.hideWebcam) and siteConfig.webcamDocument %}
{% set trackingKey = 'click-header-icon-webcam' %}
{% set trackingData = {
"trigger": "click",
'datalayer': {
'event': 'click_header_icon',
'click_item': 'icon-webcam',
'click_url': siteConfig.webcamDocument.path
}
} %}
{% do jsConfig('_trackingData').add({
(trackingKey): trackingData
}) %}
<li class="main-navbar__link-list-item">
<a href="{{ siteConfig.webcamDocument }}" class="main-navbar__link js-cursor__interaction" data-event-tracking-key="{{ trackingKey }}">
<span class="icon icon-webcam main-navbar__link-icon" aria-hidden="true"></span>
{{ 'header.webcam-overview'|trans }}
</a>
</li>
{% endif %}
{% if (not microSiteConfig or not microSiteConfig.hideMap) and siteConfig.mapDocument %}
{% set trackingKey = 'click-header-icon-map' %}
{% set trackingData = {
"trigger": "click",
'datalayer': {
'event': 'click_header_icon',
'click_item': 'icon-map',
'click_url': siteConfig.mapDocument.path
}
} %}
{% do jsConfig('_trackingData').add({
(trackingKey): trackingData
}) %}
<li class="main-navbar__link-list-item">
<a href="{{ siteConfig.mapDocument }}" class="main-navbar__link js-cursor__interaction" data-event-tracking-key="{{ trackingKey }}">
<span class="icon icon-map main-navbar__link-icon" aria-hidden="true"></span>
{{ 'header.map-overview'|trans }}
</a>
</li>
{% endif %}
</ul>
</div>