templates/Includes/Partials/weather-tab-content-today.html.twig line 1

Open in your IDE?
  1. {# @var \AppBundle\Model\DataObject\WeatherStation weatherStation #}
  2. {# @var \Pimcore\Model\DataObject\Fieldcollection\Data\WeatherStationDataSet today #}
  3. {% set today = weatherStation.today %}
  4. {% if today %}
  5.     <div class="weather-box bg-secondary">
  6.         <div class="row justify-content-center vertical-gutter--4">
  7.             <div class="col-6 col-md-3 vertical-gutter__item">
  8.                 {{ include('Includes/Partials/weather-item-detail.html.twig', {
  9.                     title: 'weather-slide.Morgends'|trans,
  10.                     temp: today.temp06,
  11.                     icon: today.symb06,
  12.                     rain: today.rrp06,
  13.                     wind: today.ff06
  14.                 }) }}
  15.             </div>
  16.             <div class="col-6 col-md-3 vertical-gutter__item">
  17.                 {{ include('Includes/Partials/weather-item-detail.html.twig', {
  18.                     title: 'weather-slide.Mittags'|trans,
  19.                     temp: today.temp12,
  20.                     icon: today.symb12,
  21.                     rain: today.rrp12,
  22.                     wind: today.ff12
  23.                 }) }}
  24.             </div>
  25.             <div class="col-6 col-md-3 vertical-gutter__item">
  26.                 {{ include('Includes/Partials/weather-item-detail.html.twig', {
  27.                     title: 'weather-slide.Abends'|trans,
  28.                     temp: today.temp18,
  29.                     icon: today.symb18,
  30.                     rain: today.rrp18,
  31.                     wind: today.ff18
  32.                 }) }}
  33.             </div>
  34.         </div>
  35.         <div class="text-center mt-3 mt-md-5">{{ today.text }}</div>
  36.     </div>
  37. {% endif %}