From 90551bba06bae4a09ecace2a763f99188bf812ed Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Wed, 12 Jan 2011 20:01:52 +0000 Subject: [PATCH] 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. --- skins/Vector.php | 9 +++++---- skins/vector/csshover.min.htc | 12 ++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100755 skins/vector/csshover.min.htc 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 -- 2.20.1