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
---
cgi/contact.php | 2 +-
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 ++++++++++-
pages/about.php | 3 ++-
pages/dekomp.php | 1 +
pages/exklusiv.php | 1 +
pages/loesung.php | 1 +
pages/sent.php | 6 +-----
pages/start.php | 20 ++------------------
pages/trivia.php | 1 +
15 files changed, 65 insertions(+), 36 deletions(-)
create mode 100644 includes/desktop/components/alert.php
create mode 100644 includes/mobile/components/alert.php
diff --git a/cgi/contact.php b/cgi/contact.php
index 3aceaac..0f9ac5f 100755
--- a/cgi/contact.php
+++ b/cgi/contact.php
@@ -74,4 +74,4 @@ $transport->send((new Email())
->text($message)
);
-header("Location: /pages/sent.html");
+header("Location: /pages/sent.php");
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 @@
+
+