blob: edc0aa44f563e81b072afe4160f81dceaed00594 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<?php
/**
* Tyrian -- the new look of gentoo.org
* MediaWiki implementation based on MonoBook nouveau.
*
* Copyright (C) 2014-2016 Alex Legler <a3li@gentoo.org>
* Copyright (C) 2016-2019 Gentoo wiki project <wiki@gentoo.org>
*/
/**
* 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;
}
}
|