summaryrefslogtreecommitdiff
path: root/src/application/views/template_start.php
diff options
context:
space:
mode:
authorJonas Kohl2024-09-14 17:59:13 +0200
committerJonas Kohl2024-09-14 17:59:13 +0200
commitd8b74761c6cefdd83360d3f2add0e9ccdc6064c7 (patch)
tree5e2c947b4a90ae475a7e75897077246e5ea0a948 /src/application/views/template_start.php
parent948cead0f11d33adbcf0d08773c716e1b6ebb101 (diff)
Even more changes (devel commit messages are useless)
Diffstat (limited to 'src/application/views/template_start.php')
-rw-r--r--src/application/views/template_start.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/application/views/template_start.php b/src/application/views/template_start.php
index 4cfdb74..56af9bf 100644
--- a/src/application/views/template_start.php
+++ b/src/application/views/template_start.php
@@ -1,3 +1,11 @@
+<?php
+
+$pageTitle = "";
+if (isset($_title) && $_title !== null)
+ $pageTitle = "$_title | ";
+$pageTitle .= env("MYSTIC_FORUM_TITLE") ?? "Forum";
+
+?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html lang="de" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html lang="de" class="no-js lt-ie9 lt-ie8"> <![endif]-->
@@ -5,10 +13,10 @@
<!--[if gt IE 8]><!--> <html lang="de" class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <title><?= htmlentities($_title ?? "") ?></title>
- <link rel="stylesheet" href="/ui/theme-default.css">
+ <title><?= htmlentities($pageTitle) ?></title>
+ <link rel="stylesheet" href="/themes/<?= env("MYSTIC_FORUM_THEME") ?? "default" ?>/theme.css">
<script src="/ui/jquery-1.12.4.min.js"></script>
<script src="/ui/dist/js/bootstrap.min.js"></script>
<script src="/ui/modernizr-2.6.2.min.js"></script>