var/cache/dev_h35c9e4fa64367e5a564f83803cfdec08/twig/a0/a04015775edb17a77dbcc5c61cb3246385a1ab3bae526bf9bc001625828d3dea.php line 50

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. /* @LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig */
  16. class __TwigTemplate_52eff5503da5b758f57fd29eec094cf4 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->blocks = [
  25.             'component_filter_panel_item_tag' => [$this'block_component_filter_panel_item_tag'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@NdsRecipeManager/rcpmanager/listing/recipe-filter-panel.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig"));
  40.         $this->parent $this->loadTemplate("@NdsRecipeManager/rcpmanager/listing/recipe-filter-panel.html.twig""@LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_component_filter_panel_item_tag($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_filter_panel_item_tag"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_filter_panel_item_tag"));
  55.         // line 4
  56.         echo "\t";
  57.         $context["tags"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["listing"] ?? null), "aggregations", [], "any"falsefalsefalse4), "get", [=> "tags"], "method"falsefalsefalse4);
  58.         // line 5
  59.         echo "\t";
  60.         if ( !twig_test_empty(sw_get_attribute($this->env$this->source, ($context["tags"] ?? null), "entities", [], "any"falsefalsefalse5))) {
  61.             // line 6
  62.             echo "\t\t";
  63.             $context["tagsSorted"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\SecurityExtension']->sort(sw_get_attribute($this->env$this->source, ($context["tags"] ?? null), "entities", [], "any"falsefalsefalse6), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_lower_filter($this->envsw_get_attribute($this->env$this->source, ($context["a"] ?? null), "slug", [], "any"falsefalsefalse6)) > twig_lower_filter($this->envsw_get_attribute($this->env$this->source, ($context["b"] ?? null), "slug", [], "any"falsefalsefalse6))); });
  64.             // line 7
  65.             echo "
  66. \t\t";
  67.             // line 8
  68.             $this->loadTemplate("@NdsRecipeManager/rcpmanager/listing/filter/filter-multi-select.html.twig""@LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig"8)->display(twig_array_merge($context, ["pluginSelector" => "recipe-filter-multi-select""elements" =>             // line 10
  69. ($context["tagsSorted"] ?? null), "sidebar" =>             // line 11
  70. ($context["sidebar"] ?? null), "name" => "rcp-tags""displayName" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("recipe-manager.listing.filterTagsFilterName"))]));
  71.             // line 15
  72.             echo "\t";
  73.         }
  74.         
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  76.         
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78.     }
  79.     public function getTemplateName()
  80.     {
  81.         return "@LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig";
  82.     }
  83.     public function isTraitable()
  84.     {
  85.         return false;
  86.     }
  87.     public function getDebugInfo()
  88.     {
  89.         return array (  84 => 15,  82 => 11,  81 => 10,  80 => 8,  77 => 7,  74 => 6,  71 => 5,  68 => 4,  58 => 3,  35 => 2,);
  90.     }
  91.     public function getSourceContext()
  92.     {
  93.         return new Source("{% sw_extends '@Storefront/rcpmanager/listing/recipe-filter-panel.html.twig' %}
  94. {% block component_filter_panel_item_tag %}
  95. \t{% set tags = listing.aggregations.get('tags') %}
  96. \t{% if not tags.entities is empty %}
  97. \t\t{% set tagsSorted = tags.entities|sort((a, b) => a.slug|lower > b.slug|lower)  %}
  98. \t\t{% sw_include '@Storefront/rcpmanager/listing/filter/filter-multi-select.html.twig' with {
  99.             pluginSelector: 'recipe-filter-multi-select',
  100.             elements: tagsSorted,
  101.             sidebar: sidebar,
  102.             name: 'rcp-tags',
  103.             displayName: 'recipe-manager.listing.filterTagsFilterName'|trans|sw_sanitize
  104.         } %}
  105. \t{% endif %}
  106. {% endblock %}
  107. ""@LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig""/var/customers/webs/kew/htdocs6/custom/static-plugins/LDSCustom/src/Resources/views/rcpmanager/listing/recipe-filter-panel.html.twig");
  108.     }
  109. }