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