diff --git a/Pivot.skin.php b/Pivot.skin.php index bdd511f..8b08118 100644 --- a/Pivot.skin.php +++ b/Pivot.skin.php @@ -9,8 +9,6 @@ class SkinPivot extends SkinTemplate { - public $skinname = 'pivot', $stylename = 'pivot', $template = 'pivotTemplate', $useHeadElement = true; - public function getDefaultModules() { global $wgPivotFeatures; $wgPivotFeaturesDefaults = array( @@ -37,29 +35,16 @@ public function getDefaultModules() { if ( $wgPivotFeatures['preloadFontAwesome'] ) { $this->getOutput()->addHeadItem('font', ''); } - - $this->getOutput()->addModuleStyles('skins.pivot.styles'); - return parent::getDefaultModules(); - } - - 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->addModules('skins.pivot.js'); + return parent::getDefaultModules(); } - } -class pivotTemplate extends BaseTemplate { +class PivotTemplate extends BaseTemplate { public function execute() { global $wgUser; global $wgPivotFeatures; Wikimedia\suppressWarnings(); - $this->html('headelement'); switch ($wgPivotFeatures['usePivotTabs']) { case true: ob_start(); @@ -106,7 +91,7 @@ public function execute() {
- +
"; ?> @@ -129,7 +114,7 @@ public function execute() {