LAyout aufgeräumt
This commit is contained in:
parent
3eac9a659e
commit
bdd79a66cb
@ -27,17 +27,44 @@ function renderLayout(string $contentView, array $viewData, string $pageTitle, ?
|
|||||||
}
|
}
|
||||||
|
|
||||||
$partialsPath = __DIR__ . '/partials';
|
$partialsPath = __DIR__ . '/partials';
|
||||||
|
|
||||||
require $partialsPath . '/head.php';
|
|
||||||
require $partialsPath . '/sidebar.php';
|
|
||||||
require $partialsPath . '/topbar.php';
|
|
||||||
?>
|
?>
|
||||||
<!-- Begin Page Content -->
|
<!DOCTYPE html>
|
||||||
<div class="container-fluid">
|
<html lang="de">
|
||||||
<?php require $contentView; ?>
|
<!-- 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>
|
||||||
|
<!-- 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>
|
</div>
|
||||||
<!-- /.container-fluid -->
|
<!-- End of Page Wrapper -->
|
||||||
|
<?php require $partialsPath . '/scripts.php';
|
||||||
|
?>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
<?php
|
<?php
|
||||||
require $partialsPath . '/footer.php';
|
|
||||||
require $partialsPath . '/scripts.php';
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,7 +17,7 @@ declare(strict_types=1);
|
|||||||
<div class="text-center mb-4">
|
<div class="text-center mb-4">
|
||||||
<h1 class="h4 text-gray-900">Willkommen beim AD Admin Tool</h1>
|
<h1 class="h4 text-gray-900">Willkommen beim AD Admin Tool</h1>
|
||||||
<p class="text-muted mb-0">
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -1,13 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
// public/views/partials/footer.php
|
// public/views/partials/footer.php
|
||||||
?>
|
?>
|
||||||
</div>
|
|
||||||
<!-- /.container-fluid -->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- End of Main Content -->
|
|
||||||
|
|
||||||
<!-- Footer -->
|
|
||||||
<footer class="sticky-footer bg-white">
|
<footer class="sticky-footer bg-white">
|
||||||
<div class="container my-auto">
|
<div class="container my-auto">
|
||||||
<div class="copyright text-center my-auto">
|
<div class="copyright text-center my-auto">
|
||||||
@ -15,10 +10,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<!-- End of Footer -->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- End of Content Wrapper -->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- End of Page Wrapper -->
|
|
||||||
|
|||||||
@ -1,8 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
// public/views/partials/head.php
|
// public/views/partials/head.php
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="de">
|
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
@ -17,7 +16,4 @@
|
|||||||
<link href="../../vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
|
<link href="../../vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="page-top">
|
|
||||||
|
|
||||||
<!-- Page Wrapper -->
|
|
||||||
<div id="wrapper">
|
|
||||||
|
|||||||
@ -26,5 +26,4 @@
|
|||||||
<script src="../../js/demo/chart-area-demo.js"></script>
|
<script src="../../js/demo/chart-area-demo.js"></script>
|
||||||
<script src="../../js/demo/chart-pie-demo.js"></script>
|
<script src="../../js/demo/chart-pie-demo.js"></script>
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
// public/views/partials/sidebar.php
|
// public/views/partials/sidebar.php
|
||||||
?>
|
?>
|
||||||
<!-- Sidebar -->
|
|
||||||
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
|
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
|
||||||
|
|
||||||
<!-- Sidebar - Brand -->
|
<!-- Sidebar - Brand -->
|
||||||
@ -46,4 +46,3 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<!-- End of Sidebar -->
|
|
||||||
|
|||||||
@ -1,49 +1,40 @@
|
|||||||
<?php
|
<?php
|
||||||
// public/views/partials/topbar.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) -->
|
<!-- Sidebar Toggle (Topbar) -->
|
||||||
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
|
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
|
||||||
<i class="fa fa-bars"></i>
|
<i class="fa fa-bars"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<!-- Topbar Navbar -->
|
<!-- Topbar Navbar -->
|
||||||
<ul class="navbar-nav ml-auto">
|
<ul class="navbar-nav ml-auto">
|
||||||
|
|
||||||
<!-- Nav Item - User Information -->
|
<!-- Nav Item - User Information -->
|
||||||
<li class="nav-item dropdown no-arrow">
|
<li class="nav-item dropdown no-arrow">
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
|
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
|
||||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<span class="mr-2 d-none d-lg-inline text-gray-600 small">
|
<span class="mr-2 d-none d-lg-inline text-gray-600 small">
|
||||||
<?= isset($currentUsername)
|
<?= isset($currentUsername)
|
||||||
? htmlspecialchars($currentUsername, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8')
|
? htmlspecialchars($currentUsername, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8')
|
||||||
: 'Administrator' ?>
|
: 'Administrator' ?>
|
||||||
</span>
|
</span>
|
||||||
<img class="img-profile rounded-circle"
|
<img class="img-profile rounded-circle"
|
||||||
src="../../images/undraw_profile.svg">
|
src="../../images/undraw_profile.svg">
|
||||||
</a>
|
</a>
|
||||||
<!-- Dropdown - User Information -->
|
<!-- Dropdown - User Information -->
|
||||||
<div class="dropdown-menu dropdown-menu-right shadow animated--grow-in"
|
<div class="dropdown-menu dropdown-menu-right shadow animated--grow-in"
|
||||||
aria-labelledby="userDropdown">
|
aria-labelledby="userDropdown">
|
||||||
<a class="dropdown-item" href="../../index.php?route=logout">
|
<a class="dropdown-item" href="../../index.php?route=logout">
|
||||||
<i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
|
<i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
|
||||||
Logout
|
Logout
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
<!-- End of Topbar -->
|
|
||||||
|
|
||||||
<!-- Begin Page Content -->
|
|
||||||
<div class="container-fluid">
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user