<?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;
/* @NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig */
class __TwigTemplate_6989cb16eaac0a5530ca65c43e80ba2b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'component_product_box' => [$this, 'block_component_product_box'],
'component_product_box_content' => [$this, 'block_component_product_box_content'],
'component_product_box_image_link_inner' => [$this, 'block_component_product_box_image_link_inner'],
'component_product_box_image_placeholder' => [$this, 'block_component_product_box_image_placeholder'],
'component_product_box_variant_characteristics' => [$this, 'block_component_product_box_variant_characteristics'],
'component_product_box_image_link' => [$this, 'block_component_product_box_image_link'],
'component_product_box_brand_name' => [$this, 'block_component_product_box_brand_name'],
'component_product_box_name' => [$this, 'block_component_product_box_name'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@NdTheme/storefront/component/product/card/box-standard.html.twig";
}
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", "@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig"));
$this->parent = $this->loadTemplate("@NdTheme/storefront/component/product/card/box-standard.html.twig", "@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_component_product_box($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", "component_product_box"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_box"));
// line 4
echo " ";
if (($context["product"] ?? null)) {
// line 5
echo " ";
$context["name"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "translated", [], "any", false, false, false, 5), "name", [], "any", false, false, false, 5);
// line 6
echo "
";
// line 8
echo " ";
if ( !(null === sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parentId", [], "any", false, false, false, 8))) {
// line 9
echo " ";
$context["id"] = sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parentId", [], "any", false, false, false, 9);
// line 10
echo " ";
} else {
// line 11
echo " ";
$context["id"] = sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "id", [], "any", false, false, false, 11);
// line 12
echo " ";
}
// line 13
echo "
";
// line 14
$context["cover"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "cover", [], "any", false, false, false, 14), "media", [], "any", false, false, false, 14);
// line 15
echo " ";
$context["variation"] = sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "variation", [], "any", false, false, false, 15);
// line 16
echo " ";
$context["displayParent"] = (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "variantListingConfig", [], "any", false, false, false, 16), "displayParent", [], "any", false, false, false, 16) && (sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parentId", [], "any", false, false, false, 16) === null));
// line 17
echo " ";
$context["productUrl"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.detail.page", ["productId" => ($context["id"] ?? null)]);
// line 18
echo "
<div class=\"product-box box-";
// line 19
echo sw_escape_filter($this->env, ($context["layout"] ?? null), "html", null, true);
echo " h-full group\">
";
// line 20
$this->displayBlock('component_product_box_content', $context, $blocks);
// line 23
echo " </div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 20
public function block_component_product_box_content($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", "component_product_box_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_box_content"));
// line 21
echo " ";
$this->displayParentBlock("component_product_box_content", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 27
public function block_component_product_box_image_link_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", "component_product_box_image_link_inner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_box_image_link_inner"));
// line 28
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["cover"] ?? null), "url", [], "any", false, false, false, 28)) {
// line 29
echo " ";
$context["attributes"] = ["class" => "product-image cover", "alt" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 31
($context["cover"] ?? null), "translated", [], "any", false, false, false, 31), "alt", [], "any", false, false, false, 31)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["cover"] ?? null), "translated", [], "any", false, false, false, 31), "alt", [], "any", false, false, false, 31)) : (($context["name"] ?? null))), "title" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 32
($context["cover"] ?? null), "translated", [], "any", false, false, false, 32), "title", [], "any", false, false, false, 32)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["cover"] ?? null), "translated", [], "any", false, false, false, 32), "title", [], "any", false, false, false, 32)) : (($context["name"] ?? null)))];
// line 34
echo " ";
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/thumbnail.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig", 34);
})())->display(twig_array_merge($context, ["media" => // line 37
($context["cover"] ?? null), "sizes" => ["xs" => "308px", "md" => "420px", "xl" => "868px"], "name" => "product-image-thumbnails"]));
// line 44
echo "
";
// line 45
if (twig_in_filter("secondMediaExtension", twig_get_array_keys_filter(sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "extensions", [], "any", false, false, false, 45)))) {
// line 46
echo " ";
$context["secondMedia"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "extensions", [], "any", false, false, false, 46), "secondMediaExtension", [], "any", false, false, false, 46), "secondMedia", [], "any", false, false, false, 46), "media", [], "any", false, false, false, 46);
// line 47
echo " ";
$context["attributes"] = ["class" => "product-image product-image-hover hidden opacity-0 hover:opacity-100 md:block transition cover", "alt" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 49
($context["secondMedia"] ?? null), "translated", [], "any", false, false, false, 49), "alt", [], "any", false, false, false, 49)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["secondMedia"] ?? null), "translated", [], "any", false, false, false, 49), "alt", [], "any", false, false, false, 49)) : (($context["name"] ?? null))), "title" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 50
($context["secondMedia"] ?? null), "translated", [], "any", false, false, false, 50), "title", [], "any", false, false, false, 50)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["secondMedia"] ?? null), "translated", [], "any", false, false, false, 50), "title", [], "any", false, false, false, 50)) : (($context["name"] ?? null)))];
// line 52
echo " ";
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/thumbnail.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig", 52);
})())->display(twig_array_merge($context, ["media" => // line 55
($context["secondMedia"] ?? null), "sizes" => ["xs" => "308px", "md" => "420px", "xl" => "868px"], "name" => "product-image-thumbnails"]));
// line 62
echo " ";
}
// line 63
echo " ";
} else {
// line 64
echo " ";
$this->displayBlock('component_product_box_image_placeholder', $context, $blocks);
// line 69
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 64
public function block_component_product_box_image_placeholder($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", "component_product_box_image_placeholder"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_box_image_placeholder"));
// line 65
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, "@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig", 65);
})())->display(twig_array_merge($context, ["size" => "fluid", "name" => "placeholder"]));
// line 68
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 74
public function block_component_product_box_variant_characteristics($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", "component_product_box_variant_characteristics"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_box_variant_characteristics"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 77
public function block_component_product_box_image_link($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", "component_product_box_image_link"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_box_image_link"));
// line 78
echo " ";
$this->displayParentBlock("component_product_box_image_link", $context, $blocks);
echo "
<div class=\"variant-selector justify-center text-sm transition absolute bottom-0 flex w-full flex-wrap grid-gap-2 p-2 bg-white/25 opacity-0 group-hover:opacity-100\">
";
// line 80
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["product"], "extensions", [], "any", false, false, false, 80), "allChildren", [], "any", false, false, false, 80), "elements", [], "any", false, false, false, 80));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 81
echo " ";
$context["size"] = sw_get_attribute($this->env, $this->source, twig_first($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["product"], "options", [], "any", false, false, false, 81), "elements", [], "any", false, false, false, 81)), "name", [], "any", false, false, false, 81);
// line 82
echo " ";
if (sw_get_attribute($this->env, $this->source, $context["product"], "availableStock", [], "any", false, false, false, 82)) {
// line 83
echo " <a href=\"";
echo sw_escape_filter($this->env, ($context["productUrl"] ?? null), "html", null, true);
echo "?size=";
echo sw_escape_filter($this->env, ($context["size"] ?? null), "html", null, true);
echo "\"
title=\"Selecteer maat ";
// line 84
echo sw_escape_filter($this->env, ($context["size"] ?? null), "html", null, true);
echo "\"
class=\"flex items-center justify-center w-8 h-8 bg-grey-50 border border-transparent rounded-sm hover:border-grey-900\">";
// line 85
echo sw_escape_filter($this->env, ($context["size"] ?? null), "html", null, true);
echo "</a>
";
}
// line 87
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 91
public function block_component_product_box_brand_name($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", "component_product_box_brand_name"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_box_brand_name"));
// line 92
echo " <div class=\"product-brand-name font-accent font-bold text-xs mb-2\">
";
// line 93
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "manufacturer", [], "any", false, false, false, 93), "translated", [], "any", false, false, false, 93), "name", [], "any", false, false, false, 93), "html", null, true);
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 97
public function block_component_product_box_name($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", "component_product_box_name"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_box_name"));
// line 98
echo "\t<a href=\"";
echo sw_escape_filter($this->env, ($context["productUrl"] ?? null), "html", null, true);
echo "\"
\t class=\"product-name block text-xs font-normal lg:text-sm\"
\t title=\"";
// line 100
echo sw_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "\">
\t\t";
// line 101
echo sw_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "
\t</a>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 380 => 101, 376 => 100, 370 => 98, 360 => 97, 347 => 93, 344 => 92, 334 => 91, 323 => 88, 317 => 87, 312 => 85, 308 => 84, 301 => 83, 298 => 82, 295 => 81, 291 => 80, 285 => 78, 275 => 77, 257 => 74, 247 => 68, 238 => 65, 228 => 64, 217 => 69, 214 => 64, 211 => 63, 208 => 62, 206 => 55, 198 => 52, 196 => 50, 195 => 49, 193 => 47, 190 => 46, 188 => 45, 185 => 44, 183 => 37, 175 => 34, 173 => 32, 172 => 31, 170 => 29, 167 => 28, 157 => 27, 144 => 21, 134 => 20, 122 => 23, 120 => 20, 116 => 19, 113 => 18, 110 => 17, 107 => 16, 104 => 15, 102 => 14, 99 => 13, 96 => 12, 93 => 11, 90 => 10, 87 => 9, 84 => 8, 81 => 6, 78 => 5, 75 => 4, 65 => 3, 42 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
{% block component_product_box %}
{% if product %}
{% set name = product.translated.name %}
{# Custom switch, as we want product cards to link to the Parent product (so no variation is selected), instead of the product variation itself. #}
{% if product.parentId is not null %}
{% set id = product.parentId %}
{% else %}
{% set id = product.id %}
{% endif %}
{% set cover = product.cover.media %}
{% set variation = product.variation %}
{% set displayParent = product.variantListingConfig.displayParent and product.parentId === null %}
{% set productUrl = seoUrl('frontend.detail.page', { 'productId': id }) %}
<div class=\"product-box box-{{ layout }} h-full group\">
{% block component_product_box_content %}
{{ parent() }}
{% endblock %}
</div>
{% endif %}
{% endblock %}
{% block component_product_box_image_link_inner %}
{% if cover.url %}
{% set attributes = {
class: 'product-image cover',
alt: cover.translated.alt ? : name,
title: cover.translated.title ? : name
} %}
{% sw_thumbnails 'product-image-thumbnails'
with
{
media: cover,
sizes: {
'xs': '308px',
'md': '420px',
'xl': '868px'
}
} %}
{% if 'secondMediaExtension' in product.extensions|keys %}
{% set secondMedia = product.extensions.secondMediaExtension.secondMedia.media %}
{% set attributes = {
class: 'product-image product-image-hover hidden opacity-0 hover:opacity-100 md:block transition cover',
alt: secondMedia.translated.alt ? : name,
title: secondMedia.translated.title ? : name
} %}
{% sw_thumbnails 'product-image-thumbnails'
with
{
media: secondMedia,
sizes: {
'xs': '308px',
'md': '420px',
'xl': '868px'
}
} %}
{% endif %}
{% else %}
{% block component_product_box_image_placeholder %}
{% sw_icon 'placeholder' style {
'size': 'fluid'
} %}
{% endblock %}
{% endif %}
{% endblock %}
{% block component_product_box_variant_characteristics %}
{% endblock %}
{% block component_product_box_image_link %}
{{ parent() }}
<div class=\"variant-selector justify-center text-sm transition absolute bottom-0 flex w-full flex-wrap grid-gap-2 p-2 bg-white/25 opacity-0 group-hover:opacity-100\">
{% for product in product.extensions.allChildren.elements %}
{% set size = product.options.elements|first.name %}
{% if product.availableStock %}
<a href=\"{{ productUrl }}?size={{ size }}\"
title=\"Selecteer maat {{ size }}\"
class=\"flex items-center justify-center w-8 h-8 bg-grey-50 border border-transparent rounded-sm hover:border-grey-900\">{{ size }}</a>
{% endif %}
{% endfor %}
</div>
{% endblock %}
{% block component_product_box_brand_name %}
<div class=\"product-brand-name font-accent font-bold text-xs mb-2\">
{{ product.manufacturer.translated.name }}
</div>
{% endblock %}
{% block component_product_box_name %}
\t<a href=\"{{ productUrl }}\"
\t class=\"product-name block text-xs font-normal lg:text-sm\"
\t title=\"{{ name }}\">
\t\t{{ name }}
\t</a>
{% endblock %}", "@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig", "/var/www/dev/deployer/releases/56/custom/static-plugins/NdVoorwindenTheme/src/Resources/views/storefront/component/product/card/box-standard.html.twig");
}
}