skinphptal.sample

来自「php 开发的内容管理系统」· SAMPLE 代码 · 共 29 行

SAMPLE
29
字号
<?phprequire_once('includes/SkinPHPTal.php');# Test if PHPTal is enabled. If not MediaWiki will load the 'standard' skin# which doesnt use PHPTalif( 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	#		}}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?