{# @var \Pimcore\Model\DataObject\WeatherStation weatherStation #}
{% set items = [
{
"id": "today-tab",
"text": "general.Heute"|trans ~ ", " ~ carbon().today().format('d.m.Y'),
"href": "#today",
"isActive": true,
"targetId": "today",
"content": include('Includes/Partials/weather-tab-content-today.html.twig')
},
{
"id": "tomorrow-tab",
"text": "general.Morgen"|trans ~ ", " ~ carbon().tomorrow().format('d.m.Y'),
"href": "#tomorrow",
"isActive": false,
"targetId": "tomorrow",
"content": include('Includes/Partials/weather-tab-content-tomorrow.html.twig')
},
{
"id": "nextdays-tab",
"text": "genearl.5-Tages-Vorschau"|trans,
"href": "#nextdays",
"isActive": false,
"targetId": "nextdays",
"content": include('Includes/Partials/weather-tab-content-nextdays.html.twig')
}
] %}
<section class="slide slide--has-bg content-block js-fade-in">
{% set bgImage = getCurrentWeatherImage(weatherStation, siteConfig) %}
{% if bgImage %}
<div class="slide__bg js-lazy-img js-lazy-img--bg" data-lazy-img-background="{{ bgImage.thumbnail('region-slide-bg').path|raw }}"></div>
{% endif %}
<div class="container">
{{ include('Includes/title-block.html.twig', {
title: weatherStation.name ~ ' (' ~ weatherStation.altitude ~ 'm)',
subtitle: 'weather-slide.Wie wird’s die Tage'|trans,
isCentered: true,
isWhite: true,
styleModifier: 'title-block--shadow'
}) }}
{{ include('Includes/tabs.html.twig', _context) }}
<div class="tab-content" role="tabpanel">
<div class="tab-content" role="tabpanel">
{% for item in items %}
<div class="tab-pane fade {{ item.isActive ? 'show active' : '' }}" id="{{ item.targetId }}" aria-labelledby="{{ item.id }}">
{{ item.content|raw }}
</div>
{% endfor %}
</div>
</div>
</div>
</section>