3 * Nostalgia: A skin which looks like Wikipedia did in its first year (2001).
9 if( !defined( 'MEDIAWIKI' ) ) {
17 class SkinNostalgia
extends SkinLegacy
{
18 var $skinname = 'nostalgia', $stylename = 'nostalgia',
19 $template = 'NostalgiaTemplate';
22 * @param $out OutputPage
24 function setupSkinUserCss( OutputPage
$out ){
25 parent
::setupSkinUserCss( $out );
26 $out->addModuleStyles( 'skins.nostalgia' );
31 class NostalgiaTemplate
extends LegacyTemplate
{
36 function doBeforeContent() {
37 $s = "\n<div id='content'>\n<div id='top'>\n";
38 $s .= '<div id="logo">' . $this->getSkin()->logoText( 'right' ) . '</div>';
40 $s .= $this->pageTitle();
41 $s .= $this->pageSubtitle() . "\n";
43 $s .= '<div id="topbar">';
44 $s .= $this->topLinks() . "\n<br />";
46 $notice = $this->getSkin()->getSiteNotice();
48 $s .= "\n<div id='siteNotice'>$notice</div>\n";
50 $s .= $this->pageTitleLinks();
52 $ol = $this->otherLanguages();
57 $cat = '<div id="catlinks" class="catlinks">' . $this->getSkin()->getCategoryLinks() . '</div>';
59 $s .= '<br />' . $cat;
62 $s .= "<br clear='all' /></div><hr />\n</div>\n";
63 $s .= "\n<div id='article'>";
72 global $wgOut, $wgUser;
75 $s = $this->getSkin()->mainPageLink() . $sep
76 . Linker
::specialLink( 'Recentchanges' );
78 if ( $wgOut->isArticle() ) {
79 $s .= $sep . '<strong>' . $this->editThisPage() . '</strong>' . $sep . $this->talkLink() .
80 $sep . $this->historyLink();
83 /* show links to different language variants */
84 $s .= $this->variantLinks();
85 $s .= $this->extensionTabLinks();
86 if ( $wgUser->isAnon() ) {
87 $s .= $sep . Linker
::specialLink( 'Userlogin' );
89 /* show user page and user talk links */
90 $s .= $sep . Linker
::link( $wgUser->getUserPage(), wfMsgHtml( 'mypage' ) );
91 $s .= $sep . Linker
::link( $wgUser->getTalkPage(), wfMsgHtml( 'mytalk' ) );
92 if ( $wgUser->getNewtalk() ) {
95 /* show watchlist link */
96 $s .= $sep . Linker
::specialLink( 'Watchlist' );
97 /* show my contributions link */
98 $s .= $sep . Linker
::link(
99 SpecialPage
::getSafeTitleFor( 'Contributions', $wgUser->getName() ),
100 wfMsgHtml( 'mycontris' ) );
101 /* show my preferences link */
102 $s .= $sep . Linker
::specialLink( 'Preferences' );
103 /* show upload file link */
104 if( UploadBase
::isEnabled() && UploadBase
::isAllowed( $wgUser ) === true ) {
105 $s .= $sep . $this->getUploadLink();
108 /* show log out link */
109 $s .= $sep . $this->getSkin()->specialLink( 'Userlogout' );
112 $s .= $sep . $this->specialPagesList();
120 function doAfterContent() {
121 $s = "\n</div><br clear='all' />\n";
123 $s .= "\n<div id='footer'><hr />";
125 $s .= $this->bottomLinks();
126 $s .= "\n<br />" . $this->pageStats();
127 $s .= "\n<br />" . $this->getSkin()->mainPageLink()
128 . ' | ' . $this->getSkin()->aboutLink()
129 . ' | ' . $this->searchForm();
131 $s .= "\n</div>\n</div>\n";