]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
move top-level navigation to default local navigation
authorEvan Prodromou <evan@status.net>
Tue, 1 Mar 2011 11:30:51 +0000 (06:30 -0500)
committerEvan Prodromou <evan@status.net>
Tue, 1 Mar 2011 11:30:51 +0000 (06:30 -0500)
lib/action.php
lib/primarynav.php

index 54bea7c931d487d44491f81a35483d1f01351522..9a6a160e3f283c53c31c1a3b146ff55455d5dea3 100644 (file)
@@ -637,7 +637,8 @@ class Action extends HTMLOutputter // lawsuit
      */
     function showLocalNav()
     {
-        // does nothing by default
+        $nav = new DefaultLocalNav($this);
+        $nav->show();
     }
 
     /**
index 01517d942908baedd30049ebaca0c9d4b5847093..296328d8bdd4e0ef6e2ea350f4f25a3b21174efd 100644 (file)
@@ -54,23 +54,6 @@ class PrimaryNav extends Menu
                                         'id' => 'site_nav_global_primary'));
         if (Event::handle('StartPrimaryNav', array($this->action))) {
             if (!empty($user)) {
-                $this->action->menuItem(common_local_url('all', 
-                                                 array('nickname' => $user->nickname)),
-                                _m('Home'),
-                                _m('Friends timeline'),
-                                false,
-                                'nav_home');
-                $this->action->menuItem(common_local_url('showstream', 
-                                                 array('nickname' => $user->nickname)),
-                                _m('Profile'),
-                                _m('Your profile'),
-                                false,
-                                'nav_profile');
-                $this->action->menuItem(common_local_url('public'),
-                                _m('Public'),
-                                _m('Everyone on this site'),
-                                false,
-                                'nav_public');
                 $this->action->menuItem(common_local_url('profilesettings'),
                                 _m('Settings'),
                                 _m('Change your personal settings'),
@@ -89,11 +72,6 @@ class PrimaryNav extends Menu
                                 false,
                                 'nav_logout');
             } else {
-                $this->action->menuItem(common_local_url('public'),
-                                _m('Public'),
-                                _m('Everyone on this site'),
-                                false,
-                                'nav_public');
                 $this->action->menuItem(common_local_url('login'),
                                 _m('Login'), 
                                 _m('Login to the site'),
@@ -111,6 +89,7 @@ class PrimaryNav extends Menu
 
             Event::handle('EndPrimaryNav', array($this->action));
         }
+
         $this->action->elementEnd('ul');
     }
 }