Version Description
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 0.9.9.8.1 |
Comparing to | |
See all releases |
Code changes from version 0.9.9.8 to 0.9.9.8.1
- README.txt +9 -1
- add-to-any.php +24 -7
README.txt
CHANGED
@@ -3,7 +3,7 @@ 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
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.1
|
6 |
-
Stable tag: 0.9.9.8
|
7 |
|
8 |
Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, StumbleUpon, Digg and many more.
|
9 |
|
@@ -181,6 +181,10 @@ Go to `Settings` > `AddToAny` > uncheck `Use inline CSS` and place the CSS code
|
|
181 |
|
182 |
Please read <a href="http://www.addtoany.com/buttons/customize/show_over_embeds">this document</a> for an explanation and possible fix. For WordPress, an easier fix is to have AddToAny <a href="http://www.addtoany.com/buttons/customize/hide_embeds">hide intersecting embedded objects</a>. Just copy & paste the recommended code into the Additional Options box in `Settings` > `AddToAny`, then save changes.
|
183 |
|
|
|
|
|
|
|
|
|
184 |
== Screenshots ==
|
185 |
|
186 |
1. AddToAny Share/Save sharing button, featuring the Open Share Icon
|
@@ -191,6 +195,10 @@ Please read <a href="http://www.addtoany.com/buttons/customize/show_over_embeds"
|
|
191 |
|
192 |
== Changelog ==
|
193 |
|
|
|
|
|
|
|
|
|
194 |
= .9.9.8 =
|
195 |
* WordPress widget for sharing
|
196 |
* In your Admin panel, go to `Appearance` > `Widgets`, then drag AddToAny to an available Widget Area (if your theme supports widgets) and click `Save`
|
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
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.1
|
6 |
+
Stable tag: 0.9.9.8.1
|
7 |
|
8 |
Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, StumbleUpon, Digg and many more.
|
9 |
|
181 |
|
182 |
Please read <a href="http://www.addtoany.com/buttons/customize/show_over_embeds">this document</a> for an explanation and possible fix. For WordPress, an easier fix is to have AddToAny <a href="http://www.addtoany.com/buttons/customize/hide_embeds">hide intersecting embedded objects</a>. Just copy & paste the recommended code into the Additional Options box in `Settings` > `AddToAny`, then save changes.
|
183 |
|
184 |
+
= For a WordPress Multisite Network (MS), how can I set the plugin as a "Must-Use" plugin to automatically execute for all blogs? =
|
185 |
+
|
186 |
+
Upload the plugin directory (including all files and directories within) to the `/wp-content/mu-plugins/` folder, then move the `add-to-any.php` file from the plugin directory to the mu-plugins folder so that it can auto-execute.
|
187 |
+
|
188 |
== Screenshots ==
|
189 |
|
190 |
1. AddToAny Share/Save sharing button, featuring the Open Share Icon
|
195 |
|
196 |
== Changelog ==
|
197 |
|
198 |
+
= .9.9.8.1 =
|
199 |
+
* Add WordPress Must-Use plugin support for WordPress Multisite Networks
|
200 |
+
* Fixes for debug mode notices
|
201 |
+
|
202 |
= .9.9.8 =
|
203 |
* WordPress widget for sharing
|
204 |
* In your Admin panel, go to `Appearance` > `Widgets`, then drag AddToAny to an available Widget Area (if your theme supports widgets) and click `Save`
|
add-to-any.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
Plugin Name: AddToAny: Share/Bookmark/Email Buttons
|
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, StumbleUpon, Digg and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
-
Version: .9.9.8
|
7 |
Author: AddToAny
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
10 |
|
11 |
if( !isset($A2A_locale) )
|
12 |
$A2A_locale = '';
|
13 |
-
|
14 |
// Pre-2.6 compatibility
|
15 |
if ( ! defined('WP_CONTENT_URL') )
|
16 |
define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
|
@@ -18,7 +18,20 @@ if ( ! defined( 'WP_PLUGIN_URL' ) )
|
|
18 |
define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
|
19 |
|
20 |
$A2A_SHARE_SAVE_plugin_basename = plugin_basename(dirname(__FILE__));
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
// Fix SSL
|
24 |
if (is_ssl())
|
@@ -59,7 +72,7 @@ function A2A_SHARE_SAVE_link_vars($linkname = FALSE, $linkurl = FALSE) {
|
|
59 |
return compact( 'linkname', 'linkname_enc', 'linkurl', 'linkurl_enc' );
|
60 |
}
|
61 |
|
62 |
-
include_once(
|
63 |
|
64 |
// Combine ADDTOANY_SHARE_SAVE_ICONS and ADDTOANY_SHARE_SAVE_BUTTON
|
65 |
function ADDTOANY_SHARE_SAVE_KIT( $args = false ) {
|
@@ -243,14 +256,16 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
|
|
243 |
$button_text = stripslashes($options['button_text']);
|
244 |
}
|
245 |
|
246 |
-
|
|
|
|
|
247 |
if( ! $is_feed) {
|
248 |
$style_bg = 'background:url('.$A2A_SHARE_SAVE_plugin_url_path.'/'.$button_fname.') no-repeat scroll 9px 0px !important;';
|
249 |
$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)
|
250 |
}
|
251 |
}
|
252 |
|
253 |
-
if( $button_text && (
|
254 |
$button = $button_text;
|
255 |
} else {
|
256 |
$style = '';
|
@@ -1185,7 +1200,9 @@ function A2A_SHARE_SAVE_scripts() {
|
|
1185 |
|
1186 |
|
1187 |
function A2A_SHARE_SAVE_widget_init() {
|
1188 |
-
|
|
|
|
|
1189 |
register_widget('A2A_SHARE_SAVE_Widget');
|
1190 |
}
|
1191 |
|
3 |
Plugin Name: AddToAny: Share/Bookmark/Email Buttons
|
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, StumbleUpon, Digg and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
+
Version: .9.9.8.1
|
7 |
Author: AddToAny
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
10 |
|
11 |
if( !isset($A2A_locale) )
|
12 |
$A2A_locale = '';
|
13 |
+
|
14 |
// Pre-2.6 compatibility
|
15 |
if ( ! defined('WP_CONTENT_URL') )
|
16 |
define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
|
18 |
define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
|
19 |
|
20 |
$A2A_SHARE_SAVE_plugin_basename = plugin_basename(dirname(__FILE__));
|
21 |
+
|
22 |
+
// WordPress Must-Use?
|
23 |
+
if ( basename(dirname(__FILE__)) == "mu-plugins" ) {
|
24 |
+
// __FILE__ expected in /wp-content/mu-plugins (parent directory for auto-execution)
|
25 |
+
// /wp-content/mu-plugins/add-to-any
|
26 |
+
$A2A_SHARE_SAVE_plugin_url_path = WPMU_PLUGIN_URL . '/add-to-any';
|
27 |
+
$A2A_SHARE_SAVE_plugin_dir = WPMU_PLUGIN_DIR . '/add-to-any';
|
28 |
+
}
|
29 |
+
else {
|
30 |
+
// /wp-content/plugins/add-to-any
|
31 |
+
$A2A_SHARE_SAVE_plugin_url_path = WP_PLUGIN_URL . '/' . $A2A_SHARE_SAVE_plugin_basename;
|
32 |
+
$A2A_SHARE_SAVE_plugin_dir = WP_PLUGIN_DIR . '/' . $A2A_SHARE_SAVE_plugin_basename;
|
33 |
+
}
|
34 |
+
|
35 |
|
36 |
// Fix SSL
|
37 |
if (is_ssl())
|
72 |
return compact( 'linkname', 'linkname_enc', 'linkurl', 'linkurl_enc' );
|
73 |
}
|
74 |
|
75 |
+
include_once($A2A_SHARE_SAVE_plugin_dir . '/services.php');
|
76 |
|
77 |
// Combine ADDTOANY_SHARE_SAVE_ICONS and ADDTOANY_SHARE_SAVE_BUTTON
|
78 |
function ADDTOANY_SHARE_SAVE_KIT( $args = false ) {
|
256 |
$button_text = stripslashes($options['button_text']);
|
257 |
}
|
258 |
|
259 |
+
$style = '';
|
260 |
+
|
261 |
+
if( isset($button_fname) && ($button_fname == 'favicon.png' || $button_fname == 'share_16_16.png') ) {
|
262 |
if( ! $is_feed) {
|
263 |
$style_bg = 'background:url('.$A2A_SHARE_SAVE_plugin_url_path.'/'.$button_fname.') no-repeat scroll 9px 0px !important;';
|
264 |
$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)
|
265 |
}
|
266 |
}
|
267 |
|
268 |
+
if( isset($button_text) && $button_text && ( ! isset($button_fname) || ! $button_fname || $button_fname == 'favicon.png' || $button_fname == 'share_16_16.png') ) {
|
269 |
$button = $button_text;
|
270 |
} else {
|
271 |
$style = '';
|
1200 |
|
1201 |
|
1202 |
function A2A_SHARE_SAVE_widget_init() {
|
1203 |
+
global $A2A_SHARE_SAVE_plugin_dir;
|
1204 |
+
|
1205 |
+
include_once($A2A_SHARE_SAVE_plugin_dir . '/add-to-any-wp-widget.php');
|
1206 |
register_widget('A2A_SHARE_SAVE_Widget');
|
1207 |
}
|
1208 |
|