summaryrefslogtreecommitdiff
path: root/includes/mobile
diff options
context:
space:
mode:
Diffstat (limited to 'includes/mobile')
-rw-r--r--includes/mobile/components/alert.php8
-rw-r--r--includes/mobile/template_end.php2
-rw-r--r--includes/mobile/template_head_end.php14
-rw-r--r--includes/mobile/template_head_start.php2
4 files changed, 17 insertions, 9 deletions
diff --git a/includes/mobile/components/alert.php b/includes/mobile/components/alert.php
new file mode 100644
index 0000000..fbc3482
--- /dev/null
+++ b/includes/mobile/components/alert.php
@@ -0,0 +1,8 @@
+<?php function c_alert(string $html_message, string $type, ?string $icon = null): void { ?>
+<div class="alert alert-<?= htmlentities($type) ?>">
+<?php if ($icon !== null): ?>
+<i class="glyphicon glyphicon-<?= htmlentities($icon) ?>"></i>
+<?php endif; ?>
+<?= $html_message ?>
+</div>
+<?php }
diff --git a/includes/mobile/template_end.php b/includes/mobile/template_end.php
index 1f3ad26..3746d82 100644
--- a/includes/mobile/template_end.php
+++ b/includes/mobile/template_end.php
@@ -1,6 +1,6 @@
</div>
<footer class="footer">
-<div class="container">
+<div class="container-fluid">
<a href="/view.php?view=d&next=<?= htmlentities(urlencode($_SERVER["REQUEST_URI"])) ?>" target="_top">Desktop-Version</a>
</div>
</footer>
diff --git a/includes/mobile/template_head_end.php b/includes/mobile/template_head_end.php
index 6819603..28eef80 100644
--- a/includes/mobile/template_head_end.php
+++ b/includes/mobile/template_head_end.php
@@ -13,14 +13,14 @@
</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>
+ <li<?= ($NAV_LINK_ID ?? null) === "start" ? ' class="active"' : ''; ?>><a href="/pages/start.php">Startseite</a></li>
+ <li<?= ($NAV_LINK_ID ?? null) === "trivia" ? ' class="active"' : ''; ?>><a href="/pages/trivia.php">Trivia</a></li>
+ <li<?= ($NAV_LINK_ID ?? null) === "exklusiv" ? ' class="active"' : ''; ?>><a href="/pages/exklusiv.php">Exklusiv</a></li>
+ <li<?= ($NAV_LINK_ID ?? null) === "dekomp" ? ' class="active"' : ''; ?>><a href="/pages/dekomp.php">Dekomp</a></li>
+ <li<?= ($NAV_LINK_ID ?? null) === "loesung" ? ' class="active"' : ''; ?>><a href="/pages/loesung.php">L&ouml;sung</a></li>
+ <li<?= ($NAV_LINK_ID ?? null) === "about" ? ' class="active"' : ''; ?>><a href="/pages/about.php">&Uuml;ber</a></li>
</ul>
</div>
</div>
</nav>
-<div class="container"> \ No newline at end of file
+<div class="container-fluid"> \ No newline at end of file
diff --git a/includes/mobile/template_head_start.php b/includes/mobile/template_head_start.php
index 21c44f6..4a9e161 100644
--- a/includes/mobile/template_head_start.php
+++ b/includes/mobile/template_head_start.php
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
- <title><?= htmlentities($PAGE_TITLE ?? "") ?> - Mystic House Fansite</title>
+ <title><?= htmlentities($PAGE_TITLE ?? "") ?> - Mystic House Corner</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>