Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversion/wp-content/plugins/wp-freeio/templates/misc/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$freelancer_ids = apply_filters( 'wp-freeio-translations-post-ids', $freelancer_id );
if ( !is_array($freelancer_ids) ) {
$freelancer_ids = array($freelancer_ids);
}
$applicants = WP_Freeio_Query::get_posts(array(
'post_type' => 'job_applicant',
'post_status' => 'publish',
'fields' => 'ids',
'meta_query' => array(
array(
'key' => WP_FREEIO_APPLICANT_PREFIX . 'freelancer_id',
'value' => $freelancer_ids,
'compare' => 'IN',
)
)
));
$count_applicants = $applicants->post_count;
$shortlist = get_post_meta($freelancer_id, WP_FREEIO_FREELANCER_PREFIX.'shortlist', true);
$shortlist = is_array($shortlist) ? count($shortlist) : 0;
$total_reviews = WP_Freeio_Review::get_total_reviews($freelancer_id);
$views = get_post_meta($freelancer_id, WP_FREEIO_FREELANCER_PREFIX.'views_count', true);
?>
<div class="employer-dashboard-wrapper">
<h3 class="title"><?php esc_html_e('Applications statistics', 'wp-freeio'); ?></h3>
<div class="statistics">
<div class="posted-jobs">
<h4><?php esc_html_e('Applied Jobs', 'wp-freeio'); ?></h4>
<div class="jobs-count"><?php echo WP_Freeio_Mixes::format_number($count_applicants); ?></div>
</div>
<div class="shortlist">
<h4><?php esc_html_e('Shortlisted', 'wp-freeio'); ?></h4>
<div class="jobs-count"><?php echo WP_Freeio_Mixes::format_number($shortlist); ?></div>
</div>
<div class="review-count-wrapper">
<h4><?php esc_html_e('Review', 'wp-freeio'); ?></h4>
<div class="review-count"><?php echo WP_Freeio_Mixes::format_number($total_reviews); ?></div>
</div>
<div class="views-count-wrapper">
<h4><?php esc_html_e('Views', 'wp-freeio'); ?></h4>
<div class="views-count"><?php echo WP_Freeio_Mixes::format_number($views); ?></div>
</div>
</div>
<h3 class="title"><?php esc_html_e('Jobs Applied Recently', 'wp-freeio'); ?></h3>
<div class="applicants">
<?php
$job_ids = array();
if ( !empty($applicants) && !empty($applicants->posts) ) {
foreach ($applicants->posts as $applicant_id) {
$job_ids[] = intval(get_post_meta($applicant_id, WP_FREEIO_APPLICANT_PREFIX.'job_id', true));
}
}
if ( !empty($job_ids) ) {
$query_args = array(
'post_type' => 'job_listing',
'posts_per_page' => 5,
'post_status' => 'publish',
'post__in' => $job_ids,
);
$jobs = new WP_Query($query_args);
if ( $jobs->have_posts() ) {
while ( $jobs->have_posts() ) : $jobs->the_post();
echo WP_Freeio_Template_Loader::get_template_part( 'jobs-styles/inner-list' );
endwhile;
wp_reset_postdata();
} else {
?>
<div class="not-found"><?php esc_html_e('No Applicants found.', 'wp-freeio'); ?></div>
<?php
}
} else {
?>
<div class="not-found"><?php esc_html_e('No Applicants found.', 'wp-freeio'); ?></div>
<?php
}
?>
</div>
</div>