Index: trunk/phase3/skins/SkinPHPTal.sample |
— | — | @@ -1,28 +0,0 @@ |
2 | | -<?php |
3 | | -require_once('includes/SkinPHPTal.php'); |
4 | | - |
5 | | -# Test if PHPTal is enabled. If not MediaWiki will load the 'standard' skin |
6 | | -# which doesnt use PHPTal |
7 | | -if( class_exists( 'SkinPHPTal' ) ) { |
8 | | - |
9 | | - # Your class extension is defined there. |
10 | | - # |
11 | | - # The class name MUST begin with 'Skin' and the rest is the name of the file |
12 | | - # excluding '.php' |
13 | | - # This file is named SkinPHPTal.sample (but it should end with php). So the |
14 | | - # class name will be 'Skin' . 'SkinPHPTal' |
15 | | - |
16 | | - class SkinSkinPHPTal extends SkinPHPTal { |
17 | | - function initPage( &$out ) { |
18 | | - SkinPHPTal::initPage( $out ); |
19 | | - $this->skinname = 'name of your skin all lower case'; |
20 | | - $this->template = 'phptal template used do not put the .pt'; |
21 | | - } |
22 | | - |
23 | | - # Override method below |
24 | | - # |
25 | | - |
26 | | - } |
27 | | - |
28 | | -} |
29 | | -?> |
Index: trunk/phase3/docs/skin.txt |
— | — | @@ -5,6 +5,18 @@ |
6 | 6 | code as well as some history about the skin system. It is placed here rather |
7 | 7 | than in comments in the code itself to help reduce the code size. |
8 | 8 | |
| 9 | +== Version 1.6 and greater == |
| 10 | + |
| 11 | +PHPTal skins doesn't exist anymore. They were replaced by SkinTemplate skins, |
| 12 | +introduced since 1.4 to remove the depedency of PHPTal. |
| 13 | + |
| 14 | +A new experimental (disabled by default) callback-based template processor |
| 15 | +has been introduced to try to speed up the generation of html pages. See for |
| 16 | +example skins/disabled/MonoBookCBT.php. |
| 17 | + |
| 18 | +You can find more informations at http://www.mediawiki.org/wiki/Manual:Skins. |
| 19 | + |
| 20 | + |
9 | 21 | == Version 1.4 == |
10 | 22 | |
11 | 23 | MediaWiki still use the PHPTal skin system introduced in version 1.3 but some |