addModuleStyles( 'skins.monobook' ); // Ugh. Can't do this properly because $wgHandheldStyle may be a URL if( $wgHandheldStyle ) { // Currently in testing... try 'chick/main.css' $out->addStyle( $wgHandheldStyle, 'handheld' ); } // TODO: Migrate all of these //$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' ); // TODO: migrate //$out->addStyle( 'monobook/rtl.css', 'screen', '', 'rtl' ); } } /** * @todo document * @ingroup Skins */ class MonoBookTemplate extends BaseTemplate { /** * @var Skin */ 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() { $this->skin = $skin = $this->data['skin']; // Suppress warnings to prevent notices about missing indexes in $this->data wfSuppressWarnings(); $this->html( 'headelement' ); ?>
html("specialpageattributes") ?>> data['sitenotice']) { ?>
html('sitenotice') ?>

html('title') ?>

msg('tagline') ?>
html('userlangattributes') ?>>html('subtitle') ?>
data['undelete']) { ?>
html('undelete') ?>
data['newtalk'] ) { ?>
html('newtalk') ?>
data['showjumplinks']) { ?> html('bodytext') ?> data['catlinks']) { $this->html('catlinks'); } ?> data['dataAfterContent']) { $this->html ('dataAfterContent'); } ?>
html('userlangattributes') ?>> cactions( $skin ); ?>
msg('personaltools') ?>
html('userlangattributes') ?>> getPersonalTools() as $key => $item) { ?> makeListItem($key, $item); ?>
data['sidebar']; if ( !isset( $sidebar['SEARCH'] ) ) $sidebar['SEARCH'] = true; if ( !isset( $sidebar['TOOLBOX'] ) ) $sidebar['TOOLBOX'] = true; if ( !isset( $sidebar['LANGUAGES'] ) ) $sidebar['LANGUAGES'] = true; foreach ($sidebar as $boxName => $cont) { if ( $boxName == 'SEARCH' ) { $this->searchBox(); } elseif ( $boxName == 'TOOLBOX' ) { $this->toolbox(); } elseif ( $boxName == 'LANGUAGES' ) { $this->languageBox(); } else { $this->customBox( $boxName, $cont ); } } ?>
printTrail(); echo Html::closeElement( 'body' ); echo Html::closeElement( 'html' ); wfRestoreWarnings(); } // end of execute() method /*************************************************************************************************/ function searchBox() { global $wgUseTwoButtonsSearchForm; ?>
msg('views') ?>
msg('toolbox') ?>
data['language_urls'] ) { ?>
html('userlangattributes') ?>>msg('otherlanguages') ?>
    data['language_urls'] as $key => $langlink) { ?> makeListItem($key, $langlink); ?>
'generated-sidebar portlet', 'id' => Sanitizer::escapeId( "p-$bar" ) ); $tooltip = $this->skin->titleAttrib( "p-$bar" ); if ( $tooltip !== false ) { $portletAttribs['title'] = $tooltip; } echo ' ' . Html::openElement( 'div', $portletAttribs ); ?>