templates/includes/presse/presse-header.html.twig line 1

Open in your IDE?
  1. <section class="news container">
  2.     <div class="row gy-4">
  3.         <div class="col-lg-6 col-md-12">
  4.             <div class="content-text-container">
  5.                 {{ include('navigation/breadcrumb.html.twig') }}
  6.                 {{ include('includes/atoms/back-button.html.twig', {
  7.                     link: siteConfig().newsOverview(app.request.locale),
  8.                 }) }}
  9.                 <div>
  10.                     {% for category in object.getCategories %}
  11.                         <div class="d-inline-block category-tag">{{ category.getName(app.request.locale) }}</div>
  12.                     {% endfor %}
  13.                 </div>
  14.                 <div class="title-block title-block--fluid">
  15.                     <ol class="info list-inline">
  16.                         <li class="list-inline-item info-item">{{ formatDate(object.publishDate) }}</li>
  17.                     </ol>
  18.                     <h1 class="title-block__title js-toc__title h2 mt-2">
  19.                         <strong class="title-block__title--bold">{{ object.getName(app.request.locale) }}</strong>
  20.                     </h1>
  21.                     {% if object.shortDescription %}
  22.                         <div class="wysiwyg short-text mt-4 mt-xl-5">
  23.                             {{ object.shortDescription|raw }}
  24.                         </div>
  25.                     {% endif %}
  26.                 </div>
  27.             </div>
  28.         </div>
  29.         <div class="col-lg-6 col-md-12 offset-lg-0 offset-md-0 order-0 order-md-1">
  30.             <div class="container__break-right-half-md">
  31.                 <div class="position-relative js-lightbox img-container">
  32.                     <div class="ratio ratio-3x2">
  33.                         {{ object.previewImage.thumbnail('location-hero').getHtml({
  34.                             imgAttributes: {
  35.                                 class: 'location-img ratio-item img',
  36.                             },
  37.                             loading: 'eager',
  38.                             lowQualityPlaceholder: true,
  39.                         })|raw }}
  40.                         {{ object.previewImage.thumbnail('location-hero').getHtml({
  41.                             imgAttributes: {
  42.                                 class: 'location-img ratio-item img',
  43.                             },
  44.                             loading: 'eager',
  45.                         })|raw }}
  46.                     </div>
  47.                 </div>
  48.             </div>
  49.         </div>
  50.     </div>
  51. </section>