Version Description
- [Bugfix] Facebook share count was not getting updated with the share counts of other social networks, in a few cases
Download this release
Release Info
Developer | Heateor |
Plugin | WordPress Social Sharing Plugin – Sassy Social Share |
Version | 3.1.4 |
Comparing to | |
See all releases |
Code changes from version 3.1.3 to 3.1.4
public/class-sassy-social-share-public.php
CHANGED
@@ -1124,7 +1124,7 @@ class Sassy_Social_Share_Public {
|
|
1124 |
$style,
|
1125 |
$inner_style . ( $share_count[$provider] || ( $isset_starting_share_count && $share_counts != ' ' ) ? $inner_style_conditional : '' ),
|
1126 |
$li_class,
|
1127 |
-
str_replace( '%network%', $provider, $isset_starting_share_count ? str_replace( '> ', ' sss_st_count="' . $sharing_meta[$provider . '_' . $sharing_type . '_count'] . '"' . ( $share_counts == ' ' ? '> ' : ' style="visibility:visible;' . ( $inner_style_conditional ? 'display:block;' : '' ) . '">' . $this->round_off_counts( $share_count[$provider] + $sharing_meta[$provider . '_' . $sharing_type . '_count'] ) ) , $counter_placeholder_value ) : str_replace( '> ', $share_count[$provider] ? ' style="visibility:visible;' . ( $inner_style_conditional ? 'display:block;' : '' ) . '">' . $this->round_off_counts( $share_count[$provider] ) : '> ', $counter_placeholder_value ) ),
|
1128 |
ucfirst( str_replace( '_', ' ', $provider ) ),
|
1129 |
'',
|
1130 |
''
|
@@ -1158,7 +1158,7 @@ class Sassy_Social_Share_Public {
|
|
1158 |
}
|
1159 |
$add_style .= ( $total_share_count && $share_counts != ' ' ? 'visibility:visible;' : '' ) . '"';
|
1160 |
$style = str_replace( ';"', $add_style, $style );
|
1161 |
-
$total_shares_html .= '<i ' . $style . ' title="Total Shares" class="heateorSssSharing heateorSssTCBackground">' . ( $total_share_count ? '<div class="heateorSssTotalShareCount" style="font-size: ' . ( $icon_height * 62/100 ) . 'px">' . $this->round_off_counts( $total_share_count ) . '</div><div class="heateorSssTotalShareText" style="font-size: ' . ( $icon_height * 38/100 ) . 'px">' . ( $total_share_count < 2 ? __( 'Share', 'sassy-social-share' ) : __( 'Shares', 'sassy-social-share' ) ) . '</div>' : '' ) . '</i></li>';
|
1162 |
}
|
1163 |
|
1164 |
if ( $sharing_type == 'vertical' ) {
|
1124 |
$style,
|
1125 |
$inner_style . ( $share_count[$provider] || ( $isset_starting_share_count && $share_counts != ' ' ) ? $inner_style_conditional : '' ),
|
1126 |
$li_class,
|
1127 |
+
str_replace( '%network%', $provider, $isset_starting_share_count ? str_replace( '> ', ' sss_st_count="' . $sharing_meta[$provider . '_' . $sharing_type . '_count'] . '"' . ( $share_counts == ' ' ? '> ' : ' style="visibility:visible;' . ( $inner_style_conditional ? 'display:block;' : '' ) . '">' . $this->round_off_counts( intval( $share_count[$provider] ) + $sharing_meta[$provider . '_' . $sharing_type . '_count'] ) ) , $counter_placeholder_value ) : str_replace( '> ', $share_count[$provider] ? ' style="visibility:visible;' . ( $inner_style_conditional ? 'display:block;' : '' ) . '">' . $this->round_off_counts( intval( $share_count[$provider] ) ) : '> ', $counter_placeholder_value ) ),
|
1128 |
ucfirst( str_replace( '_', ' ', $provider ) ),
|
1129 |
'',
|
1130 |
''
|
1158 |
}
|
1159 |
$add_style .= ( $total_share_count && $share_counts != ' ' ? 'visibility:visible;' : '' ) . '"';
|
1160 |
$style = str_replace( ';"', $add_style, $style );
|
1161 |
+
$total_shares_html .= '<i ' . $style . ' title="Total Shares" class="heateorSssSharing heateorSssTCBackground">' . ( $total_share_count ? '<div class="heateorSssTotalShareCount" style="font-size: ' . ( $icon_height * 62/100 ) . 'px">' . $this->round_off_counts( intval( $total_share_count ) ) . '</div><div class="heateorSssTotalShareText" style="font-size: ' . ( $icon_height * 38/100 ) . 'px">' . ( $total_share_count < 2 ? __( 'Share', 'sassy-social-share' ) : __( 'Shares', 'sassy-social-share' ) ) . '</div>' : '' ) . '</i></li>';
|
1162 |
}
|
1163 |
|
1164 |
if ( $sharing_type == 'vertical' ) {
|
public/js/sassy-social-share-public.js
CHANGED
@@ -708,7 +708,7 @@ function heateorSssFBShareJSONCall(targetUrl, loopCounter, targetUrlsLength, dat
|
|
708 |
sharingCount += parseInt(jQuery(targetElement).attr('sss_st_count'));
|
709 |
}
|
710 |
if(sharingCount > 0){
|
711 |
-
if(jQuery(
|
712 |
jQuery(targetElement).html(heateorSssCalculateApproxCount(sharingCount)).css({'visibility': 'visible', 'display': 'block'});
|
713 |
jQuery(facebookBackground).attr('heateor-sss-fb-shares', sharingCount);
|
714 |
}else if(typeof jQuery(facebookBackground).attr('heateor-sss-fb-shares') != 'undefined'){
|
708 |
sharingCount += parseInt(jQuery(targetElement).attr('sss_st_count'));
|
709 |
}
|
710 |
if(sharingCount > 0){
|
711 |
+
if(typeof jQuery(facebookBackground).attr('heateor-sss-fb-shares') == 'undefined'){
|
712 |
jQuery(targetElement).html(heateorSssCalculateApproxCount(sharingCount)).css({'visibility': 'visible', 'display': 'block'});
|
713 |
jQuery(facebookBackground).attr('heateor-sss-fb-shares', sharingCount);
|
714 |
}else if(typeof jQuery(facebookBackground).attr('heateor-sss-fb-shares') != 'undefined'){
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.2
|
7 |
-
Stable tag: 3.1.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
|
@@ -117,6 +117,9 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
|
|
117 |
4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
|
118 |
|
119 |
== Changelog ==
|
|
|
|
|
|
|
120 |
= 3.1.3 =
|
121 |
* [Improvement] Improved share counts functionality
|
122 |
* [Improvement] Performance improvement
|
@@ -441,4 +444,7 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
|
|
441 |
= 3.1.3 =
|
442 |
* [Improvement] Improved share counts functionality
|
443 |
* [Improvement] Performance improvement
|
444 |
-
* [Bugfix] "Auto-adjust according to screen width" option was not working for horizontal sticky interface, in a few cases
|
|
|
|
|
|
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.2
|
7 |
+
Stable tag: 3.1.4
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
|
117 |
4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
|
118 |
|
119 |
== Changelog ==
|
120 |
+
= 3.1.4 =
|
121 |
+
* [Bugfix] Facebook share count was not getting updated with the share counts of other social networks, in a few cases
|
122 |
+
|
123 |
= 3.1.3 =
|
124 |
* [Improvement] Improved share counts functionality
|
125 |
* [Improvement] Performance improvement
|
444 |
= 3.1.3 =
|
445 |
* [Improvement] Improved share counts functionality
|
446 |
* [Improvement] Performance improvement
|
447 |
+
* [Bugfix] "Auto-adjust according to screen width" option was not working for horizontal sticky interface, in a few cases
|
448 |
+
|
449 |
+
= 3.1.4 =
|
450 |
+
* [Bugfix] Facebook share count was not getting updated with the share counts of other social networks, in a few cases
|
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: 3.1.
|
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.1.
|
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: 3.1.4
|
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.1.4' );
|
25 |
define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path(__FILE__) );
|
26 |
|
27 |
// plugin core class object
|