parent
ed6da19876
commit
98f1e9028e
|
@ -309,6 +309,7 @@ class Web extends EmbeddedWeb
|
|||
'priority' => 920
|
||||
)
|
||||
),
|
||||
'cssClass' => 'user-nav-item',
|
||||
'label' => $this->user->getUsername(),
|
||||
'url' => 'account',
|
||||
'priority' => 900,
|
||||
|
@ -317,13 +318,14 @@ class Web extends EmbeddedWeb
|
|||
),
|
||||
),
|
||||
'logout' => array(
|
||||
'cssClass' => 'user-nav-item',
|
||||
'label' => t('Logout'),
|
||||
'url' => 'authentication/logout',
|
||||
'priority' => 990,
|
||||
'renderer' => array(
|
||||
'LogoutNavigationItemRenderer',
|
||||
'target' => '_self'
|
||||
)
|
||||
),
|
||||
'url' => 'authentication/logout'
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -9,6 +9,6 @@ class LogoutNavigationItemRenderer extends NavigationItemRenderer
|
|||
{
|
||||
public function render(NavigationItem $item = null)
|
||||
{
|
||||
return '<div class="user-nav-item">' . parent::render($item) . '</div>';
|
||||
return parent::render($item);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,6 @@ class UserNavigationItemRenderer extends NavigationItemRenderer
|
|||
|
||||
public function render(NavigationItem $item = null)
|
||||
{
|
||||
return '<div class="user-nav-item clearfix">' . $this->getAvatar() . parent::render($item) . '</div>';
|
||||
return '<div class="clearfix">' . $this->getAvatar() . parent::render($item) . '</div>';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue