* API: added categories property
[mediawiki.git] / skins / Nostalgia.php
blob1bb180ed9180a2b2164a457f5055ac181993ad68
1 <?php
2 /**
3 * See skin.txt
5 * @todo document
6 * @addtogroup Skins
7 */
9 if( !defined( 'MEDIAWIKI' ) )
10 die( -1 );
12 /**
13 * @todo document
14 * @addtogroup Skins
16 class SkinNostalgia extends Skin {
18 function getStylesheet() {
19 return 'common/nostalgia.css';
21 function getSkinName() {
22 return "nostalgia";
25 function doBeforeContent() {
27 $s = "\n<div id='content'>\n<div id='topbar'>";
28 $s .= $this->logoText( "right" );
30 $s .= $this->pageTitle();
31 $s .= $this->pageSubtitle() . "\n";
33 $s .= $this->topLinks() . "\n<br />";
35 $notice = wfGetSiteNotice();
36 if( $notice ) {
37 $s .= "\n<div id='siteNotice'>$notice</div>\n";
39 $s .= $this->pageTitleLinks();
41 $ol = $this->otherLanguages();
42 if($ol) $s .= "<br />" . $ol;
44 $cat = $this->getCategoryLinks();
45 if($cat) $s .= "<br />" . $cat;
47 $s .= "<br clear='all' /><hr />\n</div>\n";
48 $s .= "\n<div id='article'>";
50 return $s;
53 function topLinks() {
54 global $wgOut, $wgUser;
55 $sep = " |\n";
57 $s = $this->mainPageLink() . $sep
58 . $this->specialLink( "recentchanges" );
60 if ( $wgOut->isArticle() ) {
61 $s .= $sep . $this->editThisPage()
62 . $sep . $this->historyLink();
65 /* show links to different language variants */
66 $s .= $this->variantLinks();
67 $s .= $this->extensionTabLinks();
69 if ( $wgUser->isAnon() ) {
70 $s .= $sep . $this->specialLink( "userlogin" );
71 } else {
72 $s .= $sep . $this->specialLink( "userlogout" );
75 $s .= $sep . $this->specialPagesList();
77 return $s;
80 function doAfterContent() {
81 $s = "\n</div><br clear='all' />\n";
83 $s .= "\n<div id='footer'><hr />";
85 $s .= $this->bottomLinks();
86 $s .= "\n<br />" . $this->pageStats();
87 $s .= "\n<br />" . $this->mainPageLink()
88 . " | " . $this->aboutLink()
89 . " | " . $this->searchForm();
91 $s .= "\n</div>\n</div>\n";
93 return $s;