From f6acb65d361c0a07f7b767e1da326e98f63e4014 Mon Sep 17 00:00:00 2001 From: Jay Trees Date: Mon, 7 Mar 2022 12:17:01 +0100 Subject: [PATCH] Make login and register standalone menu items --- src/classes/page.php | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/src/classes/page.php b/src/classes/page.php index 936ded37..a5523d4d 100644 --- a/src/classes/page.php +++ b/src/classes/page.php @@ -302,15 +302,27 @@ class Page 'icon' => 'sign out alternate', ); } else { - $pages['account']['items'][] = array( - 'url' => '/?page=login', - 'text' => 'Login', - 'icon' => 'sign in alternate', + $pages['login'] = array( + 'text' => 'Login', + 'alignment' => 'right', + 'items' => array( + array( + 'url' => '/?page=login', + 'text' => 'Login', + 'icon' => 'sign in alternate', + ) + ), ); - $pages['account']['items'][] = array( - 'url' => '/?page=register', - 'text' => 'Register', - 'icon' => 'user plus alternate', + $pages['register'] = array( + 'text' => 'Register', + 'alignment' => 'right', + 'items' => array( + array( + 'url' => '/?page=register', + 'text' => 'Register', + 'icon' => 'user plus alternate', + ) + ), ); }