facet['isApplied'] ? $this->urlBase . $this->url->removeFacet($this->group, $this->facet['value'], $this->facet['operator']) : $this->urlBase . $this->url->addFacet($this->group, $this->facet['value'], $this->facet['operator']); $hasSubLinks = $this->exclude && !$this->facet['isApplied']; $hasCheckbox = $this->facet['operator'] === 'OR'; $classList = ['facet', 'js-facet-item']; if ($this->facet['isApplied']) { $classList[] = 'active'; } if ($this->facet['operator'] == 'OR') { $classList[] = 'facetOR'; } if ($this->facet['operator'] == 'AND') { $classList[] = 'facetAND'; } $displayText = '-'; if (!empty($this->facet['displayText'])) { $displayText = $this->escapeHtml($this->facet['displayText']); } elseif (!empty($this->facet['value'])) { $displayText = $this->escapeHtml($this->facet['value']); } $displayText = '' . $displayText . ''; if ($hasCheckbox) { $displayText = $this->icon($this->facet['isApplied'] ? 'facet-checked' : 'facet-unchecked', 'icon-link__icon') . $displayText; } ?> facet['isApplied'] && null !== $this->facet['count']): ?> localizedNumber($this->facet['count']); ?> transEsc('result_count', ['%%count%%' => $currentCount]) ?> exclude && !$this->facet['isApplied']): ?> urlBase . $this->url->addFacet($this->group, $this->facet['value'], 'NOT'); ?> icon('facet-exclude') ?> transEsc('exclude_facet') ?> facet['isApplied']): ?> title="transEscAttr('applied_filter') ?>"> facet['isApplied']): ?> title="transEscAttr('applied_filter') ?>" data-lightbox-ignore>