From: Trevor Parscal Date: Wed, 12 Jan 2011 20:01:52 +0000 (+0000) Subject: Added compressed version of csshover 3.11. Also fixed major issue where including... X-Git-Tag: 1.31.0-rc.0~32592 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=90551bba06bae4a09ecace2a763f99188bf812ed;p=lhc%2Fweb%2Fwiklou.git Added compressed version of csshover 3.11. Also fixed major issue where including it at the bottom with the scripts caused it to be included too late, and thus not even be used. Now we are adding it through OutputPage::addHeadItem. --- diff --git a/skins/Vector.php b/skins/Vector.php index 748614f737..ebe0a8ac38 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -27,17 +27,18 @@ class SkinVector extends SkinTemplate { * @param $out OutputPage object to initialize */ public function initPage( OutputPage $out ) { - global $wgLocalStylePath; + global $wgLocalStylePath, $wgRequest; parent::initPage( $out ); - + // Append CSS which includes IE only behavior fixes for hover support - // this is better than including this in a CSS fille since it doesn't // wait for the CSS file to load before fetching the HTC file. - $out->addScript( + $min = $wgRequest->getFuzzyBool( 'debug' ) ? '' : '.min'; + $out->addHeadItem( 'csshover', '" + "/{$this->stylename}/csshover{$min}.htc\")}" ); } diff --git a/skins/vector/csshover.min.htc b/skins/vector/csshover.min.htc new file mode 100755 index 0000000000..4fa021f5dc --- /dev/null +++ b/skins/vector/csshover.min.htc @@ -0,0 +1,12 @@ + + \ No newline at end of file