var/cache/dev_h24eaf6979abf10b67456256024eb9e5e/twig/73/73ad86d836b4939d5518187af9ab7e964c0c2d1434e4d651f6607f9c29c5a74f.php line 37

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @Storefront/storefront/section/cms-section-default.html.twig */
  16. class __TwigTemplate_8e2123abe1fb73e518576a21e8cda779 extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->parent false;
  25.         $this->blocks = [
  26.             'page_content_section_default' => [$this'block_page_content_section_default'],
  27.             'section_default_content_block' => [$this'block_section_default_content_block'],
  28.         ];
  29.     }
  30.     protected function doDisplay(array $context, array $blocks = [])
  31.     {
  32.         $macros $this->macros;
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/section/cms-section-default.html.twig"));
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/section/cms-section-default.html.twig"));
  37.         // line 1
  38.         $this->displayBlock('page_content_section_default'$context$blocks);
  39.         
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  41.         
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  43.     }
  44.     public function block_page_content_section_default($context, array $blocks = [])
  45.     {
  46.         $macros $this->macros;
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_section_default"));
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_section_default"));
  51.         // line 2
  52.         echo "    ";
  53.         $context["layout"] = ((sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "sizingMode", [], "any"falsefalsefalse2)) ? (twig_replace_filter(sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "sizingMode", [], "any"falsefalsefalse2), ["_" => "-"])) : ("container"));
  54.         // line 3
  55.         echo "    <div class=\"cms-section-default ";
  56.         echo sw_escape_filter($this->env, ($context["layout"] ?? null), "html"nulltrue);
  57.         echo "\">
  58.         ";
  59.         // line 4
  60.         $context['_parent'] = $context;
  61.         $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "blocks", [], "any"falsefalsefalse4));
  62.         $context['loop'] = [
  63.           'parent' => $context['_parent'],
  64.           'index0' => 0,
  65.           'index'  => 1,
  66.           'first'  => true,
  67.         ];
  68.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  69.             $length count($context['_seq']);
  70.             $context['loop']['revindex0'] = $length 1;
  71.             $context['loop']['revindex'] = $length;
  72.             $context['loop']['length'] = $length;
  73.             $context['loop']['last'] = === $length;
  74.         }
  75.         foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  76.             // line 5
  77.             echo "
  78.             ";
  79.             // line 6
  80.             $this->displayBlock('section_default_content_block'$context$blocks);
  81.             // line 9
  82.             echo "        ";
  83.             ++$context['loop']['index0'];
  84.             ++$context['loop']['index'];
  85.             $context['loop']['first'] = false;
  86.             if (isset($context['loop']['length'])) {
  87.                 --$context['loop']['revindex0'];
  88.                 --$context['loop']['revindex'];
  89.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  90.             }
  91.         }
  92.         $_parent $context['_parent'];
  93.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  94.         $context array_intersect_key($context$_parent) + $_parent;
  95.         // line 10
  96.         echo "    </div>
  97. ";
  98.         
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  100.         
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  102.     }
  103.     // line 6
  104.     public function block_section_default_content_block($context, array $blocks = [])
  105.     {
  106.         $macros $this->macros;
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  108.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_default_content_block"));
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  110.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_default_content_block"));
  111.         // line 7
  112.         echo "                ";
  113.         $this->loadTemplate("@Storefront/storefront/section/cms-section-block-container.html.twig""@Storefront/storefront/section/cms-section-default.html.twig"7)->display($context);
  114.         // line 8
  115.         echo "            ";
  116.         
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  118.         
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  120.     }
  121.     public function getTemplateName()
  122.     {
  123.         return "@Storefront/storefront/section/cms-section-default.html.twig";
  124.     }
  125.     public function getDebugInfo()
  126.     {
  127.         return array (  132 => 8,  129 => 7,  119 => 6,  108 => 10,  94 => 9,  92 => 6,  89 => 5,  72 => 4,  67 => 3,  64 => 2,  45 => 1,);
  128.     }
  129.     public function getSourceContext()
  130.     {
  131.         return new Source("{% block page_content_section_default %}
  132.     {% set layout = section.sizingMode ? section.sizingMode|replace({\"_\": \"-\"}) : \"container\" %}
  133.     <div class=\"cms-section-default {{ layout }}\">
  134.         {% for block in section.blocks %}
  135.             {% block section_default_content_block %}
  136.                 {% sw_include \"@Storefront/storefront/section/cms-section-block-container.html.twig\" %}
  137.             {% endblock %}
  138.         {% endfor %}
  139.     </div>
  140. {% endblock %}
  141. ""@Storefront/storefront/section/cms-section-default.html.twig""/var/www/html/htdocs/vendor/shopware/storefront/Resources/views/storefront/section/cms-section-default.html.twig");
  142.     }
  143. }