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

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