results = $results = $this->recommend->getResults(); $this->options = $options = $results->getOptions(); $hierarchicalFacetSortOptions = $this->recommend->getHierarchicalFacetSortOptions(); $hierarchicalFacets = $this->recommend->getHierarchicalFacets(); $rangeFacets = $this->recommend->getAllRangeFacets(); $facet = $this->facet; ?> context($this)->renderInContext( 'Recommend/SideFacets/range-slider.phtml', ['title' => $facet, 'cluster' => $cluster, 'facet' => $rangeFacets[$facet]] ); ?> config()->nonJavascriptSupportEnabled(); ?> context($this)->renderInContext( 'Recommend/SideFacets/hierarchical-facet.phtml', [ 'allowExclude' => $this->recommend->excludeAllowed($facet), // Allow hierarchical facets to be untruncated with showMore setting < 1 'facets_before_more' => $this->recommend->getShowMoreSetting($facet, 0), 'title' => $facet, 'sortOptions' => $hierarchicalFacetSortOptions[$facet] ?? $hierarchicalFacetSortOptions['*'] ?? null, 'collapsedFacets' => $this->collapsedFacets, 'results' => $this->results, ] ); ?>