3b19e41e6406bb190762d2e651c146cafb2a077c
[lhc/web/wiklou.git] / skins / Nostalgia.php
1 <?php
2 /**
3 * See skin.txt
4 *
5 * @todo document
6 * @package MediaWiki
7 * @subpackage Skins
8 */
9
10 if( !defined( 'MEDIAWIKI' ) )
11 die( -1 );
12
13 /**
14 * @todo document
15 * @package MediaWiki
16 * @subpackage Skins
17 */
18 class SkinNostalgia extends Skin {
19
20 function getStylesheet() {
21 return 'common/nostalgia.css';
22 }
23 function getSkinName() {
24 return "nostalgia";
25 }
26
27 function doBeforeContent() {
28
29 $s = "\n<div id='content'>\n<div id='topbar'>";
30 $s .= $this->logoText( "right" );
31
32 $s .= $this->pageTitle();
33 $s .= $this->pageSubtitle() . "\n";
34
35 $s .= $this->topLinks() . "\n<br />";
36
37 $notice = wfGetSiteNotice();
38 if( $notice ) {
39 $s .= "\n<div id='siteNotice'>$notice</div>\n";
40 }
41 $s .= $this->pageTitleLinks();
42
43 $ol = $this->otherLanguages();
44 if($ol) $s .= "<br />" . $ol;
45
46 $cat = $this->getCategoryLinks();
47 if($cat) $s .= "<br />" . $cat;
48
49 $s .= "<br clear='all' /><hr />\n</div>\n";
50 $s .= "\n<div id='article'>";
51
52 return $s;
53 }
54
55 function topLinks() {
56 global $wgOut, $wgUser;
57 $sep = " |\n";
58
59 $s = $this->mainPageLink() . $sep
60 . $this->specialLink( "recentchanges" );
61
62 if ( $wgOut->isArticle() ) {
63 $s .= $sep . $this->editThisPage()
64 . $sep . $this->historyLink();
65 }
66
67 /* show links to different language variants */
68 $s .= $this->variantLinks();
69 $s .= $this->extensionTabLinks();
70
71 if ( $wgUser->isAnon() ) {
72 $s .= $sep . $this->specialLink( "userlogin" );
73 } else {
74 $s .= $sep . $this->specialLink( "userlogout" );
75 }
76
77 $s .= $sep . $this->specialPagesList();
78
79 return $s;
80 }
81
82 function doAfterContent() {
83 $s = "\n</div><br clear='all' />\n";
84
85 $s .= "\n<div id='footer'><hr />";
86
87 $s .= $this->bottomLinks();
88 $s .= "\n<br />" . $this->pageStats();
89 $s .= "\n<br />" . $this->mainPageLink()
90 . " | " . $this->aboutLink()
91 . " | " . $this->searchForm();
92
93 $s .= "\n</div>\n</div>\n";
94
95 return $s;
96 }
97 }
98
99 ?>