From: Evan Prodromou Date: Tue, 1 Mar 2011 21:35:25 +0000 (-0500) Subject: don't show full profile menu all the time X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c4b53b4aefe5a7d69ce912d0908e55aae8768f35;p=quix0rs-gnu-social.git don't show full profile menu all the time --- diff --git a/lib/defaultlocalnav.php b/lib/defaultlocalnav.php index b42d3a804c..7af3c9673f 100644 --- a/lib/defaultlocalnav.php +++ b/lib/defaultlocalnav.php @@ -56,9 +56,6 @@ class DefaultLocalNav extends Menu if (!empty($user)) { $pn = new PersonalGroupNav($this->action); $this->submenu(_m('Home'), $pn); - - $sn = new SubGroupNav($this->action, $user); - $this->submenu(_m('Profile'), $sn); } $bn = new PublicGroupNav($this->action); diff --git a/lib/personalgroupnav.php b/lib/personalgroupnav.php index 6a31358596..e428e92e63 100644 --- a/lib/personalgroupnav.php +++ b/lib/personalgroupnav.php @@ -71,6 +71,12 @@ class PersonalGroupNav extends Menu _('Home'), sprintf(_('%s and friends'), $name), $action == 'all', 'nav_timeline_personal'); + $this->out->menuItem(common_local_url('showstream', array('nickname' => + $this->user->nickname)), + _('Profile'), + (empty($profile)) ? $this->user->nickname : $profile->getBestName(), + $action == 'showstream', + 'nav_profile'); $this->out->menuItem(common_local_url('replies', array('nickname' => $nickname)), _('Replies'),