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