Skip to content
Permalink
Browse files

добавляем обертку для каждой категории фильтров

eFilter_cat eFilter_cat0
eFilter_cat eFilter_cat1 и т.п.
  • Loading branch information...
webber12 committed Mar 11, 2015
1 parent f1fbdaa commit 2e39875f2284aac65eb6b2fbd3f8ee37065d4c4f
Showing with 4 additions and 0 deletions.
  1. +4 −0 assets/snippets/eFilter/eFilter.class.php
@@ -148,7 +148,9 @@ public function renderFilterBlock ($filter_cats, $filter_values_full, $filter_va
}
$output = '';
$fc = 0;
foreach ($filter_cats as $cat_name => $tmp) {
$output .= '<div class="eFilter_cat eFilter_cat' . $fc . '">';
if (count($filter_cats) > 1) {$output .= $this->parseTpl(array('[+cat_name+]'), array($cat_name), $filterCatName);}
$tv_elements = $this->getDefaultTVValues($tmp);
foreach ($tmp as $tv_id => $tmp2) {
@@ -434,6 +436,8 @@ public function renderFilterBlock ($filter_cats, $filter_values_full, $filter_va
}
}
$fc++;
$output .= '</div>';
}
$tpl = $tplFilterForm;
$output = $output != '' ? $this->parseTpl(array('[+url+]', '[+wrapper+]'), array($this->modx->makeUrl($this->modx->documentIdentifier), $output), $tpl) : '';

0 comments on commit 2e39875

Please sign in to comment.
You can’t perform that action at this time.