]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
wrapper div for primary nav
authorEvan Prodromou <evan@status.net>
Mon, 7 Mar 2011 17:42:51 +0000 (12:42 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 7 Mar 2011 17:42:51 +0000 (12:42 -0500)
lib/action.php
lib/primarynav.php

index dc95b030d2b2d97ab79401dcafce19aa37dd4a5a..7ef959bc4ebef8e60225116725cc6d52e4f5a0fb 100644 (file)
@@ -536,8 +536,10 @@ class Action extends HTMLOutputter // lawsuit
      */
     function showPrimaryNav()
     {
+        $this->elementStart('div', array('id' => 'site_nav_global_primary'));
         $pn = new PrimaryNav($this);
         $pn->show();
+        $this->elementEnd('div');
     }
 
     /**
index 296328d8bdd4e0ef6e2ea350f4f25a3b21174efd..7748d7a1c74371b63b5e3b23112dbf9cd7a0d742 100644 (file)
@@ -50,8 +50,7 @@ class PrimaryNav extends Menu
     function show()
     {
         $user = common_current_user();
-        $this->action->elementStart('ul', array('class' => 'nav',
-                                        'id' => 'site_nav_global_primary'));
+        $this->action->elementStart('ul', array('class' => 'nav'));
         if (Event::handle('StartPrimaryNav', array($this->action))) {
             if (!empty($user)) {
                 $this->action->menuItem(common_local_url('profilesettings'),