<?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;
/* @Storefront/storefront/component/product/card/box.html.twig */
class __TwigTemplate_1f71954738c1907b23e5b6544f479109 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'component_product_box_include' => [$this, 'block_component_product_box_include'],
];
}
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", "@Storefront/storefront/component/product/card/box.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Storefront/storefront/component/product/card/box.html.twig"));
// line 1
$this->displayBlock('component_product_box_include', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function block_component_product_box_include($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_include"));
$__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_include"));
// line 2
echo " ";
// line 4
echo "
";
// line 5
if (twig_test_empty(($context["layout"] ?? null))) {
// line 6
echo " ";
$context["layout"] = "standard";
// line 7
echo " ";
}
// line 8
echo "
";
// line 9
$context["sizes"] = ["xs" => "500px", "sm" => "315px", "md" => "390px", "lg" => "350px", "xl" => "280px"];
// line 16
echo "
";
// line 17
if ((($context["layout"] ?? null) == "image")) {
// line 18
echo " ";
$context["sizes"] = ["xs" => "500px", "sm" => "500px", "md" => "390px", "lg" => "350px", "xl" => "280px"];
// line 25
echo " ";
}
// line 26
echo "
";
// line 27
if ((($context["layout"] ?? null) == "standard")) {
// line 28
echo " ";
$this->loadTemplate("@NdVoorwindenTheme/storefront/component/product/card/box-standard.html.twig", "@Storefront/storefront/component/product/card/box.html.twig", 28)->display($context);
// line 29
echo " ";
} elseif ((($context["layout"] ?? null) == "image")) {
// line 30
echo " ";
$this->loadTemplate("@Storefront/storefront/component/product/card/box-image.html.twig", "@Storefront/storefront/component/product/card/box.html.twig", 30)->display($context);
// line 31
echo " ";
} elseif ((($context["layout"] ?? null) == "minimal")) {
// line 32
echo " ";
$this->loadTemplate("@Storefront/storefront/component/product/card/box-minimal.html.twig", "@Storefront/storefront/component/product/card/box.html.twig", 32)->display($context);
// line 33
echo " ";
} elseif ((($context["layout"] ?? null) == "wishlist")) {
// line 34
echo " ";
$this->loadTemplate("@NdVoorwindenTheme/storefront/component/product/card/box-wishlist.html.twig", "@Storefront/storefront/component/product/card/box.html.twig", 34)->display($context);
// line 35
echo " ";
} else {
// line 36
echo " ";
$context["template"] = (("@Storefront/storefront/component/product/card/box-" . ($context["layout"] ?? null)) . ".html.twig");
// line 37
echo " ";
$__internal_compile_0 = null;
try {
$__internal_compile_0 = ((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find(($context["template"] ?? null));
return $this->loadTemplate($includeTemplate ?? null, "@Storefront/storefront/component/product/card/box.html.twig", 37);
})());
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_0) {
$__internal_compile_0->display($context);
}
// line 38
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@Storefront/storefront/component/product/card/box.html.twig";
}
public function getDebugInfo()
{
return array ( 141 => 38, 124 => 37, 121 => 36, 118 => 35, 115 => 34, 112 => 33, 109 => 32, 106 => 31, 103 => 30, 100 => 29, 97 => 28, 95 => 27, 92 => 26, 89 => 25, 86 => 18, 84 => 17, 81 => 16, 79 => 9, 76 => 8, 73 => 7, 70 => 6, 68 => 5, 65 => 4, 63 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("{% block component_product_box_include %}
{# Includes a custom product-box template defined by the layout variable.
The standard template is used if no custom layout is set. #}
{% if layout is empty %}
{% set layout = 'standard' %}
{% endif %}
{% set sizes = {
'xs': '500px',
'sm': '315px',
'md': '390px',
'lg': '350px',
'xl': '280px'
} %}
{% if layout == 'image' %}
{% set sizes = {
'xs': '500px',
'sm': '500px',
'md': '390px',
'lg': '350px',
'xl': '280px'
} %}
{% endif %}
{% if layout == 'standard' %}
{% sw_include \"@Storefront/storefront/component/product/card/box-standard.html.twig\" %}
{% elseif layout == 'image' %}
{% sw_include \"@Storefront/storefront/component/product/card/box-image.html.twig\" %}
{% elseif layout == 'minimal' %}
{% sw_include \"@Storefront/storefront/component/product/card/box-minimal.html.twig\" %}
{% elseif layout == 'wishlist' %}
{% sw_include \"@Storefront/storefront/component/product/card/box-wishlist.html.twig\" %}
{% else %}
{% set template = \"@Storefront/storefront/component/product/card/box-\" ~ layout ~ \".html.twig\" %}
{% sw_include template ignore missing %}
{% endif %}
{% endblock %}
", "@Storefront/storefront/component/product/card/box.html.twig", "/var/www/dev/deployer/releases/56/vendor/shopware/storefront/Resources/views/storefront/component/product/card/box.html.twig");
}
}