AddToAny Share Buttons - Version 0.9.9.7.3

Version Description

Download this release

Release Info

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

Code changes from version 0.9.9.7.2 to 0.9.9.7.3

Files changed (5) hide show
  1. README.txt +8 -2
  2. add-to-any.php +9 -10
  3. icons/business_exchange.png +0 -0
  4. icons/rediff.png +0 -0
  5. services.php +10 -1
README.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: micropat
3
  Tags: sharing, share, sharethis, bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, email, e-mail, seo, button, delicious, google buzz, buzz, google, digg, reddit, facebook, facebook like, like, myspace, twitter, tweet, messenger, stumbleupon, technorati, sexybookmarks, sociable, sharedaddy, icon, icons, wpmu, addtoany, add
4
  Requires at least: 2.8
5
- Tested up to: 3.0
6
- Stable tag: 0.9.9.7.1
7
 
8
  Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, Google Buzz, Digg and many more.
9
 
@@ -177,6 +177,12 @@ Please read <a href="http://www.addtoany.com/buttons/customize/show_over_embeds"
177
 
178
  == Changelog ==
179
 
 
 
 
 
 
 
180
  = .9.9.7.2 =
181
  * Omit sharing on private posts
182
 
2
  Contributors: micropat
3
  Tags: sharing, share, sharethis, bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, email, e-mail, seo, button, delicious, google buzz, buzz, google, digg, reddit, facebook, facebook like, like, myspace, twitter, tweet, messenger, stumbleupon, technorati, sexybookmarks, sociable, sharedaddy, icon, icons, wpmu, addtoany, add
4
  Requires at least: 2.8
5
+ Tested up to: 3.1
6
+ Stable tag: 0.9.9.7.3
7
 
8
  Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, Google Buzz, Digg and many more.
9
 
177
 
178
  == Changelog ==
179
 
180
+ = .9.9.7.3 =
181
+ * Fix sharing button link in RSS feeds (thanks to Giuliano)
182
+ * Add Rediff MyPage
183
+ * Add Business Exchange
184
+ * Remove detection against versions before 2.6 for SSL support
185
+
186
  = .9.9.7.2 =
187
  * Omit sharing on private posts
188
 
add-to-any.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: AddToAny: Share/Bookmark/Email Button
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, Google Buzz, Digg and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
- Version: .9.9.7.2
7
  Author: AddToAny
8
  Author URI: http://www.addtoany.com/
9
  */
@@ -21,7 +21,7 @@ $A2A_SHARE_SAVE_plugin_basename = plugin_basename(dirname(__FILE__));
21
  $A2A_SHARE_SAVE_plugin_url_path = WP_PLUGIN_URL.'/'.$A2A_SHARE_SAVE_plugin_basename; // /wp-content/plugins/add-to-any
22
 
23
  // Fix SSL
24
- if (function_exists('is_ssl') && is_ssl()) // @since 2.6.0
25
  $A2A_SHARE_SAVE_plugin_url_path = str_replace('http:', 'https:', $A2A_SHARE_SAVE_plugin_url_path);
26
 
