Initial version of sidebar

main
Yasen Pramatarov 2024-08-02 16:07:50 +03:00
parent 80454de3f2
commit ae7929b4e1
5 changed files with 48 additions and 18 deletions

View File

@ -107,6 +107,7 @@ if (in_array($page, $allowed_urls)) {
include 'templates/page-header.php'; include 'templates/page-header.php';
include 'templates/page-menu.php'; include 'templates/page-menu.php';
include 'templates/block-message.php'; include 'templates/block-message.php';
include 'templates/page-sidebar.php';
include "pages/{$page}.php"; include "pages/{$page}.php";
} }

View File

@ -1,5 +1,10 @@
<!-- /Main content -->
</div>
<!-- Footer -->
<div id="footer">Jilo Web <?= $config['version'] ?> &copy;2024 - web interface for <a href="https://lindeas.com/jilo">Jilo</a></div> <div id="footer">Jilo Web <?= $config['version'] ?> &copy;2024 - web interface for <a href="https://lindeas.com/jilo">Jilo</a></div>
<!-- /Footer -->
</div> </div>

View File

@ -1,4 +1,5 @@
<!-- Menu -->
<div class="menu-container"> <div class="menu-container">
<ul class="menu-left"> <ul class="menu-left">
<li><a href="index.php">home</a></li> <li><a href="index.php">home</a></li>
@ -20,3 +21,4 @@
<?php } ?> <?php } ?>
</ul> </ul>
</div> </div>
<!-- /Menu -->

View File

@ -0,0 +1,22 @@
<div class="row">
<!-- Sidebar -->
<div class="col-md-3">
<button class="btn btn-primary mb-3" type="button" data-toggle="collapse" data-target="#sidebar" aria-expanded="false" aria-controls="sidebar">
sidebar
</button>
<div class="collapse show" id="sidebar">
<div class="card card-body bg-light">
<ul class="list-group">
<li class="list-group-item"><a href="#">stats</a></li>
<li class="list-group-item"><a href="#">config</a></li>
<li class="list-group-item"><a href="#">logs</a></li>
</ul>
</div>
</div>
</div>
<!-- /Sidebar -->
<div class="col-md-9">
<!-- Main content -->