display_name) ?>
body) && (isset($proj_comment_meta->comment_type) && $proj_comment_meta->comment_type=='change_proj_status')){
$comment_log_body = unserialize($comment->body);
$prev_status = $comment_log_body['prev_status'];
$new_status = $comment_log_body['new_status'];
if(isset($prev_status)){
$prev_status = esc_sql($prev_status);
$project_prev_status = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}wppm_project_statuses where id = '$prev_status'");
}
if(isset($new_status)){
$new_status = esc_sql($new_status);
$project_new_status = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}wppm_project_statuses where id= '$new_status'");
}
esc_html_e("changed status from $project_prev_status->name to $project_new_status->name","taskbuilder");
}
if(!empty($comment->body) && (isset($proj_comment_meta->comment_type) && $proj_comment_meta->comment_type=='change_proj_creator')){
$comment_log_body = unserialize($comment->body);
$prev_user = $comment_log_body['prev_user'];
$new_user = $comment_log_body['new_user'];
$prev_user_data = get_userdata($prev_user);
$new_user_data = get_userdata($new_user);
esc_html_e("changed creator from $prev_user_data->display_name to $new_user_data->display_name","taskbuilder");
}if(!empty($comment->body) && (isset($proj_comment_meta->comment_type) && $proj_comment_meta->comment_type=='change_assign_user')){
esc_html_e("changed the Assignee","taskbuilder");
}if(!empty($comment->body) && (isset($proj_comment_meta->comment_type) && $proj_comment_meta->comment_type=='change_proj_cat')){
$comment_log_body = unserialize($comment->body);
$prev_cat = $comment_log_body['prev_cat'];
$new_cat = $comment_log_body['new_cat'];
if(!empty($prev_cat)){
$prev_cat = esc_sql($prev_cat);
$project_prev_cat = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}wppm_project_categories where id= '$prev_cat'");
}
if(!empty($new_cat)){
$new_cat = esc_sql($new_cat);
$project_new_cat = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}wppm_project_categories where id='$new_cat'");
}
$proj_prev_cat_name = !empty($project_prev_cat) ? $project_prev_cat->name: "None";
$proj_new_cat_name = !empty($project_new_cat) ? $project_new_cat->name: "None";
esc_html_e("changed category from $proj_prev_cat_name to $proj_new_cat_name","taskbuilder");
}
?>
has_cap('manage_options')) || ($wppmfunction->has_proj_comment_permission('edit_proj_comment',$id,$comment->id))) && ((empty($proj_comment_meta->comment_type))|| (isset($proj_comment_meta->comment_type) && $proj_comment_meta->comment_type=='comment')))){ ?>
array(), 'abbr' => array('title' => array(),), 'p' => array(), 'strong' => array(), 'a' => array('href' => array(), 'title' => array(), 'target'=> array(), 'rel'=>array()),'em' =>array(),'span' =>array(), 'blockquote'=>array('cite' => array(),),'div' => array('class' => array(),'title' => array(),'style' => array(),),'ul'=>array(),'li'=>array(),'ol'=>array(),'img' => array( 'alt'=> array(),'class' => array(),'height' => array(),'src'=> array(),'width'=> array(),));
if(!empty($comment_body) && ((empty($proj_comment_meta->comment_type)) || (isset($proj_comment_meta->comment_type) && $proj_comment_meta->comment_type=='comment') || $proj_comment_meta->comment_type=='delete_proj_comment')){
echo wp_kses(wpautop($comment_body),$allowedtags) ;
} elseif(!empty($comment_body) && (isset($proj_comment_meta->comment_type) && $proj_comment_meta->comment_type=='change_proj_status')){ ?>
;color:color) ? esc_attr($project_prev_status->color): "" ?>;">name) ? esc_attr($project_prev_status->name) : "" ?>
;color:color) ? esc_attr($project_new_status->color): "" ?>;">name) ? esc_attr($project_new_status->name) : "" ?>comment_type) && $proj_comment_meta->comment_type=='change_proj_creator')) { ?>
display_name) ? esc_attr($prev_user_data->display_name) : "" ?>
display_name) ? esc_attr($new_user_data->display_name) : "" ?>comment_type) && $proj_comment_meta->comment_type=='change_assign_user')) {
$comment_log_body = unserialize($comment->body);
$prev_assign_user = $comment_log_body['prev_assign_user'];
$new_assign_user = $comment_log_body['new_assign_user'];
$prev_assign_user_array = array();
$new_assign_user_array = array();
if(!empty($prev_assign_user)){
$prev_assign_user_array = explode(",",$prev_assign_user);
}
if(!empty($new_assign_user)){
$new_assign_user_array = explode(",",$new_assign_user);
}
$assign_user_name = array();
$assign_user_name_str = "";
if(!empty($prev_assign_user_array)){
foreach($prev_assign_user_array as $val){
$assign_user = get_userdata($val);
$assign_user_name[] = $assign_user->display_name;
}
$assign_user_name_str = implode(",",$assign_user_name);
}
$new_assign_user_name = array();
$new_assign_user_name_str = "";
if(!empty($new_assign_user_array)){
foreach($new_assign_user_array as $val){
$new_assign_user = get_userdata($val);
$new_assign_user_name[] = $new_assign_user->display_name;
}
$new_assign_user_name_str = implode(",",$new_assign_user_name);
}
?>
comment_type) && $proj_comment_meta->comment_type=='change_proj_cat'){ ?>
name) ? esc_attr($project_prev_cat->name) : " None" ?>
name) ? esc_attr($project_new_cat->name) : "None" ?>
comment_type) && $proj_comment_meta->comment_type=='delete_proj_comment')):?>
:
get_row( "SELECT * FROM {$wpdb->prefix}wppm_attachments where id='$attachment'");
$findStr = ".txt";
if(!empty( $attach)){
$attachment_name = preg_replace('/' . $findStr . '/', "", $attach->name, 1);
$attachment_name = sanitize_file_name($attachment_name);
}
if((!empty($attachment_name))){
?>
file_name) ? esc_html($attach->file_name):"";?>
created_by == $current_user->ID) || ($current_user->has_cap('manage_options')) || ($wppmfunction->has_proj_comment_permission('edit_proj_comment',$id,$comment->id)))){ ?>
|
id);?>