]> git.mxchange.org Git - friendica.git/blobdiff - include/nav.php
Merge remote-tracking branch 'upstream/develop' into 1606-dbm
[friendica.git] / include / nav.php
index 8428b6b0fdb654fc5f37986cb926bb3cd7ef2d33..e6460c046b7a857d83f5c3eb1edf5a43b4d2b37b 100644 (file)
@@ -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() OR !get_config('system','local_search')) {
+               $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'));
 
@@ -167,7 +170,7 @@ function nav_info(&$a) {
                        if(in_array($_SESSION['page_flags'], array(PAGE_NORMAL, PAGE_SOAPBOX, PAGE_FREELOVE))) {
                                $nav['notifications'] = array('notifications',  t('Notifications'), "", t('Notifications'));
                                $nav['notifications']['all']=array('notifications/system', t('See all notifications'), "", "");
-                               $nav['notifications']['mark'] = array('', t('Mark all system notifications seen'), '','');
+                               $nav['notifications']['mark'] = array('', t('Mark as seen'), '',t('Mark all system notifications seen'));
                        }
                }