WordPress Social Sharing Plugin – Sassy Social Share - Version 2.5.8

Version Description

  • [Improvement] Performance improvement for the mobile responsiveness feature added in previous version
Download this release

Release Info

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

Code changes from version 2.5.7 to 2.5.8

admin/class-sassy-social-share-admin.php CHANGED
@@ -471,4 +471,54 @@ class Sassy_Social_Share_Admin {
471
 
472
  }
473
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
474
  }
471
 
472
  }
473
 
474
+ /**
475
+ * Update options based on plugin version
476
+ *
477
+ * @since 2.5.8
478
+ */
479
+ public function update_db_check() {
480
+
481
+ $current_version = get_option( 'heateor_sss_version' );
482
+ if ( $current_version != $this->version ) {
483
+ if ( $this->options['horizontal_sharing_replace_color'] != '#fff' ) {
484
+ heateor_sss_update_svg_css( $this->options['horizontal_sharing_replace_color'], 'sassy-social-share-default-svg-horizontal' );
485
+ }
486
+ if ( $this->options['horizontal_font_color_hover'] != '#fff' ) {
487
+ heateor_sss_update_svg_css( $this->options['horizontal_font_color_hover'], 'sassy-social-share-hover-svg-horizontal' );
488
+ }
489
+ if ( $this->options['vertical_font_color_default'] != '#fff' ) {
490
+ heateor_sss_update_svg_css( $this->options['vertical_font_color_default'], 'sassy-social-share-default-svg-vertical' );
491
+ }
492
+ if ( $this->options['vertical_font_color_hover'] != '#fff' ) {
493
+ heateor_sss_update_svg_css( $this->options['vertical_font_color_hover'], 'sassy-social-share-hover-svg-vertical' );
494
+ }
495
+
496
+ if ( version_compare( '1.7', $current_version ) > 0 ) {
497
+ $this->options['share_count_cache_refresh_count'] = '10';
498
+ $this->options['share_count_cache_refresh_unit'] = 'minutes';
499
+ update_option( 'heateor_sss', $this->options );
500
+ }
501
+
502
+ if ( version_compare( '2.3', $current_version ) > 0 ) {
503
+ $this->options['amp_enable'] = '1';
504
+ update_option( 'heateor_sss', $this->options );
505
+ }
506
+
507
+ if ( version_compare( '2.4', $current_version ) > 0 ) {
508
+ $this->options['instagram_username'] = '';
509
+ $this->options['vertical_instagram_username'] = '';
510
+ update_option( 'heateor_sss', $this->options );
511
+ }
512
+
513
+ if ( version_compare( '2.5.8', $current_version ) > 0 ) {
514
+ $this->options['bottom_sharing_position_radio'] = 'responsive';
515
+ update_option( 'heateor_sss', $this->options );
516
+ }
517
+
518
+ // update plugin version in database
519
+ update_option( 'heateor_sss_version', $this->version );
520
+ }
521
+
522
+ }
523
+
524
  }
