Localization: Splitting the date and time in the 'userrestricted-indef' messages...
[mediawiki.git] / skins / Nostalgia.php
bloba7eae66de8b6e427254ad5a2a665fc6630e89f12
1 <?php
2 /**
3 * See docs/skin.txt
5 * @todo document
6 * @file
7 * @ingroup Skins
8 */
10 if( !defined( 'MEDIAWIKI' ) )
11 die( -1 );
13 /**
14 * @todo document
15 * @ingroup Skins
17 class SkinNostalgia extends Skin {
19 function getStylesheet() {
20 return 'common/nostalgia.css';
22 function getSkinName() {
23 return "nostalgia";
26 function doBeforeContent() {
28 $s = "\n<div id='content'>\n<div id='topbar'>";
29 $s .= $this->logoText( "right" );
31 $s .= $this->pageTitle();
32 $s .= $this->pageSubtitle() . "\n";
34 $s .= $this->topLinks() . "\n<br />";
36 $notice = wfGetSiteNotice();
37 if( $notice ) {
38 $s .= "\n<div id='siteNotice'>$notice</div>\n";
40 $s .= $this->pageTitleLinks();
42 $ol = $this->otherLanguages();
43 if($ol) $s .= "<br />" . $ol;
45 $cat = $this->getCategoryLinks();
46 if($cat) $s .= "<br />" . $cat;
48 $s .= "<br clear='all' /><hr />\n</div>\n";
49 $s .= "\n<div id='article'>";
51 return $s;
54 function topLinks() {
55 global $wgOut, $wgUser;
56 $sep = " |\n";
58 $s = $this->mainPageLink() . $sep
59 . $this->specialLink( "recentchanges" );
61 if ( $wgOut->isArticle() ) {
62 $s .= $sep . $this->editThisPage()
63 . $sep . $this->historyLink();
66 /* show links to different language variants */
67 $s .= $this->variantLinks();
68 $s .= $this->extensionTabLinks();
70 if ( $wgUser->isAnon() ) {
71 $s .= $sep . $this->specialLink( "userlogin" );
72 } else {
73 $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;