<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig */
class __TwigTemplate_52eff5503da5b758f57fd29eec094cf4 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'component_filter_panel_item_tag' => [$this, 'block_component_filter_panel_item_tag'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@NdsRecipeManager/rcpmanager/listing/recipe-filter-panel.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig"));
$this->parent = $this->loadTemplate("@NdsRecipeManager/rcpmanager/listing/recipe-filter-panel.html.twig", "@LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_component_filter_panel_item_tag($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_filter_panel_item_tag"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_filter_panel_item_tag"));
// line 4
echo "\t";
$context["tags"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["listing"] ?? null), "aggregations", [], "any", false, false, false, 4), "get", [0 => "tags"], "method", false, false, false, 4);
// line 5
echo "\t";
if ( !twig_test_empty(sw_get_attribute($this->env, $this->source, ($context["tags"] ?? null), "entities", [], "any", false, false, false, 5))) {
// line 6
echo "\t\t";
$context["tagsSorted"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\SecurityExtension']->sort(sw_get_attribute($this->env, $this->source, ($context["tags"] ?? null), "entities", [], "any", false, false, false, 6), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_lower_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["a"] ?? null), "slug", [], "any", false, false, false, 6)) > twig_lower_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["b"] ?? null), "slug", [], "any", false, false, false, 6))); });
// line 7
echo "
\t\t";
// line 8
$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
($context["tagsSorted"] ?? null), "sidebar" => // line 11
($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"))]));
// line 15
echo "\t";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 84 => 15, 82 => 11, 81 => 10, 80 => 8, 77 => 7, 74 => 6, 71 => 5, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/rcpmanager/listing/recipe-filter-panel.html.twig' %}
{% block component_filter_panel_item_tag %}
\t{% set tags = listing.aggregations.get('tags') %}
\t{% if not tags.entities is empty %}
\t\t{% set tagsSorted = tags.entities|sort((a, b) => a.slug|lower > b.slug|lower) %}
\t\t{% sw_include '@Storefront/rcpmanager/listing/filter/filter-multi-select.html.twig' with {
pluginSelector: 'recipe-filter-multi-select',
elements: tagsSorted,
sidebar: sidebar,
name: 'rcp-tags',
displayName: 'recipe-manager.listing.filterTagsFilterName'|trans|sw_sanitize
} %}
\t{% endif %}
{% endblock %}
", "@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");
}
}