Skip to content
Snippets Groups Projects
Commit 0b614f64 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Top facet toggling in blueprint.

parent 63577214
No related merge requests found
......@@ -451,7 +451,9 @@ ul.recordSet .addToFavLink {
background-repeat: repeat-x;
background-position: bottom;
}
.authorBox .span-5 {white-space:nowrap;}
.authorbox .applied {color:#000;}
.authorbox .applied img {vertical-align:sub;}
.authorbox .span-5 {white-space:nowrap;}
.authorbio .providerLink {
margin-top: 1em;
margin-bottom: .4em;
......
......@@ -18,8 +18,15 @@
<? endif; ?>
<? if ($iter % $topFacetSettings['cols'] == 1): ?><br class="clear"/><? endif; ?>
<span class="span-<?=floor(16/$topFacetSettings['cols'])?>">
<? if ($thisFacet['isApplied']): ?>
<?=$this->escapeHtml($thisFacet['displayText'])?> <img src="<?=$this->imageLink('silk/tick.png')?>" alt="<?=$this->transEsc('Selected') ?>"/>
<? 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'], true, $thisFacet['operator']);
} ?>
<a href="<?=$removeLink ?>" class="applied">
<?=$this->escapeHtml($thisFacet['displayText'])?> <img src="<?=$this->imageLink('silk/tick.png')?>" alt="<?=$this->transEsc('Selected') ?>"/>
</a>
<? else: ?>
<a href="<?=$this->currentPath().$this->recommend->getResults()->getUrlQuery()->addFacet($title, $thisFacet['value'], $thisFacet['operator'])?>"><?=$this->escapeHtml($thisFacet['displayText'])?></a> (<?=$this->localizedNumber($thisFacet['count']) ?>)
<? if ($allowExclude): ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment