<!--<?php 
echo get_job_application_avatar($application->ID);
?>
-->

<?php 
if ($attachments = get_job_application_attachments($application->ID)) {
    ?>
    <?php 
    foreach ($attachments as $attachment) {
        ?>
        <img src="<?php 
        echo esc_url($attachment);
        ?>
" title="<?php 
        echo esc_attr(get_job_application_attachment_name($attachment));
        ?>
" alt="image attachment" class="job-application-image" />
    <?php 
    }
}
?>

<h3><?php 
echo $application->post_title;
?>
</h3>
<span class="job-application-rating"><span style="width: <?php 
echo get_job_application_rating($application->ID) / 5 * 100;
?>
%;"></span></span>
 /**
  * custom_columns function.
  *
  * @access public
  * @param mixed $column
  * @return void
  */
 public function custom_columns($column)
 {
     global $post;
     switch ($column) {
         case "application_status":
             echo '<span class="status">' . $post->post_status . '</a>';
             break;
         case "candidate":
             echo '<a href="' . admin_url('post.php?post=' . $post->ID . '&action=edit') . '" class="tips candidate_name" data-tip="' . sprintf(__('Application ID: %d', 'wp-job-manager-applications'), $post->ID) . '">' . $post->post_title . '</a>';
             if ($email = get_post_meta($post->ID, '_candidate_email', true)) {
                 echo '<br/><a href="mailto:' . esc_attr($email) . '">' . esc_attr($email) . '</a>';
                 echo get_avatar($email, 42);
             }
             echo '<div class="hidden" id="inline_' . $post->ID . '"><div class="post_title">' . $post->post_title . '</div></div>';
             break;
         case 'job':
             $job = get_post($post->post_parent);
             if ($job && $job->post_type === 'job_listing') {
                 echo '<a href="' . get_permalink($job->ID) . '">' . $job->post_title . '</a>';
             } elseif ($job = get_post_meta($post->ID, '_job_applied_for', true)) {
                 echo esc_html($job);
             } else {
                 echo '<span class="na">&ndash;</span>';
             }
             break;
         case 'attachment':
             if ($attachments = get_job_application_attachments($post->ID)) {
                 foreach ($attachments as $attachment) {
                     echo '<a href="' . esc_url($attachment) . '">' . get_job_application_attachment_name($attachment, 20) . '</a></br>';
                 }
             } else {
                 echo '<span class="na">&ndash;</span>';
             }
             break;
         case 'online_resume':
             if (($resume_id = get_job_application_resume_id($post->ID)) && function_exists('get_resume_share_link') && ($share_link = get_resume_share_link($resume_id))) {
                 echo '<a href="' . esc_attr($share_link) . '" target="_blank" class="job-application-resume">' . get_the_title($resume_id) . '</a>';
             } else {
                 echo '<span class="na">&ndash;</span>';
             }
             break;
         case 'application_rating':
             echo '<span class="job-application-rating"><span style="width: ' . get_job_application_rating($post->ID) / 5 * 100 . '%;"></span></span>';
             break;
         case 'application_notes':
             printf(_n('%d note', '%d notes', $post->comment_count, 'wp-job-manager-applications'), $post->comment_count);
             break;
         case "job_application_posted":
             echo '<strong>' . date_i18n(__('M j, Y', 'wp-job-manager-applications'), strtotime($post->post_date)) . '</strong><span>';
             echo (empty($post->post_author) ? __('by a guest', 'wp-job-manager-applications') : sprintf(__('by %s', 'wp-job-manager-applications'), '<a href="' . get_edit_user_link($post->post_author) . '">' . get_the_author() . '</a>')) . '</span>';
             break;
         case "job_application_actions":
             echo '<div class="actions">';
             $admin_actions = array();
             if ($post->post_status !== 'trash') {
                 $admin_actions['view'] = array('action' => 'view', 'name' => __('View', 'wp-job-manager-applications'), 'url' => get_edit_post_link($post->ID));
                 $admin_actions['delete'] = array('action' => 'delete', 'name' => __('Delete', 'wp-job-manager-applications'), 'url' => get_delete_post_link($post->ID));
             }
             $admin_actions = apply_filters('job_manager_job_applications_admin_actions', $admin_actions, $post);
             foreach ($admin_actions as $action) {
                 printf('<a class="icon-%s button tips" href="%s" data-tip="%s">%s</a>', esc_attr($action['action']), esc_url($action['url']), esc_attr($action['name']), esc_attr($action['name']));
             }
             echo '</div>';
             break;
     }
 }