LAyout aufgeräumt

This commit is contained in:
blaerf 2025-11-28 22:57:33 +01:00
parent 3eac9a659e
commit bdd79a66cb
7 changed files with 66 additions and 66 deletions

View File

@ -27,17 +27,44 @@ function renderLayout(string $contentView, array $viewData, string $pageTitle, ?
}
$partialsPath = __DIR__ . '/partials';
require $partialsPath . '/head.php';
require $partialsPath . '/sidebar.php';
require $partialsPath . '/topbar.php';
?>
<!DOCTYPE html>
<html lang="de">
<!-- Begin Head -->
<?php require $partialsPath . '/head.php'; ?>
<!-- End of Head -->
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Begin Sidebar -->
<?php require $partialsPath . '/sidebar.php'; ?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Begin Topbar -->
<?php require $partialsPath . '/topbar.php'; ?>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<?php require $contentView; ?>
</div>
<!-- /.container-fluid -->
<!-- End of Page Content -->
</div>
<!-- End of Main Content -->
<!-- Begin Footer -->
<?php require $partialsPath . '/footer.php'; ?>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<?php require $partialsPath . '/scripts.php';
?>
</body>
</html>
<?php
require $partialsPath . '/footer.php';
require $partialsPath . '/scripts.php';
}

View File

@ -17,7 +17,7 @@ declare(strict_types=1);
<div class="text-center mb-4">
<h1 class="h4 text-gray-900">Willkommen beim AD Admin Tool</h1>
<p class="text-muted mb-0">
Dies ist unser Testserver für den <pre>develop</pre> Branch.
Dies ist unser Testserver für den <code>develop</code> Branch.
</p>
</div>

View File

@ -1,13 +1,8 @@
<?php
// public/views/partials/footer.php
?>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
<!-- Footer -->
<footer class="sticky-footer bg-white">
<div class="container my-auto">
<div class="copyright text-center my-auto">
@ -15,10 +10,3 @@
</div>
</div>
</footer>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->

View File

@ -1,8 +1,7 @@
<?php
// public/views/partials/head.php
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
@ -17,7 +16,4 @@
<link href="../../vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">

View File

@ -26,5 +26,4 @@
<script src="../../js/demo/chart-area-demo.js"></script>
<script src="../../js/demo/chart-pie-demo.js"></script>
</body>
</html>

View File

@ -1,7 +1,7 @@
<?php
// public/views/partials/sidebar.php
?>
<!-- Sidebar -->
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
<!-- Sidebar - Brand -->
@ -46,4 +46,3 @@
</div>
</ul>
<!-- End of Sidebar -->

View File

@ -1,14 +1,9 @@
<?php
// public/views/partials/topbar.php
?>
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">
<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
@ -42,8 +37,4 @@
</ul>
</nav>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
</nav>