From ab4a00d25c0eb93bab2b9828397cf6d900701b33 Mon Sep 17 00:00:00 2001 From: tracer Date: Tue, 25 Oct 2022 15:48:11 +0200 Subject: [PATCH] added router->path() --- templates/_header.html.php | 44 ++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 26 deletions(-) diff --git a/templates/_header.html.php b/templates/_header.html.php index d1297c9..dfec0fe 100644 --- a/templates/_header.html.php +++ b/templates/_header.html.php @@ -1,32 +1,24 @@ - - Address Book - <?php if (!empty($user)): ?> +<head> + <title>Address Book + <?php if (!empty($user->getNick())): ?>  - <?= $user->getNick() ?> - <?php endif; ?> - - - + + + -

Address Book

- 🏠 Home - ⚙ Admin - getAuth() == \App\Enums\UserAuth::AUTH_ANONYMOUS): ?> - 🚪Login - - 🚪Logout - - getAuth() == \App\Enums\UserAuth::AUTH_ANONYMOUS) { - echo "no"; - } else { - echo "yes"; - } - ?> - getAuth() == \App\Enums\UserAuth::AUTH_ANONYMOUS): ?> -
- Welcome back, getNick(); ?> - +

Address Book

+🏠 Home +⚙ Admin +getAuth() == \App\Enums\UserAuth::AUTH_ANONYMOUS): ?> + 🚪Login + + 🚪Logout + +getNick())): ?> +
+ Welcome back, getNick(); ?> +