summaryrefslogtreecommitdiff
path: root/skins/Nostalgia.php
diff options
context:
space:
mode:
Diffstat (limited to 'skins/Nostalgia.php')
-rw-r--r--skins/Nostalgia.php29
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;
}
}
-
-