templates/themes/theme/templates/cmspage-light-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
  10. :page="page"
  11. :bg="false"
  12. :title="pagetitle"
  13. :subtitle="subtitle"
  14. />
  15. {% if page.content %}
  16. <twig:PageMainContent>
  17. {{ allowInlineEditor(page, 'content')|raw }}
  18. {% if page.id == 17 %}
  19. <script type="application/ld+json">
  20. {
  21. "@context": "https://schema.org",
  22. "@type": "LocalBusiness",
  23. "name": "{{ sitename }}",
  24. "telephone": "{{ renderSetting(2, 'content')|striptags }}",
  25. "email": "{{ renderSetting(3, 'content')|striptags }}",
  26. "contactPoint": {
  27. "@type": "ContactPoint",
  28. "contactType": "Customer Service",
  29. "telephone": "{{ renderSetting(2, 'content')|striptags }}",
  30. "areaServed": "GB"
  31. }
  32. }
  33. </script>
  34. <div class="contact-items contact-items--dark">
  35. {% include '@theme/common/contact-items.html.twig' %}
  36. {{ forceRenderPcgcHtmlBlockByIdentifier(8)|raw }}
  37. </div>
  38. {% endif %}
  39. <twig:block name="content2">
  40. {% if page.content2 %}
  41. {{ allowInlineEditor(page, 'content2')|raw }}
  42. {% endif %}
  43. </twig:block>
  44. <twig:block name="buttons">
  45. {% if page.ctaText and page.ctaLink %}
  46. <a href="{{ page.ctaLink }}" class="button">{{ page.ctaText }}</a>
  47. {% endif %}
  48. </twig:block>
  49. </twig:PageMainContent>
  50. {% endif %}
  51. {# <div class="header-block">
  52. <div class="contact-details">
  53. {{ forceRenderPcgcHtmlBlock('Contact Details')|raw }}
  54. </div>
  55. </div> #}
  56. {% if page.content3 %}
  57. <section class="py-40 container cms-area">{{ allowInlineEditor(page, 'content3')|raw }}</section>
  58. {% endif %}
  59. {% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
  60. {# {{ breadcrumbs(page, domCheckIgnore(app.request.pathinfo) ) }} #}
  61. {{ renderPcgcComponents('Before Content', pageComponents)|raw }}
  62. {{ renderPcgcComponents('After Content', pageComponents)|raw }}
  63. {# {% if page.testimonial %}
  64. <twig:SingleTestimonial :testimonial="page.testimonial" />
  65. {% endif %} #}
  66. {{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
  67. {{ renderPcgcComponents('Before Footer', pageComponents)|raw }}
  68. {% if page.id == 6 %}
  69. {# About page #}
  70. {{ render(controller('App\\Controller\\WisdomController::index')) }}
  71. {% endif %}
  72. {% endblock %}
  73. {% block stylesheets %}{% endblock %}