var/cache/dev_h35c9e4fa64367e5a564f83803cfdec08/twig/cf/cfbd8cc01c037b26d7d3f0879fca7022fe90522cc5873db7db2e5fff699e0570.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 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. /* @NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig */
  16. class __TwigTemplate_6994c695c4bfa45807a122b38672066d 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_recipe_list' => [$this'block_element_recipe_list'],
  27.             'rcp_element_recipe_listing_wrapper' => [$this'block_rcp_element_recipe_listing_wrapper'],
  28.             'rcp_block_filter_panel' => [$this'block_rcp_block_filter_panel'],
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig"));
  38.         // line 1
  39.         $this->displayBlock('element_recipe_list'$context$blocks);
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     public function block_element_recipe_list($context, array $blocks = [])
  46.     {
  47.         $macros $this->macros;
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_recipe_list"));
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""element_recipe_list"));
  52.         // line 2
  53.         echo "    ";
  54.         $context["searchResult"] = sw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse2);
  55.         // line 3
  56.         echo "    ";
  57.         $context["config"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "fieldConfig", [], "any"falsefalsefalse3), "elements", [], "any"falsefalsefalse3);
  58.         // line 4
  59.         echo "
  60.     ";
  61.         // line 5
  62.         $context["rcpId"] = sw_get_attribute($this->env$this->source, ($context["element"] ?? null), "id", [], "any"falsefalsefalse5);
  63.         // line 6
  64.         echo "    ";
  65.         $context["rcpWrapper"] = ("cms-element-recipe-listing-wrapper-" . ($context["rcpId"] ?? null));
  66.         // line 7
  67.         echo "
  68.     ";
  69.         // line 8
  70.         $context["filterUrl"] = null;
  71.         // line 9
  72.         echo "    ";
  73.         $context["dataUrl"] = null;
  74.         // line 10
  75.         echo "
  76.     ";
  77.         // line 11
  78.         if (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, ($context["page"] ?? null), "header", [], "any"falsefalsefalse11), "navigation", [], "any"falsefalsefalse11), "active", [], "any"falsefalsefalse11), "id", [], "any"falsefalsefalse11)) {
  79.             // line 12
  80.             echo "        ";
  81.             $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->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse12), "navigation", [], "any"falsefalsefalse12), "active", [], "any"falsefalsefalse12), "id", [], "any"falsefalsefalse12)]);
  82.             // line 13
  83.             echo "        ";
  84.             $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->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse13), "navigation", [], "any"falsefalsefalse13), "active", [], "any"falsefalsefalse13), "id", [], "any"falsefalsefalse13)]);
  85.             // line 14
  86.             echo "    ";
  87.         }
  88.         // line 15
  89.         echo "
  90.     ";
  91.         // line 16
  92.         $context["params"] = ["slots" => sw_get_attribute($this->env$this->source, ($context["element"] ?? null), "id", [], "any"falsefalsefalse16), "no-aggregations" => 1];
  93.         // line 17
  94.         echo "
  95.     ";
  96.         // line 18
  97.         $this->displayBlock('rcp_element_recipe_listing_wrapper'$context$blocks);
  98.         
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  100.         
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  102.     }
  103.     public function block_rcp_element_recipe_listing_wrapper($context, array $blocks = [])
  104.     {
  105.         $macros $this->macros;
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""rcp_element_recipe_listing_wrapper"));
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""rcp_element_recipe_listing_wrapper"));
  110.         // line 19
  111.         echo "
  112.         ";
  113.         // line 20
  114.         $this->displayBlock('rcp_block_filter_panel'$context$blocks);
  115.         // line 31
  116.         echo "
  117.         ";
  118.         // line 32
  119.         $this->loadTemplate("@NdsRecipeManager/rcpmanager/recipe/listing.html.twig""@NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig"32)->display(twig_array_merge($context, ["searchResult" =>         // line 33
  120. ($context["searchResult"] ?? null), "dataUrl" =>         // line 34
  121. ($context["dataUrl"] ?? null), "filterUrl" =>         // line 35
  122. ($context["filterUrl"] ?? null), "params" =>         // line 36
  123. ($context["params"] ?? null), "config" =>         // line 37
  124. ($context["config"] ?? null), "rcpWrapper" =>         // line 38
  125. ($context["rcpWrapper"] ?? null), "rcpId" =>         // line 39
  126. ($context["rcpId"] ?? null)]));
  127.         // line 41
  128.         echo "    ";
  129.         
  130.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  131.         
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  133.     }
  134.     // line 20
  135.     public function block_rcp_block_filter_panel($context, array $blocks = [])
  136.     {
  137.         $macros $this->macros;
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""rcp_block_filter_panel"));
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""rcp_block_filter_panel"));
  142.         // line 21
  143.         echo "            ";
  144.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "enableFilter", [], "any"falsefalsefalse21), "value", [], "any"falsefalsefalse21)) {
  145.             // line 22
  146.             echo "                ";
  147.             $this->loadTemplate("@LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig""@NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig"22)->display(twig_array_merge($context, ["config" =>             // line 23
  148. ($context["config"] ?? null), "listing" =>             // line 24
  149. ($context["searchResult"] ?? null), "sidebar" => false"rcpWrapper" =>             // line 26
  150. ($context["rcpWrapper"] ?? null), "rcpId" =>             // line 27
  151. ($context["rcpId"] ?? null)]));
  152.             // line 29
  153.             echo "            ";
  154.         }
  155.         // line 30
  156.         echo "        ";
  157.         
  158.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  159.         
  160.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  161.     }
  162.     public function getTemplateName()
  163.     {
  164.         return "@NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig";
  165.     }
  166.     public function getDebugInfo()
  167.     {
  168.         return array (  178 => 30,  175 => 29,  173 => 27,  172 => 26,  171 => 24,  170 => 23,  168 => 22,  165 => 21,  155 => 20,  145 => 41,  143 => 39,  142 => 38,  141 => 37,  140 => 36,  139 => 35,  138 => 34,  137 => 33,  136 => 32,  133 => 31,  131 => 20,  128 => 19,  109 => 18,  106 => 17,  104 => 16,  101 => 15,  98 => 14,  95 => 13,  92 => 12,  90 => 11,  87 => 10,  84 => 9,  82 => 8,  79 => 7,  76 => 6,  74 => 5,  71 => 4,  68 => 3,  65 => 2,  46 => 1,);
  169.     }
  170.     public function getSourceContext()
  171.     {
  172.         return new Source("{% block element_recipe_list %}
  173.     {% set searchResult = element.data %}
  174.     {% set config = element.fieldConfig.elements %}
  175.     {% set rcpId = element.id %}
  176.     {% set rcpWrapper = 'cms-element-recipe-listing-wrapper-' ~ rcpId %}
  177.     {% set filterUrl = null %}
  178.     {% set dataUrl = null %}
  179.     {% if page.header.navigation.active.id %}
  180.         {% set filterUrl = url('frontend.cms.navigation.filter', { navigationId: page.header.navigation.active.id }) %}
  181.         {% set dataUrl = url('frontend.cms.navigation.page', { navigationId: page.header.navigation.active.id }) %}
  182.     {% endif %}
  183.     {% set params = { slots: element.id, 'no-aggregations': 1 } %}
  184.     {% block rcp_element_recipe_listing_wrapper %}
  185.         {% block rcp_block_filter_panel %}
  186.             {% if config.enableFilter.value %}
  187.                 {% sw_include '@Storefront/rcpmanager/listing/recipe-filter-panel.html.twig' with {
  188.                     config: config,
  189.                     listing: searchResult,
  190.                     sidebar: false,
  191.                     rcpWrapper: rcpWrapper,
  192.                     rcpId: rcpId,
  193.                 } %}
  194.             {% endif %}
  195.         {% endblock %}
  196.         {% sw_include '@Storefront/rcpmanager/recipe/listing.html.twig' with {
  197.             searchResult: searchResult,
  198.             dataUrl: dataUrl,
  199.             filterUrl: filterUrl,
  200.             params: params,
  201.             config: config,
  202.             rcpWrapper: rcpWrapper,
  203.             rcpId: rcpId,
  204.         } %}
  205.     {% endblock %}
  206. {% endblock %}
  207. ""@NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig""/var/customers/webs/kew/htdocs6/vendor/store.shopware.com/ndsrecipemanager/src/Resources/views/storefront/element/cms-element-recipe-list.html.twig");
  208.     }
  209. }