Moved doAfterContent from Skin.php to skins/Standard.php, as it's only used by Standa...
authorJens Frank <jeluf@users.mediawiki.org>
Sun, 3 Oct 2004 10:24:42 +0000 (10:24 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sun, 3 Oct 2004 10:24:42 +0000 (10:24 +0000)
includes/Skin.php
skins/Standard.php

index 872238d..8194e2b 100644 (file)
@@ -534,50 +534,7 @@ class Skin {
        }
 
        function doAfterContent() {
-               global $wgUser, $wgOut, $wgContLang;
-               $fname =  'Skin::doAfterContent';
-               wfProfileIn( $fname );
-               wfProfileIn( $fname.'-1' );
-
-               $s = "\n</div><br style=\"clear:both\" />\n";
-               $s .= "\n<div id='footer'>";
-               $s .= '<table border="0" cellspacing="0"><tr>';
-
-               wfProfileOut( $fname.'-1' );
-               wfProfileIn( $fname.'-2' );
-
-               $qb = $this->qbSetting();
-               $shove = ($qb != 0);
-               $left = ($qb == 1 || $qb == 3);
-               if($wgContLang->isRTL()) $left = !$left;
-
-               if ( $shove && $left ) { # Left
-                       $s .= $this->getQuickbarCompensator();
-               }
-               wfProfileOut( $fname.'-2' );
-               wfProfileIn( $fname.'-3' );
-               $l = $wgContLang->isRTL() ? 'right' : 'left';
-               $s .= "<td class='bottom' align='$l' valign='top'>";
-
-               $s .= $this->bottomLinks();
-               $s .= "\n<br />" . $this->mainPageLink()
-                 . ' | ' . $this->aboutLink()
-                 . ' | ' . $this->specialLink( 'recentchanges' )
-                 . ' | ' . $this->searchForm()
-                 . '<br /><span id="pagestats">' . $this->pageStats() . '</span>';
-
-               $s .= "</td>";
-               if ( $shove && !$left ) { # Right
-                       $s .= $this->getQuickbarCompensator();
-               }
-               $s .= "</tr></table>\n</div>\n</div>\n";
-
-               wfProfileOut( $fname.'-3' );
-               wfProfileIn( $fname.'-4' );
-               if ( 0 != $qb ) { $s .= $this->quickBar(); }
-               wfProfileOut( $fname.'-4' );
-               wfProfileOut( $fname );
-               return $s;
+       # overloaded by derived classes
        }
 
        function pageTitleLinks() {
index d4dd53d..bc69648 100644 (file)
@@ -79,6 +79,54 @@ class SkinStandard extends Skin {
                }
                return $a;
        }
+
+        function doAfterContent() {
+                global $wgUser, $wgOut, $wgContLang;
+                $fname =  'SkinStandard::doAfterContent';
+                wfProfileIn( $fname );
+                wfProfileIn( $fname.'-1' );
+
+                $s = "\n</div><br style=\"clear:both\" />\n";
+                $s .= "\n<div id='footer'>";
+                $s .= '<table border="0" cellspacing="0"><tr>';
+
+                wfProfileOut( $fname.'-1' );
+                wfProfileIn( $fname.'-2' );
+
+                $qb = $this->qbSetting();
+                $shove = ($qb != 0);
+                $left = ($qb == 1 || $qb == 3);
+                if($wgContLang->isRTL()) $left = !$left;
+
+                if ( $shove && $left ) { # Left
+                        $s .= $this->getQuickbarCompensator();
+                }
+                wfProfileOut( $fname.'-2' );
+                wfProfileIn( $fname.'-3' );
+                $l = $wgContLang->isRTL() ? 'right' : 'left';
+                $s .= "<td class='bottom' align='$l' valign='top'>";
+
+                $s .= $this->bottomLinks();
+                $s .= "\n<br />" . $this->mainPageLink()
+                  . ' | ' . $this->aboutLink()
+                  . ' | ' . $this->specialLink( 'recentchanges' )
+                  . ' | ' . $this->searchForm()
+                  . '<br /><span id="pagestats">' . $this->pageStats() . '</span>';
+
+                $s .= "</td>";
+                if ( $shove && !$left ) { # Right
+                        $s .= $this->getQuickbarCompensator();
+                }
+                $s .= "</tr></table>\n</div>\n</div>\n";
+
+                wfProfileOut( $fname.'-3' );
+                wfProfileIn( $fname.'-4' );
+                if ( 0 != $qb ) { $s .= $this->quickBar(); }
+                wfProfileOut( $fname.'-4' );
+                wfProfileOut( $fname );
+                return $s;
+        }
+
 }
 
 ?>