More hooks for admin panel

This commit is contained in:
Diego Najar 2018-03-19 19:55:31 +01:00
parent 2df30d12b0
commit 9b30b9aff6
4 changed files with 8 additions and 2 deletions

View File

@ -141,15 +141,16 @@ $(document).ready(function() {
<li <?php echo ($layout['view']=='about')?'class="uk-active"':'' ?>>
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'about' ?>"><?php $L->p('About') ?></a>
</li>
<?php } ?>
</ul>
<?php Theme::plugins('adminSidebar'); ?>
</div>
<div id="bl-view" class="uk-width-3-4">
<?php
if( Sanitize::pathFile(PATH_ADMIN_VIEWS, $layout['view'].'.php') ) {
if (Sanitize::pathFile(PATH_ADMIN_VIEWS, $layout['view'].'.php')) {
include(PATH_ADMIN_VIEWS.$layout['view'].'.php');
} else {
echo '<h1 style="width:100%; text-align:center">'.$L->g('Page not found').'</h1>';

View File

@ -218,6 +218,8 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
echo '</li>';
echo '</ul>';
Theme::plugins('adminContentSidebar');
echo '</div>';
echo '</div>';

View File

@ -193,6 +193,8 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
echo '</li>';
echo '<ul>';
Theme::plugins('adminContentSidebar');
echo '</div>';
echo '</div>';

View File

@ -21,6 +21,7 @@ $plugins = array(
'adminBodyBegin'=>array(),
'adminBodyEnd'=>array(),
'adminSidebar'=>array(),
'adminContentSidebar'=>array(),
'beforeRulesLoad'=>array(),
'beforeAll'=>array(),