WordPress Social Sharing Plugin – Sassy Social Share - Version 3.3.3

Version Description

[26 October 2019] = [Bugfix] Changing Alignment of floating follow icons was not changing the label of offset option right below that in "Sassy Social Share - Follow Icons" widget

Download this release

Release Info

Developer Heateor
Plugin Icon 128x128 WordPress Social Sharing Plugin – Sassy Social Share
Version 3.3.3
Comparing to
See all releases

Code changes from version 3.3.2 to 3.3.3

includes/class-sassy-social-share-widgets.php CHANGED
@@ -679,23 +679,6 @@ class Sassy_Social_Share_Follow_Widget extends WP_Widget {
679
 
680
  $instance = wp_parse_args( ( array ) $instance, $defaults );
681
  ?>
682
- <script type="text/javascript">
683
- function heateorSssFloatingAlignment(val) {
684
- if (val == 'floating' ) {
685
- jQuery( '.heateorSssFloatingAlignment' ).css( 'display', 'block' );
686
- } else {
687
- jQuery( '.heateorSssFloatingAlignment' ).css( 'display', 'none' );
688
- }
689
- jQuery( '#<?php echo $this->get_field_id( 'alignment_value_label' ); ?>' ).text('<?php _e( 'Right offset', 'sassy-social-share' ) ?>' );
690
- }
691
- function heateorSssAlignmentOffsetLabel(val) {
692
- if (val == 'left' ) {
693
- jQuery( '#<?php echo $this->get_field_id( 'alignment_value_label' ); ?>' ).text('<?php _e( 'Left offset', 'sassy-social-share' ) ?>' );
694
- } else {
695
- jQuery( '#<?php echo $this->get_field_id( 'alignment_value_label' ); ?>' ).text('<?php _e( 'Right offset', 'sassy-social-share' ) ?>' );
696
- }
697
- }
698
- </script>
699
  <p>
700
  <label for="<?php echo $this->get_field_id( 'before_widget_content' ); ?>"><?php _e( 'Before widget content:', 'sassy-social-share' ); ?></label>
701
  <input class="widefat" id="<?php echo $this->get_field_id( 'before_widget_content' ); ?>" name="<?php echo $this->get_field_name( 'before_widget_content' ); ?>" type="text" value="<?php echo $instance['before_widget_content']; ?>" /><br/><br/>
@@ -710,7 +693,7 @@ class Sassy_Social_Share_Follow_Widget extends WP_Widget {
710
  }?>><label for="<?php echo $this->get_field_id( 'mode_floating' ); ?>"> <?php _e( 'Floating', 'sassy-social-share' ) ?></label><br><br>
711
 
712
  <div class="heateorSssFloatingAlignment"
713
- <?php echo $instance['type'] == 'standard' ? 'style="display:none"' : '' ?>>
714
  <label for="<?php echo $this->get_field_id( 'top_offset' ); ?>">
715
  <?php _e( 'Top offset:', 'sassy-social-share' ) ?>
716
  </label>
@@ -735,7 +718,8 @@ class Sassy_Social_Share_Follow_Widget extends WP_Widget {
735
  <br>
736
  <br>
737
  <label id="<?php echo $this->get_field_id( 'alignment_value_label' ); ?>" for="<?php echo $this->get_field_id( 'alignment_value' ); ?>">
738
- <?php echo $instance['alignment'] == 'right' ? __( 'Right offset', 'sassy-social-share' ) : __( 'Left offset', 'sassy-social-share' ) ?>
 
739
  </label>
740
  <br>
741
  <input id='<?php echo $this->get_field_id( 'alignment_value' ); ?>' type="text" name="<?php echo $this->get_field_name( 'alignment_value' ); ?>" value="<?php echo $instance['alignment_value']; ?>" />px<br><br>
@@ -748,6 +732,26 @@ class Sassy_Social_Share_Follow_Widget extends WP_Widget {
748
  <option value="round" <?php echo ! isset( $instance['icon_shape'] ) || $instance['icon_shape'] == 'round' ? 'selected' : '' ; ?>><?php _e( 'Round', 'sassy-social-share' ); ?></option>
749
  <option value="square" <?php echo isset( $instance['icon_shape'] ) && $instance['icon_shape'] == 'square' ? 'selected' : '' ; ?>><?php _e( 'Square', 'sassy-social-share' ); ?></option>
750
  </select><br/><br/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
751
  <label for="<?php echo $this->get_field_id( 'custom_color' ); ?>"><?php _e( 'Apply icon color and background color from Theme Selection section:', 'sassy-social-share' ); ?></label>
752
  <select style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'custom_color' ); ?>" name="<?php echo $this->get_field_name( 'custom_color' ); ?>">
753
  <option value="" <?php echo ! isset( $instance['custom_color'] ) || $instance['custom_color'] == '' ? 'selected' : '' ; ?>><?php _e( 'No', 'sassy-social-share' ); ?></option>
679
 
680
  $instance = wp_parse_args( ( array ) $instance, $defaults );
681
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
682
  <p>
683
  <label for="<?php echo $this->get_field_id( 'before_widget_content' ); ?>"><?php _e( 'Before widget content:', 'sassy-social-share' ); ?></label>
684
  <input class="widefat" id="<?php echo $this->get_field_id( 'before_widget_content' ); ?>" name="<?php echo $this->get_field_name( 'before_widget_content' ); ?>" type="text" value="<?php echo $instance['before_widget_content']; ?>" /><br/><br/>
693
  }?>><label for="<?php echo $this->get_field_id( 'mode_floating' ); ?>"> <?php _e( 'Floating', 'sassy-social-share' ) ?></label><br><br>
694
 
695
  <div class="heateorSssFloatingAlignment"
696
+ <?php echo $instance['type'] == 'standard' ? "style='display:none'" : "style='display:block'" ?>>
697
  <label for="<?php echo $this->get_field_id( 'top_offset' ); ?>">
698
  <?php _e( 'Top offset:', 'sassy-social-share' ) ?>
699
  </label>
718
  <br>
719
  <br>
720
  <label id="<?php echo $this->get_field_id( 'alignment_value_label' ); ?>" for="<?php echo $this->get_field_id( 'alignment_value' ); ?>">
721
+ <?php
722
+ echo $instance['alignment'] == 'right' ? __( 'Right offset', 'sassy-social-share' ) : __( 'Left offset', 'sassy-social-share' ) ?>
723
  </label>
724
  <br>
725
  <input id='<?php echo $this->get_field_id( 'alignment_value' ); ?>' type="text" name="<?php echo $this->get_field_name( 'alignment_value' ); ?>" value="<?php echo $instance['alignment_value']; ?>" />px<br><br>
732
  <option value="round" <?php echo ! isset( $instance['icon_shape'] ) || $instance['icon_shape'] == 'round' ? 'selected' : '' ; ?>><?php _e( 'Round', 'sassy-social-share' ); ?></option>
733
  <option value="square" <?php echo isset( $instance['icon_shape'] ) && $instance['icon_shape'] == 'square' ? 'selected' : '' ; ?>><?php _e( 'Square', 'sassy-social-share' ); ?></option>
734
  </select><br/><br/>
735
+ <script type="text/javascript">
736
+ function heateorSssFloatingAlignment(val) {
737
+ if (val == 'floating' ) {
738
+ jQuery( '.heateorSssFloatingAlignment' ).css( 'display', 'block' );
739
+ } else {
740
+ jQuery( '.heateorSssFloatingAlignment' ).css( 'display', 'none' );
741
+ }
742
+ }
743
+ function heateorSssAlignmentOffsetLabel(val) {
744
+ if (val == 'left' ) {
745
+ jQuery("label:contains('<?php _e( 'Right offset', 'sassy-social-share' ) ?>')").text('<?php _e( 'Left offset', 'sassy-social-share' ) ?>' );
746
+ } else {
747
+ jQuery("label:contains('<?php _e( 'Left offset', 'sassy-social-share' ) ?>')").text('<?php _e( 'Right offset', 'sassy-social-share' ) ?>' );
748
+ }
749
+ }
750
+ jQuery(function(){
751
+ heateorSssFloatingAlignment('<?php echo $instance['type'] ?>');
752
+ heateorSssAlignmentOffsetLabel('<?php echo $instance['alignment'] ?>');
753
+ });
754
+ </script>
755
  <label for="<?php echo $this->get_field_id( 'custom_color' ); ?>"><?php _e( 'Apply icon color and background color from Theme Selection section:', 'sassy-social-share' ); ?></label>
756
  <select style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'custom_color' ); ?>" name="<?php echo $this->get_field_name( 'custom_color' ); ?>">
