Version Description
- Fix Google+ follow button URL by removing the hardcoded
+
(thanks foxtucker)- Be sure to add the
+
to yourID
if you have a Google+ custom URL.
- Be sure to add the
- Custom follow services can be added to the Follow widget using the
A2A_FOLLOW_services
filter hook (see the FAQ) - Harden CSS vertical alignment of custom icon images and Tweet button
- Change admin heading to
<h1>
for improved accessibility
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 1.6.3 |
Comparing to | |
See all releases |
Code changes from version 1.6.2 to 1.6.3
- README.txt +28 -8
- add-to-any.php +8 -3
- addtoany.admin.php +1 -1
- addtoany.min.css +1 -1
- addtoany.services.php +1 -1
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: micropat, addtoany
|
|
3 |
Tags: sharing, share, share this, bookmarking, social, share button, share buttons, share links, social share, social sharing, social bookmarking, social bookmarks, socialize, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, shortcode, sidebar, widget, responsive, email, e-mail, print, seo, button, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook share, facebook like, like, twitter, twitter button, twitter share, tweet, tweet button, +1, google +1, google plus, pinterest, pin, pin it, pinit, wanelo, buffer, stumbleupon, bitly, whatsapp, instagram, behance, flickr, foursquare, vimeo, youtube, feed, rss, lockerz, addthis, sociable, sharedaddy, sharethis, shareaholic, icon, icons, vector, SVG, floating, floating buttons, wpml, wpmu, Add to Any, AddToAny
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 4.3
|
6 |
-
Stable tag: 1.6.
|
7 |
|
8 |
Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more.
|
9 |
|
@@ -159,21 +159,36 @@ If you want to hardcode the shared current URL and modify the title (server-side
|
|
159 |
ADDTOANY_SHARE_SAVE_KIT( array( 'linkname' => ( is_home() ? get_bloginfo( 'description' ) : wp_title( '', false ) ), 'linkurl' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'] ) );
|
160 |
} ?>`
|
161 |
|
162 |
-
= How can I add a
|
163 |
You can create a plugin or customize the following example PHP code to add to your theme's function.php file:
|
164 |
|
165 |
`function addtoany_add_services( $services ) {
|
166 |
-
$services['
|
167 |
-
'name' => 'Example Service',
|
168 |
'icon_url' => 'https://www.google.com/favicon.ico',
|
169 |
'icon_width' => 32,
|
170 |
'icon_height' => 32,
|
171 |
-
'href' => '
|
172 |
);
|
173 |
return $services;
|
174 |
}
|
175 |
add_filter( 'A2A_SHARE_SAVE_services', 'addtoany_add_services', 10, 1 );`
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
= How can I align the sharing button(s) to the center or to the right side of posts? =
|
178 |
It depends on your theme, but you can try adding the following CSS code to your main stylesheet.
|
179 |
|
@@ -283,10 +298,15 @@ Upload the plugin directory (including all files and directories within) to the
|
|
283 |
|
284 |
== Changelog ==
|
285 |
|
286 |
-
= 1.6.
|
287 |
-
* Support AJAX loading from `admin-ajax.php`
|
288 |
* Fix Google+ follow button URL by removing the hardcoded `+` (thanks foxtucker)
|
289 |
* Be sure to add the `+` to your `ID` if you have a Google+ custom URL.
|
|
|
|
|
|
|
|
|
|
|
|
|
290 |
* Update CSS to fix alignment issues in some themes with button images and the Facebook Like button
|
291 |
* Add small follow icons (Instagram, YouTube, Vimeo, Flickr, Foursquare, Behance, and RSS PNGs)
|
292 |
* Add Known
|
@@ -1301,7 +1321,7 @@ Upload the plugin directory (including all files and directories within) to the
|
|
1301 |
|
1302 |
== Upgrade Notice ==
|
1303 |
|
1304 |
-
= 1.6.
|
1305 |
If you configured a Google+ follow button through an AddToAny Follow widget, the automatic `+` in your URL has been removed to permit default Google+ URLs which do not have a `+` preceding the ID number. Be sure to add the `+` back if you have a Google+ custom URL.
|
1306 |
|
1307 |
= 1.6 =
|
3 |
Tags: sharing, share, share this, bookmarking, social, share button, share buttons, share links, social share, social sharing, social bookmarking, social bookmarks, socialize, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, shortcode, sidebar, widget, responsive, email, e-mail, print, seo, button, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook share, facebook like, like, twitter, twitter button, twitter share, tweet, tweet button, +1, google +1, google plus, pinterest, pin, pin it, pinit, wanelo, buffer, stumbleupon, bitly, whatsapp, instagram, behance, flickr, foursquare, vimeo, youtube, feed, rss, lockerz, addthis, sociable, sharedaddy, sharethis, shareaholic, icon, icons, vector, SVG, floating, floating buttons, wpml, wpmu, Add to Any, AddToAny
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 4.3
|
6 |
+
Stable tag: 1.6.3
|
7 |
|
8 |
Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more.
|
9 |
|
159 |
ADDTOANY_SHARE_SAVE_KIT( array( 'linkname' => ( is_home() ? get_bloginfo( 'description' ) : wp_title( '', false ) ), 'linkurl' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'] ) );
|
160 |
} ?>`
|
161 |
|
162 |
+
= How can I add a custom standalone share button? =
|
163 |
You can create a plugin or customize the following example PHP code to add to your theme's function.php file:
|
164 |
|
165 |
`function addtoany_add_services( $services ) {
|
166 |
+
$services['example_share_service'] = array(
|
167 |
+
'name' => 'Example Share Service',
|
168 |
'icon_url' => 'https://www.google.com/favicon.ico',
|
169 |
'icon_width' => 32,
|
170 |
'icon_height' => 32,
|
171 |
+
'href' => 'https://www.example.com/share?url=A2A_LINKURL&title=A2A_LINKNAME'
|
172 |
);
|
173 |
return $services;
|
174 |
}
|
175 |
add_filter( 'A2A_SHARE_SAVE_services', 'addtoany_add_services', 10, 1 );`
|
176 |
|
177 |
+
= How can I add a custom follow button? =
|
178 |
+
You can create a plugin or customize the following example PHP code to add to your theme's function.php file:
|
179 |
+
|
180 |
+
`function addtoany_add_follow_services( $services ) {
|
181 |
+
$services['example_follow_service'] = array(
|
182 |
+
'name' => 'Example Follow Service',
|
183 |
+
'icon_url' => 'https://www.google.com/favicon.ico',
|
184 |
+
'icon_width' => 32,
|
185 |
+
'icon_height' => 32,
|
186 |
+
'href' => 'https://www.example.com/ID'
|
187 |
+
);
|
188 |
+
return $services;
|
189 |
+
}
|
190 |
+
add_filter( 'A2A_FOLLOW_services', 'addtoany_add_follow_services', 10, 1 );`
|
191 |
+
|
192 |
= How can I align the sharing button(s) to the center or to the right side of posts? =
|
193 |
It depends on your theme, but you can try adding the following CSS code to your main stylesheet.
|
194 |
|
298 |
|
299 |
== Changelog ==
|
300 |
|
301 |
+
= 1.6.3 =
|
|
|
302 |
* Fix Google+ follow button URL by removing the hardcoded `+` (thanks foxtucker)
|
303 |
* Be sure to add the `+` to your `ID` if you have a Google+ custom URL.
|
304 |
+
* Custom follow services can be added to the Follow widget using the `A2A_FOLLOW_services` filter hook (see the FAQ)
|
305 |
+
* Harden CSS vertical alignment of custom icon images and Tweet button
|
306 |
+
* Change admin heading to `<h1>` for improved accessibility
|
307 |
+
|
308 |
+
= 1.6.2 =
|
309 |
+
* Support AJAX loading from `admin-ajax.php`
|
310 |
* Update CSS to fix alignment issues in some themes with button images and the Facebook Like button
|
311 |
* Add small follow icons (Instagram, YouTube, Vimeo, Flickr, Foursquare, Behance, and RSS PNGs)
|
312 |
* Add Known
|
1321 |
|
1322 |
== Upgrade Notice ==
|
1323 |
|
1324 |
+
= 1.6.3 =
|
1325 |
If you configured a Google+ follow button through an AddToAny Follow widget, the automatic `+` in your URL has been removed to permit default Google+ URLs which do not have a `+` preceding the ID number. Be sure to add the `+` back if you have a Google+ custom URL.
|
1326 |
|
1327 |
= 1.6 =
|
add-to-any.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Share Buttons by AddToAny
|
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. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
-
Version: 1.6.
|
7 |
Author: AddToAny
|
8 |
Author URI: https://www.addtoany.com/
|
9 |
*/
|
@@ -273,7 +273,12 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
|
|
273 |
// For all other services, replace
|
274 |
$href = str_replace( '${id}', $follow_id, $service['href'] );
|
275 |
}
|
276 |
-
$href = ( 'feed' == $safe_name ) ? $follow_id : $href
|
|
|
|
|
|
|
|
|
|
|
277 |
// Else if Share Kit and HREF specified, presume custom service
|
278 |
} elseif ( isset( $service['href'] ) ) {
|
279 |
$custom_service = true;
|
@@ -1009,7 +1014,7 @@ function A2A_SHARE_SAVE_stylesheet() {
|
|
1009 |
// Use stylesheet?
|
1010 |
if ( ! isset( $options['inline_css'] ) || $options['inline_css'] != '-1' && ! is_admin() ) {
|
1011 |
|
1012 |
-
wp_enqueue_style( 'A2A_SHARE_SAVE', $A2A_SHARE_SAVE_plugin_url_path . '/addtoany.min.css', false, '1.
|
1013 |
|
1014 |
// wp_add_inline_style requires WP 3.3+
|
1015 |
if ( '3.3' <= get_bloginfo( 'version' ) ) {
|
3 |
Plugin Name: Share Buttons by AddToAny
|
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. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
+
Version: 1.6.3
|
7 |
Author: AddToAny
|
8 |
Author URI: https://www.addtoany.com/
|
9 |
*/
|
273 |
// For all other services, replace
|
274 |
$href = str_replace( '${id}', $follow_id, $service['href'] );
|
275 |
}
|
276 |
+
$href = ( 'feed' == $safe_name ) ? $follow_id : $href;
|
277 |
+
|
278 |
+
// If icon_url is set, presume custom service
|
279 |
+
if ( isset( $service['icon_url'] ) ) {
|
280 |
+
$custom_service = true;
|
281 |
+
}
|
282 |
// Else if Share Kit and HREF specified, presume custom service
|
283 |
} elseif ( isset( $service['href'] ) ) {
|
284 |
$custom_service = true;
|
1014 |
// Use stylesheet?
|
1015 |
if ( ! isset( $options['inline_css'] ) || $options['inline_css'] != '-1' && ! is_admin() ) {
|
1016 |
|
1017 |
+
wp_enqueue_style( 'A2A_SHARE_SAVE', $A2A_SHARE_SAVE_plugin_url_path . '/addtoany.min.css', false, '1.11' );
|
1018 |
|
1019 |
// wp_add_inline_style requires WP 3.3+
|
1020 |
if ( '3.3' <= get_bloginfo( 'version' ) ) {
|
addtoany.admin.php
CHANGED
@@ -399,7 +399,7 @@ function A2A_SHARE_SAVE_options_page() {
|
|
399 |
|
400 |
<div class="wrap">
|
401 |
|
402 |
-
<
|
403 |
|
404 |
<h2 class="nav-tab-wrapper">
|
405 |
<a href="<?php echo admin_url( 'options-general.php?page=add-to-any.php' ); ?>" class="nav-tab<?php if ( 'default' == $current_screen ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Standard' ); ?></a>
|
399 |
|
400 |
<div class="wrap">
|
401 |
|
402 |
+
<h1><?php _e( 'AddToAny Share Settings', 'add-to-any' ); ?></h1>
|
403 |
|
404 |
<h2 class="nav-tab-wrapper">
|
405 |
<a href="<?php echo admin_url( 'options-general.php?page=add-to-any.php' ); ?>" class="nav-tab<?php if ( 'default' == $current_screen ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Standard' ); ?></a>
|
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;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:
|
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;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}
|
addtoany.services.php
CHANGED
@@ -427,7 +427,7 @@ $A2A_FOLLOW_services = array(
|
|
427 |
),
|
428 |
'google_plus' => array(
|
429 |
'name' => 'Google+',
|
430 |
-
'href' => 'https://plus.google.com
|
431 |
'icon' => 'google_plus',
|
432 |
),
|
433 |
'linkedin' => array(
|
427 |
),
|
428 |
'google_plus' => array(
|
429 |
'name' => 'Google+',
|
430 |
+
'href' => 'https://plus.google.com/${id}',
|
431 |
'icon' => 'google_plus',
|
432 |
),
|
433 |
'linkedin' => array(
|