Skip to content

Commit

Permalink
Need to keep this out of the master branch
Browse files Browse the repository at this point in the history
This reverts commit 2d24253.
  • Loading branch information
dustinrue committed Feb 3, 2012
1 parent 2d24253 commit 1c32934
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions template/s4w_search.php
Expand Up @@ -146,6 +146,33 @@
</div>
</div>

<div class="solr3">
<ul class="solr_facets">

<li class="solr_active">
<ol>
<?php if ($results['facets']['selected']) {
foreach( $results['facets']['selected'] as $selectedfacet) {
printf("<li><span></span><a href=\"%s\">%s<b>x</b></a></li>", $selectedfacet['removelink'], $selectedfacet['name']);
}
} ?>
</ol>
</li>

<?php if ($results['facets'] && $results['hits'] != 1) {
foreach($results['facets'] as $facet) {
if (sizeof($facet["items"]) > 1) { #don't display facets with only 1 value
printf("<li>\n<h3>%s</h3>\n", $facet['name']);
s4w_print_facet_items($facet["items"], "<ol>", "</ol>", "<li>", "</li>",
"<li><ol>", "</ol></li>", "<li>", "</li>");
printf("</li>\n");
}
}
} ?>

</ul>
</div>

</div>

</div>
Expand Down

0 comments on commit 1c32934

Please sign in to comment.