diff options
author | Antoine Musso <hashar@users.mediawiki.org> | 2004-09-02 03:24:01 +0000 |
---|---|---|
committer | Antoine Musso <hashar@users.mediawiki.org> | 2004-09-02 03:24:01 +0000 |
commit | 7dbd56950b7eea282b35bc697b0208e799b0453e (patch) | |
tree | 93a843d0a6776d0f223afa04bb141528bd15e7aa /skins/SkinPHPTal.sample | |
parent | 42af65d5cf569cc2364bc1dff15d21930849d483 (diff) | |
download | mediawikicore-7dbd56950b7eea282b35bc697b0208e799b0453e.tar.gz mediawikicore-7dbd56950b7eea282b35bc697b0208e799b0453e.zip |
New system to generate $wgValidSkinNames by listing available dirs. Skins using PHPTal will not load and the software fallback to the standard skin. Added 2 samples for skin designers and updated doc
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/5022
Diffstat (limited to 'skins/SkinPHPTal.sample')
-rw-r--r-- | skins/SkinPHPTal.sample | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/skins/SkinPHPTal.sample b/skins/SkinPHPTal.sample new file mode 100644 index 000000000000..ad8f8ad6009b --- /dev/null +++ b/skins/SkinPHPTal.sample @@ -0,0 +1,27 @@ +<?php +# Test if PHPTal is enabled. If not MediaWiki will load the 'standard' skin +# which doesnt use PHPTal +if ($wgUsePHPTal) { +require_once($IP.'/includes/SkinPHPTal.php'); + +# 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 +# + +} + +} +?> |