var/cache/dev/twig/92/926a75ae6974ba90b5fb2b29f9a6b7a7.php line 51

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @theme/templates/cmspage-contact.html.twig */
  14. class __TwigTemplate_c97b75f41d9f371e3584d0cf1d447dbb extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'metatitle' => [$this'block_metatitle'],
  24.             'metadescription' => [$this'block_metadescription'],
  25.             'body' => [$this'block_body'],
  26.             'stylesheets' => [$this'block_stylesheets'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "@theme/base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@theme/templates/cmspage-contact.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@theme/templates/cmspage-contact.html.twig"));
  41.         $this->parent $this->loadTemplate("@theme/base.html.twig""@theme/templates/cmspage-contact.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 2
  49.     public function block_metatitle($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatitle"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatitle"));
  56.         echo twig_escape_filter($this->envtwig_get_attribute($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"falsefalsefalse2), "html"nulltrue);
  57.         
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  59.         
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  61.     }
  62.     // line 3
  63.     public function block_metadescription($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metadescription"));
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metadescription"));
  70.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_striptags(twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'3$this->source); })()), "metadescription", [], "any"falsefalsefalse3)), 0160), "html"nulltrue);
  71.         
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  73.         
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75.     }
  76.     // line 5
  77.     public function block_body($context, array $blocks = [])
  78.     {
  79.         $macros $this->macros;
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  84.         // line 6
  85.         echo "
  86. <div class=\"banner-block pb-6 lazyBackgroundImage\" data-mobile=\"";
  87.         // line 7
  88.         echo twig_escape_filter($this->env$this->env->getFunction('imageCache')->getCallable()(("/userfiles/images/page/" twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'7$this->source); })()), "image", [], "any"falsefalsefalse7)), "zoomCrop"900405), "html"nulltrue);
  89.         echo "\" data-desktop=\"";
  90.         echo twig_escape_filter($this->env$this->env->getFunction('imageCache')->getCallable()(("/userfiles/images/page/" twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'7$this->source); })()), "image", [], "any"falsefalsefalse7)), "zoomCrop"32001440), "html"nulltrue);
  91.         echo "\">
  92.     <div class=\"container h-full\">
  93.         <div class=\"flex items-end h-full\">
  94.             <h1>";
  95.         // line 10
  96.         echo twig_escape_filter($this->env$this->env->getFunction('replaceIfComponentDataExists')->getCallable()((isset($context["pageComponents"]) || array_key_exists("pageComponents"$context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.'10$this->source); })()), "title"twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'10$this->source); })()), "title", [], "any"falsefalsefalse10)), "html"nulltrue);
  97.         echo "</h1>
  98.         </div>
  99.     </div>
  100. </div>
  101. <section class=\"page-content pb-12\">
  102.     <div class=\"container\">
  103.         <div class=\"row cms-area mb-12 border-b border-solid border-primary\">
  104.             <div class=\"md:col-6 p-0 items-stretch min-h-[250px]\">
  105.                 ";
  106.         // line 19
  107.         $this->loadTemplate("@theme/common/map.html.twig""@theme/templates/cmspage-contact.html.twig"19)->display($context);
  108.         // line 20
  109.         echo "            </div>
  110.             <div class=\"md:col-6 p-0 hidden md:flex\">
  111.                 <img class=\"max-w-full h-auto\" src=\"";
  112.         // line 22
  113.         echo twig_escape_filter($this->env$this->env->getFunction('imageCache')->getCallable()(("/userfiles/images/page/" twig_get_attribute($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); })()), "image2", [], "any"falsefalsefalse22)), "zoomCrop"800600), "html"nulltrue);
  114.         echo "\" alt=\"Stable Scaffolding office\" loading=\"lazy\">
  115.             </div>
  116.         </div>
  117.         <div class=\"row\">
  118.             <div class=\"col-12\">
  119.                 ";
  120.         // line 27
  121.         echo twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'27$this->source); })()), "content", [], "any"falsefalsefalse27);
  122.         echo "
  123.                 ";
  124.         // line 28
  125.         echo $this->env->getFunction('renderComponents')->getCallable()("Enquiry Form", (isset($context["pageComponents"]) || array_key_exists("pageComponents"$context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.'28$this->source); })()));
  126.         echo "
  127.             </div>
  128.         </div>
  129.         <div class=\"row md:hidden\">
  130.             <div class=\"col-12\">
  131.                 <img class=\"max-w-full h-auto mt-12\" src=\"";
  132.         // line 33
  133.         echo twig_escape_filter($this->env$this->env->getFunction('imageCache')->getCallable()(("/userfiles/images/page/" twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'33$this->source); })()), "image2", [], "any"falsefalsefalse33)), "zoomCrop"800600), "html"nulltrue);
  134.         echo "\" alt=\"Stable Scaffolding office\" loading=\"lazy\">
  135.             </div>
  136.         </div>
  137.     </div>
  138. </section>
  139. ";
  140.         
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  142.         
  143.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  144.     }
  145.     // line 41
  146.     public function block_stylesheets($context, array $blocks = [])
  147.     {
  148.         $macros $this->macros;
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  150.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  151.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  153.         
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  155.         
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  157.     }
  158.     /**
  159.      * @codeCoverageIgnore
  160.      */
  161.     public function getTemplateName()
  162.     {
  163.         return "@theme/templates/cmspage-contact.html.twig";
  164.     }
  165.     /**
  166.      * @codeCoverageIgnore
  167.      */
  168.     public function isTraitable()
  169.     {
  170.         return false;
  171.     }
  172.     /**
  173.      * @codeCoverageIgnore
  174.      */
  175.     public function getDebugInfo()
  176.     {
  177.         return array (  175 => 41,  158 => 33,  150 => 28,  146 => 27,  138 => 22,  134 => 20,  132 => 19,  120 => 10,  112 => 7,  109 => 6,  99 => 5,  80 => 3,  61 => 2,  38 => 1,);
  178.     }
  179.     public function getSourceContext()
  180.     {
  181.         return new Source("{% extends '@theme/base.html.twig' %}
  182. {% block metatitle %}{{page.metatitle}}{% endblock %}
  183. {% block metadescription %}{{page.metadescription|striptags|slice(0, 160)}}{% endblock %}
  184. {% block body %}
  185. <div class=\"banner-block pb-6 lazyBackgroundImage\" data-mobile=\"{{ imageCache('/userfiles/images/page/' ~ page.image, 'zoomCrop', 900, 405) }}\" data-desktop=\"{{ imageCache('/userfiles/images/page/' ~ page.image, 'zoomCrop', 3200, 1440) }}\">
  186.     <div class=\"container h-full\">
  187.         <div class=\"flex items-end h-full\">
  188.             <h1>{{ replaceIfComponentDataExists(pageComponents, \"title\", page.title) }}</h1>
  189.         </div>
  190.     </div>
  191. </div>
  192. <section class=\"page-content pb-12\">
  193.     <div class=\"container\">
  194.         <div class=\"row cms-area mb-12 border-b border-solid border-primary\">
  195.             <div class=\"md:col-6 p-0 items-stretch min-h-[250px]\">
  196.                 {% include '@theme/common/map.html.twig' %}
  197.             </div>
  198.             <div class=\"md:col-6 p-0 hidden md:flex\">
  199.                 <img class=\"max-w-full h-auto\" src=\"{{ imageCache('/userfiles/images/page/' ~ page.image2, 'zoomCrop', 800, 600) }}\" alt=\"Stable Scaffolding office\" loading=\"lazy\">
  200.             </div>
  201.         </div>
  202.         <div class=\"row\">
  203.             <div class=\"col-12\">
  204.                 {{ page.content|raw }}
  205.                 {{ renderComponents('Enquiry Form', pageComponents)|raw }}
  206.             </div>
  207.         </div>
  208.         <div class=\"row md:hidden\">
  209.             <div class=\"col-12\">
  210.                 <img class=\"max-w-full h-auto mt-12\" src=\"{{ imageCache('/userfiles/images/page/' ~ page.image2, 'zoomCrop', 800, 600) }}\" alt=\"Stable Scaffolding office\" loading=\"lazy\">
  211.             </div>
  212.         </div>
  213.     </div>
  214. </section>
  215. {% endblock %}
  216. {% block stylesheets %}
  217. {% endblock %}
  218. ""@theme/templates/cmspage-contact.html.twig""/var/www/html/s/stablescaffolding/templates/themes/theme/templates/cmspage-contact.html.twig");
  219.     }
  220. }