sidebar, topbar ausblenden wenn nicht angemeldet
This commit is contained in:
parent
2637715e48
commit
191666736b
@ -57,6 +57,7 @@ class AuthController
|
|||||||
'view' => $viewPath,
|
'view' => $viewPath,
|
||||||
'data' => [
|
'data' => [
|
||||||
'error' => $errorMessage,
|
'error' => $errorMessage,
|
||||||
|
'loginPage' => true,
|
||||||
],
|
],
|
||||||
'pageTitle' => 'Login',
|
'pageTitle' => 'Login',
|
||||||
// Beim Login ist typischerweise kein Menüpunkt aktiv.
|
// Beim Login ist typischerweise kein Menüpunkt aktiv.
|
||||||
|
|||||||
@ -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 if (!defined('LOGIN_PAGE')): require $partialsPath . '/sidebar.php'; endif ?>
|
<?php if (!$viewData['loginPage']): 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 if (!defined('LOGIN_PAGE')): require $partialsPath . '/topbar.php'; endif; ?>
|
<?php if (!$viewData['loginPage']): 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">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user