Move image TOC into content area; a float tends to overlap and crunch in
[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();
12
13 /**
14 * @todo document
15 * @package MediaWiki
16 * @subpackage Skins
17 */
18 class SkinNostalgia extends Skin {
19
20 function initPage() {
21 # ...
22 }
23
24 function getStylesheet() {
25 return 'common/nostalgia.css';
26 }
27 function getSkinName() {
28 return "nostalgia";
29 }
30
31 function doBeforeContent() {
32 global $wgUser, $wgOut, $wgTitle;
33
34 $s = "\n<div id='content'>\n<div id='topbar'>";
35 $s .= $this->logoText( "right" );
36
37 $s .= $this->pageTitle();
38 $s .= $this->pageSubtitle() . "\n";
39
40 $s .= $this->topLinks() . "\n<br />";
41
42 $notice = wfGetSiteNotice();
43 if( $notice ) {
44 $s .= "\n<div id='siteNotice'>$notice</div>\n";
45 }
46 $s .= $this->pageTitleLinks();
47
48 $ol = $this->otherLanguages();
49 if($ol) $s .= "<br />" . $ol;
50
51 $cat = $this->getCategoryLinks();
52 if($cat) $s .= "<br />" . $cat;
53
54 $s .= "<br clear='all' /><hr />\n</div>\n";
55 $s .= "\n<div id='article'>";
56
57 return $s;
58 }
59
60 function topLinks() {
61 global $wgOut, $wgUser;
62 $sep = " |\n";
63
64 $s = $this->mainPageLink() . $sep
65 . $this->specialLink( "recentchanges" );
66
67 if ( $wgOut->isArticle() ) {
68 $s .= $sep . $this->editThisPage()
69 . $sep . $this->historyLink();
70 }
71 if ( $wgUser->isAnon() ) {
72 $s .= $sep . $this->specialLink( "userlogin" );
73 } else {
74 $s .= $sep . $this->specialLink( "userlogout" );
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 ?>