addMeta('viewport', $viewport_meta); $out->addModuleScripts('skins.pivot.js'); } public function setupSkinUserCss(OutputPage $out) { parent::setupSkinUserCss($out); global $wgLocalStylePath; global $wgPivotFeatures; $wgPivotFeaturesDefaults = array( 'showActionsForAnon' => true, 'fixedNavBar' => false, 'usePivotTabs' => false, 'showHelpUnderTools' => true, 'showRecentChangesUnderTools' => true, 'wikiName' => &$GLOBALS['wgSitename'], 'wikiNameDesktop' => &$GLOBALS['wgSitename'], 'navbarIcon' => false, 'preloadFontAwesome' => false, 'showFooterIcons' => false, 'addThisPUBID' => '', 'useAddThisShare' => '', 'useAddThisFollow' => '' ); foreach ($wgPivotFeaturesDefaults as $fgOption => $fgOptionValue) { if ( !isset($wgPivotFeatures[$fgOption]) ) { $wgPivotFeatures[$fgOption] = $fgOptionValue; } } $out->addModuleStyles('skins.pivot.styles'); if ( $wgPivotFeatures['preloadFontAwesome'] ) { $out->addHeadItem('font', ''); } } } class pivotTemplate extends BaseTemplate { public function execute() { global $wgUser; global $wgPivotFeatures; wfSuppressWarnings(); $this->html('headelement'); switch ($wgPivotFeatures['usePivotTabs']) { case true: ob_start(); $this->html('bodytext'); $out = ob_get_contents(); ob_end_clean(); $markers = array("<a", "</a", ">"); $tags = array(""); $body = str_replace($markers, $tags, $out); break; default: $body = ''; break; } switch ($wgPivotFeatures['showFooterIcons']) { case true: $poweredbyType = "icononly"; $poweredbyMakeType = 'withImage'; break; default: $poweredbyType = "nocopyright"; $poweredbyMakeType = 'withoutImage'; break; } ?>
"; ?> "; ?>
>
getIndicators(); ?> isLoggedIn()): ?>
data['sitenotice'] ) { ?>
html( 'sitenotice' ); ?>
data['newtalk'] ) { ?>
html( 'newtalk' ); ?>
isLoggedIn() || $wgPivotFeatures['showActionsForAnon']): ?>  text() ?>
    data['content_actions'] as $key => $tab) { echo preg_replace(array('/\sprimary="1"/', '/\scontext="[a-z]+"/', '/\srel="archives"/'),'',$this->makeListItem($key, $tab)); } ?>
getSkin()->getTitle()->getNsText()); $displaytitle = $this->data['title']; if (!empty($namespace)) { $pagetitle = $this->getSkin()->getTitle(); $newtitle = str_replace($namespace.':', '', $pagetitle); $displaytitle = str_replace($pagetitle, $newtitle, $displaytitle); ?>

data['isarticle'] ) { ?>

msg( 'tagline' ) ?>

html('subtitle') ) { ?>
html('subtitle') ?>
html('bodytext'); break; } ?>
html('catlinks'); ?>
html('dataAfterContent'); ?>
printTrail(); ?> data['isarticle'] && $wgPivotFeatures['addThisPUBID'] !== '') { ?> getSidebar(); foreach ($sidebar as $boxName => $box) { echo '
  • '; if ( is_array( $box['content'] ) ) { foreach ($box['content'] as $key => $item) { echo $this->makeListItem($key, $item); } } } return; } } ?>