templates/fe/_pages_header.html.twig line 1

Open in your IDE?
  1. {% set addEditCoverPhotoBtn = false %}
  2. {% if image is not defined %}
  3. {% set image = getDCA(8, false) %}
  4. {% set addEditCoverPhotoBtn = true %}
  5. {% endif %}
  6. {% if image is empty %}
  7. {% set image = asset('/assets/img/placeholder-landscape.webp') %}
  8. {% endif %}
  9. <div class="l-featured-section ui-featured-section lazyload {{ desktopOnly is defined and desktopOnly == true ? "l-featured-section--desktop-only" }} {{ marginBottomZero is defined and marginBottomZero == true ? "ui-featured-section--spacing-bottom-0" }} "
  10. data-bg="{{ image }}"
  11. data-delay="5000"
  12. >
  13. <div class="l-featured-section-content">
  14. {% if addEditCoverPhotoBtn %}
  15. {{ editDCA(8) }}
  16. {% endif %}
  17. <div class="l-container">
  18. <div class="l-flex-row">
  19. <div class="l-flex-col-lg-12">
  20. <div class="l-featured-section-content-box">
  21. <div class="l-page-title-box">
  22. {% if pageTitle is defined %}
  23. <h1 class="l-page-title ui-page-title {{ description is not defined or description is empty ? "ui-page-title--no-description" }}">{{ pageTitle }}</h1>
  24. {% endif %}
  25. {% if description is defined and description is not empty %}
  26. <div class="l-page-desc ui-page-desc">
  27. {% if "<" in description|raw and ">" in description|raw %}
  28. {{ description|raw }}
  29. {% else %}
  30. {{ description|nl2br }}
  31. {% endif %}
  32. </div>
  33. {% endif %}
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>