var/cache/dev/twig/31/3139ab6d307753211ba9407aee2e2532.php line 233

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/molecules/filter/filter.html.twig */
  16. class __TwigTemplate_c5982599c8381a2bb9a0b236f6165b13 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/molecules/filter/filter.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/molecules/filter/filter.html.twig"));
  38. // line 1
  39. yield "<div class=\"filter\">
  40. ";
  41. // line 2
  42. 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.', 2, $this->source); })())) > 6)) {
  43. // line 3
  44. yield " <input class=\"filter__display-input\" type=\"checkbox\" id=\"moreFilter\" >
  45. ";
  46. }
  47. // line 5
  48. yield " ";
  49. $context['_parent'] = $context;
  50. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["facets"]) || array_key_exists("facets", $context) ? $context["facets"] : (function () { throw new RuntimeError('Variable "facets" does not exist.', 5, $this->source); })()));
  51. $context['loop'] = [
  52. 'parent' => $context['_parent'],
  53. 'index0' => 0,
  54. 'index' => 1,
  55. 'first' => true,
  56. ];
  57. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  58. $length = count($context['_seq']);
  59. $context['loop']['revindex0'] = $length - 1;
  60. $context['loop']['revindex'] = $length;
  61. $context['loop']['length'] = $length;
  62. $context['loop']['last'] = 1 === $length;
  63. }
  64. foreach ($context['_seq'] as $context["_key"] => $context["facet"]) {
  65. // line 6
  66. yield " <div class=\"filter__facet";
  67. if ((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 6) > 6)) {
  68. yield " filter__facet--more-filter";
  69. }
  70. yield "\">
  71. ";
  72. // line 7
  73. yield from $this->load("components/molecules/filter/filter.html.twig", 7, "1989584053")->unwrap()->yield(CoreExtension::merge($context, ["id" => CoreExtension::getAttribute($this->env, $this->source, // line 8
  74. $context["loop"], "index", [], "any", false, false, false, 8), "class" => "filter__panel", "options" => // line 10
  75. $context["facet"]]));
  76. // line 13
  77. yield " </div>
  78. ";
  79. ++$context['loop']['index0'];
  80. ++$context['loop']['index'];
  81. $context['loop']['first'] = false;
  82. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  83. --$context['loop']['revindex0'];
  84. --$context['loop']['revindex'];
  85. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  86. }
  87. }
  88. $_parent = $context['_parent'];
  89. unset($context['_seq'], $context['_key'], $context['facet'], $context['_parent'], $context['loop']);
  90. $context = array_intersect_key($context, $_parent) + $_parent;
  91. // line 15
  92. yield "
  93. ";
  94. // line 16
  95. 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.', 16, $this->source); })())) > 6)) {
  96. // line 17
  97. yield " <label for=\"moreFilter\" class=\"filter__display-more-less-label\"><span class=\"filter__display-more\">";
  98. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("filter_show_more"), "html", null, true);
  99. yield "</span> <span class=\"filter__display-less\">";
  100. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("filter_show_less"), "html", null, true);
  101. yield "</span></label>
  102. ";
  103. }
  104. // line 19
  105. yield "
  106. ";
  107. // line 20
  108. yield from $this->load("components/atoms/button/button.html.twig", 20)->unwrap()->yield(CoreExtension::merge($context, ["class" => "filter__set-filter-button", "type" => "submit", "content" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing_filter_active_filter_set")]));
  109. // line 25
  110. yield "
  111. <div class=\"filter__active-facets\">
  112. ";
  113. // line 27
  114. yield from $this->load("components/molecules/filter-active/filter-active.html.twig", 27)->unwrap()->yield($context);
  115. // line 28
  116. yield " </div>
  117. </div>
  118. ";
  119. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  120. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  121. yield from [];
  122. }
  123. /**
  124. * @codeCoverageIgnore
  125. */
  126. public function getTemplateName(): string
  127. {
  128. return "components/molecules/filter/filter.html.twig";
  129. }
  130. /**
  131. * @codeCoverageIgnore
  132. */
  133. public function isTraitable(): bool
  134. {
  135. return false;
  136. }
  137. /**
  138. * @codeCoverageIgnore
  139. */
  140. public function getDebugInfo(): array
  141. {
  142. return array ( 125 => 28, 123 => 27, 119 => 25, 117 => 20, 114 => 19, 106 => 17, 104 => 16, 101 => 15, 86 => 13, 84 => 10, 83 => 8, 82 => 7, 75 => 6, 57 => 5, 53 => 3, 51 => 2, 48 => 1,);
  143. }
  144. public function getSourceContext(): Source
  145. {
  146. return new Source("<div class=\"filter\">
  147. {% if facets|length > 6 %}
  148. <input class=\"filter__display-input\" type=\"checkbox\" id=\"moreFilter\" >
  149. {% endif %}
  150. {% for facet in facets %}
  151. <div class=\"filter__facet{% if loop.index > 6 %} filter__facet--more-filter{% endif %}\">
  152. {% embed 'components/molecules/filter-panel/filter-panel.html.twig' with {
  153. 'id': loop.index,
  154. 'class': 'filter__panel',
  155. 'options': facet
  156. } %}
  157. {% endembed %}
  158. </div>
  159. {% endfor %}
  160. {% if facets|length > 6 %}
  161. <label for=\"moreFilter\" class=\"filter__display-more-less-label\"><span class=\"filter__display-more\">{{ 'filter_show_more'|trans }}</span> <span class=\"filter__display-less\">{{ 'filter_show_less'|trans }}</span></label>
  162. {% endif %}
  163. {% include 'components/atoms/button/button.html.twig'with {
  164. 'class': 'filter__set-filter-button',
  165. 'type': 'submit',
  166. 'content': 'listing_filter_active_filter_set' | trans
  167. } %}
  168. <div class=\"filter__active-facets\">
  169. {% include('components/molecules/filter-active/filter-active.html.twig') %}
  170. </div>
  171. </div>
  172. ", "components/molecules/filter/filter.html.twig", "/var/www/html/templates/default/components/molecules/filter/filter.html.twig");
  173. }
  174. }
  175. /* components/molecules/filter/filter.html.twig */
  176. class __TwigTemplate_c5982599c8381a2bb9a0b236f6165b13___1989584053 extends Template
  177. {
  178. private Source $source;
  179. /**
  180. * @var array<string, Template>
  181. */
  182. private array $macros = [];
  183. public function __construct(Environment $env)
  184. {
  185. parent::__construct($env);
  186. $this->source = $this->getSourceContext();
  187. $this->blocks = [
  188. ];
  189. }
  190. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  191. {
  192. // line 7
  193. return "components/molecules/filter-panel/filter-panel.html.twig";
  194. }
  195. protected function doDisplay(array $context, array $blocks = []): iterable
  196. {
  197. $macros = $this->macros;
  198. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  199. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/molecules/filter/filter.html.twig"));
  200. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  201. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/molecules/filter/filter.html.twig"));
  202. $this->parent = $this->load("components/molecules/filter-panel/filter-panel.html.twig", 7);
  203. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  204. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  205. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  206. }
  207. /**
  208. * @codeCoverageIgnore
  209. */
  210. public function getTemplateName(): string
  211. {
  212. return "components/molecules/filter/filter.html.twig";
  213. }
  214. /**
  215. * @codeCoverageIgnore
  216. */
  217. public function isTraitable(): bool
  218. {
  219. return false;
  220. }
  221. /**
  222. * @codeCoverageIgnore
  223. */
  224. public function getDebugInfo(): array
  225. {
  226. return array ( 221 => 7, 125 => 28, 123 => 27, 119 => 25, 117 => 20, 114 => 19, 106 => 17, 104 => 16, 101 => 15, 86 => 13, 84 => 10, 83 => 8, 82 => 7, 75 => 6, 57 => 5, 53 => 3, 51 => 2, 48 => 1,);
  227. }
  228. public function getSourceContext(): Source
  229. {
  230. return new Source("<div class=\"filter\">
  231. {% if facets|length > 6 %}
  232. <input class=\"filter__display-input\" type=\"checkbox\" id=\"moreFilter\" >
  233. {% endif %}
  234. {% for facet in facets %}
  235. <div class=\"filter__facet{% if loop.index > 6 %} filter__facet--more-filter{% endif %}\">
  236. {% embed 'components/molecules/filter-panel/filter-panel.html.twig' with {
  237. 'id': loop.index,
  238. 'class': 'filter__panel',
  239. 'options': facet
  240. } %}
  241. {% endembed %}
  242. </div>
  243. {% endfor %}
  244. {% if facets|length > 6 %}
  245. <label for=\"moreFilter\" class=\"filter__display-more-less-label\"><span class=\"filter__display-more\">{{ 'filter_show_more'|trans }}</span> <span class=\"filter__display-less\">{{ 'filter_show_less'|trans }}</span></label>
  246. {% endif %}
  247. {% include 'components/atoms/button/button.html.twig'with {
  248. 'class': 'filter__set-filter-button',
  249. 'type': 'submit',
  250. 'content': 'listing_filter_active_filter_set' | trans
  251. } %}
  252. <div class=\"filter__active-facets\">
  253. {% include('components/molecules/filter-active/filter-active.html.twig') %}
  254. </div>
  255. </div>
  256. ", "components/molecules/filter/filter.html.twig", "/var/www/html/templates/default/components/molecules/filter/filter.html.twig");
  257. }
  258. }