var/cache/dev_h24eaf6979abf10b67456256024eb9e5e/twig/8f/8f89e9c0686216f0974004f56792e6ae1605288548e6199b45674d78b1b3ad4a.php line 159

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. /* @ProcBasicElements/storefront/section/cms-section-default.html.twig */
  16. class __TwigTemplate_156ce287ba1d2e6b18cf75e1c5b461e5 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->blocks = [
  25.             'page_content_section_default' => [$this'block_page_content_section_default'],
  26.             'section_default_content_block' => [$this'block_section_default_content_block'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@Storefront/storefront/section/cms-section-default.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""@ProcBasicElements/storefront/section/cms-section-default.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""@ProcBasicElements/storefront/section/cms-section-default.html.twig"));
  41.         $this->parent $this->loadTemplate("@Storefront/storefront/section/cms-section-default.html.twig""@ProcBasicElements/storefront/section/cms-section-default.html.twig"2);
  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 3
  49.     public function block_page_content_section_default($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""page_content_section_default"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_section_default"));
  56.         // line 4
  57.         echo "    ";
  58.         $context["layout"] = ((sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "sizingMode", [], "any"falsefalsefalse4)) ? (twig_replace_filter(sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "sizingMode", [], "any"falsefalsefalse4), ["_" => "-"])) : ("container"));
  59.         // line 5
  60.         echo "    <div class=\"cms-section-default ";
  61.         echo sw_escape_filter($this->env, ($context["layout"] ?? null), "html"nulltrue);
  62.         echo "\">
  63.         ";
  64.         // line 6
  65.         if (((((($context["additionalSectionCls"] ?? null) === "proc-slider") || (($context["additionalSectionCls"] ?? null) === "proc-headbanner-slider")) || (($context["additionalSectionCls"] ?? null) === "proc-slider-2")) || (($context["additionalSectionCls"] ?? null) === "proc-slider-3"))) {
  66.             // line 7
  67.             echo "            ";
  68.             $context["centerItems"] = false;
  69.             // line 8
  70.             echo "            ";
  71.             $context["config"] = ["centerItems" => ["value" =>             // line 10
  72. ($context["centerItems"] ?? null)], "title" => ["value" => null], "border" => ["value" => false], "rotate" => ["value" => false], "navigation" => ["value" => true], "navigationArrows" => ["value" => "inside"], "verticalAlign" => ["value" => "center"]];
  73.             // line 31
  74.             echo "
  75.             ";
  76.             // line 32
  77.             $this->loadTemplate("@ProcBasicElements/storefront/section/cms-section-block-slider.html.twig""@ProcBasicElements/storefront/section/cms-section-default.html.twig"32)->display(twig_to_array(["additionalSectionCls" =>             // line 33
  78. ($context["additionalSectionCls"] ?? null), "sliderConfig" =>             // line 34
  79. ($context["config"] ?? null), "element" => ["data" => ["blocks" => sw_get_attribute($this->env$this->source,             // line 37
  80. ($context["section"] ?? null), "blocks", [], "any"falsefalsefalse37)], "type" => "cms-slider"]]));
  81.             // line 42
  82.             echo "        ";
  83.         } else {
  84.             // line 43
  85.             echo "            ";
  86.             $context['_parent'] = $context;
  87.             $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "blocks", [], "any"falsefalsefalse43));
  88.             $context['loop'] = [
  89.               'parent' => $context['_parent'],
  90.               'index0' => 0,
  91.               'index'  => 1,
  92.               'first'  => true,
  93.             ];
  94.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  95.                 $length count($context['_seq']);
  96.                 $context['loop']['revindex0'] = $length 1;
  97.                 $context['loop']['revindex'] = $length;
  98.                 $context['loop']['length'] = $length;
  99.                 $context['loop']['last'] = === $length;
  100.             }
  101.             foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  102.                 // line 44
  103.                 echo "                ";
  104.                 $this->displayBlock('section_default_content_block'$context$blocks);
  105.                 // line 47
  106.                 echo "            ";
  107.                 ++$context['loop']['index0'];
  108.                 ++$context['loop']['index'];
  109.                 $context['loop']['first'] = false;
  110.                 if (isset($context['loop']['length'])) {
  111.                     --$context['loop']['revindex0'];
  112.                     --$context['loop']['revindex'];
  113.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  114.                 }
  115.             }
  116.             $_parent $context['_parent'];
  117.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  118.             $context array_intersect_key($context$_parent) + $_parent;
  119.             // line 48
  120.             echo "        ";
  121.         }
  122.         // line 49
  123.         echo "    </div>
  124. ";
  125.         
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  127.         
  128.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  129.     }
  130.     // line 44
  131.     public function block_section_default_content_block($context, array $blocks = [])
  132.     {
  133.         $macros $this->macros;
  134.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_default_content_block"));
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  137.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""section_default_content_block"));
  138.         // line 45
  139.         echo "                    ";
  140.         $this->loadTemplate("@Storefront/storefront/section/cms-section-block-container.html.twig""@ProcBasicElements/storefront/section/cms-section-default.html.twig"45)->display($context);
  141.         // line 46
  142.         echo "                ";
  143.         
  144.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  145.         
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  147.     }
  148.     public function getTemplateName()
  149.     {
  150.         return "@ProcBasicElements/storefront/section/cms-section-default.html.twig";
  151.     }
  152.     public function isTraitable()
  153.     {
  154.         return false;
  155.     }
  156.     public function getDebugInfo()
  157.     {
  158.         return array (  159 => 46,  156 => 45,  146 => 44,  135 => 49,  132 => 48,  118 => 47,  115 => 44,  97 => 43,  94 => 42,  92 => 37,  91 => 34,  90 => 33,  89 => 32,  86 => 31,  84 => 10,  82 => 8,  79 => 7,  77 => 6,  72 => 5,  69 => 4,  59 => 3,  36 => 2,);
  159.     }
  160.     public function getSourceContext()
  161.     {
  162.         return new Source("{% sw_extends '@Storefront/storefront/section/cms-section-default.html.twig' %}
  163. {% block page_content_section_default %}
  164.     {% set layout = section.sizingMode ? section.sizingMode|replace({\"_\": \"-\"}) : \"container\" %}
  165.     <div class=\"cms-section-default {{ layout }}\">
  166.         {% if additionalSectionCls === 'proc-slider' or additionalSectionCls === 'proc-headbanner-slider' or additionalSectionCls === 'proc-slider-2' or additionalSectionCls === 'proc-slider-3' %}
  167.             {% set centerItems = false %}
  168.             {% set config = {
  169.                 'centerItems': {
  170.                   value: centerItems
  171.                 },
  172.                 'title': {
  173.                     'value': null
  174.                 },
  175.                 'border': {
  176.                     'value': false
  177.                 },
  178.                 'rotate': {
  179.                     'value': false
  180.                 },
  181.                 'navigation': {
  182.                     'value': true
  183.                 },
  184.                 'navigationArrows': {
  185.                     'value': 'inside'
  186.                 },
  187.                 'verticalAlign': {
  188.                     'value': 'center'
  189.                 }
  190.             } %}
  191.             {% sw_include \"@ProcBasicElements/storefront/section/cms-section-block-slider.html.twig\" with {
  192.                 additionalSectionCls: additionalSectionCls,
  193.                 sliderConfig: config,
  194.                 element: {
  195.                     'data': {
  196.                         'blocks': section.blocks
  197.                     },
  198.                     type: 'cms-slider'
  199.                 }
  200.             } only %}
  201.         {% else %}
  202.             {% for block in section.blocks %}
  203.                 {% block section_default_content_block %}
  204.                     {% sw_include \"@Storefront/storefront/section/cms-section-block-container.html.twig\" %}
  205.                 {% endblock %}
  206.             {% endfor %}
  207.         {% endif %}
  208.     </div>
  209. {% endblock %}
  210. ""@ProcBasicElements/storefront/section/cms-section-default.html.twig""/var/www/html/htdocs/custom/plugins/ProcBasicElements/src/Resources/views/storefront/section/cms-section-default.html.twig");
  211.     }
  212. }