1
0
mirror of https://github.com/Hutchy68/pivot.git synced 2025-10-26 23:17:36 +01:00

Sidebar update to output and pivot.css title fix

This commit is contained in:
MW install maintain even with core development
2018-02-15 09:32:33 -05:00
parent 8ae56081c1
commit aa36556cb9
2 changed files with 4 additions and 8 deletions

View File

@@ -291,16 +291,13 @@ class pivotTemplate extends BaseTemplate {
function renderSidebar() {
$sidebar = $this->getSidebar();
$toolbox = $this->getToolbox();
foreach ($sidebar as $boxName => $box) { if ( ($box['header'] != wfMessage( 'toolbox' )->text()) ) {
echo '<li id='.Sanitizer::escapeId( $box['id'] ); Linker::tooltip( $box['id'] ).'>';
foreach ($sidebar as $boxName => $box) {
echo '<div class="sidebar" id="'.Sanitizer::escapeId( $box['id'] ).'"';echo Linker::tooltip( $box['id'] ).'>';
echo '<li><label>'.htmlspecialchars( $box['header'] ).'</label></li>';
if ( is_array( $box['content'] ) ) {
foreach ($box['content'] as $key => $item) { echo $this->makeListItem($key, $item); }
} }
}
echo '<li><label>Toolbox</label></li>';
foreach ($toolbox as $key => $tbitem) { echo $this->makeListItem($key, $tbitem); }
}
echo '</div>'; }
}
}
?>