r211 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r210‎ | r211 | r212 >
Date:17:56, 26 February 2002
Author:magnus_manske
Status:old
Tags:
Comment:
Nostalgy skin, part 1
Modified paths:
  • /trunk/phpwiki/fpw/special_editusersettings.php (modified) (history)
  • /trunk/phpwiki/fpw/wikiTextEn.php (modified) (history)
  • /trunk/phpwiki/fpw/wikiUser.php (modified) (history)

Diff [purge]

Index: trunk/phpwiki/fpw/wikiUser.php
@@ -14,6 +14,7 @@
1515 if ( $this->options["skin"] == "" ) $this->skinBlank () ;
1616 else if ( $this->options["skin"] == "None" ) $this->skinBlank () ;
1717 else if ( $this->options["skin"] == "Star Trek" ) $this->skinStarTrek () ;
 18+ else if ( $this->options["skin"] == "Nostalgy" ) $this->skinNostalgy () ;
1819 }
1920
2021 # This sets the options for the standard skin
@@ -50,6 +51,22 @@
5152 $this->options["tabLine2"] = " bgcolor=\"#333333\"" ;
5253 }
5354
 55+ # This sets the options for the Classic skin
 56+ function skinNostalgy () {
 57+ $this->skinBlank() ;
 58+ $this->options["background"] = "#FFFFFF" ;
 59+ $this->options["text"] = "#000000" ;
 60+# $this->options["forceQuickBar"] = "none" ;
 61+# $this->options["quickBarBackground"] = " bgcolor=yellow " ;
 62+# $this->options["textTableBackground"] = " bgcolor=\"#444444\"" ;
 63+# $this->options["forceLinks"] = " style=\"color:#0000FF;text-decoration:none\" " ;
 64+# $this->options["leftImage"] = $wikiStarTrekImage ;
 65+# $this->options["borderColor"] = "yellow" ;
 66+# $this->options["tabLine0"] = " bgcolor=\"#550055\" " ;
 67+# $this->options["tabLine1"] = "" ;
 68+# $this->options["tabLine2"] = " bgcolor=\"#333333\"" ;
 69+ }
 70+
5471 # Creates a style sheet for the page from the skin & link style options
5572 function styleSheet( $action = "view" ) {
5673 global $namespaceBackground ;
Index: trunk/phpwiki/fpw/special_editusersettings.php
@@ -55,7 +55,7 @@
5656
5757 global $wikiLoggedInAs , $wikiID_Help , $wikiViewRecentChanges ;
5858 global $wikiQuickBarSettings , $wikiSettingsNone , $wikiSettingsStandard , $wikiSettingsLeft , $wikiSettingsRight ;
59 - global $wikiOldPassword , $wikiNewPassword , $wikiYourPasswordAgain , $wikiSkin , $wikiStarTrek ;
 59+ global $wikiOldPassword , $wikiNewPassword , $wikiYourPasswordAgain , $wikiSkin , $wikiStarTrek , $wikiNostalgy ;
6060 global $wikiShowHoverBox , $wikiUnderlineLinks , $wikiNewTopicsRed , $wikiJustifyParagraphs , $wikiShowRecentChangesTable ;
6161 global $wikiDoNumberHeadings , $wikiViewWithFrames , $wikiTurnedOn , $wikiTurnedOff ;
6262 global $wikiTextboxDimensions , $wikiCols , $wikiRows , $wikiYourEmail , $wikiResultsPerPage , $wikiTimeDiff , $wikiSave , $wikiReset ;
@@ -85,6 +85,7 @@
8686 $ret .= "<tr><td valign=top nowrap><b>$wikiSkin</b><br>\n" ;
8787 $ret .= "<input type=radio value=None ".$sk["None"]." name=doSkin>$wikiSettingsNone ($wikiSettingsStandard)<br>\n" ;
8888 $ret .= "<input type=radio value=\"Star Trek\" ".$sk["Star Trek"]." name=doSkin>$wikiStarTrek<br>\n" ;
 89+ $ret .= "<input type=radio value=\"Nostalgy\" ".$sk["Nostalgy"]." name=doSkin>$wikiNostalgy<br>\n" ;
8990
9091 #----------------------------------------------
9192 $ret .= "</td><td valign=top nowrap>" ;
Index: trunk/phpwiki/fpw/wikiTextEn.php
@@ -388,6 +388,7 @@
389389 $wikiLastRefreshed = "Last refreshed $1" ;
390390 $wikiValidate = "Validate this page" ;
391391 $wikiBlockIP = "Block this IP" ;
 392+$wikiNostalgy = "Nostalgy" ;
392393
393394 #---------------------------
394395 #Functions

Status & tagging log