var/cache/dev_hc896b0aecebc6aae6bec469c82cd525f/twig/bb/bb29066177b7f857cdf4c787e3a011152490fd963c1eea211d6d90047277ad0e.php line 46

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. /* @Storefront/storefront/component/product/card/box.html.twig */
  16. class __TwigTemplate_4a0484cce930ce85362b1fde48910b98 extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->parent false;
  25.         $this->blocks = [
  26.             'component_product_box_include' => [$this'block_component_product_box_include'],
  27.         ];
  28.     }
  29.     protected function doDisplay(array $context, array $blocks = [])
  30.     {
  31.         $macros $this->macros;
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/component/product/card/box.html.twig"));
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/component/product/card/box.html.twig"));
  36.         // line 1
  37.         $this->displayBlock('component_product_box_include'$context$blocks);
  38.         
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  40.         
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  42.     }
  43.     public function block_component_product_box_include($context, array $blocks = [])
  44.     {
  45.         $macros $this->macros;
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_include"));
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_product_box_include"));
  50.         // line 2
  51.         echo "    ";
  52.         // line 4
  53.         echo "
  54.     ";
  55.         // line 5
  56.         if (twig_test_empty(($context["layout"] ?? null))) {
  57.             // line 6
  58.             echo "        ";
  59.             $context["layout"] = "standard";
  60.             // line 7
  61.             echo "    ";
  62.         }
  63.         // line 8
  64.         echo "
  65.     ";
  66.         // line 9
  67.         $context["sizes"] = ["xs" => "500px""sm" => "315px""md" => "390px""lg" => "350px""xl" => "280px"];
  68.         // line 16
  69.         echo "
  70.     ";
  71.         // line 17
  72.         if ((($context["layout"] ?? null) == "image")) {
  73.             // line 18
  74.             echo "        ";
  75.             $context["sizes"] = ["xs" => "500px""sm" => "500px""md" => "390px""lg" => "350px""xl" => "280px"];
  76.             // line 25
  77.             echo "    ";
  78.         }
  79.         // line 26
  80.         echo "
  81.     ";
  82.         // line 27
  83.         if ((($context["layout"] ?? null) == "standard")) {
  84.             // line 28
  85.             echo "        ";
  86.             $this->loadTemplate("@EfbStorefront/storefront/component/product/card/box-standard.html.twig""@Storefront/storefront/component/product/card/box.html.twig"28)->display($context);
  87.             // line 29
  88.             echo "    ";
  89.         } elseif ((($context["layout"] ?? null) == "image")) {
  90.             // line 30
  91.             echo "        ";
  92.             $this->loadTemplate("@Storefront/storefront/component/product/card/box-image.html.twig""@Storefront/storefront/component/product/card/box.html.twig"30)->display($context);
  93.             // line 31
  94.             echo "    ";
  95.         } elseif ((($context["layout"] ?? null) == "minimal")) {
  96.             // line 32
  97.             echo "        ";
  98.             $this->loadTemplate("@EfbStorefront/storefront/component/product/card/box-minimal.html.twig""@Storefront/storefront/component/product/card/box.html.twig"32)->display($context);
  99.             // line 33
  100.             echo "    ";
  101.         } elseif ((($context["layout"] ?? null) == "wishlist")) {
  102.             // line 34
  103.             echo "        ";
  104.             $this->loadTemplate("@Storefront/storefront/component/product/card/box-wishlist.html.twig""@Storefront/storefront/component/product/card/box.html.twig"34)->display($context);
  105.             // line 35
  106.             echo "    ";
  107.         } else {
  108.             // line 36
  109.             echo "        ";
  110.             $context["template"] = (("@Storefront/storefront/component/product/card/box-" . ($context["layout"] ?? null)) . ".html.twig");
  111.             // line 37
  112.             echo "        ";
  113.             $__internal_compile_0 null;
  114.             try {
  115.                 $__internal_compile_0 =                 ((function () use ($context$blocks) {
  116.                     $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  117.                     $includeTemplate $finder->find(($context["template"] ?? null));
  118.                     return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/component/product/card/box.html.twig"37);
  119.                 })());
  120.             } catch (LoaderError $e) {
  121.                 // ignore missing template
  122.             }
  123.             if ($__internal_compile_0) {
  124.                 $__internal_compile_0->display($context);
  125.             }
  126.             // line 38
  127.             echo "    ";
  128.         }
  129.         
  130.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  131.         
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  133.     }
  134.     public function getTemplateName()
  135.     {
  136.         return "@Storefront/storefront/component/product/card/box.html.twig";
  137.     }
  138.     public function getDebugInfo()
  139.     {
  140.         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,);
  141.     }
  142.     public function getSourceContext()
  143.     {
  144.         return new Source("{% block component_product_box_include %}
  145.     {# Includes a custom product-box template defined by the layout variable.
  146.        The standard template is used if no custom layout is set. #}
  147.     {% if layout is empty %}
  148.         {% set layout = 'standard' %}
  149.     {% endif %}
  150.     {% set sizes = {
  151.         'xs': '500px',
  152.         'sm': '315px',
  153.         'md': '390px',
  154.         'lg': '350px',
  155.         'xl': '280px'
  156.     } %}
  157.     {% if layout == 'image' %}
  158.         {% set sizes = {
  159.             'xs': '500px',
  160.             'sm': '500px',
  161.             'md': '390px',
  162.             'lg': '350px',
  163.             'xl': '280px'
  164.         } %}
  165.     {% endif %}
  166.     {% if layout == 'standard' %}
  167.         {% sw_include \"@Storefront/storefront/component/product/card/box-standard.html.twig\" %}
  168.     {% elseif layout == 'image' %}
  169.         {% sw_include \"@Storefront/storefront/component/product/card/box-image.html.twig\" %}
  170.     {% elseif layout == 'minimal' %}
  171.         {% sw_include \"@Storefront/storefront/component/product/card/box-minimal.html.twig\" %}
  172.     {% elseif layout == 'wishlist' %}
  173.         {% sw_include \"@Storefront/storefront/component/product/card/box-wishlist.html.twig\" %}
  174.     {% else %}
  175.         {% set template = \"@Storefront/storefront/component/product/card/box-\" ~ layout ~ \".html.twig\" %}
  176.         {% sw_include template ignore missing %}
  177.     {% endif %}
  178. {% endblock %}
  179. ""@Storefront/storefront/component/product/card/box.html.twig""/var/www/share/efb-elektronik.dev.mc.emzcustomers.de/shopware6/vendor/shopware/storefront/Resources/views/storefront/component/product/card/box.html.twig");
  180.     }
  181. }