Index: trunk/extensions/uniwiki/CatBoxAtTop/style.css |
— | — | @@ -42,9 +42,3 @@ |
43 | 43 | line-height: 1.8; |
44 | 44 | list-style-image: none; |
45 | 45 | } |
46 | | - |
47 | | -/*#catbox li a { |
48 | | - display: block; |
49 | | - padding: 0.25em 0.5em; |
50 | | - border-bottom: 1px solid #eee; |
51 | | -}*/ |
Index: trunk/extensions/uniwiki/CatBoxAtTop/CatBoxAtTop.i18n.php |
— | — | @@ -0,0 +1,14 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Internationalisation for Uniwiki/CatBoxAtTop extension |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$messages = array(); |
| 11 | + |
| 12 | +/** English */ |
| 13 | +$messages['en'] = array( |
| 14 | + 'catboxattop-desc' => 'Adds a category box to the top right of pages', |
| 15 | +); |
Property changes on: trunk/extensions/uniwiki/CatBoxAtTop/CatBoxAtTop.i18n.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 16 | + native |
Added: svn:keywords |
2 | 17 | + Id |
Index: trunk/extensions/uniwiki/CatBoxAtTop/CatBoxAtTop.php |
— | — | @@ -9,14 +9,21 @@ |
10 | 10 | /* ---- CREDITS ---- */ |
11 | 11 | |
12 | 12 | $wgExtensionCredits['other'][] = array( |
13 | | - 'name' => "Uniwiki Category Box at Top", |
14 | | - 'author' => "Merrick Schaefer, Mark Johnston, Evan Wheeler and Adam Mckaig (at UNICEF)", |
15 | | - 'description' => "Adds a category box to the top right of articles" |
| 13 | + 'name' => 'CatBoxAtTop', |
| 14 | + 'author' => 'Merrick Schaefer, Mark Johnston, Evan Wheeler and Adam Mckaig (at UNICEF)', |
| 15 | + 'description' => 'Adds a category box to the top right of pages', |
| 16 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:Uniwiki/CatBoxAtTop', |
| 17 | + 'svn-date' => '$LastChangedDate', |
| 18 | + 'svn-revision' => '$LastChangedRevision$', |
| 19 | + 'descriptionmsg' => 'catboxattop-desc', |
16 | 20 | ); |
17 | 21 | |
| 22 | +$wgExtensionMessagesFiles['CatBoxAtTop'] = dirname( __FILE__ ) . '/CatBoxAtTop.i18n.php'; |
| 23 | + |
18 | 24 | /* ---- HOOKS ---- */ |
| 25 | +$wgHooks['BeforePageDisplay'][] = "UW_CatBoxAtTop_CSS"; |
| 26 | +$wgHooks['OutputPageBeforeHTML'][] = "UW_CatBoxAtTop_Rejig"; |
19 | 27 | |
20 | | -$wgHooks['BeforePageDisplay'][] = "UW_CatBoxAtTop_CSS"; |
21 | 28 | function UW_CatBoxAtTop_CSS (&$out) { |
22 | 29 | global $wgScriptPath; |
23 | 30 | $href = "$wgScriptPath/extensions/uniwiki/CatBoxAtTop/style.css"; |
— | — | @@ -24,7 +31,6 @@ |
25 | 32 | return true; |
26 | 33 | } |
27 | 34 | |
28 | | -$wgHooks['OutputPageBeforeHTML'][] = "UW_CatBoxAtTop_Rejig"; |
29 | 35 | function UW_CatBoxAtTop_Rejig (&$out, &$text) { |
30 | 36 | global $wgVersion; |
31 | 37 | |
Property changes on: trunk/extensions/uniwiki/CatBoxAtTop/CatBoxAtTop.php |
___________________________________________________________________ |
Added: svn:keywords |
32 | 38 | + LastChangedDate LastChangedRevision |