includes/class-sassy-social-share.php CHANGED
@@ -126,6 +126,8 @@ class Sassy_Social_Share {
126
  // create object of admin class to pass options
127
  $plugin_admin = new Sassy_Social_Share_Admin( $this->options, $this->version );
128
 
 
 
129
  // create admin menu
130
  add_action( 'admin_menu', array( $plugin_admin, 'create_admin_menu' ) );
131
  // set sanitization callback for plugin options
@@ -161,8 +163,6 @@ class Sassy_Social_Share {
161
  $plugin_public = new Sassy_Social_Share_Public( $this->options, $this->version );
162
  $this->plugin_public = $plugin_public;
163
 
164
- // hook to upate plugin db/options based on version
165
- add_action( 'plugins_loaded', array( $plugin_public, 'update_db_check' ) );
166
  // hook the plugin functions on 'init' event.
167
  add_action( 'init', array( $plugin_public, 'init' ) );
168
  // remove render sharing action from Excerpts, as it gets nasty due to strip_tags()
126
  // create object of admin class to pass options
127
  $plugin_admin = new Sassy_Social_Share_Admin( $this->options, $this->version );
128
 
129
+ // hook to upate plugin db/options based on version
130
+ add_action( 'plugins_loaded', array( $plugin_admin, 'update_db_check' ) );
131
  // create admin menu
132
  add_action( 'admin_menu', array( $plugin_admin, 'create_admin_menu' ) );
133
  // set sanitization callback for plugin options
163
  $plugin_public = new Sassy_Social_Share_Public( $this->options, $this->version );
164
  $this->plugin_public = $plugin_public;
165
 
 
 
166
  // hook the plugin functions on 'init' event.
167
  add_action( 'init', array( $plugin_public, 'init' ) );
168
  // remove render sharing action from Excerpts, as it gets nasty due to strip_tags()
public/class-sassy-social-share-public.php CHANGED
@@ -1766,7 +1766,7 @@ class Sassy_Social_Share_Public {
1766
  $more_icon_enabled = isset($this->options['vertical_more']) ? 1 : 0;
1767
  $bottom_sharing_responsive_css = 'div.heateor_sss_bottom_sharing{width:100% !important;}div.heateor_sss_bottom_sharing li{width:'.(100/($num_sharing_icons+$total_share_count_enabled+$more_icon_enabled)).'% !important;}div.heateor_sss_bottom_sharing .heateorSssSharing{width: 100% !important;}div.heateor_sss_bottom_sharing div.heateorSssTotalShareCount{font-size:1em!important;line-height:' . ( $vertical_sharing_icon_height*70/100 ) . 'px!important}div.heateor_sss_bottom_sharing div.heateorSssTotalShareText{font-size:.7em!important;line-height:0px!important}';
1768
  }
1769
- echo isset( $this->options['vertical_enable'] ) && isset( $this->options['bottom_mobile_sharing'] ) && $this->options['horizontal_screen_width'] != '' ? 'div.heateor_sss_mobile_footer{display:none;}@media screen and (max-width:' . $this->options['horizontal_screen_width'] . 'px) {'.$bottom_sharing_responsive_css.'div.heateor_sss_mobile_footer{display:block;height:'.($this->options['vertical_sharing_shape'] == 'rectangle' ? $this->options['vertical_sharing_height'] : $this->options['vertical_sharing_size']).'px;}.heateor_sss_bottom_sharing{padding:0!important;' . ( $this->options['bottom_sharing_position'] != '' ? $this->options['bottom_sharing_alignment'] . ':' . $this->options['bottom_sharing_position'] . 'px!important;' . $bottom_sharing_postion_inverse . ':auto!important;' : '' ) . 'display:block!important;width: auto!important;bottom: -10px!important;top: auto!important;}.heateor_sss_bottom_sharing .heateor_sss_square_count{line-height: inherit;}.heateor_sss_bottom_sharing .heateorSssSharingArrow{display:none;}.heateor_sss_bottom_sharing .heateorSssTCBackground{margin-right: 1.1em !important}}' : '';
1770
  echo $this->options['custom_css'];
1771
  if ( current_filter() == 'wp_enqueue_scripts' ) {
1772
  ?>
@@ -1895,49 +1895,4 @@ class Sassy_Social_Share_Public {
1895
 
1896
  }
1897
 
1898
- public function update_db_check() {
1899
-
1900
- $current_version = get_option( 'heateor_sss_version' );
1901
- if ( $current_version != $this->version ) {
1902
- if ( $this->options['horizontal_sharing_replace_color'] != '#fff' ) {
1903
- heateor_sss_update_svg_css( $this->options['horizontal_sharing_replace_color'], 'sassy-social-share-default-svg-horizontal' );
1904
- }
1905
- if ( $this->options['horizontal_font_color_hover'] != '#fff' ) {
1906
- heateor_sss_update_svg_css( $this->options['horizontal_font_color_hover'], 'sassy-social-share-hover-svg-horizontal' );
1907
- }
1908
- if ( $this->options['vertical_font_color_default'] != '#fff' ) {
1909
- heateor_sss_update_svg_css( $this->options['vertical_font_color_default'], 'sassy-social-share-default-svg-vertical' );
1910
- }
1911
- if ( $this->options['vertical_font_color_hover'] != '#fff' ) {
1912
- heateor_sss_update_svg_css( $this->options['vertical_font_color_hover'], 'sassy-social-share-hover-svg-vertical' );
1913
- }
1914
-
1915
- if ( version_compare( '1.7', $current_version ) > 0 ) {
1916
- $this->options['share_count_cache_refresh_count'] = '10';
1917
- $this->options['share_count_cache_refresh_unit'] = 'minutes';
1918
- update_option( 'heateor_sss', $this->options );
1919
- }
1920
-
1921
- if ( version_compare( '2.3', $current_version ) > 0 ) {
1922
- $this->options['amp_enable'] = '1';
1923
- update_option( 'heateor_sss', $this->options );
1924
- }
1925
-
1926
- if ( version_compare( '2.4', $current_version ) > 0 ) {
1927
- $this->options['instagram_username'] = '';
1928
- $this->options['vertical_instagram_username'] = '';
1929
- update_option( 'heateor_sss', $this->options );
1930
- }
1931
-
1932
- if ( version_compare( '2.5.7', $current_version ) > 0 ) {
1933
- $this->options['bottom_sharing_position_radio'] = 'responsive';
1934
- update_option( 'heateor_sss', $this->options );
1935
- }
1936
-
1937
- // update plugin version in database
1938
- update_option( 'heateor_sss_version', $this->version );
1939
- }
1940
-
1941
- }
1942
-
1943
  }
1766
  $more_icon_enabled = isset($this->options['vertical_more']) ? 1 : 0;
1767
  $bottom_sharing_responsive_css = 'div.heateor_sss_bottom_sharing{width:100% !important;}div.heateor_sss_bottom_sharing li{width:'.(100/($num_sharing_icons+$total_share_count_enabled+$more_icon_enabled)).'% !important;}div.heateor_sss_bottom_sharing .heateorSssSharing{width: 100% !important;}div.heateor_sss_bottom_sharing div.heateorSssTotalShareCount{font-size:1em!important;line-height:' . ( $vertical_sharing_icon_height*70/100 ) . 'px!important}div.heateor_sss_bottom_sharing div.heateorSssTotalShareText{font-size:.7em!important;line-height:0px!important}';
1768
  }
1769
+ echo isset( $this->options['vertical_enable'] ) && isset( $this->options['bottom_mobile_sharing'] ) && $this->options['horizontal_screen_width'] != '' ? 'div.heateor_sss_mobile_footer{display:none;}@media screen and (max-width:' . $this->options['horizontal_screen_width'] . 'px) {'.$bottom_sharing_responsive_css.'div.heateor_sss_mobile_footer{display:block;height:'.($this->options['vertical_sharing_shape'] == 'rectangle' ? $this->options['vertical_sharing_height'] : $this->options['vertical_sharing_size']).'px;}.heateor_sss_bottom_sharing{padding:0!important;' . ( $this->options['bottom_sharing_position'] != '' ? $this->options['bottom_sharing_alignment'] . ':' . $this->options['bottom_sharing_position'] . 'px!important;' . $bottom_sharing_postion_inverse . ':auto!important;' : '' ) . 'display:block!important;width: auto!important;bottom:' . ( isset( $this->options['vertical_total_shares'] ) ? '-10' : '-2' ) . 'px!important;top: auto!important;}.heateor_sss_bottom_sharing .heateor_sss_square_count{line-height: inherit;}.heateor_sss_bottom_sharing .heateorSssSharingArrow{display:none;}.heateor_sss_bottom_sharing .heateorSssTCBackground{margin-right: 1.1em !important}}' : '';
1770
  echo $this->options['custom_css'];
1771
  if ( current_filter() == 'wp_enqueue_scripts' ) {
1772
  ?>
1895
 
1896
  }
1897
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1898
  }
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === WordPress Social Sharing Plugin - Sassy Social Share ===
2
  Contributors: Heateor
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, google +1, google plus share
5
  Requires at least: 2.5.0
