var/cache/dev/twig/2c/2c14ac821cec6f3e17b7135ab4897bb2.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-standard.html.twig */
  14. class __TwigTemplate_4fe3846dcc3ea54bde1053345edd98a5 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-standard.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-standard.html.twig"));
  41.         $this->parent $this->loadTemplate("@theme/base.html.twig""@theme/templates/cmspage-standard.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 pt-12\">
  102.     <div class=\"container\">
  103.         ";
  104.         // line 17
  105.         echo $this->env->getFunction('renderComponents')->getCallable()("Before Content", (isset($context["pageComponents"]) || array_key_exists("pageComponents"$context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.'17$this->source); })()));
  106.         echo "
  107.         ";
  108.         // line 19
  109.         if (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.'19$this->source); })()), "content", [], "any"falsefalsefalse19)) {
  110.             // line 20
  111.             echo "        <div class=\"row cms-area\">
  112.             <div class=\"col-12 mb-12\">
  113.                 ";
  114.             // line 22
  115.             echo $this->env->getFunction('allowInlineEditor')->getCallable()((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'22$this->source); })()), "content");
  116.             echo "
  117.             </div>
  118.         </div>
  119.         ";
  120.         }
  121.         // line 26
  122.         echo "
  123.         ";
  124.         // line 27
  125.         echo $this->env->getFunction('renderComponents')->getCallable()("After Content", (isset($context["pageComponents"]) || array_key_exists("pageComponents"$context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.'27$this->source); })()));
  126.         echo "
  127.     </div>
  128. </section>
  129. ";
  130.         // line 31
  131.         echo $this->extensions['App\Twig\TwigExtension']->renderHtmlBlock($this->env"CTA", (isset($context["pageHtmlBlocks"]) || array_key_exists("pageHtmlBlocks"$context) ? $context["pageHtmlBlocks"] : (function () { throw new RuntimeError('Variable "pageHtmlBlocks" does not exist.'31$this->source); })()));
  132.         echo "
  133. ";
  134.         // line 33
  135.         if (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); })()), "content2", [], "any"falsefalsefalse33)) {
  136.             // line 34
  137.             echo "    <section class=\"page-content pb-12\">
  138.         <div class=\"container\">
  139.             <div class=\"row cms-area\">
  140.                 ";
  141.             // line 37
  142.             if (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.'37$this->source); })()), "image2", [], "any"falsefalsefalse37)) {
  143.                 // line 38
  144.                 echo "                    <div class=\"md:col-4 sm:col-6 col-12\">
  145.                         <img class=\"max-w-full h-auto\" src=\"";
  146.                 // line 39
  147.                 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.'39$this->source); })()), "image2", [], "any"falsefalsefalse39)), "zoomCrop"800600), "html"nulltrue);
  148.                 echo "\" alt=\"";
  149.                 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.'39$this->source); })()), "title", [], "any"falsefalsefalse39), "html"nulltrue);
  150.                 echo "\" loading=\"lazy\">
  151.                     </div>
  152.                 ";
  153.             }
  154.             // line 42
  155.             echo "                <div class=\"";
  156.             if (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.'42$this->source); })()), "image2", [], "any"falsefalsefalse42)) {
  157.                 echo "md:col-8 sm:col-6 col-12";
  158.             } else {
  159.                 echo "col-12";
  160.             }
  161.             echo "\">
  162.                     ";
  163.             // line 43
  164.             echo $this->env->getFunction('allowInlineEditor')->getCallable()((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'43$this->source); })()), "content2");
  165.             echo "
  166.                 </div>
  167.             </div>
  168.         </div>
  169.     </section>
  170. ";
  171.         }
  172.         // line 49
  173.         echo "
  174. ";
  175.         
  176.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  177.         
  178.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  179.     }
  180.     // line 52
  181.     public function block_stylesheets($context, array $blocks = [])
  182.     {
  183.         $macros $this->macros;
  184.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  186.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  187.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  188.         
  189.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  190.         
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  192.     }
  193.     /**
  194.      * @codeCoverageIgnore
  195.      */
  196.     public function getTemplateName()
  197.     {
  198.         return "@theme/templates/cmspage-standard.html.twig";
  199.     }
  200.     /**
  201.      * @codeCoverageIgnore
  202.      */
  203.     public function isTraitable()
  204.     {
  205.         return false;
  206.     }
  207.     /**
  208.      * @codeCoverageIgnore
  209.      */
  210.     public function getDebugInfo()
  211.     {
  212.         return array (  212 => 52,  201 => 49,  192 => 43,  183 => 42,  175 => 39,  172 => 38,  170 => 37,  165 => 34,  163 => 33,  158 => 31,  151 => 27,  148 => 26,  141 => 22,  137 => 20,  135 => 19,  130 => 17,  120 => 10,  112 => 7,  109 => 6,  99 => 5,  80 => 3,  61 => 2,  38 => 1,);
  213.     }
  214.     public function getSourceContext()
  215.     {
  216.         return new Source("{% extends '@theme/base.html.twig' %}
  217. {% block metatitle %}{{page.metatitle}}{% endblock %}
  218. {% block metadescription %}{{page.metadescription|striptags|slice(0, 160)}}{% endblock %}
  219. {% block body %}
  220. <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) }}\">
  221.     <div class=\"container h-full\">
  222.         <div class=\"flex items-end h-full\">
  223.             <h1>{{ replaceIfComponentDataExists(pageComponents, \"title\", page.title) }}</h1>
  224.         </div>
  225.     </div>
  226. </div>
  227. <section class=\"page-content pt-12\">
  228.     <div class=\"container\">
  229.         {{ renderComponents('Before Content', pageComponents)|raw }}
  230.         {% if page.content %}
  231.         <div class=\"row cms-area\">
  232.             <div class=\"col-12 mb-12\">
  233.                 {{ allowInlineEditor(page, 'content')|raw }}
  234.             </div>
  235.         </div>
  236.         {% endif %}
  237.         {{ renderComponents('After Content', pageComponents)|raw }}
  238.     </div>
  239. </section>
  240. {{ renderHtmlBlock('CTA', pageHtmlBlocks)|raw }}
  241. {% if page.content2 %}
  242.     <section class=\"page-content pb-12\">
  243.         <div class=\"container\">
  244.             <div class=\"row cms-area\">
  245.                 {% if page.image2 %}
  246.                     <div class=\"md:col-4 sm:col-6 col-12\">
  247.                         <img class=\"max-w-full h-auto\" src=\"{{ imageCache('/userfiles/images/page/' ~ page.image2, 'zoomCrop', 800, 600) }}\" alt=\"{{ page.title }}\" loading=\"lazy\">
  248.                     </div>
  249.                 {% endif %}
  250.                 <div class=\"{% if page.image2 %}md:col-8 sm:col-6 col-12{% else %}col-12{% endif %}\">
  251.                     {{ allowInlineEditor(page, 'content2')|raw }}
  252.                 </div>
  253.             </div>
  254.         </div>
  255.     </section>
  256. {% endif %}
  257. {% endblock %}
  258. {% block stylesheets %}
  259. {% endblock %}
  260. ""@theme/templates/cmspage-standard.html.twig""/var/www/html/s/stablescaffolding/templates/themes/theme/templates/cmspage-standard.html.twig");
  261.     }
  262. }