Replacing sidebar content
<?php /**Template:Php
* MonoBook nouveau * * Translated from gwicke's previous TAL template version to remove * dependency on PHPTAL. * * @todo document * @addtogroup Skins */
if( !defined( 'MEDIAWIKI' ) ) die( -1 );
/** */ require_once('includes/SkinTemplate.php');
/**
* Inherit main code from SkinTemplate, set the CSS and template filter. * @todo document * @addtogroup Skins */
class SkinMonoBook extends SkinTemplate { /** Using monobook. */ function initPage( &$out ) { SkinTemplate::initPage( $out ); $this->skinname = 'monobook'; $this->stylename = 'monobook'; $this->template = 'MonoBookTemplate'; } }
/**
* @todo document * @addtogroup Skins */
class MonoBookTemplate extends QuickTemplate { /** * Template filter callback for MonoBook 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 $wgUser; $skin = $wgUser->getSkin();
// Suppress warnings to prevent notices about missing indexes in $this->data wfSuppressWarnings();
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> text('xhtmldefaultnamespace') ?>" data['xhtmlnamespaces'] as $tag => $ns) { ?>xmlns:xml:lang="text('lang') ?>" lang="text('lang') ?>" dir="text('dir') ?>"> html('headlinks') ?>
data['displaytitle']!=""?$this->html('title'):$this->text('title') ?>
msg('tagline') ?>
msg('views') ?>
-
data['content_actions'] as $key => $tab) { ?>
- class="">tooltipAndAccesskey('ca-'.$key) ?>>
msg('personaltools') ?>
-
data['personal_urls'] as $key => $item) { ?>
- class="active">tooltipAndAccesskey('pt-'.$key) ?> class="">
-
$val) { ?>
- class="active" >tooltipAndAccesskey($val['id']) ?>>
html('reporttime') ?> data['debug'] ): ?> <?php wfRestoreWarnings(); } // end of execute() method } // end of class ?>