-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDiscourseSkin.php
More file actions
executable file
·53 lines (46 loc) · 1.58 KB
/
DiscourseSkin.php
File metadata and controls
executable file
·53 lines (46 loc) · 1.58 KB
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
44
45
46
47
48
49
50
51
52
53
<?php
/**
* Discourse skin for MediaWiki skin
*
* @file
* @ingroup Skins
* @author David Winslow
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
*/
if ( !defined( 'MEDIAWIKI' ) ) {
die( 'This is an extension to the MediaWiki package and cannot be run standalone.' );
}
$wgExtensionCredits['skin'][] = array(
'path' => __FILE__,
'name' => 'Discourse Skin', // name as shown under [[Special:Version]]
'version' => '1.0',
'date' => '20140711',
'url' => '',
'author' => '',
'descriptionmsg' => 'discourseskin-desc',
'license' => 'GPL-2.0+'
);
/**** UNSET THIS LATER ****/
$wgResourceLoaderDebug = true;
$wgValidSkinNames['Discourse'] = 'DiscourseSkin';
$wgAutoloadClasses['SkinDiscourseSkin'] = __DIR__ . '/DiscourseSkin.skin.php';
$wgMessagesDirs['DiscourseSkin'] = __DIR__ . '/i18n';
$wgResourceModules['skins.discourse'] = array(
'styles' => array(
/**
* ResourceLoader broke this as well by wrapping the whole thing inside
* a media query for no reason.. added via $out->addStyle
* */
#'DiscourseSkin/resources/screen.css' => array( 'media' => 'screen' ),
/**
* ResourceLoader breaks the links to the fonts in MediaWiki 1.18
* so I used $out->addStyle() in the SkinDiscourseSkin class
*/
#'DiscourseSkin/resources/font-awesome-4.1.0/css/font-awesome.min.css' => array( 'media' => 'screen' )
'DiscourseSkin/resources/print.css' => array( 'media' => 'print' )
),
'scripts' => 'DiscourseSkin/resources/discourse.skin.js',
'remoteBasePath' => &$GLOBALS['wgStylePath'],
'localBasePath' => &$GLOBALS['wgStyleDirectory'],
);
?>