757
  <option value="" <?php echo ! isset( $instance['custom_color'] ) || $instance['custom_color'] == '' ? 'selected' : '' ; ?>><?php _e( 'No', 'sassy-social-share' ); ?></option>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Heateor, jatin8heateor, farhan8heateor
3
  Donate link: https://www.heateor.com/donate/?action=Sassy+Social+Share
4
  Tags: social share, social sharing, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, facebook like, twitter tweet, whatsapp share, line share
5
  Requires at least: 2.5.0
6
- Tested up to: 5.2.3
7
- Stable tag: 3.3.2
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more.
@@ -123,6 +123,9 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
123
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
124
 
125
  == Changelog ==
 
 
 
126
  = 3.3.2 [24 September 2019] =
127
  [Bugfix] Custom theme for Social Media Follow icons was not working for Instagram icon, if multi-colored background was enabled
128
 
@@ -829,4 +832,7 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
829
  [New] Added option in "Miscellaneous" section to adjust the background color (plain or multi-colored) of Instagram share and follow icon
830
 
831
  = 3.3.2 [24 September 2019] =
832
- [Bugfix] Custom theme for Social Media Follow icons was not working for Instagram icon, if multi-colored background was enabled
 
 
 
3
  Donate link: https://www.heateor.com/donate/?action=Sassy+Social+Share
