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 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 includes/desktop/components/alert.php (limited to 'includes/desktop') 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; +?> +
+
+
+ +
+  + + + + +
+ +
+
+
+ - <?= htmlentities($PAGE_TITLE ?? "") ?> - Mystic House Fansite + <?= htmlentities($PAGE_TITLE ?? "") ?> - Mystic House Corner