From 837b18f8db547a62b30e62ff607f56d4d2a19b0f Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 2 Sep 2004 00:25:56 +0000 Subject: [PATCH] * some comments * double to single quotes * function foobar () { shema * indentation fix in function getEditToolbar() --- includes/Skin.php | 350 +++++++++++++++++++--------------------------- 1 file changed, 146 insertions(+), 204 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 5c1ca0354e..e6ded0a47c 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -44,6 +44,11 @@ class RCCacheEntry extends RecentChange } } ; + +# The main skin class that provide methods and properties for all other skins +# including PHPTal skins. +# This base class is also the "Standard" skin. + class Skin { /* private */ var $lastdate, $lastline; @@ -53,25 +58,23 @@ class Skin { var $rcMoveIndex; var $postParseLinkColour = true; - function Skin() - { + function Skin() { global $wgUseOldExistenceCheck; $postParseLinkColour = !$wgUseOldExistenceCheck; $this->linktrail = wfMsg('linktrail'); } - function getSkinNames() - { + function getSkinNames() { global $wgValidSkinNames; return $wgValidSkinNames; } - function getStylesheet() - { + function getStylesheet() { return 'wikistandard.css'; } + function getSkinName() { - return "standard"; + return 'standard'; } # Get/set accessor for delayed link colouring @@ -79,8 +82,7 @@ class Skin { return wfSetVar( $this->postParseLinkColour, $setting ); } - function qbSetting() - { + function qbSetting() { global $wgOut, $wgUser; if ( $wgOut->isQuickbarSuppressed() ) { return 0; } @@ -89,8 +91,7 @@ class Skin { return $q; } - function initPage( &$out ) - { + function initPage( &$out ) { $fname = 'Skin::initPage'; wfProfileIn( $fname ); @@ -195,13 +196,12 @@ class Skin { $s .= $this->doGetUserStyles(); return $s."\n"; } + # placeholder, returns generated js in monobook - function getUserJs() { - return; - } + function getUserJs() { return; } - function getUserStyles() - { + # Return html code that include User stylesheets + function getUserStyles() { global $wgOut, $wgStylePath, $wgLang; $s = "