Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | $wgExtensionCredits[version_compare( $wgVersion, '1.17', '>=' ) ? 'userpage tools' : 'other'][] = array( |
19 | 19 | 'path' => __FILE__, |
20 | 20 | 'name' => 'Online status bar', |
21 | | - 'version' => '1.0.1', |
| 21 | + 'version' => '1.0.2', |
22 | 22 | 'author' => array( 'Petr Bena' ), |
23 | 23 | 'descriptionmsg' => 'onlinestatusbar-desc', |
24 | 24 | 'url' => 'http://www.mediawiki.org/wiki/Extension:OnlineStatusBar', |
— | — | @@ -32,6 +32,12 @@ |
33 | 33 | 'remoteExtPath' => 'OnlineStatusBar', |
34 | 34 | ); |
35 | 35 | |
| 36 | +$wgResourceModules['ext.OnlineStatusBar.mono'] = array ( |
| 37 | + 'styles' => 'OnlineStatusBarMono.css', |
| 38 | + 'localBasePath' => dirname ( __FILE__ ), |
| 39 | + 'remoteExtPath' => 'OnlineStatusBar', |
| 40 | +); |
| 41 | + |
36 | 42 | $wgAutoloadClasses['OnlineStatusBar'] = "$dir/OnlineStatusBar.body.php"; |
37 | 43 | $wgAutoloadClasses['OnlineStatusBarHooks'] = "$dir/OnlineStatusBarHooks.php"; |
38 | 44 | |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php |
— | — | @@ -134,7 +134,13 @@ |
135 | 135 | * @return bool |
136 | 136 | */ |
137 | 137 | public static function stylePage( &$out, &$skin ) { |
138 | | - $out->addModules( 'ext.OnlineStatusBar' ); |
| 138 | + switch ($skin->getSkinName()) { |
| 139 | + case "monobook": |
| 140 | + $out->addModules( 'ext.OnlineStatusBar.mono' ); |
| 141 | + break; |
| 142 | + default: |
| 143 | + $out->addModules( 'ext.OnlineStatusBar' ); |
| 144 | + } |
139 | 145 | return true; |
140 | 146 | } |
141 | 147 | |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBarMono.css |
— | — | @@ -0,0 +1,24 @@ |
| 2 | +/* |
| 3 | +This is a part of css used on english wp, it's needed for wikis |
| 4 | +where topicon isn't defined |
| 5 | +*/ |
| 6 | +div.onlinestatusbartop { |
| 7 | + position: absolute; |
| 8 | + z-index: 10; |
| 9 | + top: 10px; |
| 10 | + display: block !important; |
| 11 | +} |
| 12 | + |
| 13 | +div.onlinestatusbaricon { |
| 14 | + border: 0px solid black; |
| 15 | + background: transparent; |
| 16 | + float: right; |
| 17 | + position: relative; |
| 18 | + top: 0px; |
| 19 | + padding: 5px; |
| 20 | +} |
| 21 | + |
| 22 | +div.onlinestatusbarbody { |
| 23 | + right:0px; |
| 24 | + margin-top:-10px; |
| 25 | +} |
Property changes on: trunk/extensions/OnlineStatusBar/OnlineStatusBarMono.css |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 26 | + native |