From 0540e04c77864186ce48193456634b897a11f5aa Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Fri, 6 Sep 2024 14:38:26 +0200 Subject: Add mobile version --- includes/desktop/site.php | 27 +++++++++++++++++++++++++++ includes/desktop/template_end.php | 2 ++ includes/desktop/template_head_end.php | 10 ++++++++++ includes/desktop/template_head_start.php | 20 ++++++++++++++++++++ includes/mobile-detect.php | 11 +++++++++++ includes/mobile/site.php | 2 ++ includes/mobile/template_end.php | 8 ++++++++ includes/mobile/template_head_end.php | 26 ++++++++++++++++++++++++++ includes/mobile/template_head_start.php | 10 ++++++++++ includes/template_end.php | 7 +++++-- includes/template_head_end.php | 11 +++-------- includes/template_head_start.php | 23 ++++------------------- 12 files changed, 128 insertions(+), 29 deletions(-) create mode 100644 includes/desktop/site.php create mode 100644 includes/desktop/template_end.php create mode 100644 includes/desktop/template_head_end.php create mode 100644 includes/desktop/template_head_start.php create mode 100644 includes/mobile-detect.php create mode 100644 includes/mobile/site.php create mode 100644 includes/mobile/template_end.php create mode 100644 includes/mobile/template_head_end.php create mode 100644 includes/mobile/template_head_start.php (limited to 'includes') diff --git a/includes/desktop/site.php b/includes/desktop/site.php new file mode 100644 index 0000000..78fab83 --- /dev/null +++ b/includes/desktop/site.php @@ -0,0 +1,27 @@ + + + + + + Mystic House Corner + + + + + + + + + " name="main" frameBorder="0" border="0" noresize> + + + + <table cellspacing="0" cellpadding="2" bgcolor="maroon"><tr><td> + <table cellspacing="0" cellpadding="16" bgcolor="pink"><tr><td> + <font face="Arial" size="3" color="maroon"><b>Oh nein, Ihr Browser unterst&uuml;tzt keine Frames!</b></font><br> + <font face="Arial" size="2" color="maroon">Bitte nutzen Sie einen WWW-Browser, der Frames unterst&uuml;tzt!</font> + </td></tr></table> + </td></tr></table> + + + diff --git a/includes/desktop/template_end.php b/includes/desktop/template_end.php new file mode 100644 index 0000000..308b1d0 --- /dev/null +++ b/includes/desktop/template_end.php @@ -0,0 +1,2 @@ + + diff --git a/includes/desktop/template_head_end.php b/includes/desktop/template_head_end.php new file mode 100644 index 0000000..9eea077 --- /dev/null +++ b/includes/desktop/template_head_end.php @@ -0,0 +1,10 @@ + + + + diff --git a/includes/desktop/template_head_start.php b/includes/desktop/template_head_start.php new file mode 100644 index 0000000..6d4a776 --- /dev/null +++ b/includes/desktop/template_head_start.php @@ -0,0 +1,20 @@ + + + + + + + <?= htmlentities($PAGE_TITLE ?? "") ?> - Mystic House Fansite + diff --git a/includes/mobile-detect.php b/includes/mobile-detect.php new file mode 100644 index 0000000..4bb1800 --- /dev/null +++ b/includes/mobile-detect.php @@ -0,0 +1,11 @@ + + + + diff --git a/includes/mobile/template_head_end.php b/includes/mobile/template_head_end.php new file mode 100644 index 0000000..6819603 --- /dev/null +++ b/includes/mobile/template_head_end.php @@ -0,0 +1,26 @@ + + + +
\ No newline at end of file diff --git a/includes/mobile/template_head_start.php b/includes/mobile/template_head_start.php new file mode 100644 index 0000000..21c44f6 --- /dev/null +++ b/includes/mobile/template_head_start.php @@ -0,0 +1,10 @@ + + + + + + <?= htmlentities($PAGE_TITLE ?? "") ?> - Mystic House Fansite + + + + diff --git a/includes/template_end.php b/includes/template_end.php index 308b1d0..64b5931 100644 --- a/includes/template_end.php +++ b/includes/template_end.php @@ -1,2 +1,5 @@ - - + - - +$__mobile = include __DIR__ . "/mobile-detect.php"; + +include __DIR__ . "/" . ($__mobile ? "mobile" : "desktop") . "/template_head_end.php"; diff --git a/includes/template_head_start.php b/includes/template_head_start.php index 150e423..31a5fb4 100644 --- a/includes/template_head_start.php +++ b/includes/template_head_start.php @@ -1,20 +1,5 @@ - - - - - - - <?= htmlentities($PAGE_TITLE ?? "") ?> - Mystic House Fansite - +$__mobile = include __DIR__ . "/mobile-detect.php"; + +include __DIR__ . "/" . ($__mobile ? "mobile" : "desktop") . "/template_head_start.php"; -- cgit v1.2.3