-
Notifications
You must be signed in to change notification settings - Fork 0
/
dokitFabmob.php
41 lines (32 loc) · 1.02 KB
/
dokitFabmob.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
<?php
$wgMessagesDirs['DokitFabmob'] = __DIR__ . "/i18n";
$wgResourceModules['ext.DokitFabmob.css'] = array(
'styles' => array('style.css'),
'position' => 'top',
'localBasePath' => __DIR__ . '',
'remoteExtPath' => 'DokitFabmob',
);
$wgResourceModules['ext.DokitFabmob.js'] = array(
'scripts' => 'style.js',
'messages' => array(
),
'dependencies' => array(
'jquery.ui'
),
'position' => 'bottom',
'localBasePath' => __DIR__ . '',
'remoteExtPath' => 'DokitFabmob',
);
$wgMessagesDirs['DokitFabmob'] = __DIR__ . '/i18n';
function dokitFabmobBeforePageDisplay( $out, $skin ) {
$out->addModuleStyles(
array(
'ext.DokitFabmob.css'
)
);
$out->addModules( array( 'ext.DokitFabmob.js' ) );
return true;
}
$wgHooks['BeforePageDisplay'][] = 'dokitFabmobBeforePageDisplay';
$wgAutoloadClasses['Skins\\Chameleon\\Components\\FabmobFooter'] = __DIR__ . "/chameleon-component/FabmobFooter.php";
$wgAutoloadClasses['Skins\\Chameleon\\Components\\FabmobButtonBar'] = __DIR__ . "/chameleon-component/FabmobButtonBar.php";