#476598 by noomz - Fix for IE 6.x-2.8
authorVesa Palmu
Thu, 22 Oct 2009 17:57:50 +0000 (17:57 +0000)
committerVesa Palmu
Thu, 22 Oct 2009 17:57:50 +0000 (17:57 +0000)
addthis.module

index 39e3be6..c715a8d 100644 (file)
@@ -146,6 +146,15 @@ function _addthis_create_button($node=NULL, $teaser = FALSE) {
  * Theme the AddThis button.
  */
 function theme_addthis_button($node, $teaser) {
+  // Fix IE's bug.
+  if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
+    drupal_add_link(array(
+      'rel' => 'stylesheet',
+      'type' => 'text/css',
+      'href' => "http://s7.addthis.com/static/r07/widget02.css",
+    ));
+  }
+
   if (variable_get('addthis_dropdown_disabled', '0')) {
     return ( sprintf('
       <a class="addthis-button" href="http://www.addthis.com/bookmark.php"