var/cache/dev_ha61ef46992a3948952fe944d3fcb7240/twig/a3/a31ddb860eaa3e13a78fb41a008bea243a6f0e6aaa5da2a0fcfabba6951ed549.php line 176

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