<div class="position col-xs-12 col-sm-10 col-md-6 col-lg-5"> <h3><?php the_title(); ?> </h3> <div class="candidate-title"> <?php the_candidate_title('<strong>', '</strong> '); ?> </div> </div> <div class="location col-xs-12 col-md-5 col-lg-4"> <?php the_candidate_location(false); ?> </div> <ul class="meta col-lg-2 <?php if ($category) { ?> has-category<?php } ?> "> <?php if ($category) { ?> <li class="resume-category"> <?php
/** * custom_columns function. * @param string $column */ public function custom_columns($column) { global $post; switch ($column) { case "candidate": echo '<a href="' . admin_url('post.php?post=' . $post->ID . '&action=edit') . '" class="tips candidate_name" data-tip="' . sprintf(__('Resume ID: %d', 'wp-job-manager-resumes'), $post->ID) . '">' . $post->post_title . '</a>'; echo '<div class="candidate_title">'; the_candidate_title(); echo '</div>'; the_candidate_photo(); break; case 'candidate_location': the_candidate_location(true, $post); break; case "resume_skills": if (!($terms = get_the_term_list($post->ID, 'resume_skill', '', ', ', ''))) { echo '<span class="na">–</span>'; } else { echo $terms; } break; case "resume_category": if (!($terms = get_the_term_list($post->ID, $column, '', ', ', ''))) { echo '<span class="na">–</span>'; } else { echo $terms; } break; case "resume_posted": echo '<strong>' . date_i18n(__('M j, Y', 'wp-job-manager-resumes'), strtotime($post->post_date)) . '</strong><span>'; echo (empty($post->post_author) ? __('by a guest', 'wp-job-manager-resumes') : sprintf(__('by %s', 'wp-job-manager-resumes'), '<a href="' . get_edit_user_link($post->post_author) . '">' . get_the_author() . '</a>')) . '</span>'; break; case "resume_expires": if ($post->_resume_expires) { echo '<strong>' . date_i18n(__('M j, Y', 'wp-job-manager-resumes'), strtotime($post->_resume_expires)) . '</strong>'; } else { echo '–'; } break; case "featured_resume": if (is_resume_featured($post)) { echo '✔'; } else { echo '–'; } break; case "resume_status": echo '<span data-tip="' . esc_attr(get_the_resume_status($post)) . '" class="tips status-' . esc_attr($post->post_status) . '">' . get_the_resume_status($post) . '</span>'; break; case "resume_actions": echo '<div class="actions">'; $admin_actions = array(); if ($post->post_status == 'pending') { $admin_actions['approve'] = array('action' => 'approve', 'name' => __('Approve', 'wp-job-manager-resumes'), 'url' => wp_nonce_url(add_query_arg('approve_resume', $post->ID), 'approve_resume')); } if ($post->post_status !== 'trash') { $admin_actions['view'] = array('action' => 'view', 'name' => __('View', 'wp-job-manager-resumes'), 'url' => get_permalink($post->ID)); if ($email = get_post_meta($post->ID, '_candidate_email', true)) { $admin_actions['email'] = array('action' => 'email', 'name' => __('Email Candidate', 'wp-job-manager-resumes'), 'url' => 'mailto:' . esc_attr($email)); } $admin_actions['edit'] = array('action' => 'edit', 'name' => __('Edit', 'wp-job-manager-resumes'), 'url' => get_edit_post_link($post->ID)); $admin_actions['delete'] = array('action' => 'delete', 'name' => __('Delete', 'wp-job-manager-resumes'), 'url' => get_delete_post_link($post->ID)); } $admin_actions = apply_filters('resume_manager_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; } }
} echo '<li><a href="' . $action_url . '" class="candidate-dashboard-action-' . $action . '">' . $value['label'] . '</a></li>'; } ?> </ul> <?php } elseif ('candidate-title' === $key) { ?> <?php the_candidate_title('', '', true, $resume); ?> <?php } elseif ('candidate-location' === $key) { ?> <?php the_candidate_location(false, $resume); ?> </td> <?php } elseif ('resume-category' === $key) { ?> <?php the_resume_category($resume); ?> <?php } elseif ('status' === $key) { ?> <?php the_resume_status($resume); ?> <?php
do_action('single_resume_start'); ?> <div class="resume-aside"> <?php the_candidate_photo(); ?> <?php the_resume_links(); ?> <p class="job-title"><?php the_candidate_title(); ?> </p> <p class="location"><?php the_candidate_location(); ?> </p> <?php the_candidate_video(); ?> </div> <div class="resume_description"> <?php echo apply_filters('the_resume_description', get_the_content()); ?> </div> <?php