00001 <?php 00002 # See skin.doc 00003 00004 class SkinNostalgia extends Skin { 00005 00006 function initPage() 00007 { 00008 # ... 00009 } 00010 00011 function getStylesheet() 00012 { 00013 return "nostalgia.css"; 00014 } 00015 function getSkinName() { 00016 return "nostalgia"; 00017 } 00018 00019 function doBeforeContent() 00020 { 00021 global $wgUser, $wgOut, $wgTitle; 00022 00023 $s = "\n<div id='content'>\n<div id='topbar'>"; 00024 $s .= $this->logoText( "right" ); 00025 00026 $s .= $this->pageTitle(); 00027 $s .= $this->pageSubtitle() . "\n"; 00028 00029 $s .= $this->topLinks() . "\n<br />"; 00030 $s .= $this->pageTitleLinks(); 00031 00032 $ol = $this->otherLanguages(); 00033 if($ol) $s .= "<br />" . $ol; 00034 00035 $cat = $this->getCategoryLinks(); 00036 if($cat) $s .= "<br />" . $cat; 00037 00038 $s .= "<br clear='all' /><hr />\n</div>\n"; 00039 $s .= "\n<div id='article'>"; 00040 00041 return $s; 00042 } 00043 00044 function topLinks() 00045 { 00046 global $wgOut, $wgUser; 00047 $sep = " |\n"; 00048 00049 $s = $this->mainPageLink() . $sep 00050 . $this->specialLink( "recentchanges" ); 00051 00052 if ( $wgOut->isArticle() ) { 00053 $s .= $sep . $this->editThisPage() 00054 . $sep . $this->historyLink(); 00055 } 00056 if ( 0 == $wgUser->getID() ) { 00057 $s .= $sep . $this->specialLink( "userlogin" ); 00058 } else { 00059 $s .= $sep . $this->specialLink( "userlogout" ); 00060 } 00061 $s .= $sep . $this->specialPagesList(); 00062 00063 return $s; 00064 } 00065 00066 function doAfterContent() 00067 { 00068 global $wgUser, $wgOut; 00069 00070 $s = "\n</div><br clear='all' />\n"; 00071 00072 $s .= "\n<div id='footer'><hr />"; 00073 00074 $s .= $this->bottomLinks(); 00075 $s .= "\n<br />" . $this->pageStats(); 00076 $s .= "\n<br />" . $this->mainPageLink() 00077 . " | " . $this->aboutLink() 00078 . " | " . $this->searchForm(); 00079 00080 $s .= "\n</div>\n</div>\n"; 00081 00082 return $s; 00083 } 00084 } 00085 00086 ?>