var/cache/dev_h3c3440ec00b8b6b995f16213b12b8432/twig/ea/ea853584942772af7f63ae5c8c50fd70.php line 122

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. /* @NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig */
  16. class __TwigTemplate_6989cb16eaac0a5530ca65c43e80ba2b 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->blocks = [
  25.             'component_product_box' => [$this'block_component_product_box'],
  26.             'component_product_box_content' => [$this'block_component_product_box_content'],
  27.             'component_product_box_image_link_inner' => [$this'block_component_product_box_image_link_inner'],
  28.             'component_product_box_image_placeholder' => [$this'block_component_product_box_image_placeholder'],
  29.             'component_product_box_variant_characteristics' => [$this'block_component_product_box_variant_characteristics'],
  30.             'component_product_box_image_link' => [$this'block_component_product_box_image_link'],
  31.             'component_product_box_brand_name' => [$this'block_component_product_box_brand_name'],
  32.             'component_product_box_name' => [$this'block_component_product_box_name'],
  33.         ];
  34.     }
  35.     protected function doGetParent(array $context)
  36.     {
  37.         // line 2
  38.         return "@NdTheme/storefront/component/product/card/box-standard.html.twig";
  39.     }
  40.     protected function doDisplay(array $context, array $blocks = [])
  41.     {
  42.         $macros $this->macros;
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig"));
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig"));
  47.         $this->parent $this->loadTemplate("@NdTheme/storefront/component/product/card/box-standard.html.twig""@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig"2);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 3
  55.     public function block_component_product_box($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box"));
  62.         // line 4
  63.         echo "    ";
  64.         if (($context["product"] ?? null)) {
  65.             // line 5
  66.             echo "        ";
  67.             $context["name"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["product"] ?? null), "translated", [], "any"falsefalsefalse5), "name", [], "any"falsefalsefalse5);
  68.             // line 6
  69.             echo "
  70.         ";
  71.             // line 8
  72.             echo "        ";
  73.             if ( !(null === sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "parentId", [], "any"falsefalsefalse8))) {
  74.                 // line 9
  75.                 echo "            ";
  76.                 $context["id"] = sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "parentId", [], "any"falsefalsefalse9);
  77.                 // line 10
  78.                 echo "        ";
  79.             } else {
  80.                 // line 11
  81.                 echo "            ";
  82.                 $context["id"] = sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "id", [], "any"falsefalsefalse11);
  83.                 // line 12
  84.                 echo "        ";
  85.             }
  86.             // line 13
  87.             echo "
  88.         ";
  89.             // line 14
  90.             $context["cover"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["product"] ?? null), "cover", [], "any"falsefalsefalse14), "media", [], "any"falsefalsefalse14);
  91.             // line 15
  92.             echo "        ";
  93.             $context["variation"] = sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "variation", [], "any"falsefalsefalse15);
  94.             // line 16
  95.             echo "        ";
  96.             $context["displayParent"] = (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["product"] ?? null), "variantListingConfig", [], "any"falsefalsefalse16), "displayParent", [], "any"falsefalsefalse16) && (sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "parentId", [], "any"falsefalsefalse16) === null));
  97.             // line 17
  98.             echo "        ";
  99.             $context["productUrl"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.detail.page", ["productId" => ($context["id"] ?? null)]);
  100.             // line 18
  101.             echo "
  102.         <div class=\"product-box box-";
  103.             // line 19
  104.             echo sw_escape_filter($this->env, ($context["layout"] ?? null), "html"nulltrue);
  105.             echo " h-full group\">
  106.             ";
  107.             // line 20
  108.             $this->displayBlock('component_product_box_content'$context$blocks);
  109.             // line 23
  110.             echo "        </div>
  111.     ";
  112.         }
  113.         
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  115.         
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117.     }
  118.     // line 20
  119.     public function block_component_product_box_content($context, array $blocks = [])
  120.     {
  121.         $macros $this->macros;
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_content"));
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_content"));
  126.         // line 21
  127.         echo "                ";
  128.         $this->displayParentBlock("component_product_box_content"$context$blocks);
  129.         echo "
  130.             ";
  131.         
  132.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  133.         
  134.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  135.     }
  136.     // line 27
  137.     public function block_component_product_box_image_link_inner($context, array $blocks = [])
  138.     {
  139.         $macros $this->macros;
  140.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_image_link_inner"));
  142.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  143.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_image_link_inner"));
  144.         // line 28
  145.         echo "    ";
  146.         if (sw_get_attribute($this->env$this->source, ($context["cover"] ?? null), "url", [], "any"falsefalsefalse28)) {
  147.             // line 29
  148.             echo "        ";
  149.             $context["attributes"] = ["class" => "product-image cover""alt" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 31
  150. ($context["cover"] ?? null), "translated", [], "any"falsefalsefalse31), "alt", [], "any"falsefalsefalse31)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["cover"] ?? null), "translated", [], "any"falsefalsefalse31), "alt", [], "any"falsefalsefalse31)) : (($context["name"] ?? null))), "title" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 32
  151. ($context["cover"] ?? null), "translated", [], "any"falsefalsefalse32), "title", [], "any"falsefalsefalse32)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["cover"] ?? null), "translated", [], "any"falsefalsefalse32), "title", [], "any"falsefalsefalse32)) : (($context["name"] ?? null)))];
  152.             // line 34
  153.             echo "        ";
  154.             ((function () use ($context$blocks) {
  155.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  156.                 $includeTemplate $finder->find("@Storefront/storefront/utilities/thumbnail.html.twig");
  157.                 return $this->loadTemplate($includeTemplate ?? null"@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig"34);
  158.             })())->display(twig_array_merge($context, ["media" =>             // line 37
  159. ($context["cover"] ?? null), "sizes" => ["xs" => "308px""md" => "420px""xl" => "868px"], "name" => "product-image-thumbnails"]));
  160.             // line 44
  161.             echo "
  162.         ";
  163.             // line 45
  164.             if (twig_in_filter("secondMediaExtension"twig_get_array_keys_filter(sw_get_attribute($this->env$this->source, ($context["product"] ?? null), "extensions", [], "any"falsefalsefalse45)))) {
  165.                 // line 46
  166.                 echo "            ";
  167.                 $context["secondMedia"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["product"] ?? null), "extensions", [], "any"falsefalsefalse46), "secondMediaExtension", [], "any"falsefalsefalse46), "secondMedia", [], "any"falsefalsefalse46), "media", [], "any"falsefalsefalse46);
  168.                 // line 47
  169.                 echo "            ";
  170.                 $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->sourcesw_get_attribute($this->env$this->source,                 // line 49
  171. ($context["secondMedia"] ?? null), "translated", [], "any"falsefalsefalse49), "alt", [], "any"falsefalsefalse49)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["secondMedia"] ?? null), "translated", [], "any"falsefalsefalse49), "alt", [], "any"falsefalsefalse49)) : (($context["name"] ?? null))), "title" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,                 // line 50
  172. ($context["secondMedia"] ?? null), "translated", [], "any"falsefalsefalse50), "title", [], "any"falsefalsefalse50)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["secondMedia"] ?? null), "translated", [], "any"falsefalsefalse50), "title", [], "any"falsefalsefalse50)) : (($context["name"] ?? null)))];
  173.                 // line 52
  174.                 echo "            ";
  175.                 ((function () use ($context$blocks) {
  176.                     $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  177.                     $includeTemplate $finder->find("@Storefront/storefront/utilities/thumbnail.html.twig");
  178.                     return $this->loadTemplate($includeTemplate ?? null"@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig"52);
  179.                 })())->display(twig_array_merge($context, ["media" =>                 // line 55
  180. ($context["secondMedia"] ?? null), "sizes" => ["xs" => "308px""md" => "420px""xl" => "868px"], "name" => "product-image-thumbnails"]));
  181.                 // line 62
  182.                 echo "        ";
  183.             }
  184.             // line 63
  185.             echo "    ";
  186.         } else {
  187.             // line 64
  188.             echo "        ";
  189.             $this->displayBlock('component_product_box_image_placeholder'$context$blocks);
  190.             // line 69
  191.             echo "    ";
  192.         }
  193.         
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  195.         
  196.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  197.     }
  198.     // line 64
  199.     public function block_component_product_box_image_placeholder($context, array $blocks = [])
  200.     {
  201.         $macros $this->macros;
  202.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  203.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_image_placeholder"));
  204.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_image_placeholder"));
  206.         // line 65
  207.         echo "            ";
  208.         ((function () use ($context$blocks) {
  209.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  210.             $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  211.             return $this->loadTemplate($includeTemplate ?? null"@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig"65);
  212.         })())->display(twig_array_merge($context, ["size" => "fluid""name" => "placeholder"]));
  213.         // line 68
  214.         echo "        ";
  215.         
  216.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  217.         
  218.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  219.     }
  220.     // line 74
  221.     public function block_component_product_box_variant_characteristics($context, array $blocks = [])
  222.     {
  223.         $macros $this->macros;
  224.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  225.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_variant_characteristics"));
  226.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  227.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_variant_characteristics"));
  228.         
  229.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  230.         
  231.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  232.     }
  233.     // line 77
  234.     public function block_component_product_box_image_link($context, array $blocks = [])
  235.     {
  236.         $macros $this->macros;
  237.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  238.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_image_link"));
  239.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  240.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_image_link"));
  241.         // line 78
  242.         echo "    ";
  243.         $this->displayParentBlock("component_product_box_image_link"$context$blocks);
  244.         echo "
  245.     <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\">
  246.         ";
  247.         // line 80
  248.         $context['_parent'] = $context;
  249.         $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["product"], "extensions", [], "any"falsefalsefalse80), "allChildren", [], "any"falsefalsefalse80), "elements", [], "any"falsefalsefalse80));
  250.         foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  251.             // line 81
  252.             echo "            ";
  253.             $context["size"] = sw_get_attribute($this->env$this->sourcetwig_first($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["product"], "options", [], "any"falsefalsefalse81), "elements", [], "any"falsefalsefalse81)), "name", [], "any"falsefalsefalse81);
  254.             // line 82
  255.             echo "            ";
  256.             if (sw_get_attribute($this->env$this->source$context["product"], "availableStock", [], "any"falsefalsefalse82)) {
  257.                 // line 83
  258.                 echo "                <a href=\"";
  259.                 echo sw_escape_filter($this->env, ($context["productUrl"] ?? null), "html"nulltrue);
  260.                 echo "?size=";
  261.                 echo sw_escape_filter($this->env, ($context["size"] ?? null), "html"nulltrue);
  262.                 echo "\"
  263.                    title=\"Selecteer maat ";
  264.                 // line 84
  265.                 echo sw_escape_filter($this->env, ($context["size"] ?? null), "html"nulltrue);
  266.                 echo "\"
  267.                    class=\"flex items-center justify-center w-8 h-8 bg-grey-50 border border-transparent rounded-sm hover:border-grey-900\">";
  268.                 // line 85
  269.                 echo sw_escape_filter($this->env, ($context["size"] ?? null), "html"nulltrue);
  270.                 echo "</a>
  271.             ";
  272.             }
  273.             // line 87
  274.             echo "        ";
  275.         }
  276.         $_parent $context['_parent'];
  277.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  278.         $context array_intersect_key($context$_parent) + $_parent;
  279.         // line 88
  280.         echo "    </div>
  281. ";
  282.         
  283.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  284.         
  285.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  286.     }
  287.     // line 91
  288.     public function block_component_product_box_brand_name($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""component_product_box_brand_name"));
  293.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  294.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_brand_name"));
  295.         // line 92
  296.         echo "    <div class=\"product-brand-name font-accent font-bold text-xs mb-2\">
  297.         ";
  298.         // line 93
  299.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["product"] ?? null), "manufacturer", [], "any"falsefalsefalse93), "translated", [], "any"falsefalsefalse93), "name", [], "any"falsefalsefalse93), "html"nulltrue);
  300.         echo "
  301.     </div>
  302. ";
  303.         
  304.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  305.         
  306.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  307.     }
  308.     // line 97
  309.     public function block_component_product_box_name($context, array $blocks = [])
  310.     {
  311.         $macros $this->macros;
  312.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  313.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_name"));
  314.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  315.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_name"));
  316.         // line 98
  317.         echo "\t<a href=\"";
  318.         echo sw_escape_filter($this->env, ($context["productUrl"] ?? null), "html"nulltrue);
  319.         echo "\"
  320. \t   class=\"product-name block text-xs font-normal lg:text-sm\"
  321. \t   title=\"";
  322.         // line 100
  323.         echo sw_escape_filter($this->env, ($context["name"] ?? null), "html"nulltrue);
  324.         echo "\">
  325. \t\t";
  326.         // line 101
  327.         echo sw_escape_filter($this->env, ($context["name"] ?? null), "html"nulltrue);
  328.         echo "
  329. \t</a>
  330. ";
  331.         
  332.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  333.         
  334.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  335.     }
  336.     public function getTemplateName()
  337.     {
  338.         return "@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig";
  339.     }
  340.     public function isTraitable()
  341.     {
  342.         return false;
  343.     }
  344.     public function getDebugInfo()
  345.     {
  346.         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,);
  347.     }
  348.     public function getSourceContext()
  349.     {
  350.         return new Source("{% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
  351. {% block component_product_box %}
  352.     {% if product %}
  353.         {% set name = product.translated.name %}
  354.         {# Custom switch, as we want product cards to link to the Parent product (so no variation is selected), instead of the product variation itself. #}
  355.         {% if product.parentId is not null %}
  356.             {% set id = product.parentId %}
  357.         {% else %}
  358.             {% set id = product.id %}
  359.         {% endif %}
  360.         {% set cover = product.cover.media %}
  361.         {% set variation = product.variation %}
  362.         {% set displayParent = product.variantListingConfig.displayParent and product.parentId === null %}
  363.         {% set productUrl = seoUrl('frontend.detail.page', { 'productId': id }) %}
  364.         <div class=\"product-box box-{{ layout }} h-full group\">
  365.             {% block component_product_box_content %}
  366.                 {{ parent() }}
  367.             {% endblock %}
  368.         </div>
  369.     {% endif %}
  370. {% endblock %}
  371. {% block component_product_box_image_link_inner %}
  372.     {% if cover.url %}
  373.         {% set attributes = {
  374.             class: 'product-image cover',
  375.             alt: cover.translated.alt ? : name,
  376.             title: cover.translated.title ? : name
  377.         } %}
  378.         {% sw_thumbnails 'product-image-thumbnails'
  379.             with
  380.             {
  381.                 media: cover,
  382.                 sizes: {
  383.                 'xs': '308px',
  384.                 'md': '420px',
  385.                 'xl': '868px'
  386.             }
  387.             } %}
  388.         {% if 'secondMediaExtension' in product.extensions|keys %}
  389.             {% set secondMedia = product.extensions.secondMediaExtension.secondMedia.media %}
  390.             {% set attributes = {
  391.                 class: 'product-image product-image-hover hidden opacity-0 hover:opacity-100 md:block transition cover',
  392.                 alt: secondMedia.translated.alt ? : name,
  393.                 title: secondMedia.translated.title ? : name
  394.             } %}
  395.             {% sw_thumbnails 'product-image-thumbnails'
  396.                 with
  397.                 {
  398.                     media: secondMedia,
  399.                     sizes: {
  400.                     'xs': '308px',
  401.                     'md': '420px',
  402.                     'xl': '868px'
  403.                 }
  404.                 } %}
  405.         {% endif %}
  406.     {% else %}
  407.         {% block component_product_box_image_placeholder %}
  408.             {% sw_icon 'placeholder' style {
  409.                 'size': 'fluid'
  410.             } %}
  411.         {% endblock %}
  412.     {% endif %}
  413. {% endblock %}
  414. {% block component_product_box_variant_characteristics %}
  415. {% endblock %}
  416. {% block component_product_box_image_link %}
  417.     {{ parent() }}
  418.     <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\">
  419.         {% for product in product.extensions.allChildren.elements %}
  420.             {% set size = product.options.elements|first.name %}
  421.             {% if product.availableStock %}
  422.                 <a href=\"{{ productUrl }}?size={{ size }}\"
  423.                    title=\"Selecteer maat {{ size }}\"
  424.                    class=\"flex items-center justify-center w-8 h-8 bg-grey-50 border border-transparent rounded-sm hover:border-grey-900\">{{ size }}</a>
  425.             {% endif %}
  426.         {% endfor %}
  427.     </div>
  428. {% endblock %}
  429. {% block component_product_box_brand_name %}
  430.     <div class=\"product-brand-name font-accent font-bold text-xs mb-2\">
  431.         {{ product.manufacturer.translated.name }}
  432.     </div>
  433. {% endblock %}
  434. {% block component_product_box_name %}
  435. \t<a href=\"{{ productUrl }}\"
  436. \t   class=\"product-name block text-xs font-normal lg:text-sm\"
  437. \t   title=\"{{ name }}\">
  438. \t\t{{ name }}
  439. \t</a>
  440. {% 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");
  441.     }
  442. }