" .
- "
"; - $s .= "escapeLocalURL() . "\">"; - $s .= "" . wfMsg( "sitetitle" ) . ""; + $s .= ' | '; + $s .= ''; + $s .= '' . wfMsg( 'sitetitle' ) . ''; - $s .= " | "; + $s .= ' | '; $s .= $this->sysLinks(); - $s .= " |
"; + $s .= ' | |||
'; - $s .= ""; - $s .= htmlspecialchars( wfMsg( "sitesubtitle" ) ) . ""; - $s .= " | " ; + $s .= ''; + $s .= htmlspecialchars( wfMsg( 'sitesubtitle' ) ) . ''; + $s .= ' | ';
- $s .= "" ;
- $s .= str_replace ( " " , "" , $this->otherLanguages() ); - $cat = $this->getCategoryLinks(); - if( $cat ) $s .= " $cat\n"; - $s .= " " . $this->pageTitleLinks(); - $s .= ""; + $s .= ''; + $s .= str_replace( ' ', '', $this->otherLanguages() ); + $cat = ' ' . $this->getSkin()->getCategoryLinks() . ' ';
+ if( $cat ) {
+ $s .= "$cat\n"; + } + $s .= ' ' . $this->pageTitleLinks(); + $s .= ''; $s .= " |
";
- $notice = wfGetSiteNotice();
+ $notice = $this->getSkin()->getSiteNotice();
if( $notice ) {
$s .= "\n
$notice
\n";
}
@@ -64,174 +97,201 @@ class SkinCologneBlue extends Skin {
return $s;
}
- function doAfterContent()
- {
- global $wgOut;
+ /**
+ * @return string
+ */
+ function doAfterContent(){
+ global $wgLang;
$s = "\n\n"; $s .= "\n
";
- $s .= "
"; + $s .= ' | ';
$s .= $this->bottomLinks();
- $s .= "\n " . $this->makeKnownLinkObj( Title::newMainPage() ) . " | " - . $this->aboutLink() . " | " - . $this->searchForm( wfMsg( "qbfind" ) ); + $s .= $wgLang->pipeList( array( + "\n " . Linker::link( + Title::newMainPage(), + null, + array(), + array(), + array( 'known', 'noclasses' ) + ), + $this->getSkin()->aboutLink(), + $this->searchForm( wfMsg( 'qbfind' ) ) + ) ); $s .= "\n " . $this->pageStats(); - $s .= " | ";
+ $s .= '';
if ( 2 == $qb ) { # Right
$s .= $this->getQuickbarCompensator();
}
$s .= "
";
- $sep = "
"; - $s .= $this->menuHead( "qbfind" ); + $sep = '
'; + $s .= $this->menuHead( 'qbfind' ); $s .= $this->searchForm(); - $s .= $this->menuHead( "qbbrowse" ); + $s .= $this->menuHead( 'qbbrowse' ); # Use the first heading from the Monobook sidebar as the "browse" section - $bar = $this->buildSidebar(); + $bar = $this->getSkin()->buildSidebar(); unset( $bar['SEARCH'] ); unset( $bar['LANGUAGES'] ); unset( $bar['TOOLBOX'] ); - $browseLinks = reset( $bar ); - foreach ( $browseLinks as $link ) { - if ( $link['text'] != '-' ) { - $s .= "" . - htmlspecialchars( $link['text'] ) . '' . $sep; + $barnumber = 1; + foreach ( $bar as $heading => $browseLinks ) { + if ( $barnumber > 1 ) { + $headingMsg = wfMessage( $heading ); + if ( $headingMsg->exists() ) { + $h = $headingMsg->text(); + } else { + $h = $heading; + } + $s .= "\n
\n";
return $s;
}
- function menuHead( $key )
- {
+ /**
+ * @param $key string
+ * @return string
+ */
+ function menuHead( $key ) {
$s = "\n"; - $s .= $this->menuHead( "qbfind" ); + $sep = '
'; + $s .= $this->menuHead( 'qbfind' ); $s .= $this->searchForm(); - $s .= $this->menuHead( "qbbrowse" ); + $s .= $this->menuHead( 'qbbrowse' ); # Use the first heading from the Monobook sidebar as the "browse" section - $bar = $this->buildSidebar(); + $bar = $this->getSkin()->buildSidebar(); unset( $bar['SEARCH'] ); unset( $bar['LANGUAGES'] ); unset( $bar['TOOLBOX'] ); - $browseLinks = reset( $bar ); - foreach ( $browseLinks as $link ) { - if ( $link['text'] != '-' ) { - $s .= "" . - htmlspecialchars( $link['text'] ) . '' . $sep; + $barnumber = 1; + foreach ( $bar as $heading => $browseLinks ) { + if ( $barnumber > 1 ) { + $headingMsg = wfMessage( $heading ); + if ( $headingMsg->exists() ) { + $h = $headingMsg->text(); + } else { + $h = $heading; + } + $s .= "\n