<?php
/**
- * See skin.txt
+ * See docs/skin.txt
*
* @todo document
- * @addtogroup Skins
+ * @file
+ * @ingroup Skins
*/
if( !defined( 'MEDIAWIKI' ) )
/**
* @todo document
- * @addtogroup Skins
+ * @ingroup Skins
*/
class SkinStandard extends Skin {
/**
*
*/
- function getHeadScripts() {
+ function getHeadScripts( $allowUserJs ) {
global $wgStylePath, $wgJsMimeType, $wgStyleVersion;
- $s = parent::getHeadScripts();
+ $s = parent::getHeadScripts( $allowUserJs );
if ( 3 == $this->qbSetting() ) { # Floating left
$s .= "<script language='javascript' type='$wgJsMimeType' " .
"src='{$wgStylePath}/common/sticky.js?$wgStyleVersion'></script>\n";
/**
*
*/
- function getUserStyles() {
- global $wgStylePath, $wgStyleVersion;
- $s = '';
+ function setupSkinUserCss( OutputPage $out ){
if ( 3 == $this->qbSetting() ) { # Floating left
- $s .= "<style type='text/css'>\n" .
- "@import '{$wgStylePath}/common/quickbar.css?$wgStyleVersion';\n</style>\n";
+ $out->addStyle( 'common/quickbar.css' );
} else if ( 4 == $this->qbSetting() ) { # Floating right
- $s .= "<style type='text/css'>\n" .
- "@import '{$wgStylePath}/common/quickbar-right.css?$wgStyleVersion';\n</style>\n";
+ $out->addStyle( 'common/quickbar-right.css' );
}
- $s .= parent::getUserStyles();
- return $s;
+ parent::setupSkinUserCss( $out );
}
/**
*
*/
- function doGetUserStyles() {
- global $wgStylePath;
-
- $s = parent::doGetUserStyles();
+ function reallyGenerateUserStylesheet() {
+ $s = parent::reallyGenerateUserStylesheet();
$qb = $this->qbSetting();
if ( 2 == $qb ) { # Right
# Use the first heading from the Monobook sidebar as the "browse" section
$bar = $this->buildSidebar();
+ unset( $bar['SEARCH'] );
+ unset( $bar['LANGUAGES'] );
+ unset( $bar['TOOLBOX'] );
$browseLinks = reset( $bar );
foreach ( $browseLinks as $link ) {
$id=User::idFromName($wgTitle->getText());
$ip=User::isIP($wgTitle->getText());
- if($id||$ip) {
+ if( $id || $ip ){
$s .= $sep . $this->userContribsLink();
}
if( $this->showEmailUser( $id ) ) {
}
-
-?>