From d2a9280d7d520badc3613416cd224034195149f2 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Mon, 10 Feb 2025 19:18:15 +0200 Subject: [PATCH] Omit sidebar for non-logged in users --- app/templates/page-footer.php | 6 +++++- app/templates/page-header.php | 2 ++ public_html/index.php | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/templates/page-footer.php b/app/templates/page-footer.php index d1265f8..3b126aa 100644 --- a/app/templates/page-footer.php +++ b/app/templates/page-footer.php @@ -12,13 +12,17 @@ - + + + + + + + diff --git a/public_html/index.php b/public_html/index.php index f7985ac..cb2715e 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -180,6 +180,7 @@ if ($page == 'logout') { include '../app/templates/page-header.php'; include '../app/templates/page-menu.php'; include '../app/pages/login.php'; + include '../app/templates/page-footer.php'; } else { @@ -223,9 +224,8 @@ if ($page == 'logout') { // the page is not in allowed urls, loading "not found" page include '../app/templates/error-notfound.php'; } + include '../app/templates/page-footer.php'; } -// end with the footer -include '../app/templates/page-footer.php'; // flush the output buffer and show the page ob_end_flush();