AddToAny Share Buttons - Version 1.5.4

Version Description

  • New optional sharing header to easily place a label above the default share buttons
    • Accepts HTML
  • Fix text width of counters where long numbers would break to a newline (thanks Chris)
  • Remove old Additional Options note in settings
Download this release

Release Info

Developer micropat
Plugin Icon 128x128 AddToAny Share Buttons
Version 1.5.4
Comparing to
See all releases

Code changes from version 1.5.3 to 1.5.4

Files changed (4) hide show
  1. README.txt +12 -13
  2. add-to-any.php +9 -1
  3. addtoany.admin.php +12 -4
  4. addtoany.min.css +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, plus 1, google +1, google plus, google plus one, plus one, pinterest, pin, pin it, pinit, wanelo, buffer, stumbleupon, bitly, whatsapp, lockerz, addthis, sociable, sharedaddy, sharethis, shareaholic, icon, icons, vector, SVG, floating, floating buttons, wpmu, Add to Any, AddToAny
4
  Requires at least: 2.8
5
  Tested up to: 4.2
6
- Stable tag: 1.5.3
7
 
8
  Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more.
9
 
@@ -62,7 +62,7 @@ AddToAny's customizable platform and social share icons let you optimize your si
62
  = Wide Support =
63
 
64
  * Over 8 years of active development
65
- * Over 3.5 million downloads
66
  * Translated into dozens of languages
67
  * Ongoing support from the community
68
 
@@ -99,15 +99,11 @@ Try temporarily switching themes and disabling other plugins to identify a poten
99
 
100
  Feel free to <a href="https://wordpress.org/support/plugin/add-to-any">post here</a>, where the community can hopefully help you. Describe the issue, what troubleshooting you have already done, provide a link to your site, and any other potentially relevant information.
101
 
102
- = Why isn't the universal drop-down menu appearing? =
103
 
104
- It's likely because your theme wasn't <a href="http://codex.wordpress.org/Theme_Development#Plugin_API_Hooks">coded properly</a>. With many themes you can use the Theme Editor to edit your theme's `header.php` and `footer.php` files.
105
 
106
- In `header.php` place the following line of code just before the `</head>` line:
107
- `<?php wp_head(); ?>`
108
-
109
- In `footer.php` place the following line of code just before the `</body>` line:
110
- `<?php wp_footer(); ?>`
111
 
112
  = Is there a shortcode for sharing? =
113
 
@@ -273,10 +269,6 @@ If you use the Facebook Like, Twitter Tweet or Google +1 buttons in an HTML5 the
273
 
274
  Regardless of circumstances for passing W3C tests, the plugin will always output semantically valid and robot-readable code, so publishers do not have to worry about search engine crawler errors due to invalid code. Both <a href="http://en.wikipedia.org/wiki/Web_standards">web standards</a> and <a href="http://en.wikipedia.org/wiki/Cross-browser">cross-browser</a> compatibility are taken seriously.
275
 
276
- = How can I move the plugin's inline CSS into my theme's main external stylesheet? =
277
-
278
- Go to `Settings` > `AddToAny` > uncheck `Use inline CSS` and place the CSS code in your theme's main stylesheet.
279
-
280
  = Why does the menu appear behind embedded objects (like Flash)? =
281
 
282
  Please read <a href="https://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 the plugin <a href="https://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.
@@ -296,6 +288,12 @@ Upload the plugin directory (including all files and directories within) to the
296
 
297
  == Changelog ==
298
 
 
 
 
 
 
 
299
  = 1.5.3 =
300
  * <a href="https://www.addtoany.com/buttons/customize/wordpress/events" title="Track shares, or change the shared URL">Share event handling</a> comes to the WordPress plugin!
301
  * This means you can track and modify the share with some JavaScripting
@@ -303,6 +301,7 @@ Upload the plugin directory (including all files and directories within) to the
303
  * Google Analytics integration is automatic as always
304
  * Modify the shared URL
