function avc_get_filters($filter_id, $articles) { global $FILTERS; $ret = array(); foreach ($FILTERS[$filter_id] as $filter) { $ret[] = get_filter_values($filter, $articles); } return $ret; }
<li><?php echo $label; ?> </li> <?php } ?> </ul> <?php // Prepare articles and filters $articles = get_posts_from_category($SPECIAL_CATEGORIES[$page], -1); $filters = array(); foreach ($FILTERS[$page] as $filter) { $filters[] = get_filter_values($filter, $articles); } ?> <div id="selects"> <?php // Display the select boxes foreach ($FILTERS_LABELS2[$page] as $index => $select) { ?> <label class="select"> <select class="option-set" data-filter-group="<?php echo $FILTERS[$page][$index]; ?> "> <option selected data-filter-value=""><?php echo $select;