77 lines
2.9 KiB
PHP
77 lines
2.9 KiB
PHP
|
<!-- Use .flex-column to set a vertical direction -->
|
||
|
<ul class="nav flex-column pt-4">
|
||
|
|
||
|
<li class="nav-item mb-4" style="margin-left: -4px;">
|
||
|
<img src="<?php echo HTML_PATH_ADMIN_THEME ?>img/logo.svg" width="20" height="20" alt="bludit-logo"><span class="ml-2 align-middle"><?php echo (defined('BLUDIT_PRO'))?'BLUDIT PRO':'BLUDIT' ?></span>
|
||
|
</li>
|
||
|
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'dashboard' ?>"><span class="oi oi-dashboard"></span><?php $L->p('Dashboard') ?></a>
|
||
|
</li>
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" target="_blank" href="<?php echo HTML_PATH_ROOT ?>"><span class="oi oi-external-link"></span><?php $L->p('Website') ?></a>
|
||
|
</li>
|
||
|
|
||
|
<li class="nav-item mt-3">
|
||
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'new-content' ?>"><span style="color: #007bff;" class="oi oi-plus"></span><?php $L->p('New content') ?></a>
|
||
|
</li>
|
||
|
|
||
|
<?php if (checkRole(array('editor'),false)): ?>
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'content' ?>"><span class="oi oi-layers"></span><?php $L->p('Content') ?></a>
|
||
|
</li>
|
||
|
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'edit-user/'.$login->username() ?>"><span class="oi oi-person"></span><?php $L->p('Profile') ?></a>
|
||
|
</li>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
<?php if (checkRole(array('admin'),false)): ?>
|
||
|
|
||
|
<li class="nav-item mt-3">
|
||
|
<h4><?php $L->p('Manage') ?></h4>
|
||
|
</li>
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'content' ?>"><?php $L->p('Content') ?></a>
|
||
|
</li>
|
||
|
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>"><?php $L->p('Categories') ?></a>
|
||
|
</li>
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>"><?php $L->p('Users') ?></a>
|
||
|
</li>
|
||
|
|
||
|
<li class="nav-item mt-3">
|
||
|
<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>
|
||
|
|
||
|
<?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>';
|
||
|
}
|
||
|
}
|
||
|
?>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
<li class="nav-item mt-5">
|
||
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'logout' ?>"><span class="oi oi-account-logout"></span><?php $L->p('Logout') ?></a>
|
||
|
</li>
|
||
|
</ul>
|