AddToAny Share Buttons - Version 0.9.9.7.8

Version Description

Download this release

Release Info

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

Code changes from version 0.9.9.7.7 to 0.9.9.7.8

Files changed (3) hide show
  1. README.txt +8 -3
  2. add-to-any.php +14 -5
  3. services.php +10 -4
README.txt CHANGED
@@ -3,13 +3,13 @@ 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.7
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
 
10
  == Description ==
11
 
12
- The WordPress plugin to help people **share**, **bookmark**, and **email** your posts and pages using **any service**, such as Facebook, Twitter, Google Buzz, Digg, Delicious, and well over 100 more sharing and social bookmarking sites. New: **Facebook Like Button** and **Twitter Tweet Button**.
13
 
14
  This sharing plugin comes with AddToAny's customizable Smart Menu, which places the services visitors use at the top of the menu, based on each visitor's browsing and usage history.
15
 
@@ -27,7 +27,7 @@ Standalone **share icons** let you optimize your blog posts for specific social
27
  * Easily customizable for beginners or advanced users, and highly extensible for developers and designers
28
  * Many more publisher and user features!
29
 
30
- After **years of active development**, over **1.46 million downloads**, and **ongoing support from the community**, AddToAny still strives to be the best WordPress plugin for sharing. We hope it's perfect for everyone by version 1.0.
31
 
32
  <a href="http://www.addtoany.com/share_save" title="Share">Share this plugin</a>
33
 
@@ -177,6 +177,11 @@ Please read <a href="http://www.addtoany.com/buttons/customize/show_over_embeds"
177
 
178
  == Changelog ==
179
 
 
 
 
 
 
180
  = .9.9.7.7 =
181
  * Fix <a href="http://wordpress.org/support/topic/plugin-addtoany-sharebookmarkemail-button-white-space-around-twitter-icon">IE iframe transparency issue</a> for Facebook Like & Twitter Tweet buttons
182
  * Note: Extra IE conditional markup added to maintain W3C validity
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.8
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
 
10
  == Description ==
11
 
12
+ The WordPress plugin to help people **share**, **bookmark**, and **email** your posts and pages using any service, such as Facebook, Twitter, Google Buzz, Digg, Delicious, and well over 100 more sharing and social bookmarking sites. New: **Facebook Like Button** and **Twitter Tweet Button**.
13
 
14
  This sharing plugin comes with AddToAny's customizable Smart Menu, which places the services visitors use at the top of the menu, based on each visitor's browsing and usage history.
15
 
27
  * Easily customizable for beginners or advanced users, and highly extensible for developers and designers
28
  * Many more publisher and user features!
29
 
30
+ After **years of active development**, over **1.5 million downloads**, and **ongoing support from the community**, AddToAny still strives to be the best WordPress plugin for sharing. We hope it's perfect for everyone by version 1.0.
31
 
32
  <a href="http://www.addtoany.com/share_save" title="Share">Share this plugin</a>
33
 
177
 
178
  == Changelog ==
179
 
180
+ = .9.9.7.8 =
181
+ * New "Add to Favorites" & "Bookmark" standalone service for browser bookmarking
182
+ * Support JS escaping for extending standalone services (A2A Kit)
183
+ * Rename VK to the more recognized Vkontakte
184
+
185
  = .9.9.7.7 =
186
  * Fix <a href="http://wordpress.org/support/topic/plugin-addtoany-sharebookmarkemail-button-white-space-around-twitter-icon">IE iframe transparency issue</a> for Facebook Like & Twitter Tweet buttons
187
  * Note: Extra IE conditional markup added to maintain W3C validity
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.7
7
  Author: AddToAny
8
  Author URI: http://www.addtoany.com/
9
  */
@@ -137,8 +137,16 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
137
  if (isset($service['href'])) {
138
  $custom_service = TRUE;
139
  $href = $service['href'];
140
- $href = str_replace('A2A_LINKURL', $linkurl_enc, $href);
141
- $href = str_replace('A2A_LINKNAME', $linkname_enc, $href);
 
 
 
 
 
 
 
 
142
  } else {
143
  $custom_service = FALSE;
144
  }
@@ -146,13 +154,14 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
146
  $icon_url = (isset($service['icon_url'])) ? $service['icon_url'] : FALSE;
147
  $icon = (isset($service['icon'])) ? $service['icon'] : 'default'; // Just the icon filename
148
  $width = (isset($service['icon_width'])) ? $service['icon_width'] : '16';
149
- $height = (isset($service['icon_height'])) ? $service['icon_height'] : '16';
150
 
151
  $url = ($custom_service) ? $href : "http://www.addtoany.com/add_to/" . $safe_name . "?linkurl=" . $linkurl_enc . "&amp;linkname=" . $linkname_enc;
