Include category links in nostalgia & cologne blue skins.
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 31 May 2004 09:04:50 +0000 (09:04 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 31 May 2004 09:04:50 +0000 (09:04 +0000)
includes/Skin.php
includes/SkinCologneBlue.php
includes/SkinNostalgia.php

index ddcfdf3..873be41 100644 (file)
@@ -358,7 +358,7 @@ class Skin {
                return $s;
        }
        
-       function getCategories () {
+       function getCategoryLinks () {
                global $wgOut, $wgTitle, $wgUser, $wgParser;
                global $wgUseCategoryMagic;
                if( !$wgUseCategoryMagic ) return "" ;
@@ -369,7 +369,11 @@ class Skin {
                $s = $this->makeKnownLink( "Special:Categories",
                        wfMsg( "categories" ), "article=" . urlencode( $wgTitle->getPrefixedDBkey() ) )
                        . ": " . $t;
-               return "<p class='catlinks'>$s</p>";
+               return $s;
+       }
+       
+       function getCategories() {
+               return "<p class='catlinks'>" . $this->getCategoryLinks() . "</p>";
        }
 
        function getQuickbarCompensator( $rows = 1 )
index 0933645..c0c2a3b 100644 (file)
@@ -32,7 +32,9 @@ class SkinCologneBlue extends Skin {
                $s .= "</td><td align='right'>" ;
 
                $s .= "<font size='-1'><span id='langlinks'>" ;
-               $s .= str_replace ( "<br>" , "" , $this->otherLanguages() ) ;
+               $s .= str_replace ( "<br>" , "" , $this->otherLanguages() );
+               $cat = $this->getCategoryLinks();
+               if( $cat ) $s .= "<br />$cat\n";
                $s .= "<br />" . $this->pageTitleLinks();
                $s .= "</span></font>";
 
index 3d990ee..e402ba6 100644 (file)
@@ -28,6 +28,9 @@ class SkinNostalgia extends Skin {
 
                $ol = $this->otherLanguages();
                if($ol) $s .= "<br />" . $ol;
+               
+               $cat = $this->getCategoryLinks();
+               if($cat) $s .= "<br />" . $cat;
 
                $s .= "<br clear='all' /><hr />\n</div>\n";
                $s .= "\n<div id='article'>";