From a806fc043c756785e6c88776cebbfcb2fba01eea Mon Sep 17 00:00:00 2001 From: TheClashFruit Date: Mon, 18 Sep 2023 18:10:55 +0200 Subject: [PATCH] feat: add map --- template/includes/head.twig | 23 ++++++++++++++++++++++ template/map.twig | 38 ++++++++++++++++++------------------- util/Database.php | 4 ++-- 3 files changed, 44 insertions(+), 21 deletions(-) diff --git a/template/includes/head.twig b/template/includes/head.twig index 8fafa7b..40a3bbd 100644 --- a/template/includes/head.twig +++ b/template/includes/head.twig @@ -6,6 +6,29 @@ Clyde's Real Survival SMP • {{ pageTitle }} + + {% if pageTitle == 'Map' %} + + + + + {% endif %} diff --git a/template/map.twig b/template/map.twig index 9469ead..d44c624 100644 --- a/template/map.twig +++ b/template/map.twig @@ -1,24 +1,24 @@ {% include 'includes/head.twig' with {'pageTitle': 'Map'} %} -
-
-
-

Clyde's Real Survival SMP

- -
- Online: / -
-
-
-
+
+Go Home -{% include 'includes/nav.twig' with {'page': 'map',} %} - -
-
-

⚒️ Under Construction

-
-
+ -{% include 'includes/footer.twig' %} {% include 'includes/foot.twig' %} \ No newline at end of file diff --git a/util/Database.php b/util/Database.php index 6378aa6..94580aa 100644 --- a/util/Database.php +++ b/util/Database.php @@ -24,7 +24,7 @@ $stmt->execute(); } - function getUserRecordFromUsername($username): bool|array|null { + function getUserRecordFromUsername($username): array | null { $sql = 'SELECT * FROM users WHERE username = ?'; $stmt = $this->conn->prepare($sql); @@ -41,7 +41,7 @@ } } - function getUserRecordFromId($id): bool|array|null { + function getUserRecordFromId($id): array | null { $sql = 'SELECT * FROM users WHERE id = ?'; $stmt = $this->conn->prepare($sql);