New system to generate $wgValidSkinNames by listing available dirs. Skins using PHPTa...
[lhc/web/wiklou.git] / skins / SkinPHPTal.sample
1 <?php
2 # Test if PHPTal is enabled. If not MediaWiki will load the 'standard' skin
3 # which doesnt use PHPTal
4 if ($wgUsePHPTal) {
5 require_once($IP.'/includes/SkinPHPTal.php');
6
7 # Your class extension is defined there.
8 #
9 # The class name MUST begin with 'Skin' and the rest is the name of the file
10 # excluding '.php'
11 # This file is named SkinPHPTal.sample (but it should end with php). So the
12 # class name will be 'Skin' . 'SkinPHPTal'
13
14 class SkinSkinPHPTal extends SkinPHPTal {
15 function initPage( &$out ) {
16 SkinPHPTal::initPage( $out );
17 $this->skinname = 'name of your skin all lower case';
18 $this->template = 'phptal template used do not put the .pt';
19 }
20
21 # Override method below
22 #
23
24 }
25
26 }
27 ?>