summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addthis.module9
1 files changed, 9 insertions, 0 deletions
diff --git a/addthis.module b/addthis.module
index 39e3be6..c715a8d 100644
--- a/addthis.module
+++ b/addthis.module
@@ -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"