comment update, stupid cvs commit bot test..
[mediawiki.git] / includes / SkinNostalgia.php
blobc97c681ddd9b483847e96562d2182d119e4c7e0b
1 <?php
2 # See skin.doc
4 class SkinNostalgia extends Skin {
6 function initPage()
8 # ...
11 function getStylesheet()
13 return "nostalgia.css";
15 function getSkinName() {
16 return "nostalgia";
19 function doBeforeContent()
21 global $wgUser, $wgOut, $wgTitle;
23 $s = "\n<div id='content'>\n<div id='topbar'>";
24 $s .= $this->logoText( "right" );
26 $s .= $this->pageTitle();
27 $s .= $this->pageSubtitle() . "\n";
29 $s .= $this->topLinks() . "\n<br />";
30 $s .= $this->pageTitleLinks();
32 $ol = $this->otherLanguages();
33 if($ol) $s .= "<br />" . $ol;
35 $cat = $this->getCategoryLinks();
36 if($cat) $s .= "<br />" . $cat;
38 $s .= "<br clear='all' /><hr />\n</div>\n";
39 $s .= "\n<div id='article'>";
41 return $s;
44 function topLinks()
46 global $wgOut, $wgUser;
47 $sep = " |\n";
49 $s = $this->mainPageLink() . $sep
50 . $this->specialLink( "recentchanges" );
52 if ( $wgOut->isArticle() ) {
53 $s .= $sep . $this->editThisPage()
54 . $sep . $this->historyLink();
56 if ( 0 == $wgUser->getID() ) {
57 $s .= $sep . $this->specialLink( "userlogin" );
58 } else {
59 $s .= $sep . $this->specialLink( "userlogout" );
61 $s .= $sep . $this->specialPagesList();
63 return $s;
66 function doAfterContent()
68 global $wgUser, $wgOut;
70 $s = "\n</div><br clear='all' />\n";
72 $s .= "\n<div id='footer'><hr />";
74 $s .= $this->bottomLinks();
75 $s .= "\n<br />" . $this->pageStats();
76 $s .= "\n<br />" . $this->mainPageLink()
77 . " | " . $this->aboutLink()
78 . " | " . $this->searchForm();
80 $s .= "\n</div>\n</div>\n";
82 return $s;