true, 'NavWrapperType' => '0', 'showHelpUnderTools' => true, 'showRecentChangesUnderTools' => true, 'wikiName' => &$GLOBALS['wgSitename'], 'wikiNameDesktop' => &$GLOBALS['wgSitename'], 'navbarIcon' => false, 'IeEdgeCode' => 1, 'showFooterIcons' => 0, 'addThisFollowPUBID' => '' ); foreach ($wgPivotFeaturesDefaults as $fgOption => $fgOptionValue) { if ( !isset($wgPivotFeatures[$fgOption]) ) { $wgPivotFeatures[$fgOption] = $fgOptionValue; } } switch ($wgPivotFeatures['IeEdgeCode']) { case 1: $out->addHeadItem('ie-meta', ''); break; case 2: if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) header('X-UA-Compatible: IE=edge'); break; } $out->addModuleStyles('skins.pivot'); } 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.pivot'); } } class pivotTemplate extends BaseTemplate { public function execute() { global $wgUser; global $wgPivotFeatures; wfSuppressWarnings(); $this->html('headelement'); switch ($wgPivotFeatures['NavWrapperType']) { case '0': break; case 'divonly': echo " printTrail(); ?>