2018-04-04 23:46:36 +02:00
|
|
|
<!-- Use .flex-column to set a vertical direction -->
|
2020-12-29 14:39:47 +01:00
|
|
|
<ul class="nav flex-column">
|
2018-06-03 21:51:47 +02:00
|
|
|
|
2020-12-29 14:39:47 +01:00
|
|
|
<li class="nav-item mb-3">
|
2021-01-12 21:46:42 +01:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'editor' ?>">
|
2021-01-16 13:03:16 +01:00
|
|
|
<i class="bi bi-plus-circle"></i>
|
2020-12-29 14:39:47 +01:00
|
|
|
<?php $L->p('New content') ?>
|
|
|
|
</a>
|
2018-06-03 21:51:47 +02:00
|
|
|
</li>
|
2018-04-04 23:46:36 +02:00
|
|
|
<li class="nav-item">
|
2021-01-12 21:46:42 +01:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'dashboard' ?>">
|
2021-01-16 13:03:16 +01:00
|
|
|
<i class="bi bi-kanban"></i>
|
2020-12-29 14:39:47 +01:00
|
|
|
<?php $L->p('Dashboard') ?>
|
|
|
|
</a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2021-10-25 09:24:28 +02:00
|
|
|
<a class="nav-link" target="_blank" rel="noopener noreferrer" href="<?php echo DOMAIN_BASE ?>">
|
2021-01-16 13:03:16 +01:00
|
|
|
<i class="bi bi-house"></i>
|
2020-12-29 14:39:47 +01:00
|
|
|
<?php $L->p('Website') ?>
|
|
|
|
</a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</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">
|
2021-01-16 13:03:16 +01:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'content' ?>"><span class="bi 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">
|
2021-01-16 13:03:16 +01:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'edit-user/'.$login->username() ?>"><span class="bi 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
|
|
|
|
2018-06-10 13:54:55 +02:00
|
|
|
<?php if (checkRole(array('admin'),false)): ?>
|
|
|
|
|
2018-04-04 23:46:36 +02:00
|
|
|
<li class="nav-item mt-3">
|
2018-08-18 15:37:13 +02:00
|
|
|
<h4><?php $L->p('Manage') ?></h4>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2020-12-29 14:39:47 +01:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'content' ?>">
|
2021-01-16 13:03:16 +01:00
|
|
|
<i class="bi bi-folder"></i>
|
2020-12-29 14:39:47 +01:00
|
|
|
<?php $L->p('Content') ?>
|
|
|
|
</a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2020-12-29 14:39:47 +01:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>">
|
2021-01-16 13:03:16 +01:00
|
|
|
<i class="bi bi-bookmark"></i>
|
2020-12-29 14:39:47 +01:00
|
|
|
<?php $L->p('Categories') ?>
|
|
|
|
</a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2020-12-29 14:39:47 +01:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>">
|
2021-01-16 13:03:16 +01:00
|
|
|
<i class="bi bi-people"></i>
|
2020-12-29 14:39:47 +01:00
|
|
|
<?php $L->p('Users') ?>
|
|
|
|
</a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item mt-3">
|
2018-08-18 15:37:13 +02:00
|
|
|
<h4><?php $L->p('Settings') ?></h4>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2021-01-16 13:03:16 +01:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'settings' ?>"><span class="bi bi-gear"></span><?php $L->p('General') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2021-01-16 13:03:16 +01:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'plugins' ?>"><span class="bi bi-node-plus"></span><?php $L->p('Plugins') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2021-01-16 13:03:16 +01:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'themes' ?>"><span class="bi bi-display"></span><?php $L->p('Themes') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2021-01-16 13:03:16 +01:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'about' ?>"><span class="bi bi-info-circle"></span><?php $L->p('About') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</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
|
|
|
|
2018-06-10 13:54:55 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
|
2018-06-05 23:50:03 +02:00
|
|
|
<li class="nav-item mt-5">
|
2021-01-16 13:03:16 +01:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'logout' ?>"><span class="bi bi-door-closed"></span><?php $L->p('Logout') ?></a>
|
2018-06-05 23:50:03 +02:00
|
|
|
</li>
|
2018-06-24 13:37:45 +02:00
|
|
|
</ul>
|