aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-01-26 11:07:06 +0200
committerSyndamia <kamen@syndamia.com>2025-01-26 11:07:06 +0200
commit723cf2e6cbbea35e8f365d2287d01acb96f02643 (patch)
treeb5ebbb7bea7d5d6b4604b169d723a4135e8bb0f6 /views
parentff740779b6d09e26416a348a22a7380b13068ac2 (diff)
downloadnowayforward_human-723cf2e6cbbea35e8f365d2287d01acb96f02643.tar
nowayforward_human-723cf2e6cbbea35e8f365d2287d01acb96f02643.tar.gz
nowayforward_human-723cf2e6cbbea35e8f365d2287d01acb96f02643.zip
feat(views): Mandatory titles for header inclusion
Diffstat (limited to 'views')
-rw-r--r--views/archive/index.php2
-rw-r--r--views/home/index.php1
-rw-r--r--views/meta.php4
3 files changed, 6 insertions, 1 deletions
diff --git a/views/archive/index.php b/views/archive/index.php
index de01503..64d6a77 100644
--- a/views/archive/index.php
+++ b/views/archive/index.php
@@ -1,5 +1,7 @@
<?php
+ $title = $_GET["page_url"] . ' archive';
include '../meta.php';
+
$page = null;
runController('archive');
?>
diff --git a/views/home/index.php b/views/home/index.php
index 6fbad4c..f567744 100644
--- a/views/home/index.php
+++ b/views/home/index.php
@@ -1,4 +1,5 @@
<?php
+ $title = 'Home';
include '../meta.php';
?>
diff --git a/views/meta.php b/views/meta.php
index 9a50aa8..4aa7b8f 100644
--- a/views/meta.php
+++ b/views/meta.php
@@ -1,6 +1,8 @@
<?php
-include_once "../header.php";
+if (isset($title)) {
+ include_once "../header.php";
+}
function end_page() {
include_once "../footer.php";