Version Description
- Accept arguments in universal button template tag for additional classes and HTML contents
- Override box shadow on buttons in some themes such as the new Twenty Seventeen default theme in WordPress 4.7
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 1.7.2 |
Comparing to | |
See all releases |
Code changes from version 1.7.1 to 1.7.2
- README.txt +8 -4
- add-to-any.php +12 -5
- addtoany.min.css +1 -1
README.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== AddToAny Share Buttons ===
|
2 |
Contributors: micropat, addtoany
|
3 |
-
Tags: AddToAny, share, sharing, social, share button, share buttons,
|
4 |
Requires at least: 3.7
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.7.
|
7 |
|
8 |
Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too.
|
9 |
|
@@ -63,7 +63,7 @@ AddToAny is the universal sharing platform, and AddToAny's plugin is the most po
|
|
63 |
= Wide Support =
|
64 |
|
65 |
* Over 10 years of development
|
66 |
-
* Over 5 million downloads
|
67 |
* Translated into dozens of languages
|
68 |
* Ongoing support from the community
|
69 |
|
@@ -334,6 +334,10 @@ Upload (or move) the `add-to-any` plugin directory into the `/wp-content/mu-plug
|
|
334 |
|
335 |
== Changelog ==
|
336 |
|
|
|
|
|
|
|
|
|
337 |
= 1.7.1 =
|
338 |
* Fix floating share buttons fallback so that the current page is shared by default
|
339 |
* Show meta box ("Show sharing buttons") below the WordPress editor when a floating share bar is enabled
|
1 |
=== AddToAny Share Buttons ===
|
2 |
Contributors: micropat, addtoany
|
3 |
+
Tags: AddToAny, share, sharing, social, share button, share buttons, social media, media, marketing, images, image, links, shortcode, widget, email, seo, button, woocommerce, ecommerce, e-commerce, amazon, google, linkedin, reddit, facebook, like, twitter, google plus, pinterest, whatsapp, instagram, vimeo, youtube, feed, addthis, share this, sharethis, icons, floating, wpml
|
4 |
Requires at least: 3.7
|
5 |
+
Tested up to: 4.7
|
6 |
+
Stable tag: 1.7.2
|
7 |
|
8 |
Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too.
|
9 |
|
63 |
= Wide Support =
|
64 |
|
65 |
* Over 10 years of development
|
66 |
+
* Over 5.5 million downloads
|
67 |
* Translated into dozens of languages
|
68 |
* Ongoing support from the community
|
69 |
|
334 |
|
335 |
== Changelog ==
|
336 |
|
337 |
+
= 1.7.2 =
|
338 |
+
* Accept arguments in universal button template tag for additional classes and HTML contents
|
339 |
+
* Override box shadow on buttons in some themes such as the new Twenty Seventeen default theme in WordPress 4.7
|
340 |
+
|
341 |
= 1.7.1 =
|
342 |
* Fix floating share buttons fallback so that the current page is shared by default
|
343 |
* Show meta box ("Show sharing buttons") below the WordPress editor when a floating share bar is enabled
|
add-to-any.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: AddToAny Share Buttons
|
4 |
Plugin URI: https://www.addtoany.com/
|
5 |
Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more.
|
6 |
-
Version: 1.7.
|
7 |
Author: AddToAny
|
8 |
Author URI: https://www.addtoany.com/
|
9 |
Text Domain: add-to-any
|
@@ -114,7 +114,7 @@ function ADDTOANY_SHARE_SAVE_KIT( $args = array() ) {
|
|
114 |
$kit_style = '';
|
115 |
|
116 |
// Add additional classNames to .a2a_kit
|
117 |
-
if (
|
118 |
// Append space and className(s)
|
119 |
$kit_additional_classes .= ' ' . $args['kit_additional_classes'];
|
120 |
}
|
@@ -392,6 +392,8 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
|
|
392 |
'html_container_close' => '',
|
393 |
'html_wrap_open' => '',
|
394 |
'html_wrap_close' => '',
|
|
|
|
|
395 |
'icon_size' => isset( $options['icon_size'] ) ? $options['icon_size'] : '32',
|
396 |
'no_small_icons' => false,
|
397 |
'no_universal_button' => false,
|
@@ -442,6 +444,9 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
|
|
442 |
$button_text = ( isset( $options['button_text'] ) ) ? stripslashes( $options['button_text'] ) : 'Share' ;
|
443 |
}
|
444 |
|
|
|
|
|
|
|
445 |
$style = '';
|
446 |
|
447 |
if ( isset( $button_fname ) && ( $button_fname == 'favicon.png' || $button_fname == 'share_16_16.png' ) ) {
|
@@ -454,7 +459,9 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
|
|
454 |
}
|
455 |
}
|
456 |
|
457 |
-
if (
|
|
|
|
|
458 |
$button = $button_text;
|
459 |
} else {
|
460 |
$style = '';
|
@@ -465,7 +472,7 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
|
|
465 |
$button_class .= ' a2a_counter';
|
466 |
}
|
467 |
|
468 |
-
$button_html = $html_container_open . $html_wrap_open . '<a class="a2a_dd' . $button_class . ' addtoany_share_save" href="https://www.addtoany.com/share' .$button_href_querystring . '"'
|
469 |
. $button_data_url . $button_data_title . $button_data_media . $style . $button_target
|
470 |
. '>' . $button . '</a>';
|
471 |
|
@@ -895,7 +902,7 @@ function A2A_SHARE_SAVE_stylesheet() {
|
|
895 |
// Use stylesheet?
|
896 |
if ( ! isset( $options['inline_css'] ) || $options['inline_css'] != '-1' && ! is_admin() ) {
|
897 |
|
898 |
-
wp_enqueue_style( 'A2A_SHARE_SAVE', $A2A_SHARE_SAVE_plugin_url_path . '/addtoany.min.css', false, '1.
|
899 |
|
900 |
// wp_add_inline_style requires WP 3.3+
|
901 |
if ( '3.3' <= get_bloginfo( 'version' ) ) {
|
3 |
Plugin Name: AddToAny Share Buttons
|
4 |
Plugin URI: https://www.addtoany.com/
|
5 |
Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more.
|
6 |
+
Version: 1.7.2
|
7 |
Author: AddToAny
|
8 |
Author URI: https://www.addtoany.com/
|
9 |
Text Domain: add-to-any
|
114 |
$kit_style = '';
|
115 |
|
116 |
// Add additional classNames to .a2a_kit
|
117 |
+
if ( ! empty( $args['kit_additional_classes'] ) ) {
|
118 |
// Append space and className(s)
|
119 |
$kit_additional_classes .= ' ' . $args['kit_additional_classes'];
|
120 |
}
|
392 |
'html_container_close' => '',
|
393 |
'html_wrap_open' => '',
|
394 |
'html_wrap_close' => '',
|
395 |
+
'html_content' => '',
|
396 |
+
'button_additional_classes' => '',
|
397 |
'icon_size' => isset( $options['icon_size'] ) ? $options['icon_size'] : '32',
|
398 |
'no_small_icons' => false,
|
399 |
'no_universal_button' => false,
|
444 |
$button_text = ( isset( $options['button_text'] ) ) ? stripslashes( $options['button_text'] ) : 'Share' ;
|
445 |
}
|
446 |
|
447 |
+
// Add additional classNames to .a2a_dd
|
448 |
+
$button_additional_classes = ! empty( $args['button_additional_classes'] ) ? ' ' . $args['button_additional_classes'] : '';
|
449 |
+
|
450 |
$style = '';
|
451 |
|
452 |
if ( isset( $button_fname ) && ( $button_fname == 'favicon.png' || $button_fname == 'share_16_16.png' ) ) {
|
459 |
}
|
460 |
}
|
461 |
|
462 |
+
if ( ! empty( $html_content ) ) {
|
463 |
+
$button = $html_content;
|
464 |
+
} elseif ( isset( $button_text ) && ( ! isset( $button_fname) || ! $button_fname || $button_fname == 'favicon.png' || $button_fname == 'share_16_16.png' ) ) {
|
465 |
$button = $button_text;
|
466 |
} else {
|
467 |
$style = '';
|
472 |
$button_class .= ' a2a_counter';
|
473 |
}
|
474 |
|
475 |
+
$button_html = $html_container_open . $html_wrap_open . '<a class="a2a_dd' . $button_class . $button_additional_classes . ' addtoany_share_save" href="https://www.addtoany.com/share' .$button_href_querystring . '"'
|
476 |
. $button_data_url . $button_data_title . $button_data_media . $style . $button_target
|
477 |
. '>' . $button . '</a>';
|
478 |
|
902 |
// Use stylesheet?
|
903 |
if ( ! isset( $options['inline_css'] ) || $options['inline_css'] != '-1' && ! is_admin() ) {
|
904 |
|
905 |
+
wp_enqueue_style( 'A2A_SHARE_SAVE', $A2A_SHARE_SAVE_plugin_url_path . '/addtoany.min.css', false, '1.13' );
|
906 |
|
907 |
// wp_add_inline_style requires WP 3.3+
|
908 |
if ( '3.3' <= get_bloginfo( 'version' ) ) {
|
addtoany.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.addtoany_share_save_container{clear:both;margin:16px 0}.addtoany_header{margin:0 0 16px}.addtoany_list{display:inline;line-height:16px}.addtoany_list a{border:0;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle}.addtoany_list a img{border:0;display:inline-block;height:auto;opacity:1;overflow:hidden;vertical-align:baseline;width:auto}.addtoany_list a span{display:inline-block;float:none}.addtoany_list.a2a_kit_size_32 a{font-size:32px}.addtoany_list.a2a_kit_size_32 a > span{border-radius:4px;display:inline-block;height:32px;line-height:32px;opacity:1;width:32px}.addtoany_list a .a2a_count{position:relative;vertical-align:top}.addtoany_list a:hover img,.addtoany_list a:hover span{opacity:.7}.addtoany_list a.addtoany_special_service:hover img,.addtoany_list a.addtoany_special_service:hover span{opacity:1}.addtoany_special_service{display:inline-block;vertical-align:middle}.addtoany_special_service a,.addtoany_special_service div,.addtoany_special_service iframe,.addtoany_special_service div.fb_iframe_widget,.addtoany_special_service span{margin:0;vertical-align:baseline!important}.addtoany_special_service iframe{display:inline;max-width:none}a.addtoany_share_save.addtoany_no_icon span.a2a_img_text{display:none}a.addtoany_share_save img{border:0;width:auto;height:auto}
|
1 |
+
.addtoany_share_save_container{clear:both;margin:16px 0}.addtoany_header{margin:0 0 16px}.addtoany_list{display:inline;line-height:16px}.addtoany_list a,.widget .addtoany_list a{border:0;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle}.addtoany_list a img{border:0;display:inline-block;height:auto;opacity:1;overflow:hidden;vertical-align:baseline;width:auto}.addtoany_list a span{display:inline-block;float:none}.addtoany_list.a2a_kit_size_32 a{font-size:32px}.addtoany_list.a2a_kit_size_32 a > span{border-radius:4px;display:inline-block;height:32px;line-height:32px;opacity:1;width:32px}.addtoany_list a .a2a_count{position:relative;vertical-align:top}.addtoany_list a:hover,.widget .addtoany_list a:hover{border:0;box-shadow:none}.addtoany_list a:hover img,.addtoany_list a:hover span{opacity:.7}.addtoany_list a.addtoany_special_service:hover img,.addtoany_list a.addtoany_special_service:hover span{opacity:1}.addtoany_special_service{display:inline-block;vertical-align:middle}.addtoany_special_service a,.addtoany_special_service div,.addtoany_special_service iframe,.addtoany_special_service div.fb_iframe_widget,.addtoany_special_service span{margin:0;vertical-align:baseline!important}.addtoany_special_service iframe{display:inline;max-width:none}a.addtoany_share_save.addtoany_no_icon span.a2a_img_text{display:none}a.addtoany_share_save img{border:0;width:auto;height:auto}
|