305
  * Modify the shared Title for services that accept a Title directly (i.e. Twitter, but not Facebook)
 
306
  * Add Renren
307
  * Remove blip, iwiw
308
 
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, plus 1, google +1, google plus, google plus one, plus one, pinterest, pin, pin it, pinit, wanelo, buffer, stumbleupon, bitly, whatsapp, lockerz, addthis, sociable, sharedaddy, sharethis, shareaholic, icon, icons, vector, SVG, floating, floating buttons, wpmu, Add to Any, AddToAny
4
  Requires at least: 2.8
5
  Tested up to: 4.2
6
+ Stable tag: 1.5.4
7
 
8
  Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more.
9
 
62
  = Wide Support =
63
 
64
  * Over 8 years of active development
65
+ * Over 3.6 million downloads
66
  * Translated into dozens of languages
67
  * Ongoing support from the community
68
 
99
 
100
  Feel free to <a href="https://wordpress.org/support/plugin/add-to-any">post here</a>, where the community can hopefully help you. Describe the issue, what troubleshooting you have already done, provide a link to your site, and any other potentially relevant information.
101
 
102
+ = The share buttons are not displaying for me. Why, and what should I try? =
103
 
104
+ Something on your own device/browser/connection is likely filtering out major social buttons.
105
 
106
+ Try another web browser, device, and/or Internet connection to see if the buttons appear. Tools like browserling.com or browserstack.com will give you an idea of what other people are seeing. The usual cause for this uncommon issue is 3rd party browser add-on software that blocks ads and optionally filters out major social buttons. Some security apps and Internet connections have an option to filter social buttons. Usually a social filter option is disabled by default, but if you find that some software is inappropriately filtering AddToAny buttons, <a href="https://www.addtoany.com/contact/">let AddToAny know</a>.
 
 
 
 
107
 
108
  = Is there a shortcode for sharing? =
109
 
269
 
270
  Regardless of circumstances for passing W3C tests, the plugin will always output semantically valid and robot-readable code, so publishers do not have to worry about search engine crawler errors due to invalid code. Both <a href="http://en.wikipedia.org/wiki/Web_standards">web standards</a> and <a href="http://en.wikipedia.org/wiki/Cross-browser">cross-browser</a> compatibility are taken seriously.
271
 
 
 
 
 
272
  = Why does the menu appear behind embedded objects (like Flash)? =
273
 
274
  Please read <a href="https://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 the plugin <a href="https://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.
288
 
289
  == Changelog ==
290
 
291
+ = 1.5.4 =
292
+ * New optional sharing header to easily place a label above the default share buttons
293
+ * Accepts HTML
294
+ * Fix text width of counters where long numbers would break to a newline (thanks Chris)
295
+ * Remove old Additional Options note in settings
296
+
297
  = 1.5.3 =
298
  * <a href="https://www.addtoany.com/buttons/customize/wordpress/events" title="Track shares, or change the shared URL">Share event handling</a> comes to the WordPress plugin!
299
  * This means you can track and modify the share with some JavaScripting
301
  * Google Analytics integration is automatic as always
302
  * Modify the shared URL
303
  * Modify the shared Title for services that accept a Title directly (i.e. Twitter, but not Facebook)
304
+ * Update asynchronous loading to use new callbacks property
305
  * Add Renren
306
  * Remove blip, iwiw
307
 
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.5.3
7
  Author: AddToAny
8
  Author URI: https://www.addtoany.com/
9
  */
@@ -873,8 +873,16 @@ function A2A_SHARE_SAVE_add_to_content( $content ) {
873
  "is_kit" => ( $is_feed ) ? false : true,
874
  );
875
 
 
 
 
 
 
 
 
876
  if ( ! $is_feed ) {
877
  $container_wrap_open = '<div class="addtoany_share_save_container %s">'; // Contains placeholder
 
878
  $container_wrap_close = '</div>';
879
  } else { // Is feed
880
  $container_wrap_open = '<p>';
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.5.4
7
  Author: AddToAny
8
  Author URI: https://www.addtoany.com/
9
  */
873
  "is_kit" => ( $is_feed ) ? false : true,
874
  );
