summaryrefslogtreecommitdiff
path: root/includes/template_head_start.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/template_head_start.php')
-rw-r--r--includes/template_head_start.php23
1 files changed, 4 insertions, 19 deletions
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 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-<head>
- <meta http-equiv="imagetoolbar" content="no">
- <meta http-equiv="MSThemeCompatible" content="no">
- <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
- <title><?= htmlentities($PAGE_TITLE ?? "") ?> - Mystic House Fansite</title>
- <script language="JavaScript">
- <!--
- function getLocation() {
- return "/frames.php?p=" + encodeURIComponent(location.href.split('?')[0].replace(/^.*\//, ""));
- }
+<?php
- if (window.top == window.self) {
- location = getLocation();
- } else if ("history" in window.top && "replaceState" in window.top.history) {
- window.top.history.replaceState(null, "", getLocation());
- }
- // -->
- </script>
+$__mobile = include __DIR__ . "/mobile-detect.php";
+
+include __DIR__ . "/" . ($__mobile ? "mobile" : "desktop") . "/template_head_start.php";