From 0c5f3152940682fd3fee66fb1b448ed130f9ee77 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 24 Apr 2016 21:45:06 +0200 Subject: [PATCH 1/2] Vier: No visible login border/no search and events without login --- include/nav.php | 19 +++++++++++-------- view/theme/vier/style.css | 5 +++++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/include/nav.php b/include/nav.php index 8428b6b0fd..2e8dd772c5 100644 --- a/include/nav.php +++ b/include/nav.php @@ -118,15 +118,17 @@ function nav_info(&$a) { if(count($a->apps)>0) $nav['apps'] = array('apps', t('Apps'), "", t('Addon applications, utilities, games')); - $nav['search'] = array('search', t('Search'), "", t('Search site content')); + if (local_user()) { + $nav['search'] = array('search', t('Search'), "", t('Search site content')); - $nav['searchoption'] = array( - t("Full Text"), - t("Tags"), - t("Contacts")); + $nav['searchoption'] = array( + t("Full Text"), + t("Tags"), + t("Contacts")); - if (get_config('system','poco_local_search')) - $nav['searchoption'][] = t("Forums"); + if (get_config('system','poco_local_search')) + $nav['searchoption'][] = t("Forums"); + } $gdirpath = 'directory'; @@ -140,7 +142,8 @@ function nav_info(&$a) { elseif(get_config('system','community_page_style') == CP_GLOBAL_COMMUNITY) $nav['community'] = array('community', t('Community'), "", t('Conversations on the network')); - $nav['events'] = Array('events', t('Events'), "", t('Events and Calendar')); + if(local_user()) + $nav['events'] = Array('events', t('Events'), "", t('Events and Calendar')); $nav['directory'] = array($gdirpath, t('Directory'), "", t('People directory')); diff --git a/view/theme/vier/style.css b/view/theme/vier/style.css index 564669b19b..ebe8a895b4 100644 --- a/view/theme/vier/style.css +++ b/view/theme/vier/style.css @@ -2378,6 +2378,11 @@ ul.tabs li .active, span.pager_current a { aside form { overflow-x: hidden; } +aside form fieldset { + margin: 0px; + padding: 0px; + border: 0px none; +} aside form .field label { float: left; width: 170px; From 75fefeba95f0b10b9ac040047adf0e0973f711fc Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 25 Apr 2016 16:42:16 +0200 Subject: [PATCH 2/2] Only hide the search if "local_search" was activated. --- include/nav.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nav.php b/include/nav.php index 2e8dd772c5..8f82bc4d02 100644 --- a/include/nav.php +++ b/include/nav.php @@ -118,7 +118,7 @@ function nav_info(&$a) { if(count($a->apps)>0) $nav['apps'] = array('apps', t('Apps'), "", t('Addon applications, utilities, games')); - if (local_user()) { + if (local_user() OR !get_config('system','local_search')) { $nav['search'] = array('search', t('Search'), "", t('Search site content')); $nav['searchoption'] = array(