summaryrefslogtreecommitdiff
blob: ece2ff61bc9a1e079a99ff914dde3d322b90fcab (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
<?php
/**
 * Tyrian -- the new look of gentoo.org
 * MediaWiki implementation based on MonoBook nouveau.
 *
 * Copyright (C) 2014-2016 Alex Legler <a3li@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/';

	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(array(
			'mediawiki.skinning.interface',
			'mediawiki.skinning.content.externallinks',
			'skins.tyrian.styles'
		));
	}
}