diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
commit | 222b01f5169f1c7e69762e0e8904c24f78f71882 (patch) | |
tree | 8e932e12546bb991357ec48eb1638d1770be7a35 /skins/Nostalgia.php | |
parent | 00ab76a6b686e98a914afc1975812d2b1aaa7016 (diff) |
update to MediaWiki 1.16.0
Diffstat (limited to 'skins/Nostalgia.php')
-rw-r--r-- | skins/Nostalgia.php | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/skins/Nostalgia.php b/skins/Nostalgia.php index d4dee0f4..d4f3f06f 100644 --- a/skins/Nostalgia.php +++ b/skins/Nostalgia.php @@ -1,14 +1,14 @@ <?php /** - * See docs/skin.txt + * Nostalgia: A skin which looks like Wikipedia did in its first year (2001). * - * @todo document * @file * @ingroup Skins */ -if( !defined( 'MEDIAWIKI' ) ) +if( !defined( 'MEDIAWIKI' ) ) { die( -1 ); +} /** * @todo document @@ -19,18 +19,19 @@ class SkinNostalgia extends Skin { function getStylesheet() { return 'common/nostalgia.css'; } + function getSkinName() { - return "nostalgia"; + return 'nostalgia'; } function doBeforeContent() { $s = "\n<div id='content'>\n<div id='top'>\n"; - $s .= "<div id=\"logo\">".$this->logoText( "right" )."</div>"; + $s .= '<div id="logo">' . $this->logoText( 'right' ) . '</div>'; $s .= $this->pageTitle(); $s .= $this->pageSubtitle() . "\n"; - $s .= "<div id=\"topbar\">"; + $s .= '<div id="topbar">'; $s .= $this->topLinks() . "\n<br />"; $notice = wfGetSiteNotice(); @@ -40,10 +41,14 @@ class SkinNostalgia extends Skin { $s .= $this->pageTitleLinks(); $ol = $this->otherLanguages(); - if($ol) $s .= "<br />" . $ol; + if( $ol ) { + $s .= '<br />' . $ol; + } $cat = $this->getCategoryLinks(); - if($cat) $s .= "<br />" . $cat; + if( $cat ) { + $s .= '<br />' . $cat; + } $s .= "<br clear='all' /></div><hr />\n</div>\n"; $s .= "\n<div id='article'>"; @@ -79,7 +84,7 @@ class SkinNostalgia extends Skin { $s .= $sep . $this->specialLink( 'watchlist' ); /* show my contributions link */ $s .= $sep . $this->link( - SpecialPage::getSafeTitleFor( "Contributions", $wgUser->getName() ), + SpecialPage::getSafeTitleFor( 'Contributions', $wgUser->getName() ), wfMsgHtml( 'mycontris' ) ); /* show my preferences link */ $s .= $sep . $this->specialLink( 'preferences' ); @@ -104,13 +109,11 @@ class SkinNostalgia extends Skin { $s .= $this->bottomLinks(); $s .= "\n<br />" . $this->pageStats(); $s .= "\n<br />" . $this->mainPageLink() - . " | " . $this->aboutLink() - . " | " . $this->searchForm(); + . ' | ' . $this->aboutLink() + . ' | ' . $this->searchForm(); $s .= "\n</div>\n</div>\n"; return $s; } } - - |