wrapper div for primary nav
This commit is contained in:
parent
b751ab70fb
commit
2272044ad1
@ -536,8 +536,10 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
*/
|
*/
|
||||||
function showPrimaryNav()
|
function showPrimaryNav()
|
||||||
{
|
{
|
||||||
|
$this->elementStart('div', array('id' => 'site_nav_global_primary'));
|
||||||
$pn = new PrimaryNav($this);
|
$pn = new PrimaryNav($this);
|
||||||
$pn->show();
|
$pn->show();
|
||||||
|
$this->elementEnd('div');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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->action->elementStart('ul', array('class' => 'nav'));
|
||||||
'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'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user