koblog/bl-kernel/admin/themes/booty/html/sidebar.php

93 lines
2.8 KiB
PHP
Raw Normal View History

<!-- Use .flex-column to set a vertical direction -->
<ul class="nav flex-column">
2018-06-03 21:51:47 +02:00
<li class="nav-item mb-3">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'new-content' ?>">
<i class="bi-plus-circle"></i>
<?php $L->p('New content') ?>
</a>
2018-06-03 21:51:47 +02:00
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'new-content' ?>">
<i class="bi-kanban"></i>
<?php $L->p('Dashboard') ?>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'new-content' ?>">
<i class="bi-house"></i>
<?php $L->p('Website') ?>
</a>
</li>
2019-05-18 11:54:39 +02:00
<?php if (!checkRole(array('admin'),false)): ?>
2018-07-28 18:33:37 +02:00
<li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'content' ?>"><span class="bi-archive"></span><?php $L->p('Content') ?></a>
2018-07-28 18:33:37 +02:00
</li>
2018-11-09 00:59:06 +01:00
<li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'edit-user/'.$login->username() ?>"><span class="bi-user"></span><?php $L->p('Profile') ?></a>
2018-11-09 00:59:06 +01:00
</li>
2019-05-18 11:54:39 +02:00
<?php endif; ?>
2018-07-28 18:33:37 +02:00
<?php if (checkRole(array('admin'),false)): ?>
<li class="nav-item mt-3">
2018-08-18 15:37:13 +02:00
<h4><?php $L->p('Manage') ?></h4>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'content' ?>">
<i class="bi-folder"></i>
<?php $L->p('Content') ?>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>">
<i class="bi-bookmark"></i>
<?php $L->p('Categories') ?>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>">
<i class="bi-people"></i>
<?php $L->p('Users') ?>
</a>
</li>
<li class="nav-item mt-3">
2018-08-18 15:37:13 +02:00
<h4><?php $L->p('Settings') ?></h4>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'settings' ?>"><?php $L->p('General') ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'plugins' ?>"><?php $L->p('Plugins') ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'themes' ?>"><?php $L->p('Themes') ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'about' ?>"><?php $L->p('About') ?></a>
</li>
2019-05-09 17:19:18 +02:00
2019-03-28 21:37:50 +01:00
<?php endif; ?>
2018-06-05 23:50:03 +02:00
2019-03-28 21:37:50 +01:00
<?php if (checkRole(array('admin', 'editor'),false)): ?>
2019-05-09 17:19:18 +02:00
2018-07-02 00:24:53 +02:00
<?php
if (!empty($plugins['adminSidebar'])) {
echo '<li class="nav-item"><hr></li>';
foreach ($plugins['adminSidebar'] as $pluginSidebar) {
echo '<li class="nav-item">';
echo $pluginSidebar->adminSidebar();
echo '</li>';
}
}
?>
2019-05-09 17:19:18 +02:00
<?php endif; ?>
2018-06-05 23:50:03 +02:00
<li class="nav-item mt-5">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'logout' ?>"><span class="bi-arrow-circle-right"></span><?php $L->p('Logout') ?></a>
2018-06-05 23:50:03 +02:00
</li>
2018-06-24 13:37:45 +02:00
</ul>