AddToAny Share Buttons - Version 1.7.36

Version Description

  • Apply the "Show sharing buttons" option to the floating vertical bar when Placement is set to "Attach to content"
Download this release

Release Info

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

Code changes from version 1.7.35 to 1.7.36

Files changed (2) hide show
  1. README.txt +6 -3
  2. add-to-any.php +13 -6
README.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: micropat, addtoany
3
  Tags: buttons, share, icons, social media, share buttons, sharing, share button, media, social, marketing, links, email, seo, woocommerce, google, linkedin, reddit, facebook, twitter, pinterest, whatsapp, instagram, youtube, share this, sharethis, feed
4
  Requires at least: 3.7
5
- Tested up to: 5.1
6
  Requires PHP: 5.2
7
- Stable tag: 1.7.35
8
 
9
  Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, WhatsApp, Pinterest, Reddit, many more, and follow icons too.
10
 
@@ -346,8 +346,11 @@ Upload (or move) the `add-to-any` plugin directory into the `/wp-content/mu-plug
346
 
347
  == Changelog ==
348
 
 
 
 
349
  = 1.7.35 =
350
- * Remove Google+ because Google is [shutting down Google+](https://support.google.com/plus/answer/9195133)
351
 
352
  = 1.7.34 =
353
  * Add MeWe
2
  Contributors: micropat, addtoany
3
  Tags: buttons, share, icons, social media, share buttons, sharing, share button, media, social, marketing, links, email, seo, woocommerce, google, linkedin, reddit, facebook, twitter, pinterest, whatsapp, instagram, youtube, share this, sharethis, feed
4
  Requires at least: 3.7
5
+ Tested up to: 5.2
6
  Requires PHP: 5.2
7
+ Stable tag: 1.7.36
8
 
9
  Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, WhatsApp, Pinterest, Reddit, many more, and follow icons too.
10
 
346
 
347
  == Changelog ==
348
 
349
+ = 1.7.36 =
350
+ * Apply the "Show sharing buttons" option to the floating vertical bar when Placement is set to "Attach to content"
351
+
352
  = 1.7.35 =
353
+ * Remove Google+ because Google is [shut down Google+](https://support.google.com/plus/answer/9195133)
354
 
355
  = 1.7.34 =
356
  * Add MeWe
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.35
7
  Author: AddToAny
8
  Author URI: https://www.addtoany.com/
9
  Text Domain: add-to-any
@@ -605,7 +605,7 @@ function ADDTOANY_SHARE_SAVE_FLOATING( $args = array() ) {
605
  $horizontal_type = ( isset( $options['floating_horizontal'] ) && 'none' != $options['floating_horizontal'] ) ? $options['floating_horizontal'] : false;
606
 
607
  if ( is_singular() ) {
608
- // Disabled for this singular post?
609
  $sharing_disabled = get_post_meta( get_the_ID(), 'sharing_disabled', true );
610
  $sharing_disabled = apply_filters( 'addtoany_sharing_disabled', $sharing_disabled );
611
 
@@ -753,6 +753,12 @@ function A2A_SHARE_SAVE_head_script() {
753
 
754
  if ( is_admin() || is_feed() || $script_disabled )
755
  return;
 
 
 
 
 
 
756
 
757
  $options = get_option( 'addtoany_options', array() );
758
 
@@ -791,10 +797,11 @@ function A2A_SHARE_SAVE_head_script() {
791
 
792
  // Floating vertical relative to content
793
  $floating_js = '';
794
- if (
795
- isset( $options['floating_vertical'] ) &&
796
- in_array( $options['floating_vertical'], array( 'left_attached', 'right_attached' ) ) &&
797
- ! empty( $options['floating_vertical_attached_to'] )
 
798
  ) {
799
  // Top position
800
  $floating_js_position = ( isset( $options['floating_vertical_position'] ) ) ? $options['floating_vertical_position'] . 'px' : '100px';
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.36
7
  Author: AddToAny
8
  Author URI: https://www.addtoany.com/
9
  Text Domain: add-to-any
605
  $horizontal_type = ( isset( $options['floating_horizontal'] ) && 'none' != $options['floating_horizontal'] ) ? $options['floating_horizontal'] : false;
606
 
607
  if ( is_singular() ) {
608
+ // Sharing disabled for this singular post?
609
  $sharing_disabled = get_post_meta( get_the_ID(), 'sharing_disabled', true );
610
  $sharing_disabled = apply_filters( 'addtoany_sharing_disabled', $sharing_disabled );
611
 
753
 
754
  if ( is_admin() || is_feed() || $script_disabled )
755
  return;
756
+
757
+ if ( is_singular() ) {
758
+ // Sharing disabled for this singular post?
759
+ $sharing_disabled = get_post_meta( get_the_ID(), 'sharing_disabled', true );
760
+ $sharing_disabled = apply_filters( 'addtoany_sharing_disabled', $sharing_disabled );
761
+ }
762
 
763
  $options = get_option( 'addtoany_options', array() );
764
 
797
 
798
  // Floating vertical relative to content
799
  $floating_js = '';
800
+ if (
801
+ isset( $options['floating_vertical'] )
802
+ && in_array( $options['floating_vertical'], array( 'left_attached', 'right_attached' ) )
803
+ && ! empty( $options['floating_vertical_attached_to'] )
804
+ && empty( $sharing_disabled )
805
  ) {
806
  // Top position
807
  $floating_js_position = ( isset( $options['floating_vertical_position'] ) ) ? $options['floating_vertical_position'] . 'px' : '100px';