var/cache/dev_h90dfaab4b9218db9f54295f5d696836f/twig/82/82d111ac4b5d78ac1c23178e6b8ee3a53673bd35e26063b3278d156512fe12ea.php line 58

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/listing.html.twig */
  16. class __TwigTemplate_e767d6f91119aefa95602b96b279f7622144a524584a604ab9f4926241babde9 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.             'product_listing' => [$this'block_product_listing'],
  27.             'element_product_listing_wrapper_content' => [$this'block_element_product_listing_wrapper_content'],
  28.             'element_product_listing_pagination_nav_actions' => [$this'block_element_product_listing_pagination_nav_actions'],
  29.             'element_product_listing_pagination_nav_top' => [$this'block_element_product_listing_pagination_nav_top'],
  30.             'element_product_listing_sorting' => [$this'block_element_product_listing_sorting'],
  31.             'element_product_listing_row' => [$this'block_element_product_listing_row'],
  32.             'element_product_listing_col' => [$this'block_element_product_listing_col'],
  33.             'element_product_listing_box' => [$this'block_element_product_listing_box'],
  34.             'element_product_listing_col_empty' => [$this'block_element_product_listing_col_empty'],
  35.             'element_product_listing_col_empty_alert' => [$this'block_element_product_listing_col_empty_alert'],
  36.             'element_product_listing_pagination_nav_bottom' => [$this'block_element_product_listing_pagination_nav_bottom'],
  37.         ];
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = [])
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/component/product/listing.html.twig"));
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/component/product/listing.html.twig"));
  46.         // line 1
  47.         $context["currentPage"] = twig_round(((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["searchResult"] ?? null), "criteria", [], "any"falsefalsefalse1), "offset", [], "any"falsefalsefalse1) + 1) / sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["searchResult"] ?? null), "criteria", [], "any"falsefalsefalse1), "limit", [], "any"falsefalsefalse1)), 0"ceil");
  48.         // line 2
  49.         $context["paginationConfig"] = $this->env->getFilter('json_encode')->getCallable()(["page" => ($context["currentPage"] ?? null)]);
  50.         // line 3
  51.         echo "
  52. ";
  53.         // line 4
  54.         if ( !array_key_exists("disableEmptyFilter"$context)) {
  55.             // line 5
  56.             echo "    ";
  57.             $context["disableEmptyFilter"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.listing.disableEmptyFilterOptions");
  58.         }
  59.         // line 7
  60.         echo "
  61. ";
  62.         // line 8
  63.         $context["listingPagination"] = ["sidebar" =>         // line 9
  64. ($context["sidebar"] ?? null), "params" =>         // line 10
  65. ($context["params"] ?? null), "dataUrl" =>         // line 11
  66. ($context["dataUrl"] ?? null), "filterUrl" =>         // line 12
  67. ($context["filterUrl"] ?? null), "disableEmptyFilter" =>         // line 13
  68. ($context["disableEmptyFilter"] ?? null), "snippets" => ["resetAllButtonText" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.filterPanelResetAll"))]];
  69.         // line 18
  70.         echo "
  71. ";
  72.         // line 19
  73.         $this->displayBlock('product_listing'$context$blocks);
  74.         
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  76.         
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  78.     }
  79.     public function block_product_listing($context, array $blocks = [])
  80.     {
  81.         $macros $this->macros;
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""product_listing"));
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""product_listing"));
  86.         // line 20
  87.         echo "    <div class=\"cms-element-product-listing-wrapper\"
  88.          data-listing-pagination=\"true\"
  89.          data-listing-pagination-options='";
  90.         // line 22
  91.         echo sw_escape_filter($this->env, ($context["paginationConfig"] ?? null), "html"nulltrue);
  92.         echo "'
  93.          data-listing=\"true\"
  94.          data-listing-options='";
  95.         // line 24
  96.         echo sw_escape_filter($this->env$this->env->getFilter('json_encode')->getCallable()(($context["listingPagination"] ?? null)), "html"nulltrue);
  97.         echo "'>
  98.         ";
  99.         // line 26
  100.         $this->displayBlock('element_product_listing_wrapper_content'$context$blocks);
  101.         // line 93
  102.         echo "    </div>
  103. ";
  104.         
  105.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  106.         
  107.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  108.     }
  109.     // line 26
  110.     public function block_element_product_listing_wrapper_content($context, array $blocks = [])
  111.     {
  112.         $macros $this->macros;
  113.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  114.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_wrapper_content"));
  115.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  116.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_wrapper_content"));
  117.         // line 27
  118.         echo "            <div class=\"cms-element-product-listing\">
  119.                 ";
  120.         // line 28
  121.         if ((=== twig_compare(sw_get_attribute($this->env$this->source, ($context["searchResult"] ?? null), "total", [], "any"falsefalsefalse28), 0))) {
  122.             // line 29
  123.             echo "                    ";
  124.             $this->displayBlock('element_product_listing_pagination_nav_actions'$context$blocks);
  125.             // line 50
  126.             echo "                ";
  127.         }
  128.         // line 51
  129.         echo "
  130.                 ";
  131.         // line 52
  132.         $this->displayBlock('element_product_listing_row'$context$blocks);
  133.         // line 81
  134.         echo "
  135.                 ";
  136.         // line 82
  137.         if ((=== twig_compare(sw_get_attribute($this->env$this->source, ($context["searchResult"] ?? null), "total", [], "any"falsefalsefalse82), sw_get_attribute($this->env$this->source, ($context["searchResult"] ?? null), "limit", [], "any"falsefalsefalse82)))) {
  138.             // line 83
  139.             echo "                    ";
  140.             $this->displayBlock('element_product_listing_pagination_nav_bottom'$context$blocks);
  141.             // line 90
  142.             echo "                ";
  143.         }
  144.         // line 91
  145.         echo "            </div>
  146.         ";
  147.         
  148.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  149.         
  150.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  151.     }
  152.     // line 29
  153.     public function block_element_product_listing_pagination_nav_actions($context, array $blocks = [])
  154.     {
  155.         $macros $this->macros;
  156.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  157.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_pagination_nav_actions"));
  158.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  159.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_pagination_nav_actions"));
  160.         // line 30
  161.         echo "                        <div class=\"cms-element-product-listing-actions row justify-content-between\">
  162.                             <div class=\"col-md-auto\">
  163.                                 ";
  164.         // line 32
  165.         $this->displayBlock('element_product_listing_pagination_nav_top'$context$blocks);
  166.         // line 38
  167.         echo "                            </div>
  168.                             <div class=\"col-md-auto\">
  169.                                 ";
  170.         // line 41
  171.         $this->displayBlock('element_product_listing_sorting'$context$blocks);
  172.         // line 47
  173.         echo "                            </div>
  174.                         </div>
  175.                     ";
  176.         
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  178.         
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  180.     }
  181.     // line 32
  182.     public function block_element_product_listing_pagination_nav_top($context, array $blocks = [])
  183.     {
  184.         $macros $this->macros;
  185.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  186.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_pagination_nav_top"));
  187.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  188.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_pagination_nav_top"));
  189.         // line 33
  190.         echo "                                    ";
  191.         $this->loadTemplate("@Storefront/storefront/component/pagination.html.twig""@Storefront/storefront/component/product/listing.html.twig"33)->display(twig_array_merge($context, ["entities" =>         // line 34
  192. ($context["searchResult"] ?? null), "criteria" => sw_get_attribute($this->env$this->source,         // line 35
  193. ($context["searchResult"] ?? null), "criteria", [], "any"falsefalsefalse35)]));
  194.         // line 37
  195.         echo "                                ";
  196.         
  197.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  198.         
  199.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  200.     }
  201.     // line 41
  202.     public function block_element_product_listing_sorting($context, array $blocks = [])
  203.     {
  204.         $macros $this->macros;
  205.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  206.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_sorting"));
  207.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  208.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_sorting"));
  209.         // line 42
  210.         echo "                                    ";
  211.         $this->loadTemplate("@Storefront/storefront/component/sorting.html.twig""@Storefront/storefront/component/product/listing.html.twig"42)->display(twig_array_merge($context, ["current" => sw_get_attribute($this->env$this->source,         // line 43
  212. ($context["searchResult"] ?? null), "sorting", [], "any"falsefalsefalse43), "sortings" => sw_get_attribute($this->env$this->source,         // line 44
  213. ($context["searchResult"] ?? null), "availableSortings", [], "any"falsefalsefalse44)]));
  214.         // line 46
  215.         echo "                                ";
  216.         
  217.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  218.         
  219.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  220.     }
  221.     // line 52
  222.     public function block_element_product_listing_row($context, array $blocks = [])
  223.     {
  224.         $macros $this->macros;
  225.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  226.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_row"));
  227.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  228.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_row"));
  229.         // line 53
  230.         echo "                    <div class=\"row cms-listing-row js-listing-wrapper\">
  231.                         ";
  232.         // line 54
  233.         if ((=== twig_compare(sw_get_attribute($this->env$this->source, ($context["searchResult"] ?? null), "total", [], "any"falsefalsefalse54), 0))) {
  234.             // line 55
  235.             echo "                            ";
  236.             $this->displayBlock('element_product_listing_col'$context$blocks);
  237.             // line 67
  238.             echo "                        ";
  239.         } else {
  240.             // line 68
  241.             echo "                            ";
  242.             $this->displayBlock('element_product_listing_col_empty'$context$blocks);
  243.             // line 78
  244.             echo "                        ";
  245.         }
  246.         // line 79
  247.         echo "                    </div>
  248.                 ";
  249.         
  250.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  251.         
  252.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  253.     }
  254.     // line 55
  255.     public function block_element_product_listing_col($context, array $blocks = [])
  256.     {
  257.         $macros $this->macros;
  258.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  259.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_col"));
  260.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  261.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_col"));
  262.         // line 56
  263.         echo "                                ";
  264.         $context['_parent'] = $context;
  265.         $context['_seq'] = twig_ensure_traversable(($context["searchResult"] ?? null));
  266.         $context['loop'] = [
  267.           'parent' => $context['_parent'],
  268.           'index0' => 0,
  269.           'index'  => 1,
  270.           'first'  => true,
  271.         ];
  272.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  273.             $length count($context['_seq']);
  274.             $context['loop']['revindex0'] = $length 1;
  275.             $context['loop']['revindex'] = $length;
  276.             $context['loop']['length'] = $length;
  277.             $context['loop']['last'] = === $length;
  278.         }
  279.         foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  280.             // line 57
  281.             echo "                                    <div class=\"cms-listing-col ";
  282.             echo sw_escape_filter($this->env, ($context["listingColumns"] ?? null), "html"nulltrue);
  283.             echo "\">
  284.                                         ";
  285.             // line 58
  286.             $this->displayBlock('element_product_listing_box'$context$blocks);
  287.             // line 64
  288.             echo "                                    </div>
  289.                                 ";
  290.             ++$context['loop']['index0'];
  291.             ++$context['loop']['index'];
  292.             $context['loop']['first'] = false;
  293.             if (isset($context['loop']['length'])) {
  294.                 --$context['loop']['revindex0'];
  295.                 --$context['loop']['revindex'];
  296.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  297.             }
  298.         }
  299.         $_parent $context['_parent'];
  300.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  301.         $context array_intersect_key($context$_parent) + $_parent;
  302.         // line 66
  303.         echo "                            ";
  304.         
  305.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  306.         
  307.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  308.     }
  309.     // line 58
  310.     public function block_element_product_listing_box($context, array $blocks = [])
  311.     {
  312.         $macros $this->macros;
  313.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  314.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_box"));
  315.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  316.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_box"));
  317.         // line 59
  318.         echo "                                            ";
  319.         $this->loadTemplate("@Storefront/storefront/component/product/card/box.html.twig""@Storefront/storefront/component/product/listing.html.twig"59)->display(twig_array_merge($context, ["layout" =>         // line 60
  320. ($context["boxLayout"] ?? null), "displayMode" =>         // line 61
  321. ($context["displayMode"] ?? null)]));
  322.         // line 63
  323.         echo "                                        ";
  324.         
  325.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  326.         
  327.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  328.     }
  329.     // line 68
  330.     public function block_element_product_listing_col_empty($context, array $blocks = [])
  331.     {
  332.         $macros $this->macros;
  333.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  334.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_col_empty"));
  335.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  336.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_col_empty"));
  337.         // line 69
  338.         echo "                                <div class=\"cms-listing-col col-12\">
  339.                                     ";
  340.         // line 70
  341.         $this->displayBlock('element_product_listing_col_empty_alert'$context$blocks);
  342.         // line 76
  343.         echo "                                </div>
  344.                             ";
  345.         
  346.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  347.         
  348.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  349.     }
  350.     // line 70
  351.     public function block_element_product_listing_col_empty_alert($context, array $blocks = [])
  352.     {
  353.         $macros $this->macros;
  354.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  355.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_col_empty_alert"));
  356.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  357.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_col_empty_alert"));
  358.         // line 71
  359.         echo "                                        ";
  360.         $this->loadTemplate("@Storefront/storefront/utilities/alert.html.twig""@Storefront/storefront/component/product/listing.html.twig"71)->display(twig_array_merge($context, ["type" => "info""content" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.emptyResultMessage"))]));
  361.         // line 75
  362.         echo "                                    ";
  363.         
  364.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  365.         
  366.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  367.     }
  368.     // line 83
  369.     public function block_element_product_listing_pagination_nav_bottom($context, array $blocks = [])
  370.     {
  371.         $macros $this->macros;
  372.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  373.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_pagination_nav_bottom"));
  374.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  375.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_pagination_nav_bottom"));
  376.         // line 84
  377.         echo "                        ";
  378.         $this->loadTemplate("@Storefront/storefront/component/pagination.html.twig""@Storefront/storefront/component/product/listing.html.twig"84)->display(twig_array_merge($context, ["entities" =>         // line 85
  379. ($context["searchResult"] ?? null), "criteria" => sw_get_attribute($this->env$this->source,         // line 86
  380. ($context["searchResult"] ?? null), "criteria", [], "any"falsefalsefalse86), "paginationLocation" => "bottom"]));
  381.         // line 89
  382.         echo "                    ";
  383.         
  384.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  385.         
  386.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  387.     }
  388.     public function getTemplateName()
  389.     {
  390.         return "@Storefront/storefront/component/product/listing.html.twig";
  391.     }
  392.     public function isTraitable()
  393.     {
  394.         return false;
  395.     }
  396.     public function getDebugInfo()
  397.     {
  398.         return array (  446 => 89,  444 => 86,  443 => 85,  441 => 84,  431 => 83,  421 => 75,  418 => 71,  408 => 70,  397 => 76,  395 => 70,  392 => 69,  382 => 68,  372 => 63,  370 => 61,  369 => 60,  367 => 59,  357 => 58,  347 => 66,  332 => 64,  330 => 58,  325 => 57,  307 => 56,  297 => 55,  286 => 79,  283 => 78,  280 => 68,  277 => 67,  274 => 55,  272 => 54,  269 => 53,  259 => 52,  249 => 46,  247 => 44,  246 => 43,  244 => 42,  234 => 41,  224 => 37,  222 => 35,  221 => 34,  219 => 33,  209 => 32,  197 => 47,  195 => 41,  190 => 38,  188 => 32,  184 => 30,  174 => 29,  163 => 91,  160 => 90,  157 => 83,  155 => 82,  152 => 81,  150 => 52,  147 => 51,  144 => 50,  141 => 29,  139 => 28,  136 => 27,  126 => 26,  115 => 93,  113 => 26,  108 => 24,  103 => 22,  99 => 20,  80 => 19,  77 => 18,  75 => 13,  74 => 12,  73 => 11,  72 => 10,  71 => 9,  70 => 8,  67 => 7,  63 => 5,  61 => 4,  58 => 3,  56 => 2,  54 => 1,);
  399.     }
  400.     public function getSourceContext()
  401.     {
  402.         return new Source("{% set currentPage = ((searchResult.criteria.offset + 1) / searchResult.criteria.limit )|round(0, 'ceil') %}
  403. {% set paginationConfig = { page: currentPage }|json_encode %}
  404. {% if disableEmptyFilter is not defined %}
  405.     {% set disableEmptyFilter = config('core.listing.disableEmptyFilterOptions') %}
  406. {% endif %}
  407. {% set listingPagination = {
  408.     sidebar: sidebar,
  409.     params: params,
  410.     dataUrl: dataUrl,
  411.     filterUrl: filterUrl,
  412.     disableEmptyFilter: disableEmptyFilter,
  413.     snippets: {
  414.         resetAllButtonText: 'listing.filterPanelResetAll'|trans|sw_sanitize
  415.     }
  416. } %}
  417. {% block product_listing %}
  418.     <div class=\"cms-element-product-listing-wrapper\"
  419.          data-listing-pagination=\"true\"
  420.          data-listing-pagination-options='{{ paginationConfig }}'
  421.          data-listing=\"true\"
  422.          data-listing-options='{{ listingPagination|json_encode }}'>
  423.         {% block element_product_listing_wrapper_content %}
  424.             <div class=\"cms-element-product-listing\">
  425.                 {% if searchResult.total > 0 %}
  426.                     {% block element_product_listing_pagination_nav_actions %}
  427.                         <div class=\"cms-element-product-listing-actions row justify-content-between\">
  428.                             <div class=\"col-md-auto\">
  429.                                 {% block element_product_listing_pagination_nav_top %}
  430.                                     {% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
  431.                                         entities: searchResult,
  432.                                         criteria: searchResult.criteria
  433.                                     } %}
  434.                                 {% endblock %}
  435.                             </div>
  436.                             <div class=\"col-md-auto\">
  437.                                 {% block element_product_listing_sorting %}
  438.                                     {% sw_include '@Storefront/storefront/component/sorting.html.twig' with {
  439.                                         current: searchResult.sorting,
  440.                                         sortings: searchResult.availableSortings
  441.                                     } %}
  442.                                 {% endblock %}
  443.                             </div>
  444.                         </div>
  445.                     {% endblock %}
  446.                 {% endif %}
  447.                 {% block element_product_listing_row %}
  448.                     <div class=\"row cms-listing-row js-listing-wrapper\">
  449.                         {% if searchResult.total > 0 %}
  450.                             {% block element_product_listing_col %}
  451.                                 {% for product in searchResult %}
  452.                                     <div class=\"cms-listing-col {{ listingColumns }}\">
  453.                                         {% block element_product_listing_box %}
  454.                                             {% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
  455.                                                 'layout': boxLayout,
  456.                                                 'displayMode': displayMode
  457.                                             } %}
  458.                                         {% endblock %}
  459.                                     </div>
  460.                                 {% endfor %}
  461.                             {% endblock %}
  462.                         {% else %}
  463.                             {% block element_product_listing_col_empty %}
  464.                                 <div class=\"cms-listing-col col-12\">
  465.                                     {% block element_product_listing_col_empty_alert %}
  466.                                         {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  467.                                             type: 'info',
  468.                                             content: 'listing.emptyResultMessage'|trans|sw_sanitize
  469.                                         } %}
  470.                                     {% endblock %}
  471.                                 </div>
  472.                             {% endblock %}
  473.                         {% endif %}
  474.                     </div>
  475.                 {% endblock %}
  476.                 {% if searchResult.total > searchResult.limit %}
  477.                     {% block element_product_listing_pagination_nav_bottom %}
  478.                         {% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
  479.                             entities: searchResult,
  480.                             criteria: searchResult.criteria,
  481.                             paginationLocation: 'bottom',
  482.                         } %}
  483.                     {% endblock %}
  484.                 {% endif %}
  485.             </div>
  486.         {% endblock %}
  487.     </div>
  488. {% endblock %}
  489. ""@Storefront/storefront/component/product/listing.html.twig""/home/fasflpog/shopware/vendor/shopware/storefront/Resources/views/storefront/component/product/listing.html.twig");
  490.     }
  491. }