sidebar, topbar ausblenden wenn nicht angemeldet

This commit is contained in:
blaerf 2025-11-28 23:07:07 +01:00
parent bdd79a66cb
commit 2637715e48
2 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ function renderLayout(string $contentView, array $viewData, string $pageTitle, ?
<!-- Page Wrapper --> <!-- Page Wrapper -->
<div id="wrapper"> <div id="wrapper">
<!-- Begin Sidebar --> <!-- Begin Sidebar -->
<?php require $partialsPath . '/sidebar.php'; ?> <?php if (!defined('LOGIN_PAGE')): require $partialsPath . '/sidebar.php'; endif ?>
<!-- End of Sidebar --> <!-- End of Sidebar -->
<!-- Content Wrapper --> <!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column"> <div id="content-wrapper" class="d-flex flex-column">
@ -46,7 +46,7 @@ function renderLayout(string $contentView, array $viewData, string $pageTitle, ?
<!-- Main Content --> <!-- Main Content -->
<div id="content"> <div id="content">
<!-- Begin Topbar --> <!-- Begin Topbar -->
<?php require $partialsPath . '/topbar.php'; ?> <?php if (!defined('LOGIN_PAGE')): require $partialsPath . '/topbar.php'; endif; ?>
<!-- End of Topbar --> <!-- End of Topbar -->
<!-- Begin Page Content --> <!-- Begin Page Content -->
<div class="container-fluid"> <div class="container-fluid">
@ -62,8 +62,7 @@ function renderLayout(string $contentView, array $viewData, string $pageTitle, ?
<!-- End of Content Wrapper --> <!-- End of Content Wrapper -->
</div> </div>
<!-- End of Page Wrapper --> <!-- End of Page Wrapper -->
<?php require $partialsPath . '/scripts.php'; <?php require $partialsPath . '/scripts.php'; ?>
?>
</body> </body>
</html> </html>
<?php <?php

View File

@ -1,6 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
const LOGIN_PAGE = true;
/** @var string|null $error */ /** @var string|null $error */
?> ?>