From b9b85843572bf283f48285001e276ba7e61b63f6 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 22 Feb 2009 13:37:51 +0100 Subject: updated to MediaWiki 1.14.0 --- skins/ArchLinux.php | 69 +++++++++++++++++++++++++++++++++++------------------ 1 file changed, 46 insertions(+), 23 deletions(-) (limited to 'skins/ArchLinux.php') diff --git a/skins/ArchLinux.php b/skins/ArchLinux.php index 5ccdfe0e..a39cc5c9 100644 --- a/skins/ArchLinux.php +++ b/skins/ArchLinux.php @@ -17,14 +17,31 @@ if( !defined( 'MEDIAWIKI' ) ) */ class SkinArchLinux extends SkinTemplate { /** Using archlinux. */ - function initPage( &$out ) { - SkinTemplate::initPage( $out ); + function initPage( OutputPage $out ) { + parent::initPage( $out ); $this->skinname = 'archlinux'; $this->stylename = 'archlinux'; $this->template = 'ArchLinuxTemplate'; - # Bug 14520: skins that just include this file shouldn't load nonexis- - # tent CSS fix files. - $this->cssfiles = array( 'IE', 'IE50', 'IE55', 'IE60', 'IE70', 'rtl' ); + } + + function setupSkinUserCss( OutputPage $out ) { + global $wgHandheldStyle; + + parent::setupSkinUserCss( $out ); + + // Append to the default screen common & print styles... + $out->addStyle( 'archlinux/main.css', 'screen' ); + if( $wgHandheldStyle ) { + // Currently in testing... try 'chick/main.css' + $out->addStyle( $wgHandheldStyle, 'handheld' ); + } + + $out->addStyle( 'archlinux/IE50Fixes.css', 'screen', 'lt IE 5.5000' ); + $out->addStyle( 'archlinux/IE55Fixes.css', 'screen', 'IE 5.5000' ); + $out->addStyle( 'archlinux/IE60Fixes.css', 'screen', 'IE 6' ); + $out->addStyle( 'archlinux/IE70Fixes.css', 'screen', 'IE 7' ); + + $out->addStyle( 'archlinux/rtl.css', 'screen', '', 'rtl' ); } } @@ -59,17 +76,11 @@ class ArchLinuxTemplate extends QuickTemplate { html('headlinks') ?> <?php $this->text('pagetitle') ?> - - data['printable']) ) { ?>media="print" href="text('printcss') ?>?" /> - cssfiles ) ) { ?> - cssfiles ) ) { ?> - cssfiles ) ) { ?> - cssfiles ) ) { ?> - + html('csslinks') ?> + + + data ); ?> @@ -95,7 +106,7 @@ class ArchLinuxTemplate extends QuickTemplate { data['body_ondblclick']) { ?> ondblclick="text('body_ondblclick') ?>" data['body_onload']) { ?> onload="text('body_onload') ?>" - class="mediawiki text('nsclass') ?> text('dir') ?> text('pageclass') ?>"> + class="mediawiki text('dir') ?> text('pageclass') ?> text('skinnameclass') ?>"> data['sitenotice']) { ?>
html('sitenotice') ?>
-

data['displaytitle']!=""?$this->html('title'):$this->text('title') ?>

+

data['displaytitle']!=""?$this->html('title'):$this->text('title') ?>

msg('tagline') ?>

html('subtitle') ?>
@@ -136,6 +147,7 @@ class ArchLinuxTemplate extends QuickTemplate { html('bodytext') ?> data['catlinks']) { $this->html('catlinks'); } ?> + data['dataAfterContent']) { $this->html ('dataAfterContent'); } ?>
@@ -147,7 +159,7 @@ class ArchLinuxTemplate extends QuickTemplate {