2 # Generic PHPTal (http://phptal.sourceforge.net/) skin
3 # Based on Brion's smarty skin
4 # Copyright (C) Gabriel Wicke -- http://www.aulinx.de/
6 # Todo: Needs some serious refactoring into functions that correspond
7 # to the computations individual esi snippets need. Most importantly no body
8 # parsing for most of those of course.
10 # Set this in LocalSettings to enable phptal:
11 # set_include_path(get_include_path() . ":" . $IP.'/PHPTAL-NP-0.7.0/libs');
12 # $wgUsePHPTal = true;
14 # This program is free software; you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation; either version 2 of the License, or
17 # (at your option) any later version.
19 # This program is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details.
24 # You should have received a copy of the GNU General Public License along
25 # with this program; if not, write to the Free Software Foundation, Inc.,
26 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 # http://www.gnu.org/copyleft/gpl.html
29 require_once "GlobalFunctions.php";
30 require_once $IP."/PHPTAL-NP-0.7.0/libs/PHPTAL.php";
32 class MediaWiki_I18N
extends PHPTAL_I18N
34 var $_context = array();
36 function set($varName, $value) {
37 $this->_context
[$varName] = $value;
40 function translate($value) {
41 $value = wfMsg( $value );
42 // interpolate variables
43 while (preg_match('/\$([0-9]*?)/sm', $value, $m)) {
44 list($src, $var) = $m;
45 $varValue = @$this->_context
[$var];
46 $value = str_replace($src, $varValue, $value);
52 class SkinPHPTal
extends Skin
{
55 function initPage( &$out ) {
56 parent
::initPage( $out );
57 $this->skinname
= "davinci";
58 $this->template
= "xhtml_slim";
61 function outputPage( &$out ) {
62 global $wgTitle, $wgArticle, $wgUser, $wgLang, $wgOut;
63 global $wgScript, $wgStylePath, $wgLanguageCode, $wgUseNewInterlanguage;
64 global $wgMimeType, $wgOutputEncoding, $wgUseDatabaseMessages, $wgRequest;
65 global $wgDisableCounters, $wgLogo, $action, $wgFeedClasses;
67 extract( $wgRequest->getValues( 'oldid', 'diff' ) );
69 $this->initPage( $out );
70 $tpl = new PHPTAL($this->template
. '.pt', 'templates');
72 #if ( $wgUseDatabaseMessages ) { // uncomment this to fall back to GetText
73 $tpl->setTranslator(new MediaWiki_I18N());
76 $this->thispage
= $wgTitle->getPrefixedDbKey();
77 $this->thisurl
= $wgTitle->getPrefixedURL();
78 $this->loggedin
= $wgUser->getID() != 0;
79 $this->iscontent
= ($wgTitle->getNamespace() != Namespace::getSpecial() );
80 $this->iseditable
= ($this->iscontent
and !($action == 'edit' or $action == 'submit'));
81 $this->username
= $wgUser->getName();
82 $this->userpage
= $wgLang->getNsText( Namespace::getUser() ) . ":" . $wgUser->getName();
83 $this->userpageUrlDetails
= $this->makeUrlDetails($this->userpage
);
85 $this->usercss
= $this->userjs
= $this->userjsprev
= false;
86 if( $this->loggedin
) { $this->setupUserCssJs(); }
88 $this->titletxt
= $wgTitle->getPrefixedText();
90 $tpl->set( "title", $wgOut->getPageTitle() );
91 $tpl->set( "pagetitle", $wgOut->getHTMLTitle() );
93 $tpl->setRef( "thispage", &$this->thispage
);
94 $subpagestr = $this->subPageSubtitle();
96 "subtitle", !empty($subpagestr)?
97 '<span class="subpages">'.$subpagestr.'</span>'.$out->getSubtitle():
100 $tpl->set( 'catlinks', $this->getCategories());
101 if( $wgOut->isSyndicated() ) {
103 foreach( $wgFeedClasses as $format => $class ) {
104 $feeds[$format] = array(
106 'href' => $wgRequest->appendQuery( "feed=$format" ),
107 'ttip' => wfMsg('tooltip-'.$format)
110 $tpl->setRef( 'feeds', &$feeds );
112 $tpl->setRef( 'mimetype', &$wgMimeType );
113 $tpl->setRef( 'charset', &$wgOutputEncoding );
114 $tpl->set( 'headlinks', $out->getHeadLinks() );
115 $tpl->setRef( 'skinname', &$this->skinname
);
116 $tpl->setRef( "loggedin", &$this->loggedin
);
117 /* XXX currently unused, might get useful later
118 $tpl->set( "editable", ($wgTitle->getNamespace() != NS_SPECIAL ) );
119 $tpl->set( "exists", $wgTitle->getArticleID() != 0 );
120 $tpl->set( "watch", $wgTitle->userIsWatching() ? "unwatch" : "watch" );
121 $tpl->set( "protect", count($wgTitle->getRestrictions()) ? "unprotect" : "protect" );
122 $tpl->set( "helppage", wfMsg('helppage'));
123 $tpl->set( "sysop", $wgUser->isSysop() );
125 $tpl->set( "searchaction", $this->escapeSearchLink() );
126 $tpl->setRef( "stylepath", &$wgStylePath );
127 $tpl->setRef( "logopath", &$wgLogo );
128 $tpl->setRef( "lang", &$wgLanguageCode );
129 $tpl->set( "dir", $wgLang->isRTL() ?
"rtl" : "ltr" );
130 $tpl->set( "rtl", $wgLang->isRTL() );
131 $tpl->set( "langname", $wgLang->getLanguageName( $wgLanguageCode ) );
132 $tpl->setRef( "username", &$this->username
);
133 $tpl->setRef( "userpage", &$this->userpage
);
134 $tpl->setRef( "userpageurl", &$this->userpageUrlDetails
['href']);
135 $tpl->setRef( "usercss", &$this->usercss
);
136 $tpl->setRef( "userjs", &$this->userjs
);
137 $tpl->setRef( "userjsprev", &$this->userjsprev
);
138 if( $wgUser->getNewtalk() ) {
139 $usertitle = Title
::newFromText( $this->userpage
);
140 $usertalktitle = $usertitle->getTalkPage();
141 if($usertalktitle->getPrefixedDbKey() != $this->thispage
){
143 $ntl = wfMsg( "newmessages",
144 $this->makeKnownLink(
145 $wgLang->getNsText( Namespace::getTalk( Namespace::getUser() ) )
146 . ":" . $this->username
,
147 wfMsg("newmessageslink") )
154 $tpl->setRef( "newtalk", &$ntl );
155 $tpl->setRef( "skin", &$this);
156 $tpl->set( "logo", $this->logoText() );
157 if ( $wgOut->isArticle() and (!isset( $oldid ) or isset( $diff )) and 0 != $wgArticle->getID() ) {
158 if ( !$wgDisableCounters ) {
159 $viewcount = $wgLang->formatNum( $wgArticle->getCount() );
161 $tpl->set('viewcount', wfMsg( "viewcount", $viewcount ));
164 $tpl->set('lastmod', $this->lastModified());
165 $tpl->set('copyright',$this->getCopyright());
167 $tpl->set( "copyrightico", $this->getCopyrightIcon() );
168 $tpl->set( "poweredbyico", $this->getPoweredBy() );
169 $tpl->set( "disclaimer", $this->disclaimerLink() );
170 $tpl->set( "about", $this->aboutLink() );
172 $tpl->setRef( "debug", &$out->mDebugtext
);
173 $tpl->set( "reporttime", $out->reportTime() );
175 $tpl->setRef( "bodytext", &$out->mBodytext
);
177 $language_urls = array();
178 foreach( $wgOut->getLanguageLinks() as $l ) {
179 $nt = Title
::newFromText( $l );
180 $language_urls[] = array('href' => $nt->getFullURL(),
181 'text' => ($wgLang->getLanguageName( $nt->getInterwiki()) != ''?
$wgLang->getLanguageName( $nt->getInterwiki()) : $l),
182 'class' => $wgLang->isRTL() ?
'rtl' : 'ltr');
184 if(count($language_urls)) {
185 $tpl->setRef( 'language_urls', &$language_urls);
187 $tpl->set('language_urls', false);
189 $tpl->set('personal_urls', $this->buildPersonalUrls());
190 $content_actions = $this->buildContentActionUrls();
191 $tpl->setRef('content_actions', &$content_actions);
192 // XXX: attach this from javascript, same with section editing
193 if($this->iseditable
&& $wgUser->getOption("editondblclick") )
195 $tpl->set('body-ondblclick', 'document.location = "' .$content_actions['edit']['href'] .'";');
197 $tpl->set('body-ondblclick', false);
199 $tpl->set( "nav_urls", $this->buildNavUrls() );
202 $res = $tpl->execute();
203 // result may be an error
204 if (PEAR
::isError($res)) {
205 echo $res->toString(), "\n";
212 # build array of urls for personal toolbar
213 function buildPersonalUrls() {
214 /* set up the default links for the personal toolbar */
215 global $wgShowIPinHeader;
216 $personal_urls = array();
217 if ($this->loggedin
) {
218 $personal_urls['userpage'] = array(
219 'text' => $this->username
,
220 'href' => &$this->userpageUrlDetails
['href'],
221 'class' => $this->userpageUrlDetails
['exists']?
false:'new',
222 'ttip' => wfMsg('tooltip-userpage'),
223 'akey' => wfMsg('accesskey-userpage')
225 $usertalkUrlDetails = $this->makeTalkUrlDetails($this->userpage
);
226 $personal_urls['mytalk'] = array(
227 'text' => wfMsg('mytalk'),
228 'href' => &$usertalkUrlDetails['href'],
229 'class' => $usertalkUrlDetails['exists']?
false:'new',
230 'ttip' => wfMsg('tooltip-mytalk'),
231 'akey' => wfMsg('accesskey-mytalk')
233 $personal_urls['preferences'] = array(
234 'text' => wfMsg('preferences'),
235 'href' => $this->makeSpecialUrl('Preferences'),
236 'ttip' => wfMsg('tooltip-preferences'),
237 'akey' => wfMsg('accesskey-preferences')
239 $personal_urls['watchlist'] = array(
240 'text' => wfMsg('watchlist'),
241 'href' => $this->makeSpecialUrl('Watchlist'),
242 'ttip' => wfMsg('tooltip-watchlist'),
243 'akey' => wfMsg('accesskey-watchlist')
245 $personal_urls['mycontris'] = array(
246 'text' => wfMsg('mycontris'),
247 'href' => $this->makeSpecialUrl('Contributions','target=' . $this->username
),
248 'ttip' => wfMsg('tooltip-mycontris'),
249 'akey' => wfMsg('accesskey-mycontris')
251 $personal_urls['logout'] = array(
252 'text' => wfMsg('userlogout'),
253 'href' => $this->makeSpecialUrl('Userlogout','returnto=' . $this->thisurl
),
254 'ttip' => wfMsg('tooltip-logout'),
255 'akey' => wfMsg('accesskey-logout')
258 if( $wgShowIPinHeader && isset( $_COOKIE[ini_get("session.name")] ) ) {
259 $personal_urls['anonuserpage'] = array(
260 'text' => $this->username
,
261 'href' => &$this->userpageUrlDetails
['href'],
262 'class' => $this->userpageUrlDetails
['exists']?
false:'new',
263 'ttip' => wfMsg('tooltip-anonuserpage'),
264 'akey' => wfMsg('accesskey-anonuserpage')
266 $usertalkUrlDetails = $this->makeTalkUrlDetails($this->userpage
);
267 $personal_urls['anontalk'] = array(
268 'text' => wfMsg('anontalk'),
269 'href' => &$usertalkUrlDetails['href'],
270 'class' => $usertalkUrlDetails['exists']?
false:'new',
271 'ttip' => wfMsg('tooltip-anontalk'),
272 'akey' => wfMsg('accesskey-anontalk')
274 $personal_urls['anonlogin'] = array(
275 'text' => wfMsg('userlogin'),
276 'href' => $this->makeSpecialUrl('Userlogin', 'returnto='.$this->thisurl
),
277 'ttip' => wfMsg('tooltip-login'),
278 'akey' => wfMsg('accesskey-login')
282 $personal_urls['login'] = array(
283 'text' => wfMsg('userlogin'),
284 'href' => $this->makeSpecialUrl('Userlogin', 'returnto='.$this->thisurl
),
285 'ttip' => wfMsg('tooltip-login'),
286 'akey' => wfMsg('accesskey-login')
291 return $personal_urls;
294 # an array of edit links by default used for the tabs
295 function buildContentActionUrls () {
296 global $wgTitle, $wgUser, $wgRequest;
297 $action = $wgRequest->getText( 'action' );
298 $section = $wgRequest->getText( 'section' );
299 $oldid = $wgRequest->getVal( 'oldid' );
300 $diff = $wgRequest->getVal( 'diff' );
301 $content_actions = array();
303 if( $this->iscontent
) {
305 $content_actions['article'] = array('class' => (!Namespace::isTalk( $wgTitle->getNamespace())) ?
'selected' : false,
306 'text' => $this->getNameSpaceWord(),
307 'href' => $this->makeArticleUrl($this->thispage
),
308 'ttip' => wfMsg('tooltip-article'),
309 'akey' => wfMsg('accesskey-article'));
311 /* set up the classes for the talk link */
312 $talk_class = (Namespace::isTalk( $wgTitle->getNamespace()) ?
'selected' : false);
313 $talktitle = Title
::newFromText( $this->titletxt
);
314 $talktitle = $talktitle->getTalkPage();
315 $this->checkTitle(&$talktitle, &$this->titletxt
);
316 if($talktitle->getArticleId() != 0) {
317 $content_actions['talk'] = array(
318 'class' => $talk_class,
319 'text' => wfMsg('talk'),
320 'href' => $this->makeTalkUrl($this->titletxt
),
321 'ttip' => wfMsg('tooltip-talk'),
322 'akey' => wfMsg('accesskey-talk')
325 $content_actions['talk'] = array(
326 'class' => $talk_class?
$talk_class.' new':'new',
327 'text' => wfMsg('talk'),
328 'href' => $this->makeTalkUrl($this->titletxt
,'action=edit'),
329 'ttip' => wfMsg('tooltip-talk'),
330 'akey' => wfMsg('accesskey-talk')
334 if ( $wgTitle->userCanEdit() ) {
335 $oid = ( $oldid && ! isset( $diff ) ) ?
"&oldid={$oldid}" : false;
336 $istalk = ( Namespace::isTalk( $wgTitle->getNamespace()) );
337 $istalkclass = $istalk?
' istalk':'';
338 $content_actions['edit'] = array(
339 'class' => ((($action == 'edit' or $action == 'submit') and $section != 'new') ?
'selected' : '').$istalkclass,
340 'text' => wfMsg('edit'),
341 'href' => $this->makeUrl($this->thispage
, 'action=edit'.$oid),
342 'ttip' => wfMsg('tooltip-edit'),
343 'akey' => wfMsg('accesskey-edit')
346 $content_actions['addsection'] = array(
347 'class' => $section == 'new'?
'selected':false,
348 'text' => wfMsg('addsection'),
349 'href' => $this->makeUrl($this->thispage
, 'action=edit§ion=new'),
350 'ttip' => wfMsg('tooltip-addsection'),
351 'akey' => wfMsg('accesskey-addsection')
355 $oid = ( $oldid && ! isset( $diff ) ) ?
"&oldid={$oldid}" : '';
356 $content_actions['edit'] = array('class' => ($action == 'edit') ?
'selected' : false,
357 'text' => wfMsg('viewsource'),
358 'href' => $this->makeUrl($this->thispage
, 'action=edit'.$oid),
359 'ttip' => wfMsg('tooltip-viewsource'),
360 'akey' => wfMsg('accesskey-viewsource'));
363 if ( $wgTitle->getArticleId() ) {
365 $content_actions['history'] = array('class' => ($action == 'history') ?
'selected' : false,
366 'text' => wfMsg('history_short'),
367 'href' => $this->makeUrl($this->thispage
, 'action=history'),
368 'ttip' => wfMsg('tooltip-history'),
369 'akey' => wfMsg('accesskey-history'));
371 # XXX: is there a rollback action anywhere or is it planned?
372 # Don't recall where i got this from...
373 /*if( $wgUser->getNewtalk() ) {
374 $content_actions['rollback'] = array('class' => ($action == 'rollback') ? 'selected' : false,
375 'text' => wfMsg('rollback_short'),
376 'href' => $this->makeUrl($this->thispage, 'action=rollback'),
377 'ttip' => wfMsg('tooltip-rollback'),
378 'akey' => wfMsg('accesskey-rollback'));
381 if($wgUser->isSysop()){
382 if(!$wgTitle->isProtected()){
383 $content_actions['protect'] = array(
384 'class' => ($action == 'protect') ?
'selected' : false,
385 'text' => wfMsg('protect'),
386 'href' => $this->makeUrl($this->thispage
, 'action=protect'),
387 'ttip' => wfMsg('tooltip-protect'),
388 'akey' => wfMsg('accesskey-protect')
392 $content_actions['unprotect'] = array(
393 'class' => ($action == 'unprotect') ?
'selected' : false,
394 'text' => wfMsg('unprotect'),
395 'href' => $this->makeUrl($this->thispage
, 'action=unprotect'),
396 'ttip' => wfMsg('tooltip-protect'),
397 'akey' => wfMsg('accesskey-protect')
400 $content_actions['delete'] = array(
401 'class' => ($action == 'delete') ?
'selected' : false,
402 'text' => wfMsg('delete'),
403 'href' => $this->makeUrl($this->thispage
, 'action=delete'),
404 'ttip' => wfMsg('tooltip-delete'),
405 'akey' => wfMsg('accesskey-delete')
408 if ( $wgUser->getID() != 0 ) {
409 if ( $wgTitle->userCanEdit()) {
410 $content_actions['move'] = array('class' => ($wgTitle->getDbKey() == 'Movepage' and $wgTitle->getNamespace
== Namespace::getSpecial()) ?
'selected' : false,
411 'text' => wfMsg('move'),
412 'href' => $this->makeSpecialUrl('Movepage', 'target='.$this->thispage
),
413 'ttip' => wfMsg('tooltip-move'),
414 'akey' => wfMsg('accesskey-move'));
416 $content_actions['move'] = array('class' => 'inactive',
417 'text' => wfMsg('move'),
419 'ttip' => wfMsg('tooltip-nomove'),
425 //article doesn't exist or is deleted
426 if($wgUser->isSysop()){
427 if( $n = $wgTitle->isDeleted() ) {
428 $content_actions['delete'] = array(
430 'text' => wfMsg( "undelete_short", $n ),
431 'href' => $this->makeSpecialUrl('Undelete/'.$this->thispage
),
432 'ttip' => wfMsg('tooltip-undelete', $n),
433 'akey' => wfMsg('accesskey-undelete')
439 if ( $wgUser->getID() != 0 and $action != 'edit' and $action != 'submit' ) {
440 if( !$wgTitle->userIsWatching()) {
441 $content_actions['watch'] = array('class' => ($action == 'watch' or $action == 'unwatch') ?
'selected' : false,
442 'text' => wfMsg('watch'),
443 'href' => $this->makeUrl($this->thispage
, 'action=watch'),
444 'ttip' => wfMsg('tooltip-watch'),
445 'akey' => wfMsg('accesskey-watch'));
447 $content_actions['watch'] = array('class' => ($action == 'unwatch' or $action == 'watch') ?
'selected' : false,
448 'text' => wfMsg('unwatch'),
449 'href' => $this->makeUrl($this->thispage
, 'action=unwatch'),
450 'ttip' => wfMsg('tooltip-unwatch'),
451 'akey' => wfMsg('accesskey-unwatch'));
456 /* show special page tab */
458 $content_actions['article'] = array('class' => 'selected',
459 'text' => wfMsg('specialpage'),
461 'ttip' => wfMsg('tooltip-specialpage'),
465 return $content_actions;
468 # build array of common navigation links
469 function buildNavUrls () {
470 global $wgTitle, $wgUser, $wgRequest;
471 global $wgSiteSupportPage;
473 $action = $wgRequest->getText( 'action' );
474 $oldid = $wgRequest->getVal( 'oldid' );
475 $diff = $wgRequest->getVal( 'diff' );
476 // XXX: remove htmlspecialchars when tal:attributes works with i18n:attributes
478 $nav_urls['mainpage'] = array('href' => htmlspecialchars( $this->makeI18nUrl('mainpage')));
479 $nav_urls['randompage'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Randompage')));
480 $nav_urls['recentchanges'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Recentchanges')));
481 $nav_urls['whatlinkshere'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Whatlinkshere', 'target='.$this->thispage
)));
482 $nav_urls['currentevents'] = (wfMsg('currentevents') != '-') ?
array('href' => htmlspecialchars( $this->makeI18nUrl('currentevents'))) : false;
483 $nav_urls['portal'] = (wfMsg('portal') != '-') ?
array('href' => htmlspecialchars( $this->makeI18nUrl('portal-url'))) : false;
484 $nav_urls['recentchangeslinked'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Recentchangeslinked', 'target='.$this->thispage
)));
485 $nav_urls['bugreports'] = array('href' => htmlspecialchars( $this->makeI18nUrl('bugreportspage')));
486 // $nav_urls['sitesupport'] = array('href' => htmlspecialchars( $this->makeI18nUrl('sitesupportpage')));
487 $nav_urls['sitesupport'] = array('href' => htmlspecialchars( $wgSiteSupportPage));
488 $nav_urls['help'] = array('href' => htmlspecialchars( $this->makeI18nUrl('helppage')));
489 $nav_urls['upload'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Upload')));
490 $nav_urls['specialpages'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Specialpages')));
493 $id=User
::idFromName($wgTitle->getText());
494 $ip=User
::isIP($wgTitle->getText());
496 if($id ||
$ip) { # both anons and non-anons have contri list
497 $nav_urls['contributions'] = array(
498 'href' => htmlspecialchars( $this->makeSpecialUrl('Contributions', "target=" . $wgTitle->getPartialURL() ) )
501 if ( 0 != $wgUser->getID() ) { # show only to signed in users
502 if($id) { # can only email non-anons
503 $nav_urls['emailuser'] = array(
504 'href' => htmlspecialchars( $this->makeSpecialUrl('Emailuser', "target=" . $wgTitle->getPartialURL() ) )
513 function getNameSpaceWord () {
515 switch ($wgTitle->getNamespace()) {
518 return wfMsg('nstab-main');
521 return wfMsg('nstab-user');
523 return wfMsg('nstab-media');
525 return wfMsg('nstab-special');
528 return wfMsg('nstab-wp');
531 return wfMsg('nstab-image');
533 case NS_MEDIAWIKI_TALK
:
534 return wfMsg('nstab-mediawiki');
536 case NS_TEMPLATE_TALK
:
537 return wfMsg('nstab-template');
540 return wfMsg('nstab-help');
542 case NS_CATEGORY_TALK
:
543 return wfMsg('nstab-category');
545 return wfMsg('nstab-main');
548 /* private */ function setupUserCssJs () {
549 global $wgRequest, $wgTitle;
550 $action = $wgRequest->getText('action');
551 if($wgTitle->isCssSubpage() and $action == 'submit' and $wgTitle->userCanEditCssJsSubpage()) {
553 $this->usercss
= $wgRequest->getText('wpTextbox1');
555 $this->usercss
= '@import url('.
556 $this->makeUrl($this->userpage
.'/'.$this->skinname
.'.css', 'action=raw&ctype=text/css').');';
558 if($wgTitle->isJsSubpage() and $action == 'submit' and $wgTitle->userCanEditCssJsSubpage()) {
559 # XXX: additional security check/prompt?
560 $this->userjsprev
= $wgRequest->getText('wpTextbox1');
562 $this->userjs
= $this->makeUrl($this->userpage
.'/'.$this->skinname
.'.js', 'action=raw&ctype=text/javascript');
567 class SkinDaVinci
extends SkinPHPTal
{
568 function initPage( &$out ) {
569 SkinPHPTal
::initPage( $out );
570 $this->skinname
= "davinci";
574 class SkinMono
extends SkinPHPTal
{
575 function initPage( &$out ) {
576 SkinPHPTal
::initPage( $out );
577 $this->skinname
= "mono";
581 class SkinMonoBook
extends SkinPHPTal
{
582 function initPage( &$out ) {
583 SkinPHPTal
::initPage( $out );
584 $this->skinname
= "monobook";