From 3d22cc3333e1265a222425a4ede9c464234e3632 Mon Sep 17 00:00:00 2001
From: Jonas Kohl
Date: Fri, 6 Sep 2024 17:01:01 +0200
Subject: Small fixes; Add component system
---
includes/desktop/components/alert.php | 27 +++++++++++++++++++++++++++
includes/desktop/template_head_start.php | 2 +-
includes/mobile/components/alert.php | 8 ++++++++
includes/mobile/template_end.php | 2 +-
includes/mobile/template_head_end.php | 14 +++++++-------
includes/mobile/template_head_start.php | 2 +-
includes/template_head_start.php | 11 ++++++++++-
7 files changed, 55 insertions(+), 11 deletions(-)
create mode 100644 includes/desktop/components/alert.php
create mode 100644 includes/mobile/components/alert.php
(limited to 'includes')
diff --git a/includes/desktop/components/alert.php b/includes/desktop/components/alert.php
new file mode 100644
index 0000000..fce6376
--- /dev/null
+++ b/includes/desktop/components/alert.php
@@ -0,0 +1,27 @@
+ ["olive","yellow"],
+ "success" => ["green","lime"],
+ ][$type] ?? ["gray","white"];
+ if ($icon !== null)
+ $icon = [
+ "warning-sign" => "warn16",
+ ][$icon] ?? $icon;
+?>
+
+
+
+
+
+
+ |
+
+= $html_message ?>
+
+ |
+
+ |
+ |
+
+
- = htmlentities($PAGE_TITLE ?? "") ?> - Mystic House Fansite
+ = htmlentities($PAGE_TITLE ?? "") ?> - Mystic House Corner
diff --git a/includes/template_head_start.php b/includes/template_head_start.php
index 31a5fb4..271cb60 100644
--- a/includes/template_head_start.php
+++ b/includes/template_head_start.php
@@ -1,5 +1,14 @@