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 "
"; ?> "; ?>
data['sitenotice'] ) { ?>
html( 'sitenotice' ); ?>
data['newtalk'] ) { ?>
html( 'newtalk' ); ?>
isLoggedIn() || $wgForegroundFeatures['showActionsForAnon']): ?>  text() ?>
    data['content_actions'] as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
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('bodytext') ?>
html('catlinks'); ?>
html('dataAfterContent'); ?>
printTrail(); ?>