- if (!empty($user)) {
- $pn = new PersonalGroupNav($this->action);
- $this->submenu(_m('Home'), $pn);
- }
+ if (!empty($user)) {
+ $pn = new PersonalGroupNav($this->action);
+ // TRANS: Menu item in default local navigation panel.
+ $this->submenu(_m('MENU','Home'), $pn);
+ }
+
+ $bn = new PublicGroupNav($this->action);
+ // TRANS: Menu item in default local navigation panel.
+ $this->submenu(_m('MENU','Public'), $bn);
+
+ if (!empty($user)) {
+ $sn = new GroupsNav($this->action, $user);
+ if ($sn->haveGroups()) {
+ // TRANS: Menu item in default local navigation panel.
+ $this->submenu(_m('MENU', 'Groups'), $sn);
+ }
+ }