$number,
'offset' => $offset,
'orderby' => 'comment_date',
'order' => 'DESC',
'status' => 'all',
'parent' => 0,
'type' => COMMENT_TYPE_JOB_APPLICATIONS,
'user_id' => wp_get_current_user()->ID,
);
if (isset($_GET['job_id'])) {
$args['post_id'] = (int) $_GET['job_id'];
}
$comments = get_comments($args);
set_transient( $cache_key, $comments, 60 * DAY_IN_SECONDS );
}
$comments_count = get_transient( $cache_key_count );
if ( false === $comments_count ) {
$args_count = array(
'status' => 'all',
'parent' => 0,
'type' => COMMENT_TYPE_JOB_APPLICATIONS,
'user_id' => wp_get_current_user()->ID,
'count' => true
);
if (isset($_GET['job_id'])) {
$args_count['post_id'] = (int) $_GET['job_id'];
}
$comments_count = get_comments($args_count);
set_transient( $cache_key_count, $comments_count, 60 * DAY_IN_SECONDS );
}
if ($comments_count) {
$pages_count = ceil($comments_count / $number);
} else {
$pages_count = 0;
}
if ($comments) :
?>
|
|
|
|
|
comment_approved) {
$receive_class = 'loker loker-paper-plane text-primary';
//$receive_text = __('The employer have receive your job application', 'lkr');
$receive_text = __('Telah terkirim', 'lkr');
//} else {
// $receive_class = 'loker loker-paper-plane text-muted';
// $receive_text = __('The employer have not receive your job application', 'lkr');
//}
$download = get_comment_meta( $comment->comment_ID, 'download', true );
$viewjobapp = get_comment_meta($comment->comment_ID, 'view_jobapp', true);
//if ($comment->comment_approved && ($download || $viewjobapp)) {
if ( $download || $viewjobapp ) {
$download_class = 'loker loker-download text-primary';
//$download_text = __('The employer have download your job application', 'lkr');
$download_text = __('Telah dibaca', 'lkr');
} else {
$download_class = 'loker loker-download text-muted';
//$download_text = __('The employer have not download your job application', 'lkr');
$download_text = __('Belum dibaca', 'lkr');
}
$current_phase = get_comment_meta($comment->comment_ID, 'phase', true);
if (!$current_phase) {
$current_phase = 'new';
}
$current_phase_data = lkr_job_applications_phase($current_phase);
$responses = get_comments(array(
'orderby' => 'comment_date',
'order' => 'ASC',
'status' => 'approve',
'parent' => $comment->comment_ID,
'type' => COMMENT_TYPE_JOB_APPLICATIONS
));
//if ($responses && $comment->comment_approved) {
if ( $responses ) {
$response_class = 'loker loker-chat text-primary';
$response_text = sprintf(__('Response: %d', 'lkr'), count($responses));
} else {
$response_class = 'loker loker-chat text-muted';
$response_text = sprintf(__('Response: %d', 'lkr'), 0);
}
?>
|
comment_post_ID); ?>
|
comment_post_ID)->post_author; ?>
|
WIB
|
comment_post_ID ) == 'closed' && $current_phase == 'new' ) { ?>
Closed |
" . esc_html($current_phase_data['label']) . "";
} else {
echo "Proses";
}
?> |
comment_approved) {
if ( $responses ) {
?>
comment_approved) {
if ( $responses ) {
?>
|
Status :
- Proses / Screening : Proses seleksi administrasi, dokumen ( CV / Resume ).
- Phone Interview : Interview via telepon.
- Onsite Interview : Undang untuk menghadiri Interview (Tatap Muka).
- Onhold : Setelah melalui tahapan interview Karena beberapa hal, masih dalam pertimbangan.
- Hired : Lamaran kerja lolos seleksi dan diterima kerja.
- Reject : Lamaran kerja ditolak.
Total Execution Time: '.$execution_time.' Mins';
// if you get weird results, use number_format((float) $execution_time, 10)
?>