var/cache/dev/twig/72/727333ddc55e89336240330743ddc7cc.php line 136

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. /* @FactorySupport/catalog/index.html.twig */
  15. class __TwigTemplate_8a4ebf6ef2efbca562c67c73921ecdb9 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'contentBlock' => [$this'block_contentBlock'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension(SandboxExtension::class);
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "layout/default.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  38.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FactorySupport/catalog/index.html.twig"));
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FactorySupport/catalog/index.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FactorySupport/catalog/index.html.twig"));
  43.         $this->parent $this->loadTemplate("layout/default.html.twig""@FactorySupport/catalog/index.html.twig"1);
  44.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 3
  53.     public function block_contentBlock($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  57.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  62.         // line 4
  63.         yield "
  64. <div class=\"staticPage\">
  65.     <div class=\"container my-5 my-lg-5 my-md-5\">
  66.         <div class=\"row\">
  67.             <div class=\"col-lg-3\">
  68.                 <h4 class=\"font-weight-bold text-uppercase\">";
  69.         // line 9
  70.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""staticPage--heading", ["placeholder" => "Heading..."]);
  71.         yield "</h4>
  72.                 ";
  73.         // line 10
  74.         yield from         $this->loadTemplate("document/static_page/sidebar/sidebar.html.twig""@FactorySupport/catalog/index.html.twig"10)->unwrap()->yield($context);
  75.         // line 11
  76.         yield "            </div>
  77.             <div class=\"col-lg-8\">
  78.                 <div class=\"mb-4 mb-lg-4 mb-md-4\">
  79.                     <h1 class=\"font-italic font-weight-bold\">
  80.                         ";
  81.         // line 15
  82.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""heading", ["height" => 150"placeholder" => "Heading"]);
  83.         // line 19
  84.         yield "
  85.                     </h1>
  86.                 </div>
  87.                 <div class=\"row\" data-form-has-error=\"";
  88.         // line 23
  89.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["lastCatalog"]) || array_key_exists("lastCatalog"$context) ? $context["lastCatalog"] : (function () { throw new RuntimeError('Variable "lastCatalog" does not exist.'23$this->source); })()), 23$this->source), "html"nulltrue);
  90.         yield "\">
  91.                     ";
  92.         // line 24
  93.         $context['_parent'] = $context;
  94.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'24$this->source); })()));
  95.         $context['loop'] = [
  96.           'parent' => $context['_parent'],
  97.           'index0' => 0,
  98.           'index'  => 1,
  99.           'first'  => true,
  100.         ];
  101.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  102.             $length count($context['_seq']);
  103.             $context['loop']['revindex0'] = $length 1;
  104.             $context['loop']['revindex'] = $length;
  105.             $context['loop']['length'] = $length;
  106.             $context['loop']['last'] = === $length;
  107.         }
  108.         foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  109.             // line 25
  110.             yield "                        <div class=\"col-lg-3 col-md-4 col-sm-6 col-xs-12 mb-4 mb-lg-4 mb-md-4\">
  111.                         ";
  112.             // line 26
  113.             yield from             $this->loadTemplate("catalog/snippets/catalog.html.twig""@FactorySupport/catalog/index.html.twig"26)->unwrap()->yield(CoreExtension::merge($context$context["article"]));
  114.             // line 27
  115.             yield "                        </div>
  116.                         ";
  117.             // line 28
  118.             yield from             $this->loadTemplate("catalog/snippets/modal.html.twig""@FactorySupport/catalog/index.html.twig"28)->unwrap()->yield(CoreExtension::merge($context, [$context["article"], (isset($context["addresses"]) || array_key_exists("addresses"$context) ? $context["addresses"] : (function () { throw new RuntimeError('Variable "addresses" does not exist.'28$this->source); })()), (isset($context["defaultShippingAddress"]) || array_key_exists("defaultShippingAddress"$context) ? $context["defaultShippingAddress"] : (function () { throw new RuntimeError('Variable "defaultShippingAddress" does not exist.'28$this->source); })()), (isset($context["modalForms"]) || array_key_exists("modalForms"$context) ? $context["modalForms"] : (function () { throw new RuntimeError('Variable "modalForms" does not exist.'28$this->source); })())]));
  119.             // line 29
  120.             yield "                    ";
  121.             ++$context['loop']['index0'];
  122.             ++$context['loop']['index'];
  123.             $context['loop']['first'] = false;
  124.             if (isset($context['loop']['length'])) {
  125.                 --$context['loop']['revindex0'];
  126.                 --$context['loop']['revindex'];
  127.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  128.             }
  129.         }
  130.         $_parent $context['_parent'];
  131.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  132.         $context array_intersect_key($context$_parent) + $_parent;
  133.         // line 30
  134.         yield "                </div>
  135.             </div>
  136.         </div>
  137.     </div>
  138. </div>
  139. ";
  140.         
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  142.         
  143.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  144.         
  145.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  146.         return; yield '';
  147.     }
  148.     /**
  149.      * @codeCoverageIgnore
  150.      */
  151.     public function getTemplateName()
  152.     {
  153.         return "@FactorySupport/catalog/index.html.twig";
  154.     }
  155.     /**
  156.      * @codeCoverageIgnore
  157.      */
  158.     public function isTraitable()
  159.     {
  160.         return false;
  161.     }
  162.     /**
  163.      * @codeCoverageIgnore
  164.      */
  165.     public function getDebugInfo()
  166.     {
  167.         return array (  152 => 30,  138 => 29,  136 => 28,  133 => 27,  131 => 26,  128 => 25,  111 => 24,  107 => 23,  101 => 19,  99 => 15,  93 => 11,  91 => 10,  87 => 9,  80 => 4,  67 => 3,  38 => 1,);
  168.     }
  169.     public function getSourceContext()
  170.     {
  171.         return new Source("{% extends 'layout/default.html.twig' %}
  172. {% block contentBlock %}
  173. <div class=\"staticPage\">
  174.     <div class=\"container my-5 my-lg-5 my-md-5\">
  175.         <div class=\"row\">
  176.             <div class=\"col-lg-3\">
  177.                 <h4 class=\"font-weight-bold text-uppercase\">{{ pimcore_input('staticPage--heading',{placeholder: 'Heading...'}) }}</h4>
  178.                 {% include 'document/static_page/sidebar/sidebar.html.twig' %}
  179.             </div>
  180.             <div class=\"col-lg-8\">
  181.                 <div class=\"mb-4 mb-lg-4 mb-md-4\">
  182.                     <h1 class=\"font-italic font-weight-bold\">
  183.                         {{ pimcore_input('heading',{
  184.                                 \"height\": 150,
  185.                                 \"placeholder\": \"Heading\"
  186.                             })
  187.                         }}
  188.                     </h1>
  189.                 </div>
  190.                 <div class=\"row\" data-form-has-error=\"{{ lastCatalog }}\">
  191.                     {% for article in articles %}
  192.                         <div class=\"col-lg-3 col-md-4 col-sm-6 col-xs-12 mb-4 mb-lg-4 mb-md-4\">
  193.                         {% include 'catalog/snippets/catalog.html.twig' with article %}
  194.                         </div>
  195.                         {% include 'catalog/snippets/modal.html.twig' with [article,addresses,defaultShippingAddress,modalForms] %}
  196.                     {% endfor %}
  197.                 </div>
  198.             </div>
  199.         </div>
  200.     </div>
  201. </div>
  202. {% endblock %}""@FactorySupport/catalog/index.html.twig""/var/www/webovi/stoelting/pimcore/templates/catalog/index.html.twig");
  203.     }
  204.     
  205.     public function checkSecurity()
  206.     {
  207.         static $tags = array("include" => 10"for" => 24);
  208.         static $filters = array("escape" => 23);
  209.         static $functions = array("pimcore_input" => 9);
  210.         try {
  211.             $this->sandbox->checkSecurity(
  212.                 ['include''for'],
  213.                 ['escape'],
  214.                 ['pimcore_input'],
  215.                 $this->source
  216.             );
  217.         } catch (SecurityError $e) {
  218.             $e->setSourceContext($this->source);
  219.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  220.                 $e->setTemplateLine($tags[$e->getTagName()]);
  221.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  222.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  223.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  224.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  225.             }
  226.             throw $e;
  227.         }
  228.     }
  229. }