public function GetPFTermInfoX($id, $taxonomy,$pflang = '',$listing_pstyle_meta = array(),$pf_from = ''){
$termnames = '';
$postterms = get_the_terms( $id, $taxonomy );
$term_info_name = '';
$countpt = count($postterms);
if(!is_wp_error($postterms)){
if($postterms != false){
for ($i = 0; $i < $countpt; $i++) {
if (isset($postterms[$i]->term_id)) {
$term_idx = $postterms[$i]->term_id;
$term_link = get_term_link( $term_idx, $taxonomy );
if (is_wp_error($term_link) === true) {$term_link = '#';}
$term_info_name .= $postterms[$i]->name;
$listing_type_point_settings = '';
$st22srlinklt = $this->PFSAIssetControl('st22srlinklt','','1');
$listing_type_point_settings = '';
$st8_npsys = $this->PFASSIssetControl('st8_npsys','',0);
$icon_type = $this->PFPFIssetControl('pscp_'.$term_idx.'_type','','0');
$icon_bg_colorinner = $this->PFPFIssetControl('pscp_'.$term_idx.'_bgcolorinner','','#000000');
$icon_bg_color = $this->PFPFIssetControl('pscp_'.$term_idx.'_bgcolor','','#b00000');
$icon_type_text = '<span class="pficonltype" style="background-color:'.$icon_bg_color.'">';
$default_type_text = '<span class="noiconpffound" style="color:'.$icon_bg_colorinner.';">'.mb_substr($postterms[$i]->name, 0, 1, "UTF-8").'</span> ';
$icon_type_text .= $default_type_text;
$icon_type_text .= '</span>';
$termnames .= '<a href="'.$term_link.'" class="pflticon" title="'.$term_info_name.'">'.$icon_type_text;
$termnames .= '<span class="pflticonname">'.$term_info_name.'</span></a>';
}
}
}
}
return $termnames;
}