* Update docs/skin.txt.
* Removed skins/SkinPHPTal.sample as PHPTal isn't used for ages.
This commit is contained in:
parent
6b1861063e
commit
dcae2e1127
2 changed files with 12 additions and 28 deletions
|
|
@ -5,6 +5,18 @@ This document describes the overall architecture of MediaWiki's HTML rendering
|
|||
code as well as some history about the skin system. It is placed here rather
|
||||
than in comments in the code itself to help reduce the code size.
|
||||
|
||||
== Version 1.6 and greater ==
|
||||
|
||||
PHPTal skins doesn't exist anymore. They were replaced by SkinTemplate skins,
|
||||
introduced since 1.4 to remove the depedency of PHPTal.
|
||||
|
||||
A new experimental (disabled by default) callback-based template processor
|
||||
has been introduced to try to speed up the generation of html pages. See for
|
||||
example skins/disabled/MonoBookCBT.php.
|
||||
|
||||
You can find more informations at http://www.mediawiki.org/wiki/Manual:Skins.
|
||||
|
||||
|
||||
== Version 1.4 ==
|
||||
|
||||
MediaWiki still use the PHPTal skin system introduced in version 1.3 but some
|
||||
|
|
|
|||
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
require_once('includes/SkinPHPTal.php');
|
||||
|
||||
# Test if PHPTal is enabled. If not MediaWiki will load the 'standard' skin
|
||||
# which doesnt use PHPTal
|
||||
if( class_exists( 'SkinPHPTal' ) ) {
|
||||
|
||||
# Your class extension is defined there.
|
||||
#
|
||||
# The class name MUST begin with 'Skin' and the rest is the name of the file
|
||||
# excluding '.php'
|
||||
# This file is named SkinPHPTal.sample (but it should end with php). So the
|
||||
# class name will be 'Skin' . 'SkinPHPTal'
|
||||
|
||||
class SkinSkinPHPTal extends SkinPHPTal {
|
||||
function initPage( &$out ) {
|
||||
SkinPHPTal::initPage( $out );
|
||||
$this->skinname = 'name of your skin all lower case';
|
||||
$this->template = 'phptal template used do not put the .pt';
|
||||
}
|
||||
|
||||
# Override method below
|
||||
#
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Loading…
Reference in a new issue