templates/components/PageHeroThemed.html.twig line 1

Open in your IDE?
  1. {% set imageSrc = null %}
  2. {% if page.image is not null %}
  3. {% set imageSrc = page.getFullImagePath %}
  4. {% endif %}
  5. {% set overrideTitle = title is not null ? title : page.title %}
  6. {% set overrideSubtitle = subtitle is not null ? subtitle : page.subtitle %}
  7. {% if bg and page.image is not null %}
  8. <div
  9. class="page-hero page-hero--themed"
  10. style="--page-hero-image: url({{ imageCache('/' ~ page.getFullImagePath, 'zoomCrop', 2560, 1700) }})"
  11. >
  12. {% else %}
  13. <div class="page-hero page-hero--themed page-hero--no-bg">
  14. {% endif %}
  15. <div class="container">
  16. <div class="page-hero__content">
  17. {{- breadcrumbs(page, domCheckIgnore(app.request.pathinfo) ) -}}
  18. <h1 class="page-hero__title">{{ overrideTitle }}</h1>
  19. {% if overrideSubtitle %}
  20. <div class="page-hero__subtitle">{{ overrideSubtitle | raw }}</div>
  21. {% endif %}
  22. {% if block('teamMemberInfo') %}
  23. <div class="page-hero__team-member-info">
  24. {% block teamMemberInfo %}{% endblock %}
  25. </div>
  26. {% endif %}
  27. {% if block('content') %}
  28. <div class="page-hero__buttons">
  29. {% block content %}{% endblock %}
  30. </div>
  31. {% endif %}
  32. </div>
  33. </div>
  34. </div>