Optionally add text to the AddToAny link.

See http://drupal.org/node/498048 for the feature request.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>

Index: addtoany/addtoany.css
===================================================================
--- addtoany.orig/addtoany.css
+++ addtoany/addtoany.css
@@ -2,9 +2,9 @@
   display:inline;
 }
 .addtoany img{
-  vertical-align: bottom;
-  margin-bottom: 2px;
+  vertical-align: text-bottom;
+  margin-right: 3px;
 }
 .a2a_menu tbody{
 	border:0 !important;
-}
\ No newline at end of file
+}
Index: addtoany/addtoany.module
===================================================================
--- addtoany.orig/addtoany.module
+++ addtoany/addtoany.module
@@ -189,7 +189,7 @@
   }
      
   return ( sprintf('
-      <a%s href="http://www.addtoany.com/share_save?linkurl=%s&amp;linkname=%s"><img src="%s"%s%s %s/></a>
+      <a%s href="http://www.addtoany.com/share_save?linkurl=%s&amp;linkname=%s"><img src="%s"%s%s %s/>%s</a>
       ',
 	  $disable_dropdown ? '' : ' class="a2a_dd"',
 	  $link_url,
@@ -197,7 +197,8 @@
       $button_image,
       $button_width,
       $button_height,
-      variable_get('addtoany_custom_image_attributes', 'alt="Share/Save"')
+      variable_get('addtoany_custom_image_attributes', 'alt="Share/Save"'),
+      variable_get('addtoany_custom_link_text', '')
   ));
 
 }
Index: addtoany/addtoany.admin.inc
===================================================================
--- addtoany.orig/addtoany.admin.inc
+++ addtoany/addtoany.admin.inc
@@ -87,6 +87,13 @@
     '#description'   => t('Extra HTML attributes for img tag. Example: alt=""'),
   );
   
+  $form['addtoany_button_settings']['addtoany_custom_link_text'] = array(
+    '#type'          => 'textfield',
+    '#title'         => t('Custom link text'),
+    '#default_value' => variable_get('addtoany_custom_link_text', ''),
+    '#description'   => t('Text for the AddToAny link. Example: Share / Save'),
+  );
+  
   $form['addtoany_additional_settings'] = array(
     '#type'         => 'fieldset',
     '#title'        => t('Additional options'),
