From c3968989258b64952f976a8bbb07960874f81c7a Mon Sep 17 00:00:00 2001 From: Niko Date: Fri, 11 Feb 2022 00:05:26 +0100 Subject: [PATCH] Redirect to /login when there is no session (enforcing) + New templates --- web/src/_templates/app/footer.php | 2 ++ web/src/_templates/app/header.php | 15 +++++++++++++++ web/src/_templates/pub/header.php | 2 +- web/src/app/app.php | 11 +++++++++-- 4 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 web/src/_templates/app/footer.php create mode 100644 web/src/_templates/app/header.php diff --git a/web/src/_templates/app/footer.php b/web/src/_templates/app/footer.php new file mode 100644 index 0000000..308b1d0 --- /dev/null +++ b/web/src/_templates/app/footer.php @@ -0,0 +1,2 @@ + + diff --git a/web/src/_templates/app/header.php b/web/src/_templates/app/header.php new file mode 100644 index 0000000..53165da --- /dev/null +++ b/web/src/_templates/app/header.php @@ -0,0 +1,15 @@ + + + <?php echo $title ?? '' ?> + + + + + + diff --git a/web/src/_templates/pub/header.php b/web/src/_templates/pub/header.php index 6af2ea5..53165da 100644 --- a/web/src/_templates/pub/header.php +++ b/web/src/_templates/pub/header.php @@ -1,6 +1,6 @@ - <?php echo $title ?> + <?php echo $title ?? '' ?>