templates/themes/theme/templates/cmspage-resources.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:PageHero :page="page" :title="pagetitle" :subtitle="subtitle">
  10. <a href="{{ path('router', { slug: 'contact' }) }}" class="button"
  11. >How can we help you today?</a
  12. >
  13. </twig:PageHero>
  14. {% if page.content %}
  15. <twig:PageMainContent image="{{ page.image ? '/' ~ page.getFullImagePath : null }}">
  16. {{ allowInlineEditor(page, 'content')|raw }}
  17. <twig:block name="content2">
  18. {{ renderPcgcComponents('Filters', pageComponents)|raw }}
  19. </twig:block>
  20. <twig:block name="buttons">
  21. {% if page.ctaText and page.ctaLink %}
  22. <a href="{{ page.ctaLink }}" class="button">{{ page.ctaText }}</a>
  23. {% endif %}
  24. </twig:block>
  25. </twig:PageMainContent>
  26. {% endif %}
  27. <div class="header-block">
  28. <div class="contact-details">
  29. {{ forceRenderPcgcHtmlBlock('Contact Details')|raw }}
  30. </div>
  31. </div>
  32. {{ allowInlineEditor(page, 'content3')|raw }}
  33. {{ renderPcgcComponents('Resources', pageComponents)|raw }}
  34. {% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
  35. {% if page.testimonial %}
  36. <twig:SingleTestimonial :testimonial="page.testimonial" />
  37. {% endif %}
  38. {{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
  39. {% endblock %}
  40. {% block stylesheets %}{% endblock %}