X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fnav.php;h=3d27be13be819bf8e1c4dd66a1da260501200f50;hb=17514e0d684edccb41d16a452bf60debdc276fab;hp=9ea3b4b7f54b327a92b0a44cc785f58f3a01979b;hpb=d4b092cec6f1a80d578981d80996ccec81d2d9a7;p=friendica.git diff --git a/include/nav.php b/include/nav.php index 9ea3b4b7f5..3d27be13be 100644 --- a/include/nav.php +++ b/include/nav.php @@ -147,15 +147,16 @@ function nav_info(&$a) { $nav['home'] = array('profile/' . $a->user['nickname'], t('Home'), "", t('Your posts and conversations')); - - /* only show friend requests for normal pages. Other page types have automatic friendship. */ - - if($_SESSION['page_flags'] == PAGE_NORMAL || $_SESSION['page_flags'] == PAGE_SOAPBOX || $_SESSION['page_flags'] == PAGE_PRVGROUP) { - $nav['introductions'] = array('notifications/intros', t('Introductions'), "", t('Friend Requests')); - $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'), '',''); - + if(in_array($_SESSION['page_flags'], array(PAGE_NORMAL, PAGE_SOAPBOX, PAGE_FREELOVE, PAGE_PRVGROUP))) { + /* only show friend requests for normal pages. Other page types have automatic friendship. */ + if(in_array($_SESSION['page_flags'], array(PAGE_NORMAL, PAGE_SOAPBOX, PAGE_PRVGROUP))) + $nav['introductions'] = array('notifications/intros', t('Introductions'), "", t('Friend Requests')); + + 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['messages'] = array('message', t('Messages'), "", t('Private mail')); @@ -199,6 +200,8 @@ function nav_info(&$a) { if($banner === false) $banner .= 'logoFriendica'; + call_hooks('nav_info', $nav); + return array( 'sitelocation' => $sitelocation,