var/cache/dev/twig/1b/1bc505265dec917d7cd407549b050e1d.php line 46

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