addHeadItem('ie-meta', ''); $out->addModuleStyles('skins.foreground'); } public function initPage( OutputPage $out ) { global $wgLocalStylePath; parent::initPage($out); $viewport_meta = 'width=device-width, user-scalable=yes, initial-scale=1.0'; $out->addMeta('viewport', $viewport_meta); $out->addModuleScripts('skins.foreground'); } } class foregroundTemplate extends BaseTemplate { public function execute() { global $wgUser; global $wgForegroundFeatures; wfSuppressWarnings(); $this->html('headelement'); $wgForegroundFeaturesDefaults = array( 'showActionsForAnon' => true, 'makeNavFixed' => false, ); foreach ($wgForegroundFeaturesDefaults as $fgOption => $fgOptionValue) { if ( !isset($wgForegroundFeatures[$fgOption]) ) { $wgForegroundFeatures[$fgOption] = $fgOptionValue; } } if ($wgForegroundFeatures['makeNavFixed']) echo "