-
Notifications
You must be signed in to change notification settings - Fork 0
/
MOOC.php
52 lines (45 loc) · 1.44 KB
/
MOOC.php
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
<?php
/**
* MOOC extension
*/
if (function_exists('wfLoadExtension')) {
wfLoadExtension('MOOC');
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['MOOC'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['MOOCAlias'] = __DIR__ . '/MOOC.i18n.alias.php';
$wgExtensionMessagesFiles['MOOCNamespaces'] = __DIR__ . '/MOOC.namespaces.php';
// TODO remove this BUT FIRSTLY remove old, cached resource files
$wgResourceLoaderDebug = true;
// TODO get out how to include jquery.ui.effects (includes easing) other than shipping
// TODO can we automatically prefix classes/ids? at least in LESS?
$wgMOOCSectionConfig = [
'learning-goals' => [
'collapsed' => false
],
'video' => [
'collapsed' => false
],
'script' => [
'collapsed' => true
],
'quiz' => [
'collapsed' => true
],
'further-reading' => [
'collapsed' => false
],
'lessons' => [
'collapsed' => false
],
'units' => [
'collapsed' => false
]
];
global $wgScriptPath;
$wgExtensionAssetsPath = $wgScriptPath . '/extensions';
$wgMOOCAssetsPath = $wgExtensionAssetsPath . '/MOOC';
$wgMOOCImagePath = $wgMOOCAssetsPath . "/images/";
return true;
} else {
die('This version of the MOOC extension requires MediaWiki 1.25+');
}