display_name) ?>
body) && (isset($task_comment_meta->comment_type) && $task_comment_meta->comment_type=='change_task_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);
$task_prev_status = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}wppm_task_statuses where id='$prev_status'");
}
if(isset($new_status)){
$new_status = esc_sql($new_status);
$task_new_status = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}wppm_task_statuses where id='$new_status'");
}
esc_html_e("changed status from $task_prev_status->name to $task_new_status->name","taskbuilder");
} if(!empty($comment->body) && (isset($task_comment_meta->comment_type) && $task_comment_meta->comment_type=='change_task_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($task_comment_meta->comment_type) && $task_comment_meta->comment_type=='change_assign_user')){
esc_html_e("changed the Assignee","taskbuilder");
}
if(!empty($comment->body) && (isset($task_comment_meta->comment_type) && $task_comment_meta->comment_type=='change_task_priority')){
$comment_log_body = unserialize($comment->body);
$prev_prio = $comment_log_body['prev_prio'];
$new_prio = $comment_log_body['new_prio'];
if(isset($prev_prio)){
$prev_prio = esc_sql($prev_prio);
$task_prev_prio = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}wppm_task_priorities where id= '$prev_prio'");
}
if(isset($new_prio)){
$new_prio = esc_sql($new_prio);
$task_new_prio = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}wppm_task_priorities where id= '$new_prio'");
}
$task_prev_prio_name = !empty($task_prev_prio) ? $task_prev_prio->name: "None";
$task_new_prio_name = !empty($task_new_prio) ? $task_new_prio->name: "None";
esc_html_e("changed priority from $task_prev_prio_name to $task_new_prio_name","taskbuilder");
}
?>
has_cap('manage_options')) || ($wppmfunction->has_comment_permission('edit_task_comment',$id,$comment->id))) && ((empty($task_comment_meta->comment_type)) || (isset($task_comment_meta->comment_type) && $task_comment_meta->comment_type=='comment')))) && ($task->is_archived!=1)){ ?>
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($task_comment_meta->comment_type)) || (isset($task_comment_meta->comment_type) && $task_comment_meta->comment_type=='comment') || (isset($task_comment_meta->comment_type) && $task_comment_meta->comment_type=='delete_task_comment'))){
echo wp_kses(wpautop($comment_body),$allowedtags) ;
} elseif(!empty($comment->body) && (isset($task_comment_meta->comment_type) && $task_comment_meta->comment_type=='change_task_status')){ ?>
;color:color) ? esc_attr($task_prev_status->color): "" ?>;">name) ? esc_attr($task_prev_status->name) : "" ?>
;color:color) ? esc_attr($task_new_status->color): "" ?>;">name) ? esc_attr($task_new_status->name) : "" ?>body) && (isset($task_comment_meta->comment_type) && $task_comment_meta->comment_type=='change_task_creator')){ ?>
display_name) ? esc_attr($prev_user_data->display_name) : "" ?>
display_name) ? esc_attr($new_user_data->display_name) : "" ?>body) && (isset($task_comment_meta->comment_type) && $task_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);
}
?>
body) && (isset($task_comment_meta->comment_type) && $task_comment_meta->comment_type=='change_task_priority')){ ?>
;color:color) ? esc_attr($task_prev_prio->color): "" ?>;">name) ? esc_attr($task_prev_prio->name) : "None" ?>
;color:color) ? esc_attr($task_new_prio->color): "" ?>;">name) ? esc_attr($task_new_prio->name) : "None" ?>
comment_type) && !($task_comment_meta->comment_type=='delete_task_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_comment_permission('edit_task_comment',$id,$comment->id))) && ($task->is_archived!=1)){ ?>
|
id);?>