// TODO: This file needs love
$topFacetSet = $this->recommend->getTopFacetSet();
$topFacetSettings = $this->recommend->getTopFacetSettings();
$results = $this->recommend->getResults();
?>
if (isset($topFacetSet)): ?>
foreach($topFacetSet as $title => $cluster): ?>
$moreClass = ' NarrowGroupHidden_'.$this->escapeHtml($title).' hidden'; ?>
$allowExclude = $this->recommend->excludeAllowed($title); ?>
$limit = $topFacetSettings['rows'] * $topFacetSettings['cols']; ?>
foreach($cluster['list'] as $index => $thisFacet): ?>
if ($thisFacet['isApplied']):
if (isset($thisFacet['specialType']) && $thisFacet['specialType'] == 'keyword') {
$removeLink = $this->currentPath().$results->getUrlQuery()->replaceTerm($thisFacet['value'], '');
} else {
$removeLink = $this->currentPath().$results->getUrlQuery()->removeFacet($title, $thisFacet['value'], $thisFacet['operator']);
} ?>
=$this->escapeHtml($thisFacet['displayText'])?>
else: ?>
=$this->localizedNumber($thisFacet['count']) ?>
if ($allowExclude): ?>
endif; ?>
=$this->escapeHtml($thisFacet['displayText'])?>
endif; ?>
/* More link */ ?>
if ($index == $limit): ?>
=$this->transEsc('more') ?> ...
endif; ?>
endforeach; ?>
if (count($cluster['list']) > $limit): ?>
=$this->transEsc('less') ?> ...
endif; ?>
endforeach; ?>
endif; ?>