var/cache/dev/twig/89/89fd4ddccfd64004d2441ffc0c31798b.php line 46

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @theme/templates/cmspage-light-header.html.twig */
  16. class __TwigTemplate_92e5cc111c2a923c0a624cd923498ab1 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'metatitle' => [$this, 'block_metatitle'],
  29. 'metadescription' => [$this, 'block_metadescription'],
  30. 'body' => [$this, 'block_body'],
  31. 'stylesheets' => [$this, 'block_stylesheets'],
  32. ];
  33. }
  34. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  35. {
  36. // line 1
  37. return "@theme/base.html.twig";
  38. }
  39. protected function doDisplay(array $context, array $blocks = []): iterable
  40. {
  41. $macros = $this->macros;
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/templates/cmspage-light-header.html.twig"));
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/templates/cmspage-light-header.html.twig"));
  46. $this->parent = $this->load("@theme/base.html.twig", 1);
  47. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50. }
  51. // line 2
  52. /**
  53. * @return iterable<null|scalar|\Stringable>
  54. */
  55. public function block_metatitle(array $context, array $blocks = []): iterable
  56. {
  57. $macros = $this->macros;
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatitle"));
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatitle"));
  62. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 2, $this->source); })()), "metatitle", [], "any", false, false, false, 2), "html", null, true);
  63. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65. yield from [];
  66. }
  67. // line 3
  68. /**
  69. * @return iterable<null|scalar|\Stringable>
  70. */
  71. public function block_metadescription(array $context, array $blocks = []): iterable
  72. {
  73. $macros = $this->macros;
  74. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metadescription"));
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metadescription"));
  78. // line 4
  79. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::slice($this->env->getCharset(), Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 4, $this->source); })()), "metadescription", [], "any", false, false, false, 4)), 0, 160), "html", null, true);
  80. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  81. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  82. yield from [];
  83. }
  84. // line 7
  85. /**
  86. * @return iterable<null|scalar|\Stringable>
  87. */
  88. public function block_body(array $context, array $blocks = []): iterable
  89. {
  90. $macros = $this->macros;
  91. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  92. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  93. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  94. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  95. // line 8
  96. yield " ";
  97. $context["pagetitle"] = (((($tmp = $this->env->getFunction('replaceIfComponentDataExists')->getCallable()((isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 8, $this->source); })()), "title")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getFunction('replaceIfComponentDataExists')->getCallable()((isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 8, $this->source); })()), "title")) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 8, $this->source); })()), "title", [], "any", false, false, false, 8)));
  98. // line 9
  99. yield " ";
  100. $context["subtitle"] = (((($tmp = $this->env->getFunction('replaceIfComponentDataExists')->getCallable()((isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 9, $this->source); })()), "subtitle")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getFunction('replaceIfComponentDataExists')->getCallable()((isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 9, $this->source); })()), "subtitle")) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 9, $this->source); })()), "subtitle", [], "any", false, false, false, 9)));
  101. // line 10
  102. yield "
  103. ";
  104. // line 11
  105. yield $this->env->getRuntime('Symfony\UX\TwigComponent\Twig\ComponentRuntime')->render("PageHeroThemed", ["page" => (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 11, $this->source); })()), "bg" => false, "title" => (isset($context["pagetitle"]) || array_key_exists("pagetitle", $context) ? $context["pagetitle"] : (function () { throw new RuntimeError('Variable "pagetitle" does not exist.', 11, $this->source); })()), "subtitle" => (isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 11, $this->source); })())]);
  106. yield "
  107. ";
  108. // line 13
  109. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 13, $this->source); })()), "content", [], "any", false, false, false, 13)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  110. // line 14
  111. yield " ";
  112. $_v0 = $this->env->getRuntime("Symfony\\UX\\TwigComponent\\Twig\\ComponentRuntime");
  113. $preRendered = $_v0->preRender("PageMainContent", Twig\Extension\CoreExtension::toArray([]));
  114. if (null !== $preRendered) {
  115. yield $preRendered;
  116. } else {
  117. $preRenderEvent = $_v0->startEmbedComponent("PageMainContent", Twig\Extension\CoreExtension::toArray([]), $context, "@theme/templates/cmspage-light-header.html.twig", 12734047601);
  118. $embeddedContext = $preRenderEvent->getVariables();
  119. $embeddedContext["__parent__"] = $preRenderEvent->getTemplate();
  120. $embeddedContext["outerBlocks"] ??= new \Symfony\UX\TwigComponent\BlockStack();
  121. $embeddedBlocks = $embeddedContext["outerBlocks"]->convert($blocks, 12734047601);
  122. $this->load("@theme/templates/cmspage-light-header.html.twig", 14, "12734047601")->display($embeddedContext, $embeddedBlocks);
  123. $_v0->finishEmbedComponent();
  124. }
  125. // line 51
  126. yield " ";
  127. }
  128. // line 52
  129. yield "
  130. ";
  131. // line 58
  132. yield "
  133. ";
  134. // line 59
  135. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 59, $this->source); })()), "content3", [], "any", false, false, false, 59)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  136. // line 60
  137. yield " <section class=\"py-40 container cms-area\">";
  138. yield $this->env->getFunction('allowInlineEditor')->getCallable()((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 60, $this->source); })()), "content3");
  139. yield "</section>
  140. ";
  141. }
  142. // line 62
  143. yield "
  144. ";
  145. // line 63
  146. yield from $this->load("@theme/landing_page_blocks/index.html.twig", 63)->unwrap()->yield(CoreExtension::merge($context, ["blocks" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 63, $this->source); })()), "landingPageBlocks", [], "any", false, false, false, 63)]));
  147. // line 64
  148. yield "
  149. ";
  150. // line 66
  151. yield " ";
  152. yield $this->env->getFunction('renderPcgcComponents')->getCallable()("Before Content", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 66, $this->source); })()));
  153. yield "
  154. ";
  155. // line 67
  156. yield $this->env->getFunction('renderPcgcComponents')->getCallable()("After Content", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 67, $this->source); })()));
  157. yield "
  158. ";
  159. // line 71
  160. yield " ";
  161. yield $this->env->getFunction('renderPcgcComponents')->getCallable()("Contact Form", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 71, $this->source); })()));
  162. yield "
  163. ";
  164. // line 72
  165. yield $this->env->getFunction('renderPcgcComponents')->getCallable()("Before Footer", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 72, $this->source); })()));
  166. yield "
  167. ";
  168. // line 73
  169. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 73, $this->source); })()), "id", [], "any", false, false, false, 73) == 6)) {
  170. // line 74
  171. yield " ";
  172. // line 75
  173. yield " ";
  174. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\WisdomController::index"));
  175. yield "
  176. ";
  177. }
  178. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  179. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  180. yield from [];
  181. }
  182. // line 79
  183. /**
  184. * @return iterable<null|scalar|\Stringable>
  185. */
  186. public function block_stylesheets(array $context, array $blocks = []): iterable
  187. {
  188. $macros = $this->macros;
  189. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  190. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  191. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  192. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  193. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  194. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  195. yield from [];
  196. }
  197. /**
  198. * @codeCoverageIgnore
  199. */
  200. public function getTemplateName(): string
  201. {
  202. return "@theme/templates/cmspage-light-header.html.twig";
  203. }
  204. /**
  205. * @codeCoverageIgnore
  206. */
  207. public function isTraitable(): bool
  208. {
  209. return false;
  210. }
  211. /**
  212. * @codeCoverageIgnore
  213. */
  214. public function getDebugInfo(): array
  215. {
  216. return array ( 219 => 79, 204 => 75, 202 => 74, 200 => 73, 196 => 72, 191 => 71, 187 => 67, 182 => 66, 179 => 64, 177 => 63, 174 => 62, 168 => 60, 166 => 59, 163 => 58, 160 => 52, 157 => 51, 142 => 14, 140 => 13, 135 => 11, 132 => 10, 129 => 9, 126 => 8, 113 => 7, 102 => 4, 89 => 3, 66 => 2, 43 => 1,);
  217. }
  218. public function getSourceContext(): Source
  219. {
  220. return new Source("{% extends '@theme/base.html.twig' %}
  221. {% block metatitle %}{{ page.metatitle }}{% endblock %}
  222. {% block metadescription -%}
  223. {{- page.metadescription|striptags|slice(0, 160) -}}
  224. {%- endblock %}
  225. {% block body %}
  226. {% set pagetitle = replaceIfComponentDataExists(pageComponents, 'title') ? replaceIfComponentDataExists(pageComponents, 'title') : page.title %}
  227. {% set subtitle = replaceIfComponentDataExists(pageComponents, 'subtitle') ? replaceIfComponentDataExists(pageComponents, 'subtitle') : page.subtitle %}
  228. {{ component('PageHeroThemed', { page: page, bg: false, title: pagetitle, subtitle: subtitle }) }}
  229. {% if page.content %}
  230. {% component 'PageMainContent' %}
  231. {% block content %}{{ allowInlineEditor(page, 'content')|raw }}
  232. {% if page.id == 17 %}
  233. <script type=\"application/ld+json\">
  234. {
  235. \"@context\": \"https://schema.org\",
  236. \"@type\": \"LocalBusiness\",
  237. \"name\": \"{{ sitename }}\",
  238. \"telephone\": \"{{ renderSetting(2, 'content')|striptags }}\",
  239. \"email\": \"{{ renderSetting(3, 'content')|striptags }}\",
  240. \"contactPoint\": {
  241. \"@type\": \"ContactPoint\",
  242. \"contactType\": \"Customer Service\",
  243. \"telephone\": \"{{ renderSetting(2, 'content')|striptags }}\",
  244. \"areaServed\": \"GB\"
  245. }
  246. }
  247. </script>
  248. <div class=\"contact-items contact-items--dark\">
  249. {% include '@theme/common/contact-items.html.twig' %}
  250. {{ forceRenderPcgcHtmlBlockByIdentifier(8)|raw }}
  251. </div>
  252. {% endif %}
  253. {% endblock %}{% block content2 %}
  254. {% if page.content2 %}
  255. {{ allowInlineEditor(page, 'content2')|raw }}
  256. {% endif %}
  257. {% endblock %}
  258. {% block buttons %}
  259. {% if page.ctaText and page.ctaLink %}
  260. <a href=\"{{ page.ctaLink }}\" class=\"button\">{{ page.ctaText }}</a>
  261. {% endif %}
  262. {% endblock %}
  263. {% endcomponent %}
  264. {% endif %}
  265. {# <div class=\"header-block\">
  266. <div class=\"contact-details\">
  267. {{ forceRenderPcgcHtmlBlock('Contact Details')|raw }}
  268. </div>
  269. </div> #}
  270. {% if page.content3 %}
  271. <section class=\"py-40 container cms-area\">{{ allowInlineEditor(page, 'content3')|raw }}</section>
  272. {% endif %}
  273. {% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
  274. {# {{ breadcrumbs(page, domCheckIgnore(app.request.pathinfo) ) }} #}
  275. {{ renderPcgcComponents('Before Content', pageComponents)|raw }}
  276. {{ renderPcgcComponents('After Content', pageComponents)|raw }}
  277. {# {% if page.testimonial %}
  278. <twig:SingleTestimonial :testimonial=\"page.testimonial\" />
  279. {% endif %} #}
  280. {{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
  281. {{ renderPcgcComponents('Before Footer', pageComponents)|raw }}
  282. {% if page.id == 6 %}
  283. {# About page #}
  284. {{ render(controller('App\\\\Controller\\\\WisdomController::index')) }}
  285. {% endif %}
  286. {% endblock %}
  287. {% block stylesheets %}{% endblock %}
  288. ", "@theme/templates/cmspage-light-header.html.twig", "/var/www/html/t/taurushr/templates/themes/theme/templates/cmspage-light-header.html.twig");
  289. }
  290. }
  291. /* @theme/templates/cmspage-light-header.html.twig */
  292. class __TwigTemplate_92e5cc111c2a923c0a624cd923498ab1___12734047601 extends Template
  293. {
  294. private Source $source;
  295. /**
  296. * @var array<string, Template>
  297. */
  298. private array $macros = [];
  299. public function __construct(Environment $env)
  300. {
  301. parent::__construct($env);
  302. $this->source = $this->getSourceContext();
  303. $this->blocks = [
  304. 'outer__block_fallback' => [$this, 'block_outer__block_fallback'],
  305. 'content' => [$this, 'block_content'],
  306. 'content2' => [$this, 'block_content2'],
  307. 'buttons' => [$this, 'block_buttons'],
  308. ];
  309. }
  310. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  311. {
  312. // line 14
  313. return $this->load((isset($context["__parent__"]) || array_key_exists("__parent__", $context) ? $context["__parent__"] : (function () { throw new RuntimeError('Variable "__parent__" does not exist.', 14, $this->source); })()), 14);
  314. }
  315. protected function doDisplay(array $context, array $blocks = []): iterable
  316. {
  317. $macros = $this->macros;
  318. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  319. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/templates/cmspage-light-header.html.twig"));
  320. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  321. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/templates/cmspage-light-header.html.twig"));
  322. yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  323. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  324. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  325. }
  326. /**
  327. * @return iterable<null|scalar|\Stringable>
  328. */
  329. public function block_outer__block_fallback(array $context, array $blocks = []): iterable
  330. {
  331. $macros = $this->macros;
  332. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  333. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  334. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  335. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  336. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  337. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  338. yield from [];
  339. }
  340. // line 15
  341. /**
  342. * @return iterable<null|scalar|\Stringable>
  343. */
  344. public function block_content(array $context, array $blocks = []): iterable
  345. {
  346. $macros = $this->macros;
  347. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  348. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  349. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  350. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  351. yield $this->env->getFunction('allowInlineEditor')->getCallable()((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 15, $this->source); })()), "content");
  352. yield "
  353. ";
  354. // line 16
  355. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 16, $this->source); })()), "id", [], "any", false, false, false, 16) == 17)) {
  356. // line 17
  357. yield " <script type=\"application/ld+json\">
  358. {
  359. \"@context\": \"https://schema.org\",
  360. \"@type\": \"LocalBusiness\",
  361. \"name\": \"";
  362. // line 21
  363. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["sitename"]) || array_key_exists("sitename", $context) ? $context["sitename"] : (function () { throw new RuntimeError('Variable "sitename" does not exist.', 21, $this->source); })()), "html", null, true);
  364. yield "\",
  365. \"telephone\": \"";
  366. // line 22
  367. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(2, "content")), "html", null, true);
  368. yield "\",
  369. \"email\": \"";
  370. // line 23
  371. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(3, "content")), "html", null, true);
  372. yield "\",
  373. \"contactPoint\": {
  374. \"@type\": \"ContactPoint\",
  375. \"contactType\": \"Customer Service\",
  376. \"telephone\": \"";
  377. // line 27
  378. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(2, "content")), "html", null, true);
  379. yield "\",
  380. \"areaServed\": \"GB\"
  381. }
  382. }
  383. </script>
  384. <div class=\"contact-items contact-items--dark\">
  385. ";
  386. // line 34
  387. yield from $this->load("@theme/common/contact-items.html.twig", 34)->unwrap()->yield($context);
  388. // line 35
  389. yield "
  390. ";
  391. // line 36
  392. yield $this->env->getFunction('forceRenderPcgcHtmlBlockByIdentifier')->getCallable()(8);
  393. yield "
  394. </div>
  395. ";
  396. }
  397. // line 39
  398. yield "
  399. ";
  400. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  401. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  402. yield from [];
  403. }
  404. // line 40
  405. /**
  406. * @return iterable<null|scalar|\Stringable>
  407. */
  408. public function block_content2(array $context, array $blocks = []): iterable
  409. {
  410. $macros = $this->macros;
  411. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  412. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content2"));
  413. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  414. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content2"));
  415. // line 41
  416. yield " ";
  417. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 41, $this->source); })()), "content2", [], "any", false, false, false, 41)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  418. // line 42
  419. yield " ";
  420. yield $this->env->getFunction('allowInlineEditor')->getCallable()((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 42, $this->source); })()), "content2");
  421. yield "
  422. ";
  423. }
  424. // line 44
  425. yield " ";
  426. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  427. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  428. yield from [];
  429. }
  430. // line 45
  431. /**
  432. * @return iterable<null|scalar|\Stringable>
  433. */
  434. public function block_buttons(array $context, array $blocks = []): iterable
  435. {
  436. $macros = $this->macros;
  437. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  438. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "buttons"));
  439. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  440. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "buttons"));
  441. // line 46
  442. yield " ";
  443. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 46, $this->source); })()), "ctaText", [], "any", false, false, false, 46) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 46, $this->source); })()), "ctaLink", [], "any", false, false, false, 46))) {
  444. // line 47
  445. yield " <a href=\"";
  446. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 47, $this->source); })()), "ctaLink", [], "any", false, false, false, 47), "html", null, true);
  447. yield "\" class=\"button\">";
  448. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 47, $this->source); })()), "ctaText", [], "any", false, false, false, 47), "html", null, true);
  449. yield "</a>
  450. ";
  451. }
  452. // line 49
  453. yield " ";
  454. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  455. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  456. yield from [];
  457. }
  458. /**
  459. * @codeCoverageIgnore
  460. */
  461. public function getTemplateName(): string
  462. {
  463. return "@theme/templates/cmspage-light-header.html.twig";
  464. }
  465. /**
  466. * @codeCoverageIgnore
  467. */
  468. public function isTraitable(): bool
  469. {
  470. return false;
  471. }
  472. /**
  473. * @codeCoverageIgnore
  474. */
  475. public function getDebugInfo(): array
  476. {
  477. return array ( 548 => 49, 540 => 47, 537 => 46, 524 => 45, 513 => 44, 507 => 42, 504 => 41, 491 => 40, 479 => 39, 473 => 36, 470 => 35, 468 => 34, 458 => 27, 451 => 23, 447 => 22, 443 => 21, 437 => 17, 435 => 16, 419 => 15, 376 => 14, 219 => 79, 204 => 75, 202 => 74, 200 => 73, 196 => 72, 191 => 71, 187 => 67, 182 => 66, 179 => 64, 177 => 63, 174 => 62, 168 => 60, 166 => 59, 163 => 58, 160 => 52, 157 => 51, 142 => 14, 140 => 13, 135 => 11, 132 => 10, 129 => 9, 126 => 8, 113 => 7, 102 => 4, 89 => 3, 66 => 2, 43 => 1,);
  478. }
  479. public function getSourceContext(): Source
  480. {
  481. return new Source("{% extends '@theme/base.html.twig' %}
  482. {% block metatitle %}{{ page.metatitle }}{% endblock %}
  483. {% block metadescription -%}
  484. {{- page.metadescription|striptags|slice(0, 160) -}}
  485. {%- endblock %}
  486. {% block body %}
  487. {% set pagetitle = replaceIfComponentDataExists(pageComponents, 'title') ? replaceIfComponentDataExists(pageComponents, 'title') : page.title %}
  488. {% set subtitle = replaceIfComponentDataExists(pageComponents, 'subtitle') ? replaceIfComponentDataExists(pageComponents, 'subtitle') : page.subtitle %}
  489. {{ component('PageHeroThemed', { page: page, bg: false, title: pagetitle, subtitle: subtitle }) }}
  490. {% if page.content %}
  491. {% component 'PageMainContent' %}
  492. {% block content %}{{ allowInlineEditor(page, 'content')|raw }}
  493. {% if page.id == 17 %}
  494. <script type=\"application/ld+json\">
  495. {
  496. \"@context\": \"https://schema.org\",
  497. \"@type\": \"LocalBusiness\",
  498. \"name\": \"{{ sitename }}\",
  499. \"telephone\": \"{{ renderSetting(2, 'content')|striptags }}\",
  500. \"email\": \"{{ renderSetting(3, 'content')|striptags }}\",
  501. \"contactPoint\": {
  502. \"@type\": \"ContactPoint\",
  503. \"contactType\": \"Customer Service\",
  504. \"telephone\": \"{{ renderSetting(2, 'content')|striptags }}\",
  505. \"areaServed\": \"GB\"
  506. }
  507. }
  508. </script>
  509. <div class=\"contact-items contact-items--dark\">
  510. {% include '@theme/common/contact-items.html.twig' %}
  511. {{ forceRenderPcgcHtmlBlockByIdentifier(8)|raw }}
  512. </div>
  513. {% endif %}
  514. {% endblock %}{% block content2 %}
  515. {% if page.content2 %}
  516. {{ allowInlineEditor(page, 'content2')|raw }}
  517. {% endif %}
  518. {% endblock %}
  519. {% block buttons %}
  520. {% if page.ctaText and page.ctaLink %}
  521. <a href=\"{{ page.ctaLink }}\" class=\"button\">{{ page.ctaText }}</a>
  522. {% endif %}
  523. {% endblock %}
  524. {% endcomponent %}
  525. {% endif %}
  526. {# <div class=\"header-block\">
  527. <div class=\"contact-details\">
  528. {{ forceRenderPcgcHtmlBlock('Contact Details')|raw }}
  529. </div>
  530. </div> #}
  531. {% if page.content3 %}
  532. <section class=\"py-40 container cms-area\">{{ allowInlineEditor(page, 'content3')|raw }}</section>
  533. {% endif %}
  534. {% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
  535. {# {{ breadcrumbs(page, domCheckIgnore(app.request.pathinfo) ) }} #}
  536. {{ renderPcgcComponents('Before Content', pageComponents)|raw }}
  537. {{ renderPcgcComponents('After Content', pageComponents)|raw }}
  538. {# {% if page.testimonial %}
  539. <twig:SingleTestimonial :testimonial=\"page.testimonial\" />
  540. {% endif %} #}
  541. {{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
  542. {{ renderPcgcComponents('Before Footer', pageComponents)|raw }}
  543. {% if page.id == 6 %}
  544. {# About page #}
  545. {{ render(controller('App\\\\Controller\\\\WisdomController::index')) }}
  546. {% endif %}
  547. {% endblock %}
  548. {% block stylesheets %}{% endblock %}
  549. ", "@theme/templates/cmspage-light-header.html.twig", "/var/www/html/t/taurushr/templates/themes/theme/templates/cmspage-light-header.html.twig");
  550. }
  551. }