4
  Tags: social share, social sharing, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, facebook like, twitter tweet, whatsapp share, line share
5
  Requires at least: 2.5.0
6
+ Tested up to: 5.2.4
7
+ Stable tag: 3.3.3
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more.
123
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
124
 
125
  == Changelog ==
126
+ = 3.3.3 [26 October 2019] =
127
+ [Bugfix] Changing Alignment of floating follow icons was not changing the label of offset option right below that in "Sassy Social Share - Follow Icons" widget
128
+
129
  = 3.3.2 [24 September 2019] =
130
  [Bugfix] Custom theme for Social Media Follow icons was not working for Instagram icon, if multi-colored background was enabled
131
 
832
  [New] Added option in "Miscellaneous" section to adjust the background color (plain or multi-colored) of Instagram share and follow icon
833
 
834
  = 3.3.2 [24 September 2019] =
835
+ [Bugfix] Custom theme for Social Media Follow icons was not working for Instagram icon, if multi-colored background was enabled
836
+
837
+ = 3.3.3 [26 October 2019] =
838
+ [Bugfix] Changing Alignment of floating follow icons was not changing the label of offset option right below that in "Sassy Social Share - Follow Icons" widget
sassy-social-share.php CHANGED
@@ -7,7 +7,7 @@
7
  * Plugin Name: Sassy Social Share
8
  * Plugin URI: https://www.heateor.com
9
  * Description: Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more
10
- * Version: 3.3.2
11
  * Author: Team Heateor
12
  * Author URI: https://www.heateor.com
13
  * Text Domain: sassy-social-share
@@ -21,7 +21,7 @@ if ( ! defined( 'WPINC' ) ) {
21
  die;
22
  }
23
 
24
- define( 'HEATEOR_SSS_VERSION', '3.3.2' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
26
 
27
  // plugin core class object
7
  * Plugin Name: Sassy Social Share
8
  * Plugin URI: https://www.heateor.com
9
  * Description: Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more
10
+ * Version: 3.3.3
11
  * Author: Team Heateor
12
  * Author URI: https://www.heateor.com
13
  * Text Domain: sassy-social-share
21
  die;
22
  }
23
 
24
+ define( 'HEATEOR_SSS_VERSION', '3.3.3' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
26
 
27
  // plugin core class object