《更换皮肤(cavendish)后默认的编辑工具栏与FCK无法使用的问题》
修改cavendish.php文件(用下面一段代码更换<body>以前的部分,是从与monoskin皮肤对照中得出来的)
<?php
/**
* Mozilla cavendish theme
*
* Loosely based on the cavendish style by Gabriel Wicke
*
* @todo document
* @package MediaWiki
* @subpackage Skins
*/
if( !defined( 'MEDIAWIKI' ) )
die();
/**
* Inherit main code from SkinTemplate, set the CSS and template filter.
* @todo document
* @package MediaWiki
* @subpackage Skins
*/
class Skincavendish extends SkinTemplate {
/** Using cavendish. */
function initPage( OutputPage $out ) {
parent::initPage( $out );
$this->skinname = 'cavendish';
$this->stylename = 'cavendish';
$this->template = 'cavendishTemplate';
}
function setupSkinUserCss( OutputPage $out ) {
global $wgHandheldStyle;
parent::setupSkinUserCss( $out );
// Append to the default screen common & print styles...
$out->addStyle( 'cavendish/main.css', 'screen' );
if( $wgHandheldStyle ) {
// Currently in testing... try 'chick/main.css'
$out->addStyle( $wgHandheldStyle, 'handheld' );
}
$out->addStyle( 'cavendish/IE50Fixes.css', 'screen', 'lt IE 5.5000' );
$out->addStyle( 'cavendish/IE55Fixes.css', 'screen', 'IE 5.5000' );
$out->addStyle( 'cavendish/IE60Fixes.css', 'screen', 'IE 6' );
$out->addStyle( 'cavendish/IE70Fixes.css', 'screen', 'IE 7' );
$out->addStyle( 'cavendish/rtl.css', 'screen', '', 'rtl' );
}
}
class cavendishTemplate extends QuickTemplate {
var $skin;
/**
* Template filter callback for cavendish skin.
* Takes an associative array of data set from a SkinTemplate-based
* class, and a wrapper for MediaWiki's localization database, and
* outputs a formatted page.
*
* @access private
*/
function execute() {
global $wgRequest;
$this->skin = $skin = $this->data['skin'];
$action = $wgRequest->getText( 'action' );
// Suppress warnings to prevent notices about missing indexes in $this->data
wfSuppressWarnings(); //注意此句可以解决使用皮肤时报错的问题,Notice:no class in cavendish
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="<?php $this->text('xhtmldefaultnamespace') ?>" <?php
foreach($this->data['xhtmlnamespaces'] as $tag => $ns) {
?>xmlns:<?php echo "{$tag}=\"{$ns}\" ";
} ?>xml:lang="<?php $this->text('lang') ?>" lang="<?php $this->text('lang') ?>" dir="<?php $this->text('dir') ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php $this->html('headlinks') ?>
<title><?php $this->text('pagetitle') ?></title>
//以下两句为新增语句
<?php $this->html('csslinks') ?>
<?php print Skin::makeGlobalVariablesScript( $this->data ); ?>
<style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/main.css"; /*]]>*/</style>
<link rel="stylesheet" type="text/css" media="print" href="<?php $this->text('stylepath') ?>/common/commonPrint.css" />
<?php if($this->data['jsvarurl' ]) { ?><script type="text/javascript" src="<?php $this->text('jsvarurl' ) ?>"></script><?php } ?>
<script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/common/wikibits.js"></script>
<?php if($this->data['usercss' ]) { ?><style type="text/css"><?php $this->html('usercss' ) ?></style><?php } ?>
<?php if($this->data['userjs' ]) { ?><script type="text/javascript" src="<?php $this->text('userjs' ) ?>"></script><?php } ?>
<?php if($this->data['userjsprev']) { ?><script type="text/javascript"><?php $this->html('userjsprev') ?></script><?php } ?>
//下面一句为新添加
<?php $this->html('headscripts') ?>
</head>
分享到:
相关推荐
它是Cavendish MediaWiki皮肤的增强版本。 最新的Cavendish-MW与MediaWiki 1.21.0兼容。 原始的Cavendish MediaWiki外观存在一些缺陷,并且与最新版本的MediaWiki不兼容。 Cavendish-MW解决了这些问题,并进行了...
行业分类-设备装置-中新两国小学数学教材中平均数的比较研究--以北师大版和Marshall Cavendish版为例
行业分类-设备装置-中新小学数学教材比和比例的比较研究--以人教版和Marshall Cavendish版教材为例
Cavendish资源分配手册1
要在浏览器中使用,请使用browserify 。 用法 var data = require ( 'datasets-cavendish-density-of-earth' ) ; 数据 卡文迪许(Cavendish )实验得出的原始数据集,它测量了地球密度相对于水的密度。 ...
Keitt芒果和Cavendish香蕉是莫桑比克市场上这些水果中最大的品种。 它们每年仅在短期内提供,主要在夏末和初秋期间提供。 由于芒果和香蕉果实的高水分活度和呼吸速率,是易腐烂的食品,需要保存和保存方法。 这项...
这项研究旨在表征来自莫桑比克不同地区的Keitt芒果和Cavendish香蕉的物理和化学参数。 水果分别从莫桑比克南部,中部和北部的加沙,马尼卡和楠普拉地区收集。 香蕉和芒果样品分别于2016年8月中和2017年1月采集。 ...
“Very well then.” The Honorable Nigel Cavendish, the only son of Viscount Cavendish, who seemed in excellent health and was expected to live for many, many years, raised...
元素周期表API 用于元素周期表元素的简单NodeJS API以JSON格式返回。JSON数据我从获得了这些...: 0.08988 , " discovered_by " : " Henry Cavendish " , " melt " : 13.99 , " molar_heat " : 28.836 , " named_by
它是由剑桥大学Battcock实验天体物理学Cavendish实验室的Dave Green博士开发的cubehelix伪彩色映射方案的改编。 该配色方案是专门为天文使用而开发的,并在他的论文“格林,DA,2011,一种用于显示天文强度图像的...
Priestley, Cavendish, Galvani, Coulomb, Volta, Poisson, Faraday—and continued into the 19th century—Laplace, Gauss, Oersted, Ampere, Davy, Ohm, Green, Ostrogradsky, Henry, Lord Kelvin, Joule, ...
JISA是我在卡文迪许实验室(Cavendish Laboratory)在这里创建的一个库,因为我真的(真的真的)不喜欢LabView。 更不用说他们将自己的语言命名为“ G”,好像它在某种程度上可以与C媲美。 从本质上讲, JISA的...
Priestley, Cavendish, Galvani, Coulomb, Volta, Poisson, Faraday—and continued into the 19th century—Laplace, Gauss, Oersted, Ampere, Davy, Ohm, Green, Ostrogradsky, Henry, Lord Kelvin, Joule, ...
RF器件和工艺技术的市场正在升温,特别是对于智能手机中使用的两个关键组件——RF开关器件和天线调谐器。RF器件制造商及其代工合作伙伴继续推出基于RF SOI工艺技术的传统RF开关芯片和调谐器,用于当今的4G无线网络。...
Airpak, FIDAP, FLUENT, GAMBIT, Icepak, MixSim, and POLYFLOW are registered trademarks of Fluent Inc....c 1996 E. I....Company. All other products or name brands are ...10 Cavendish Court Lebanon, NH 03766
为了评估我国香蕉品种的农艺学表现,于亚热带地区气候条件下,在3年2茬种植期内,对28个香蕉(Musa spp.,AAA Group,‘Cavendish’)品种的果穗形状、果穗质量、果梳数、果指数、果指长度、粗度、弯曲度等性状进行了...