addModuleStyles( 'mediawiki.legacy.shared' ); $out->addModuleStyles( 'mediawiki.legacy.oldshared' ); } public function commonPrintStylesheet() { return true; } /** * This was for the old skins and for users with 640x480 screen. * Please note old skins are still used and might prove useful for * users having old computers or visually impaired. */ var $mSuppressQuickbar = false; /** * Suppress the quickbar from the output, only for skin supporting * the quickbar */ public function suppressQuickbar() { $this->mSuppressQuickbar = true; } /** * Return whether the quickbar should be suppressed from the output * * @return Boolean */ public function isQuickbarSuppressed() { return $this->mSuppressQuickbar; } function qbSetting() { global $wgUser; if ( $this->isQuickbarSuppressed() ) { return 0; } $q = $wgUser->getOption( 'quickbar', 0 ); return $q; } } class LegacyTemplate extends BaseTemplate { // How many search boxes have we made? Avoid duplicate id's. protected $searchboxes = ''; function execute() { $this->html( 'headelement' ); echo $this->beforeContent(); $this->html( 'bodytext' ); echo '
'; $this->html( 'debughtml' ); echo "\n"; echo $this->afterContent(); $this->html( 'dataAfterContent' ); $this->printTrail(); echo "\n