| Index: trunk/phase3/skins/CologneBlue.php |
| — | — | @@ -150,9 +150,13 @@ |
| 151 | 151 | return $s; |
| 152 | 152 | } |
| 153 | 153 | |
| | 154 | + /** |
| | 155 | + * Compute the sidebar |
| | 156 | + * @private |
| | 157 | + */ |
| 154 | 158 | function quickBar() |
| 155 | 159 | { |
| 156 | | - global $wgOut, $wgTitle, $wgUser, $wgLang, $wgContLang, $wgDisableUploads; |
| | 160 | + global $wgOut, $wgTitle, $wgUser, $wgLang, $wgContLang, $wgDisableUploads, $wgNavigationLinks; |
| 157 | 161 | |
| 158 | 162 | $tns=$wgTitle->getNamespace(); |
| 159 | 163 | |
| — | — | @@ -162,13 +166,16 @@ |
| 163 | 167 | $s .= $this->menuHead( "qbfind" ); |
| 164 | 168 | $s .= $this->searchForm(); |
| 165 | 169 | |
| 166 | | - $s .= $this->menuHead( "qbbrowse" ) |
| 167 | | - . $this->mainPageLink() |
| 168 | | - . $sep . $this->specialLink( "recentchanges" ) |
| 169 | | - . $sep . $this->specialLink( "randompage" ); |
| 170 | | - if ( wfMsgForContent ( "currentevents" ) != "-" ) $s .= $sep . $this->makeKnownLink( wfMsgForContent( "currentevents" ), "" ) ; |
| 171 | | - $s .= "\n"; |
| | 170 | + $s .= $this->menuHead( "qbbrowse" ); |
| 172 | 171 | |
| | 172 | + foreach ( $wgNavigationLinks as $link ) { |
| | 173 | + $msg = wfMsgForContent( $link['href'] ); |
| | 174 | + if ( $msg != '-' ) { |
| | 175 | + $s .= '<a href="' . $this->makeInternalOrExternalUrl( $msg ) . '">' . |
| | 176 | + wfMsg( $link['text'] ) . '</a>' . $sep; |
| | 177 | + } |
| | 178 | + } |
| | 179 | + |
| 173 | 180 | if ( $wgOut->isArticle() ) { |
| 174 | 181 | $s .= $this->menuHead( "qbedit" ); |
| 175 | 182 | $s .= "<strong>" . $this->editThisPage() . "</strong>"; |