Njw has uploaded a new change for review. https://gerrit.wikimedia.org/r/98514
Change subject: Add any extra menus added to sidebar to middle column ...................................................................... Add any extra menus added to sidebar to middle column Change-Id: I50991302a79def85fb373747fbcf084a70b09b14 --- M Erudite.skin.php 1 file changed, 22 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/erudite refs/changes/14/98514/1 diff --git a/Erudite.skin.php b/Erudite.skin.php index 165fea8..3cf878b 100644 --- a/Erudite.skin.php +++ b/Erudite.skin.php @@ -87,9 +87,9 @@ <div id="menu"> <ul id="menu-urs" class="menu"> <?php - foreach( $this->data['sidebar']['navigation'] as $key => $val ) { - printf( '<li id="menu-item-%s" class="menu-item">', Sanitizer::escapeId( $val['id'] ) ); - printf( '<a href="%s">%s</a>', htmlspecialchars( $val['href'] ), htmlspecialchars( $val['text'] ) ); + foreach( $this->data['sidebar']['navigation'] as $item ) { + printf( '<li id="menu-item-%s" class="menu-item">', Sanitizer::escapeId( $item['id'] ) ); + printf( '<a href="%s">%s</a>', htmlspecialchars( $item['href'] ), htmlspecialchars( $item['text'] ) ); echo "</li>\n"; } ?> @@ -236,6 +236,25 @@ </ul> </li> + <?php + foreach( $this->data['sidebar'] as $name => $menu ) { + /* navigation is already handled by top menu */ + if($name == 'navigation' || empty($menu) ) { + continue; + } + echo "<li class='widget'>"; + printf( '<h3>%s</h3>', $name ); + echo "<ul>\n"; + foreach( $menu as $item ) { + printf( '<li><a href="%s">%s</a></li>' . "\n", + htmlspecialchars( $item['href'] ), + htmlspecialchars( $item['text'] ) + ); + } + echo "</ul></li>\n"; + } + ?> + <li class="widget"> <?php echo $this->msgWikiNoEdit( 'erudite-extracontent-column2' ); ?> </li> -- To view, visit https://gerrit.wikimedia.org/r/98514 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I50991302a79def85fb373747fbcf084a70b09b14 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/erudite Gerrit-Branch: master Gerrit-Owner: Njw <nick.wh...@durham.ac.uk> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits