addStyle( 'common/shared.css', 'screen' ); $out->addStyle( 'modern/main.css', 'screen' ); $out->addStyle( 'modern/print.css', 'print' ); $out->addStyle( 'modern/rtl.css', 'screen', '', 'rtl' ); } } /** * @todo document * @ingroup Skins */ class ModernTemplate extends MonoBookTemplate { var $skin; /** * Template filter callback for Modern 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; $this->skin = $skin = $this->data['skin']; $action = $wgRequest->getText( 'action' ); // Suppress warnings to prevent notices about missing indexes in $this->data wfSuppressWarnings(); // Generate additional footer links $footerlinks = $this->data["footerlinks"]; // fold footerlinks into a single array using a bit of trickery $footerlinks = call_user_func_array('array_merge', array_values($footerlinks)); // Generate additional footer icons $footericons = $this->data["footericons"]; // Unset copyright.copyright since we don't need the icon and already output a copyright from footerlinks unset($footericons["copyright"]["copyright"]); if ( count($footericons["copyright"]) <= 0 ) { unset($footericons["copyright"]); } $this->html( 'headelement' ); ?>

html('title') ?>

html("specialpageattributes") ?>>
msg('tagline') ?>
data['newtalk'] ) { ?>
html('newtalk') ?>
data['sitenotice']) { ?>
html('sitenotice') ?>
html('userlangattributes') ?>>html('subtitle') ?>
data['undelete']) { ?>
html('undelete') ?>
data['showjumplinks']) { ?> html('bodytext') ?>
data['catlinks']) { $this->html('catlinks'); } ?> html ('dataAfterContent') ?>
html("userlangattributes") ?>> 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 ); } } ?>
msg('personaltools') ?>
html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?> html('reporttime') ?> data['debug'] ): ?>