AddToAny Share Buttons - Version 0.9.8.6.1

Version Description

Download this release

Release Info

Developer micropat
Plugin Icon 128x128 AddToAny Share Buttons
Version 0.9.8.6.1
Comparing to
See all releases

Code changes from version 0.9.8.6 to 0.9.8.6.1

Files changed (2) hide show
  1. README.txt +6 -1
  2. add-to-any.php +12 -12
README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.addtoany.com/contact/
4
  Tags: bookmarking, social, social bookmarking, bookmark, bookmarks, sharing, share, saving, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, e-mail, email, seo, button, delicious, google, digg, reddit, facebook, myspace, addtoany, add, any
5
  Requires at least: 2.0
6
  Tested up to: 2.7
7
- Stable tag: 0.9.8.6
8
 
9
  Helps readers share, save, and bookmark your posts and pages using any service, such as Delicious, Digg, Facebook, MySpace, and all the rest.
10
 
@@ -66,6 +66,11 @@ This is done to overcome browser limitations that prevent the drop-down menu fro
66
 
67
  == Changelog ==
68
 
 
 
 
 
 
69
  .9.8.6:
70
 
71
  * Fixed output buffering - button should appear below posts again if option is set
4
  Tags: bookmarking, social, social bookmarking, bookmark, bookmarks, sharing, share, saving, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, e-mail, email, seo, button, delicious, google, digg, reddit, facebook, myspace, addtoany, add, any
5
  Requires at least: 2.0
6
  Tested up to: 2.7
7
+ Stable tag: 0.9.8.6.1
8
 
9
  Helps readers share, save, and bookmark your posts and pages using any service, such as Delicious, Digg, Facebook, MySpace, and all the rest.
10
 
66
 
67
  == Changelog ==
68
 
69
+ .9.8.6.1:
70
+
71
+ * Fixed buttons if WordPress files are in a subdirectory while the blog appears in the site root
72
+ * For example: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
73
+
74
  .9.8.6:
75
 
76
  * Fixed output buffering - button should appear below posts again if option is set
add-to-any.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Add to Any: Share/Save/Bookmark Button
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Helps readers share, save, and bookmark your posts and pages using any service. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
- Version: .9.8.6
7
  Author: Add to Any
8
  Author URI: http://www.addtoany.com/contact/
9
  */
