(sanitizing r41770) An ID can't be used for two elements
[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='top'>\n";
29 $s .= "<div id=\"logo\">".$this->logoText( "right" )."</div>";
30
31 $s .= $this->pageTitle();
32 $s .= $this->pageSubtitle() . "\n";
33
34 $s .= "<div id=\"topbar\">";
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' /></div><hr />\n</div
50 >\n";
51 $s .= "\n<div id='article'>";
52
53 return $s;
54 }
55
56 function topLinks() {
57 global $wgOut, $wgUser;
58 $sep = " |\n";
59
60 $s = $this->mainPageLink() . $sep
61 . $this->specialLink( "recentchanges" );
62
63 if ( $wgOut->isArticle() ) {
64 $s .= $sep . $this->editThisPage()
65 . $sep . $this->historyLink();
66 }
67
68 /* show links to different language variants */
69 $s .= $this->variantLinks();
70 $s .= $this->extensionTabLinks();
71
72 if ( $wgUser->isAnon() ) {
73 $s .= $sep . $this->specialLink( "userlogin" );
74 } else {
75 $s .= $sep . $this->specialLink( "userlogout" );
76 }
77
78 $s .= $sep . $this->specialPagesList();
79
80 return $s;
81 }
82
83 function doAfterContent() {
84 $s = "\n</div><br clear='all' />\n";
85
86 $s .= "\n<div id='footer'><hr />";
87
88 $s .= $this->bottomLinks();
89 $s .= "\n<br />" . $this->pageStats();
90 $s .= "\n<br />" . $this->mainPageLink()
91 . " | " . $this->aboutLink()
92 . " | " . $this->searchForm();
93
94 $s .= "\n</div>\n</div>\n";
95
96 return $s;
97 }
98 }
99
100