diff --git a/themes/finc/templates/Recommend/ExpandFacets.phtml b/themes/finc/templates/Recommend/ExpandFacets.phtml new file mode 100644 index 0000000000000000000000000000000000000000..b25b7223f8fe837b8be816aa42f39e27731c1cfc --- /dev/null +++ b/themes/finc/templates/Recommend/ExpandFacets.phtml @@ -0,0 +1,21 @@ +<!-- finc - templates - Recommend - ExpandFacets --> +<?php /* copied from bootstrap3 - h4 becomes h2 - #17607 - HR */?> + +<?php + $expandFacetSet = $this->recommend->getExpandedSet(); + // Get empty search object to use as basis for parameter generation below: + $blankResults = $this->recommend->getEmptyResults(); +?> +<?php if ($expandFacetSet): ?> + <div class="sidegroup"> + <?php foreach ($expandFacetSet as $title => $cluster): ?> + <h2><?=$this->transEsc($cluster['label']) ?></h2> + <div class="list-group"> + <?php foreach ($cluster['list'] as $thisFacet): ?> + <a class="list-group-item" href="<?=$this->url('search-results') . $blankResults->getUrlQuery()->addFacet($title, $thisFacet['value'])?>"><?=$this->escapeHtml($thisFacet['displayText'])?></a> + <?php endforeach; ?> + </div> + <?php endforeach; ?> + </div> +<?php endif; ?> +<!-- finc - templates - Recommend - ExpandFacets - END -->