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

Bootstrap advanced/checkbox-filters theming.

parent 54085f46
No related merge requests found
<? if (isset($this->checkboxFacets) && count($this->checkboxFacets) > 0): ?>
<fieldset>
<? foreach ($this->checkboxFacets as $current): ?>
<div class="checkboxFilter">
<label class="checkbox">
<input type="checkbox" name="filter[]" value="<?=$this->escapeHtml($current['filter'])?>" id="<?=$this->escapeHtml(str_replace(' ', '', $current['desc']))?>"<? if ($current['selected']): ?> checked="checked"<? endif; ?>/>
<?=$this->transEsc($current['desc'])?>
</label>
</div>
<? endforeach; ?>
</fieldset>
<?endif;?>
\ No newline at end of file
<? if (!empty($this->facetList)): ?>
<? if (!empty($this->facetList) || !empty($this->checkboxFacets)): ?>
<p class="lead"><?=$this->transEsc('Limit To')?></p>
<? endif; ?>
<? if (!empty($this->checkboxFacets)): ?>
<?=$this->render('search/advanced/checkbox-filters.phtml')?>
<? endif; ?>
<? if (!empty($this->facetList)): ?>
<div class="row-fluid">
<? foreach ($this->facetList as $field => $list): ?>
<div class="span<?=floor(12/count($this->facetList)) ?>">
......
<? if (!empty($this->facetList) || !empty($this->checkboxFacets)): ?>
<p class="lead"><?=$this->transEsc('Limit To')?></p>
<? endif; ?>
<? if (!empty($this->checkboxFacets)): ?>
<?=$this->render('search/advanced/checkbox-filters.phtml')?>
<? endif; ?>
<? if (!empty($this->facetList)): ?>
<h3><?=$this->transEsc('Limit To')?></h3>
<div class="row-fluid">
<? foreach ($this->facetList as $field => $list): ?>
<div class="span<?=floor(12/count($this->facetList)) ?>">
<label class="displayBlock" for="limit_<?=$this->escapeHtml(str_replace(' ', '', $field))?>"><?=$this->transEsc($list['label'])?>:</label>
<select class="span12" id="limit_<?=$this->escapeHtml(str_replace(' ', '', $field))?>" name="filter[]" multiple="multiple" size="10">
<?
// Sort the current facet list alphabetically; we'll use this data
// along with the foreach below to display facet options in the
// correct order.
$sorted = array();
foreach ($list['list'] as $i => $value) {
$sorted[$i] = $value['displayText'];
}
natcasesort($sorted);
// Sort the current facet list alphabetically; we'll use this data
// along with the foreach below to display facet options in the
// correct order.
$sorted = array();
foreach ($list['list'] as $i => $value) {
$sorted[$i] = $value['displayText'];
}
natcasesort($sorted);
?>
<? foreach ($sorted as $i => $display): ?>
<? $value = $list['list'][$i]; ?>
......
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