From: Steve Sutton Date: Fri, 27 Nov 2015 13:46:40 +0000 (-0500) Subject: Turn on the application form X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=99b98419a0f63539299a95f32c57dbe93e82fff9;p=WP-Plugins%2Femmet-employment.git Turn on the application form --- diff --git a/controllers/front.php b/controllers/front.php index 01866b5..9c0c3ba 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -418,13 +418,17 @@ class emmet_employment_front $job->emmet_jobs_contact = $custom['emmet_jobs_contact'][0]; $job->emmet_jobs_phone = $custom['emmet_jobs_phone'][0]; $job->emmet_jobs_email = $custom['emmet_jobs_email'][0]; - - $cats = wp_get_post_terms($job->ID, EMMET_EMP_TAX_DEPARTMENTS, array('fields' => 'names')); + + $cats = wp_get_post_terms($job->ID, EMMET_EMP_TAX_DEPARTMENTS, array('fields' => 'names')); $terms = wp_get_post_terms($job->ID, EMMET_EMP_TAX_CATEGORIES, array('fields' => 'names')); - + $job->terms = $terms; $job->cats = $cats; - + + $current_url = esc_url(add_query_arg($wp->query_string, '', home_url($wp->request))); + $applyOnlineHref = $current_url + . ((strpos($current_url, '?')) ? '&' : '?') + . self::FORM_VAR . "=1&job=" . $job->ID; include $this->frontViewDir . '/jobDetail.php'; return; } diff --git a/views/front/formTemplate.php b/views/front/formTemplate.php index 07051fe..b3c5728 100644 --- a/views/front/formTemplate.php +++ b/views/front/formTemplate.php @@ -1,4 +1,3 @@ -