2018-04-04 23:46:36 +02:00
|
|
|
<!-- Use .flex-column to set a vertical direction -->
|
|
|
|
<ul class="nav flex-column pt-4">
|
2018-06-03 21:51:47 +02:00
|
|
|
|
2018-07-02 00:24:53 +02:00
|
|
|
<li class="nav-item mb-4" style="margin-left: -4px;">
|
|
|
|
<?php if (defined('BLUDIT_PRO')): ?>
|
|
|
|
<img src="<?php echo HTML_PATH_ADMIN_THEME ?>img/logo.svg" width="20" height="20" alt=""><span class="ml-2 align-middle">BLUDIT PRO
|
|
|
|
<?php else: ?>
|
2018-06-03 21:51:47 +02:00
|
|
|
<img src="<?php echo HTML_PATH_ADMIN_THEME ?>img/logo.svg" width="20" height="20" alt=""> BLUDIT
|
2018-07-02 00:24:53 +02:00
|
|
|
<?php endif; ?>
|
2018-06-03 21:51:47 +02:00
|
|
|
</li>
|
|
|
|
|
2018-04-04 23:46:36 +02:00
|
|
|
<li class="nav-item">
|
2018-04-15 22:23:11 +02:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'dashboard' ?>"><span class="oi oi-dashboard"></span><?php $L->p('Dashboard') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-04-15 22:23:11 +02:00
|
|
|
<a class="nav-link" target="_blank" href="<?php echo HTML_PATH_ROOT ?>"><span class="oi oi-external-link"></span><?php $L->p('Website') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
2018-06-05 23:50:03 +02:00
|
|
|
|
2018-04-04 23:46:36 +02:00
|
|
|
<li class="nav-item mt-3">
|
2018-04-15 22:23:11 +02:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'new-content' ?>"><span class="oi oi-plus"></span><?php $L->p('New content') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
|
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">
|
|
|
|
<h4>Manage</h4>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-04-15 22:23:11 +02:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'content' ?>"><?php $L->p('Content') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-04-15 22:23:11 +02:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>"><?php $L->p('Categories') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-06-24 13:37:45 +02:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>"><?php $L->p('Users') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item mt-3">
|
|
|
|
<h4>Settings</h4>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-04-15 22:23:11 +02:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'settings' ?>"><?php $L->p('General') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-04-15 22:23:11 +02:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'plugins' ?>"><?php $L->p('Plugins') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-04-15 22:23:11 +02:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'themes' ?>"><?php $L->p('Themes') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-04-15 22:23:11 +02:00
|
|
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'about' ?>"><?php $L->p('About') ?></a>
|
2018-04-04 23:46:36 +02:00
|
|
|
</li>
|
2018-06-05 23:50:03 +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>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2018-06-10 13:54:55 +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="oi oi-account-logout"></span><?php $L->p('Logout') ?></a>
|
|
|
|
</li>
|
2018-06-24 13:37:45 +02:00
|
|
|
</ul>
|