templates/themes/theme/templates/cmspage-themed-header.html.twig line 1

Open in your IDE?
  1. {% extends '@theme/base.html.twig' %}
  2. {% block metatitle %}{{ page.metatitle }}{% endblock %}
  3. {% block metadescription -%}
  4. {{- page.metadescription|striptags|slice(0, 160) -}}
  5. {%- endblock %}
  6. {% block body %}
  7. {% set pagetitle = replaceIfComponentDataExists(pageComponents, 'title') ? replaceIfComponentDataExists(pageComponents, 'title') : page.title %}
  8. {% set subtitle = replaceIfComponentDataExists(pageComponents, 'subtitle') ? replaceIfComponentDataExists(pageComponents, 'subtitle') : page.subtitle %}
  9. <twig:PageHeroThemed :page="page" />
  10. {% if page.content %}
  11. <twig:PageMainContent>
  12. {{ allowInlineEditor(page, 'content')|raw }}
  13. <twig:block name="content2">
  14. {% if page.content2 %}
  15. {{ allowInlineEditor(page, 'content2')|raw }}
  16. {% endif %}
  17. </twig:block>
  18. <twig:block name="buttons">
  19. {% if page.ctaText and page.ctaLink %}
  20. <a href="{{ page.ctaLink }}" class="button">{{ page.ctaText }}</a>
  21. {% endif %}
  22. </twig:block>
  23. </twig:PageMainContent>
  24. {% endif %}
  25. <div class="header-block">
  26. <div class="contact-details">
  27. {{ forceRenderPcgcHtmlBlock('Contact Details')|raw }}
  28. </div>
  29. </div>
  30. {{ allowInlineEditor(page, 'content3')|raw }}
  31. {% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
  32. {# {{ breadcrumbs(page, domCheckIgnore(app.request.pathinfo) ) }} #}
  33. {{ renderPcgcComponents('Before Content', pageComponents)|raw }}
  34. {{ renderPcgcComponents('After Content', pageComponents)|raw }}
  35. {% if page.testimonial %}
  36. <twig:SingleTestimonial :testimonial="page.testimonial" />
  37. {% endif %}
  38. {{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
  39. {{ renderPcgcComponents('Before Footer', pageComponents)|raw }}
  40. {% if page.id == 6 %}
  41. {# About page #}
  42. {{ render(controller('App\\Controller\\WisdomController::index')) }}
  43. {% endif %}
  44. {% endblock %}
  45. {% block stylesheets %}{% endblock %}