forked from wikimedia/mediawiki-extensions-BetaFeatures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBetaFeatures.php
91 lines (80 loc) · 3.19 KB
/
BetaFeatures.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/*
* This file is part of the MediaWiki extension BetaFeatures.
*
* BetaFeatures is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* BetaFeatures is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with BetaFeatures. If not, see <http://www.gnu.org/licenses/>.
*
* BetaFeatures extension
*
* @file
* @ingroup Extensions
* @copyright 2013 Mark Holmquist and others; see AUTHORS
* @license GNU General Public License version 2 or later
*/
$wgAutoloadClasses['BetaFeaturesHooks'] = __DIR__ . '/BetaFeaturesHooks.php';
$wgAutoloadClasses['NewHTMLCheckField'] = __DIR__ . '/includes/NewHTMLCheckField.php';
$wgAutoloadClasses['HTMLFeatureField'] = __DIR__ . '/includes/HTMLFeatureField.php';
$wgAutoloadClasses['HTMLTextBlockField'] = __DIR__ . '/includes/HTMLTextBlockField.php';
$wgAutoloadClasses['HTMLHorizontalRuleField'] = __DIR__ . '/includes/HTMLHorizontalRuleField.php';
$wgAutoloadClasses['BetaFeatures'] = __DIR__ . '/includes/BetaFeaturesUtil.php';
$wgAutoloadClasses['UpdateBetaFeatureUserCountsJob'] = __DIR__ . '/includes/UpdateBetaFeatureUserCountsJob.php';
$wgAutoloadClasses['ApiQueryBetaFeatures'] = __DIR__ . '/includes/ApiListBetaFeatures.php';
$wgAPIListModules['betafeatures'] = 'ApiQueryBetaFeatures';
$wgExtensionMessagesFiles['BetaFeatures'] = __DIR__ . '/BetaFeatures.i18n.php';
$wgHooks['UserSaveOptions'][] = 'BetaFeaturesHooks::updateUserCounts';
$wgHooks['GetPreferences'][] = 'BetaFeaturesHooks::getPreferences';
$wgHooks['PersonalUrls'][] = 'BetaFeaturesHooks::getBetaFeaturesLink';
$wgHooks['UnitTestsList'][] = 'BetaFeaturesHooks::getUnitTestsList';
$wgHooks['LoadExtensionSchemaUpdates'][] = 'BetaFeaturesHooks::getSchemaUpdates';
$wgHooks['MakeGlobalVariablesScript'][] = 'BetaFeaturesHooks::onMakeGlobalVariablesScript';
$wgHooks['ExtensionTypes'][] = 'BetaFeaturesHooks::onExtensionTypes';
$wgJobClasses['updateBetaFeaturesUserCounts'] = 'UpdateBetaFeatureUserCountsJob';
$moduleInfo = array(
'localBasePath' => __DIR__,
'remoteExtPath' => 'BetaFeatures',
);
$wgResourceModules['ext.betaFeatures'] = array(
'scripts' => array(
'js/betafeatures.js',
'js/mediawiki.ui.checkbox.js',
),
'styles' => array(
'css/betafeatures.css',
),
'dependencies' => array(
'jquery.client',
),
'targets' => array( 'mobile', 'desktop' ),
) + $moduleInfo;
$wgResourceModules['ext.betaFeatures.popup'] = array(
'scripts' => array(
'js/ext.betaFeatures.popup.js',
),
'dependencies' => array(
'jquery.tipsy',
),
'messages' => array(
'betafeatures-tooltip',
),
) + $moduleInfo;
$wgExtensionCredits['other'][] = array(
'path' => __FILE__,
'name' => 'BetaFeatures',
'descriptionmsg' => 'betafeatures-desc',
'version' => '0.1',
'author' => array(
'MarkTraceur (Mark Holmquist)',
),
'url' => 'https://mediawiki.org/wiki/Extension:BetaFeatures',
);