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