var/cache/dev/twig/3a/3a0683331e065fddd7411504d3cf62d6.php line 313

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* components/organisms/filter-bar/filter-bar.html.twig */
  16. class __TwigTemplate_58e23b1705cc04a0ac30f13ae623c5eb extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  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", "components/organisms/filter-bar/filter-bar.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", "components/organisms/filter-bar/filter-bar.html.twig"));
  38. // line 1
  39. yield "
  40. <div class=\"filter-bar\">
  41. <div class=\"filter-bar__inner\">
  42. <div class=\"filter-bar__filter\">
  43. ";
  44. // line 6
  45. 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")]));
  46. // line 61
  47. yield " </div>
  48. <div class=\"filter-bar__order\">
  49. ";
  50. // line 63
  51. 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"]));
  52. // line 79
  53. yield " </div>
  54. <div class=\"filter-bar__actions\">
  55. ";
  56. // line 81
  57. 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"]]));
  58. // line 89
  59. yield "
  60. ";
  61. // line 90
  62. 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"]]));
  63. // line 98
  64. yield " </div>
  65. <div class=\"filter__active-container\">
  66. ";
  67. // line 100
  68. yield from $this->load("components/molecules/filter-active/filter-active.html.twig", 100)->unwrap()->yield($context);
  69. // line 101
  70. yield " </div>
  71. <div class=\"filter-bar__result-count-container\">
  72. ";
  73. // line 103
  74. 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>")]);
  75. yield "
  76. </div>
  77. </div>
  78. </div>
  79. ";
  80. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  82. yield from [];
  83. }
  84. /**
  85. * @codeCoverageIgnore
  86. */
  87. public function getTemplateName(): string
  88. {
  89. return "components/organisms/filter-bar/filter-bar.html.twig";
  90. }
  91. /**
  92. * @codeCoverageIgnore
  93. */
  94. public function isTraitable(): bool
  95. {
  96. return false;
  97. }
  98. /**
  99. * @codeCoverageIgnore
  100. */
  101. public function getDebugInfo(): array
  102. {
  103. 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,);
  104. }
  105. public function getSourceContext(): Source
  106. {
  107. return new Source("
  108. <div class=\"filter-bar\">
  109. <div class=\"filter-bar__inner\">
  110. <div class=\"filter-bar__filter\">
  111. {% embed 'components/organisms/offside/offside.html.twig' with {
  112. 'id': 'mobileFilterBar',
  113. 'class': 'offside--mobile',
  114. 'header': 'listing_filter_button' | trans
  115. } %}
  116. {% block content %}
  117. {% block offcanvasContent %}
  118. {% set urlparams = {'categoryId': category.id, 'page': 1, 'startPage': 1}%}
  119. {% if current_sorting is defined and current_sorting is not null%}
  120. {% set urlparams = urlparams|merge({\"sort[field]\":current_sorting['field'],\"sort[order]\":current_sorting['order']}) %}
  121. {%endif%}
  122. <form
  123. method=\"post\"
  124. action=\"{{ path('app_catalog_get_more_products', urlparams) }}\"
  125. id=\"filterForm\"
  126. class=\"form js-ajax-filter filter__form\"
  127. data-filter-container=\".filter__container\"
  128. data-filter-active-container=\".filter__active-container\"
  129. data-listing-container=\".product-grid\"
  130. data-pagination-container=\".listing__pagination--bottom\"
  131. data-pagination-container-top=\".listing__pagination--top\">
  132. <div class=\"filter__container\">
  133. {% include('components/molecules/filter/filter.html.twig') %}
  134. </div>
  135. </form>
  136. {% if facets|length > 0 %}
  137. <div class=\"filter-bar__range js-reset-range\">
  138. {% for facet in facets %}
  139. {% if facet.type == constant('Denios\\\\SharedConstant\\\\Catalog\\\\Facet::TYPE_SLIDER') %}
  140. <div class=\"filter-bar__range-reset\" id=\"RESET_{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MIN_SUFFIX')}}\"
  141. data-range-key=\"{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MIN_SUFFIX') }}\"
  142. data-reset-value=\"{{ facet.min }}\"></div>
  143. <div class=\"filter-bar__range-reset\" id=\"RESET_{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MAX_SUFFIX')}}\"
  144. data-range-key=\"{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MAX_SUFFIX') }}\"
  145. data-reset-value=\"{{ facet.max }}\"></div>
  146. {% endif %}
  147. {% endfor %}
  148. </div>
  149. {% endif %}
  150. <div class=\"filter-bar__option\">
  151. {% include 'components/atoms/button/button.html.twig' with {
  152. class: 'button--multitool button--full-width js-offside-close',
  153. type: 'button',
  154. content: 'filter_display_result'|trans ~ ' (<span class=\"filter-bar__result-count\">' ~ filteredCount ~ '</span>)',
  155. 'attributes': {
  156. 'data-off-canvas-close-id': 'mobileFilterBar',
  157. }
  158. } %}
  159. </div>
  160. {% endblock %}
  161. {% endblock %}
  162. {% endembed %}
  163. </div>
  164. <div class=\"filter-bar__order\">
  165. {% embed 'components/organisms/offside/offside.html.twig' with {
  166. 'id': 'mobileOrderBar',
  167. 'class': 'offside--mobile',
  168. 'header': 'Sortierung'
  169. } %}
  170. {% block content %}
  171. {% block offcanvasContent %}
  172. {% include('components/molecules/sort-selector/sort-selector.html.twig') with {
  173. 'class': 'sort-selector sort-selector--filter-bar',
  174. 'triggerID': 'product-listing-sort',
  175. 'currentSort': current_sorting|default([])|json_encode,
  176. 'sortOptions': getCategoryListingSortOptions()|default([])|json_encode
  177. }%}
  178. {% endblock %}
  179. {% endblock %}
  180. {% endembed %}
  181. </div>
  182. <div class=\"filter-bar__actions\">
  183. {% include('components/atoms/button/button.html.twig') with {
  184. 'class': 'button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__filter-button js-offside',
  185. 'content': 'listing_filter_button' | trans,
  186. 'attributes': {
  187. 'data-offside-component': 'mobileFilterBar',
  188. 'data-offside-sliding-side': 'right'
  189. }
  190. } %}
  191. {% include('components/atoms/button/button.html.twig') with {
  192. 'class': 'button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__order-button js-offside',
  193. 'content': 'listing_sorting'|trans,
  194. 'attributes': {
  195. 'data-offside-component': 'mobileOrderBar',
  196. 'data-offside-sliding-side': 'right'
  197. }
  198. } %}
  199. </div>
  200. <div class=\"filter__active-container\">
  201. {% include('components/molecules/filter-active/filter-active.html.twig') %}
  202. </div>
  203. <div class=\"filter-bar__result-count-container\">
  204. {{ 'filtered_products'|trans({'%valueTotal%': '<span class=\"filter-bar__result-count-unfiltered\">' ~ unfilteredCount ~ '</span>','%valueFiltered%': '<span class=\"filter-bar__result-count\">' ~ filteredCount ~ '</span>'})|raw }}
  205. </div>
  206. </div>
  207. </div>
  208. ", "components/organisms/filter-bar/filter-bar.html.twig", "/var/www/html/templates/default/components/organisms/filter-bar/filter-bar.html.twig");
  209. }
  210. }
  211. /* components/organisms/filter-bar/filter-bar.html.twig */
  212. class __TwigTemplate_58e23b1705cc04a0ac30f13ae623c5eb___291192246 extends Template
  213. {
  214. private Source $source;
  215. /**
  216. * @var array<string, Template>
  217. */
  218. private array $macros = [];
  219. public function __construct(Environment $env)
  220. {
  221. parent::__construct($env);
  222. $this->source = $this->getSourceContext();
  223. $this->blocks = [
  224. 'content' => [$this, 'block_content'],
  225. 'offcanvasContent' => [$this, 'block_offcanvasContent'],
  226. ];
  227. }
  228. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  229. {
  230. // line 6
  231. return "components/organisms/offside/offside.html.twig";
  232. }
  233. protected function doDisplay(array $context, array $blocks = []): iterable
  234. {
  235. $macros = $this->macros;
  236. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  237. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/filter-bar/filter-bar.html.twig"));
  238. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  239. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/filter-bar/filter-bar.html.twig"));
  240. $this->parent = $this->load("components/organisms/offside/offside.html.twig", 6);
  241. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  242. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  243. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  244. }
  245. // line 11
  246. /**
  247. * @return iterable<null|scalar|\Stringable>
  248. */
  249. public function block_content(array $context, array $blocks = []): iterable
  250. {
  251. $macros = $this->macros;
  252. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  253. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  254. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  255. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  256. // line 12
  257. yield " ";
  258. yield from $this->unwrap()->yieldBlock('offcanvasContent', $context, $blocks);
  259. // line 59
  260. yield " ";
  261. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  262. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  263. yield from [];
  264. }
  265. // line 12
  266. /**
  267. * @return iterable<null|scalar|\Stringable>
  268. */
  269. public function block_offcanvasContent(array $context, array $blocks = []): iterable
  270. {
  271. $macros = $this->macros;
  272. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  273. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasContent"));
  274. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  275. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasContent"));
  276. // line 13
  277. yield " ";
  278. $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];
  279. // line 14
  280. yield " ";
  281. 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); })())))) {
  282. // line 15
  283. yield " ";
  284. $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)]);
  285. // line 16
  286. yield " ";
  287. }
  288. // line 17
  289. yield " <form
  290. method=\"post\"
  291. action=\"";
  292. // line 19
  293. 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);
  294. yield "\"
  295. id=\"filterForm\"
  296. class=\"form js-ajax-filter filter__form\"
  297. data-filter-container=\".filter__container\"
  298. data-filter-active-container=\".filter__active-container\"
  299. data-listing-container=\".product-grid\"
  300. data-pagination-container=\".listing__pagination--bottom\"
  301. data-pagination-container-top=\".listing__pagination--top\">
  302. <div class=\"filter__container\">
  303. ";
  304. // line 28
  305. yield from $this->load("components/molecules/filter/filter.html.twig", 28)->unwrap()->yield($context);
  306. // line 29
  307. yield " </div>
  308. </form>
  309. ";
  310. // line 31
  311. 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)) {
  312. // line 32
  313. yield " <div class=\"filter-bar__range js-reset-range\">
  314. ";
  315. // line 33
  316. $context['_parent'] = $context;
  317. $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); })()));
  318. foreach ($context['_seq'] as $context["_key"] => $context["facet"]) {
  319. // line 34
  320. yield "
  321. ";
  322. // line 36
  323. 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"))) {
  324. // line 37
  325. yield " <div class=\"filter-bar__range-reset\" id=\"RESET_";
  326. 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);
  327. yield "\"
  328. data-range-key=\"";
  329. // line 38
  330. 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);
  331. yield "\"
  332. data-reset-value=\"";
  333. // line 39
  334. 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);
  335. yield "\"></div>
  336. <div class=\"filter-bar__range-reset\" id=\"RESET_";
  337. // line 40
  338. 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);
  339. yield "\"
  340. data-range-key=\"";
  341. // line 41
  342. 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);
  343. yield "\"
  344. data-reset-value=\"";
  345. // line 42
  346. 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);
  347. yield "\"></div>
  348. ";
  349. }
  350. // line 44
  351. yield " ";
  352. }
  353. $_parent = $context['_parent'];
  354. unset($context['_seq'], $context['_key'], $context['facet'], $context['_parent']);
  355. $context = array_intersect_key($context, $_parent) + $_parent;
  356. // line 45
  357. yield " </div>
  358. ";
  359. }
  360. // line 47
  361. yield " <div class=\"filter-bar__option\">
  362. ";
  363. // line 48
  364. 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
  365. (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"]]));
  366. // line 56
  367. yield " </div>
  368. ";
  369. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  370. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  371. yield from [];
  372. }
  373. /**
  374. * @codeCoverageIgnore
  375. */
  376. public function getTemplateName(): string
  377. {
  378. return "components/organisms/filter-bar/filter-bar.html.twig";
  379. }
  380. /**
  381. * @codeCoverageIgnore
  382. */
  383. public function isTraitable(): bool
  384. {
  385. return false;
  386. }
  387. /**
  388. * @codeCoverageIgnore
  389. */
  390. public function getDebugInfo(): array
  391. {
  392. 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,);
  393. }
  394. public function getSourceContext(): Source
  395. {
  396. return new Source("
  397. <div class=\"filter-bar\">
  398. <div class=\"filter-bar__inner\">
  399. <div class=\"filter-bar__filter\">
  400. {% embed 'components/organisms/offside/offside.html.twig' with {
  401. 'id': 'mobileFilterBar',
  402. 'class': 'offside--mobile',
  403. 'header': 'listing_filter_button' | trans
  404. } %}
  405. {% block content %}
  406. {% block offcanvasContent %}
  407. {% set urlparams = {'categoryId': category.id, 'page': 1, 'startPage': 1}%}
  408. {% if current_sorting is defined and current_sorting is not null%}
  409. {% set urlparams = urlparams|merge({\"sort[field]\":current_sorting['field'],\"sort[order]\":current_sorting['order']}) %}
  410. {%endif%}
  411. <form
  412. method=\"post\"
  413. action=\"{{ path('app_catalog_get_more_products', urlparams) }}\"
  414. id=\"filterForm\"
  415. class=\"form js-ajax-filter filter__form\"
  416. data-filter-container=\".filter__container\"
  417. data-filter-active-container=\".filter__active-container\"
  418. data-listing-container=\".product-grid\"
  419. data-pagination-container=\".listing__pagination--bottom\"
  420. data-pagination-container-top=\".listing__pagination--top\">
  421. <div class=\"filter__container\">
  422. {% include('components/molecules/filter/filter.html.twig') %}
  423. </div>
  424. </form>
  425. {% if facets|length > 0 %}
  426. <div class=\"filter-bar__range js-reset-range\">
  427. {% for facet in facets %}
  428. {% if facet.type == constant('Denios\\\\SharedConstant\\\\Catalog\\\\Facet::TYPE_SLIDER') %}
  429. <div class=\"filter-bar__range-reset\" id=\"RESET_{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MIN_SUFFIX')}}\"
  430. data-range-key=\"{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MIN_SUFFIX') }}\"
  431. data-reset-value=\"{{ facet.min }}\"></div>
  432. <div class=\"filter-bar__range-reset\" id=\"RESET_{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MAX_SUFFIX')}}\"
  433. data-range-key=\"{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MAX_SUFFIX') }}\"
  434. data-reset-value=\"{{ facet.max }}\"></div>
  435. {% endif %}
  436. {% endfor %}
  437. </div>
  438. {% endif %}
  439. <div class=\"filter-bar__option\">
  440. {% include 'components/atoms/button/button.html.twig' with {
  441. class: 'button--multitool button--full-width js-offside-close',
  442. type: 'button',
  443. content: 'filter_display_result'|trans ~ ' (<span class=\"filter-bar__result-count\">' ~ filteredCount ~ '</span>)',
  444. 'attributes': {
  445. 'data-off-canvas-close-id': 'mobileFilterBar',
  446. }
  447. } %}
  448. </div>
  449. {% endblock %}
  450. {% endblock %}
  451. {% endembed %}
  452. </div>
  453. <div class=\"filter-bar__order\">
  454. {% embed 'components/organisms/offside/offside.html.twig' with {
  455. 'id': 'mobileOrderBar',
  456. 'class': 'offside--mobile',
  457. 'header': 'Sortierung'
  458. } %}
  459. {% block content %}
  460. {% block offcanvasContent %}
  461. {% include('components/molecules/sort-selector/sort-selector.html.twig') with {
  462. 'class': 'sort-selector sort-selector--filter-bar',
  463. 'triggerID': 'product-listing-sort',
  464. 'currentSort': current_sorting|default([])|json_encode,
  465. 'sortOptions': getCategoryListingSortOptions()|default([])|json_encode
  466. }%}
  467. {% endblock %}
  468. {% endblock %}
  469. {% endembed %}
  470. </div>
  471. <div class=\"filter-bar__actions\">
  472. {% include('components/atoms/button/button.html.twig') with {
  473. 'class': 'button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__filter-button js-offside',
  474. 'content': 'listing_filter_button' | trans,
  475. 'attributes': {
  476. 'data-offside-component': 'mobileFilterBar',
  477. 'data-offside-sliding-side': 'right'
  478. }
  479. } %}
  480. {% include('components/atoms/button/button.html.twig') with {
  481. 'class': 'button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__order-button js-offside',
  482. 'content': 'listing_sorting'|trans,
  483. 'attributes': {
  484. 'data-offside-component': 'mobileOrderBar',
  485. 'data-offside-sliding-side': 'right'
  486. }
  487. } %}
  488. </div>
  489. <div class=\"filter__active-container\">
  490. {% include('components/molecules/filter-active/filter-active.html.twig') %}
  491. </div>
  492. <div class=\"filter-bar__result-count-container\">
  493. {{ 'filtered_products'|trans({'%valueTotal%': '<span class=\"filter-bar__result-count-unfiltered\">' ~ unfilteredCount ~ '</span>','%valueFiltered%': '<span class=\"filter-bar__result-count\">' ~ filteredCount ~ '</span>'})|raw }}
  494. </div>
  495. </div>
  496. </div>
  497. ", "components/organisms/filter-bar/filter-bar.html.twig", "/var/www/html/templates/default/components/organisms/filter-bar/filter-bar.html.twig");
  498. }
  499. }
  500. /* components/organisms/filter-bar/filter-bar.html.twig */
  501. class __TwigTemplate_58e23b1705cc04a0ac30f13ae623c5eb___1725980008 extends Template
  502. {
  503. private Source $source;
  504. /**
  505. * @var array<string, Template>
  506. */
  507. private array $macros = [];
  508. public function __construct(Environment $env)
  509. {
  510. parent::__construct($env);
  511. $this->source = $this->getSourceContext();
  512. $this->blocks = [
  513. 'content' => [$this, 'block_content'],
  514. 'offcanvasContent' => [$this, 'block_offcanvasContent'],
  515. ];
  516. }
  517. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  518. {
  519. // line 63
  520. return "components/organisms/offside/offside.html.twig";
  521. }
  522. protected function doDisplay(array $context, array $blocks = []): iterable
  523. {
  524. $macros = $this->macros;
  525. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  526. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/filter-bar/filter-bar.html.twig"));
  527. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  528. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/filter-bar/filter-bar.html.twig"));
  529. $this->parent = $this->load("components/organisms/offside/offside.html.twig", 63);
  530. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  531. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  532. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  533. }
  534. // line 68
  535. /**
  536. * @return iterable<null|scalar|\Stringable>
  537. */
  538. public function block_content(array $context, array $blocks = []): iterable
  539. {
  540. $macros = $this->macros;
  541. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  542. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  543. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  544. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  545. // line 69
  546. yield " ";
  547. yield from $this->unwrap()->yieldBlock('offcanvasContent', $context, $blocks);
  548. // line 77
  549. yield " ";
  550. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  551. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  552. yield from [];
  553. }
  554. // line 69
  555. /**
  556. * @return iterable<null|scalar|\Stringable>
  557. */
  558. public function block_offcanvasContent(array $context, array $blocks = []): iterable
  559. {
  560. $macros = $this->macros;
  561. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  562. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasContent"));
  563. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  564. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasContent"));
  565. // line 70
  566. yield " ";
  567. 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
  568. 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(), []))]));
  569. // line 76
  570. yield " ";
  571. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  572. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  573. yield from [];
  574. }
  575. /**
  576. * @codeCoverageIgnore
  577. */
  578. public function getTemplateName(): string
  579. {
  580. return "components/organisms/filter-bar/filter-bar.html.twig";
  581. }
  582. /**
  583. * @codeCoverageIgnore
  584. */
  585. public function isTraitable(): bool
  586. {
  587. return false;
  588. }
  589. /**
  590. * @codeCoverageIgnore
  591. */
  592. public function getDebugInfo(): array
  593. {
  594. 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,);
  595. }
  596. public function getSourceContext(): Source
  597. {
  598. return new Source("
  599. <div class=\"filter-bar\">
  600. <div class=\"filter-bar__inner\">
  601. <div class=\"filter-bar__filter\">
  602. {% embed 'components/organisms/offside/offside.html.twig' with {
  603. 'id': 'mobileFilterBar',
  604. 'class': 'offside--mobile',
  605. 'header': 'listing_filter_button' | trans
  606. } %}
  607. {% block content %}
  608. {% block offcanvasContent %}
  609. {% set urlparams = {'categoryId': category.id, 'page': 1, 'startPage': 1}%}
  610. {% if current_sorting is defined and current_sorting is not null%}
  611. {% set urlparams = urlparams|merge({\"sort[field]\":current_sorting['field'],\"sort[order]\":current_sorting['order']}) %}
  612. {%endif%}
  613. <form
  614. method=\"post\"
  615. action=\"{{ path('app_catalog_get_more_products', urlparams) }}\"
  616. id=\"filterForm\"
  617. class=\"form js-ajax-filter filter__form\"
  618. data-filter-container=\".filter__container\"
  619. data-filter-active-container=\".filter__active-container\"
  620. data-listing-container=\".product-grid\"
  621. data-pagination-container=\".listing__pagination--bottom\"
  622. data-pagination-container-top=\".listing__pagination--top\">
  623. <div class=\"filter__container\">
  624. {% include('components/molecules/filter/filter.html.twig') %}
  625. </div>
  626. </form>
  627. {% if facets|length > 0 %}
  628. <div class=\"filter-bar__range js-reset-range\">
  629. {% for facet in facets %}
  630. {% if facet.type == constant('Denios\\\\SharedConstant\\\\Catalog\\\\Facet::TYPE_SLIDER') %}
  631. <div class=\"filter-bar__range-reset\" id=\"RESET_{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MIN_SUFFIX')}}\"
  632. data-range-key=\"{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MIN_SUFFIX') }}\"
  633. data-reset-value=\"{{ facet.min }}\"></div>
  634. <div class=\"filter-bar__range-reset\" id=\"RESET_{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MAX_SUFFIX')}}\"
  635. data-range-key=\"{{ facet.key ~ constant('Denios\\\\SharedConstant\\\\Catalog\\\\SliderFacet::MAX_SUFFIX') }}\"
  636. data-reset-value=\"{{ facet.max }}\"></div>
  637. {% endif %}
  638. {% endfor %}
  639. </div>
  640. {% endif %}
  641. <div class=\"filter-bar__option\">
  642. {% include 'components/atoms/button/button.html.twig' with {
  643. class: 'button--multitool button--full-width js-offside-close',
  644. type: 'button',
  645. content: 'filter_display_result'|trans ~ ' (<span class=\"filter-bar__result-count\">' ~ filteredCount ~ '</span>)',
  646. 'attributes': {
  647. 'data-off-canvas-close-id': 'mobileFilterBar',
  648. }
  649. } %}
  650. </div>
  651. {% endblock %}
  652. {% endblock %}
  653. {% endembed %}
  654. </div>
  655. <div class=\"filter-bar__order\">
  656. {% embed 'components/organisms/offside/offside.html.twig' with {
  657. 'id': 'mobileOrderBar',
  658. 'class': 'offside--mobile',
  659. 'header': 'Sortierung'
  660. } %}
  661. {% block content %}
  662. {% block offcanvasContent %}
  663. {% include('components/molecules/sort-selector/sort-selector.html.twig') with {
  664. 'class': 'sort-selector sort-selector--filter-bar',
  665. 'triggerID': 'product-listing-sort',
  666. 'currentSort': current_sorting|default([])|json_encode,
  667. 'sortOptions': getCategoryListingSortOptions()|default([])|json_encode
  668. }%}
  669. {% endblock %}
  670. {% endblock %}
  671. {% endembed %}
  672. </div>
  673. <div class=\"filter-bar__actions\">
  674. {% include('components/atoms/button/button.html.twig') with {
  675. 'class': 'button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__filter-button js-offside',
  676. 'content': 'listing_filter_button' | trans,
  677. 'attributes': {
  678. 'data-offside-component': 'mobileFilterBar',
  679. 'data-offside-sliding-side': 'right'
  680. }
  681. } %}
  682. {% include('components/atoms/button/button.html.twig') with {
  683. 'class': 'button button--multitool filter-bar__button filter-bar__button--mobile filter-bar__order-button js-offside',
  684. 'content': 'listing_sorting'|trans,
  685. 'attributes': {
  686. 'data-offside-component': 'mobileOrderBar',
  687. 'data-offside-sliding-side': 'right'
  688. }
  689. } %}
  690. </div>
  691. <div class=\"filter__active-container\">
  692. {% include('components/molecules/filter-active/filter-active.html.twig') %}
  693. </div>
  694. <div class=\"filter-bar__result-count-container\">
  695. {{ 'filtered_products'|trans({'%valueTotal%': '<span class=\"filter-bar__result-count-unfiltered\">' ~ unfilteredCount ~ '</span>','%valueFiltered%': '<span class=\"filter-bar__result-count\">' ~ filteredCount ~ '</span>'})|raw }}
  696. </div>
  697. </div>
  698. </div>
  699. ", "components/organisms/filter-bar/filter-bar.html.twig", "/var/www/html/templates/default/components/organisms/filter-bar/filter-bar.html.twig");
  700. }
  701. }