primarynav uses menustart and menuend
This commit is contained in:
parent
b4f1281799
commit
8e03c83a57
@ -50,8 +50,7 @@ class PrimaryNav extends Menu
|
|||||||
function show()
|
function show()
|
||||||
{
|
{
|
||||||
$user = common_current_user();
|
$user = common_current_user();
|
||||||
$this->action->elementStart('ul', array('class' => 'nav',
|
$this->menuStart();
|
||||||
'id' => 'site_nav_global_primary'));
|
|
||||||
if (Event::handle('StartPrimaryNav', array($this->action))) {
|
if (Event::handle('StartPrimaryNav', array($this->action))) {
|
||||||
if (!empty($user)) {
|
if (!empty($user)) {
|
||||||
$this->action->menuItem(common_local_url('profilesettings'),
|
$this->action->menuItem(common_local_url('profilesettings'),
|
||||||
@ -89,7 +88,12 @@ class PrimaryNav extends Menu
|
|||||||
|
|
||||||
Event::handle('EndPrimaryNav', array($this->action));
|
Event::handle('EndPrimaryNav', array($this->action));
|
||||||
}
|
}
|
||||||
|
$this->menuEnd();
|
||||||
$this->action->elementEnd('ul');
|
$this->action->elementEnd('ul');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function id()
|
||||||
|
{
|
||||||
|
return 'site_nav_global_primary';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user