* * This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 * Unported License. To view a copy of this license, visit * http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative * Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. * */ if( !defined( 'MEDIAWIKI' ) ) die( -1 ); /** * Inherit main code from SkinTemplate, set the CSS and template filter. * @todo document * @ingroup Skins */ class Skincavendish extends SkinTemplate { 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' ); */ } } /** * @todo document * @ingroup Skins */ class cavendishTemplate extends QuickTemplate { var $skin; var $show_sitename = 1; // Show sitename next to the header logo? 1=true, 0=false. /** * 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, $wgSitename; $this->skin = $skin = $this->data['skin']; $action = $wgRequest->getText( 'action' ); // retrieve site name $this->set('sitename', $wgSitename); // Suppress warnings to prevent notices about missing indexes in $this->data wfSuppressWarnings(); ?> data['xhtmlnamespaces'] as $tag => $ns) { ?>xmlns:xml:lang="text('lang') ?>" lang="text('lang') ?>" dir="text('dir') ?>">
html('headlinks') ?>