var/cache/dev_ha61ef46992a3948952fe944d3fcb7240/twig/6b/6b9cf3541107e03eb155bda7d0a68220c41483d213f6b92840795a9b8eeb46c6.php line 111

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