Index: trunk/extensions/UsabilityInitiative/Vector/Vector.php |
— | — | @@ -20,7 +20,7 @@ |
21 | 21 | |
22 | 22 | // Each module may be configured individually to be globally on/off or user preference based |
23 | 23 | $wgVectorModules = array( |
24 | | - 'collapsiblenav' => array( 'global' => true, 'user' => false ), |
| 24 | + 'collapsiblenav' => array( 'global' => false, 'user' => true ), |
25 | 25 | 'collapsibletabs' => array( 'global' => true, 'user' => false ), |
26 | 26 | 'editwarning' => array( 'global' => false, 'user' => true ), |
27 | 27 | 'footercleanup' => array( 'global' => false, 'user' => false ), |
— | — | @@ -49,6 +49,7 @@ |
50 | 50 | $wgExtensionMessagesFiles['Vector'] = dirname( __FILE__ ) . '/Vector.i18n.php'; |
51 | 51 | $wgExtensionMessagesFiles['VectorEditWarning'] = dirname( __FILE__ ) . '/Modules/EditWarning/EditWarning.i18n.php'; |
52 | 52 | $wgExtensionMessagesFiles['VectorSimpleSearch'] = dirname( __FILE__ ) . '/Modules/SimpleSearch/SimpleSearch.i18n.php'; |
| 53 | +$wgExtensionMessagesFiles['VectorCollapsibleNav'] = dirname( __FILE__ ) . '/Modules/CollapsibleNav/CollapsibleNav.i18n.php'; |
53 | 54 | |
54 | 55 | // Register Hooks |
55 | 56 | $wgHooks['UsabilityInitiativeLoadModules'][] = 'VectorHooks::addModules'; |
Index: trunk/extensions/UsabilityInitiative/Vector/Vector.hooks.php |
— | — | @@ -27,6 +27,17 @@ |
28 | 28 | ); |
29 | 29 | static $modules = array( |
30 | 30 | 'collapsiblenav' => array( |
| 31 | + 'i18n' => 'VectorCollapsibleNav', |
| 32 | + 'preferences' => array( |
| 33 | + 'enable' => array( |
| 34 | + 'key' => 'vector-collapsiblenav', |
| 35 | + 'ui' => array( |
| 36 | + 'type' => 'toggle', |
| 37 | + 'label-message' => 'vector-collapsiblenav-preference', |
| 38 | + 'section' => 'rendering/advancedrendering', |
| 39 | + ), |
| 40 | + ), |
| 41 | + ), |
31 | 42 | ), |
32 | 43 | 'collapsibletabs' => array( |
33 | 44 | ), |