Commit 2272044a authored by Evan Prodromou's avatar Evan Prodromou

wrapper div for primary nav

parent b751ab70
......@@ -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');
}
/**
......
......@@ -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'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment