From 755bbfcd94d1fa986cbaa4e4af20d283d7c9e163 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 16 Mar 2017 15:23:47 -0400 Subject: [PATCH] Update for narrow template. This is for a narrower view for the search. --- controllers/front.php | 5 +++-- views/front/jobSearch.php | 6 +++--- views/front/jobSearchSmall.php | 17 +++++++++++++++++ 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 views/front/jobSearchSmall.php 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 @@