templates/themes/theme/templates/cmspage-standard.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. {% if page.id == 6 %}
  8. <script type="application/ld+json">
  9. {
  10. "@context": "https://schema.org",
  11. "@type": "AboutPage",
  12. "name": "{{ page.metatitle }}",
  13. "url": "{{ siteurl }}{{ path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')) }}",
  14. "mainEntity": {
  15. "@type": "LocalBusiness",
  16. "name": "{{ sitename }}",
  17. "description": "{{ page.metadescription|striptags|slice(0, 160) }}",
  18. "url": "{{ siteurl }}",
  19. "logo": {
  20. "@type": "ImageObject",
  21. "url": "{{ siteurl }}{{ imageCache(asset('build/images/logo.png'), 'cropResize', 560, 120) }}",
  22. "width": 560,
  23. "height": 120
  24. },
  25. "telephone": "{{ renderSetting(2, 'content')|striptags }}",
  26. "email": "{{ renderSetting(3, 'content')|striptags }}",
  27. "areaServed": [
  28. {
  29. "@type": "Place",
  30. "name": "London"
  31. },
  32. {
  33. "@type": "Place",
  34. "name": "Sheffield"
  35. },
  36. {
  37. "@type": "Place",
  38. "name": "Leeds"
  39. },
  40. {
  41. "@type": "Place",
  42. "name": "Manchester"
  43. },
  44. {
  45. "@type": "Place",
  46. "name": "Nottingham"
  47. }
  48. ],
  49. "sameAs": [
  50. "{{ renderSetting(4, 'content')|striptags }}",
  51. "{{ renderSetting(5, 'content')|striptags }}",
  52. "{{ renderSetting(6, 'content')|striptags }}"
  53. ]
  54. }
  55. }
  56. </script>
  57. {% endif %}
  58. {% set pagetitle = replaceIfComponentDataExists(pageComponents, 'title') ? replaceIfComponentDataExists(pageComponents, 'title') : page.title %}
  59. {% set subtitle = replaceIfComponentDataExists(pageComponents, 'subtitle') ? replaceIfComponentDataExists(pageComponents, 'subtitle') : page.subtitle %}
  60. <twig:PageHero :page="page" :title="pagetitle" :subtitle="subtitle">
  61. <a href="{{ path('router', { slug: 'contact' }) }}" class="button"
  62. >How can we help you today?</a
  63. >
  64. </twig:PageHero>
  65. {% if page.content %}
  66. <twig:PageMainContent image="{{ page.image ? '/' ~ page.getFullImagePath : null }}">
  67. {{ allowInlineEditor(page, 'content')|raw }}
  68. <twig:block name="content2">
  69. {% if page.content2 %}
  70. {{ allowInlineEditor(page, 'content2')|raw }}
  71. {% endif %}
  72. </twig:block>
  73. <twig:block name="buttons">
  74. {% if page.ctaText and page.ctaLink %}
  75. <a href="{{ page.ctaLink }}" class="button">{{ page.ctaText }}</a>
  76. {% endif %}
  77. </twig:block>
  78. </twig:PageMainContent>
  79. {% endif %}
  80. {% if page.content3 or page.landingPageBlocks %}
  81. <section class="landing-page-blocks">
  82. {% if page.content3 %}
  83. <div class="container landing-page-blocks__content">
  84. {{ allowInlineEditor(page, 'content3')|raw }}
  85. </div>
  86. {% endif %}
  87. {% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
  88. </section>
  89. {% endif %}
  90. {# {{ breadcrumbs(page, domCheckIgnore(app.request.pathinfo) ) }} #}
  91. {{ renderPcgcComponents('Before Content', pageComponents)|raw }}
  92. {{ renderPcgcComponents('After Content', pageComponents)|raw }}
  93. {% if page.testimonial %}
  94. <twig:SingleTestimonial :testimonial="page.testimonial" />
  95. {% endif %}
  96. {{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
  97. {{ renderPcgcComponents('Before Footer', pageComponents)|raw }}
  98. {% if page.id == 6 %}
  99. {# About page #}
  100. {{ render(controller('App\\Controller\\WisdomController::index')) }}
  101. {% endif %}
  102. {% endblock %}
  103. {% block stylesheets %}{% endblock %}