'ats2gojobs');
$wp_query = new WP_Query($query_args);
$content .= '
';
while ( $wp_query->have_posts() ) : $wp_query->the_post();
// variables
$post_id = get_the_ID();
$meta_data = get_post_meta($post_id);
$job = json_decode($meta_data['job_json'][0]);
$web_page_id = $meta_data['web_page_id'][0];
$web_site_id = get_option('hs_web_site_id');
// post div
$content .= '
';
// job title
$content .= '
';
// classifications
if (get_option('hs_classionjoblist', '1') == '1') {
$content .= create_classifications_div($job);
}
// summary
if (isset($job -> summary) && get_option('hs_summaryonjoblist', '1') == '1') {
$content .= $job -> summary;
}
// readmore
if (get_option('hs_readmoreonjoblist', '0') == '1') {
$content .= '
Lees meer';
}
// close post div
$content .= '
';
endwhile;
$content .= '
';
return $content;
}
//
// JOBDETAIL
//
static function handle_jobdetail_shortcode($atts=array()) {
$content = '';
// variables
$post_id = get_the_ID();
$meta_data = get_post_meta($post_id);
$job = json_decode($meta_data['job_json'][0]);
$job_description = $meta_data['job_description'][0];
$web_page_id = $meta_data['web_page_id'][0];
$web_site_id = get_option('hs_web_site_id');
// post div
$content .= '';
// apply button
$content .= '
';
// classifications
if (get_option('hs_classionjoblist', '1') == '1') {
$content .= create_classifications_div($job);
}
// apply button top
if (in_array(get_option('hs_applybuttonposition', '1'), array('2', '3'))) {
$content .= '
';
}
// summary
if (isset($job -> summary) && get_option('hs_summaryonjobdetail', '1') == '1') {
$content .= '
' . $job -> summary . '
';
}
// description
$content .= '
' .
$job_description .
'
';
// apply button bottom
if (in_array(get_option('hs_applybuttonposition', '1'), array('1', '3'))) {
$content .= '
';
}
// close post div
$content .= '
';
return $content;
}
}
ATS2goJobs_Shortcodes::init();
?>