feat: style site and user tools in sidebar

This uses the BEM methodology as far as possible in order to keep the
code as clean and simple as possible.
This commit is contained in:
Michael Große 2018-01-19 16:25:37 +01:00
commit d23a07793f
No known key found for this signature in database
GPG key ID: 7E31028FBFEACC79
3 changed files with 37 additions and 4 deletions

View file

@ -10,10 +10,10 @@
<span class="lbl"><?php echo $lang['site_tools']; ?></span>
</a></div>
<div class="nav-panel level1">
<ul id="sidebar-site-tools">
<ul id="sidebar-site-tools" class="toollist">
<?php
if (file_exists(DOKU_INC . 'inc/Menu/SiteMenu.php')) {
echo (new \dokuwiki\Menu\SiteMenu())->getListItems();
echo (new \dokuwiki\Menu\SiteMenu())->getListItems('toollist__listitem ');
} else {
//Pre-Greebo Backwards compatibility
tpl_toolsevent(
@ -37,10 +37,10 @@
<span class="lbl"><?php echo $lang['user_tools']; ?></span>
</a></div>
<div class="nav-panel level1">
<ul id="sidebar-user-tools">
<ul id="sidebar-user-tools" class="toollist">
<?php /* dokuwiki user tools */
if (file_exists(DOKU_INC . 'inc/Menu/UserMenu.php')) {
echo (new \dokuwiki\Menu\UserMenu())->getListItems();
echo (new \dokuwiki\Menu\UserMenu())->getListItems('toollist__listitem ');
} else {
//Pre-Greebo Backwards compatibility
tpl_toolsevent(