27
  function A2A_SHARE_SAVE_textdomain() {
@@ -190,7 +190,9 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
190
 
191
  /* AddToAny button */
192
 
193
- $button_target = '';
 
 
194
 
195
  if( !get_option('A2A_SHARE_SAVE_button') ) {
196
  $button_fname = 'share_save_171_16.png';
@@ -213,7 +215,7 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
213
  }
214
 
215
  if( $button_fname == 'favicon.png' || $button_fname == 'share_16_16.png' ) {
216
- if( !is_feed() ) {
217
  $style_bg = 'background:url('.$A2A_SHARE_SAVE_plugin_url_path.'/'.$button_fname.') no-repeat scroll 9px 0px !important;';
218
  $style = ' style="'.$style_bg.'padding:0 0 0 30px;display:inline-block;height:16px;line-height:16px;vertical-align:middle"'; // padding-left:30+9 (9=other icons padding)
219
  }
@@ -226,16 +228,13 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
226
  $button = '<img src="'.$button_src.'"'.$button_width.$button_height.' alt="Share"/>';
227
  }
228
 
229
- $button_html = $html_container_open.$html_wrap_open.'<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"'
230
  . $style . $button_target
231
  . '>' . $button . '</a>' . $html_wrap_close . $html_container_close;
232
 
233
  // If not a feed
234
- if( !is_feed() ) {
235
- if (function_exists('is_ssl') ) // @since 2.6.0
236
- $http_or_https = (is_ssl()) ? 'https' : 'http';
237
- else
238
- $http_or_https = 'http';
239
 
240
  global $A2A_SHARE_SAVE_external_script_called;
241
  if ( ! $A2A_SHARE_SAVE_external_script_called ) {
3
  Plugin Name: AddToAny: Share/Bookmark/Email Button
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, Google Buzz, Digg and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
+ Version: .9.9.7.3
7
  Author: AddToAny
8
  Author URI: http://www.addtoany.com/
9
  */
21
  $A2A_SHARE_SAVE_plugin_url_path = WP_PLUGIN_URL.'/'.$A2A_SHARE_SAVE_plugin_basename; // /wp-content/plugins/add-to-any
22
 
23
  // Fix SSL
24
+ if (is_ssl())
25
  $A2A_SHARE_SAVE_plugin_url_path = str_replace('http:', 'https:', $A2A_SHARE_SAVE_plugin_url_path);
26
 
27
  function A2A_SHARE_SAVE_textdomain() {
190
 
191
  /* AddToAny button */
192
 
193
+ $is_feed = is_feed();
194
+ $button_target = '';
195
+ $button_href_querystring = ($is_feed) ? '#url=' . $linkurl_enc . '&amp;title=' . $linkname_enc : '';
196
 
197
  if( !get_option('A2A_SHARE_SAVE_button') ) {
198
  $button_fname = 'share_save_171_16.png';
215
  }
216
 
217
  if( $button_fname == 'favicon.png' || $button_fname == 'share_16_16.png' ) {
218
+ if( ! $is_feed) {
219
  $style_bg = 'background:url('.$A2A_SHARE_SAVE_plugin_url_path.'/'.$button_fname.') no-repeat scroll 9px 0px !important;';
220
  $style = ' style="'.$style_bg.'padding:0 0 0 30px;display:inline-block;height:16px;line-height:16px;vertical-align:middle"'; // padding-left:30+9 (9=other icons padding)
221
  }
228
  $button = '<img src="'.$button_src.'"'.$button_width.$button_height.' alt="Share"/>';
229
  }
230
 
231
+ $button_html = $html_container_open . $html_wrap_open . '<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save' .$button_href_querystring . '"'
232
  . $style . $button_target
233
  . '>' . $button . '</a>' . $html_wrap_close . $html_container_close;
234
 
235
  // If not a feed
236
+ if( ! $is_feed ) {
237
+ $http_or_https = (is_ssl()) ? 'https' : 'http';
 
 
 
238
 
239
  global $A2A_SHARE_SAVE_external_script_called;
240
  if ( ! $A2A_SHARE_SAVE_external_script_called ) {
icons/business_exchange.png ADDED
Binary file
icons/rediff.png ADDED
Binary file
services.php CHANGED
@@ -1,3 +1,4 @@
 
1
  <?php
2
 
3
  $A2A_SHARE_SAVE_services = Array(
@@ -74,6 +75,10 @@ $A2A_SHARE_SAVE_services = Array(
74
  "name" => "BuddyMarks",
75
  "icon" => "buddymarks",
76
  ),
 
 
 
 
77
  "care2_news" => Array(
78
  "name" => "Care2 News",
79
  "icon" => "care2",
@@ -272,7 +277,7 @@ $A2A_SHARE_SAVE_services = Array(
272
  ),
273
  "live" => Array(
274
  "name" => "Messenger",
275
- "icon" => "messenger",
276
  ),
277
  "mindbodygreen" => Array(
278
  "name" => "MindBodyGreen",
@@ -387,6 +392,10 @@ $A2A_SHARE_SAVE_services = Array(
387
  "name" => "Reddit",
388
  "icon" => "reddit",
389
  ),
 
 
 
 
390
  "segnalo" => Array(
391
  "name" => "Segnalo",
392
  "icon" => "segnalo",
1
+
2
  <?php
3
 
4
  $A2A_SHARE_SAVE_services = Array(
75
  "name" => "BuddyMarks",
76
  "icon" => "buddymarks",
77
  ),
78
+ "business_exchange" => Array(
79
+ "name" => "Business Exchange",
80
+ "icon" => "business_exchange",
81
+ ),
82
  "care2_news" => Array(
83
  "name" => "Care2 News",
84
  "icon" => "care2",
277
  ),
278
  "live" => Array(
279
  "name" => "Messenger",
280
+ "icon" => "live",
281
  ),
282
  "mindbodygreen" => Array(
283
  "name" => "MindBodyGreen",
392
  "name" => "Reddit",
393
  "icon" => "reddit",
394
  ),
395
+ "rediff" => Array(
396
+ "name" => "Rediff MyPage",
397
+ "icon" => "rediff",
398
+ ),
399
  "segnalo" => Array(
400
  "name" => "Segnalo",
401
  "icon" => "segnalo",