var/cache/dev_h90dfaab4b9218db9f54295f5d696836f/twig/75/75de82dd89b53ad43089c0602b58229f50b52f1803a28565ea4f36eebaae0204.php line 132

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/element/cms-element-product-listing.html.twig */
  16. class __TwigTemplate_f5961e24b9809b63301e28d79afcd22a8483f31c9f7b26da6fcf636391163dfe 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.             'element_product_listing' => [$this'block_element_product_listing'],
  27.             'element_product_listing_wrapper' => [$this'block_element_product_listing_wrapper'],
  28.         ];
  29.     }
  30.     protected function doDisplay(array $context, array $blocks = [])
  31.     {
  32.         $macros $this->macros;
  33.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/element/cms-element-product-listing.html.twig"));
  35.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/element/cms-element-product-listing.html.twig"));
  37.         // line 1
  38.         $this->displayBlock('element_product_listing'$context$blocks);
  39.         
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  41.         
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  43.     }
  44.     public function block_element_product_listing($context, array $blocks = [])
  45.     {
  46.         $macros $this->macros;
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing"));
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing"));
  51.         // line 2
  52.         echo "    ";
  53.         // line 3
  54.         echo "    ";
  55.         $context["searchResult"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse3), "listing", [], "any"falsefalsefalse3);
  56.         // line 4
  57.         echo "    ";
  58.         $context["listingColumns"] = "col-sm-6 col-lg-4 col-xl-3";
  59.         // line 5
  60.         echo "
  61.     ";
  62.         // line 6
  63.         if ((($context["section"] ?? null) && (=== twig_compare(sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "type", [], "any"falsefalsefalse6), "sidebar")))) {
  64.             // line 7
  65.             echo "        ";
  66.             $context["listingColumns"] = "col-sm-6 col-lg-6 col-xl-4";
  67.             // line 8
  68.             echo "    ";
  69.         }
  70.         // line 9
  71.         echo "
  72.     ";
  73.         // line 10
  74.         $context["slot"] = sw_get_attribute($this->env$this->source, ($context["cmsPage"] ?? null), "getFirstElementOfType", [=> "product-listing"], "method"falsefalsefalse10);
  75.         // line 11
  76.         echo "
  77.     ";
  78.         // line 12
  79.         $context["filterUrl"] = null;
  80.         // line 13
  81.         echo "    ";
  82.         $context["dataUrl"] = null;
  83.         // line 14
  84.         echo "
  85.     ";
  86.         // line 15
  87.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["searchResult"] ?? null), "currentFilters", [], "any"falsefalsefalse15), "navigationId", [], "any"falsefalsefalse15)) {
  88.             // line 16
  89.             echo "        ";
  90.             $context["filterUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("frontend.cms.navigation.filter", ["navigationId" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["searchResult"] ?? null), "currentFilters", [], "any"falsefalsefalse16), "navigationId", [], "any"falsefalsefalse16)]);
  91.             // line 17
  92.             echo "        ";
  93.             $context["dataUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("frontend.cms.navigation.page", ["navigationId" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["searchResult"] ?? null), "currentFilters", [], "any"falsefalsefalse17), "navigationId", [], "any"falsefalsefalse17)]);
  94.             // line 18
  95.             echo "    ";
  96.         }
  97.         // line 19
  98.         echo "
  99.     ";
  100.         // line 20
  101.         $context["sidebar"] = (=== twig_compare(($context["sectionType"] ?? null), "sidebar"));
  102.         // line 21
  103.         echo "    ";
  104.         $context["params"] = ["slots" => sw_get_attribute($this->env$this->source, ($context["slot"] ?? null), "id", [], "any"falsefalsefalse21), "no-aggregations" => 1];
  105.         // line 22
  106.         echo "
  107.     ";
  108.         // line 23
  109.         $this->displayBlock('element_product_listing_wrapper'$context$blocks);
  110.         
  111.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  112.         
  113.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  114.     }
  115.     public function block_element_product_listing_wrapper($context, array $blocks = [])
  116.     {
  117.         $macros $this->macros;
  118.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  119.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_wrapper"));
  120.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  121.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_product_listing_wrapper"));
  122.         // line 24
  123.         echo "        ";
  124.         $this->loadTemplate("@TdsOrlob/storefront/component/product/listing.html.twig""@Storefront/storefront/element/cms-element-product-listing.html.twig"24)->display(twig_array_merge($context, ["searchResult" =>         // line 25
  125. ($context["searchResult"] ?? null), "dataUrl" =>         // line 26
  126. ($context["dataUrl"] ?? null), "filterUrl" =>         // line 27
  127. ($context["filterUrl"] ?? null), "params" =>         // line 28
  128. ($context["params"] ?? null), "sidebar" =>         // line 29
  129. ($context["sidebar"] ?? null), "boxLayout" => 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,         // line 30
  130. ($context["element"] ?? null), "translated", [], "any"falsefalsefalse30), "config", [], "any"falsefalsefalse30), "boxLayout", [], "any"falsefalsefalse30), "value", [], "any"falsefalsefalse30), "displayMode" => 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,         // line 31
  131. ($context["element"] ?? null), "translated", [], "any"falsefalsefalse31), "config", [], "any"falsefalsefalse31), "displayMode", [], "any"falsefalsefalse31), "value", [], "any"falsefalsefalse31), "listingColumns" =>         // line 32
  132. ($context["listingColumns"] ?? null)]));
  133.         // line 34
  134.         echo "    ";
  135.         
  136.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  137.         
  138.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  139.     }
  140.     public function getTemplateName()
  141.     {
  142.         return "@Storefront/storefront/element/cms-element-product-listing.html.twig";
  143.     }
  144.     public function getDebugInfo()
  145.     {
  146.         return array (  151 => 34,  149 => 32,  148 => 31,  147 => 30,  146 => 29,  145 => 28,  144 => 27,  143 => 26,  142 => 25,  140 => 24,  121 => 23,  118 => 22,  115 => 21,  113 => 20,  110 => 19,  107 => 18,  104 => 17,  101 => 16,  99 => 15,  96 => 14,  93 => 13,  91 => 12,  88 => 11,  86 => 10,  83 => 9,  80 => 8,  77 => 7,  75 => 6,  72 => 5,  69 => 4,  66 => 3,  64 => 2,  45 => 1,);
  147.     }
  148.     public function getSourceContext()
  149.     {
  150.         return new Source("{% block element_product_listing %}
  151.     {# @var result \\Shopware\\Core\\Framework\\DataAbstractionLayer\\Search\\EntitySearchResult #}
  152.     {% set searchResult = element.data.listing %}
  153.     {% set listingColumns = 'col-sm-6 col-lg-4 col-xl-3' %}
  154.     {% if section and section.type == 'sidebar' %}
  155.         {% set listingColumns = 'col-sm-6 col-lg-6 col-xl-4' %}
  156.     {% endif %}
  157.     {% set slot = cmsPage.getFirstElementOfType('product-listing') %}
  158.     {% set filterUrl = null %}
  159.     {% set dataUrl = null %}
  160.     {% if searchResult.currentFilters.navigationId %}
  161.         {% set filterUrl = url('frontend.cms.navigation.filter', { navigationId: searchResult.currentFilters.navigationId }) %}
  162.         {% set dataUrl = url('frontend.cms.navigation.page', { navigationId: searchResult.currentFilters.navigationId }) %}
  163.     {% endif %}
  164.     {% set sidebar = sectionType == 'sidebar' %}
  165.     {% set params = { slots: slot.id, 'no-aggregations': 1 } %}
  166.     {% block element_product_listing_wrapper %}
  167.         {% sw_include '@Storefront/storefront/component/product/listing.html.twig' with {
  168.             searchResult: searchResult,
  169.             dataUrl: dataUrl,
  170.             filterUrl: filterUrl,
  171.             params: params,
  172.             sidebar: sidebar,
  173.             boxLayout: element.translated.config.boxLayout.value,
  174.             displayMode: element.translated.config.displayMode.value,
  175.             listingColumns: listingColumns
  176.         } %}
  177.     {% endblock %}
  178. {% endblock %}
  179. ""@Storefront/storefront/element/cms-element-product-listing.html.twig""/home/fasflpog/shopware/vendor/shopware/storefront/Resources/views/storefront/element/cms-element-product-listing.html.twig");
  180.     }
  181. }