Make login and register standalone menu items
This commit is contained in:
parent
9263b551fd
commit
f6acb65d36
1 changed files with 20 additions and 8 deletions
|
@ -302,15 +302,27 @@ class Page
|
|||
'icon' => 'sign out alternate',
|
||||
);
|
||||
} else {
|
||||
$pages['account']['items'][] = array(
|
||||
$pages['login'] = array(
|
||||
'text' => 'Login',
|
||||
'alignment' => 'right',
|
||||
'items' => array(
|
||||
array(
|
||||
'url' => '/?page=login',
|
||||
'text' => 'Login',
|
||||
'icon' => 'sign in alternate',
|
||||
)
|
||||
),
|
||||
);
|
||||
$pages['account']['items'][] = array(
|
||||
$pages['register'] = array(
|
||||
'text' => 'Register',
|
||||
'alignment' => 'right',
|
||||
'items' => array(
|
||||
array(
|
||||
'url' => '/?page=register',
|
||||
'text' => 'Register',
|
||||
'icon' => 'user plus alternate',
|
||||
)
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue