var/cache/dev_hc896b0aecebc6aae6bec469c82cd525f/twig/e6/e6ff5c661e69bb21d89151a7652852adb000b1ff38f19a48ca7a6e2b4c94c166.php line 46

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/element/cms-element-product-slider.html.twig */
  16. class __TwigTemplate_8d5f83d699c019b719f524575ce974fa 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.             'element_product_slider' => [$this'block_element_product_slider'],
  27.             'element_product_slider_alignment' => [$this'block_element_product_slider_alignment'],
  28.             'element_product_slider_slider' => [$this'block_element_product_slider_slider'],
  29.             'element_product_slider_title' => [$this'block_element_product_slider_title'],
  30.             'element_product_slider_inner' => [$this'block_element_product_slider_inner'],
  31.             'element_product_slider_element' => [$this'block_element_product_slider_element'],
  32.             'element_product_slider_inner_item' => [$this'block_element_product_slider_inner_item'],
  33.             'element_product_slider_controls' => [$this'block_element_product_slider_controls'],
  34.             'element_product_slider_controls_items' => [$this'block_element_product_slider_controls_items'],
  35.             'element_product_slider_controls_items_prev_icon' => [$this'block_element_product_slider_controls_items_prev_icon'],
  36.             'element_product_slider_controls_items_next_icon' => [$this'block_element_product_slider_controls_items_next_icon'],
  37.         ];
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = [])
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/element/cms-element-product-slider.html.twig"));
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/element/cms-element-product-slider.html.twig"));
  46.         // line 1
  47.         $this->displayBlock('element_product_slider'$context$blocks);
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     public function block_element_product_slider($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider"));
  60.         // line 2
  61.         echo "    ";
  62.         if ( !($context["sliderConfig"] ?? null)) {
  63.             // line 3
  64.             echo "        ";
  65.             $context["sliderConfig"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "fieldConfig", [], "any"falsefalsefalse3), "elements", [], "any"falsefalsefalse3);
  66.             // line 4
  67.             echo "    ";
  68.         }
  69.         // line 5
  70.         echo "    ";
  71.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse5), "products", [], "any"falsefalsefalse5), "elements", [], "any"falsefalsefalse5)) {
  72.             // line 6
  73.             echo "        <div
  74.             class=\"cms-element-";
  75.             // line 7
  76.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["element"] ?? null), "type", [], "any"falsefalsefalse7), "html"nulltrue);
  77.             if (((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "displayMode", [], "any"falsefalsefalse7), "value", [], "any"falsefalsefalse7) == "standard") && sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "verticalAlign", [], "any"falsefalsefalse7), "value", [], "any"falsefalsefalse7))) {
  78.                 echo " has-vertical-alignment";
  79.             }
  80.             echo "\">
  81.             ";
  82.             // line 8
  83.             $this->displayBlock('element_product_slider_alignment'$context$blocks);
  84.             // line 86
  85.             echo "        </div>
  86.     ";
  87.         }
  88.         
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  90.         
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  92.     }
  93.     // line 8
  94.     public function block_element_product_slider_alignment($context, array $blocks = [])
  95.     {
  96.         $macros $this->macros;
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_alignment"));
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_alignment"));
  101.         // line 9
  102.         echo "                ";
  103.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "verticalAlign", [], "any"falsefalsefalse9), "value", [], "any"falsefalsefalse9)) {
  104.             // line 10
  105.             echo "                    <div class=\"cms-element-alignment";
  106.             if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "verticalAlign", [], "any"falsefalsefalse10), "value", [], "any"falsefalsefalse10) == "center")) {
  107.                 echo " align-self-center";
  108.             } elseif ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "verticalAlign", [], "any"falsefalsefalse10), "value", [], "any"falsefalsefalse10) == "flex-end")) {
  109.                 echo " align-self-end";
  110.             } else {
  111.                 echo " align-self-start";
  112.             }
  113.             echo "\">
  114.                 ";
  115.         }
  116.         // line 12
  117.         echo "
  118.                 ";
  119.         // line 13
  120.         $context["productSliderOptions"] = ["productboxMinWidth" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 14
  121. ($context["sliderConfig"] ?? null), "elMinWidth", [], "any"falsefalsefalse14), "value", [], "any"falsefalsefalse14)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "elMinWidth", [], "any"falsefalsefalse14), "value", [], "any"falsefalsefalse14)) : ("")), "slider" => ["gutter" => 30"autoplayButtonOutput" => false"nav" => false"mouseDrag" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 19
  122. ($context["sliderConfig"] ?? null), "navigation", [], "any"falsefalsefalse19), "value", [], "any"falsefalsefalse19)) ? (false) : (true)), "controls" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 20
  123. ($context["sliderConfig"] ?? null), "navigation", [], "any"falsefalsefalse20), "value", [], "any"falsefalsefalse20)) ? (true) : (false)), "autoplay" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 21
  124. ($context["sliderConfig"] ?? null), "rotate", [], "any"falsefalsefalse21), "value", [], "any"falsefalsefalse21)) ? (true) : (false))]];
  125.         // line 24
  126.         echo "
  127.                 ";
  128.         // line 25
  129.         $this->displayBlock('element_product_slider_slider'$context$blocks);
  130.         // line 82
  131.         echo "                ";
  132.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "verticalAlign", [], "any"falsefalsefalse82), "value", [], "any"falsefalsefalse82)) {
  133.             // line 83
  134.             echo "                    </div>
  135.                 ";
  136.         }
  137.         // line 85
  138.         echo "            ";
  139.         
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  141.         
  142.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  143.     }
  144.     // line 25
  145.     public function block_element_product_slider_slider($context, array $blocks = [])
  146.     {
  147.         $macros $this->macros;
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_slider"));
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  151.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_slider"));
  152.         // line 26
  153.         echo "                    <div
  154.                         class=\"base-slider product-slider";
  155.         // line 27
  156.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "border", [], "any"falsefalsefalse27), "value", [], "any"falsefalsefalse27)) {
  157.             echo " has-border";
  158.         }
  159.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "navigation", [], "any"falsefalsefalse27), "value", [], "any"falsefalsefalse27)) {
  160.             echo " has-nav";
  161.         }
  162.         echo "\"
  163.                         data-product-slider=\"true\"
  164.                         data-product-slider-options=\"";
  165.         // line 29
  166.         echo sw_escape_filter($this->env$this->env->getFilter('json_encode')->getCallable()(($context["productSliderOptions"] ?? null)), "html"nulltrue);
  167.         echo "\">
  168.                         ";
  169.         // line 31
  170.         $this->displayBlock('element_product_slider_title'$context$blocks);
  171.         // line 38
  172.         echo "
  173.                         ";
  174.         // line 39
  175.         $this->displayBlock('element_product_slider_inner'$context$blocks);
  176.         // line 80
  177.         echo "                    </div>
  178.                 ";
  179.         
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  181.         
  182.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  183.     }
  184.     // line 31
  185.     public function block_element_product_slider_title($context, array $blocks = [])
  186.     {
  187.         $macros $this->macros;
  188.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  189.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_title"));
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  191.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_title"));
  192.         // line 32
  193.         echo "                            ";
  194.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "title", [], "any"falsefalsefalse32), "value", [], "any"falsefalsefalse32)) {
  195.             // line 33
  196.             echo "                                <div class=\"cms-element-title\">
  197.                                     <p class=\"cms-element-title-paragraph\">";
  198.             // line 34
  199.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "title", [], "any"falsefalsefalse34), "value", [], "any"falsefalsefalse34), "html"nulltrue);
  200.             echo "</p>
  201.                                 </div>
  202.                             ";
  203.         }
  204.         // line 37
  205.         echo "                        ";
  206.         
  207.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  208.         
  209.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  210.     }
  211.     // line 39
  212.     public function block_element_product_slider_inner($context, array $blocks = [])
  213.     {
  214.         $macros $this->macros;
  215.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  216.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_inner"));
  217.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  218.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_inner"));
  219.         // line 40
  220.         echo "                            ";
  221.         $this->displayBlock('element_product_slider_element'$context$blocks);
  222.         // line 55
  223.         echo "
  224.                             ";
  225.         // line 56
  226.         $this->displayBlock('element_product_slider_controls'$context$blocks);
  227.         // line 79
  228.         echo "                        ";
  229.         
  230.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  231.         
  232.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  233.     }
  234.     // line 40
  235.     public function block_element_product_slider_element($context, array $blocks = [])
  236.     {
  237.         $macros $this->macros;
  238.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  239.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_element"));
  240.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  241.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_element"));
  242.         // line 41
  243.         echo "                                <div class=\"product-slider-container\"
  244.                                      data-product-slider-container=\"true\">
  245.                                     ";
  246.         // line 43
  247.         $context['_parent'] = $context;
  248.         $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse43), "products", [], "any"falsefalsefalse43), "elements", [], "any"falsefalsefalse43));
  249.         $context['loop'] = [
  250.           'parent' => $context['_parent'],
  251.           'index0' => 0,
  252.           'index'  => 1,
  253.           'first'  => true,
  254.         ];
  255.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  256.             $length count($context['_seq']);
  257.             $context['loop']['revindex0'] = $length 1;
  258.             $context['loop']['revindex'] = $length;
  259.             $context['loop']['length'] = $length;
  260.             $context['loop']['last'] = === $length;
  261.         }
  262.         foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  263.             // line 44
  264.             echo "                                        ";
  265.             $this->displayBlock('element_product_slider_inner_item'$context$blocks);
  266.             // line 52
  267.             echo "                                    ";
  268.             ++$context['loop']['index0'];
  269.             ++$context['loop']['index'];
  270.             $context['loop']['first'] = false;
  271.             if (isset($context['loop']['length'])) {
  272.                 --$context['loop']['revindex0'];
  273.                 --$context['loop']['revindex'];
  274.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  275.             }
  276.         }
  277.         $_parent $context['_parent'];
  278.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  279.         $context array_intersect_key($context$_parent) + $_parent;
  280.         // line 53
  281.         echo "                                </div>
  282.                             ";
  283.         
  284.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  285.         
  286.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  287.     }
  288.     // line 44
  289.     public function block_element_product_slider_inner_item($context, array $blocks = [])
  290.     {
  291.         $macros $this->macros;
  292.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  293.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_inner_item"));
  294.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  295.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_inner_item"));
  296.         // line 45
  297.         echo "                                            <div class=\"product-slider-item\">
  298.                                                 ";
  299.         // line 46
  300.         $this->loadTemplate("@Storefront/storefront/component/product/card/box.html.twig""@Storefront/storefront/element/cms-element-product-slider.html.twig"46)->display(twig_array_merge($context, ["layout" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 47
  301. ($context["sliderConfig"] ?? null), "boxLayout", [], "any"falsefalsefalse47), "value", [], "any"falsefalsefalse47), "displayMode" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 48
  302. ($context["sliderConfig"] ?? null), "displayMode", [], "any"falsefalsefalse48), "value", [], "any"falsefalsefalse48)]));
  303.         // line 50
  304.         echo "                                            </div>
  305.                                         ";
  306.         
  307.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  308.         
  309.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  310.     }
  311.     // line 56
  312.     public function block_element_product_slider_controls($context, array $blocks = [])
  313.     {
  314.         $macros $this->macros;
  315.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  316.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_controls"));
  317.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  318.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_controls"));
  319.         // line 57
  320.         echo "                                ";
  321.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "navigation", [], "any"falsefalsefalse57), "value", [], "any"falsefalsefalse57)) {
  322.             // line 58
  323.             echo "                                    <div class=\"product-slider-controls-container\">
  324.                                         <div class=\"base-slider-controls\"
  325.                                              data-product-slider-controls=\"true\">
  326.                                             ";
  327.             // line 61
  328.             $this->displayBlock('element_product_slider_controls_items'$context$blocks);
  329.             // line 75
  330.             echo "                                        </div>
  331.                                     </div>
  332.                                 ";
  333.         }
  334.         // line 78
  335.         echo "                            ";
  336.         
  337.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  338.         
  339.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  340.     }
  341.     // line 61
  342.     public function block_element_product_slider_controls_items($context, array $blocks = [])
  343.     {
  344.         $macros $this->macros;
  345.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  346.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_controls_items"));
  347.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  348.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_controls_items"));
  349.         // line 62
  350.         echo "                                                <button
  351.                                                     class=\"base-slider-controls-prev product-slider-controls-prev";
  352.         // line 63
  353.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "border", [], "any"falsefalsefalse63), "value", [], "any"falsefalsefalse63)) {
  354.             echo " has-border";
  355.         }
  356.         echo "\">
  357.                                                     ";
  358.         // line 64
  359.         $this->displayBlock('element_product_slider_controls_items_prev_icon'$context$blocks);
  360.         // line 67
  361.         echo "                                                </button>
  362.                                                 <button
  363.                                                     class=\"base-slider-controls-next product-slider-controls-next";
  364.         // line 69
  365.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "border", [], "any"falsefalsefalse69), "value", [], "any"falsefalsefalse69)) {
  366.             echo " has-border";
  367.         }
  368.         echo "\">
  369.                                                     ";
  370.         // line 70
  371.         $this->displayBlock('element_product_slider_controls_items_next_icon'$context$blocks);
  372.         // line 73
  373.         echo "                                                </button>
  374.                                             ";
  375.         
  376.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  377.         
  378.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  379.     }
  380.     // line 64
  381.     public function block_element_product_slider_controls_items_prev_icon($context, array $blocks = [])
  382.     {
  383.         $macros $this->macros;
  384.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  385.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_controls_items_prev_icon"));
  386.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  387.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_controls_items_prev_icon"));
  388.         // line 65
  389.         echo "                                                        ";
  390.         ((function () use ($context$blocks) {
  391.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  392.             $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  393.             return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/element/cms-element-product-slider.html.twig"65);
  394.         })())->display(twig_array_merge($context, ["name" => "arrow-head-left"]));
  395.         // line 66
  396.         echo "                                                    ";
  397.         
  398.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  399.         
  400.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  401.     }
  402.     // line 70
  403.     public function block_element_product_slider_controls_items_next_icon($context, array $blocks = [])
  404.     {
  405.         $macros $this->macros;
  406.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  407.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_controls_items_next_icon"));
  408.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  409.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_slider_controls_items_next_icon"));
  410.         // line 71
  411.         echo "                                                        ";
  412.         ((function () use ($context$blocks) {
  413.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  414.             $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  415.             return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/element/cms-element-product-slider.html.twig"71);
  416.         })())->display(twig_array_merge($context, ["name" => "arrow-head-right"]));
  417.         // line 72
  418.         echo "                                                    ";
  419.         
  420.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  421.         
  422.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  423.     }
  424.     public function getTemplateName()
  425.     {
  426.         return "@Storefront/storefront/element/cms-element-product-slider.html.twig";
  427.     }
  428.     public function getDebugInfo()
  429.     {
  430.         return array (  485 => 72,  476 => 71,  466 => 70,  456 => 66,  447 => 65,  437 => 64,  426 => 73,  424 => 70,  418 => 69,  414 => 67,  412 => 64,  406 => 63,  403 => 62,  393 => 61,  383 => 78,  378 => 75,  376 => 61,  371 => 58,  368 => 57,  358 => 56,  347 => 50,  345 => 48,  344 => 47,  343 => 46,  340 => 45,  330 => 44,  319 => 53,  305 => 52,  302 => 44,  285 => 43,  281 => 41,  271 => 40,  261 => 79,  259 => 56,  256 => 55,  253 => 40,  243 => 39,  233 => 37,  227 => 34,  224 => 33,  221 => 32,  211 => 31,  200 => 80,  198 => 39,  195 => 38,  193 => 31,  188 => 29,  178 => 27,  175 => 26,  165 => 25,  155 => 85,  151 => 83,  148 => 82,  146 => 25,  143 => 24,  141 => 21,  140 => 20,  139 => 19,  138 => 14,  137 => 13,  134 => 12,  122 => 10,  119 => 9,  109 => 8,  97 => 86,  95 => 8,  88 => 7,  85 => 6,  82 => 5,  79 => 4,  76 => 3,  73 => 2,  54 => 1,);
  431.     }
  432.     public function getSourceContext()
  433.     {
  434.         return new Source("{% block element_product_slider %}
  435.     {% if not sliderConfig %}
  436.         {% set sliderConfig = element.fieldConfig.elements %}
  437.     {% endif %}
  438.     {% if element.data.products.elements %}
  439.         <div
  440.             class=\"cms-element-{{ element.type }}{% if sliderConfig.displayMode.value == \"standard\" and sliderConfig.verticalAlign.value %} has-vertical-alignment{% endif %}\">
  441.             {% block element_product_slider_alignment %}
  442.                 {% if config.verticalAlign.value %}
  443.                     <div class=\"cms-element-alignment{% if sliderConfig.verticalAlign.value == \"center\" %} align-self-center{% elseif sliderConfig.verticalAlign.value == \"flex-end\" %} align-self-end{% else %} align-self-start{% endif %}\">
  444.                 {% endif %}
  445.                 {% set productSliderOptions = {
  446.                     productboxMinWidth: sliderConfig.elMinWidth.value ? sliderConfig.elMinWidth.value : '',
  447.                     slider: {
  448.                         gutter: 30,
  449.                         autoplayButtonOutput: false,
  450.                         nav: false,
  451.                         mouseDrag: sliderConfig.navigation.value ? false : true,
  452.                         controls: sliderConfig.navigation.value ? true : false,
  453.                         autoplay: sliderConfig.rotate.value ? true : false
  454.                     }
  455.                 } %}
  456.                 {% block element_product_slider_slider %}
  457.                     <div
  458.                         class=\"base-slider product-slider{% if sliderConfig.border.value %} has-border{% endif %}{% if sliderConfig.navigation.value %} has-nav{% endif %}\"
  459.                         data-product-slider=\"true\"
  460.                         data-product-slider-options=\"{{ productSliderOptions|json_encode }}\">
  461.                         {% block element_product_slider_title %}
  462.                             {% if sliderConfig.title.value %}
  463.                                 <div class=\"cms-element-title\">
  464.                                     <p class=\"cms-element-title-paragraph\">{{ sliderConfig.title.value }}</p>
  465.                                 </div>
  466.                             {% endif %}
  467.                         {% endblock %}
  468.                         {% block element_product_slider_inner %}
  469.                             {% block element_product_slider_element %}
  470.                                 <div class=\"product-slider-container\"
  471.                                      data-product-slider-container=\"true\">
  472.                                     {% for product in element.data.products.elements %}
  473.                                         {% block element_product_slider_inner_item %}
  474.                                             <div class=\"product-slider-item\">
  475.                                                 {% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
  476.                                                     'layout': sliderConfig.boxLayout.value,
  477.                                                     'displayMode': sliderConfig.displayMode.value
  478.                                                 } %}
  479.                                             </div>
  480.                                         {% endblock %}
  481.                                     {% endfor %}
  482.                                 </div>
  483.                             {% endblock %}
  484.                             {% block element_product_slider_controls %}
  485.                                 {% if sliderConfig.navigation.value %}
  486.                                     <div class=\"product-slider-controls-container\">
  487.                                         <div class=\"base-slider-controls\"
  488.                                              data-product-slider-controls=\"true\">
  489.                                             {% block element_product_slider_controls_items %}
  490.                                                 <button
  491.                                                     class=\"base-slider-controls-prev product-slider-controls-prev{% if sliderConfig.border.value %} has-border{% endif %}\">
  492.                                                     {% block element_product_slider_controls_items_prev_icon %}
  493.                                                         {% sw_icon 'arrow-head-left' %}
  494.                                                     {% endblock %}
  495.                                                 </button>
  496.                                                 <button
  497.                                                     class=\"base-slider-controls-next product-slider-controls-next{% if sliderConfig.border.value %} has-border{% endif %}\">
  498.                                                     {% block element_product_slider_controls_items_next_icon %}
  499.                                                         {% sw_icon 'arrow-head-right' %}
  500.                                                     {% endblock %}
  501.                                                 </button>
  502.                                             {% endblock %}
  503.                                         </div>
  504.                                     </div>
  505.                                 {% endif %}
  506.                             {% endblock %}
  507.                         {% endblock %}
  508.                     </div>
  509.                 {% endblock %}
  510.                 {% if config.verticalAlign.value %}
  511.                     </div>
  512.                 {% endif %}
  513.             {% endblock %}
  514.         </div>
  515.     {% endif %}
  516. {% endblock %}
  517. ""@Storefront/storefront/element/cms-element-product-slider.html.twig""/var/www/share/efb-elektronik.dev.mc.emzcustomers.de/shopware6/vendor/shopware/storefront/Resources/views/storefront/element/cms-element-product-slider.html.twig");
  518.     }
  519. }