aboutsummaryrefslogtreecommitdiff
blob: ab5e9344ed6a3d3202ed10ae462951568bdb43b7 (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
<?php
/**
 * Tyrian -- the new look of gentoo.org
 * MediaWiki implementation based on MonoBook nouveau.
 *
 * Copyright (C) 2014-2015 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';

	const CDN_URL = 'https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/';

	function setupSkinUserCss(OutputPage $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'
		));
	}
}