Version Description
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 0.9.9.7.9 |
Comparing to | |
See all releases |
Code changes from version 0.9.9.7.8 to 0.9.9.7.9
- README.txt +6 -1
- add-to-any.php +24 -24
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, add
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.1
|
6 |
-
Stable tag: 0.9.9.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 |
|
@@ -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.8 =
|
181 |
* New "Add to Favorites" & "Bookmark" standalone service for browser bookmarking
|
182 |
* Support JS escaping for extending standalone services (A2A Kit)
|
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.9
|
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.9 =
|
181 |
+
* Fix global options
|
182 |
+
* Fix options variable debug mode notice
|
183 |
+
* Suppress debug mode notices upon saving options
|
184 |
+
|
185 |
= .9.9.7.8 =
|
186 |
* New "Add to Favorites" & "Bookmark" standalone service for browser bookmarking
|
187 |
* Support JS escaping for extending standalone services (A2A Kit)
|
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 |
Author: AddToAny
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
@@ -24,6 +24,8 @@ $A2A_SHARE_SAVE_plugin_url_path = WP_PLUGIN_URL.'/'.$A2A_SHARE_SAVE_plugin_basen
|
|
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_init() {
|
28 |
global $A2A_SHARE_SAVE_plugin_url_path, $A2A_SHARE_SAVE_plugin_basename;
|
29 |
|
@@ -112,7 +114,7 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
|
|
112 |
// Include Facebook Like and Twitter Tweet
|
113 |
array_unshift($service_codes, 'facebook_like', 'twitter_tweet');
|
114 |
|
115 |
-
|
116 |
|
117 |
$active_services = $options['active_services'];
|
118 |
|
@@ -208,7 +210,7 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
|
|
208 |
$is_feed = is_feed();
|
209 |
$button_target = '';
|
210 |
$button_href_querystring = ($is_feed) ? '#url=' . $linkurl_enc . '&title=' . $linkname_enc : '';
|
211 |
-
|
212 |
|
213 |
if( ! $options['button'] ) {
|
214 |
$button_fname = 'share_save_171_16.png';
|
@@ -485,7 +487,7 @@ function A2A_SHARE_SAVE_add_to_content($content) {
|
|
485 |
add_filter('the_title', 'A2A_SHARE_SAVE_auto_placement', 9);
|
486 |
add_filter('the_content', 'A2A_SHARE_SAVE_add_to_content', 98);
|
487 |
|
488 |
-
if ($
|
489 |
// Excerpts use strip_tags() for the_content, so cancel if Excerpt and append to the_excerpt instead
|
490 |
add_filter('get_the_excerpt', 'A2A_SHARE_SAVE_remove_from_content', 9);
|
491 |
add_filter('the_excerpt', 'A2A_SHARE_SAVE_add_to_content', 98);
|
@@ -503,10 +505,8 @@ function A2A_SHARE_SAVE_button_css_IE() {
|
|
503 |
<?php
|
504 |
}
|
505 |
|
506 |
-
$options = get_option('addtoany_options');
|
507 |
-
|
508 |
// Use stylesheet?
|
509 |
-
if ($
|
510 |
wp_enqueue_style('A2A_SHARE_SAVE', $A2A_SHARE_SAVE_plugin_url_path . '/addtoany.min.css', false, '1.3');
|
511 |
|
512 |
// Conditional inline CSS stylesheet for IE
|
@@ -631,23 +631,23 @@ function A2A_SHARE_SAVE_options_page() {
|
|
631 |
|
632 |
// Nonce verification
|
633 |
check_admin_referer('add-to-any-update-options');
|
634 |
-
|
635 |
-
$new_options['position'] = ($_POST['A2A_SHARE_SAVE_position']) ?
|
636 |
-
$new_options['display_in_posts_on_front_page'] = (
|
637 |
-
$new_options['display_in_excerpts'] = (
|
638 |
-
$new_options['display_in_posts'] = (
|
639 |
-
$new_options['display_in_pages'] = (
|
640 |
-
$new_options['display_in_feed'] = (
|
641 |
-
$new_options['show_title'] = (
|
642 |
-
$new_options['onclick'] = (
|
643 |
-
$new_options['button'] =
|
644 |
-
$new_options['button_custom'] =
|
645 |
-
$new_options['additional_js_variables'] = trim(
|
646 |
-
$new_options['inline_css'] = (
|
647 |
-
$new_options['cache'] = (
|
648 |
|
649 |
// Schedule cache refresh?
|
650 |
-
if (
|
651 |
A2A_SHARE_SAVE_schedule_cache();
|
652 |
A2A_SHARE_SAVE_refresh_cache();
|
653 |
} else {
|
@@ -664,9 +664,9 @@ function A2A_SHARE_SAVE_options_page() {
|
|
664 |
|
665 |
// Store chosen individual services to make active
|
666 |
$active_services = Array();
|
667 |
-
if(
|
668 |
$_POST['A2A_SHARE_SAVE_active_services'] = Array();
|
669 |
-
foreach( $_POST['A2A_SHARE_SAVE_active_services'] as $dummy=>$sitename )
|
670 |
$active_services[] = substr($sitename, 7);
|
671 |
$new_options['active_services'] = $active_services;
|
672 |
|
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.9
|
7 |
Author: AddToAny
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
24 |
if (is_ssl())
|
25 |
$A2A_SHARE_SAVE_plugin_url_path = str_replace('http:', 'https:', $A2A_SHARE_SAVE_plugin_url_path);
|
26 |
|
27 |
+
$A2A_SHARE_SAVE_options = get_option('addtoany_options');
|
28 |
+
|
29 |
function A2A_SHARE_SAVE_init() {
|
30 |
global $A2A_SHARE_SAVE_plugin_url_path, $A2A_SHARE_SAVE_plugin_basename;
|
31 |
|
114 |
// Include Facebook Like and Twitter Tweet
|
115 |
array_unshift($service_codes, 'facebook_like', 'twitter_tweet');
|
116 |
|
117 |
+
$options = get_option('addtoany_options');
|
118 |
|
119 |
$active_services = $options['active_services'];
|
120 |
|
210 |
$is_feed = is_feed();
|
211 |
$button_target = '';
|
212 |
$button_href_querystring = ($is_feed) ? '#url=' . $linkurl_enc . '&title=' . $linkname_enc : '';
|
213 |
+
$options = get_option('addtoany_options');
|
214 |
|
215 |
if( ! $options['button'] ) {
|
216 |
$button_fname = 'share_save_171_16.png';
|
487 |
add_filter('the_title', 'A2A_SHARE_SAVE_auto_placement', 9);
|
488 |
add_filter('the_content', 'A2A_SHARE_SAVE_add_to_content', 98);
|
489 |
|
490 |
+
if ($A2A_SHARE_SAVE_options['display_in_excerpts'] != '-1') {
|
491 |
// Excerpts use strip_tags() for the_content, so cancel if Excerpt and append to the_excerpt instead
|
492 |
add_filter('get_the_excerpt', 'A2A_SHARE_SAVE_remove_from_content', 9);
|
493 |
add_filter('the_excerpt', 'A2A_SHARE_SAVE_add_to_content', 98);
|
505 |
<?php
|
506 |
}
|
507 |
|
|
|
|
|
508 |
// Use stylesheet?
|
509 |
+
if ($A2A_SHARE_SAVE_options['inline_css'] != '-1' && ! is_admin()) {
|
510 |
wp_enqueue_style('A2A_SHARE_SAVE', $A2A_SHARE_SAVE_plugin_url_path . '/addtoany.min.css', false, '1.3');
|
511 |
|
512 |
// Conditional inline CSS stylesheet for IE
|
631 |
|
632 |
// Nonce verification
|
633 |
check_admin_referer('add-to-any-update-options');
|
634 |
+
|
635 |
+
$new_options['position'] = ($_POST['A2A_SHARE_SAVE_position']) ? @$_POST['A2A_SHARE_SAVE_position'] : 'bottom';
|
636 |
+
$new_options['display_in_posts_on_front_page'] = (@$_POST['A2A_SHARE_SAVE_display_in_posts_on_front_page']=='1') ? '1':'-1';
|
637 |
+
$new_options['display_in_excerpts'] = (@$_POST['A2A_SHARE_SAVE_display_in_excerpts']=='1') ? '1':'-1';
|
638 |
+
$new_options['display_in_posts'] = (@$_POST['A2A_SHARE_SAVE_display_in_posts']=='1') ? '1':'-1';
|
639 |
+
$new_options['display_in_pages'] = (@$_POST['A2A_SHARE_SAVE_display_in_pages']=='1') ? '1':'-1';
|
640 |
+
$new_options['display_in_feed'] = (@$_POST['A2A_SHARE_SAVE_display_in_feed']=='1') ? '1':'-1';
|
641 |
+
$new_options['show_title'] = (@$_POST['A2A_SHARE_SAVE_show_title']=='1') ? '1':'-1';
|
642 |
+
$new_options['onclick'] = (@$_POST['A2A_SHARE_SAVE_onclick']=='1') ? '1':'-1';
|
643 |
+
$new_options['button'] = @$_POST['A2A_SHARE_SAVE_button'];
|
644 |
+
$new_options['button_custom'] = @$_POST['A2A_SHARE_SAVE_button_custom'];
|
645 |
+
$new_options['additional_js_variables'] = trim(@$_POST['A2A_SHARE_SAVE_additional_js_variables']);
|
646 |
+
$new_options['inline_css'] = (@$_POST['A2A_SHARE_SAVE_inline_css']=='1') ? '1':'-1';
|
647 |
+
$new_options['cache'] = (@$_POST['A2A_SHARE_SAVE_cache']=='1') ? '1':'-1';
|
648 |
|
649 |
// Schedule cache refresh?
|
650 |
+
if (@$_POST['A2A_SHARE_SAVE_cache']=='1') {
|
651 |
A2A_SHARE_SAVE_schedule_cache();
|
652 |
A2A_SHARE_SAVE_refresh_cache();
|
653 |
} else {
|
664 |
|
665 |
// Store chosen individual services to make active
|
666 |
$active_services = Array();
|
667 |
+
if ( ! isset($_POST['A2A_SHARE_SAVE_active_services']))
|
668 |
$_POST['A2A_SHARE_SAVE_active_services'] = Array();
|
669 |
+
foreach ( $_POST['A2A_SHARE_SAVE_active_services'] as $dummy=>$sitename )
|
670 |
$active_services[] = substr($sitename, 7);
|
671 |
$new_options['active_services'] = $active_services;
|
672 |
|