1
0
mirror of https://github.com/Hutchy68/pivot.git synced 2025-11-04 19:17:36 +01:00

Sidebar improvements

This commit is contained in:
MW install maintain even with core development
2018-03-28 17:43:26 -04:00
parent 15cce18901
commit 5b1a0c025e
4 changed files with 39 additions and 4 deletions

View File

@@ -300,10 +300,14 @@ class pivotTemplate extends BaseTemplate {
function renderSidebar() {
$sidebar = $this->getSidebar();
foreach ($sidebar as $boxName => $box) {
echo '<li><label class="sidebar" id="'.Sanitizer::escapeId( $box['id'] ).'"';echo Linker::tooltip( $box['id'] ).'>'.htmlspecialchars( $box['header'] ).'</label></li>';
echo '<ul class="portal" role="navigation">';
echo '<li><label class="sidebar active" id="'.Sanitizer::escapeId( $box['id'] ).'"';echo Linker::tooltip( $box['id'] ).'>'.htmlspecialchars( $box['header'] ).'</label>';
if ( is_array( $box['content'] ) ) {
echo '<ul class="portal-content">';
foreach ($box['content'] as $key => $item) { echo $this->makeListItem($key, $item); }
}
echo '</ul>';
}
echo '</li></ul>';
}
return; }
}