var/cache/dev/twig/3f/3f0963952c8a02f7fbe9e6b0fda7ac79.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-blank.html.twig */
  14. class __TwigTemplate_653063dd1fe437cb8dc9ffa85123b36e 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-blank.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-blank.html.twig"));
  41.         $this->parent $this->loadTemplate("@theme/base.html.twig""@theme/templates/cmspage-blank.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); })()), "id", [], "any"falsefalsefalse7) == 8)) {
  89.             // line 8
  90.             echo "    <div class=\"banner-block pb-6 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"900405), "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"32001440), "html"nulltrue);
  94.             echo "\">
  95.         <div class=\"container h-full\">
  96.             <div class=\"flex items-end h-full\">
  97.                 <h1>";
  98.             // line 11
  99.             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.'11$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.'11$this->source); })()), "title", [], "any"falsefalsefalse11)), "html"nulltrue);
  100.             echo "</h1>
  101.             </div>
  102.         </div>
  103.     </div>
  104.     ";
  105.         }
  106.         // line 16
  107.         echo "
  108.     ";
  109.         // line 17
  110.         echo $this->env->getFunction('renderComponents')->getCallable()("Component Block", (isset($context["pageComponents"]) || array_key_exists("pageComponents"$context) ? $context["pageComponents"] : (function () { throw new RuntimeError('Variable "pageComponents" does not exist.'17$this->source); })()));
  111.         echo "
  112. ";
  113.         
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  115.         
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117.     }
  118.     // line 21
  119.     public function block_stylesheets($context, array $blocks = [])
  120.     {
  121.         $macros $this->macros;
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  126.         
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  128.         
  129.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  130.     }
  131.     /**
  132.      * @codeCoverageIgnore
  133.      */
  134.     public function getTemplateName()
  135.     {
  136.         return "@theme/templates/cmspage-blank.html.twig";
  137.     }
  138.     /**
  139.      * @codeCoverageIgnore
  140.      */
  141.     public function isTraitable()
  142.     {
  143.         return false;
  144.     }
  145.     /**
  146.      * @codeCoverageIgnore
  147.      */
  148.     public function getDebugInfo()
  149.     {
  150.         return array (  147 => 21,  134 => 17,  131 => 16,  123 => 11,  114 => 8,  112 => 7,  109 => 6,  99 => 5,  80 => 3,  61 => 2,  38 => 1,);
  151.     }
  152.     public function getSourceContext()
  153.     {
  154.         return new Source("{% extends '@theme/base.html.twig' %}
  155. {% block metatitle %}{{page.metatitle}}{% endblock %}
  156. {% block metadescription %}{{page.metadescription|striptags|slice(0, 160)}}{% endblock %}
  157. {% block body %}
  158.     {% if page.id == 8 %}
  159.     <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) }}\">
  160.         <div class=\"container h-full\">
  161.             <div class=\"flex items-end h-full\">
  162.                 <h1>{{ replaceIfComponentDataExists(pageComponents, \"title\", page.title) }}</h1>
  163.             </div>
  164.         </div>
  165.     </div>
  166.     {% endif %}
  167.     {{ renderComponents('Component Block', pageComponents)|raw }}
  168. {% endblock %}
  169. {% block stylesheets %}
  170. {% endblock %}
  171. ""@theme/templates/cmspage-blank.html.twig""/var/www/html/s/stablescaffolding/templates/themes/theme/templates/cmspage-blank.html.twig");
  172.     }
  173. }