summaryrefslogtreecommitdiff
path: root/includes/mobile
diff options
context:
space:
mode:
authorJonas Kohl <git@jonaskohl.de>2024-09-06 14:38:26 +0200
committerJonas Kohl <git@jonaskohl.de>2024-09-06 14:38:26 +0200
commit0540e04c77864186ce48193456634b897a11f5aa (patch)
tree92607cc903a9b0dc482ca14f3d33ab9c3707d78c /includes/mobile
parent2d8a37e7ac46aa100f2e460b024d21bae2883f5b (diff)
Add mobile version
Diffstat (limited to 'includes/mobile')
-rw-r--r--includes/mobile/site.php2
-rw-r--r--includes/mobile/template_end.php8
-rw-r--r--includes/mobile/template_head_end.php26
-rw-r--r--includes/mobile/template_head_start.php10
4 files changed, 46 insertions, 0 deletions
diff --git a/includes/mobile/site.php b/includes/mobile/site.php
new file mode 100644
index 0000000..0e34e83
--- /dev/null
+++ b/includes/mobile/site.php
@@ -0,0 +1,2 @@
+<?php
+header("Location: pages/" . urlencode($_GET["p"] ?? "start.php"));
diff --git a/includes/mobile/template_end.php b/includes/mobile/template_end.php
new file mode 100644
index 0000000..1f3ad26
--- /dev/null
+++ b/includes/mobile/template_end.php
@@ -0,0 +1,8 @@
+</div>
+<footer class="footer">
+<div class="container">
+ <a href="/view.php?view=d&next=<?= htmlentities(urlencode($_SERVER["REQUEST_URI"])) ?>" target="_top">Desktop-Version</a>
+</div>
+</footer>
+</body>
+</html>
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 @@
+</head>
+<body>
+<nav class="navbar navbar-default">
+ <div class="container-fluid">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse" aria-expanded="false">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="/site.php">Mystic House Corner</a>
+ </div>
+ <div class="collapse navbar-collapse" id="nav-collapse">
+ <ul class="nav navbar-nav">
+ <li><a href="/pages/start.php">Startseite</a></li>
+ <li><a href="/pages/trivia.php">Trivia</a></li>
+ <li><a href="/pages/exklusiv.php">Exklusiv</a></li>
+ <li><a href="/pages/dekomp.php">Dekomp</a></li>
+ <li><a href="/pages/loesung.php">L&ouml;sung</a></li>
+ <li><a href="/pages/about.php">&Uuml;ber</a></li>
+ </ul>
+ </div>
+ </div>
+</nav>
+<div class="container"> \ 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 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width">
+ <title><?= htmlentities($PAGE_TITLE ?? "") ?> - Mystic House Fansite</title>
+ <link rel="stylesheet" href="/mobile/dist/css/bootstrap.min.css">
+ <link rel="stylesheet" href="/mobile/site.css">
+ <script src="/mobile/jquery-1.12.4.min.js"></script>
+ <script src="/mobile/dist/js/bootstrap.min.js"></script>