var/cache/dev/twig/fd/fd6d1189dc8bdace9d5a3986e2ea6ca6.php line 116

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-standard.html.twig */
  16. class __TwigTemplate_7157c81709f2ca492c6b84593e916fac 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-standard.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-standard.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. ";
  98. // line 9
  99. 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.', 9, $this->source); })()), "id", [], "any", false, false, false, 9) == 6)) {
  100. // line 10
  101. yield " <script type=\"application/ld+json\">
  102. {
  103. \"@context\": \"https://schema.org\",
  104. \"@type\": \"AboutPage\",
  105. \"name\": \"";
  106. // line 14
  107. 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.', 14, $this->source); })()), "metatitle", [], "any", false, false, false, 14), "html", null, true);
  108. yield "\",
  109. \"url\": \"";
  110. // line 15
  111. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["siteurl"]) || array_key_exists("siteurl", $context) ? $context["siteurl"] : (function () { throw new RuntimeError('Variable "siteurl" does not exist.', 15, $this->source); })()), "html", null, true);
  112. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "request", [], "any", false, false, false, 15), "attributes", [], "any", false, false, false, 15), "get", ["_route"], "method", false, false, false, 15), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "request", [], "any", false, false, false, 15), "attributes", [], "any", false, false, false, 15), "get", ["_route_params"], "method", false, false, false, 15)), "html", null, true);
  113. yield "\",
  114. \"mainEntity\": {
  115. \"@type\": \"LocalBusiness\",
  116. \"name\": \"";
  117. // line 18
  118. 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.', 18, $this->source); })()), "html", null, true);
  119. yield "\",
  120. \"description\": \"";
  121. // line 19
  122. 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.', 19, $this->source); })()), "metadescription", [], "any", false, false, false, 19)), 0, 160), "html", null, true);
  123. yield "\",
  124. \"url\": \"";
  125. // line 20
  126. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["siteurl"]) || array_key_exists("siteurl", $context) ? $context["siteurl"] : (function () { throw new RuntimeError('Variable "siteurl" does not exist.', 20, $this->source); })()), "html", null, true);
  127. yield "\",
  128. \"logo\": {
  129. \"@type\": \"ImageObject\",
  130. \"url\": \"";
  131. // line 23
  132. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["siteurl"]) || array_key_exists("siteurl", $context) ? $context["siteurl"] : (function () { throw new RuntimeError('Variable "siteurl" does not exist.', 23, $this->source); })()), "html", null, true);
  133. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('imageCache')->getCallable()($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo.png"), "cropResize", 560, 120), "html", null, true);
  134. yield "\",
  135. \"width\": 560,
  136. \"height\": 120
  137. },
  138. \"telephone\": \"";
  139. // line 27
  140. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(2, "content")), "html", null, true);
  141. yield "\",
  142. \"email\": \"";
  143. // line 28
  144. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(3, "content")), "html", null, true);
  145. yield "\",
  146. \"areaServed\": [
  147. {
  148. \"@type\": \"Place\",
  149. \"name\": \"London\"
  150. },
  151. {
  152. \"@type\": \"Place\",
  153. \"name\": \"Sheffield\"
  154. },
  155. {
  156. \"@type\": \"Place\",
  157. \"name\": \"Leeds\"
  158. },
  159. {
  160. \"@type\": \"Place\",
  161. \"name\": \"Manchester\"
  162. },
  163. {
  164. \"@type\": \"Place\",
  165. \"name\": \"Nottingham\"
  166. }
  167. ],
  168. \"sameAs\": [
  169. \"";
  170. // line 52
  171. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(4, "content")), "html", null, true);
  172. yield "\",
  173. \"";
  174. // line 53
  175. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(5, "content")), "html", null, true);
  176. yield "\",
  177. \"";
  178. // line 54
  179. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(6, "content")), "html", null, true);
  180. yield "\"
  181. ]
  182. }
  183. }
  184. </script>
  185. ";
  186. }
  187. // line 60
  188. yield "
  189. ";
  190. // line 61
  191. $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.', 61, $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.', 61, $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.', 61, $this->source); })()), "title", [], "any", false, false, false, 61)));
  192. // line 62
  193. yield " ";
  194. $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.', 62, $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.', 62, $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.', 62, $this->source); })()), "subtitle", [], "any", false, false, false, 62)));
  195. // line 63
  196. yield "
  197. ";
  198. // line 64
  199. $_v0 = $this->env->getRuntime("Symfony\\UX\\TwigComponent\\Twig\\ComponentRuntime");
  200. $preRendered = $_v0->preRender("PageHero", Twig\Extension\CoreExtension::toArray(["page" => (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 64, $this->source); })()), "title" => (isset($context["pagetitle"]) || array_key_exists("pagetitle", $context) ? $context["pagetitle"] : (function () { throw new RuntimeError('Variable "pagetitle" does not exist.', 64, $this->source); })()), "subtitle" => (isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 64, $this->source); })())]));
  201. if (null !== $preRendered) {
  202. yield $preRendered;
  203. } else {
  204. $preRenderEvent = $_v0->startEmbedComponent("PageHero", Twig\Extension\CoreExtension::toArray(["page" => (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 64, $this->source); })()), "title" => (isset($context["pagetitle"]) || array_key_exists("pagetitle", $context) ? $context["pagetitle"] : (function () { throw new RuntimeError('Variable "pagetitle" does not exist.', 64, $this->source); })()), "subtitle" => (isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 64, $this->source); })())]), $context, "@theme/templates/cmspage-standard.html.twig", 12412021591);
  205. $embeddedContext = $preRenderEvent->getVariables();
  206. $embeddedContext["__parent__"] = $preRenderEvent->getTemplate();
  207. $embeddedContext["outerBlocks"] ??= new \Symfony\UX\TwigComponent\BlockStack();
  208. $embeddedBlocks = $embeddedContext["outerBlocks"]->convert($blocks, 12412021591);
  209. $this->load("@theme/templates/cmspage-standard.html.twig", 64, "12412021591")->display($embeddedContext, $embeddedBlocks);
  210. $_v0->finishEmbedComponent();
  211. }
  212. // line 69
  213. yield "
  214. ";
  215. // line 70
  216. 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.', 70, $this->source); })()), "content", [], "any", false, false, false, 70)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  217. // line 71
  218. yield " ";
  219. $_v1 = $this->env->getRuntime("Symfony\\UX\\TwigComponent\\Twig\\ComponentRuntime");
  220. $preRendered = $_v1->preRender("PageMainContent", Twig\Extension\CoreExtension::toArray(["image" => (((($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.', 71, $this->source); })()), "image", [], "any", false, false, false, 71)) && $tmp instanceof Markup ? (string) $tmp : $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.', 71, $this->source); })()), "getFullImagePath", [], "any", false, false, false, 71))) : (null))]));
  221. if (null !== $preRendered) {
  222. yield $preRendered;
  223. } else {
  224. $preRenderEvent = $_v1->startEmbedComponent("PageMainContent", Twig\Extension\CoreExtension::toArray(["image" => (((($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.', 71, $this->source); })()), "image", [], "any", false, false, false, 71)) && $tmp instanceof Markup ? (string) $tmp : $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.', 71, $this->source); })()), "getFullImagePath", [], "any", false, false, false, 71))) : (null))]), $context, "@theme/templates/cmspage-standard.html.twig", 5459784011);
  225. $embeddedContext = $preRenderEvent->getVariables();
  226. $embeddedContext["__parent__"] = $preRenderEvent->getTemplate();
  227. $embeddedContext["outerBlocks"] ??= new \Symfony\UX\TwigComponent\BlockStack();
  228. $embeddedBlocks = $embeddedContext["outerBlocks"]->convert($blocks, 5459784011);
  229. $this->load("@theme/templates/cmspage-standard.html.twig", 71, "5459784011")->display($embeddedContext, $embeddedBlocks);
  230. $_v1->finishEmbedComponent();
  231. }
  232. // line 84
  233. yield " ";
  234. }
  235. // line 85
  236. yield " ";
  237. 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.', 85, $this->source); })()), "content3", [], "any", false, false, false, 85) || 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.', 85, $this->source); })()), "landingPageBlocks", [], "any", false, false, false, 85))) {
  238. // line 86
  239. yield " <section class=\"landing-page-blocks\">
  240. ";
  241. // line 87
  242. 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.', 87, $this->source); })()), "content3", [], "any", false, false, false, 87)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  243. // line 88
  244. yield " <div class=\"container landing-page-blocks__content\">
  245. ";
  246. // line 89
  247. 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.', 89, $this->source); })()), "content3");
  248. yield "
  249. </div>
  250. ";
  251. }
  252. // line 92
  253. yield " ";
  254. yield from $this->load("@theme/landing_page_blocks/index.html.twig", 92)->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.', 92, $this->source); })()), "landingPageBlocks", [], "any", false, false, false, 92)]));
  255. // line 93
  256. yield " </section>
  257. ";
  258. }
  259. // line 95
  260. yield "
  261. ";
  262. // line 97
  263. yield " ";
  264. 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.', 97, $this->source); })()));
  265. yield "
  266. ";
  267. // line 98
  268. 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.', 98, $this->source); })()));
  269. yield "
  270. ";
  271. // line 99
  272. 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.', 99, $this->source); })()), "testimonial", [], "any", false, false, false, 99)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  273. // line 100
  274. yield " ";
  275. yield $this->env->getRuntime('Symfony\UX\TwigComponent\Twig\ComponentRuntime')->render("SingleTestimonial", ["testimonial" => 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.', 100, $this->source); })()), "testimonial", [], "any", false, false, false, 100)]);
  276. yield "
  277. ";
  278. }
  279. // line 102
  280. yield " ";
  281. 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.', 102, $this->source); })()));
  282. yield "
  283. ";
  284. // line 103
  285. 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.', 103, $this->source); })()));
  286. yield "
  287. ";
  288. // line 104
  289. 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.', 104, $this->source); })()), "id", [], "any", false, false, false, 104) == 6)) {
  290. // line 105
  291. yield " ";
  292. // line 106
  293. yield " ";
  294. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\WisdomController::index"));
  295. yield "
  296. ";
  297. }
  298. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  299. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  300. yield from [];
  301. }
  302. // line 110
  303. /**
  304. * @return iterable<null|scalar|\Stringable>
  305. */
  306. public function block_stylesheets(array $context, array $blocks = []): iterable
  307. {
  308. $macros = $this->macros;
  309. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  310. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  311. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  312. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  313. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  314. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  315. yield from [];
  316. }
  317. /**
  318. * @codeCoverageIgnore
  319. */
  320. public function getTemplateName(): string
  321. {
  322. return "@theme/templates/cmspage-standard.html.twig";
  323. }
  324. /**
  325. * @codeCoverageIgnore
  326. */
  327. public function isTraitable(): bool
  328. {
  329. return false;
  330. }
  331. /**
  332. * @codeCoverageIgnore
  333. */
  334. public function getDebugInfo(): array
  335. {
  336. return array ( 338 => 110, 323 => 106, 321 => 105, 319 => 104, 315 => 103, 310 => 102, 304 => 100, 302 => 99, 298 => 98, 293 => 97, 290 => 95, 286 => 93, 283 => 92, 277 => 89, 274 => 88, 272 => 87, 269 => 86, 266 => 85, 263 => 84, 248 => 71, 246 => 70, 243 => 69, 229 => 64, 226 => 63, 223 => 62, 221 => 61, 218 => 60, 209 => 54, 205 => 53, 201 => 52, 174 => 28, 170 => 27, 162 => 23, 156 => 20, 152 => 19, 148 => 18, 141 => 15, 137 => 14, 131 => 10, 129 => 9, 126 => 8, 113 => 7, 102 => 4, 89 => 3, 66 => 2, 43 => 1,);
  337. }
  338. public function getSourceContext(): Source
  339. {
  340. return new Source("{% extends '@theme/base.html.twig' %}
  341. {% block metatitle %}{{ page.metatitle }}{% endblock %}
  342. {% block metadescription -%}
  343. {{- page.metadescription|striptags|slice(0, 160) -}}
  344. {%- endblock %}
  345. {% block body %}
  346. {% if page.id == 6 %}
  347. <script type=\"application/ld+json\">
  348. {
  349. \"@context\": \"https://schema.org\",
  350. \"@type\": \"AboutPage\",
  351. \"name\": \"{{ page.metatitle }}\",
  352. \"url\": \"{{ siteurl }}{{ path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')) }}\",
  353. \"mainEntity\": {
  354. \"@type\": \"LocalBusiness\",
  355. \"name\": \"{{ sitename }}\",
  356. \"description\": \"{{ page.metadescription|striptags|slice(0, 160) }}\",
  357. \"url\": \"{{ siteurl }}\",
  358. \"logo\": {
  359. \"@type\": \"ImageObject\",
  360. \"url\": \"{{ siteurl }}{{ imageCache(asset('build/images/logo.png'), 'cropResize', 560, 120) }}\",
  361. \"width\": 560,
  362. \"height\": 120
  363. },
  364. \"telephone\": \"{{ renderSetting(2, 'content')|striptags }}\",
  365. \"email\": \"{{ renderSetting(3, 'content')|striptags }}\",
  366. \"areaServed\": [
  367. {
  368. \"@type\": \"Place\",
  369. \"name\": \"London\"
  370. },
  371. {
  372. \"@type\": \"Place\",
  373. \"name\": \"Sheffield\"
  374. },
  375. {
  376. \"@type\": \"Place\",
  377. \"name\": \"Leeds\"
  378. },
  379. {
  380. \"@type\": \"Place\",
  381. \"name\": \"Manchester\"
  382. },
  383. {
  384. \"@type\": \"Place\",
  385. \"name\": \"Nottingham\"
  386. }
  387. ],
  388. \"sameAs\": [
  389. \"{{ renderSetting(4, 'content')|striptags }}\",
  390. \"{{ renderSetting(5, 'content')|striptags }}\",
  391. \"{{ renderSetting(6, 'content')|striptags }}\"
  392. ]
  393. }
  394. }
  395. </script>
  396. {% endif %}
  397. {% set pagetitle = replaceIfComponentDataExists(pageComponents, 'title') ? replaceIfComponentDataExists(pageComponents, 'title') : page.title %}
  398. {% set subtitle = replaceIfComponentDataExists(pageComponents, 'subtitle') ? replaceIfComponentDataExists(pageComponents, 'subtitle') : page.subtitle %}
  399. {% component 'PageHero' with { page: page, title: pagetitle, subtitle: subtitle } %}
  400. {% block content %}<a href=\"{{ path('router', { slug: 'contact' }) }}\" class=\"button\"
  401. >How can we help you today?</a
  402. >
  403. {% endblock %}{% endcomponent %}
  404. {% if page.content %}
  405. {% component 'PageMainContent' with { image: (page.image ? '/' ~ page.getFullImagePath : null) } %}
  406. {% block content %}{{ allowInlineEditor(page, 'content')|raw }}
  407. {% endblock %}{% block content2 %}
  408. {% if page.content2 %}
  409. {{ allowInlineEditor(page, 'content2')|raw }}
  410. {% endif %}
  411. {% endblock %}
  412. {% block buttons %}
  413. {% if page.ctaText and page.ctaLink %}
  414. <a href=\"{{ page.ctaLink }}\" class=\"button\">{{ page.ctaText }}</a>
  415. {% endif %}
  416. {% endblock %}
  417. {% endcomponent %}
  418. {% endif %}
  419. {% if page.content3 or page.landingPageBlocks %}
  420. <section class=\"landing-page-blocks\">
  421. {% if page.content3 %}
  422. <div class=\"container landing-page-blocks__content\">
  423. {{ allowInlineEditor(page, 'content3')|raw }}
  424. </div>
  425. {% endif %}
  426. {% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
  427. </section>
  428. {% endif %}
  429. {# {{ breadcrumbs(page, domCheckIgnore(app.request.pathinfo) ) }} #}
  430. {{ renderPcgcComponents('Before Content', pageComponents)|raw }}
  431. {{ renderPcgcComponents('After Content', pageComponents)|raw }}
  432. {% if page.testimonial %}
  433. {{ component('SingleTestimonial', { testimonial: page.testimonial }) }}
  434. {% endif %}
  435. {{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
  436. {{ renderPcgcComponents('Before Footer', pageComponents)|raw }}
  437. {% if page.id == 6 %}
  438. {# About page #}
  439. {{ render(controller('App\\\\Controller\\\\WisdomController::index')) }}
  440. {% endif %}
  441. {% endblock %}
  442. {% block stylesheets %}{% endblock %}
  443. ", "@theme/templates/cmspage-standard.html.twig", "/var/www/html/t/taurushr/templates/themes/theme/templates/cmspage-standard.html.twig");
  444. }
  445. }
  446. /* @theme/templates/cmspage-standard.html.twig */
  447. class __TwigTemplate_7157c81709f2ca492c6b84593e916fac___12412021591 extends Template
  448. {
  449. private Source $source;
  450. /**
  451. * @var array<string, Template>
  452. */
  453. private array $macros = [];
  454. public function __construct(Environment $env)
  455. {
  456. parent::__construct($env);
  457. $this->source = $this->getSourceContext();
  458. $this->blocks = [
  459. 'outer__block_fallback' => [$this, 'block_outer__block_fallback'],
  460. 'content' => [$this, 'block_content'],
  461. ];
  462. }
  463. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  464. {
  465. // line 64
  466. return $this->load((isset($context["__parent__"]) || array_key_exists("__parent__", $context) ? $context["__parent__"] : (function () { throw new RuntimeError('Variable "__parent__" does not exist.', 64, $this->source); })()), 64);
  467. }
  468. protected function doDisplay(array $context, array $blocks = []): iterable
  469. {
  470. $macros = $this->macros;
  471. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  472. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/templates/cmspage-standard.html.twig"));
  473. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  474. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/templates/cmspage-standard.html.twig"));
  475. yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  476. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  477. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  478. }
  479. /**
  480. * @return iterable<null|scalar|\Stringable>
  481. */
  482. public function block_outer__block_fallback(array $context, array $blocks = []): iterable
  483. {
  484. $macros = $this->macros;
  485. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  486. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  487. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  488. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  489. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  490. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  491. yield from [];
  492. }
  493. // line 65
  494. /**
  495. * @return iterable<null|scalar|\Stringable>
  496. */
  497. public function block_content(array $context, array $blocks = []): iterable
  498. {
  499. $macros = $this->macros;
  500. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  501. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  502. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  503. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  504. yield "<a href=\"";
  505. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("router", ["slug" => "contact"]);
  506. yield "\" class=\"button\"
  507. >How can we help you today?</a
  508. >
  509. ";
  510. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  511. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  512. yield from [];
  513. }
  514. /**
  515. * @codeCoverageIgnore
  516. */
  517. public function getTemplateName(): string
  518. {
  519. return "@theme/templates/cmspage-standard.html.twig";
  520. }
  521. /**
  522. * @codeCoverageIgnore
  523. */
  524. public function isTraitable(): bool
  525. {
  526. return false;
  527. }
  528. /**
  529. * @codeCoverageIgnore
  530. */
  531. public function getDebugInfo(): array
  532. {
  533. return array ( 567 => 65, 524 => 64, 338 => 110, 323 => 106, 321 => 105, 319 => 104, 315 => 103, 310 => 102, 304 => 100, 302 => 99, 298 => 98, 293 => 97, 290 => 95, 286 => 93, 283 => 92, 277 => 89, 274 => 88, 272 => 87, 269 => 86, 266 => 85, 263 => 84, 248 => 71, 246 => 70, 243 => 69, 229 => 64, 226 => 63, 223 => 62, 221 => 61, 218 => 60, 209 => 54, 205 => 53, 201 => 52, 174 => 28, 170 => 27, 162 => 23, 156 => 20, 152 => 19, 148 => 18, 141 => 15, 137 => 14, 131 => 10, 129 => 9, 126 => 8, 113 => 7, 102 => 4, 89 => 3, 66 => 2, 43 => 1,);
  534. }
  535. public function getSourceContext(): Source
  536. {
  537. return new Source("{% extends '@theme/base.html.twig' %}
  538. {% block metatitle %}{{ page.metatitle }}{% endblock %}
  539. {% block metadescription -%}
  540. {{- page.metadescription|striptags|slice(0, 160) -}}
  541. {%- endblock %}
  542. {% block body %}
  543. {% if page.id == 6 %}
  544. <script type=\"application/ld+json\">
  545. {
  546. \"@context\": \"https://schema.org\",
  547. \"@type\": \"AboutPage\",
  548. \"name\": \"{{ page.metatitle }}\",
  549. \"url\": \"{{ siteurl }}{{ path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')) }}\",
  550. \"mainEntity\": {
  551. \"@type\": \"LocalBusiness\",
  552. \"name\": \"{{ sitename }}\",
  553. \"description\": \"{{ page.metadescription|striptags|slice(0, 160) }}\",
  554. \"url\": \"{{ siteurl }}\",
  555. \"logo\": {
  556. \"@type\": \"ImageObject\",
  557. \"url\": \"{{ siteurl }}{{ imageCache(asset('build/images/logo.png'), 'cropResize', 560, 120) }}\",
  558. \"width\": 560,
  559. \"height\": 120
  560. },
  561. \"telephone\": \"{{ renderSetting(2, 'content')|striptags }}\",
  562. \"email\": \"{{ renderSetting(3, 'content')|striptags }}\",
  563. \"areaServed\": [
  564. {
  565. \"@type\": \"Place\",
  566. \"name\": \"London\"
  567. },
  568. {
  569. \"@type\": \"Place\",
  570. \"name\": \"Sheffield\"
  571. },
  572. {
  573. \"@type\": \"Place\",
  574. \"name\": \"Leeds\"
  575. },
  576. {
  577. \"@type\": \"Place\",
  578. \"name\": \"Manchester\"
  579. },
  580. {
  581. \"@type\": \"Place\",
  582. \"name\": \"Nottingham\"
  583. }
  584. ],
  585. \"sameAs\": [
  586. \"{{ renderSetting(4, 'content')|striptags }}\",
  587. \"{{ renderSetting(5, 'content')|striptags }}\",
  588. \"{{ renderSetting(6, 'content')|striptags }}\"
  589. ]
  590. }
  591. }
  592. </script>
  593. {% endif %}
  594. {% set pagetitle = replaceIfComponentDataExists(pageComponents, 'title') ? replaceIfComponentDataExists(pageComponents, 'title') : page.title %}
  595. {% set subtitle = replaceIfComponentDataExists(pageComponents, 'subtitle') ? replaceIfComponentDataExists(pageComponents, 'subtitle') : page.subtitle %}
  596. {% component 'PageHero' with { page: page, title: pagetitle, subtitle: subtitle } %}
  597. {% block content %}<a href=\"{{ path('router', { slug: 'contact' }) }}\" class=\"button\"
  598. >How can we help you today?</a
  599. >
  600. {% endblock %}{% endcomponent %}
  601. {% if page.content %}
  602. {% component 'PageMainContent' with { image: (page.image ? '/' ~ page.getFullImagePath : null) } %}
  603. {% block content %}{{ allowInlineEditor(page, 'content')|raw }}
  604. {% endblock %}{% block content2 %}
  605. {% if page.content2 %}
  606. {{ allowInlineEditor(page, 'content2')|raw }}
  607. {% endif %}
  608. {% endblock %}
  609. {% block buttons %}
  610. {% if page.ctaText and page.ctaLink %}
  611. <a href=\"{{ page.ctaLink }}\" class=\"button\">{{ page.ctaText }}</a>
  612. {% endif %}
  613. {% endblock %}
  614. {% endcomponent %}
  615. {% endif %}
  616. {% if page.content3 or page.landingPageBlocks %}
  617. <section class=\"landing-page-blocks\">
  618. {% if page.content3 %}
  619. <div class=\"container landing-page-blocks__content\">
  620. {{ allowInlineEditor(page, 'content3')|raw }}
  621. </div>
  622. {% endif %}
  623. {% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
  624. </section>
  625. {% endif %}
  626. {# {{ breadcrumbs(page, domCheckIgnore(app.request.pathinfo) ) }} #}
  627. {{ renderPcgcComponents('Before Content', pageComponents)|raw }}
  628. {{ renderPcgcComponents('After Content', pageComponents)|raw }}
  629. {% if page.testimonial %}
  630. {{ component('SingleTestimonial', { testimonial: page.testimonial }) }}
  631. {% endif %}
  632. {{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
  633. {{ renderPcgcComponents('Before Footer', pageComponents)|raw }}
  634. {% if page.id == 6 %}
  635. {# About page #}
  636. {{ render(controller('App\\\\Controller\\\\WisdomController::index')) }}
  637. {% endif %}
  638. {% endblock %}
  639. {% block stylesheets %}{% endblock %}
  640. ", "@theme/templates/cmspage-standard.html.twig", "/var/www/html/t/taurushr/templates/themes/theme/templates/cmspage-standard.html.twig");
  641. }
  642. }
  643. /* @theme/templates/cmspage-standard.html.twig */
  644. class __TwigTemplate_7157c81709f2ca492c6b84593e916fac___5459784011 extends Template
  645. {
  646. private Source $source;
  647. /**
  648. * @var array<string, Template>
  649. */
  650. private array $macros = [];
  651. public function __construct(Environment $env)
  652. {
  653. parent::__construct($env);
  654. $this->source = $this->getSourceContext();
  655. $this->blocks = [
  656. 'outer__block_fallback' => [$this, 'block_outer__block_fallback'],
  657. 'content' => [$this, 'block_content'],
  658. 'content2' => [$this, 'block_content2'],
  659. 'buttons' => [$this, 'block_buttons'],
  660. ];
  661. }
  662. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  663. {
  664. // line 71
  665. return $this->load((isset($context["__parent__"]) || array_key_exists("__parent__", $context) ? $context["__parent__"] : (function () { throw new RuntimeError('Variable "__parent__" does not exist.', 71, $this->source); })()), 71);
  666. }
  667. protected function doDisplay(array $context, array $blocks = []): iterable
  668. {
  669. $macros = $this->macros;
  670. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  671. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/templates/cmspage-standard.html.twig"));
  672. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  673. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/templates/cmspage-standard.html.twig"));
  674. yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  675. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  676. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  677. }
  678. /**
  679. * @return iterable<null|scalar|\Stringable>
  680. */
  681. public function block_outer__block_fallback(array $context, array $blocks = []): iterable
  682. {
  683. $macros = $this->macros;
  684. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  685. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  686. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  687. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  688. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  689. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  690. yield from [];
  691. }
  692. // line 72
  693. /**
  694. * @return iterable<null|scalar|\Stringable>
  695. */
  696. public function block_content(array $context, array $blocks = []): iterable
  697. {
  698. $macros = $this->macros;
  699. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  700. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  701. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  702. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  703. 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.', 72, $this->source); })()), "content");
  704. yield "
  705. ";
  706. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  707. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  708. yield from [];
  709. }
  710. // line 73
  711. /**
  712. * @return iterable<null|scalar|\Stringable>
  713. */
  714. public function block_content2(array $context, array $blocks = []): iterable
  715. {
  716. $macros = $this->macros;
  717. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  718. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content2"));
  719. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  720. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content2"));
  721. // line 74
  722. yield " ";
  723. 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.', 74, $this->source); })()), "content2", [], "any", false, false, false, 74)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  724. // line 75
  725. yield " ";
  726. 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.', 75, $this->source); })()), "content2");
  727. yield "
  728. ";
  729. }
  730. // line 77
  731. yield " ";
  732. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  733. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  734. yield from [];
  735. }
  736. // line 78
  737. /**
  738. * @return iterable<null|scalar|\Stringable>
  739. */
  740. public function block_buttons(array $context, array $blocks = []): iterable
  741. {
  742. $macros = $this->macros;
  743. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  744. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "buttons"));
  745. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  746. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "buttons"));
  747. // line 79
  748. yield " ";
  749. 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.', 79, $this->source); })()), "ctaText", [], "any", false, false, false, 79) && 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.', 79, $this->source); })()), "ctaLink", [], "any", false, false, false, 79))) {
  750. // line 80
  751. yield " <a href=\"";
  752. 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.', 80, $this->source); })()), "ctaLink", [], "any", false, false, false, 80), "html", null, true);
  753. yield "\" class=\"button\">";
  754. 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.', 80, $this->source); })()), "ctaText", [], "any", false, false, false, 80), "html", null, true);
  755. yield "</a>
  756. ";
  757. }
  758. // line 82
  759. yield " ";
  760. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  761. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  762. yield from [];
  763. }
  764. /**
  765. * @codeCoverageIgnore
  766. */
  767. public function getTemplateName(): string
  768. {
  769. return "@theme/templates/cmspage-standard.html.twig";
  770. }
  771. /**
  772. * @codeCoverageIgnore
  773. */
  774. public function isTraitable(): bool
  775. {
  776. return false;
  777. }
  778. /**
  779. * @codeCoverageIgnore
  780. */
  781. public function getDebugInfo(): array
  782. {
  783. return array ( 886 => 82, 878 => 80, 875 => 79, 862 => 78, 851 => 77, 845 => 75, 842 => 74, 829 => 73, 804 => 72, 761 => 71, 567 => 65, 524 => 64, 338 => 110, 323 => 106, 321 => 105, 319 => 104, 315 => 103, 310 => 102, 304 => 100, 302 => 99, 298 => 98, 293 => 97, 290 => 95, 286 => 93, 283 => 92, 277 => 89, 274 => 88, 272 => 87, 269 => 86, 266 => 85, 263 => 84, 248 => 71, 246 => 70, 243 => 69, 229 => 64, 226 => 63, 223 => 62, 221 => 61, 218 => 60, 209 => 54, 205 => 53, 201 => 52, 174 => 28, 170 => 27, 162 => 23, 156 => 20, 152 => 19, 148 => 18, 141 => 15, 137 => 14, 131 => 10, 129 => 9, 126 => 8, 113 => 7, 102 => 4, 89 => 3, 66 => 2, 43 => 1,);
  784. }
  785. public function getSourceContext(): Source
  786. {
  787. return new Source("{% extends '@theme/base.html.twig' %}
  788. {% block metatitle %}{{ page.metatitle }}{% endblock %}
  789. {% block metadescription -%}
  790. {{- page.metadescription|striptags|slice(0, 160) -}}
  791. {%- endblock %}
  792. {% block body %}
  793. {% if page.id == 6 %}
  794. <script type=\"application/ld+json\">
  795. {
  796. \"@context\": \"https://schema.org\",
  797. \"@type\": \"AboutPage\",
  798. \"name\": \"{{ page.metatitle }}\",
  799. \"url\": \"{{ siteurl }}{{ path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')) }}\",
  800. \"mainEntity\": {
  801. \"@type\": \"LocalBusiness\",
  802. \"name\": \"{{ sitename }}\",
  803. \"description\": \"{{ page.metadescription|striptags|slice(0, 160) }}\",
  804. \"url\": \"{{ siteurl }}\",
  805. \"logo\": {
  806. \"@type\": \"ImageObject\",
  807. \"url\": \"{{ siteurl }}{{ imageCache(asset('build/images/logo.png'), 'cropResize', 560, 120) }}\",
  808. \"width\": 560,
  809. \"height\": 120
  810. },
  811. \"telephone\": \"{{ renderSetting(2, 'content')|striptags }}\",
  812. \"email\": \"{{ renderSetting(3, 'content')|striptags }}\",
  813. \"areaServed\": [
  814. {
  815. \"@type\": \"Place\",
  816. \"name\": \"London\"
  817. },
  818. {
  819. \"@type\": \"Place\",
  820. \"name\": \"Sheffield\"
  821. },
  822. {
  823. \"@type\": \"Place\",
  824. \"name\": \"Leeds\"
  825. },
  826. {
  827. \"@type\": \"Place\",
  828. \"name\": \"Manchester\"
  829. },
  830. {
  831. \"@type\": \"Place\",
  832. \"name\": \"Nottingham\"
  833. }
  834. ],
  835. \"sameAs\": [
  836. \"{{ renderSetting(4, 'content')|striptags }}\",
  837. \"{{ renderSetting(5, 'content')|striptags }}\",
  838. \"{{ renderSetting(6, 'content')|striptags }}\"
  839. ]
  840. }
  841. }
  842. </script>
  843. {% endif %}
  844. {% set pagetitle = replaceIfComponentDataExists(pageComponents, 'title') ? replaceIfComponentDataExists(pageComponents, 'title') : page.title %}
  845. {% set subtitle = replaceIfComponentDataExists(pageComponents, 'subtitle') ? replaceIfComponentDataExists(pageComponents, 'subtitle') : page.subtitle %}
  846. {% component 'PageHero' with { page: page, title: pagetitle, subtitle: subtitle } %}
  847. {% block content %}<a href=\"{{ path('router', { slug: 'contact' }) }}\" class=\"button\"
  848. >How can we help you today?</a
  849. >
  850. {% endblock %}{% endcomponent %}
  851. {% if page.content %}
  852. {% component 'PageMainContent' with { image: (page.image ? '/' ~ page.getFullImagePath : null) } %}
  853. {% block content %}{{ allowInlineEditor(page, 'content')|raw }}
  854. {% endblock %}{% block content2 %}
  855. {% if page.content2 %}
  856. {{ allowInlineEditor(page, 'content2')|raw }}
  857. {% endif %}
  858. {% endblock %}
  859. {% block buttons %}
  860. {% if page.ctaText and page.ctaLink %}
  861. <a href=\"{{ page.ctaLink }}\" class=\"button\">{{ page.ctaText }}</a>
  862. {% endif %}
  863. {% endblock %}
  864. {% endcomponent %}
  865. {% endif %}
  866. {% if page.content3 or page.landingPageBlocks %}
  867. <section class=\"landing-page-blocks\">
  868. {% if page.content3 %}
  869. <div class=\"container landing-page-blocks__content\">
  870. {{ allowInlineEditor(page, 'content3')|raw }}
  871. </div>
  872. {% endif %}
  873. {% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
  874. </section>
  875. {% endif %}
  876. {# {{ breadcrumbs(page, domCheckIgnore(app.request.pathinfo) ) }} #}
  877. {{ renderPcgcComponents('Before Content', pageComponents)|raw }}
  878. {{ renderPcgcComponents('After Content', pageComponents)|raw }}
  879. {% if page.testimonial %}
  880. {{ component('SingleTestimonial', { testimonial: page.testimonial }) }}
  881. {% endif %}
  882. {{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
  883. {{ renderPcgcComponents('Before Footer', pageComponents)|raw }}
  884. {% if page.id == 6 %}
  885. {# About page #}
  886. {{ render(controller('App\\\\Controller\\\\WisdomController::index')) }}
  887. {% endif %}
  888. {% endblock %}
  889. {% block stylesheets %}{% endblock %}
  890. ", "@theme/templates/cmspage-standard.html.twig", "/var/www/html/t/taurushr/templates/themes/theme/templates/cmspage-standard.html.twig");
  891. }
  892. }