<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig */
class __TwigTemplate_ceae801f0a4a036779be3e8b553f0280 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'element_last_seen_product_slider' => [$this, 'block_element_last_seen_product_slider'],
'element_last_seen_product_slider_alignment' => [$this, 'block_element_last_seen_product_slider_alignment'],
'element_last_seen_product_slider_slider' => [$this, 'block_element_last_seen_product_slider_slider'],
'element_last_seen_product_slider_title' => [$this, 'block_element_last_seen_product_slider_title'],
'element_last_seen_product_slider_text' => [$this, 'block_element_last_seen_product_slider_text'],
'element_last_seen_product_slider_inner' => [$this, 'block_element_last_seen_product_slider_inner'],
'element_last_seen_product_slider_element' => [$this, 'block_element_last_seen_product_slider_element'],
'element_last_seen_product_slider_controls' => [$this, 'block_element_last_seen_product_slider_controls'],
'element_last_seen_product_slider_controls_items' => [$this, 'block_element_last_seen_product_slider_controls_items'],
'element_last_seen_product_slider_controls_items_prev_icon' => [$this, 'block_element_last_seen_product_slider_controls_items_prev_icon'],
'element_last_seen_product_slider_controls_items_next_icon' => [$this, 'block_element_last_seen_product_slider_controls_items_next_icon'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig"));
// line 1
$this->displayBlock('element_last_seen_product_slider', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function block_element_last_seen_product_slider($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider"));
// line 2
echo " ";
if ( !($context["sliderConfig"] ?? null)) {
// line 3
echo " ";
$context["sliderConfig"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "fieldConfig", [], "any", false, false, false, 3), "elements", [], "any", false, false, false, 3);
// line 4
echo " ";
}
// line 5
echo " ";
if (((null === sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "data", [], "any", false, false, false, 5), "products", [], "any", false, false, false, 5)) && sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "ajaxLoad", [], "any", false, false, false, 5), "value", [], "any", false, false, false, 5))) {
// line 6
echo " <div class=\"cms-element-product-slider cms-element-";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "type", [], "any", false, false, false, 6), "html", null, true);
if (((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "displayMode", [], "any", false, false, false, 6), "value", [], "any", false, false, false, 6) == "standard") && sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "verticalAlign", [], "any", false, false, false, 6), "value", [], "any", false, false, false, 6))) {
echo " has-vertical-alignment";
}
echo "\">
";
// line 7
$this->displayBlock('element_last_seen_product_slider_alignment', $context, $blocks);
// line 127
echo " </div>
";
} else {
// line 129
echo " <div class=\"cms-element-product-slider\">
";
// line 130
$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
($context["element"] ?? null)]));
// line 133
echo " </div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 7
public function block_element_last_seen_product_slider_alignment($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_alignment"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_alignment"));
// line 8
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["config"] ?? null), "verticalAlign", [], "any", false, false, false, 8), "value", [], "any", false, false, false, 8)) {
// line 9
echo " <div class=\"cms-element-alignment";
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "verticalAlign", [], "any", false, false, false, 9), "value", [], "any", false, false, false, 9) == "center")) {
echo " align-self-center";
} elseif ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "verticalAlign", [], "any", false, false, false, 9), "value", [], "any", false, false, false, 9) == "flex-end")) {
echo " align-self-end";
} else {
echo " align-self-start";
}
echo "\">
";
}
// line 11
echo " ";
$context["gutter"] = 30;
// line 12
echo " ";
$context["productSliderOptions"] = ["productboxMinWidth" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 13
($context["sliderConfig"] ?? null), "elMinWidth", [], "any", false, false, false, 13), "value", [], "any", false, false, false, 13)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "elMinWidth", [], "any", false, false, false, 13), "value", [], "any", false, false, false, 13)) : ("300px")), "slider" => ["gutter" => // line 15
($context["gutter"] ?? null), "autoplayButtonOutput" => false, "nav" => false, "mouseDrag" => false, "controls" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 19
($context["sliderConfig"] ?? null), "navigation", [], "any", false, false, false, 19), "value", [], "any", false, false, false, 19)) ? (true) : (false)), "autoplay" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 20
($context["sliderConfig"] ?? null), "rotate", [], "any", false, false, false, 20), "value", [], "any", false, false, false, 20)) ? (true) : (false))]];
// line 23
echo "
";
// line 24
if ( !sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "navigation", [], "any", false, false, false, 24), "value", [], "any", false, false, false, 24)) {
// line 25
echo " ";
$context["productSliderOptions"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Filter\ReplaceRecursiveFilter']->replaceRecursive(($context["productSliderOptions"] ?? null), ["slider" => ["mouseDrag" => true]]);
// line 30
echo " ";
}
// line 31
echo "
";
// line 32
$context["ajaxUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.last.seen.product.page", ["minItems" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 33
($context["sliderConfig"] ?? null), "minItems", [], "any", false, false, false, 33), "value", [], "any", false, false, false, 33), "maxItems" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 34
($context["sliderConfig"] ?? null), "maxItems", [], "any", false, false, false, 34), "value", [], "any", false, false, false, 34), "layout" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 35
($context["sliderConfig"] ?? null), "boxLayout", [], "any", false, false, false, 35), "value", [], "any", false, false, false, 35), "displayMode" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 36
($context["sliderConfig"] ?? null), "displayMode", [], "any", false, false, false, 36), "value", [], "any", false, false, false, 36)]);
// line 38
echo "
";
// line 39
if ((($context["controllerName"] ?? null) == "Product")) {
// line 40
echo " ";
$context["ajaxUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.last.seen.product.page", ["minItems" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 41
($context["sliderConfig"] ?? null), "minItems", [], "any", false, false, false, 41), "value", [], "any", false, false, false, 41), "maxItems" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 42
($context["sliderConfig"] ?? null), "maxItems", [], "any", false, false, false, 42), "value", [], "any", false, false, false, 42), "layout" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 43
($context["sliderConfig"] ?? null), "boxLayout", [], "any", false, false, false, 43), "value", [], "any", false, false, false, 43), "displayMode" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 44
($context["sliderConfig"] ?? null), "displayMode", [], "any", false, false, false, 44), "value", [], "any", false, false, false, 44), "skipProductId" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 45
($context["page"] ?? null), "product", [], "any", false, false, false, 45), "id", [], "any", false, false, false, 45)]);
// line 47
echo " ";
}
// line 48
echo "
";
// line 49
$context["lastSeenProductOptions"] = ["productboxMinWidth" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 50
($context["sliderConfig"] ?? null), "elMinWidth", [], "any", false, false, false, 50), "value", [], "any", false, false, false, 50)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "elMinWidth", [], "any", false, false, false, 50), "value", [], "any", false, false, false, 50)) : ("300px")), "slider" => ["gutter" => // line 52
($context["gutter"] ?? null), "autoplayButtonOutput" => false, "nav" => false, "mouseDrag" => false, "controls" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 56
($context["sliderConfig"] ?? null), "navigation", [], "any", false, false, false, 56), "value", [], "any", false, false, false, 56)) ? (true) : (false)), "autoplay" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 57
($context["sliderConfig"] ?? null), "rotate", [], "any", false, false, false, 57), "value", [], "any", false, false, false, 57)) ? (true) : (false))], "gutter" => // line 59
($context["gutter"] ?? null), "url" => // line 60
($context["ajaxUrl"] ?? null)];
// line 62
echo "
";
// line 63
$this->displayBlock('element_last_seen_product_slider_slider', $context, $blocks);
// line 123
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["config"] ?? null), "verticalAlign", [], "any", false, false, false, 123), "value", [], "any", false, false, false, 123)) {
// line 124
echo " </div>
";
}
// line 126
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 63
public function block_element_last_seen_product_slider_slider($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_slider"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_slider"));
// line 64
echo " <div class=\"base-slider product-slider ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "navigation", [], "any", false, false, false, 64), "value", [], "any", false, false, false, 64)) {
echo " has-nav";
}
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "border", [], "any", false, false, false, 64), "value", [], "any", false, false, false, 64)) {
echo " has-border";
}
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "ajaxLoad", [], "any", false, false, false, 64), "value", [], "any", false, false, false, 64)) {
echo "is-loading";
}
echo "\"
data-base-slider=\"true\"
data-base-slider-options=\"";
// line 66
echo sw_escape_filter($this->env, $this->env->getFilter('json_encode')->getCallable()(($context["productSliderOptions"] ?? null)), "html", null, true);
echo "\"
";
// line 67
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "ajaxLoad", [], "any", false, false, false, 67), "value", [], "any", false, false, false, 67)) {
// line 68
echo " data-last-seen-product-slider=\"true\"
data-last-seen-product-slider-options=\"";
// line 69
echo sw_escape_filter($this->env, $this->env->getFilter('json_encode')->getCallable()(($context["lastSeenProductOptions"] ?? null)), "html", null, true);
echo "\"
";
}
// line 70
echo ">
";
// line 72
$this->displayBlock('element_last_seen_product_slider_title', $context, $blocks);
// line 79
echo "
";
// line 80
$this->displayBlock('element_last_seen_product_slider_text', $context, $blocks);
// line 87
echo "
";
// line 88
$this->displayBlock('element_last_seen_product_slider_inner', $context, $blocks);
// line 121
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 72
public function block_element_last_seen_product_slider_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_title"));
// line 73
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "title", [], "any", false, false, false, 73), "value", [], "any", false, false, false, 73)) {
// line 74
echo " <div class=\"cms-element-title\">
<p class=\"cms-element-title-paragraph\">";
// line 75
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "title", [], "any", false, false, false, 75), "value", [], "any", false, false, false, 75), "html", null, true);
echo "</p>
</div>
";
}
// line 78
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 80
public function block_element_last_seen_product_slider_text($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_text"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_text"));
// line 81
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "text", [], "any", false, false, false, 81), "value", [], "any", false, false, false, 81)) {
// line 82
echo " <div class=\"cms-element-text\">
";
// line 83
echo sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "text", [], "any", false, false, false, 83), "value", [], "any", false, false, false, 83);
echo "
</div>
";
}
// line 86
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 88
public function block_element_last_seen_product_slider_inner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_inner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_inner"));
// line 89
echo " ";
$this->displayBlock('element_last_seen_product_slider_element', $context, $blocks);
// line 98
echo "
";
// line 99
$this->displayBlock('element_last_seen_product_slider_controls', $context, $blocks);
// line 120
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 89
public function block_element_last_seen_product_slider_element($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_element"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_element"));
// line 90
echo " <div class=\"product-slider-container\" data-base-slider-container=\"true\">
";
// line 91
$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->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 92
($context["element"] ?? null), "data", [], "any", false, false, false, 92), "products", [], "any", false, false, false, 92), "elements", [], "any", false, false, false, 92), "layout" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 93
($context["sliderConfig"] ?? null), "boxLayout", [], "any", false, false, false, 93), "value", [], "any", false, false, false, 93), "displayMode" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 94
($context["sliderConfig"] ?? null), "displayMode", [], "any", false, false, false, 94), "value", [], "any", false, false, false, 94)]));
// line 96
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 99
public function block_element_last_seen_product_slider_controls($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_controls"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_controls"));
// line 100
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["sliderConfig"] ?? null), "navigation", [], "any", false, false, false, 100), "value", [], "any", false, false, false, 100)) {
// line 101
echo " <div class=\"product-slider-controls-container\">
<div class=\"base-slider-controls\"
data-base-slider-controls=\"true\">
";
// line 104
$this->displayBlock('element_last_seen_product_slider_controls_items', $context, $blocks);
// line 116
echo " </div>
</div>
";
}
// line 119
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 104
public function block_element_last_seen_product_slider_controls_items($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_controls_items"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_controls_items"));
// line 105
echo " <button class=\"base-slider-controls-prev product-slider-controls-prev\">
";
// line 106
$this->displayBlock('element_last_seen_product_slider_controls_items_prev_icon', $context, $blocks);
// line 109
echo " </button>
<button class=\"base-slider-controls-next product-slider-controls-next\">
";
// line 111
$this->displayBlock('element_last_seen_product_slider_controls_items_next_icon', $context, $blocks);
// line 114
echo " </button>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 106
public function block_element_last_seen_product_slider_controls_items_prev_icon($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_controls_items_prev_icon"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_controls_items_prev_icon"));
// line 107
echo " ";
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig", 107);
})())->display(twig_array_merge($context, ["name" => "arrow-head-left"]));
// line 108
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 111
public function block_element_last_seen_product_slider_controls_items_next_icon($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_controls_items_next_icon"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_last_seen_product_slider_controls_items_next_icon"));
// line 112
echo " ";
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig", 112);
})())->display(twig_array_merge($context, ["name" => "arrow-head-right"]));
// line 113
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@XantenLastSeenProduct/storefront/element/cms-element-last-seen-product-slider.html.twig";
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% block element_last_seen_product_slider %}
{% if not sliderConfig %}
{% set sliderConfig = element.fieldConfig.elements %}
{% endif %}
{% if element.data.products is null and sliderConfig.ajaxLoad.value %}
<div class=\"cms-element-product-slider cms-element-{{ element.type }}{% if sliderConfig.displayMode.value == \"standard\" and sliderConfig.verticalAlign.value %} has-vertical-alignment{% endif %}\">
{% block element_last_seen_product_slider_alignment %}
{% if config.verticalAlign.value %}
<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 %}\">
{% endif %}
{% set gutter = 30 %}
{% set productSliderOptions = {
productboxMinWidth: sliderConfig.elMinWidth.value ? sliderConfig.elMinWidth.value : '300px',
slider: {
gutter: gutter,
autoplayButtonOutput: false,
nav: false,
mouseDrag: false,
controls: sliderConfig.navigation.value ? true : false,
autoplay: sliderConfig.rotate.value ? true : false
}
} %}
{% if not sliderConfig.navigation.value %}
{% set productSliderOptions = productSliderOptions|replace_recursive({
slider: {
mouseDrag: true
}
}) %}
{% endif %}
{% set ajaxUrl = path('frontend.last.seen.product.page', {
'minItems': sliderConfig.minItems.value,
'maxItems': sliderConfig.maxItems.value,
'layout': sliderConfig.boxLayout.value,
'displayMode': sliderConfig.displayMode.value
}) %}
{% if controllerName == 'Product' %}
{% set ajaxUrl = path('frontend.last.seen.product.page', {
'minItems': sliderConfig.minItems.value,
'maxItems': sliderConfig.maxItems.value,
'layout': sliderConfig.boxLayout.value,
'displayMode': sliderConfig.displayMode.value,
'skipProductId': page.product.id
}) %}
{% endif %}
{% set lastSeenProductOptions = {
productboxMinWidth: sliderConfig.elMinWidth.value ? sliderConfig.elMinWidth.value : '300px',
slider: {
gutter: gutter,
autoplayButtonOutput: false,
nav: false,
mouseDrag: false,
controls: sliderConfig.navigation.value ? true : false,
autoplay: sliderConfig.rotate.value ? true : false
},
gutter: gutter,
url: ajaxUrl
} %}
{% block element_last_seen_product_slider_slider %}
<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 %}\"
data-base-slider=\"true\"
data-base-slider-options=\"{{ productSliderOptions|json_encode }}\"
{% if sliderConfig.ajaxLoad.value %}
data-last-seen-product-slider=\"true\"
data-last-seen-product-slider-options=\"{{ lastSeenProductOptions | json_encode }}\"
{% endif %}>
{% block element_last_seen_product_slider_title %}
{% if sliderConfig.title.value %}
<div class=\"cms-element-title\">
<p class=\"cms-element-title-paragraph\">{{ sliderConfig.title.value }}</p>
</div>
{% endif %}
{% endblock %}
{% block element_last_seen_product_slider_text %}
{% if sliderConfig.text.value %}
<div class=\"cms-element-text\">
{{ sliderConfig.text.value|raw }}
</div>
{% endif %}
{% endblock %}
{% block element_last_seen_product_slider_inner %}
{% block element_last_seen_product_slider_element %}
<div class=\"product-slider-container\" data-base-slider-container=\"true\">
{% sw_include '@Storefront/storefront/component/product-slider.html.twig' with {
'products': element.data.products.elements,
'layout': sliderConfig.boxLayout.value,
'displayMode': sliderConfig.displayMode.value
} %}
</div>
{% endblock %}
{% block element_last_seen_product_slider_controls %}
{% if sliderConfig.navigation.value %}
<div class=\"product-slider-controls-container\">
<div class=\"base-slider-controls\"
data-base-slider-controls=\"true\">
{% block element_last_seen_product_slider_controls_items %}
<button class=\"base-slider-controls-prev product-slider-controls-prev\">
{% block element_last_seen_product_slider_controls_items_prev_icon %}
{% sw_icon 'arrow-head-left' %}
{% endblock %}
</button>
<button class=\"base-slider-controls-next product-slider-controls-next\">
{% block element_last_seen_product_slider_controls_items_next_icon %}
{% sw_icon 'arrow-head-right' %}
{% endblock %}
</button>
{% endblock %}
</div>
</div>
{% endif %}
{% endblock %}
{% endblock %}
</div>
{% endblock %}
{% if config.verticalAlign.value %}
</div>
{% endif %}
{% endblock %}
</div>
{% else %}
<div class=\"cms-element-product-slider\">
{% sw_include '@Storefront/storefront/element/cms-element-product-slider.html.twig' with {
element: element
} %}
</div>
{% endif %}
{% 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");
}
}