diff options
author | Brian Evans <grknight@gentoo.org> | 2018-11-20 15:21:24 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2018-11-20 15:21:24 -0500 |
commit | d9e7fcb53f638be3eb74f161729997e97bb03b51 (patch) | |
tree | 66e8f4c9639f1884e092026168ae7b97786096bf | |
parent | Update copyright year to 2018. (diff) | |
download | skin-tyrian-d9e7fcb53f638be3eb74f161729997e97bb03b51.tar.gz skin-tyrian-d9e7fcb53f638be3eb74f161729997e97bb03b51.tar.bz2 skin-tyrian-d9e7fcb53f638be3eb74f161729997e97bb03b51.zip |
Upgrade skin setup to MW 1.26 and above
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r-- | SkinTyrian.php | 7 | ||||
-rw-r--r-- | skin.json | 46 |
2 files changed, 52 insertions, 1 deletions
diff --git a/SkinTyrian.php b/SkinTyrian.php index ece2ff6..170cc00 100644 --- a/SkinTyrian.php +++ b/SkinTyrian.php @@ -19,7 +19,7 @@ class SkinTyrian extends SkinTemplate { const CDN_URL = 'https://assets.gentoo.org/tyrian/'; - function setupSkinUserCss(OutputPage $out) { + public function setupSkinUserCss(OutputPage $out) { $this->output = $out; parent::setupSkinUserCss($out); @@ -33,4 +33,9 @@ class SkinTyrian extends SkinTemplate { 'skins.tyrian.styles' )); } + public static function injectMetaTags($out) { + $out->addMeta('viewport', 'width=device-width, initial-scale=1.0'); + $out->addMeta('theme-color', '#54487a') + return true; + } } diff --git a/skin.json b/skin.json new file mode 100644 index 0000000..29ab07f --- /dev/null +++ b/skin.json @@ -0,0 +1,46 @@ +{ + "name": "Tyrian", + "author": [ + "Alex Legler", + "Matthew Marchese" + ], + "url": "https://www.gentoo.org/", + "descriptionmsg": "tyrian-desc", + "namemsg": "skinname-tyrian", + "license-name": "GPL-2.0", + "type": "skin", + "requires": { + "MediaWiki": ">= 1.25.0" + }, + "ValidSkinNames": { + "tyrian": "Tyrian" + }, + "MessagesDirs": { + "Tyrian": [ + "i18n" + ] + }, + "ResourceModules": { + "skins.tyrian": { + "position": "top", + "styles": { + "resources/main.css": { + "media": "screen" + } + } + } + }, + "ResourceFileModulePaths": { + "localBasePath": "", + "remoteSkinPath": "Tyrian" + }, + "AutoloadClasses": { + "SkinTyrian": "SkinTyrian.php", + "TyrianTemplate": "TyrianTemplate.php" + }, + "Hooks": { + "OutputPageBeforeHTML": "SkinTyrian::injectMetaTags" + } + "manifest_version": 1 +} + |