X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=skins%2FModern.php;h=02e3b0af8cf91529e49fe2532ed34cebe7a7bac1;hb=2d106cb0503674570deb76cb8907dcedd8d2825c;hp=71ededcc1d678e1dc1d98a8890eb72ccfe56fcb8;hpb=6f04378c313f1608db91075df7c89e01cbc61587;p=lhc%2Fweb%2Fwiklou.git diff --git a/skins/Modern.php b/skins/Modern.php index 71ededcc1d..02e3b0af8c 100644 --- a/skins/Modern.php +++ b/skins/Modern.php @@ -21,12 +21,12 @@ class SkinModern extends SkinTemplate { var $skinname = 'modern', $stylename = 'modern', $template = 'ModernTemplate', $useHeadElement = true; + /** + * @param $out OutputPage + */ function setupSkinUserCss( OutputPage $out ){ - // Do not call parent::setupSkinUserCss(), we have our own print style - $out->addStyle( 'common/shared.css', 'screen' ); - $out->addStyle( 'modern/main.css', 'screen' ); - $out->addStyle( 'modern/print.css', 'print' ); - $out->addStyle( 'modern/rtl.css', 'screen', '', 'rtl' ); + parent::setupSkinUserCss( $out ); + $out->addModuleStyles ('skins.modern'); } } @@ -35,6 +35,10 @@ class SkinModern extends SkinTemplate { * @ingroup Skins */ class ModernTemplate extends MonoBookTemplate { + + /** + * @var Skin + */ var $skin; /** * Template filter callback for Modern skin. @@ -45,9 +49,7 @@ class ModernTemplate extends MonoBookTemplate { * @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(); @@ -61,41 +63,14 @@ class ModernTemplate extends MonoBookTemplate {
-
-
msg('views') ?>
- -
+cactions(); ?>
-
html("specialpageattributes") ?>> +
msg('tagline') ?>
@@ -113,6 +88,8 @@ class ModernTemplate extends MonoBookTemplate { data['showjumplinks']) { ?> html('bodytext') ?> + data['printfooter']) { ?>
html('printfooter'); ?>
+ html('debughtml'); ?>
data['catlinks']) { $this->html('catlinks'); } ?> html ('dataAfterContent') ?> @@ -123,24 +100,7 @@ class ModernTemplate extends MonoBookTemplate {
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 ); - } - } - ?> + renderPortals( $this->data['sidebar'] ); ?>
@@ -154,14 +114,10 @@ class ModernTemplate extends MonoBookTemplate {
msg('personaltools') ?>
@@ -193,13 +149,7 @@ class ModernTemplate extends MonoBookTemplate { ?>
- html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?> -html('reporttime') ?> -data['debug'] ): ?> - - + printTrail(); ?>