Add a hidden stub Special:Search to hand search requests to; this fixes
[lhc/web/wiklou.git] / includes / SkinPHPTal.php
1 <?php
2 # Generic PHPTal (http://phptal.sourceforge.net/) skin
3 # Based on Brion's smarty skin
4 # Copyright (C) Gabriel Wicke -- http://www.aulinx.de/
5 #
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.
9 #
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;
13 #
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.
18 #
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.
23 #
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
28
29 require_once "PHPTAL.php";
30
31 class MediaWiki_I18N extends PHPTAL_I18N
32 {
33 var $_context = array();
34
35 function set($varName, $value)
36 {
37 $this->_context[$varName] = $value;
38 }
39
40 function translate($value)
41 {
42 $value = wfMsg( $value );
43
44 // interpolate variables
45 while (preg_match('/\$([0-9]*?)/sm', $value, $m)) {
46 list($src, $var) = $m;
47 $varValue = $this->_context[$var];
48 $value = str_replace($src, $varValue, $value);
49 }
50 return $value;
51 }
52 }
53
54 class SkinPHPTal extends Skin {
55 var $template;
56
57 function initPage( &$out ) {
58 parent::initPage( $out );
59 $this->skinname = "davinci";
60 $this->template = "xhtml_slim";
61 }
62
63 function outputPage( &$out ) {
64 global $wgTitle, $wgArticle, $wgUser, $wgLang, $wgOut;
65 global $wgScript, $wgStyleSheetPath, $wgLanguageCode, $wgUseNewInterlanguage;
66 global $wgMimeType, $wgOutputEncoding, $wgUseDatabaseMessages, $wgRequest;
67 global $wgDisableCounters, $wgLogo, $action, $wgFeedClasses;
68
69 extract( $wgRequest->getValues( 'oldid', 'diff' ) );
70
71 $this->thispage = $wgTitle->getPrefixedDbKey();
72 $this->thisurl = $wgTitle->getPrefixedURL();
73 $this->thisurle = urlencode($this->thisurl);
74 $this->loggedin = $wgUser->getID() != 0;
75 $this->username = $wgUser->getName();
76 $this->userpage = $wgLang->getNsText( Namespace::getUser() ) . ":" . $wgUser->getName();
77 $this->titletxt = $wgTitle->getPrefixedText();
78
79 $this->initPage( $out );
80 $tpl = new PHPTAL($this->template . '.pt', 'templates');
81
82 #if ( $wgUseDatabaseMessages ) { // uncomment this to fall back to GetText
83 $tpl->setTranslator(new MediaWiki_I18N());
84 #}
85
86 $tpl->setRef( "title", &$this->titletxt ); // ?
87 if(!empty($action)) {
88 $taction = $this->getPageTitleActionText();
89 $taction = !empty($taction)?' - '.$taction:'';
90 } else { $taction = ''; }
91 $tpl->set( "pagetitle", wfMsg( "pagetitle", $this->titletxt.$taction ) );
92 $tpl->setRef( "thispage", &$this->thispage );
93 $tpl->set( "subtitle", $out->getSubtitle() );
94 $tpl->set( 'catlinks', getCategories());
95 if( $wgOut->isSyndicated() ) {
96 $feeds = array();
97 foreach( $wgFeedClasses as $format => $class ) {
98 $feeds[$format] = array(
99 'text' => $format,
100 'href' => $wgRequest->appendQuery( "feed=$format" ),
101 'ttip' => wfMsg('tooltip-'.$format)
102 );
103 }
104 $tpl->setRef( 'feeds', &$feeds );
105 }
106 $tpl->setRef( 'mimetype', &$wgMimeType );
107 $tpl->setRef( 'charset', &$wgOutputEncoding );
108 $tpl->set( 'headlinks', $out->getHeadLinks() );
109 $tpl->setRef( 'skinname', &$this->skinname );
110 $tpl->setRef( "loggedin", &$this->loggedin );
111 /* XXX currently unused, might get useful later
112 $tpl->set( "editable", ($wgTitle->getNamespace() != NS_SPECIAL ) );
113 $tpl->set( "exists", $wgTitle->getArticleID() != 0 );
114 $tpl->set( "watch", $wgTitle->userIsWatching() ? "unwatch" : "watch" );
115 $tpl->set( "protect", count($wgTitle->getRestrictions()) ? "unprotect" : "protect" );
116 $tpl->set( "helppage", wfMsg('helppage'));
117 $tpl->set( "sysop", $wgUser->isSysop() );
118 */
119 $tpl->set( "searchaction", $this->escapeSearchLink() );
120 $tpl->setRef( "stylepath", &$wgStyleSheetPath );
121 $tpl->setRef( "logopath", &$wgLogo );
122 $tpl->setRef( "lang", &$wgLanguageCode );
123 $tpl->set( "langname", $wgLang->getLanguageName( $wgLanguageCode ) );
124 $tpl->setRef( "username", &$this->username );
125 $tpl->setRef( "userpage", &$this->userpage);
126 if( $wgUser->getNewtalk() ) {
127 $usertitle = Title::newFromText( $this->userpage );
128 $usertalktitle = $usertitle->getTalkPage();
129 if($usertalktitle->getPrefixedDbKey() != $this->thispage){
130
131 $ntl = wfMsg( "newmessages",
132 $this->makeKnownLink(
133 $wgLang->getNsText( Namespace::getTalk( Namespace::getUser() ) )
134 . ":" . $this->username,
135 wfMsg("newmessageslink") )
136 );
137 }
138 } else {
139 $ntl = "";
140 }
141
142 $tpl->setRef( "newtalk", &$ntl );
143 $tpl->setRef( "skin", &$this);
144 $tpl->set( "logo", $this->logoText() );
145 if ( $wgOut->isArticle() and (!isset( $oldid ) or isset( $diff )) and 0 != $wgArticle->getID() ) {
146 if ( !$wgDisableCounters ) {
147 $viewcount = $wgLang->formatNum( $wgArticle->getCount() );
148 if ( $viewcount ) {
149 $tpl->set('viewcount', wfMsg( "viewcount", $viewcount ));
150 }
151 }
152 $tpl->set('lastmod', $this->lastModified());
153 $tpl->set('copyright',$this->getCopyright());
154 }
155 $tpl->set( "copyrightico", $this->getCopyrightIcon() );
156 $tpl->set( "poweredbyico", $this->getPoweredBy() );
157 $tpl->set( "disclaimer", $this->disclaimerLink() );
158 $tpl->set( "about", $this->aboutLink() );
159
160 $tpl->setRef( "debug", &$out->mDebugtext );
161 $tpl->set( "reporttime", $out->reportTime() );
162
163 $tpl->setRef( "bodytext", &$out->mBodytext );
164
165 $language_urls = array();
166 foreach( $wgOut->getLanguageLinks() as $l ) {
167 $nt = Title::newFromText( $l );
168 $language_urls[] = array('href' => $nt->getFullURL(),
169 'text' => ($wgLang->getLanguageName( $nt->getInterwiki()) != ''?$wgLang->getLanguageName( $nt->getInterwiki()) : $l),
170 'class' => $wgLang->isRTL() ? 'rtl' : 'ltr');
171 }
172 if(count($language_urls)) {
173 $tpl->setRef( 'language_urls', &$language_urls);
174 } else {
175 $tpl->set('language_urls', false);
176 }
177 $tpl->set('personal_urls', $this->buildPersonalUrls());
178 $content_actions = $this->buildContentActionUrls();
179 $tpl->setRef('content_actions', &$content_actions);
180 // XXX: attach this from javascript, same with section editing
181 if(isset($content_actions['edit']['href']) &&
182 !(isset($content_actions['edit']['class']) && $content_actions['edit']['class'] != '') &&
183 $wgUser->getOption("editondblclick") )
184 {
185 $tpl->set('body-ondblclick', 'document.location = "' .$content_actions['edit']['href'] .'";');
186 } else {
187 $tpl->set('body-ondblclick', '');
188 }
189 $tpl->set( "nav_urls", $this->buildNavUrls() );
190
191 // execute template
192 $res = $tpl->execute();
193 // result may be an error
194 if (PEAR::isError($res)) {
195 echo $res->toString(), "\n";
196 } else {
197 echo $res;
198 }
199
200 }
201
202 # build array of urls for personal toolbar
203 function buildPersonalUrls() {
204 /* set up the default links for the personal toolbar */
205 global $wgShowIPinHeader;
206 $personal_urls = array();
207 if ($this->loggedin) {
208 $personal_urls['userpage'] = array(
209 'text' => $this->username,
210 'href' => $this->makeUrl($this->userpage),
211 'ttip' => wfMsg('tooltip-userpage'),
212 'akey' => wfMsg('accesskey-userpage')
213 );
214 $personal_urls['mytalk'] = array(
215 'text' => wfMsg('mytalk'),
216 'href' => $this->makeTalkUrl($this->userpage),
217 'ttip' => wfMsg('tooltip-mytalk'),
218 'akey' => wfMsg('accesskey-mytalk')
219 );
220 $personal_urls['preferences'] = array(
221 'text' => wfMsg('preferences'),
222 'href' => $this->makeSpecialUrl('Preferences'),
223 'ttip' => wfMsg('tooltip-preferences'),
224 'akey' => wfMsg('accesskey-preferences')
225 );
226 $personal_urls['watchlist'] = array(
227 'text' => wfMsg('watchlist'),
228 'href' => $this->makeSpecialUrl('Watchlist'),
229 'ttip' => wfMsg('tooltip-watchlist'),
230 'akey' => wfMsg('accesskey-watchlist')
231 );
232 $personal_urls['mycontris'] = array(
233 'text' => wfMsg('mycontris'),
234 'href' => $this->makeSpecialUrl('Contributions','target=' . $this->username),
235 'ttip' => wfMsg('tooltip-mycontris'),
236 'akey' => wfMsg('accesskey-mycontris')
237 );
238 $personal_urls['logout'] = array(
239 'text' => wfMsg('userlogout'),
240 'href' => $this->makeSpecialUrl('Userlogout','returnpage=' . $this->thisurle),
241 'ttip' => wfMsg('tooltip-logout'),
242 'akey' => wfMsg('accesskey-logout')
243 );
244 } else {
245 if( $wgShowIPinHeader && isset( $_COOKIE[ini_get("session.name")] ) ) {
246 $personal_urls['anonuserpage'] = array(
247 'text' => $this->username,
248 'href' => $this->makeUrl($this->userpage),
249 'ttip' => wfMsg('tooltip-anonuserpage'),
250 'akey' => wfMsg('accesskey-anonuserpage')
251 );
252 $personal_urls['anontalk'] = array(
253 'text' => wfMsg('anontalk'),
254 'href' => $this->makeTalkUrl($this->userpage),
255 'ttip' => wfMsg('tooltip-anontalk'),
256 'akey' => wfMsg('accesskey-anontalk')
257 );
258 $personal_urls['anonlogin'] = array(
259 'text' => wfMsg('userlogin'),
260 'href' => $this->makeSpecialUrl('Userlogin', 'return='.$this->thisurle),
261 'ttip' => wfMsg('tooltip-login'),
262 'akey' => wfMsg('accesskey-login')
263 );
264 } else {
265
266 $personal_urls['login'] = array(
267 'text' => wfMsg('userlogin'),
268 'href' => $this->makeSpecialUrl('Userlogin', 'return='.$this->thisurle),
269 'ttip' => wfMsg('tooltip-login'),
270 'akey' => wfMsg('accesskey-login')
271 );
272 }
273 }
274
275 return $personal_urls;
276 }
277
278 # an array of edit links by default used for the tabs
279 function buildContentActionUrls () {
280 global $wgTitle, $wgUser, $wgRequest;
281 $action = $wgRequest->getText( 'action' );
282 $oldid = $wgRequest->getVal( 'oldid' );
283 $diff = $wgRequest->getVal( 'diff' );
284 $content_actions = array();
285
286 $iscontent = ($wgTitle->getNamespace() != Namespace::getSpecial() );
287 if( $iscontent) {
288
289 $content_actions['article'] = array('class' => (!Namespace::isTalk( $wgTitle->getNamespace())) ? 'selected' : '',
290 'text' => wfMsg('article'),
291 'href' => $this->makeArticleUrl($this->thispage),
292 'ttip' => wfMsg('tooltip-article'),
293 'akey' => wfMsg('accesskey-article'));
294
295 /* set up the classes for the talk link */
296 $talk_class = (Namespace::isTalk( $wgTitle->getNamespace()) ? 'selected' : '');
297 $talktitle = Title::newFromText( $this->titletxt );
298 $talktitle = $talktitle->getTalkPage();
299 $this->checkTitle(&$talktitle, &$this->titletxt);
300 if($talktitle->getArticleId() != 0) {
301 $content_actions['talk'] = array(
302 'class' => $talk_class,
303 'text' => wfMsg('talk'),
304 'href' => $this->makeTalkUrl($this->titletxt),
305 'ttip' => wfMsg('tooltip-talk'),
306 'akey' => wfMsg('accesskey-talk')
307 );
308 } else {
309 $content_actions['talk'] = array(
310 'class' => $talk_class.' new',
311 'text' => wfMsg('talk'),
312 'href' => $this->makeTalkUrl($this->titletxt,'action=edit'),
313 'ttip' => wfMsg('tooltip-talk'),
314 'akey' => wfMsg('accesskey-talk')
315 );
316 }
317
318 if ( $wgTitle->userCanEdit() ) {
319 $oid = ( $oldid && ! isset( $diff ) ) ? "&oldid={$oldid}" : '';
320 $content_actions['edit'] = array(
321 'class' => ($action == 'edit' or $action == 'submit') ? 'selected' : '',
322 'text' => wfMsg('edit'),
323 'href' => $this->makeUrl($this->thispage, 'action=edit'.$oid),
324 'ttip' => wfMsg('tooltip-edit'),
325 'akey' => wfMsg('accesskey-edit')
326 );
327 } else {
328 $oid = ( $oldid && ! isset( $diff ) ) ? "&oldid={$oldid}" : '';
329 $content_actions['edit'] = array('class' => ($action == 'edit') ? 'selected' : '',
330 'text' => wfMsg('viewsource'),
331 'href' => $this->makeUrl($this->thispage, 'action=edit'.$oid),
332 'ttip' => wfMsg('tooltip-viewsource'),
333 'akey' => wfMsg('accesskey-viewsource'));
334 }
335
336 if ( $wgTitle->getArticleId() ) {
337
338 $content_actions['history'] = array('class' => ($action == 'history') ? 'selected' : '',
339 'text' => wfMsg('history_short'),
340 'href' => $this->makeUrl($this->thispage, 'action=history'),
341 'ttip' => wfMsg('tooltip-history'),
342 'akey' => wfMsg('accesskey-history'));
343
344 # XXX: is there a rollback action anywhere or is it planned?
345 # Don't recall where i got this from...
346 /*if( $wgUser->getNewtalk() ) {
347 $content_actions['rollback'] = array('class' => ($action == 'rollback') ? 'selected' : '',
348 'text' => wfMsg('rollback_short'),
349 'href' => $this->makeUrl($this->thispage, 'action=rollback'),
350 'ttip' => wfMsg('tooltip-rollback'),
351 'akey' => wfMsg('accesskey-rollback'));
352 }*/
353
354 if($wgUser->isSysop()){
355 if(!$wgTitle->isProtected()){
356 $content_actions['protect'] = array(
357 'class' => ($action == 'protect') ? 'selected' : '',
358 'text' => wfMsg('protect'),
359 'href' => $this->makeUrl($this->thispage, 'action=protect'),
360 'ttip' => wfMsg('tooltip-protect'),
361 'akey' => wfMsg('accesskey-protect')
362 );
363
364 } else {
365 $content_actions['unprotect'] = array(
366 'class' => ($action == 'unprotect') ? 'selected' : '',
367 'text' => wfMsg('unprotect'),
368 'href' => $this->makeUrl($this->thispage, 'action=unprotect'),
369 'ttip' => wfMsg('tooltip-protect'),
370 'akey' => wfMsg('accesskey-protect')
371 );
372 }
373 $content_actions['delete'] = array(
374 'class' => ($action == 'delete') ? 'selected' : '',
375 'text' => wfMsg('delete'),
376 'href' => $this->makeUrl($this->thispage, 'action=delete'),
377 'ttip' => wfMsg('tooltip-delete'),
378 'akey' => wfMsg('accesskey-delete')
379 );
380 }
381 if ( $wgUser->getID() != 0 ) {
382 if ( $wgTitle->userCanEdit()) {
383 $content_actions['move'] = array('class' => ($wgTitle->getDbKey() == 'Movepage' and $wgTitle->getNamespace == Namespace::getSpecial()) ? 'selected' : '',
384 'text' => wfMsg('move'),
385 'href' => $this->makeSpecialUrl('Movepage', 'target='.$this->thispage),
386 'ttip' => wfMsg('tooltip-move'),
387 'akey' => wfMsg('accesskey-move'));
388 } else {
389 $content_actions['move'] = array('class' => 'inactive',
390 'text' => wfMsg('move'),
391 'href' => false,
392 'ttip' => wfMsg('tooltip-nomove'),
393 'akey' => false);
394
395 }
396 }
397 } else {
398 //article doesn't exist or is deleted
399 if($wgUser->isSysop()){
400 if( $n = $wgTitle->isDeleted() ) {
401 $content_actions['delete'] = array(
402 'class' => '',
403 'text' => wfMsg( "undelete_short", $n ),
404 'href' => $this->makeSpecialUrl('Undelete/'.$this->thispage),
405 'ttip' => wfMsg('tooltip-undelete', $n),
406 'akey' => wfMsg('accesskey-undelete')
407 );
408 }
409 }
410 }
411
412 if ( $wgUser->getID() != 0 and $action != 'edit' and $action != 'submit' ) {
413 if( !$wgTitle->userIsWatching()) {
414 $content_actions['watch'] = array('class' => ($action == 'watch' or $action == 'unwatch') ? 'selected' : '',
415 'text' => wfMsg('watch'),
416 'href' => $this->makeUrl($this->thispage, 'action=watch'),
417 'ttip' => wfMsg('tooltip-watch'),
418 'akey' => wfMsg('accesskey-watch'));
419 } else {
420 $content_actions['watch'] = array('class' => ($action == 'unwatch' or $action == 'watch') ? 'selected' : '',
421 'text' => wfMsg('unwatch'),
422 'href' => $this->makeUrl($this->thispage, 'action=unwatch'),
423 'ttip' => wfMsg('tooltip-unwatch'),
424 'akey' => wfMsg('accesskey-unwatch'));
425
426 }
427 }
428 } else {
429 /* show special page tab */
430
431 $content_actions['article'] = array('class' => 'selected',
432 'text' => wfMsg('specialpage'),
433 'href' => false,
434 'ttip' => wfMsg('tooltip-specialpage'),
435 'akey' => false);
436 }
437
438 return $content_actions;
439 }
440
441 # build array of common navigation links
442 function buildNavUrls () {
443 global $wgTitle, $wgUser, $wgRequest;
444 global $wgSiteSupportPage;
445
446 $action = $wgRequest->getText( 'action' );
447 $oldid = $wgRequest->getVal( 'oldid' );
448 $diff = $wgRequest->getVal( 'diff' );
449 // XXX: remove htmlspecialchars when tal:attributes works with i18n:attributes
450 $nav_urls = array();
451 $nav_urls['mainpage'] = array('href' => htmlspecialchars( $this->makeI18nUrl('mainpage')));
452 $nav_urls['randompage'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Randompage')));
453 $nav_urls['recentchanges'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Recentchanges')));
454 $nav_urls['whatlinkshere'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Whatlinkshere', 'target='.$this->thispage)));
455 $nav_urls['currentevents'] = (wfMsg('currentevents') != '') ? array('href' => htmlspecialchars( $this->makeI18nUrl('currentevents'))) : '';
456 $nav_urls['portal'] = (wfMsg('portal') != '') ? array('href' => htmlspecialchars( $this->makeI18nUrl('portal-url'))) : '';
457 $nav_urls['recentchangeslinked'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Recentchangeslinked', 'target='.$this->thispage)));
458 $nav_urls['bugreports'] = array('href' => htmlspecialchars( $this->makeI18nUrl('bugreportspage')));
459 // $nav_urls['sitesupport'] = array('href' => htmlspecialchars( $this->makeI18nUrl('sitesupportpage')));
460 $nav_urls['sitesupport'] = array('href' => htmlspecialchars( $wgSiteSupportPage));
461 $nav_urls['help'] = array('href' => htmlspecialchars( $this->makeI18nUrl('helppage')));
462 $nav_urls['upload'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Upload')));
463 $nav_urls['specialpages'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Specialpages')));
464
465
466 $id=User::idFromName($wgTitle->getText());
467 $ip=User::isIP($wgTitle->getText());
468
469 if($id || $ip) { # both anons and non-anons have contri list
470 $nav_urls['contributions'] = array(
471 'href' => htmlspecialchars( $this->makeSpecialUrl('Contributions', "target=" . $wgTitle->getPartialURL() ) )
472 );
473 }
474 if ( 0 != $wgUser->getID() ) { # show only to signed in users
475 if($id) { # can only email non-anons
476 $nav_urls['emailuser'] = array(
477 'href' => htmlspecialchars( $this->makeSpecialUrl('Emailuser', "target=" . $wgTitle->getPartialURL() ) )
478 );
479 }
480 }
481
482
483 return $nav_urls;
484 }
485
486 function getPageTitleActionText () {
487 global $action;
488 switch($action) {
489 case 'edit':
490 return wfMsg('edit');
491 case 'history':
492 return wfMsg('history_short');
493 case 'protect':
494 return wfMsg('unprotect');
495 case 'unprotect':
496 return wfMsg('unprotect');
497 case 'delete':
498 return wfMsg('delete');
499 case 'watch':
500 return wfMsg('watch');
501 case 'unwatch':
502 return wfMsg('unwatch');
503 case 'submit':
504 return wfMsg('preview');
505 default:
506 return '';
507 }
508 }
509 /*static*/ function makeSpecialUrl( $name, $urlaction='' ) {
510 $title = Title::makeTitle( NS_SPECIAL, $name );
511 $this->checkTitle(&$title, &$name);
512 return $title->getLocalURL( $urlaction );
513 }
514 /*static*/ function makeTalkUrl ( $name, $urlaction='' ) {
515 $title = Title::newFromText( $name );
516 $title = $title->getTalkPage();
517 $this->checkTitle(&$title, &$name);
518 return $title->getLocalURL( $urlaction );
519 }
520 /*static*/ function makeArticleUrl ( $name, $urlaction='' ) {
521 $title = Title::newFromText( $name );
522 $title= $title->getSubjectPage();
523 $this->checkTitle(&$title, &$name);
524 return $title->getLocalURL( $urlaction );
525 }
526 /*static*/ function makeI18nUrl ( $name, $urlaction='' ) {
527 $title = Title::newFromText( wfMsg($name) );
528 $this->checkTitle(&$title, &$name);
529 return $title->getLocalURL( $urlaction );
530 }
531 /*static*/ function makeUrl ( $name, $urlaction='' ) {
532 $title = Title::newFromText( $name );
533 $this->checkTitle(&$title, &$name);
534 return $title->getLocalURL( $urlaction );
535 }
536
537 # make sure we have some title to operate on, mind the '&'
538 /*static*/ function checkTitle ( &$title, &$name ) {
539 if(!is_object($title)) {
540 $title = Title::newFromText( $name );
541 if(!is_object($title)) {
542 $title = Title::newFromText( '<error: link target missing>' );
543 }
544 }
545 }
546
547
548 }
549
550 class SkinDaVinci extends SkinPHPTal {
551 function initPage( &$out ) {
552 SkinPHPTal::initPage( $out );
553 $this->skinname = "davinci";
554 }
555 }
556
557 class SkinMono extends SkinPHPTal {
558 function initPage( &$out ) {
559 SkinPHPTal::initPage( $out );
560 $this->skinname = "mono";
561 }
562 }
563
564 class SkinMonoBook extends SkinPHPTal {
565 function initPage( &$out ) {
566 SkinPHPTal::initPage( $out );
567 $this->skinname = "monobook";
568 }
569 }
570
571 ?>