875
 
876
+ // If a Sharing Header is set
877
+ if ( isset( $options['header'] ) && '' != $options['header'] ) {
878
+ $html_header = '<div class="addtoany_header">' . stripslashes( $options['header'] ) . '</div>';
879
+ } else {
880
+ $html_header = '';
881
+ }
882
+
883
  if ( ! $is_feed ) {
884
  $container_wrap_open = '<div class="addtoany_share_save_container %s">'; // Contains placeholder
885
+ $container_wrap_open .= $html_header;
886
  $container_wrap_close = '</div>';
887
  } else { // Is feed
888
  $container_wrap_open = '<p>';
addtoany.admin.php CHANGED
@@ -262,6 +262,7 @@ function A2A_SHARE_SAVE_options_page() {
262
  $new_options['icon_size'] = ( isset( $_POST['A2A_SHARE_SAVE_icon_size'] ) ) ? $_POST['A2A_SHARE_SAVE_icon_size'] : '';
263
  $new_options['button'] = ( isset( $_POST['A2A_SHARE_SAVE_button'] ) ) ? $_POST['A2A_SHARE_SAVE_button'] : '';
264
  $new_options['button_custom'] = ( isset( $_POST['A2A_SHARE_SAVE_button_custom'] ) ) ? $_POST['A2A_SHARE_SAVE_button_custom'] : '';
 
265
  $new_options['additional_js_variables'] = ( isset( $_POST['A2A_SHARE_SAVE_additional_js_variables'] ) ) ? trim( $_POST['A2A_SHARE_SAVE_additional_js_variables'] ) : '';
266
  $new_options['custom_icons'] = ( isset( $_POST['A2A_SHARE_SAVE_custom_icons'] ) && $_POST['A2A_SHARE_SAVE_custom_icons'] == 'url' ) ? 'url' : '-1';
267
  $new_options['custom_icons_url'] = ( isset( $_POST['A2A_SHARE_SAVE_custom_icons_url'] ) ) ? trailingslashit( $_POST['A2A_SHARE_SAVE_custom_icons_url'] ) : '';
@@ -522,6 +523,15 @@ function A2A_SHARE_SAVE_options_page() {
522
 
523
  </fieldset></td>
524
  </tr>
 
 
 
 
 
 
 
 
 
525
 
526
  <tr valign="top">
527
  <th scope="row"><?php _e('Placement', 'add-to-any'); ?></th>
@@ -573,7 +583,7 @@ function A2A_SHARE_SAVE_options_page() {
573
  </div>
574
  </fieldset></td>
575
  </tr>
576
-
577
  <tr valign="top">
578
  <th scope="row"><?php _e('Menu Options', 'add-to-any'); ?></th>
579
  <td><fieldset>
@@ -594,6 +604,7 @@ function A2A_SHARE_SAVE_options_page() {
594
  </p>
595
  </fieldset></td>
596
  </tr>
 
597
  <tr valign="top">
598
  <th scope="row"><?php _e('Additional Options', 'add-to-any'); ?></th>
599
  <td><fieldset>
@@ -609,9 +620,6 @@ function A2A_SHARE_SAVE_options_page() {
609
  <p>
610
  <textarea name="A2A_SHARE_SAVE_additional_js_variables" id="A2A_SHARE_SAVE_additional_js_variables" class="code" style="width: 98%; font-size: 12px;" rows="6" cols="50"><?php if ( isset( $options['additional_js_variables'] ) ) echo stripslashes( $options['additional_js_variables'] ); ?></textarea>
611
  </p>
612
- <?php if ( isset( $options['additional_js_variables'] ) && $options['additional_js_variables'] != '' ) { ?>
613
- <label for="A2A_SHARE_SAVE_additional_js_variables" class="setting-description"><?php _e("<strong>Note</strong>: If you're adding new code, be careful not to accidentally overwrite any previous code.</label>", 'add-to-any'); ?>
614
- <?php } ?>
615
  </fieldset></td>
616
  </tr>
617
  <tr valign="top">
262
  $new_options['icon_size'] = ( isset( $_POST['A2A_SHARE_SAVE_icon_size'] ) ) ? $_POST['A2A_SHARE_SAVE_icon_size'] : '';
263
  $new_options['button'] = ( isset( $_POST['A2A_SHARE_SAVE_button'] ) ) ? $_POST['A2A_SHARE_SAVE_button'] : '';
264
  $new_options['button_custom'] = ( isset( $_POST['A2A_SHARE_SAVE_button_custom'] ) ) ? $_POST['A2A_SHARE_SAVE_button_custom'] : '';
265
+ $new_options['header'] = ( isset( $_POST['A2A_SHARE_SAVE_header'] ) ) ? $_POST['A2A_SHARE_SAVE_header'] : '';
266
  $new_options['additional_js_variables'] = ( isset( $_POST['A2A_SHARE_SAVE_additional_js_variables'] ) ) ? trim( $_POST['A2A_SHARE_SAVE_additional_js_variables'] ) : '';
267
  $new_options['custom_icons'] = ( isset( $_POST['A2A_SHARE_SAVE_custom_icons'] ) && $_POST['A2A_SHARE_SAVE_custom_icons'] == 'url' ) ? 'url' : '-1';
268
  $new_options['custom_icons_url'] = ( isset( $_POST['A2A_SHARE_SAVE_custom_icons_url'] ) ) ? trailingslashit( $_POST['A2A_SHARE_SAVE_custom_icons_url'] ) : '';
523
 
524
  </fieldset></td>
525
  </tr>
526
+
527
+ <tr valign="top">
528
+ <th scope="row"><?php _e('Sharing Header', 'add-to-any'); ?></th>
529
+ <td><fieldset>
530
+ <label>
531
+ <input name="A2A_SHARE_SAVE_header" type="text" class="code" placeholder="<?php esc_attr_e( 'Share this:' ); ?>" size="50" value="<?php if ( isset( $options['header'] ) ) echo esc_attr( stripslashes( $options['header'] ) ); ?>" />
532
+ </label>
533
+ </fieldset></td>
534
+ </tr>
535
 
536
  <tr valign="top">
537
  <th scope="row"><?php _e('Placement', 'add-to-any'); ?></th>
583
  </div>
584
  </fieldset></td>
585
  </tr>
586
+
587
  <tr valign="top">
588
  <th scope="row"><?php _e('Menu Options', 'add-to-any'); ?></th>
589
  <td><fieldset>
604
  </p>
605
  </fieldset></td>
606
  </tr>
607
+
608
  <tr valign="top">
609
  <th scope="row"><?php _e('Additional Options', 'add-to-any'); ?></th>
610
  <td><fieldset>
620
  <p>
621
  <textarea name="A2A_SHARE_SAVE_additional_js_variables" id="A2A_SHARE_SAVE_additional_js_variables" class="code" style="width: 98%; font-size: 12px;" rows="6" cols="50"><?php if ( isset( $options['additional_js_variables'] ) ) echo stripslashes( $options['additional_js_variables'] ); ?></textarea>
622
  </p>
 
 
 
623
  </fieldset></td>
624
  </tr>
625
  <tr valign="top">
addtoany.min.css CHANGED
@@ -1 +1 @@
1
- .addtoany_share_save_container{clear:both;margin:16px 0}.addtoany_list{display:inline;line-height:16px}.addtoany_list a{display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle}.addtoany_list a img{border:0;height:auto;opacity:1;overflow:hidden;vertical-align:top;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 span{margin:0;vertical-align:baseline!important}.addtoany_special_service iframe{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{display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle}.addtoany_list a img{border:0;height:auto;opacity:1;overflow:hidden;vertical-align:top;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 span{margin:0;vertical-align:baseline!important}.addtoany_special_service iframe{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}