revert previous stuff. break things :)
[mediawiki.git] / skins / Nostalgia.php
blob36ee7919e39066f815913fd273d16c6bbecf10a4
1 <?php
2 /**
3 * See skin.txt
5 * @todo document
6 * @package MediaWiki
7 * @subpackage Skins
8 */
10 if( !defined( 'MEDIAWIKI' ) )
11 die();
13 /**
14 * @todo document
15 * @package MediaWiki
16 * @subpackage Skins
18 class SkinNostalgia extends Skin {
20 function initPage() {
21 # ...
24 function getStylesheet() {
25 return 'common/nostalgia.css';
27 function getSkinName() {
28 return "nostalgia";
31 function doBeforeContent() {
32 global $wgUser, $wgOut, $wgTitle;
34 $s = "\n<div id='content'>\n<div id='topbar'>";
35 $s .= $this->logoText( "right" );
37 $s .= $this->pageTitle();
38 $s .= $this->pageSubtitle() . "\n";
40 $s .= $this->topLinks() . "\n<br />";
42 $notice = wfGetSiteNotice();
43 if( $notice ) {
44 $s .= "\n<div id='siteNotice'>$notice</div>\n";
46 $s .= $this->pageTitleLinks();
48 $ol = $this->otherLanguages();
49 if($ol) $s .= "<br />" . $ol;
51 $cat = $this->getCategoryLinks();
52 if($cat) $s .= "<br />" . $cat;
54 $s .= "<br clear='all' /><hr />\n</div>\n";
55 $s .= "\n<div id='article'>";
57 return $s;
60 function topLinks() {
61 global $wgOut, $wgUser;
62 $sep = " |\n";
64 $s = $this->mainPageLink() . $sep
65 . $this->specialLink( "recentchanges" );
67 if ( $wgOut->isArticle() ) {
68 $s .= $sep . $this->editThisPage()
69 . $sep . $this->historyLink();
71 if ( $wgUser->isAnon() ) {
72 $s .= $sep . $this->specialLink( "userlogin" );
73 } else {
74 $s .= $sep . $this->specialLink( "userlogout" );
76 $s .= $sep . $this->specialPagesList();
78 return $s;
81 function doAfterContent() {
82 $s = "\n</div><br clear='all' />\n";
84 $s .= "\n<div id='footer'><hr />";
86 $s .= $this->bottomLinks();
87 $s .= "\n<br />" . $this->pageStats();
88 $s .= "\n<br />" . $this->mainPageLink()
89 . " | " . $this->aboutLink()
90 . " | " . $this->searchForm();
92 $s .= "\n</div>\n</div>\n";
94 return $s;