// writes filters alone to html
static function writeFilter($filter,$count,$filter_selected,$filters_shown,$url=''){
$mode=(isset(self::$parameters[self::$curr_param_index]['mode']))? self::$parameters[self::$curr_param_index]['mode']:null;
if($mode==3) return self::filter_to_html_color($filter,$count,$filter_selected,$filters_shown,$url);
if(chpconf::option('type')==0) return self::filter_to_html_list($filter,$count,$filter_selected,$filters_shown,$url);
if(chpconf::option('type')==1) return self::filter_to_html_table($filter,$count,$filter_selected,$filters_shown,$url);
if(chpconf::option('type')==2) return self::filter_to_html_list2($filter,$count,$filter_selected,$filters_shown,$url);
}
static function filter_to_html_list($filter,$count,$filter_selected,$filters_shown,$url){
$s='';
if(chpconf::option('useseemore') && $filters_shown==chpconf::option('b4seemore')){
//$s.='</ol>';
//if(chpconf::option('smanchor')==0){$s.=self::see_more();}else{self::$add_seemore=true;}
//$s.='<ol class="chp-ll hid">';
$s=self::appendSeeMore();
}
if (chpconf::option('translate')) $filter=JText::_($filter);
$unit=self::$parameters[self::$curr_param_index]['parameter_unit'];
if(chpconf::option('mode')==0){
$s.='<li><a href="'.$url.'" class="chp-la" title="Select '.$filter.$unit.'"><span class="chp-lf">'.$filter.$unit.'</span>';
if(chpconf::option('showfiltercount') == NUM_PROD_SHOW){
$s.=' <span class="narrowValue">('.$count.')</span>';
}
$s.='</a></li>';
}else{
if($count){
if($filter_selected){
$s.='<li><a href="'.$url.'" class="chp-la" title="Remove '.$filter.$unit.'"><span class="chp-ltick ticksel"> </span> <span class="refinementSelected">'
.$filter.$unit.'</span></a></li>';
}else{
$s.='<li><a href="'.$url.'" class="chp-la" title="Select '.$filter.$unit.'"><span class="chp-ltick"> </span> <span class="chp-lf">'
.$filter.$unit.'</span>';
if(chpconf::option('showfiltercount') == NUM_PROD_SHOW){
$s.=' <span class="narrowValue">('.$count.')</span>';
}
$s.='</a></li>';
}
}else if($filter_selected){
$s.='<li><span class="chp-ltick tickunavail"> </span> <span class="chp-lunav">'
.$filter.$unit.'</span></li>';
}
}
return $s;
}