templates/Includes/Partials/mountain-weather-teaser.html.twig line 1

Open in your IDE?
  1. <section class="mountain-weather-teaser stretch-link js-lazy-img js-lazy-img--bg" data-lazy-img-background="{{ bgImage ? bgImage.thumbnail('mountain-weather-teaser') : '' }}">
  2.     <div class="mountain-weather-teaser__body">
  3.         <div class="text-center">
  4.             <h3 class="font-decorative mb-0 mountain-weather-teaser__title text-uppercase"><a href="#" class="stretch-link__link">{{ title }}</a></h3>
  5.             <div class="h3 mb-0 font-decorative mountain-weather-teaser__title">
  6.                 {% if date %}
  7.                     <time datetime="{{ date.format('Y-m-d') }}">{{ date.format('d.m.Y') }}</time>
  8.                 {% endif %}
  9.             </div>
  10.         </div>
  11.         <div class="position-relative mountain-weather text-center mt-3 mt-md-5">
  12.             <span class="mountain-weather__icon icon icon-mountain" aria-label="mountain"></span>
  13.             <div class="mountain-weather__item d-flex align-items-center">
  14.                 2500m
  15.                 <span class="mountain-weather__item__value font-default-bold text-nowrap">{{ temp2500 }}°C</span>
  16.             </div>
  17.             <div class="mountain-weather__item mountain-weather__item--bottom d-flex">
  18.                 1500m
  19.                 <span class="mountain-weather__item__value font-default-bold text-nowrap">{{ temp1500 }}°C</span>
  20.             </div>
  21.         </div>
  22.         {# weather texts only available in german #}
  23.         {%  if app.request.locale == "de" %}
  24.         <div class="wysiwyg mt-3 mt-md-4">
  25.             {{ content }}
  26.         </div>
  27.         {% endif %}
  28.     </div>
  29. </section>