var/cache/dev_h61dab171fcb3dd073fc68bfbeb4d9256/twig/5d/5d07f2b26cc4fa6ea6f95344de0b4b57ee14d2d428a56c4e6ebe9ef8a71d7bb0.php line 248

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. /* @XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig */
  16. class __TwigTemplate_ceae801f0a4a036779be3e8b553f0280 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_last_seen_product_slider' => [$this'block_element_last_seen_product_slider'],
  27.             'element_last_seen_product_slider_alignment' => [$this'block_element_last_seen_product_slider_alignment'],
  28.             'element_last_seen_product_slider_slider' => [$this'block_element_last_seen_product_slider_slider'],
  29.             'element_last_seen_product_slider_title' => [$this'block_element_last_seen_product_slider_title'],
  30.             'element_last_seen_product_slider_text' => [$this'block_element_last_seen_product_slider_text'],
  31.             'element_last_seen_product_slider_inner' => [$this'block_element_last_seen_product_slider_inner'],
  32.             'element_last_seen_product_slider_element' => [$this'block_element_last_seen_product_slider_element'],
  33.             'element_last_seen_product_slider_controls' => [$this'block_element_last_seen_product_slider_controls'],
  34.             'element_last_seen_product_slider_controls_items' => [$this'block_element_last_seen_product_slider_controls_items'],
  35.             'element_last_seen_product_slider_controls_items_prev_icon' => [$this'block_element_last_seen_product_slider_controls_items_prev_icon'],
  36.             'element_last_seen_product_slider_controls_items_next_icon' => [$this'block_element_last_seen_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""@XantenLastSeenProduct/storefront/element/cms-element-last-seen-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""@XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig"));
  46.         // line 1
  47.         $this->displayBlock('element_last_seen_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_last_seen_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_last_seen_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_last_seen_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 (((null === sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse5), "products", [], "any"falsefalsefalse5)) && sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "ajaxLoad", [], "any"falsefalsefalse5), "value", [], "any"falsefalsefalse5))) {
  72.             // line 6
  73.             echo "    <div class=\"cms-element-product-slider cms-element-";
  74.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["element"] ?? null), "type", [], "any"falsefalsefalse6), "html"nulltrue);
  75.             if (((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "displayMode", [], "any"falsefalsefalse6), "value", [], "any"falsefalsefalse6) == "standard") && sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "verticalAlign", [], "any"falsefalsefalse6), "value", [], "any"falsefalsefalse6))) {
  76.                 echo " has-vertical-alignment";
  77.             }
  78.             echo "\">
  79.         ";
  80.             // line 7
  81.             $this->displayBlock('element_last_seen_product_slider_alignment'$context$blocks);
  82.             // line 127
  83.             echo "    </div>
  84.     ";
  85.         } else {
  86.             // line 129
  87.             echo "        <div class=\"cms-element-product-slider\">
  88.             ";
  89.             // line 130
  90.             $this->loadTemplate("@XantenLastSeenProduct/storefront/element/cms-element-product-slider.html.twig""@XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig"130)->display(twig_array_merge($context, ["element" =>             // line 131
  91. ($context["element"] ?? null)]));
  92.             // line 133
  93.             echo "        </div>
  94.     ";
  95.         }
  96.         
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  98.         
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  100.     }
  101.     // line 7
  102.     public function block_element_last_seen_product_slider_alignment($context, array $blocks = [])
  103.     {
  104.         $macros $this->macros;
  105.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_alignment"));
  107.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_alignment"));
  109.         // line 8
  110.         echo "            ";
  111.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "verticalAlign", [], "any"falsefalsefalse8), "value", [], "any"falsefalsefalse8)) {
  112.             // line 9
  113.             echo "                <div class=\"cms-element-alignment";
  114.             if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "verticalAlign", [], "any"falsefalsefalse9), "value", [], "any"falsefalsefalse9) == "center")) {
  115.                 echo " align-self-center";
  116.             } elseif ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "verticalAlign", [], "any"falsefalsefalse9), "value", [], "any"falsefalsefalse9) == "flex-end")) {
  117.                 echo " align-self-end";
  118.             } else {
  119.                 echo " align-self-start";
  120.             }
  121.             echo "\">
  122.             ";
  123.         }
  124.         // line 11
  125.         echo "            ";
  126.         $context["gutter"] = 30;
  127.         // line 12
  128.         echo "            ";
  129.         $context["productSliderOptions"] = ["productboxMinWidth" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 13
  130. ($context["sliderConfig"] ?? null), "elMinWidth", [], "any"falsefalsefalse13), "value", [], "any"falsefalsefalse13)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "elMinWidth", [], "any"falsefalsefalse13), "value", [], "any"falsefalsefalse13)) : ("300px")), "slider" => ["gutter" =>         // line 15
  131. ($context["gutter"] ?? null), "autoplayButtonOutput" => false"nav" => false"mouseDrag" => false"controls" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 19
  132. ($context["sliderConfig"] ?? null), "navigation", [], "any"falsefalsefalse19), "value", [], "any"falsefalsefalse19)) ? (true) : (false)), "autoplay" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 20
  133. ($context["sliderConfig"] ?? null), "rotate", [], "any"falsefalsefalse20), "value", [], "any"falsefalsefalse20)) ? (true) : (false))]];
  134.         // line 23
  135.         echo "
  136.             ";
  137.         // line 24
  138.         if ( !sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "navigation", [], "any"falsefalsefalse24), "value", [], "any"falsefalsefalse24)) {
  139.             // line 25
  140.             echo "                ";
  141.             $context["productSliderOptions"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Filter\ReplaceRecursiveFilter']->replaceRecursive(($context["productSliderOptions"] ?? null), ["slider" => ["mouseDrag" => true]]);
  142.             // line 30
  143.             echo "            ";
  144.         }
  145.         // line 31
  146.         echo "
  147.             ";
  148.         // line 32
  149.         $context["ajaxUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.last.seen.product.page", ["minItems" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 33
  150. ($context["sliderConfig"] ?? null), "minItems", [], "any"falsefalsefalse33), "value", [], "any"falsefalsefalse33), "maxItems" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 34
  151. ($context["sliderConfig"] ?? null), "maxItems", [], "any"falsefalsefalse34), "value", [], "any"falsefalsefalse34), "layout" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 35
  152. ($context["sliderConfig"] ?? null), "boxLayout", [], "any"falsefalsefalse35), "value", [], "any"falsefalsefalse35), "displayMode" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 36
  153. ($context["sliderConfig"] ?? null), "displayMode", [], "any"falsefalsefalse36), "value", [], "any"falsefalsefalse36)]);
  154.         // line 38
  155.         echo "
  156.             ";
  157.         // line 39
  158.         if ((($context["controllerName"] ?? null) == "Product")) {
  159.             // line 40
  160.             echo "                ";
  161.             $context["ajaxUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.last.seen.product.page", ["minItems" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 41
  162. ($context["sliderConfig"] ?? null), "minItems", [], "any"falsefalsefalse41), "value", [], "any"falsefalsefalse41), "maxItems" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 42
  163. ($context["sliderConfig"] ?? null), "maxItems", [], "any"falsefalsefalse42), "value", [], "any"falsefalsefalse42), "layout" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 43
  164. ($context["sliderConfig"] ?? null), "boxLayout", [], "any"falsefalsefalse43), "value", [], "any"falsefalsefalse43), "displayMode" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 44
  165. ($context["sliderConfig"] ?? null), "displayMode", [], "any"falsefalsefalse44), "value", [], "any"falsefalsefalse44), "skipProductId" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 45
  166. ($context["page"] ?? null), "product", [], "any"falsefalsefalse45), "id", [], "any"falsefalsefalse45)]);
  167.             // line 47
  168.             echo "            ";
  169.         }
  170.         // line 48
  171.         echo "
  172.             ";
  173.         // line 49
  174.         $context["lastSeenProductOptions"] = ["productboxMinWidth" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 50
  175. ($context["sliderConfig"] ?? null), "elMinWidth", [], "any"falsefalsefalse50), "value", [], "any"falsefalsefalse50)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "elMinWidth", [], "any"falsefalsefalse50), "value", [], "any"falsefalsefalse50)) : ("300px")), "slider" => ["gutter" =>         // line 52
  176. ($context["gutter"] ?? null), "autoplayButtonOutput" => false"nav" => false"mouseDrag" => false"controls" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 56
  177. ($context["sliderConfig"] ?? null), "navigation", [], "any"falsefalsefalse56), "value", [], "any"falsefalsefalse56)) ? (true) : (false)), "autoplay" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 57
  178. ($context["sliderConfig"] ?? null), "rotate", [], "any"falsefalsefalse57), "value", [], "any"falsefalsefalse57)) ? (true) : (false))], "gutter" =>         // line 59
  179. ($context["gutter"] ?? null), "url" =>         // line 60
  180. ($context["ajaxUrl"] ?? null)];
  181.         // line 62
  182.         echo "
  183.             ";
  184.         // line 63
  185.         $this->displayBlock('element_last_seen_product_slider_slider'$context$blocks);
  186.         // line 123
  187.         echo "            ";
  188.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "verticalAlign", [], "any"falsefalsefalse123), "value", [], "any"falsefalsefalse123)) {
  189.             // line 124
  190.             echo "                </div>
  191.             ";
  192.         }
  193.         // line 126
  194.         echo "        ";
  195.         
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  197.         
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  199.     }
  200.     // line 63
  201.     public function block_element_last_seen_product_slider_slider($context, array $blocks = [])
  202.     {
  203.         $macros $this->macros;
  204.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  205.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_slider"));
  206.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  207.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_slider"));
  208.         // line 64
  209.         echo "                <div class=\"base-slider product-slider ";
  210.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "navigation", [], "any"falsefalsefalse64), "value", [], "any"falsefalsefalse64)) {
  211.             echo " has-nav";
  212.         }
  213.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "border", [], "any"falsefalsefalse64), "value", [], "any"falsefalsefalse64)) {
  214.             echo " has-border";
  215.         }
  216.         echo " ";
  217.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "ajaxLoad", [], "any"falsefalsefalse64), "value", [], "any"falsefalsefalse64)) {
  218.             echo "is-loading";
  219.         }
  220.         echo "\"
  221.                      data-base-slider=\"true\"
  222.                      data-base-slider-options=\"";
  223.         // line 66
  224.         echo sw_escape_filter($this->env$this->env->getFilter('json_encode')->getCallable()(($context["productSliderOptions"] ?? null)), "html"nulltrue);
  225.         echo "\"
  226.                      ";
  227.         // line 67
  228.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "ajaxLoad", [], "any"falsefalsefalse67), "value", [], "any"falsefalsefalse67)) {
  229.             // line 68
  230.             echo "                         data-last-seen-product-slider=\"true\"
  231.                          data-last-seen-product-slider-options=\"";
  232.             // line 69
  233.             echo sw_escape_filter($this->env$this->env->getFilter('json_encode')->getCallable()(($context["lastSeenProductOptions"] ?? null)), "html"nulltrue);
  234.             echo "\"
  235.                      ";
  236.         }
  237.         // line 70
  238.         echo ">
  239.                     ";
  240.         // line 72
  241.         $this->displayBlock('element_last_seen_product_slider_title'$context$blocks);
  242.         // line 79
  243.         echo "
  244.                     ";
  245.         // line 80
  246.         $this->displayBlock('element_last_seen_product_slider_text'$context$blocks);
  247.         // line 87
  248.         echo "
  249.                     ";
  250.         // line 88
  251.         $this->displayBlock('element_last_seen_product_slider_inner'$context$blocks);
  252.         // line 121
  253.         echo "                </div>
  254.             ";
  255.         
  256.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  257.         
  258.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  259.     }
  260.     // line 72
  261.     public function block_element_last_seen_product_slider_title($context, array $blocks = [])
  262.     {
  263.         $macros $this->macros;
  264.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  265.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_title"));
  266.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  267.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_title"));
  268.         // line 73
  269.         echo "                        ";
  270.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "title", [], "any"falsefalsefalse73), "value", [], "any"falsefalsefalse73)) {
  271.             // line 74
  272.             echo "                            <div class=\"cms-element-title\">
  273.                                 <p class=\"cms-element-title-paragraph\">";
  274.             // line 75
  275.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "title", [], "any"falsefalsefalse75), "value", [], "any"falsefalsefalse75), "html"nulltrue);
  276.             echo "</p>
  277.                             </div>
  278.                         ";
  279.         }
  280.         // line 78
  281.         echo "                    ";
  282.         
  283.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  284.         
  285.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  286.     }
  287.     // line 80
  288.     public function block_element_last_seen_product_slider_text($context, array $blocks = [])
  289.     {
  290.         $macros $this->macros;
  291.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  292.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_text"));
  293.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  294.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_text"));
  295.         // line 81
  296.         echo "                        ";
  297.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "text", [], "any"falsefalsefalse81), "value", [], "any"falsefalsefalse81)) {
  298.             // line 82
  299.             echo "                            <div class=\"cms-element-text\">
  300.                                 ";
  301.             // line 83
  302.             echo sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "text", [], "any"falsefalsefalse83), "value", [], "any"falsefalsefalse83);
  303.             echo "
  304.                             </div>
  305.                         ";
  306.         }
  307.         // line 86
  308.         echo "                    ";
  309.         
  310.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  311.         
  312.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  313.     }
  314.     // line 88
  315.     public function block_element_last_seen_product_slider_inner($context, array $blocks = [])
  316.     {
  317.         $macros $this->macros;
  318.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  319.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_inner"));
  320.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  321.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_inner"));
  322.         // line 89
  323.         echo "                        ";
  324.         $this->displayBlock('element_last_seen_product_slider_element'$context$blocks);
  325.         // line 98
  326.         echo "
  327.                         ";
  328.         // line 99
  329.         $this->displayBlock('element_last_seen_product_slider_controls'$context$blocks);
  330.         // line 120
  331.         echo "                    ";
  332.         
  333.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  334.         
  335.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  336.     }
  337.     // line 89
  338.     public function block_element_last_seen_product_slider_element($context, array $blocks = [])
  339.     {
  340.         $macros $this->macros;
  341.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  342.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_element"));
  343.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  344.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_element"));
  345.         // line 90
  346.         echo "                            <div class=\"product-slider-container\" data-base-slider-container=\"true\">
  347.                                 ";
  348.         // line 91
  349.         $this->loadTemplate("@XantenLastSeenProduct/storefront/component/product-slider.html.twig""@XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig"91)->display(twig_array_merge($context, ["products" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 92
  350. ($context["element"] ?? null), "data", [], "any"falsefalsefalse92), "products", [], "any"falsefalsefalse92), "elements", [], "any"falsefalsefalse92), "layout" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 93
  351. ($context["sliderConfig"] ?? null), "boxLayout", [], "any"falsefalsefalse93), "value", [], "any"falsefalsefalse93), "displayMode" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 94
  352. ($context["sliderConfig"] ?? null), "displayMode", [], "any"falsefalsefalse94), "value", [], "any"falsefalsefalse94)]));
  353.         // line 96
  354.         echo "                            </div>
  355.                         ";
  356.         
  357.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  358.         
  359.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  360.     }
  361.     // line 99
  362.     public function block_element_last_seen_product_slider_controls($context, array $blocks = [])
  363.     {
  364.         $macros $this->macros;
  365.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  366.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_controls"));
  367.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  368.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_controls"));
  369.         // line 100
  370.         echo "                            ";
  371.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["sliderConfig"] ?? null), "navigation", [], "any"falsefalsefalse100), "value", [], "any"falsefalsefalse100)) {
  372.             // line 101
  373.             echo "                                <div class=\"product-slider-controls-container\">
  374.                                     <div class=\"base-slider-controls\"
  375.                                          data-base-slider-controls=\"true\">
  376.                                         ";
  377.             // line 104
  378.             $this->displayBlock('element_last_seen_product_slider_controls_items'$context$blocks);
  379.             // line 116
  380.             echo "                                    </div>
  381.                                 </div>
  382.                             ";
  383.         }
  384.         // line 119
  385.         echo "                        ";
  386.         
  387.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  388.         
  389.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  390.     }
  391.     // line 104
  392.     public function block_element_last_seen_product_slider_controls_items($context, array $blocks = [])
  393.     {
  394.         $macros $this->macros;
  395.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  396.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_controls_items"));
  397.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  398.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_controls_items"));
  399.         // line 105
  400.         echo "                                            <button class=\"base-slider-controls-prev product-slider-controls-prev\">
  401.                                                 ";
  402.         // line 106
  403.         $this->displayBlock('element_last_seen_product_slider_controls_items_prev_icon'$context$blocks);
  404.         // line 109
  405.         echo "                                            </button>
  406.                                             <button class=\"base-slider-controls-next product-slider-controls-next\">
  407.                                                 ";
  408.         // line 111
  409.         $this->displayBlock('element_last_seen_product_slider_controls_items_next_icon'$context$blocks);
  410.         // line 114
  411.         echo "                                            </button>
  412.                                         ";
  413.         
  414.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  415.         
  416.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  417.     }
  418.     // line 106
  419.     public function block_element_last_seen_product_slider_controls_items_prev_icon($context, array $blocks = [])
  420.     {
  421.         $macros $this->macros;
  422.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  423.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_controls_items_prev_icon"));
  424.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  425.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_controls_items_prev_icon"));
  426.         // line 107
  427.         echo "                                                    ";
  428.         ((function () use ($context$blocks) {
  429.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  430.             $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  431.             return $this->loadTemplate($includeTemplate ?? null"@XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig"107);
  432.         })())->display(twig_array_merge($context, ["name" => "arrow-head-left"]));
  433.         // line 108
  434.         echo "                                                ";
  435.         
  436.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  437.         
  438.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  439.     }
  440.     // line 111
  441.     public function block_element_last_seen_product_slider_controls_items_next_icon($context, array $blocks = [])
  442.     {
  443.         $macros $this->macros;
  444.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  445.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_controls_items_next_icon"));
  446.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  447.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_last_seen_product_slider_controls_items_next_icon"));
  448.         // line 112
  449.         echo "                                                    ";
  450.         ((function () use ($context$blocks) {
  451.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  452.             $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  453.             return $this->loadTemplate($includeTemplate ?? null"@XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig"112);
  454.         })())->display(twig_array_merge($context, ["name" => "arrow-head-right"]));
  455.         // line 113
  456.         echo "                                                ";
  457.         
  458.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  459.         
  460.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  461.     }
  462.     public function getTemplateName()
  463.     {
  464.         return "@XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig";
  465.     }
  466.     public function getDebugInfo()
  467.     {
  468.         return array (  523 => 113,  514 => 112,  504 => 111,  494 => 108,  485 => 107,  475 => 106,  464 => 114,  462 => 111,  458 => 109,  456 => 106,  453 => 105,  443 => 104,  433 => 119,  428 => 116,  426 => 104,  421 => 101,  418 => 100,  408 => 99,  397 => 96,  395 => 94,  394 => 93,  393 => 92,  392 => 91,  389 => 90,  379 => 89,  369 => 120,  367 => 99,  364 => 98,  361 => 89,  351 => 88,  341 => 86,  335 => 83,  332 => 82,  329 => 81,  319 => 80,  309 => 78,  303 => 75,  300 => 74,  297 => 73,  287 => 72,  276 => 121,  274 => 88,  271 => 87,  269 => 80,  266 => 79,  264 => 72,  260 => 70,  255 => 69,  252 => 68,  250 => 67,  246 => 66,  231 => 64,  221 => 63,  211 => 126,  207 => 124,  204 => 123,  202 => 63,  199 => 62,  197 => 60,  196 => 59,  195 => 57,  194 => 56,  193 => 52,  192 => 50,  191 => 49,  188 => 48,  185 => 47,  183 => 45,  182 => 44,  181 => 43,  180 => 42,  179 => 41,  177 => 40,  175 => 39,  172 => 38,  170 => 36,  169 => 35,  168 => 34,  167 => 33,  166 => 32,  163 => 31,  160 => 30,  157 => 25,  155 => 24,  152 => 23,  150 => 20,  149 => 19,  148 => 15,  147 => 13,  145 => 12,  142 => 11,  130 => 9,  127 => 8,  117 => 7,  105 => 133,  103 => 131,  102 => 130,  99 => 129,  95 => 127,  93 => 7,  85 => 6,  82 => 5,  79 => 4,  76 => 3,  73 => 2,  54 => 1,);
  469.     }
  470.     public function getSourceContext()
  471.     {
  472.         return new Source("{% block element_last_seen_product_slider %}
  473.     {% if not sliderConfig %}
  474.         {% set sliderConfig = element.fieldConfig.elements %}
  475.     {% endif %}
  476.     {% if element.data.products is null and sliderConfig.ajaxLoad.value %}
  477.     <div class=\"cms-element-product-slider cms-element-{{ element.type }}{% if sliderConfig.displayMode.value == \"standard\" and sliderConfig.verticalAlign.value %} has-vertical-alignment{% endif %}\">
  478.         {% block element_last_seen_product_slider_alignment %}
  479.             {% if config.verticalAlign.value %}
  480.                 <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 %}\">
  481.             {% endif %}
  482.             {% set gutter = 30 %}
  483.             {% set productSliderOptions = {
  484.                 productboxMinWidth: sliderConfig.elMinWidth.value ? sliderConfig.elMinWidth.value : '300px',
  485.                 slider: {
  486.                     gutter: gutter,
  487.                     autoplayButtonOutput: false,
  488.                     nav: false,
  489.                     mouseDrag: false,
  490.                     controls: sliderConfig.navigation.value ? true : false,
  491.                     autoplay: sliderConfig.rotate.value ? true : false
  492.                 }
  493.             } %}
  494.             {% if not sliderConfig.navigation.value %}
  495.                 {% set productSliderOptions = productSliderOptions|replace_recursive({
  496.                 slider: {
  497.                     mouseDrag: true
  498.                 }
  499.                 }) %}
  500.             {% endif %}
  501.             {% set ajaxUrl = path('frontend.last.seen.product.page', {
  502.                 'minItems': sliderConfig.minItems.value,
  503.                 'maxItems': sliderConfig.maxItems.value,
  504.                 'layout': sliderConfig.boxLayout.value,
  505.                 'displayMode': sliderConfig.displayMode.value
  506.             }) %}
  507.             {% if controllerName == 'Product' %}
  508.                 {% set ajaxUrl = path('frontend.last.seen.product.page', {
  509.                     'minItems': sliderConfig.minItems.value,
  510.                     'maxItems': sliderConfig.maxItems.value,
  511.                     'layout': sliderConfig.boxLayout.value,
  512.                     'displayMode': sliderConfig.displayMode.value,
  513.                     'skipProductId': page.product.id
  514.                 }) %}
  515.             {% endif %}
  516.             {% set lastSeenProductOptions = {
  517.                 productboxMinWidth: sliderConfig.elMinWidth.value ? sliderConfig.elMinWidth.value : '300px',
  518.                 slider: {
  519.                     gutter: gutter,
  520.                     autoplayButtonOutput: false,
  521.                     nav: false,
  522.                     mouseDrag: false,
  523.                     controls: sliderConfig.navigation.value ? true : false,
  524.                     autoplay: sliderConfig.rotate.value ? true : false
  525.                 },
  526.                 gutter: gutter,
  527.                 url: ajaxUrl
  528.             } %}
  529.             {% block element_last_seen_product_slider_slider %}
  530.                 <div class=\"base-slider product-slider {% if sliderConfig.navigation.value %} has-nav{% endif %}{% if sliderConfig.border.value %} has-border{% endif %} {% if sliderConfig.ajaxLoad.value %}is-loading{% endif %}\"
  531.                      data-base-slider=\"true\"
  532.                      data-base-slider-options=\"{{ productSliderOptions|json_encode }}\"
  533.                      {% if sliderConfig.ajaxLoad.value %}
  534.                          data-last-seen-product-slider=\"true\"
  535.                          data-last-seen-product-slider-options=\"{{ lastSeenProductOptions | json_encode }}\"
  536.                      {% endif %}>
  537.                     {% block element_last_seen_product_slider_title %}
  538.                         {% if sliderConfig.title.value %}
  539.                             <div class=\"cms-element-title\">
  540.                                 <p class=\"cms-element-title-paragraph\">{{ sliderConfig.title.value }}</p>
  541.                             </div>
  542.                         {% endif %}
  543.                     {% endblock %}
  544.                     {% block element_last_seen_product_slider_text %}
  545.                         {% if sliderConfig.text.value %}
  546.                             <div class=\"cms-element-text\">
  547.                                 {{ sliderConfig.text.value|raw }}
  548.                             </div>
  549.                         {% endif %}
  550.                     {% endblock %}
  551.                     {% block element_last_seen_product_slider_inner %}
  552.                         {% block element_last_seen_product_slider_element %}
  553.                             <div class=\"product-slider-container\" data-base-slider-container=\"true\">
  554.                                 {% sw_include '@Storefront/storefront/component/product-slider.html.twig' with {
  555.                                     'products': element.data.products.elements,
  556.                                     'layout': sliderConfig.boxLayout.value,
  557.                                     'displayMode': sliderConfig.displayMode.value
  558.                                 } %}
  559.                             </div>
  560.                         {% endblock %}
  561.                         {% block element_last_seen_product_slider_controls %}
  562.                             {% if sliderConfig.navigation.value %}
  563.                                 <div class=\"product-slider-controls-container\">
  564.                                     <div class=\"base-slider-controls\"
  565.                                          data-base-slider-controls=\"true\">
  566.                                         {% block element_last_seen_product_slider_controls_items %}
  567.                                             <button class=\"base-slider-controls-prev product-slider-controls-prev\">
  568.                                                 {% block element_last_seen_product_slider_controls_items_prev_icon %}
  569.                                                     {% sw_icon 'arrow-head-left' %}
  570.                                                 {% endblock %}
  571.                                             </button>
  572.                                             <button class=\"base-slider-controls-next product-slider-controls-next\">
  573.                                                 {% block element_last_seen_product_slider_controls_items_next_icon %}
  574.                                                     {% sw_icon 'arrow-head-right' %}
  575.                                                 {% endblock %}
  576.                                             </button>
  577.                                         {% endblock %}
  578.                                     </div>
  579.                                 </div>
  580.                             {% endif %}
  581.                         {% endblock %}
  582.                     {% endblock %}
  583.                 </div>
  584.             {% endblock %}
  585.             {% if config.verticalAlign.value %}
  586.                 </div>
  587.             {% endif %}
  588.         {% endblock %}
  589.     </div>
  590.     {% else %}
  591.         <div class=\"cms-element-product-slider\">
  592.             {% sw_include '@Storefront/storefront/element/cms-element-product-slider.html.twig' with {
  593.                 element: element
  594.             } %}
  595.         </div>
  596.     {% endif %}
  597. {% endblock %}""@XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig""/usr/www/users/betten/betten-abc-alt-und-tot.de/custom/plugins/XantenLastSeenProduct/src/Resources/views/storefront/element/cms-element-last-seen-product-slider.html.twig");
  598.     }
  599. }