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']); ?>
=$this->transEsc('result_count', ['%%count%%' => $currentCount]) ?>
=$currentCount ?>
exclude && !$this->facet['isApplied']): ?>
urlBase . $this->url->addFacet($this->group, $this->facet['value'], 'NOT'); ?>
=$this->icon('facet-exclude') ?>
=$this->transEsc('exclude_facet') ?>
facet['isApplied']): ?> title="=$this->transEscAttr('applied_filter') ?>">
=$displayText ?>
=$badgeExclude?>
facet['isApplied']): ?> title="=$this->transEscAttr('applied_filter') ?>" data-lightbox-ignore>
=$displayText ?>
=$badgeExclude?>