+ $gdirpath = 'directory';
+
+ if(strlen(get_config('system','singleuser'))) {
+ $gdir = dirname(get_config('system','directory_submit_url'));
+ if(strlen($gdir))
+ $gdirpath = $gdir;
+ }
+
+ $nav['directory'] = array($gdirpath, t('Directory'), "");
+
+ /**
+ *
+ * The following nav links are only show to logged in users
+ *
+ */
+
+ if(local_user()) {
+
+ $nav['network'] = array('network', t('Network'), "");
+
+ $nav['home'] = array('profile/' . $a->user['nickname'], t('Home'), "");
+
+
+ /* only show friend requests for normal pages. Other page types have automatic friendship. */