-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMathMenu.php
More file actions
executable file
·53 lines (47 loc) · 1.3 KB
/
MathMenu.php
File metadata and controls
executable file
·53 lines (47 loc) · 1.3 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
/*
*Mediawiki MathMenu extension
*
*@file
*@ingroup Extensions
*@version 1.0
*@author Deyan Ginev and Janelle Williams
*
*/
if (!defined('MEDIAWIKI')) {
die("This is not a valid entry point to MediaWiki.\n");
}
//Extension credits that shows on Sepcial: Version
$wgExtensionCredits['other'][]=array(
'path'=> __FILE__,
'name'=> 'MathMenu',
'author'=> 'Deyan Ginev and Janelle Williams',
'version'=> '1.0',
'descriptionmsg'=>'A dynamic menu for interactive services on MediaWiki formulas',
);
global $wgResourceModules, $wgOut;
$wgHooks['BeforePageDisplay'][] = 'addingModules';
function addingModules(&$out ){
$out->addModules( array ('ext.MathMenu') );
return true;
}
$moduleTemplate = array(
'localBasePath' => dirname(__FILE__) . '/',
'remoteExtPath' => 'MathMenu/',
'position' => 'top',
'group' => 'ext.MathMenu',
);
$wgResourceModules['ext.MathMenu'] = $moduleTemplate + array(
'scripts' => array(
'jobad/build/release/libs/js/libs.js',
'jobad/build/release/JOBAD.min.js',
'ZeroClipboard.js',
'math.clipboard.js',
"mathjax.mathjax.js",
"math.wolframalpha.js",
"JOBAD.load-global.js"
),
//'dependencies' => array('jquery'),
'styles' => array('jobad/build/release/libs/css/libs.css','jobad/build/release/JOBAD.min.css')
);
?>