parentNodeId ??= ''; $nodeId = 0; ?> facetList as $item): ?> render('Recommend/SideFacets/single-facet.phtml', [ 'exclude' => $this->allowExclude, 'facet' => $item, 'group' => $this->group, 'url' => $this->url, 'urlBase' => $this->urlBase, ]); // Use facet text as button label so that a screen reader can read it as // "Expanded " or "Collapsed ": if (!empty($item['displayText'])) { $buttonLabel = $this->escapeHtml($item['displayText']); } elseif (!empty($item['value'])) { $buttonLabel = $this->escapeHtml($item['value']); } else { $buttonLabel = '-'; } ?>
  • group . '_' . $this->parentNodeId . '_' . $nodeId; $buttonAttrs = $this->htmlAttributes( [ 'class' => 'facet-tree__toggle-expanded', 'aria-expanded' => $item['hasAppliedChildren'] ? 'true' : 'false', 'aria-controls' => $childUlId, 'aria-label' => $buttonLabel, 'data-toggle-aria-expanded' => '', ] ); ?> > icon('facet-expand', 'facet-tree__expand')?> icon('facet-collapse', 'facet-tree__collapse')?>
      render('Recommend/SideFacets/hierarchical-facet-level.phtml', [ 'allowExclude' => $this->allowExclude, 'facetList' => $item['children'], 'group' => $this->group, 'url' => $this->url, 'urlBase' => $this->urlBase, 'parentNodeId' => $this->parentNodeId . '_' . $nodeId, ]) ?>