Skip to content

Commit

Permalink
Moved the "navigation" out and to the top.
Browse files Browse the repository at this point in the history
  • Loading branch information
igal committed Feb 18, 2010
1 parent ff1414e commit 74d5b61
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions OSBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,19 @@ class="mediawiki <?php $this->text('dir') ?> <?php $this->text('pageclass') ?> <
</div>
</div>
<div class='sidebar'>
<!-- User profile and actions -->
<ul class="xoxo">
<?php
# OSBRIDGE: Display navigation here
$sidebar = $this->data['sidebar'];
foreach ($sidebar as $boxName => $cont) {
if ( $boxName == 'navigation') {
$this->customBox( $boxName, $cont );
} else {
continue;
}
}
?>
<!-- User profile and actions -->
<li class="portlet" id="p-personal">
<h3><?php $this->msg('personaltools') ?></h3>
<ul>
Expand Down Expand Up @@ -254,8 +265,10 @@ class="mediawiki <?php $this->text('dir') ?> <?php $this->text('pageclass') ?> <
continue;
$this->toolbox();
} elseif ( $boxName == 'LANGUAGES' ) {
continue;
continue; # OSBRIDGE: Never display languages.
$this->languageBox();
} elseif ( $boxName == 'navigation') {
continue; # OSBRIDGE: We'll display the navigation elsewhere
} else {
$this->customBox( $boxName, $cont );
}
Expand Down

0 comments on commit 74d5b61

Please sign in to comment.