From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- skins/MonoBook.php | 53 ++++++++++++++--------------------------------------- 1 file changed, 14 insertions(+), 39 deletions(-) (limited to 'skins/MonoBook.php') diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 0cf72e93..f1fe5090 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -23,6 +23,9 @@ class SkinMonoBook extends SkinTemplate { var $skinname = 'monobook', $stylename = 'monobook', $template = 'MonoBookTemplate', $useHeadElement = true; + /** + * @param $out OutputPage + */ function setupSkinUserCss( OutputPage $out ) { global $wgHandheldStyle; parent::setupSkinUserCss( $out ); @@ -36,8 +39,6 @@ class SkinMonoBook extends SkinTemplate { } // 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' ); @@ -50,11 +51,6 @@ class SkinMonoBook extends SkinTemplate { */ 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 @@ -64,8 +60,6 @@ class MonoBookTemplate extends BaseTemplate { * @access private */ function execute() { - $this->skin = $this->data['skin']; - // Suppress warnings to prevent notices about missing indexes in $this->data wfSuppressWarnings(); @@ -75,8 +69,8 @@ class MonoBookTemplate extends BaseTemplate { data['sitenotice']) { ?>
html('sitenotice') ?>
-

html('title') ?>

-
+

html('title') ?>

+
msg('tagline') ?>
html('userlangattributes') ?>>html('subtitle') ?>
data['undelete']) { ?> @@ -84,7 +78,7 @@ class MonoBookTemplate extends BaseTemplate { data['newtalk'] ) { ?>
html('newtalk') ?>
data['showjumplinks']) { ?> - + html('bodytext') ?> @@ -108,15 +102,13 @@ class MonoBookTemplate extends BaseTemplate {
- renderPortals( $this->data['sidebar'] ); ?> @@ -136,7 +128,7 @@ class MonoBookTemplate extends BaseTemplate { foreach ( $validFooterIcons as $blockName => $footerIcons ) { ?>
- skin->makeFooterIcon( $icon ); ?> + getSkin()->makeFooterIcon( $icon ); ?> @@ -222,25 +214,8 @@ echo $footerEnd;
    data['content_actions'] as $key => $tab) { - $linkAttribs = array( 'href' => $tab['href'] ); - - if( isset( $tab["tooltiponly"] ) && $tab["tooltiponly"] ) { - $title = Linker::titleAttrib( "ca-$key" ); - if ( $title !== false ) { - $linkAttribs['title'] = $title; - } - } else { - $linkAttribs += Linker::tooltipAndAccesskeyAttribs( "ca-$key" ); - } - $linkHtml = Html::element( 'a', $linkAttribs, $tab['text'] ); - - /* Surround with a
  • */ - $liAttribs = array( 'id' => Sanitizer::escapeId( "ca-$key" ) ); - if( $tab['class'] ) { - $liAttribs['class'] = $tab['class']; - } - echo ' - ' . Html::rawElement( 'li', $liAttribs, $linkHtml ); + echo ' + ' . $this->makeListItem( $key, $tab ); } ?>
-- cgit v1.2.2