addModuleStyles( "skins.cavendish" ); if( $wgHandheldStyle ) { // Currently in testing... try 'chick/main.css' $out->addStyle( $wgHandheldStyle, 'handheld' ); } $out->addStyle( 'Cavendish/resources/IE60Fixes.css', 'screen', 'IE 6' ); $out->addStyle( 'Cavendish/resources/IE70Fixes.css', 'screen', 'IE 7' ); $out->addStyle( 'Cavendish/resources/rtl.css', 'screen', '', 'rtl' ); /* README for details */ include('resources/config.php'); $out->addStyle( 'Cavendish/resources/colors/'. $cavendishColor .'.css', 'screen' ); if ($cavendishExtensionCSS) { $out->addStyle( 'Cavendish/resources/extensions.css', 'screen' ); } $out->addStyle( 'Cavendish/resources/style.php', 'screen' ); } } class CavendishTemplate extends MonoBookTemplate { 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, $wgLang; include('resources/config.php'); $QRURL = htmlentities( $this->getSkin()->getTitle()->getFullURL()).$cavendishQRurladd; $styleversion = '2.3.5'; $this->skin = $skin = $this->data['skin']; $action = $wgRequest->getText( 'action' ); if ( $action == "") { $action = "view"; } // Suppress warnings to prevent notices about missing indexes in $this->data wfSuppressWarnings(); // HTML starts here $this->html( 'headelement' ); ?>