+ $gdirpath = 'directory';
+
+ if(strlen(get_config('system','singleuser'))) {
+ $gdir = dirname(get_config('system','directory_submit_url'));
+ if(strlen($gdir))
+ $gdirpath = $gdir;
+ }
+ elseif(! get_config('system','no_community_page'))
+ $nav['community'] = array('community', t('Community'), "", t('Conversations on this site'));
+
+ $nav['directory'] = array($gdirpath, t('Directory'), "", t('People directory'));
+
+ /**
+ *
+ * The following nav links are only show to logged in users
+ *
+ */
+
+ if(local_user()) {
+
+ $nav['network'] = array('network', t('Network'), "", t('Conversations from your friends'));
+ $nav['net_reset'] = array('network/0?f=&order=comment&nets=all', t('Network Reset'), "", t('Load Network page with no filters'));
+
+ $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_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'), '','');