templates/blocks/previews/preview-thematique-logic.html.twig line 1

Open in your IDE?
  1. {% if category.uuid is defined and category.uuid is not empty %}
  2.     {% set page = sulu_content_load(category.uuid) %}
  3. {% endif %}
  4. <a href="{{ sulu_content_path(category.url) }}" class="preview-title tac cwhite nodeco preview-category jcc aic dflex br8 shadow-small shadow-thematiques prelative">
  5.     {% if page.content.header_img is defined and page.content.header_img is not empty %}
  6.         <img src="{{ page.content.header_img.formats['sulu-400x400.webp'] }}" srcset="{{page.content.header_img.formats['300x.webp']}} 300w, {{page.content.header_img.formats['600x.webp']}} 600w, {{page.content.header_img.formats['1000x.webp']}} 1000w" alt="{{ page.content.header_img | copyright_or_description_or_title }}" width="{{ page.content.header_img.fileVersion.properties.width }}" height="{{ page.content.header_img.fileVersion.properties.height }}" loading="lazy">
  7.     {% else %}
  8.         <img src="/resources/img/header-img/header-image.webp" alt="" width="896" height="292" loading="lazy">
  9.     {% endif %}
  10.     <div class="zi1">{{ category.title }}</div>
  11.     <div class="background-color-custom" style="background: {{ page.content.color }}"></div>
  12. </a>