skinname = 'monobook'; $this->stylename = 'monobook'; $this->template = 'MonoBookTemplate'; } function setupSkinUserCss( OutputPage $out ) { global $wgHandheldStyle; parent::setupSkinUserCss( $out ); // Append to the default screen common & print styles... $out->addStyle( 'monobook/main.css', 'screen' ); if( $wgHandheldStyle ) { // Currently in testing... try 'chick/main.css' $out->addStyle( $wgHandheldStyle, 'handheld' ); } $out->addStyle( 'monobook/IE50Fixes.css', 'screen', 'lt IE 5.5000' ); $out->addStyle( 'monobook/IE55Fixes.css', 'screen', 'IE 5.5000' ); $out->addStyle( 'monobook/IE60Fixes.css', 'screen', 'IE 6' ); $out->addStyle( 'monobook/IE70Fixes.css', 'screen', 'IE 7' ); $out->addStyle( 'monobook/rtl.css', 'screen', '', 'rtl' ); //@@todo we can move this to the parent once we update all skins if( isset($this->pagecss) ) $out->addInlineStyle( $this->pagecss ); if( isset($this->usercss) ) $out->addInlineStyle( $this->usercss ); } function setupSkinUserJs( OutputPage $out ) { parent::setupSkinUserJs( $out ); $out->addScriptFile( 'wikibits.js' ); //@@todo can move to parent once we update all skins (to not include things twice if( isset($this->jsvarurl) ) $out->addScriptFile( $this->jsvarurl ); if( isset($this->userjs) ) $out->addScriptFile( $this->userjs ); if( isset($this->userjsprev) ) $out->addInlineScript( $this->userjsprev ); } } /** * @todo document * @ingroup Skins */ class MonoBookTemplate extends QuickTemplate { var $skin; /** * Template filter callback for MonoBook skin. * Takes an associative array of data set from a SkinTemplate-based * class, and a wrapper for MediaWiki's localization database, and * outputs a formatted page. * * @access private */ function execute() { global $wgRequest, $wgOut, $wgStyleVersion, $wgJsMimeType, $wgStylePath; $this->skin = $skin = $this->data['skin']; $action = $wgRequest->getText( 'action' ); // Suppress warnings to prevent notices about missing indexes in $this->data wfSuppressWarnings(); # FIXME: What is this? Should it apply to all skins? $path = htmlspecialchars( $wgStylePath ); $wgOut->addScript( << HTML ); echo $wgOut->headElement( $this->skin ); ?>
data['body_ondblclick']) { ?> ondblclick="text('body_ondblclick') ?>" data['body_onload']) { ?> onload="text('body_onload') ?>" class="mediawiki text('dir'); $this->text('capitalizeallnouns') ?> text('pageclass') ?> text('skinnameclass') ?>">