@@ -47,7 +47,7 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = false) {
47
  $button_fname = 'share_save_120_16.gif';
48
  $button_width = ' width="120"';
49
  $button_height = ' height="16"';
50
- $button_src = trailingslashit(get_bloginfo('url')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/'.$button_fname;
51
  } else if( get_option('A2A_SHARE_SAVE_button') == 'CUSTOM' ) {
52
  $button_src = get_option('A2A_SHARE_SAVE_button_custom');
53
  $button_width = '';
@@ -59,10 +59,10 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = false) {
59
  $button_fname = $button_attrs[0];
60
  $button_width = ' width="'.$button_attrs[1].'"';
61
  $button_height = ' height="'.$button_attrs[2].'"';
62
- $button_src = trailingslashit(get_bloginfo('url')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/'.$button_fname;
63
  }
64
  if( $button_attrs[0] == 'favicon.png' ) {
65
- $style_bg = 'background:url('.trailingslashit(get_bloginfo('url')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/'.$button_fname.') no-repeat scroll 0px 0px';
66
  $style_bg = ';' . $style_bg . ' !important;';
67
  $style = ' style="'.$style_bg.'padding:1px 5px 5px 22px"';
68
  $button = 'Share/Save';
@@ -122,8 +122,8 @@ if (!function_exists('A2A_menu_locale')) {
122
  Share: "' . __("Share", "add-to-any") . '",
123
  Save: "' . __("Save", "add-to-any") . '",
124
  Subscribe: "' . __("Subscribe", "add-to-any") . '",
125
- Email: "' . __("E-mail") . '",
126
- Bookmark: "' . __("Bookmark") . '",
127
  ShowAll: "' . __("Show all", "add-to-any") . '",
128
  ShowLess: "' . __("Show less", "add-to-any") . '",
129
  FindServices: "' . __("Find service(s)", "add-to-any") . '",
@@ -134,8 +134,8 @@ if (!function_exists('A2A_menu_locale')) {
134
  BookmarkInYourBrowser: "' . __("Bookmark in your browser", "add-to-any") . '",
135
  BookmarkInstructions: "' . __("Press Ctrl+D or Cmd+D to bookmark this page", "add-to-any") . '",
136
  AddToYourFavorites: "' . __("Add to your favorites", "add-to-any") . '",
137
- SendFromWebOrProgram: "' . __("Send from any e-mail address or e-mail program") . '",
138
- EmailProgram: "' . __("E-mail program") . '"
139
  };
140
  ';
141
  return $A2A_locale;
@@ -221,25 +221,25 @@ function A2A_SHARE_SAVE_options_page() {
221
  <label>
222
  <input name="A2A_SHARE_SAVE_button" value="favicon.png|16|16" type="radio"<?php if(get_option('A2A_SHARE_SAVE_button')=='favicon.png|16|16') echo ' checked="checked"'; ?>
223
  style="margin:9px 0;vertical-align:middle">
224
- <img src="<?php echo trailingslashit(get_bloginfo('url')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/favicon.png'; ?>" width="16" height="16" border="0" style="padding:9px;vertical-align:middle" alt="+ Share/Save" title="+ Share/Save"
225
  onclick="this.parentNode.firstChild.checked=true"/>
226
  </label><br>
227
  <label>
228
  <input name="A2A_SHARE_SAVE_button" value="share_save_120_16.gif|120|16" type="radio"<?php if( !get_option('A2A_SHARE_SAVE_button') || get_option('A2A_SHARE_SAVE_button' )=='share_save_120_16.gif|120|16') echo ' checked="checked"'; ?>
229
  style="margin:9px 0;vertical-align:middle">
230
- <img src="<?php echo trailingslashit(get_bloginfo('url')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/share_save_120_16.gif'; ?>" width="120" height="16" border="0" style="padding:9px;vertical-align:middle"
231
  onclick="this.parentNode.firstChild.checked=true"/>
232
  </label><br>
233
  <label>
234
  <input name="A2A_SHARE_SAVE_button" value="share_save_171_16.gif|171|16" type="radio"<?php if(get_option('A2A_SHARE_SAVE_button')=='share_save_171_16.gif|171|16') echo ' checked="checked"'; ?>
235
  style="margin:9px 0;vertical-align:middle">
236
- <img src="<?php echo trailingslashit(get_bloginfo('url')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/share_save_171_16.gif'; ?>" width="171" height="16" border="0" style="padding:9px;vertical-align:middle"
237
  onclick="this.parentNode.firstChild.checked=true"/>
238
  </label><br>
239
  <label>
240
  <input name="A2A_SHARE_SAVE_button" value="share_save_256_24.gif|256|24" type="radio"<?php if(get_option('A2A_SHARE_SAVE_button')=='share_save_256_24.gif|256|24') echo ' checked="checked"'; ?>
241
  style="margin:9px 0;vertical-align:middle">
242
- <img src="<?php echo trailingslashit(get_bloginfo('url')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/share_save_256_24.gif'; ?>" width="256" height="24" border="0" style="padding:9px;vertical-align:middle"
243
  onclick="this.parentNode.firstChild.checked=true"/>
244
  </label><br>
245
  <label>
3
  Plugin Name: Add to Any: Share/Save/Bookmark Button
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Helps readers share, save, and bookmark your posts and pages using any service. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
+ Version: .9.8.6.1
7
  Author: Add to Any
8
  Author URI: http://www.addtoany.com/contact/
9
  */
47
  $button_fname = 'share_save_120_16.gif';
48
  $button_width = ' width="120"';
49
  $button_height = ' height="16"';
50
+ $button_src = trailingslashit(get_option('siteurl')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/'.$button_fname;
51
  } else if( get_option('A2A_SHARE_SAVE_button') == 'CUSTOM' ) {
52
  $button_src = get_option('A2A_SHARE_SAVE_button_custom');
53
  $button_width = '';
59
  $button_fname = $button_attrs[0];
60
  $button_width = ' width="'.$button_attrs[1].'"';
61
  $button_height = ' height="'.$button_attrs[2].'"';
62
+ $button_src = trailingslashit(get_option('siteurl')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/'.$button_fname;
63
  }
64
  if( $button_attrs[0] == 'favicon.png' ) {
65
+ $style_bg = 'background:url('.trailingslashit(get_option('siteurl')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/'.$button_fname.') no-repeat scroll 0px 0px';
66
  $style_bg = ';' . $style_bg . ' !important;';
67
  $style = ' style="'.$style_bg.'padding:1px 5px 5px 22px"';
68
  $button = 'Share/Save';
122
  Share: "' . __("Share", "add-to-any") . '",
123
  Save: "' . __("Save", "add-to-any") . '",
124
  Subscribe: "' . __("Subscribe", "add-to-any") . '",
125
+ Email: "' . __("E-mail", "add-to-any") . '",
126
+ Bookmark: "' . __("Bookmark", "add-to-any") . '",
127
  ShowAll: "' . __("Show all", "add-to-any") . '",
128
  ShowLess: "' . __("Show less", "add-to-any") . '",
129
  FindServices: "' . __("Find service(s)", "add-to-any") . '",
134
  BookmarkInYourBrowser: "' . __("Bookmark in your browser", "add-to-any") . '",
135
  BookmarkInstructions: "' . __("Press Ctrl+D or Cmd+D to bookmark this page", "add-to-any") . '",
136
  AddToYourFavorites: "' . __("Add to your favorites", "add-to-any") . '",
137
+ SendFromWebOrProgram: "' . __("Send from any e-mail address or e-mail program", "add-to-any") . '",
138
+ EmailProgram: "' . __("E-mail program", "add-to-any") . '"
139
  };
140
  ';
141
  return $A2A_locale;
221
  <label>
222
  <input name="A2A_SHARE_SAVE_button" value="favicon.png|16|16" type="radio"<?php if(get_option('A2A_SHARE_SAVE_button')=='favicon.png|16|16') echo ' checked="checked"'; ?>
223
  style="margin:9px 0;vertical-align:middle">
224
+ <img src="<?php echo trailingslashit(get_option('siteurl')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/favicon.png'; ?>" width="16" height="16" border="0" style="padding:9px;vertical-align:middle" alt="+ Share/Save" title="+ Share/Save"
225
  onclick="this.parentNode.firstChild.checked=true"/>
226
  </label><br>
227
  <label>
228
  <input name="A2A_SHARE_SAVE_button" value="share_save_120_16.gif|120|16" type="radio"<?php if( !get_option('A2A_SHARE_SAVE_button') || get_option('A2A_SHARE_SAVE_button' )=='share_save_120_16.gif|120|16') echo ' checked="checked"'; ?>
229
  style="margin:9px 0;vertical-align:middle">
230
+ <img src="<?php echo trailingslashit(get_option('siteurl')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/share_save_120_16.gif'; ?>" width="120" height="16" border="0" style="padding:9px;vertical-align:middle"
231
  onclick="this.parentNode.firstChild.checked=true"/>
232
  </label><br>
233
  <label>
234
  <input name="A2A_SHARE_SAVE_button" value="share_save_171_16.gif|171|16" type="radio"<?php if(get_option('A2A_SHARE_SAVE_button')=='share_save_171_16.gif|171|16') echo ' checked="checked"'; ?>
235
  style="margin:9px 0;vertical-align:middle">
236
+ <img src="<?php echo trailingslashit(get_option('siteurl')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/share_save_171_16.gif'; ?>" width="171" height="16" border="0" style="padding:9px;vertical-align:middle"
237
  onclick="this.parentNode.firstChild.checked=true"/>
238
  </label><br>
239
  <label>
240
  <input name="A2A_SHARE_SAVE_button" value="share_save_256_24.gif|256|24" type="radio"<?php if(get_option('A2A_SHARE_SAVE_button')=='share_save_256_24.gif|256|24') echo ' checked="checked"'; ?>
241
  style="margin:9px 0;vertical-align:middle">
242
+ <img src="<?php echo trailingslashit(get_option('siteurl')).PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/share_save_256_24.gif'; ?>" width="256" height="24" border="0" style="padding:9px;vertical-align:middle"
243
  onclick="this.parentNode.firstChild.checked=true"/>
244
  </label><br>
245
  <label>