Index: trunk/extensions/WikiBhasha/wikibhasha.php |
— | — | @@ -1,53 +0,0 @@ |
2 | | -<?php |
3 | | -/******************************************************** |
4 | | -* * |
5 | | -* Copyright (C) Microsoft. All rights reserved. * |
6 | | -* * |
7 | | -********************************************************/ |
8 | | - |
9 | | -/* |
10 | | -Copyright (c) 2010, Microsoft |
11 | | -All rights reserved. |
12 | | -*/ |
13 | | - |
14 | | -// WikiBhasha launch Extention script. |
15 | | -// Description: this script eases the procedure to launch WikiBhasha by instrumenting |
16 | | -// wikipedia pages with links and options to launch the application. It executes the |
17 | | -// same routine as the bookmarklet and is portable across Wikipedia installations. |
18 | | -// |
19 | | -// The current options to launch WikiBhasha are: |
20 | | -// 1. Looks for "action=edit" in the URL and check if toolbar exists. if present adds a |
21 | | -// icon to the toolbar for launching WikiBhasha. |
22 | | -// 2. inserts a "WikiBhasha" option in the left side toolbox menu. |
23 | | -// 3. Looks for "wbAutoLaunch=true" in the URL and launch WikiBhasha. |
24 | | - |
25 | | -$wgExtensionCredits['specialpage'][] = array( |
26 | | - 'name' => 'WikiBhasha', |
27 | | - 'author' => 'Microsoft Research', |
28 | | - 'url' => 'http://www.mediawiki.org/wiki/Extension:WikiBhasha', |
29 | | - 'description' => 'Default description message', |
30 | | - 'descriptionmsg' => 'wikibhasha-desc', |
31 | | - 'version' => '1.0', |
32 | | -); |
33 | | - |
34 | | -// static Paths |
35 | | -$dir = dirname( __FILE__ ) . '/'; |
36 | | -$jsPath = "extensions/WikiBhasha/src/"; |
37 | | - |
38 | | -// add a special page |
39 | | -$wgSpecialPages['wikiBhasha'] = 'WikiBhasha'; |
40 | | -$wgSpecialPageGroups['wikiBhasha'] = 'wiki'; |
41 | | - |
42 | | -// Autoloadable classes |
43 | | -$wgAutoloadClasses['wikiBhashaExt'] = $dir . 'WikiBhashaExtClass.php'; |
44 | | -$wgAutoloadClasses['wikiBhasha'] = $dir . 'WikiBhashaSpecial.php'; |
45 | | - |
46 | | -// initilize wikiBhasha launch class |
47 | | -$wbExtClass = new wikiBhashaExt(); |
48 | | - |
49 | | -$wgAutoloadClasses['wikibhasha'] = $dir . 'WikiBhasha_body.php'; # Location of the wikibhasha class (Tell MediaWiki to load this file) |
50 | | -$wgExtensionMessagesFiles['WikiBhasha'] = $dir . 'WikiBhasha.i18n.php'; # Location of a messages file (Tell MediaWiki to load this file) |
51 | | -$wgExtensionAliasesFiles['WikiBhasha'] = $dir . 'WikiBhasha.alias.php'; # Location of a messages file (Tell MediaWiki to load this file) |
52 | | - |
53 | | -$wgHooks['MonoBookTemplateToolboxEnd'][] = array( $wbExtClass, 'wikiBhashaToolbox' ); |
54 | | -$wgHooks['BeforePageDisplay'][] = array( $wbExtClass, 'wbToolbarIcon' ); |
Index: trunk/extensions/WikiBhasha/WikiBhasha.php |
— | — | @@ -0,0 +1,53 @@ |
| 2 | +<?php |
| 3 | +/******************************************************** |
| 4 | +* * |
| 5 | +* Copyright (C) Microsoft. All rights reserved. * |
| 6 | +* * |
| 7 | +********************************************************/ |
| 8 | + |
| 9 | +/* |
| 10 | +Copyright (c) 2010, Microsoft |
| 11 | +All rights reserved. |
| 12 | +*/ |
| 13 | + |
| 14 | +// WikiBhasha launch Extention script. |
| 15 | +// Description: this script eases the procedure to launch WikiBhasha by instrumenting |
| 16 | +// wikipedia pages with links and options to launch the application. It executes the |
| 17 | +// same routine as the bookmarklet and is portable across Wikipedia installations. |
| 18 | +// |
| 19 | +// The current options to launch WikiBhasha are: |
| 20 | +// 1. Looks for "action=edit" in the URL and check if toolbar exists. if present adds a |
| 21 | +// icon to the toolbar for launching WikiBhasha. |
| 22 | +// 2. inserts a "WikiBhasha" option in the left side toolbox menu. |
| 23 | +// 3. Looks for "wbAutoLaunch=true" in the URL and launch WikiBhasha. |
| 24 | + |
| 25 | +$wgExtensionCredits['specialpage'][] = array( |
| 26 | + 'name' => 'WikiBhasha', |
| 27 | + 'author' => 'Microsoft Research', |
| 28 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:WikiBhasha', |
| 29 | + 'description' => 'Default description message', |
| 30 | + 'descriptionmsg' => 'wikibhasha-desc', |
| 31 | + 'version' => '1.0', |
| 32 | +); |
| 33 | + |
| 34 | +// static Paths |
| 35 | +$dir = dirname( __FILE__ ) . '/'; |
| 36 | +$jsPath = "extensions/WikiBhasha/src/"; |
| 37 | + |
| 38 | +// add a special page |
| 39 | +$wgSpecialPages['wikiBhasha'] = 'WikiBhasha'; |
| 40 | +$wgSpecialPageGroups['wikiBhasha'] = 'wiki'; |
| 41 | + |
| 42 | +// Autoloadable classes |
| 43 | +$wgAutoloadClasses['wikiBhashaExt'] = $dir . 'WikiBhashaExtClass.php'; |
| 44 | +$wgAutoloadClasses['wikiBhasha'] = $dir . 'WikiBhashaSpecial.php'; |
| 45 | + |
| 46 | +// initilize wikiBhasha launch class |
| 47 | +$wbExtClass = new wikiBhashaExt(); |
| 48 | + |
| 49 | +$wgAutoloadClasses['wikibhasha'] = $dir . 'WikiBhasha_body.php'; # Location of the wikibhasha class (Tell MediaWiki to load this file) |
| 50 | +$wgExtensionMessagesFiles['WikiBhasha'] = $dir . 'WikiBhasha.i18n.php'; # Location of a messages file (Tell MediaWiki to load this file) |
| 51 | +$wgExtensionAliasesFiles['WikiBhasha'] = $dir . 'WikiBhasha.alias.php'; # Location of a messages file (Tell MediaWiki to load this file) |
| 52 | + |
| 53 | +$wgHooks['MonoBookTemplateToolboxEnd'][] = array( $wbExtClass, 'wikiBhashaToolbox' ); |
| 54 | +$wgHooks['BeforePageDisplay'][] = array( $wbExtClass, 'wbToolbarIcon' ); |
Property changes on: trunk/extensions/WikiBhasha/WikiBhasha.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 55 | + native |