/* pike add_to_any.module:241 hack */ if ($button_setting == "custom") { $button_image = check_url(variable_get('addtoany_custom_image', '')); $button_code = variable_get('addtoany_custom_code', ''); $button_width = ''; $button_height = ''; } elseif ($button_setting != "text") { $button = explode('|', $button_setting); $button_filename = $button[0]; $button_width = ' width="' . $button[1] . '"'; $button_height = ' height="' . $button[2] . '"'; $button_image = $base_path . drupal_get_path('module', 'addtoany') . '/images/' . $button_filename; } $button_text = check_plain(variable_get('addtoany_link_text', '')); if (strlen($button_text) > 0) $button_text = ' ' . $button_text; if (!$button_code) { $button_code= sprintf('%s', $button_image, $button_width, $button_height, filter_xss(variable_get('addtoany_image_attributes', 'alt="Share this"'), array()), $button_text ); } $button_innerHTML = ($button_setting == "text") ? $button_text : $button_code; /* end pike hack */