Version Description
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 0.9.9.5 |
Comparing to | |
See all releases |
Code changes from version 0.9.9.4.9 to 0.9.9.5
- README.txt +11 -3
- add-to-any.php +24 -27
- favicon.png +0 -0
README.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: micropat
|
3 |
Tags: bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, sharing, share, sharethis, 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, twitter, stumbleupon, technorati, wpmu, addtoany, add, any
|
4 |
Requires at least: 2.0
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 0.9.9.
|
7 |
|
8 |
Help readers share, bookmark, and email your posts and pages using any service, such as Facebook, Twitter, Digg, Delicious and over 100 more.
|
9 |
|
@@ -175,12 +175,20 @@ This is done to overcome browser limitations that prevent the drop-down menu fro
|
|
175 |
|
176 |
== Changelog ==
|
177 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
= .9.9.4.9 =
|
179 |
* New params to customize the shared link and title for buttons/icons placed in theme file(s)
|
180 |
* See plugin FAQ for template code
|
181 |
* Ensure line break within feeds by enclosing AddToAny in a paragraph tag
|
182 |
-
* Increase opacity on standalone icons by 10%
|
183 |
* Offer CSS code in the settings panel to copy & paste into a stylesheet
|
|
|
184 |
* New standalone services
|
185 |
* Google Buzz (using Google Reader endpoint - automatic update to come)
|
186 |
* Blip
|
2 |
Contributors: micropat
|
3 |
Tags: bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, sharing, share, sharethis, 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, twitter, stumbleupon, technorati, wpmu, addtoany, add, any
|
4 |
Requires at least: 2.0
|
5 |
+
Tested up to: 3.0
|
6 |
+
Stable tag: 0.9.9.5
|
7 |
|
8 |
Help readers share, bookmark, and email your posts and pages using any service, such as Facebook, Twitter, Digg, Delicious and over 100 more.
|
9 |
|
175 |
|
176 |
== Changelog ==
|
177 |
|
178 |
+
= .9.9.5 =
|
179 |
+
* Important note: If you are using the AddToAny Subscribe plugin, be sure to update that plugin to version 9.8+
|
180 |
+
* Faster menu initialization
|
181 |
+
* Switched to AddToAny's <a href="http://www.addtoany.com/blog/new-menu-api-examples-documentation/">new API spec</a>
|
182 |
+
* Fixed localization
|
183 |
+
* Also no longer outputs language strings if WordPress locale is set to "en" (or the default "en_US")
|
184 |
+
* Updated AddToAny icon
|
185 |
+
|
186 |
= .9.9.4.9 =
|
187 |
* New params to customize the shared link and title for buttons/icons placed in theme file(s)
|
188 |
* See plugin FAQ for template code
|
189 |
* Ensure line break within feeds by enclosing AddToAny in a paragraph tag
|
|
|
190 |
* Offer CSS code in the settings panel to copy & paste into a stylesheet
|
191 |
+
* Increase opacity on standalone icons by 10%
|
192 |
* New standalone services
|
193 |
* Google Buzz (using Google Reader endpoint - automatic update to come)
|
194 |
* Blip
|
add-to-any.php
CHANGED
@@ -3,13 +3,11 @@
|
|
3 |
Plugin Name: AddToAny: Share/Bookmark/Email Button
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Help readers share, bookmark, and email your posts and pages using any service. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
-
Version: .9.9.
|
7 |
Author: AddToAny
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
10 |
|
11 |
-
if( !isset($A2A_javascript) )
|
12 |
-
$A2A_javascript = '';
|
13 |
if( !isset($A2A_locale) )
|
14 |
$A2A_locale = '';
|
15 |
|
@@ -166,25 +164,31 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = false ) {
|
|
166 |
// If not a feed
|
167 |
if( !is_feed() ) {
|
168 |
|
169 |
-
global $
|
170 |
-
if( $
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
$A2A_SHARE_SAVE_external_script_called = true;
|
173 |
}
|
174 |
-
else
|
175 |
-
$external_script_call = '
|
176 |
-
|
|
|
|
|
|
|
|
|
177 |
. A2A_menu_locale()
|
178 |
-
. '
|
179 |
-
. '
|
180 |
-
. ((get_option('A2A_SHARE_SAVE_onclick')=='1') ? 'a2a_onclick=1;' . "\n" : '')
|
181 |
-
. ((get_option('A2A_SHARE_SAVE_hide_embeds')=='-1') ? 'a2a_hide_embeds=0;' . "\n" : '')
|
182 |
-
. ((get_option('A2A_SHARE_SAVE_show_title')=='1') ? 'a2a_show_title=1;' . "\n" : '')
|
183 |
-
. (($A2A_javascript == '' || !$A2A_SHARE_SAVE_external_script_called) ? stripslashes(get_option('A2A_SHARE_SAVE_additional_js_variables')) . "\n" : '')
|
184 |
. $external_script_call . "\n\n";
|
185 |
|
186 |
-
|
187 |
-
add_action('wp_footer', 'A2A_menu_javascript');
|
188 |
|
189 |
}
|
190 |
|
@@ -194,18 +198,11 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = false ) {
|
|
194 |
echo $button_html;
|
195 |
}
|
196 |
|
197 |
-
if (!function_exists('A2A_menu_javascript')) {
|
198 |
-
function A2A_menu_javascript() {
|
199 |
-
global $A2A_javascript;
|
200 |
-
echo $A2A_javascript;
|
201 |
-
}
|
202 |
-
}
|
203 |
-
|
204 |
if (!function_exists('A2A_menu_locale')) {
|
205 |
-
function A2A_menu_locale() {
|
206 |
global $A2A_locale;
|
207 |
-
|
208 |
-
if(
|
209 |
return false;
|
210 |
|
211 |
$A2A_locale = 'a2a_localize = {
|
3 |
Plugin Name: AddToAny: Share/Bookmark/Email Button
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Help readers share, bookmark, and email your posts and pages using any service. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
+
Version: .9.9.5
|
7 |
Author: AddToAny
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
10 |
|
|
|
|
|
11 |
if( !isset($A2A_locale) )
|
12 |
$A2A_locale = '';
|
13 |
|
164 |
// If not a feed
|
165 |
if( !is_feed() ) {
|
166 |
|
167 |
+
global $A2A_SHARE_SAVE_external_script_called;
|
168 |
+
if ( ! $A2A_SHARE_SAVE_external_script_called ) {
|
169 |
+
// Enternal script call + initial JS + set-once variables
|
170 |
+
$initial_js = 'var a2a_config = a2a_config || {};' . "\n";
|
171 |
+
$additional_js = get_option('A2A_SHARE_SAVE_additional_js_variables');
|
172 |
+
$external_script_call = ((get_option('A2A_SHARE_SAVE_onclick')=='1') ? 'a2a_config.onclick=1;' . "\n" : '')
|
173 |
+
. ((get_option('A2A_SHARE_SAVE_hide_embeds')=='-1') ? 'a2a_config.hide_embeds=0;' . "\n" : '')
|
174 |
+
. ((get_option('A2A_SHARE_SAVE_show_title')=='1') ? 'a2a_config.show_title=1;' . "\n" : '')
|
175 |
+
. (($additional_js) ? stripslashes($additional_js) . "\n" : '')
|
176 |
+
. '</script><script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>';
|
177 |
$A2A_SHARE_SAVE_external_script_called = true;
|
178 |
}
|
179 |
+
else {
|
180 |
+
$external_script_call = 'a2a.init("page");</script>';
|
181 |
+
$initial_js = '';
|
182 |
+
}
|
183 |
+
|
184 |
+
$button_javascript = "\n" . '<script type="text/javascript">' . "\n"
|
185 |
+
. $initial_js
|
186 |
. A2A_menu_locale()
|
187 |
+
. 'a2a_config.linkname="' . js_escape($linkname) . '";' . "\n"
|
188 |
+
. 'a2a_config.linkurl="' . $linkurl . '";' . "\n"
|
|
|
|
|
|
|
|
|
189 |
. $external_script_call . "\n\n";
|
190 |
|
191 |
+
$button_html .= $button_javascript;
|
|
|
192 |
|
193 |
}
|
194 |
|
198 |
echo $button_html;
|
199 |
}
|
200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
if (!function_exists('A2A_menu_locale')) {
|
202 |
+
function A2A_menu_locale() {
|
203 |
global $A2A_locale;
|
204 |
+
$locale = get_locale();
|
205 |
+
if($locale == 'en_US' || $locale == 'en' || $A2A_locale != '' )
|
206 |
return false;
|
207 |
|
208 |
$A2A_locale = 'a2a_localize = {
|
favicon.png
CHANGED
Binary file
|