<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* components/organisms/filter-bar/filter-bar.html.twig */
class __TwigTemplate_58e23b1705cc04a0ac30f13ae623c5eb extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "components/organisms/filter-bar/filter-bar.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/filter-bar/filter-bar.html.twig"));
// line 1
yield "
<div class=\"filter-bar\">
<div class=\"filter-bar__inner\">
<div class=\"filter-bar__filter\">
";
// line 6
yield from $this->load("components/organisms/filter-bar/filter-bar.html.twig", 6, "291192246")->unwrap()->yield(CoreExtension::merge($context, ["id" => "mobileFilterBar", "class" => "offside--mobile", "header" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing_filter_button")]));
// line 61
yield " </div>
<div class=\"filter-bar__order\">
";
// line 63
yield from $this->load("components/organisms/filter-bar/filter-bar.html.twig", 63, "1725980008")->unwrap()->yield(CoreExtension::merge($context, ["id" => "mobileOrderBar", "class" => "offside--mobile", "header" => "Sortierung"]));
// line 79
yield " </div>
<div class=\"filter-bar__actions\">
";
// line 81
yield from $this->load("components/atoms/button/button.html.twig", 81)->unwrap()->yield(CoreExtension::merge($context, ["class" => "button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__filter-button js-offside", "content" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing_filter_button"), "attributes" => ["data-offside-component" => "mobileFilterBar", "data-offside-sliding-side" => "right"]]));
// line 89
yield "
";
// line 90
yield from $this->load("components/atoms/button/button.html.twig", 90)->unwrap()->yield(CoreExtension::merge($context, ["class" => "button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__order-button js-offside", "content" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing_sorting"), "attributes" => ["data-offside-component" => "mobileOrderBar", "data-offside-sliding-side" => "right"]]));
// line 98
yield " </div>
<div class=\"filter__active-container\">
";
// line 100
yield from $this->load("components/molecules/filter-active/filter-active.html.twig", 100)->unwrap()->yield($context);
// line 101
yield " </div>
<div class=\"filter-bar__result-count-container\">
";
// line 103
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("filtered_products", ["%valueTotal%" => (("<span class=\"filter-bar__result-count-unfiltered\">" . (isset($context["unfilteredCount"]) || array_key_exists("unfilteredCount", $context) ? $context["unfilteredCount"] : (function () { throw new RuntimeError('Variable "unfilteredCount" does not exist.', 103, $this->source); })())) . "</span>"), "%valueFiltered%" => (("<span class=\"filter-bar__result-count\">" . (isset($context["filteredCount"]) || array_key_exists("filteredCount", $context) ? $context["filteredCount"] : (function () { throw new RuntimeError('Variable "filteredCount" does not exist.', 103, $this->source); })())) . "</span>")]);
yield "
</div>
</div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "components/organisms/filter-bar/filter-bar.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 84 => 103, 80 => 101, 78 => 100, 74 => 98, 72 => 90, 69 => 89, 67 => 81, 63 => 79, 61 => 63, 57 => 61, 55 => 6, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("
<div class=\"filter-bar\">
<div class=\"filter-bar__inner\">
<div class=\"filter-bar__filter\">
{% embed 'components/organisms/offside/offside.html.twig' with {
'id': 'mobileFilterBar',
'class': 'offside--mobile',
'header': 'listing_filter_button' | trans
} %}
{% block content %}
{% block offcanvasContent %}
{% set urlparams = {'categoryId': category.id, 'page': 1, 'startPage': 1}%}
{% if current_sorting is defined and current_sorting is not null%}
{% set urlparams = urlparams|merge({\"sort[field]\":current_sorting['field'],\"sort[order]\":current_sorting['order']}) %}
{%endif%}
<form
method=\"post\"
action=\"{{ path('app_catalog_get_more_products', urlparams) }}\"
id=\"filterForm\"
class=\"form js-ajax-filter filter__form\"
data-filter-container=\".filter__container\"
data-filter-active-container=\".filter__active-container\"
data-listing-container=\".product-grid\"
data-pagination-container=\".listing__pagination--bottom\"
data-pagination-container-top=\".listing__pagination--top\">
<div class=\"filter__container\">
{% include('components/molecules/filter/filter.html.twig') %}
</div>
</form>
{% if facets|length > 0 %}
<div class=\"filter-bar__range js-reset-range\">
{% for facet in facets %}
{% if facet.type == constant('Denios\\\\SharedConstant\\\\Catalog\\\\Facet::TYPE_SLIDER') %}
<div class=\"filter-bar__range-reset\" id=\"RESET_{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MIN_SUFFIX')}}\"
data-range-key=\"{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MIN_SUFFIX') }}\"
data-reset-value=\"{{ facet.min }}\"></div>
<div class=\"filter-bar__range-reset\" id=\"RESET_{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MAX_SUFFIX')}}\"
data-range-key=\"{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MAX_SUFFIX') }}\"
data-reset-value=\"{{ facet.max }}\"></div>
{% endif %}
{% endfor %}
</div>
{% endif %}
<div class=\"filter-bar__option\">
{% include 'components/atoms/button/button.html.twig' with {
class: 'button--multitool button--full-width js-offside-close',
type: 'button',
content: 'filter_display_result'|trans ~ ' (<span class=\"filter-bar__result-count\">' ~ filteredCount ~ '</span>)',
'attributes': {
'data-off-canvas-close-id': 'mobileFilterBar',
}
} %}
</div>
{% endblock %}
{% endblock %}
{% endembed %}
</div>
<div class=\"filter-bar__order\">
{% embed 'components/organisms/offside/offside.html.twig' with {
'id': 'mobileOrderBar',
'class': 'offside--mobile',
'header': 'Sortierung'
} %}
{% block content %}
{% block offcanvasContent %}
{% include('components/molecules/sort-selector/sort-selector.html.twig') with {
'class': 'sort-selector sort-selector--filter-bar',
'triggerID': 'product-listing-sort',
'currentSort': current_sorting|default([])|json_encode,
'sortOptions': getCategoryListingSortOptions()|default([])|json_encode
}%}
{% endblock %}
{% endblock %}
{% endembed %}
</div>
<div class=\"filter-bar__actions\">
{% include('components/atoms/button/button.html.twig') with {
'class': 'button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__filter-button js-offside',
'content': 'listing_filter_button' | trans,
'attributes': {
'data-offside-component': 'mobileFilterBar',
'data-offside-sliding-side': 'right'
}
} %}
{% include('components/atoms/button/button.html.twig') with {
'class': 'button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__order-button js-offside',
'content': 'listing_sorting'|trans,
'attributes': {
'data-offside-component': 'mobileOrderBar',
'data-offside-sliding-side': 'right'
}
} %}
</div>
<div class=\"filter__active-container\">
{% include('components/molecules/filter-active/filter-active.html.twig') %}
</div>
<div class=\"filter-bar__result-count-container\">
{{ 'filtered_products'|trans({'%valueTotal%': '<span class=\"filter-bar__result-count-unfiltered\">' ~ unfilteredCount ~ '</span>','%valueFiltered%': '<span class=\"filter-bar__result-count\">' ~ filteredCount ~ '</span>'})|raw }}
</div>
</div>
</div>
", "components/organisms/filter-bar/filter-bar.html.twig", "/var/www/html/templates/default/components/organisms/filter-bar/filter-bar.html.twig");
}
}
/* components/organisms/filter-bar/filter-bar.html.twig */
class __TwigTemplate_58e23b1705cc04a0ac30f13ae623c5eb___291192246 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'offcanvasContent' => [$this, 'block_offcanvasContent'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 6
return "components/organisms/offside/offside.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "components/organisms/filter-bar/filter-bar.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/filter-bar/filter-bar.html.twig"));
$this->parent = $this->load("components/organisms/offside/offside.html.twig", 6);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 11
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 12
yield " ";
yield from $this->unwrap()->yieldBlock('offcanvasContent', $context, $blocks);
// line 59
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 12
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_offcanvasContent(array $context, array $blocks = []): iterable
{
$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", "offcanvasContent"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasContent"));
// line 13
yield " ";
$context["urlparams"] = ["categoryId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 13, $this->source); })()), "id", [], "any", false, false, false, 13), "page" => 1, "startPage" => 1];
// line 14
yield " ";
if ((array_key_exists("current_sorting", $context) && !(null === (isset($context["current_sorting"]) || array_key_exists("current_sorting", $context) ? $context["current_sorting"] : (function () { throw new RuntimeError('Variable "current_sorting" does not exist.', 14, $this->source); })())))) {
// line 15
yield " ";
$context["urlparams"] = Twig\Extension\CoreExtension::merge((isset($context["urlparams"]) || array_key_exists("urlparams", $context) ? $context["urlparams"] : (function () { throw new RuntimeError('Variable "urlparams" does not exist.', 15, $this->source); })()), ["sort[field]" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["current_sorting"]) || array_key_exists("current_sorting", $context) ? $context["current_sorting"] : (function () { throw new RuntimeError('Variable "current_sorting" does not exist.', 15, $this->source); })()), "field", [], "array", false, false, false, 15), "sort[order]" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["current_sorting"]) || array_key_exists("current_sorting", $context) ? $context["current_sorting"] : (function () { throw new RuntimeError('Variable "current_sorting" does not exist.', 15, $this->source); })()), "order", [], "array", false, false, false, 15)]);
// line 16
yield " ";
}
// line 17
yield " <form
method=\"post\"
action=\"";
// line 19
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_catalog_get_more_products", (isset($context["urlparams"]) || array_key_exists("urlparams", $context) ? $context["urlparams"] : (function () { throw new RuntimeError('Variable "urlparams" does not exist.', 19, $this->source); })())), "html", null, true);
yield "\"
id=\"filterForm\"
class=\"form js-ajax-filter filter__form\"
data-filter-container=\".filter__container\"
data-filter-active-container=\".filter__active-container\"
data-listing-container=\".product-grid\"
data-pagination-container=\".listing__pagination--bottom\"
data-pagination-container-top=\".listing__pagination--top\">
<div class=\"filter__container\">
";
// line 28
yield from $this->load("components/molecules/filter/filter.html.twig", 28)->unwrap()->yield($context);
// line 29
yield " </div>
</form>
";
// line 31
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["facets"]) || array_key_exists("facets", $context) ? $context["facets"] : (function () { throw new RuntimeError('Variable "facets" does not exist.', 31, $this->source); })())) > 0)) {
// line 32
yield " <div class=\"filter-bar__range js-reset-range\">
";
// line 33
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["facets"]) || array_key_exists("facets", $context) ? $context["facets"] : (function () { throw new RuntimeError('Variable "facets" does not exist.', 33, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["facet"]) {
// line 34
yield "
";
// line 36
if ((CoreExtension::getAttribute($this->env, $this->source, $context["facet"], "type", [], "any", false, false, false, 36) == Twig\Extension\CoreExtension::constant("Denios\\SharedConstant\\Catalog\\Facet::TYPE_SLIDER"))) {
// line 37
yield " <div class=\"filter-bar__range-reset\" id=\"RESET_";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["facet"], "key", [], "any", false, false, false, 37) . Twig\Extension\CoreExtension::constant("Denios\\SharedConstant\\Catalog\\SliderFacet::MIN_SUFFIX")), "html", null, true);
yield "\"
data-range-key=\"";
// line 38
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["facet"], "key", [], "any", false, false, false, 38) . Twig\Extension\CoreExtension::constant("Denios\\SharedConstant\\Catalog\\SliderFacet::MIN_SUFFIX")), "html", null, true);
yield "\"
data-reset-value=\"";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["facet"], "min", [], "any", false, false, false, 39), "html", null, true);
yield "\"></div>
<div class=\"filter-bar__range-reset\" id=\"RESET_";
// line 40
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["facet"], "key", [], "any", false, false, false, 40) . Twig\Extension\CoreExtension::constant("Denios\\SharedConstant\\Catalog\\SliderFacet::MAX_SUFFIX")), "html", null, true);
yield "\"
data-range-key=\"";
// line 41
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["facet"], "key", [], "any", false, false, false, 41) . Twig\Extension\CoreExtension::constant("Denios\\SharedConstant\\Catalog\\SliderFacet::MAX_SUFFIX")), "html", null, true);
yield "\"
data-reset-value=\"";
// line 42
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["facet"], "max", [], "any", false, false, false, 42), "html", null, true);
yield "\"></div>
";
}
// line 44
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['facet'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 45
yield " </div>
";
}
// line 47
yield " <div class=\"filter-bar__option\">
";
// line 48
yield from $this->load("components/atoms/button/button.html.twig", 48)->unwrap()->yield(CoreExtension::merge($context, ["class" => "button--multitool button--full-width js-offside-close", "type" => "button", "content" => ((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("filter_display_result") . " (<span class=\"filter-bar__result-count\">") . // line 51
(isset($context["filteredCount"]) || array_key_exists("filteredCount", $context) ? $context["filteredCount"] : (function () { throw new RuntimeError('Variable "filteredCount" does not exist.', 51, $this->source); })())) . "</span>)"), "attributes" => ["data-off-canvas-close-id" => "mobileFilterBar"]]));
// line 56
yield " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "components/organisms/filter-bar/filter-bar.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 414 => 56, 412 => 51, 411 => 48, 408 => 47, 404 => 45, 398 => 44, 393 => 42, 389 => 41, 385 => 40, 381 => 39, 377 => 38, 372 => 37, 370 => 36, 366 => 34, 362 => 33, 359 => 32, 357 => 31, 353 => 29, 351 => 28, 339 => 19, 335 => 17, 332 => 16, 329 => 15, 326 => 14, 323 => 13, 310 => 12, 299 => 59, 296 => 12, 283 => 11, 260 => 6, 84 => 103, 80 => 101, 78 => 100, 74 => 98, 72 => 90, 69 => 89, 67 => 81, 63 => 79, 61 => 63, 57 => 61, 55 => 6, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("
<div class=\"filter-bar\">
<div class=\"filter-bar__inner\">
<div class=\"filter-bar__filter\">
{% embed 'components/organisms/offside/offside.html.twig' with {
'id': 'mobileFilterBar',
'class': 'offside--mobile',
'header': 'listing_filter_button' | trans
} %}
{% block content %}
{% block offcanvasContent %}
{% set urlparams = {'categoryId': category.id, 'page': 1, 'startPage': 1}%}
{% if current_sorting is defined and current_sorting is not null%}
{% set urlparams = urlparams|merge({\"sort[field]\":current_sorting['field'],\"sort[order]\":current_sorting['order']}) %}
{%endif%}
<form
method=\"post\"
action=\"{{ path('app_catalog_get_more_products', urlparams) }}\"
id=\"filterForm\"
class=\"form js-ajax-filter filter__form\"
data-filter-container=\".filter__container\"
data-filter-active-container=\".filter__active-container\"
data-listing-container=\".product-grid\"
data-pagination-container=\".listing__pagination--bottom\"
data-pagination-container-top=\".listing__pagination--top\">
<div class=\"filter__container\">
{% include('components/molecules/filter/filter.html.twig') %}
</div>
</form>
{% if facets|length > 0 %}
<div class=\"filter-bar__range js-reset-range\">
{% for facet in facets %}
{% if facet.type == constant('Denios\\\\SharedConstant\\\\Catalog\\\\Facet::TYPE_SLIDER') %}
<div class=\"filter-bar__range-reset\" id=\"RESET_{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MIN_SUFFIX')}}\"
data-range-key=\"{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MIN_SUFFIX') }}\"
data-reset-value=\"{{ facet.min }}\"></div>
<div class=\"filter-bar__range-reset\" id=\"RESET_{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MAX_SUFFIX')}}\"
data-range-key=\"{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MAX_SUFFIX') }}\"
data-reset-value=\"{{ facet.max }}\"></div>
{% endif %}
{% endfor %}
</div>
{% endif %}
<div class=\"filter-bar__option\">
{% include 'components/atoms/button/button.html.twig' with {
class: 'button--multitool button--full-width js-offside-close',
type: 'button',
content: 'filter_display_result'|trans ~ ' (<span class=\"filter-bar__result-count\">' ~ filteredCount ~ '</span>)',
'attributes': {
'data-off-canvas-close-id': 'mobileFilterBar',
}
} %}
</div>
{% endblock %}
{% endblock %}
{% endembed %}
</div>
<div class=\"filter-bar__order\">
{% embed 'components/organisms/offside/offside.html.twig' with {
'id': 'mobileOrderBar',
'class': 'offside--mobile',
'header': 'Sortierung'
} %}
{% block content %}
{% block offcanvasContent %}
{% include('components/molecules/sort-selector/sort-selector.html.twig') with {
'class': 'sort-selector sort-selector--filter-bar',
'triggerID': 'product-listing-sort',
'currentSort': current_sorting|default([])|json_encode,
'sortOptions': getCategoryListingSortOptions()|default([])|json_encode
}%}
{% endblock %}
{% endblock %}
{% endembed %}
</div>
<div class=\"filter-bar__actions\">
{% include('components/atoms/button/button.html.twig') with {
'class': 'button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__filter-button js-offside',
'content': 'listing_filter_button' | trans,
'attributes': {
'data-offside-component': 'mobileFilterBar',
'data-offside-sliding-side': 'right'
}
} %}
{% include('components/atoms/button/button.html.twig') with {
'class': 'button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__order-button js-offside',
'content': 'listing_sorting'|trans,
'attributes': {
'data-offside-component': 'mobileOrderBar',
'data-offside-sliding-side': 'right'
}
} %}
</div>
<div class=\"filter__active-container\">
{% include('components/molecules/filter-active/filter-active.html.twig') %}
</div>
<div class=\"filter-bar__result-count-container\">
{{ 'filtered_products'|trans({'%valueTotal%': '<span class=\"filter-bar__result-count-unfiltered\">' ~ unfilteredCount ~ '</span>','%valueFiltered%': '<span class=\"filter-bar__result-count\">' ~ filteredCount ~ '</span>'})|raw }}
</div>
</div>
</div>
", "components/organisms/filter-bar/filter-bar.html.twig", "/var/www/html/templates/default/components/organisms/filter-bar/filter-bar.html.twig");
}
}
/* components/organisms/filter-bar/filter-bar.html.twig */
class __TwigTemplate_58e23b1705cc04a0ac30f13ae623c5eb___1725980008 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'offcanvasContent' => [$this, 'block_offcanvasContent'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 63
return "components/organisms/offside/offside.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "components/organisms/filter-bar/filter-bar.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/filter-bar/filter-bar.html.twig"));
$this->parent = $this->load("components/organisms/offside/offside.html.twig", 63);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 68
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 69
yield " ";
yield from $this->unwrap()->yieldBlock('offcanvasContent', $context, $blocks);
// line 77
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 69
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_offcanvasContent(array $context, array $blocks = []): iterable
{
$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", "offcanvasContent"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasContent"));
// line 70
yield " ";
yield from $this->load("components/molecules/sort-selector/sort-selector.html.twig", 70)->unwrap()->yield(CoreExtension::merge($context, ["class" => "sort-selector sort-selector--filter-bar", "triggerID" => "product-listing-sort", "currentSort" => json_encode((( // line 73
array_key_exists("current_sorting", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["current_sorting"]) || array_key_exists("current_sorting", $context) ? $context["current_sorting"] : (function () { throw new RuntimeError('Variable "current_sorting" does not exist.', 73, $this->source); })()), [])) : ([]))), "sortOptions" => json_encode(Twig\Extension\CoreExtension::default($this->extensions['App\Twig\Functions\SortOptionsExtension']->getCategoryListingSortOptions(), []))]));
// line 76
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "components/organisms/filter-bar/filter-bar.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 654 => 76, 652 => 73, 650 => 70, 637 => 69, 626 => 77, 623 => 69, 610 => 68, 587 => 63, 414 => 56, 412 => 51, 411 => 48, 408 => 47, 404 => 45, 398 => 44, 393 => 42, 389 => 41, 385 => 40, 381 => 39, 377 => 38, 372 => 37, 370 => 36, 366 => 34, 362 => 33, 359 => 32, 357 => 31, 353 => 29, 351 => 28, 339 => 19, 335 => 17, 332 => 16, 329 => 15, 326 => 14, 323 => 13, 310 => 12, 299 => 59, 296 => 12, 283 => 11, 260 => 6, 84 => 103, 80 => 101, 78 => 100, 74 => 98, 72 => 90, 69 => 89, 67 => 81, 63 => 79, 61 => 63, 57 => 61, 55 => 6, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("
<div class=\"filter-bar\">
<div class=\"filter-bar__inner\">
<div class=\"filter-bar__filter\">
{% embed 'components/organisms/offside/offside.html.twig' with {
'id': 'mobileFilterBar',
'class': 'offside--mobile',
'header': 'listing_filter_button' | trans
} %}
{% block content %}
{% block offcanvasContent %}
{% set urlparams = {'categoryId': category.id, 'page': 1, 'startPage': 1}%}
{% if current_sorting is defined and current_sorting is not null%}
{% set urlparams = urlparams|merge({\"sort[field]\":current_sorting['field'],\"sort[order]\":current_sorting['order']}) %}
{%endif%}
<form
method=\"post\"
action=\"{{ path('app_catalog_get_more_products', urlparams) }}\"
id=\"filterForm\"
class=\"form js-ajax-filter filter__form\"
data-filter-container=\".filter__container\"
data-filter-active-container=\".filter__active-container\"
data-listing-container=\".product-grid\"
data-pagination-container=\".listing__pagination--bottom\"
data-pagination-container-top=\".listing__pagination--top\">
<div class=\"filter__container\">
{% include('components/molecules/filter/filter.html.twig') %}
</div>
</form>
{% if facets|length > 0 %}
<div class=\"filter-bar__range js-reset-range\">
{% for facet in facets %}
{% if facet.type == constant('Denios\\\\SharedConstant\\\\Catalog\\\\Facet::TYPE_SLIDER') %}
<div class=\"filter-bar__range-reset\" id=\"RESET_{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MIN_SUFFIX')}}\"
data-range-key=\"{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MIN_SUFFIX') }}\"
data-reset-value=\"{{ facet.min }}\"></div>
<div class=\"filter-bar__range-reset\" id=\"RESET_{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MAX_SUFFIX')}}\"
data-range-key=\"{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MAX_SUFFIX') }}\"
data-reset-value=\"{{ facet.max }}\"></div>
{% endif %}
{% endfor %}
</div>
{% endif %}
<div class=\"filter-bar__option\">
{% include 'components/atoms/button/button.html.twig' with {
class: 'button--multitool button--full-width js-offside-close',
type: 'button',
content: 'filter_display_result'|trans ~ ' (<span class=\"filter-bar__result-count\">' ~ filteredCount ~ '</span>)',
'attributes': {
'data-off-canvas-close-id': 'mobileFilterBar',
}
} %}
</div>
{% endblock %}
{% endblock %}
{% endembed %}
</div>
<div class=\"filter-bar__order\">
{% embed 'components/organisms/offside/offside.html.twig' with {
'id': 'mobileOrderBar',
'class': 'offside--mobile',
'header': 'Sortierung'
} %}
{% block content %}
{% block offcanvasContent %}
{% include('components/molecules/sort-selector/sort-selector.html.twig') with {
'class': 'sort-selector sort-selector--filter-bar',
'triggerID': 'product-listing-sort',
'currentSort': current_sorting|default([])|json_encode,
'sortOptions': getCategoryListingSortOptions()|default([])|json_encode
}%}
{% endblock %}
{% endblock %}
{% endembed %}
</div>
<div class=\"filter-bar__actions\">
{% include('components/atoms/button/button.html.twig') with {
'class': 'button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__filter-button js-offside',
'content': 'listing_filter_button' | trans,
'attributes': {
'data-offside-component': 'mobileFilterBar',
'data-offside-sliding-side': 'right'
}
} %}
{% include('components/atoms/button/button.html.twig') with {
'class': 'button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__order-button js-offside',
'content': 'listing_sorting'|trans,
'attributes': {
'data-offside-component': 'mobileOrderBar',
'data-offside-sliding-side': 'right'
}
} %}
</div>
<div class=\"filter__active-container\">
{% include('components/molecules/filter-active/filter-active.html.twig') %}
</div>
<div class=\"filter-bar__result-count-container\">
{{ 'filtered_products'|trans({'%valueTotal%': '<span class=\"filter-bar__result-count-unfiltered\">' ~ unfilteredCount ~ '</span>','%valueFiltered%': '<span class=\"filter-bar__result-count\">' ~ filteredCount ~ '</span>'})|raw }}
</div>
</div>
</div>
", "components/organisms/filter-bar/filter-bar.html.twig", "/var/www/html/templates/default/components/organisms/filter-bar/filter-bar.html.twig");
}
}