C:\xampp\htdocs\nhungtrangvang.vn\wp-content\plugins\pointfindercoreelements\includes\traits\functions-common.php
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;
}
if (defaultv != '') {
if (($.inArray(parseInt($('input.pflistingtypeselector:checked').val()),pfsubcatselect) == -1) && ($.inArray(parseInt($('input.pflistingtypeselector:checked').val()),pfmultipleselect) == -1)) {
";
if ($item_level_value == 2 && $post->ID != '') {
$script_output .= "$('#pfupload_listingtypes').val(defaultv);";
}else{
$script_output .= "$('#pfupload_listingtypes').val(defaultv).trigger('change');";
}
$script_output .= "
}else{
$('#pfupload_listingtypes').val(defaultv);console.log('aaaaaaaaaaaaaaaaa1');
window.defaultvs = $('#pfupload_listingtypes').val().split(',');
}
}else{
if (($.inArray(parseInt($('input.pflistingtypeselector:checked').val()),pfsubcatselect) == -1) && ($.inArray(parseInt($('input.pflistingtypeselector:checked').val()),pfmultipleselect) == -1)) {";
if ($item_level_value == 1 && $post->ID != '') {
$script_output .= "$('#pfupload_listingtypes').val(itemid).trigger('change');";
}elseif (empty($post->ID)) {
$script_output .= "$('#pfupload_listingtypes').val(itemid);";
}elseif (!empty($post->ID) && $item_level_value == 2) {
$script_output .= "$('#pfupload_listingtypes').val(itemid);";
}
$script_output .= "
}else{
defaultvs.push(itemid);
var lidefault = defaultvs.join(', ');
$('#pfupload_listingtypes').val(lidefault);
}
}
}
setTimeout(function(){
$('#pointfinder_itemdetailcf_process_lt .inside').pfLoadingOverlay({action:'hide'});
},1000);";