Various additions and fixes
[mediawiki.git] / includes / SkinNostalgia.php
blobe31fcb0edbbaf6f665f4ee8686d49654a305e857
1 <?
2 # See skin.doc
4 class SkinNostalgia extends Skin {
6 function initPage()
8 global $wgOut, $wgStyleSheetPath;
10 $wgOut->addLink( "stylesheet", "",
11 "$wgStyleSheetPath/nostalgia.css" );
14 function doBeforeContent()
16 global $wgUser, $wgOut, $wgTitle;
18 $s = "\n<div id='content'>\n<div id='topbar'>";
19 $s .= $this->logoText( "right" );
21 $s .= $this->pageTitle();
22 $s .= $this->pageSubtitle() . "\n<p>";
24 $s .= $this->topLinks() . "\n<br>";
25 $s .= $this->pageTitleLinks();
27 $ol = $this->otherLanguages();
28 if($ol) $s .= "<br>" . $ol;
30 $s .= "<br clear=all><hr>\n</div>\n";
31 $s .= "\n<div id='article'>";
33 return $s;
36 function topLinks()
38 global $wgOut, $wgUser;
39 $sep = " |\n";
41 $s = $this->mainPageLink() . $sep
42 . $this->specialLink( "recentchanges" );
44 if ( $wgOut->isArticle() ) {
45 $s .= $sep . $this->editThisPage()
46 . $sep . $this->historyLink();
48 if ( 0 == $wgUser->getID() ) {
49 $s .= $sep . $this->specialLink( "userlogin" );
50 } else {
51 $s .= $sep . $this->specialLink( "userlogout" );
53 $s .= $sep . $this->specialPagesList();
55 return $s;
58 function doAfterContent()
60 global $wgUser, $wgOut;
62 $s = "\n</div><br clear=all>\n";
64 $s .= "\n<div id='footer'><hr>";
66 $s .= $this->bottomLinks();
67 $s .= "\n<br>" . $this->pageStats();
68 $s .= "\n<br>" . $this->mainPageLink()
69 . " | " . $this->aboutLink()
70 . " | " . $this->searchForm();
72 $s .= "\n</div>\n</div>\n";
74 return $s;