6
- Tested up to: 4.7.5
7
- Stable tag: 2.5.7
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
@@ -17,6 +17,8 @@ This is the Simplest and Smoothest Social Sharing plugin with optimized and grea
17
 
18
  **Note:** Plugin will not work on local server. You should have an online website for the plugin to function properly.
19
 
 
 
20
  = Feature list =
21
  * Around **100 Social Sharing/Bookmarking** services
22
  * FREE **Icon Customization** options
@@ -110,6 +112,9 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
110
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
111
 
112
  == Changelog ==
 
 
 
113
  = 2.5.7 =
114
  * [Improvement] Horizontal sticky sharing bar is now responsive with auto-adjusting width according to device screen
115
  * [Improvement] Sticky horizontal sharing icons were covering website footer on mobile devices
@@ -378,4 +383,7 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
378
  = 2.5.7 =
379
  * [Improvement] Horizontal sticky sharing bar is now responsive with auto-adjusting width according to device screen
380
  * [Improvement] Sticky horizontal sharing icons were covering website footer on mobile devices
381
- * [Improvement] Share counts are now being rounded off to one decimal
 
 
 
1
+ === Sassy Social Share - WordPress Social Sharing Plugin ===
2
  Contributors: Heateor
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, google +1, google plus share
5
  Requires at least: 2.5.0
6
+ Tested up to: 4.8
7
+ Stable tag: 2.5.8
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
17
 
18
  **Note:** Plugin will not work on local server. You should have an online website for the plugin to function properly.
19
 
20
+ **Available in English, <a target="_blank" href="https://fr.wordpress.org/plugins/sassy-social-share/">French</a>
21
+
22
  = Feature list =
23
  * Around **100 Social Sharing/Bookmarking** services
24
  * FREE **Icon Customization** options
112
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
113
 
114
  == Changelog ==
115
+ = 2.5.8 =
116
+ * [Improvement] Performance improvement for the mobile responsiveness feature added in previous version
117
+
118
  = 2.5.7 =
119
  * [Improvement] Horizontal sticky sharing bar is now responsive with auto-adjusting width according to device screen
120
  * [Improvement] Sticky horizontal sharing icons were covering website footer on mobile devices
383
  = 2.5.7 =
384
  * [Improvement] Horizontal sticky sharing bar is now responsive with auto-adjusting width according to device screen
385
  * [Improvement] Sticky horizontal sharing icons were covering website footer on mobile devices
386
+ * [Improvement] Share counts are now being rounded off to one decimal
387
+
388
+ = 2.5.8 =
389
+ * [Improvement] Performance improvement for the mobile responsiveness feature added in previous version
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, Google+, Pinterest, WhatsApp and over 100 more.
10
- * Version: 2.5.7
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', '2.5.7' );
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, Google+, Pinterest, WhatsApp and over 100 more.
10
+ * Version: 2.5.8
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', '2.5.8' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path(__FILE__) );
26
 
27
  // plugin core class object