Make login and register standalone menu items

This commit is contained in:
Jay Trees 2022-03-07 12:17:01 +01:00
parent 9263b551fd
commit f6acb65d36

View file

@ -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',
)
),
);
}