Index: trunk/phase3/skins/Vector.php |
— | — | @@ -24,29 +24,26 @@ |
25 | 25 | * @param object $out Output page object to initialize |
26 | 26 | */ |
27 | 27 | public function initPage( OutputPage $out ) { |
| 28 | + global $wgStylePath; |
| 29 | + |
28 | 30 | parent::initPage( $out ); |
29 | 31 | $this->skinname = 'vector'; |
30 | 32 | $this->stylename = 'vector'; |
31 | 33 | $this->template = 'VectorTemplate'; |
| 34 | + |
| 35 | + // Append skin-specific styles |
| 36 | + $out->addStyle( 'vector/main-rtl.css', 'screen', '', 'rtl' ); |
| 37 | + $out->addStyle( 'vector/main-ltr.css', 'screen', '', 'ltr' ); |
| 38 | + // Append CSS which includes IE only behavior fixes for hover support - |
| 39 | + // this is better than including this in a CSS fille since it doesn't |
| 40 | + // wait for the CSS file to load before fetching the HTC file. |
| 41 | + $out->addScript( |
| 42 | + '<!--[if lt IE 7]><style type="text/css">body{behavior:url("' . |
| 43 | + $wgStylePath . |
| 44 | + '/vector/csshover.htc")}</style><![endif]-->' |
| 45 | + ); |
32 | 46 | } |
33 | | - |
34 | 47 | /** |
35 | | - * Defines CSS files to be included |
36 | | - * @param object $out Output page to add styles to |
37 | | - */ |
38 | | - public function setupSkinUserCss( OutputPage $out ) { |
39 | | - global $wgContLang; |
40 | | - // Append to the default screen common & print styles... |
41 | | - if ( $wgContLang->isRTL() ) { |
42 | | - $out->addStyle( 'vector/main-rtl.css', 'screen' ); |
43 | | - } else { |
44 | | - $out->addStyle( 'vector/main-ltr.css', 'screen' ); |
45 | | - } |
46 | | - // Add common styles |
47 | | - parent::setupSkinUserCss( $out ); |
48 | | - } |
49 | | - |
50 | | - /** |
51 | 48 | * Builds a structured array of links used for tabs and menus |
52 | 49 | * @return array |
53 | 50 | * @private |