Index: trunk/extensions/WikiEditor/WikiEditor.php |
— | — | @@ -1 +1,50 @@ |
2 | 2 | <?php |
| 3 | +/** |
| 4 | + * WikiEditor extension |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + * |
| 9 | + * @author Trevor Parscal <trevor@wikimedia.org> |
| 10 | + * @author Roan Kattouw <roan.kattouw@gmail.com> |
| 11 | + * @author Nimish Gautam <nimish@wikimedia.org> |
| 12 | + * @author Adam Miller <amiller@wikimedia.org> |
| 13 | + * @license GPL v2 or later |
| 14 | + * @version 0.3.0 |
| 15 | + */ |
| 16 | + |
| 17 | +/* Configuration */ |
| 18 | + |
| 19 | +// Each module may be configured individually to be globally on/off or user preference based |
| 20 | +$wgWikiEditorModules = array( |
| 21 | + // Order is significant: makes beta prefs appear before labs prefs |
| 22 | + 'toolbar' => array( 'global' => false, 'user' => true ), |
| 23 | + 'highlight' => array( 'global' => false, 'user' => true ), |
| 24 | + 'preview' => array( 'global' => false, 'user' => true ), |
| 25 | + 'previewDialog' => array( 'global' => false, 'user' => true ), |
| 26 | + 'publish' => array( 'global' => false, 'user' => true ), |
| 27 | + 'toc' => array( 'global' => false, 'user' => true ), |
| 28 | + 'templateEditor' => array( 'global' => false, 'user' => true ), |
| 29 | + 'templates' => array( 'global' => false, 'user' => true ), |
| 30 | + 'addMediaWizard' => array( 'global' => false, 'user' => false ), |
| 31 | +); |
| 32 | + |
| 33 | +// Bump this each time you change an icon without renaming it |
| 34 | +$wgWikiEditorIconVersion = 0; |
| 35 | + |
| 36 | +/* Setup */ |
| 37 | + |
| 38 | +$wgExtensionCredits['other'][] = array( |
| 39 | + 'path' => __FILE__, |
| 40 | + 'name' => 'WikiEditor', |
| 41 | + 'author' => array( 'Trevor Parscal', 'Roan Kattouw', 'Nimish Gautam', 'Adam Miller' ), |
| 42 | + 'version' => '0.3.0', |
| 43 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:UsabilityInitiative', |
| 44 | + 'descriptionmsg' => 'wikieditor-desc', |
| 45 | +); |
| 46 | +$wgAutoloadClasses['WikiEditorHooks'] = dirname( __FILE__ ) . '/WikiEditor.hooks.php'; |
| 47 | +$wgExtensionMessagesFiles['WikiEditor'] = dirname( __FILE__ ) . '/WikiEditor.i18n.php'; |
| 48 | +$wgHooks['BeforePageDisplay'][] = 'WikiEditorHooks::beforePageDisplay'; |
| 49 | +$wgHooks['GetPreferences'][] = 'WikiEditorHooks::getPreferences'; |
| 50 | +$wgHooks['MakeGlobalVariablesScript'][] = 'WikiEditorHooks::makeGlobalVariablesScript'; |
| 51 | +$wgHooks['ResourceLoaderRegisterModules'][] = 'WikiEditorHooks::resourceLoaderRegisterModules'; |