{% extends '@theme/base.html.twig' %}
{% block metatitle %}{{ page.metatitle }}{% endblock %}
{% block metadescription -%}
{{- page.metadescription|striptags|slice(0, 160) -}}
{%- endblock %}
{% block body %}
{% if page.id == 6 %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "AboutPage",
"name": "{{ page.metatitle }}",
"url": "{{ siteurl }}{{ path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')) }}",
"mainEntity": {
"@type": "LocalBusiness",
"name": "{{ sitename }}",
"description": "{{ page.metadescription|striptags|slice(0, 160) }}",
"url": "{{ siteurl }}",
"logo": {
"@type": "ImageObject",
"url": "{{ siteurl }}{{ imageCache(asset('build/images/logo.png'), 'cropResize', 560, 120) }}",
"width": 560,
"height": 120
},
"telephone": "{{ renderSetting(2, 'content')|striptags }}",
"email": "{{ renderSetting(3, 'content')|striptags }}",
"areaServed": [
{
"@type": "Place",
"name": "London"
},
{
"@type": "Place",
"name": "Sheffield"
},
{
"@type": "Place",
"name": "Leeds"
},
{
"@type": "Place",
"name": "Manchester"
},
{
"@type": "Place",
"name": "Nottingham"
}
],
"sameAs": [
"{{ renderSetting(4, 'content')|striptags }}",
"{{ renderSetting(5, 'content')|striptags }}",
"{{ renderSetting(6, 'content')|striptags }}"
]
}
}
</script>
{% endif %}
{% set pagetitle = replaceIfComponentDataExists(pageComponents, 'title') ? replaceIfComponentDataExists(pageComponents, 'title') : page.title %}
{% set subtitle = replaceIfComponentDataExists(pageComponents, 'subtitle') ? replaceIfComponentDataExists(pageComponents, 'subtitle') : page.subtitle %}
<twig:PageHero :page="page" :title="pagetitle" :subtitle="subtitle">
<a href="{{ path('router', { slug: 'contact' }) }}" class="button"
>How can we help you today?</a
>
</twig:PageHero>
{% if page.content %}
<twig:PageMainContent image="{{ page.image ? '/' ~ page.getFullImagePath : null }}">
{{ allowInlineEditor(page, 'content')|raw }}
<twig:block name="content2">
{% if page.content2 %}
{{ allowInlineEditor(page, 'content2')|raw }}
{% endif %}
</twig:block>
<twig:block name="buttons">
{% if page.ctaText and page.ctaLink %}
<a href="{{ page.ctaLink }}" class="button">{{ page.ctaText }}</a>
{% endif %}
</twig:block>
</twig:PageMainContent>
{% endif %}
{% if page.content3 or page.landingPageBlocks %}
<section class="landing-page-blocks">
{% if page.content3 %}
<div class="container landing-page-blocks__content">
{{ allowInlineEditor(page, 'content3')|raw }}
</div>
{% endif %}
{% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
</section>
{% endif %}
{# {{ breadcrumbs(page, domCheckIgnore(app.request.pathinfo) ) }} #}
{{ renderPcgcComponents('Before Content', pageComponents)|raw }}
{{ renderPcgcComponents('After Content', pageComponents)|raw }}
{% if page.testimonial %}
<twig:SingleTestimonial :testimonial="page.testimonial" />
{% endif %}
{{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
{{ renderPcgcComponents('Before Footer', pageComponents)|raw }}
{% if page.id == 6 %}
{# About page #}
{{ render(controller('App\\Controller\\WisdomController::index')) }}
{% endif %}
{% endblock %}
{% block stylesheets %}{% endblock %}