From d6acd34028883fec38cebe02d42a4b34137ee95c Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 11 Sep 2019 17:32:40 +0100 Subject: [PATCH] Added a public_search config option this allows you to make search available for users not logged in --- application/config/cloudlog.php | 14 ++ application/views/interface_assets/header.php | 121 +++++++++++------- 2 files changed, 89 insertions(+), 46 deletions(-) diff --git a/application/config/cloudlog.php b/application/config/cloudlog.php index 01e6b6a9..af71ecfe 100644 --- a/application/config/cloudlog.php +++ b/application/config/cloudlog.php @@ -60,3 +60,17 @@ $config['map_gridsquares'] = FALSE; */ $config['cat_timeout_interval'] = 300; + +/* +|-------------------------------------------------------------------------- +| Public Search +|-------------------------------------------------------------------------- +| +| Setting this to TRUE makes the search bar at the top of the display +| visable and usable to all users and visitors +| +| Default is: FALSE +| +*/ + +$config['public_search'] = FALSE; \ No newline at end of file diff --git a/application/views/interface_assets/header.php b/application/views/interface_assets/header.php index a4863086..6bba37e2 100644 --- a/application/views/interface_assets/header.php +++ b/application/views/interface_assets/header.php @@ -68,64 +68,93 @@ - -
- - -
- - - - - - config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?> + config->item('public_search') == TRUE || $this->session->userdata('user_type') >= 2) { ?> +
+ + + +
+ + + config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?> -
+ - -
- + + + + + config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?> + + + +