{# render footer-template #}
{% set index = 0 %}
{% set includeMainRegion = true %}
{% if document.property('region') and not document.property('region').isMainRegion %}
{% set index = getIndexFromRegion(document.property('region'), includeMainRegion) %}
{% endif %}
{% set regions = getRegionsArray(includeMainRegion) %}
{% set regionsData = [] %}
{% for name, regionObject in regions %}
{% if regionObject.siteConfig.regionSlideMap.marker and regionObject.siteConfig.regionSlideMap.marker[0] %}
{% set regionsData = regionsData|merge([
{
"title": regionObject.name,
"href": regionObject.siteConfig.home,
"linkText": "region-slide.Zur Region"|trans,
"hotspotName": name,
"hotspotPosition": {
"top": regionObject.siteConfig.regionSlideMap.marker[0]['top'],
"left": regionObject.siteConfig.regionSlideMap.marker[0]['left']
}
}
]) %}
{% endif %}
{% endfor %}
<div class="js-render-template js-render-template--not-initially" style="min-height: 1px;">
<template class="js-render-template__template">
<section class="region-slide-wrapper">
<div class="region-slide">
{# This is no content-area. Only used above footer #}
<div class="region-slide__inner" style='--image-src: url("{{ siteConfig.regionSlideBg.thumbnail('region-slide-bg') }}"); --image-src-xs: url("{{ siteConfig.regionSlideBg.thumbnail('region-slide-bg--xs') }}");'>
<div class="region-slide__inner-body">
<div class="region-slide__title-wrapper">
<h2 class="region-slide__title">{{ siteConfig.regionSlideHeadline }}</h2>
<div class="region-slide__sub-title">
{{ siteConfig.regionSlideSubHeadline }}
</div>
</div>
<div class="js-region-slider region-slider" data-region-slider-initial-slide="{{ index }}">
<div class="swiper-container region-slider__container js-region-slider__slider">
<div class="swiper-wrapper">
{% for region in regionsData %}
<div class="swiper-slide region-slider__item"
data-region-link="{{ region.href }}"
data-region-link-text="{{ region.linkText }}"
data-region-id="{{ region.hotspotName }}">
<div class="region-slider__title">
{{ region.title }}
</div>
<div class="region-slider__title--active">
{{ region.title }}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
<div class="region-slide__content">
<div class="region-hotspots js-region-hotspots">
{{ siteConfig.regionSlideMap.thumbnail('region-slide-map').html({
imgAttributes: {
class: 'js-lazy-img region-slide__map'
},
lowQualityPlaceholder: true,
}) | raw }}
{% for region in regionsData %}
<div class="region-hotspots__wrapper" style="top: {{ region.hotspotPosition.top }}%; left: {{ region.hotspotPosition.left }}%;">
<a role="button" href="{{ region.href }}" class="region-hotspots__hotspot js-region-hotspots__hotspot"
aria-label="{{ region.title }}" title="{{ region.title }}"
data-hotspot-id="{{ region.hotspotName }}"
aria-controls="hotspot-{{ region.hotspotName }}"
aria-expanded="false">
<span class="hotspots__hotspot-inner">
<span class="hotspots__hotspot-icon" aria-hidden="true"></span>
</span>
</a>
</div>
{% endfor %}
</div>
{# HREF and data-event-tracking-label is set with JS #}
<a href="#" class="btn btn-outline-white mt-md-5 mt-2 region-slide__btn js-region-slider__link gtm-navigation-regionen" data-event-tracking-category="Navigation Regionen" data-event-tracking-action="Footer" data-event-tracking-label="">
{{ 'region-slide.Zur Region'|trans }}
</a>
{% if not document.property('region').isMainRegion %}
<a href="/" class="region-slide__link mt-4">
{{ 'region-slide.zurück zur Steiermark.com'|trans }}
</a>
{% endif %}
</div>
</div>
</div>
</div>
</section>
</template>
</div>