var/cache/dev/twig/e2/e2b7f19f5025aedc97fd6737075268d9.php line 56

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-resources.html.twig */
  16. class __TwigTemplate_133fbfb7879625f509ca27dcfa47eb3f 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-resources.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-resources.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. $_v0 = $this->env->getRuntime("Symfony\\UX\\TwigComponent\\Twig\\ComponentRuntime");
  106. $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.', 11, $this->source); })()), "title" => (isset($context["pagetitle"]) || array_key_exists("pagetitle", $context) ? $context["pagetitle"] : (function () { throw new RuntimeError('Variable "pagetitle" does not exist.', 11, $this->source); })()), "subtitle" => (isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 11, $this->source); })())]));
  107. if (null !== $preRendered) {
  108. yield $preRendered;
  109. } else {
  110. $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.', 11, $this->source); })()), "title" => (isset($context["pagetitle"]) || array_key_exists("pagetitle", $context) ? $context["pagetitle"] : (function () { throw new RuntimeError('Variable "pagetitle" does not exist.', 11, $this->source); })()), "subtitle" => (isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 11, $this->source); })())]), $context, "@theme/templates/cmspage-resources.html.twig", 15694459991);
  111. $embeddedContext = $preRenderEvent->getVariables();
  112. $embeddedContext["__parent__"] = $preRenderEvent->getTemplate();
  113. $embeddedContext["outerBlocks"] ??= new \Symfony\UX\TwigComponent\BlockStack();
  114. $embeddedBlocks = $embeddedContext["outerBlocks"]->convert($blocks, 15694459991);
  115. $this->load("@theme/templates/cmspage-resources.html.twig", 11, "15694459991")->display($embeddedContext, $embeddedBlocks);
  116. $_v0->finishEmbedComponent();
  117. }
  118. // line 16
  119. yield "
  120. ";
  121. // line 17
  122. 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); })()), "content", [], "any", false, false, false, 17)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  123. // line 18
  124. yield " ";
  125. $_v1 = $this->env->getRuntime("Symfony\\UX\\TwigComponent\\Twig\\ComponentRuntime");
  126. $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.', 18, $this->source); })()), "image", [], "any", false, false, false, 18)) && $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.', 18, $this->source); })()), "getFullImagePath", [], "any", false, false, false, 18))) : (null))]));
  127. if (null !== $preRendered) {
  128. yield $preRendered;
  129. } else {
  130. $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.', 18, $this->source); })()), "image", [], "any", false, false, false, 18)) && $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.', 18, $this->source); })()), "getFullImagePath", [], "any", false, false, false, 18))) : (null))]), $context, "@theme/templates/cmspage-resources.html.twig", 6097061871);
  131. $embeddedContext = $preRenderEvent->getVariables();
  132. $embeddedContext["__parent__"] = $preRenderEvent->getTemplate();
  133. $embeddedContext["outerBlocks"] ??= new \Symfony\UX\TwigComponent\BlockStack();
  134. $embeddedBlocks = $embeddedContext["outerBlocks"]->convert($blocks, 6097061871);
  135. $this->load("@theme/templates/cmspage-resources.html.twig", 18, "6097061871")->display($embeddedContext, $embeddedBlocks);
  136. $_v1->finishEmbedComponent();
  137. }
  138. // line 29
  139. yield " ";
  140. }
  141. // line 30
  142. yield "
  143. <div class=\"header-block\">
  144. <div class=\"contact-details\">
  145. ";
  146. // line 33
  147. yield $this->env->getFunction('forceRenderPcgcHtmlBlock')->getCallable()("Contact Details");
  148. yield "
  149. </div>
  150. </div>
  151. ";
  152. // line 37
  153. 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.', 37, $this->source); })()), "content3");
  154. yield "
  155. ";
  156. // line 39
  157. yield $this->env->getFunction('renderPcgcComponents')->getCallable()("Resources", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 39, $this->source); })()));
  158. yield "
  159. ";
  160. // line 41
  161. yield from $this->load("@theme/landing_page_blocks/index.html.twig", 41)->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.', 41, $this->source); })()), "landingPageBlocks", [], "any", false, false, false, 41)]));
  162. // line 42
  163. yield "
  164. ";
  165. // line 43
  166. 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.', 43, $this->source); })()), "testimonial", [], "any", false, false, false, 43)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  167. // line 44
  168. yield " ";
  169. 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.', 44, $this->source); })()), "testimonial", [], "any", false, false, false, 44)]);
  170. yield "
  171. ";
  172. }
  173. // line 46
  174. yield " ";
  175. 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.', 46, $this->source); })()));
  176. yield "
  177. ";
  178. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  179. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  180. yield from [];
  181. }
  182. // line 49
  183. /**
  184. * @return iterable<null|scalar|\Stringable>
  185. */
  186. public function block_stylesheets(array $context, array $blocks = []): iterable
  187. {
  188. $macros = $this->macros;
  189. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  190. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  191. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  192. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  193. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  194. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  195. yield from [];
  196. }
  197. /**
  198. * @codeCoverageIgnore
  199. */
  200. public function getTemplateName(): string
  201. {
  202. return "@theme/templates/cmspage-resources.html.twig";
  203. }
  204. /**
  205. * @codeCoverageIgnore
  206. */
  207. public function isTraitable(): bool
  208. {
  209. return false;
  210. }
  211. /**
  212. * @codeCoverageIgnore
  213. */
  214. public function getDebugInfo(): array
  215. {
  216. return array ( 221 => 49, 207 => 46, 201 => 44, 199 => 43, 196 => 42, 194 => 41, 189 => 39, 184 => 37, 177 => 33, 172 => 30, 169 => 29, 154 => 18, 152 => 17, 149 => 16, 135 => 11, 132 => 10, 129 => 9, 126 => 8, 113 => 7, 102 => 4, 89 => 3, 66 => 2, 43 => 1,);
  217. }
  218. public function getSourceContext(): Source
  219. {
  220. return new Source("{% extends '@theme/base.html.twig' %}
  221. {% block metatitle %}{{ page.metatitle }}{% endblock %}
  222. {% block metadescription -%}
  223. {{- page.metadescription|striptags|slice(0, 160) -}}
  224. {%- endblock %}
  225. {% block body %}
  226. {% set pagetitle = replaceIfComponentDataExists(pageComponents, 'title') ? replaceIfComponentDataExists(pageComponents, 'title') : page.title %}
  227. {% set subtitle = replaceIfComponentDataExists(pageComponents, 'subtitle') ? replaceIfComponentDataExists(pageComponents, 'subtitle') : page.subtitle %}
  228. {% component 'PageHero' with { page: page, title: pagetitle, subtitle: subtitle } %}
  229. {% block content %}<a href=\"{{ path('router', { slug: 'contact' }) }}\" class=\"button\"
  230. >How can we help you today?</a
  231. >
  232. {% endblock %}{% endcomponent %}
  233. {% if page.content %}
  234. {% component 'PageMainContent' with { image: (page.image ? '/' ~ page.getFullImagePath : null) } %}
  235. {% block content %}{{ allowInlineEditor(page, 'content')|raw }}
  236. {% endblock %}{% block content2 %}
  237. {{ renderPcgcComponents('Filters', pageComponents)|raw }}
  238. {% endblock %}
  239. {% block buttons %}
  240. {% if page.ctaText and page.ctaLink %}
  241. <a href=\"{{ page.ctaLink }}\" class=\"button\">{{ page.ctaText }}</a>
  242. {% endif %}
  243. {% endblock %}
  244. {% endcomponent %}
  245. {% endif %}
  246. <div class=\"header-block\">
  247. <div class=\"contact-details\">
  248. {{ forceRenderPcgcHtmlBlock('Contact Details')|raw }}
  249. </div>
  250. </div>
  251. {{ allowInlineEditor(page, 'content3')|raw }}
  252. {{ renderPcgcComponents('Resources', pageComponents)|raw }}
  253. {% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
  254. {% if page.testimonial %}
  255. {{ component('SingleTestimonial', { testimonial: page.testimonial }) }}
  256. {% endif %}
  257. {{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
  258. {% endblock %}
  259. {% block stylesheets %}{% endblock %}
  260. ", "@theme/templates/cmspage-resources.html.twig", "/var/www/html/t/taurushr/templates/themes/theme/templates/cmspage-resources.html.twig");
  261. }
  262. }
  263. /* @theme/templates/cmspage-resources.html.twig */
  264. class __TwigTemplate_133fbfb7879625f509ca27dcfa47eb3f___15694459991 extends Template
  265. {
  266. private Source $source;
  267. /**
  268. * @var array<string, Template>
  269. */
  270. private array $macros = [];
  271. public function __construct(Environment $env)
  272. {
  273. parent::__construct($env);
  274. $this->source = $this->getSourceContext();
  275. $this->blocks = [
  276. 'outer__block_fallback' => [$this, 'block_outer__block_fallback'],
  277. 'content' => [$this, 'block_content'],
  278. ];
  279. }
  280. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  281. {
  282. // line 11
  283. return $this->load((isset($context["__parent__"]) || array_key_exists("__parent__", $context) ? $context["__parent__"] : (function () { throw new RuntimeError('Variable "__parent__" does not exist.', 11, $this->source); })()), 11);
  284. }
  285. protected function doDisplay(array $context, array $blocks = []): iterable
  286. {
  287. $macros = $this->macros;
  288. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  289. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/templates/cmspage-resources.html.twig"));
  290. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  291. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/templates/cmspage-resources.html.twig"));
  292. yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  293. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  294. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  295. }
  296. /**
  297. * @return iterable<null|scalar|\Stringable>
  298. */
  299. public function block_outer__block_fallback(array $context, array $blocks = []): iterable
  300. {
  301. $macros = $this->macros;
  302. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  303. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  304. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  305. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  306. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  307. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  308. yield from [];
  309. }
  310. // line 12
  311. /**
  312. * @return iterable<null|scalar|\Stringable>
  313. */
  314. public function block_content(array $context, array $blocks = []): iterable
  315. {
  316. $macros = $this->macros;
  317. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  318. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  319. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  320. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  321. yield "<a href=\"";
  322. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("router", ["slug" => "contact"]);
  323. yield "\" class=\"button\"
  324. >How can we help you today?</a
  325. >
  326. ";
  327. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  328. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  329. yield from [];
  330. }
  331. /**
  332. * @codeCoverageIgnore
  333. */
  334. public function getTemplateName(): string
  335. {
  336. return "@theme/templates/cmspage-resources.html.twig";
  337. }
  338. /**
  339. * @codeCoverageIgnore
  340. */
  341. public function isTraitable(): bool
  342. {
  343. return false;
  344. }
  345. /**
  346. * @codeCoverageIgnore
  347. */
  348. public function getDebugInfo(): array
  349. {
  350. return array ( 389 => 12, 346 => 11, 221 => 49, 207 => 46, 201 => 44, 199 => 43, 196 => 42, 194 => 41, 189 => 39, 184 => 37, 177 => 33, 172 => 30, 169 => 29, 154 => 18, 152 => 17, 149 => 16, 135 => 11, 132 => 10, 129 => 9, 126 => 8, 113 => 7, 102 => 4, 89 => 3, 66 => 2, 43 => 1,);
  351. }
  352. public function getSourceContext(): Source
  353. {
  354. return new Source("{% extends '@theme/base.html.twig' %}
  355. {% block metatitle %}{{ page.metatitle }}{% endblock %}
  356. {% block metadescription -%}
  357. {{- page.metadescription|striptags|slice(0, 160) -}}
  358. {%- endblock %}
  359. {% block body %}
  360. {% set pagetitle = replaceIfComponentDataExists(pageComponents, 'title') ? replaceIfComponentDataExists(pageComponents, 'title') : page.title %}
  361. {% set subtitle = replaceIfComponentDataExists(pageComponents, 'subtitle') ? replaceIfComponentDataExists(pageComponents, 'subtitle') : page.subtitle %}
  362. {% component 'PageHero' with { page: page, title: pagetitle, subtitle: subtitle } %}
  363. {% block content %}<a href=\"{{ path('router', { slug: 'contact' }) }}\" class=\"button\"
  364. >How can we help you today?</a
  365. >
  366. {% endblock %}{% endcomponent %}
  367. {% if page.content %}
  368. {% component 'PageMainContent' with { image: (page.image ? '/' ~ page.getFullImagePath : null) } %}
  369. {% block content %}{{ allowInlineEditor(page, 'content')|raw }}
  370. {% endblock %}{% block content2 %}
  371. {{ renderPcgcComponents('Filters', pageComponents)|raw }}
  372. {% endblock %}
  373. {% block buttons %}
  374. {% if page.ctaText and page.ctaLink %}
  375. <a href=\"{{ page.ctaLink }}\" class=\"button\">{{ page.ctaText }}</a>
  376. {% endif %}
  377. {% endblock %}
  378. {% endcomponent %}
  379. {% endif %}
  380. <div class=\"header-block\">
  381. <div class=\"contact-details\">
  382. {{ forceRenderPcgcHtmlBlock('Contact Details')|raw }}
  383. </div>
  384. </div>
  385. {{ allowInlineEditor(page, 'content3')|raw }}
  386. {{ renderPcgcComponents('Resources', pageComponents)|raw }}
  387. {% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
  388. {% if page.testimonial %}
  389. {{ component('SingleTestimonial', { testimonial: page.testimonial }) }}
  390. {% endif %}
  391. {{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
  392. {% endblock %}
  393. {% block stylesheets %}{% endblock %}
  394. ", "@theme/templates/cmspage-resources.html.twig", "/var/www/html/t/taurushr/templates/themes/theme/templates/cmspage-resources.html.twig");
  395. }
  396. }
  397. /* @theme/templates/cmspage-resources.html.twig */
  398. class __TwigTemplate_133fbfb7879625f509ca27dcfa47eb3f___6097061871 extends Template
  399. {
  400. private Source $source;
  401. /**
  402. * @var array<string, Template>
  403. */
  404. private array $macros = [];
  405. public function __construct(Environment $env)
  406. {
  407. parent::__construct($env);
  408. $this->source = $this->getSourceContext();
  409. $this->blocks = [
  410. 'outer__block_fallback' => [$this, 'block_outer__block_fallback'],
  411. 'content' => [$this, 'block_content'],
  412. 'content2' => [$this, 'block_content2'],
  413. 'buttons' => [$this, 'block_buttons'],
  414. ];
  415. }
  416. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  417. {
  418. // line 18
  419. return $this->load((isset($context["__parent__"]) || array_key_exists("__parent__", $context) ? $context["__parent__"] : (function () { throw new RuntimeError('Variable "__parent__" does not exist.', 18, $this->source); })()), 18);
  420. }
  421. protected function doDisplay(array $context, array $blocks = []): iterable
  422. {
  423. $macros = $this->macros;
  424. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  425. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/templates/cmspage-resources.html.twig"));
  426. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  427. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/templates/cmspage-resources.html.twig"));
  428. yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  429. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  430. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  431. }
  432. /**
  433. * @return iterable<null|scalar|\Stringable>
  434. */
  435. public function block_outer__block_fallback(array $context, array $blocks = []): iterable
  436. {
  437. $macros = $this->macros;
  438. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  439. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  440. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  441. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  442. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  443. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  444. yield from [];
  445. }
  446. // line 19
  447. /**
  448. * @return iterable<null|scalar|\Stringable>
  449. */
  450. public function block_content(array $context, array $blocks = []): iterable
  451. {
  452. $macros = $this->macros;
  453. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  454. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  455. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  456. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  457. 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.', 19, $this->source); })()), "content");
  458. yield "
  459. ";
  460. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  461. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  462. yield from [];
  463. }
  464. // line 20
  465. /**
  466. * @return iterable<null|scalar|\Stringable>
  467. */
  468. public function block_content2(array $context, array $blocks = []): iterable
  469. {
  470. $macros = $this->macros;
  471. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  472. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content2"));
  473. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  474. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content2"));
  475. // line 21
  476. yield " ";
  477. yield $this->env->getFunction('renderPcgcComponents')->getCallable()("Filters", (isset($context["pageComponents"]) || array_key_exists("pageComponents", $context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.', 21, $this->source); })()));
  478. yield "
  479. ";
  480. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  481. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  482. yield from [];
  483. }
  484. // line 23
  485. /**
  486. * @return iterable<null|scalar|\Stringable>
  487. */
  488. public function block_buttons(array $context, array $blocks = []): iterable
  489. {
  490. $macros = $this->macros;
  491. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  492. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "buttons"));
  493. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  494. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "buttons"));
  495. // line 24
  496. yield " ";
  497. 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.', 24, $this->source); })()), "ctaText", [], "any", false, false, false, 24) && 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.', 24, $this->source); })()), "ctaLink", [], "any", false, false, false, 24))) {
  498. // line 25
  499. yield " <a href=\"";
  500. 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.', 25, $this->source); })()), "ctaLink", [], "any", false, false, false, 25), "html", null, true);
  501. yield "\" class=\"button\">";
  502. 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.', 25, $this->source); })()), "ctaText", [], "any", false, false, false, 25), "html", null, true);
  503. yield "</a>
  504. ";
  505. }
  506. // line 27
  507. yield " ";
  508. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  509. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  510. yield from [];
  511. }
  512. /**
  513. * @codeCoverageIgnore
  514. */
  515. public function getTemplateName(): string
  516. {
  517. return "@theme/templates/cmspage-resources.html.twig";
  518. }
  519. /**
  520. * @codeCoverageIgnore
  521. */
  522. public function isTraitable(): bool
  523. {
  524. return false;
  525. }
  526. /**
  527. * @codeCoverageIgnore
  528. */
  529. public function getDebugInfo(): array
  530. {
  531. return array ( 641 => 27, 633 => 25, 630 => 24, 617 => 23, 603 => 21, 590 => 20, 565 => 19, 522 => 18, 389 => 12, 346 => 11, 221 => 49, 207 => 46, 201 => 44, 199 => 43, 196 => 42, 194 => 41, 189 => 39, 184 => 37, 177 => 33, 172 => 30, 169 => 29, 154 => 18, 152 => 17, 149 => 16, 135 => 11, 132 => 10, 129 => 9, 126 => 8, 113 => 7, 102 => 4, 89 => 3, 66 => 2, 43 => 1,);
  532. }
  533. public function getSourceContext(): Source
  534. {
  535. return new Source("{% extends '@theme/base.html.twig' %}
  536. {% block metatitle %}{{ page.metatitle }}{% endblock %}
  537. {% block metadescription -%}
  538. {{- page.metadescription|striptags|slice(0, 160) -}}
  539. {%- endblock %}
  540. {% block body %}
  541. {% set pagetitle = replaceIfComponentDataExists(pageComponents, 'title') ? replaceIfComponentDataExists(pageComponents, 'title') : page.title %}
  542. {% set subtitle = replaceIfComponentDataExists(pageComponents, 'subtitle') ? replaceIfComponentDataExists(pageComponents, 'subtitle') : page.subtitle %}
  543. {% component 'PageHero' with { page: page, title: pagetitle, subtitle: subtitle } %}
  544. {% block content %}<a href=\"{{ path('router', { slug: 'contact' }) }}\" class=\"button\"
  545. >How can we help you today?</a
  546. >
  547. {% endblock %}{% endcomponent %}
  548. {% if page.content %}
  549. {% component 'PageMainContent' with { image: (page.image ? '/' ~ page.getFullImagePath : null) } %}
  550. {% block content %}{{ allowInlineEditor(page, 'content')|raw }}
  551. {% endblock %}{% block content2 %}
  552. {{ renderPcgcComponents('Filters', pageComponents)|raw }}
  553. {% endblock %}
  554. {% block buttons %}
  555. {% if page.ctaText and page.ctaLink %}
  556. <a href=\"{{ page.ctaLink }}\" class=\"button\">{{ page.ctaText }}</a>
  557. {% endif %}
  558. {% endblock %}
  559. {% endcomponent %}
  560. {% endif %}
  561. <div class=\"header-block\">
  562. <div class=\"contact-details\">
  563. {{ forceRenderPcgcHtmlBlock('Contact Details')|raw }}
  564. </div>
  565. </div>
  566. {{ allowInlineEditor(page, 'content3')|raw }}
  567. {{ renderPcgcComponents('Resources', pageComponents)|raw }}
  568. {% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
  569. {% if page.testimonial %}
  570. {{ component('SingleTestimonial', { testimonial: page.testimonial }) }}
  571. {% endif %}
  572. {{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
  573. {% endblock %}
  574. {% block stylesheets %}{% endblock %}
  575. ", "@theme/templates/cmspage-resources.html.twig", "/var/www/html/t/taurushr/templates/themes/theme/templates/cmspage-resources.html.twig");
  576. }
  577. }