var/cache/dev/twig/d6/d6315cc80ad44e924bd3d482963f3448.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-banner.html.twig */
  14. class __TwigTemplate_345ad76623c1d67404202e20e775c556 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-banner.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-banner.html.twig"));
  41.         $this->parent $this->loadTemplate("@theme/base.html.twig""@theme/templates/cmspage-banner.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.  ";
  87.         // line 7
  88.         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.'7$this->source); })()), "image", [], "any"falsefalsefalse7)) {
  89.             // line 8
  90.             echo "    <div class=\"banner-image lazyBackgroundImage\" data-mobile=\"";
  91.             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.'8$this->source); })()), "image", [], "any"falsefalsefalse8)), "zoomCrop"1566822), "html"nulltrue);
  92.             echo "\" data-desktop=\"";
  93.             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.'8$this->source); })()), "image", [], "any"falsefalsefalse8)), "zoomCrop"32001680), "html"nulltrue);
  94.             echo "\"></div>
  95. ";
  96.         }
  97.         // line 10
  98.         echo "
  99. <section class=\"page-content";
  100.         // line 11
  101.         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.'11$this->source); })()), "image", [], "any"falsefalsefalse11) == null)) {
  102.             echo " pt-[148px] md:pt-[163px]";
  103.         }
  104.         echo "\">
  105.     <div class=\"container\">
  106.         ";
  107.         // line 13
  108.         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.'13$this->source); })()), "kicker", [], "any"falsefalsefalse13)) {
  109.             // line 14
  110.             echo "            <h1>";
  111.             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.'14$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.'14$this->source); })()), "title", [], "any"falsefalsefalse14)), "html"nulltrue);
  112.             echo "</h1>
  113.             <h3>";
  114.             // line 15
  115.             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.'15$this->source); })()), "subtitle", [], "any"falsefalsefalse15);
  116.             echo "</h3>
  117.             ";
  118.             // line 16
  119.             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.'16$this->source); })()), "kicker");
  120.             echo "
  121.         ";
  122.         }
  123.         // line 18
  124.         echo "
  125.         ";
  126.         // line 19
  127.         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.'19$this->source); })()));
  128.         echo "
  129.         <div class=\"row cms-area\">
  130.             <div class=\"col-12 text-center ";
  131.         // line 22
  132.         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.'22$this->source); })()), "content", [], "any"falsefalsefalse22)) {
  133.             echo "py-12";
  134.         } else {
  135.             echo " pt-12 pb-6";
  136.         }
  137.         echo "\">
  138.                 ";
  139.         // line 23
  140.         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.'23$this->source); })()), "kicker", [], "any"falsefalsefalse23) == null)) {
  141.             // line 24
  142.             echo "                    <h1>";
  143.             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.'24$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.'24$this->source); })()), "title", [], "any"falsefalsefalse24)), "html"nulltrue);
  144.             echo "</h1>
  145.                     <h3 class=\"text-green\">";
  146.             // line 25
  147.             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.'25$this->source); })()), "subtitle", [], "any"falsefalsefalse25);
  148.             echo "</h3>
  149.                 ";
  150.         }
  151.         // line 27
  152.         echo "
  153.                 ";
  154.         // line 28
  155.         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.'28$this->source); })()), "content", [], "any"falsefalsefalse28)) {
  156.             // line 29
  157.             echo "                    ";
  158.             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.'29$this->source); })()), "content");
  159.             echo "
  160.                 ";
  161.         }
  162.         // line 31
  163.         echo "
  164.                 ";
  165.         // line 32
  166.         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.'32$this->source); })()), "file", [], "any"falsefalsefalse32)) {
  167.             // line 33
  168.             echo "                    <video src=\"";
  169.             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.'33$this->source); })()), "getFileUrl", [], "any"falsefalsefalse33), "html"nulltrue);
  170.             echo "\" controls></video>
  171.                 ";
  172.         }
  173.         // line 35
  174.         echo "            </div>
  175.         </div>
  176.         ";
  177.         // line 38
  178.         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.'38$this->source); })()));
  179.         echo "
  180.         ";
  181.         // line 40
  182.         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.'40$this->source); })()), "content2", [], "any"falsefalsefalse40)) {
  183.             // line 41
  184.             echo "            <div class=\"row cms-area pb-12\">
  185.                 ";
  186.             // line 42
  187.             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); })()), "image3", [], "any"falsefalsefalse42)) {
  188.                 // line 43
  189.                 echo "                    <div class=\"sm:col-6 col-12\">
  190.                         <img class=\"max-w-full h-auto\" src=\"";
  191.                 // line 44
  192.                 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.'44$this->source); })()), "image3", [], "any"falsefalsefalse44)), "zoomCrop"11401200), "html"nulltrue);
  193.                 echo "\" width=\"670\" height=\"706\" alt=\"";
  194.                 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.'44$this->source); })()), "title", [], "any"falsefalsefalse44), "html"nulltrue);
  195.                 echo "\" loading=\"lazy\" />
  196.                     </div>
  197.                 ";
  198.             }
  199.             // line 47
  200.             echo "                <div class=\"";
  201.             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.'47$this->source); })()), "image3", [], "any"falsefalsefalse47)) {
  202.                 echo "sm:col-6 col-12";
  203.             } else {
  204.                 echo "col-12";
  205.             }
  206.             echo "\">
  207.                     ";
  208.             // line 48
  209.             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.'48$this->source); })()), "content2");
  210.             echo "
  211.                 </div>
  212.             </div>
  213.         ";
  214.         }
  215.         // line 52
  216.         echo "    </div>
  217.     ";
  218.         // line 54
  219.         echo $this->extensions['App\Twig\TwigExtension']->renderHtmlBlock($this->env"Content Block", (isset($context["pageHtmlBlocks"]) || array_key_exists("pageHtmlBlocks"$context) ? $context["pageHtmlBlocks"] : (function () { throw new RuntimeError('Variable "pageHtmlBlocks" does not exist.'54$this->source); })()), (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'54$this->source); })()));
  220.         echo "
  221. </section>
  222. ";
  223.         
  224.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  225.         
  226.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  227.     }
  228.     // line 60
  229.     public function block_stylesheets($context, array $blocks = [])
  230.     {
  231.         $macros $this->macros;
  232.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  233.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  234.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  235.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  236.         
  237.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  238.         
  239.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  240.     }
  241.     /**
  242.      * @codeCoverageIgnore
  243.      */
  244.     public function getTemplateName()
  245.     {
  246.         return "@theme/templates/cmspage-banner.html.twig";
  247.     }
  248.     /**
  249.      * @codeCoverageIgnore
  250.      */
  251.     public function isTraitable()
  252.     {
  253.         return false;
  254.     }
  255.     /**
  256.      * @codeCoverageIgnore
  257.      */
  258.     public function getDebugInfo()
  259.     {
  260.         return array (  262 => 60,  247 => 54,  243 => 52,  236 => 48,  227 => 47,  219 => 44,  216 => 43,  214 => 42,  211 => 41,  209 => 40,  204 => 38,  199 => 35,  193 => 33,  191 => 32,  188 => 31,  182 => 29,  180 => 28,  177 => 27,  172 => 25,  167 => 24,  165 => 23,  157 => 22,  151 => 19,  148 => 18,  143 => 16,  139 => 15,  134 => 14,  132 => 13,  125 => 11,  122 => 10,  114 => 8,  112 => 7,  109 => 6,  99 => 5,  80 => 3,  61 => 2,  38 => 1,);
  261.     }
  262.     public function getSourceContext()
  263.     {
  264.         return new Source("{% extends '@theme/base.html.twig' %}
  265. {% block metatitle %}{{page.metatitle}}{% endblock %}
  266. {% block metadescription %}{{page.metadescription|striptags|slice(0, 160)}}{% endblock %}
  267. {% block body %}
  268.  {% if page.image %}
  269.     <div class=\"banner-image lazyBackgroundImage\" data-mobile=\"{{ imageCache('/userfiles/images/page/' ~ page.image, 'zoomCrop', 1566, 822) }}\" data-desktop=\"{{ imageCache('/userfiles/images/page/' ~ page.image, 'zoomCrop', 3200, 1680) }}\"></div>
  270. {% endif %}
  271. <section class=\"page-content{% if page.image == null %} pt-[148px] md:pt-[163px]{% endif %}\">
  272.     <div class=\"container\">
  273.         {% if page.kicker %}
  274.             <h1>{{ replaceIfComponentDataExists(pageComponents, \"title\", page.title) }}</h1>
  275.             <h3>{{ page.subtitle|raw }}</h3>
  276.             {{ allowInlineEditor(page, 'kicker')|raw }}
  277.         {% endif %}
  278.         {{ renderComponents('Before Content', pageComponents)|raw }}
  279.         <div class=\"row cms-area\">
  280.             <div class=\"col-12 text-center {% if page.content %}py-12{% else %} pt-12 pb-6{% endif %}\">
  281.                 {% if page.kicker == null %}
  282.                     <h1>{{ replaceIfComponentDataExists(pageComponents, \"title\", page.title) }}</h1>
  283.                     <h3 class=\"text-green\">{{ page.subtitle|raw }}</h3>
  284.                 {% endif %}
  285.                 {% if page.content %}
  286.                     {{ allowInlineEditor(page, 'content')|raw }}
  287.                 {% endif %}
  288.                 {% if page.file %}
  289.                     <video src=\"{{ page.getFileUrl }}\" controls></video>
  290.                 {% endif %}
  291.             </div>
  292.         </div>
  293.         {{ renderComponents('After Content', pageComponents)|raw }}
  294.         {% if page.content2 %}
  295.             <div class=\"row cms-area pb-12\">
  296.                 {% if page.image3 %}
  297.                     <div class=\"sm:col-6 col-12\">
  298.                         <img class=\"max-w-full h-auto\" src=\"{{ imageCache('/userfiles/images/page/' ~ page.image3, 'zoomCrop', 1140, 1200) }}\" width=\"670\" height=\"706\" alt=\"{{ page.title }}\" loading=\"lazy\" />
  299.                     </div>
  300.                 {% endif %}
  301.                 <div class=\"{% if page.image3 %}sm:col-6 col-12{% else %}col-12{% endif %}\">
  302.                     {{ allowInlineEditor(page, 'content2')|raw }}
  303.                 </div>
  304.             </div>
  305.         {% endif %}
  306.     </div>
  307.     {{ renderHtmlBlock('Content Block', pageHtmlBlocks, page)|raw }}
  308. </section>
  309. {% endblock %}
  310. {% block stylesheets %}
  311. {% endblock %}
  312. ""@theme/templates/cmspage-banner.html.twig""/var/www/html/k/kasscaffolding/templates/themes/theme/templates/cmspage-banner.html.twig");
  313.     }
  314. }