* Copyright (C) 2016-2019 Gentoo wiki project */ /** * Inherit main code from SkinTemplate, set the CSS and template filter. * @ingroup Skins */ class SkinTyrian extends SkinTemplate { public $skinname = 'tyrian'; public $stylename = 'Tyrian'; public $template = 'TyrianTemplate'; private $output; const CDN_URL = 'https://assets.gentoo.org/tyrian/'; public function setupSkinUserCss(OutputPage $out) { $this->output = $out; parent::setupSkinUserCss($out); $out->addStyle(SkinTyrian::CDN_URL . 'bootstrap.min.css'); $out->addStyle(SkinTyrian::CDN_URL . 'tyrian.min.css'); $out->addModuleStyles([ 'mediawiki.skinning.interface', 'mediawiki.skinning.content.externallinks', 'skins.tyrian.styles', 'skins.tyrian.icons' ]); } public static function injectMetaTags($out) { $out->addMeta('viewport', 'width=device-width, initial-scale=1.0'); $out->addMeta('theme-color', '#54487a'); return true; } public function initPage( OutputPage $out ) { parent::initPage( $out ); $cdnURL = self::CDN_URL . 'bootstrap.min.js'; $script = <<addInlineScript($script); } }