Revert r85324 (making links grey for rev-del'd info). Per CR: grey is a bad color...
[lhc/web/wiklou.git] / skins / Nostalgia.php
index 9e89787..24dc90b 100644 (file)
@@ -18,6 +18,9 @@ class SkinNostalgia extends SkinLegacy {
        var $skinname = 'nostalgia', $stylename = 'nostalgia',
                $template = 'NostalgiaTemplate';
 
+       /**
+        * @param $out OutputPage
+        */
        function setupSkinUserCss( OutputPage $out ){
                parent::setupSkinUserCss( $out );
                $out->addModuleStyles( 'skins.nostalgia' );
@@ -27,6 +30,9 @@ class SkinNostalgia extends SkinLegacy {
 
 class NostalgiaTemplate extends LegacyTemplate {
 
+       /**
+        * @return string
+        */
        function doBeforeContent() {
                $s = "\n<div id='content'>\n<div id='top'>\n";
                $s .= '<div id="logo">' . $this->getSkin()->logoText( 'right' ) . '</div>';
@@ -59,12 +65,15 @@ class NostalgiaTemplate extends LegacyTemplate {
                return $s;
        }
 
+       /**
+        * @return string
+        */
        function topLinks() {
                global $wgOut, $wgUser;
                $sep = " |\n";
 
                $s = $this->getSkin()->mainPageLink() . $sep
-                 . $this->getSkin()->specialLink( 'Recentchanges' );
+                 . Linker::specialLink( 'Recentchanges' );
 
                if ( $wgOut->isArticle() ) {
                        $s .= $sep . '<strong>' . $this->editThisPage() . '</strong>' . $sep . $this->talkLink() .
@@ -75,22 +84,22 @@ class NostalgiaTemplate extends LegacyTemplate {
                $s .= $this->variantLinks();
                $s .= $this->extensionTabLinks();
                if ( $wgUser->isAnon() ) {
-                       $s .= $sep . $this->getSkin()->specialLink( 'Userlogin' );
+                       $s .= $sep . Linker::specialLink( 'Userlogin' );
                } else {
                        /* show user page and user talk links */
-                       $s .= $sep . $this->getSkin()->link( $wgUser->getUserPage(), wfMsgHtml( 'mypage' ) );
-                       $s .= $sep . $this->getSkin()->link( $wgUser->getTalkPage(), wfMsgHtml( 'mytalk' ) );
+                       $s .= $sep . Linker::link( $wgUser->getUserPage(), wfMsgHtml( 'mypage' ) );
+                       $s .= $sep . Linker::link( $wgUser->getTalkPage(), wfMsgHtml( 'mytalk' ) );
                        if ( $wgUser->getNewtalk() ) {
                                $s .= ' *';
                        }
                        /* show watchlist link */
-                       $s .= $sep . $this->getSkin()->specialLink( 'Watchlist' );
+                       $s .= $sep . Linker::specialLink( 'Watchlist' );
                        /* show my contributions link */
-                       $s .= $sep . $this->getSkin()->link(
+                       $s .= $sep . Linker::link(
                                SpecialPage::getSafeTitleFor( 'Contributions', $wgUser->getName() ),
                                wfMsgHtml( 'mycontris' ) );
                        /* show my preferences link */
-                       $s .= $sep . $this->getSkin()->specialLink( 'Preferences' );
+                       $s .= $sep . Linker::specialLink( 'Preferences' );
                        /* show upload file link */
                        if( UploadBase::isEnabled() && UploadBase::isAllowed( $wgUser ) === true ) {
                                $s .= $sep . $this->getUploadLink();
@@ -105,6 +114,9 @@ class NostalgiaTemplate extends LegacyTemplate {
                return $s;
        }
 
+       /**
+        * @return string
+        */
        function doAfterContent() {
                $s = "\n</div><br clear='all' />\n";