Patch to only load $msgAllMessages instead of replacing the language object.
[mediawiki.git] / skins / Nostalgia.php
blob0b914bdc86e4e1e9317106f4180b4615759a0954
1 <?php
2 /**
3 * See skin.doc
5 * @todo document
6 * @package MediaWiki
7 * @subpackage Skins
8 */
10 /**
11 * @todo document
12 * @package MediaWiki
13 * @subpackage Skins
15 class SkinNostalgia extends Skin {
17 function initPage() {
18 # ...
21 function getStylesheet() {
22 return 'common/nostalgia.css';
24 function getSkinName() {
25 return "nostalgia";
28 function doBeforeContent() {
29 global $wgUser, $wgOut, $wgTitle, $wgSiteNotice;
31 $s = "\n<div id='content'>\n<div id='topbar'>";
32 $s .= $this->logoText( "right" );
34 $s .= $this->pageTitle();
35 $s .= $this->pageSubtitle() . "\n";
37 $s .= $this->topLinks() . "\n<br />";
38 if( $wgSiteNotice ) {
39 $s .= "\n<div id='siteNotice'>$wgSiteNotice</div>\n";
41 $s .= $this->pageTitleLinks();
43 $ol = $this->otherLanguages();
44 if($ol) $s .= "<br />" . $ol;
46 $cat = $this->getCategoryLinks();
47 if($cat) $s .= "<br />" . $cat;
49 $s .= "<br clear='all' /><hr />\n</div>\n";
50 $s .= "\n<div id='article'>";
52 return $s;
55 function topLinks() {
56 global $wgOut, $wgUser;
57 $sep = " |\n";
59 $s = $this->mainPageLink() . $sep
60 . $this->specialLink( "recentchanges" );
62 if ( $wgOut->isArticle() ) {
63 $s .= $sep . $this->editThisPage()
64 . $sep . $this->historyLink();
66 if ( 0 == $wgUser->getID() ) {
67 $s .= $sep . $this->specialLink( "userlogin" );
68 } else {
69 $s .= $sep . $this->specialLink( "userlogout" );
71 $s .= $sep . $this->specialPagesList();
73 return $s;
76 function doAfterContent() {
77 global $wgUser, $wgOut;
79 $s = "\n</div><br clear='all' />\n";
81 $s .= "\n<div id='footer'><hr />";
83 $s .= $this->bottomLinks();
84 $s .= "\n<br />" . $this->pageStats();
85 $s .= "\n<br />" . $this->mainPageLink()
86 . " | " . $this->aboutLink()
87 . " | " . $this->searchForm();
89 $s .= "\n</div>\n</div>\n";
91 return $s;