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 $s .= $this->getSkin()->getCategories();
59 $s .= "<br clear='all' /></div><hr />\n</div>\n";
60 $s .= "\n<div id='article'>";
71 $s = $this->getSkin()->mainPageLink() . $sep
72 . Linker
::specialLink( 'Recentchanges' );
74 if ( $this->data
['isarticle'] ) {
75 $s .= $sep . '<strong>' . $this->editThisPage() . '</strong>' . $sep . $this->talkLink() .
76 $sep . $this->historyLink();
79 /* show links to different language variants */
80 $s .= $this->variantLinks();
81 $s .= $this->extensionTabLinks();
82 if ( !$this->data
['loggedin'] ) {
83 $s .= $sep . Linker
::specialLink( 'Userlogin' );
85 /* show user page and user talk links */
86 $user = $this->getSkin()->getUser();
87 $s .= $sep . Linker
::link( $user->getUserPage(), wfMsgHtml( 'mypage' ) );
88 $s .= $sep . Linker
::link( $user->getTalkPage(), wfMsgHtml( 'mytalk' ) );
89 if ( $user->getNewtalk() ) {
92 /* show watchlist link */
93 $s .= $sep . Linker
::specialLink( 'Watchlist' );
94 /* show my contributions link */
95 $s .= $sep . Linker
::link(
96 SpecialPage
::getSafeTitleFor( 'Contributions', $this->data
['username'] ),
97 wfMsgHtml( 'mycontris' ) );
98 /* show my preferences link */
99 $s .= $sep . Linker
::specialLink( 'Preferences' );
100 /* show upload file link */
101 if( UploadBase
::isEnabled() && UploadBase
::isAllowed( $user ) === true ) {
102 $s .= $sep . $this->getUploadLink();
105 /* show log out link */
106 $s .= $sep . Linker
::specialLink( 'Userlogout' );
109 $s .= $sep . $this->specialPagesList();
117 function doAfterContent() {
118 $s = "\n</div><br clear='all' />\n";
120 $s .= "\n<div id='footer'><hr />";
122 $s .= $this->bottomLinks();
123 $s .= "\n<br />" . $this->pageStats();
124 $s .= "\n<br />" . $this->getSkin()->mainPageLink()
125 . ' | ' . $this->getSkin()->aboutLink()
126 . ' | ' . $this->searchForm();
128 $s .= "\n</div>\n</div>\n";