152
  $src = ($icon_url) ? $icon_url : $A2A_SHARE_SAVE_plugin_url_path."/icons/".$icon.".png";
153
  $class_attr = ($custom_service) ? "" : " class=\"a2a_button_$safe_name\"";
 
154
 
155
- $link = $html_wrap_open."<a$class_attr href=\"$url\" title=\"$name\" rel=\"nofollow\" target=\"_blank\">";
156
  $link .= "<img src=\"$src\" width=\"$width\" height=\"$height\" alt=\"$name\"/>";
157
  $link .= "</a>".$html_wrap_close;
158
  }
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.8
7
  Author: AddToAny
8
  Author URI: http://www.addtoany.com/
9
  */
137
  if (isset($service['href'])) {
138
  $custom_service = TRUE;
139
  $href = $service['href'];
140
+ if (isset($service['href_js_esc'])) {
141
+ $href_linkurl = str_replace("'", "\'", $linkurl);
142
+ $href_linkname = str_replace("'", "\'", $linkname);
143
+ } else {
144
+ $href_linkurl = $linkurl_enc;
145
+ $href_linkname = $linkname_enc;
146
+ }
147
+ $href = str_replace("A2A_LINKURL", $href_linkurl, $href);
148
+ $href = str_replace("A2A_LINKNAME", $href_linkname, $href);
149
+ $href = str_replace(" ", "%20", $href);
150
  } else {
151
  $custom_service = FALSE;
152
  }
154
  $icon_url = (isset($service['icon_url'])) ? $service['icon_url'] : FALSE;
155
  $icon = (isset($service['icon'])) ? $service['icon'] : 'default'; // Just the icon filename
156
  $width = (isset($service['icon_width'])) ? $service['icon_width'] : '16';
157
+ $height = (isset($service['icon_height'])) ? $service['icon_height'] : '16';
158
 
159
  $url = ($custom_service) ? $href : "http://www.addtoany.com/add_to/" . $safe_name . "?linkurl=" . $linkurl_enc . "&amp;linkname=" . $linkname_enc;
160
  $src = ($icon_url) ? $icon_url : $A2A_SHARE_SAVE_plugin_url_path."/icons/".$icon.".png";
161
  $class_attr = ($custom_service) ? "" : " class=\"a2a_button_$safe_name\"";
162
+ $target_attr = (isset($service['href'])) ? "" : " target=\"_blank\"";
163
 
164
+ $link = $html_wrap_open."<a$class_attr href=\"$url\" title=\"$name\" rel=\"nofollow\"$target_attr>";
165
  $link .= "<img src=\"$src\" width=\"$width\" height=\"$height\" alt=\"$name\"/>";
166
  $link .= "</a>".$html_wrap_close;
167
  }
services.php CHANGED
@@ -62,6 +62,12 @@ $A2A_SHARE_SAVE_services = Array(
62
  "name" => "Blogger Post",
63
  "icon" => "blogger",
64
  ),
 
 
 
 
 
 
65
  "bookmarks_fr" => Array(
66
  "name" => "Bookmarks.fr",
67
  "icon" => "bookmarks_fr",
@@ -507,14 +513,14 @@ $A2A_SHARE_SAVE_services = Array(
507
  "name" => "TypePad Post",
508
  "icon" => "typepad",
509
  ),
510
- "vk" => Array(
511
- "name" => "VK",
512
- "icon" => "vk",
513
- ),
514
  "viadeo" => Array(
515
  "name" => "Viadeo",
516
  "icon" => "viadeo",
517
  ),
 
 
 
 
518
  "vodpod" => Array(
519
  "name" => "VodPod",
520
  "icon" => "vodpod",
62
  "name" => "Blogger Post",
63
  "icon" => "blogger",
64
  ),
65
+ "browser" => Array(
66
+ "name" => "Bookmark/Favorites",
67
+ "icon" => "bookmark",
68
+ "href" => "javascript:if(document.all){window.external.AddFavorite('A2A_LINKURL','A2A_LINKNAME')}else{var b=a2a_config.localize.BookmarkInstructions || 'Press Ctrl+D to bookmark this page';alert(a2a_config.localize.BookmarkInstructions)}",
69
+ "href_js_esc" => "TRUE",
70
+ ),
71
  "bookmarks_fr" => Array(
72
  "name" => "Bookmarks.fr",
73
  "icon" => "bookmarks_fr",
513
  "name" => "TypePad Post",
514
  "icon" => "typepad",
515
  ),
 
 
 
 
516
  "viadeo" => Array(
517
  "name" => "Viadeo",
518
  "icon" => "viadeo",
519
  ),
520
+ "vk" => Array(
521
+ "name" => "Vkontakte",
522
+ "icon" => "vk",
523
+ ),
524
  "vodpod" => Array(
525
  "name" => "VodPod",
526
  "icon" => "vodpod",