From: Steve Sutton Date: Thu, 16 Mar 2017 19:23:47 +0000 (-0400) Subject: Update for narrow template. X-Git-Tag: v1.0.0^2~3 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=755bbfcd94d1fa986cbaa4e4af20d283d7c9e163;p=WP-Plugins%2Fstaffords-employment.git Update for narrow template. This is for a narrower view for the search. --- diff --git a/controllers/front.php b/controllers/front.php index 146f0a4..c005a80 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -83,6 +83,7 @@ class staffords_employment_front $job_id = (isset($_REQUEST['job'])) ? filter_var($_REQUEST['job'], FILTER_VALIDATE_INT) : false; + $narrowTemplate = ( isset( $atts['narrow'] ) ) ? filter_var( $atts['narrow'], FILTER_VALIDATE_BOOLEAN ) : false; ob_start(); if ($applyOnline) { @@ -90,7 +91,7 @@ class staffords_employment_front } else if ($job_id) { $this->show_job($job_id); } else { - $this->search_form(); + $this->search_form($narrowTemplate); $this->list_jobs(); } $output = ob_get_contents(); @@ -671,7 +672,7 @@ class staffords_employment_front /** * Front end job search form */ - public function search_form() + public function search_form($narrowTemplate = false) { $staffords_jobscategory = (isset($_REQUEST['staffords_jobscategory'])) ? filter_var($_REQUEST['staffords_jobscategory'], FILTER_VALIDATE_INT) diff --git a/views/front/jobSearch.php b/views/front/jobSearch.php index 1263ca6..7d3cb5a 100644 --- a/views/front/jobSearch.php +++ b/views/front/jobSearch.php @@ -2,15 +2,15 @@