]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - skins/Nostalgia.php
MediaWiki 1.16.0
[autoinstallsdev/mediawiki.git] / skins / Nostalgia.php
index 2b9b2f67d0392cbb5d460c5c416036fa5037269d..d4f3f06f0a1dc0c1bef9a87ba31aa2e0cd6e824a 100644 (file)
@@ -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,13 +41,16 @@ 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 .= "<br clear='all' /></div><hr />\n</div>\n";
                $s .= "\n<div id='article'>";
 
                return $s;
@@ -60,8 +64,7 @@ class SkinNostalgia extends Skin {
                  . $this->specialLink( 'recentchanges' );
 
                if ( $wgOut->isArticle() ) {
-                       $s .=  $sep . $this->editThisPage()
-                         . $sep . $this->historyLink();
+                       $s .= $sep . '<strong>' . $this->editThisPage() . '</strong>' . $sep . $this->historyLink();
                }
 
                /* show links to different language variants */
@@ -81,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' );
@@ -106,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;
        }
 }
-
-