Version Description
- [New] Compatible with Recover Social Share Counts add-on
- [Bugfix] Vkontakte share count was not working in some cases
Download this release
Release Info
Developer | Heateor |
Plugin | WordPress Social Sharing Plugin – Sassy Social Share |
Version | 2.5.3 |
Comparing to | |
See all releases |
Code changes from version 2.5.2 to 2.5.3
- public/class-sassy-social-share-public.php +115 -101
- public/js/sassy-social-share-public.js +24 -17
- readme.txt +10 -2
- sassy-social-share.php +2 -2
public/class-sassy-social-share-public.php
CHANGED
@@ -1385,129 +1385,143 @@ class Sassy_Social_Share_Public {
|
|
1385 |
}
|
1386 |
$transient_expiration_time = $multiplier * $this->options['share_count_cache_refresh_count'];
|
1387 |
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
case 'delicious':
|
1402 |
-
$url = 'http://feeds.delicious.com/v2/json/urlinfo/data?url=' . $target_url;
|
1403 |
-
break;
|
1404 |
-
case 'pinterest':
|
1405 |
-
$url = 'http://api.pinterest.com/v1/urls/count.json?callback=heateorSss&url=' . $target_url;
|
1406 |
-
break;
|
1407 |
-
case 'buffer':
|
1408 |
-
$url = 'https://api.bufferapp.com/1/links/shares.json?url=' . $target_url;
|
1409 |
-
break;
|
1410 |
-
case 'stumbleupon':
|
1411 |
-
$url = 'http://www.stumbleupon.com/services/1.01/badge.getinfo?url=' . $target_url;
|
1412 |
-
break;
|
1413 |
-
case 'google_plus':
|
1414 |
-
$url = 'http://share.yandex.ru/gpp.xml?url=' . $target_url;
|
1415 |
-
break;
|
1416 |
-
case 'vkontakte':
|
1417 |
-
$url = 'https://vk.com/share.php?act=count&url=' . $target_url;
|
1418 |
-
break;
|
1419 |
-
default:
|
1420 |
-
$url = '';
|
1421 |
-
}
|
1422 |
-
if ( $url == '' ) { continue; }
|
1423 |
-
$response = wp_remote_get( $url, array( 'timeout' => 15 ) );
|
1424 |
-
if ( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ) {
|
1425 |
-
$body = wp_remote_retrieve_body( $response );
|
1426 |
-
if ( $provider == 'pinterest' ) {
|
1427 |
-
$body = str_replace( array( 'heateorSss(', ')' ), '', $body );
|
1428 |
-
}
|
1429 |
-
if ( ! in_array( $provider, array( 'google_plus', 'vkontakte' ) ) ) {
|
1430 |
-
$body = json_decode( $body );
|
1431 |
-
}
|
1432 |
switch ( $provider ) {
|
1433 |
case 'twitter':
|
1434 |
-
|
1435 |
-
$response_data[$target_url]['twitter'] = $body -> count;
|
1436 |
-
$share_count_transient['twitter'] = $body -> count;
|
1437 |
-
} else {
|
1438 |
-
$response_data[$target_url]['twitter'] = 0;
|
1439 |
-
}
|
1440 |
break;
|
1441 |
case 'linkedin':
|
1442 |
-
|
1443 |
-
$response_data[$target_url]['linkedin'] = $body -> count;
|
1444 |
-
$share_count_transient['linkedin'] = $body -> count;
|
1445 |
-
} else {
|
1446 |
-
$response_data[$target_url]['linkedin'] = 0;
|
1447 |
-
}
|
1448 |
break;
|
1449 |
case 'reddit':
|
1450 |
-
$
|
1451 |
-
if ( ! empty( $body -> data -> children ) ) {
|
1452 |
-
$children = $body -> data -> children;
|
1453 |
-
if ( ! empty( $children[0] -> data -> score ) ) {
|
1454 |
-
$response_data[$target_url]['reddit'] = $children[0] -> data -> score;
|
1455 |
-
$share_count_transient['reddit'] = $children[0] -> data -> score;
|
1456 |
-
}
|
1457 |
-
}
|
1458 |
break;
|
1459 |
case 'delicious':
|
1460 |
-
|
1461 |
-
$response_data[$target_url]['delicious'] = $body[0] -> total_posts;
|
1462 |
-
$share_count_transient['delicious'] = $body[0] -> total_posts;
|
1463 |
-
} else {
|
1464 |
-
$response_data[$target_url]['delicious'] = 0;
|
1465 |
-
}
|
1466 |
break;
|
1467 |
case 'pinterest':
|
1468 |
-
|
1469 |
-
$response_data[$target_url]['pinterest'] = $body -> count;
|
1470 |
-
$share_count_transient['pinterest'] = $body -> count;
|
1471 |
-
} else {
|
1472 |
-
$response_data[$target_url]['pinterest'] = 0;
|
1473 |
-
}
|
1474 |
break;
|
1475 |
case 'buffer':
|
1476 |
-
|
1477 |
-
$response_data[$target_url]['buffer'] = $body -> shares;
|
1478 |
-
$share_count_transient['buffer'] = $body -> shares;
|
1479 |
-
} else {
|
1480 |
-
$response_data[$target_url]['buffer'] = 0;
|
1481 |
-
}
|
1482 |
break;
|
1483 |
case 'stumbleupon':
|
1484 |
-
|
1485 |
-
$response_data[$target_url]['stumbleupon'] = $body -> result -> views;
|
1486 |
-
$share_count_transient['stumbleupon'] = $body -> result -> views;
|
1487 |
-
} else {
|
1488 |
-
$response_data[$target_url]['stumbleupon'] = 0;
|
1489 |
-
}
|
1490 |
break;
|
1491 |
case 'google_plus':
|
1492 |
-
|
1493 |
-
$response_data[$target_url]['google_plus'] = $body;
|
1494 |
-
$share_count_transient['google_plus'] = (int) str_replace( '"', '', $body );
|
1495 |
-
} else {
|
1496 |
-
$response_data[$target_url]['google_plus'] = 0;
|
1497 |
-
}
|
1498 |
break;
|
1499 |
case 'vkontakte':
|
1500 |
-
|
1501 |
-
$response_data[$target_url]['vkontakte'] = $body;
|
1502 |
-
$share_count_transient['vkontakte'] = (int) str_replace(array( 'VK.Share.count(0, ', ' );' ), '', $body);
|
1503 |
-
} else {
|
1504 |
-
$response_data[$target_url]['vkontakte'] = 0;
|
1505 |
-
}
|
1506 |
break;
|
|
|
|
|
1507 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1508 |
}
|
1509 |
}
|
1510 |
-
|
|
|
1511 |
}
|
1512 |
do_action( 'heateor_sss_share_count_ajax_hook', $response_data );
|
1513 |
|
1385 |
}
|
1386 |
$transient_expiration_time = $multiplier * $this->options['share_count_cache_refresh_count'];
|
1387 |
|
1388 |
+
$target_urls_array = array();
|
1389 |
+
$target_urls_array[] = $target_urls;
|
1390 |
+
$target_urls_array = apply_filters( 'heateor_sss_target_share_urls', $target_urls_array );
|
1391 |
+
$share_count_transient_array = array();
|
1392 |
+
if ( in_array( 'facebook', $sharing_networks ) ) {
|
1393 |
+
$ajax_response['facebook_urls'] = $target_urls_array;
|
1394 |
+
}
|
1395 |
+
|
1396 |
+
foreach ( $target_urls_array as $target_urls ) {
|
1397 |
+
$share_count_transients = array();
|
1398 |
+
foreach ( $target_urls as $target_url ) {
|
1399 |
+
$share_count_transient = array();
|
1400 |
+
foreach ( $sharing_networks as $provider ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1401 |
switch ( $provider ) {
|
1402 |
case 'twitter':
|
1403 |
+
$url = $twitter_count_api . $target_url;
|
|
|
|
|
|
|
|
|
|
|
1404 |
break;
|
1405 |
case 'linkedin':
|
1406 |
+
$url = 'http://www.linkedin.com/countserv/count/share?url=' . $target_url . '&format=json';
|
|
|
|
|
|
|
|
|
|
|
1407 |
break;
|
1408 |
case 'reddit':
|
1409 |
+
$url = 'http://www.reddit.com/api/info.json?url=' . $target_url;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1410 |
break;
|
1411 |
case 'delicious':
|
1412 |
+
$url = 'http://feeds.delicious.com/v2/json/urlinfo/data?url=' . $target_url;
|
|
|
|
|
|
|
|
|
|
|
1413 |
break;
|
1414 |
case 'pinterest':
|
1415 |
+
$url = 'http://api.pinterest.com/v1/urls/count.json?callback=heateorSss&url=' . $target_url;
|
|
|
|
|
|
|
|
|
|
|
1416 |
break;
|
1417 |
case 'buffer':
|
1418 |
+
$url = 'https://api.bufferapp.com/1/links/shares.json?url=' . $target_url;
|
|
|
|
|
|
|
|
|
|
|
1419 |
break;
|
1420 |
case 'stumbleupon':
|
1421 |
+
$url = 'http://www.stumbleupon.com/services/1.01/badge.getinfo?url=' . $target_url;
|
|
|
|
|
|
|
|
|
|
|
1422 |
break;
|
1423 |
case 'google_plus':
|
1424 |
+
$url = 'http://share.yandex.ru/gpp.xml?url=' . $target_url;
|
|
|
|
|
|
|
|
|
|
|
1425 |
break;
|
1426 |
case 'vkontakte':
|
1427 |
+
$url = 'https://vk.com/share.php?act=count&url=' . $target_url;
|
|
|
|
|
|
|
|
|
|
|
1428 |
break;
|
1429 |
+
default:
|
1430 |
+
$url = '';
|
1431 |
}
|
1432 |
+
if ( $url == '' ) { continue; }
|
1433 |
+
$response = wp_remote_get( $url, array( 'timeout' => 15 ) );
|
1434 |
+
if ( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ) {
|
1435 |
+
$body = wp_remote_retrieve_body( $response );
|
1436 |
+
if ( $provider == 'pinterest' ) {
|
1437 |
+
$body = str_replace( array( 'heateorSss(', ')' ), '', $body );
|
1438 |
+
}
|
1439 |
+
if ( ! in_array( $provider, array( 'google_plus', 'vkontakte' ) ) ) {
|
1440 |
+
$body = json_decode( $body );
|
1441 |
+
}
|
1442 |
+
switch ( $provider ) {
|
1443 |
+
case 'twitter':
|
1444 |
+
if ( ! empty( $body -> count ) ) {
|
1445 |
+
$share_count_transient['twitter'] = $body -> count;
|
1446 |
+
} else {
|
1447 |
+
$share_count_transient['twitter'] = 0;
|
1448 |
+
}
|
1449 |
+
break;
|
1450 |
+
case 'linkedin':
|
1451 |
+
if ( ! empty( $body -> count ) ) {
|
1452 |
+
$share_count_transient['linkedin'] = $body -> count;
|
1453 |
+
} else {
|
1454 |
+
$share_count_transient['linkedin'] = 0;
|
1455 |
+
}
|
1456 |
+
break;
|
1457 |
+
case 'reddit':
|
1458 |
+
$share_count_transient['reddit'] = 0;
|
1459 |
+
if ( ! empty( $body -> data -> children ) ) {
|
1460 |
+
$children = $body -> data -> children;
|
1461 |
+
if ( ! empty( $children[0] -> data -> score ) ) {
|
1462 |
+
$share_count_transient['reddit'] = $children[0] -> data -> score;
|
1463 |
+
}
|
1464 |
+
}
|
1465 |
+
break;
|
1466 |
+
case 'delicious':
|
1467 |
+
if ( ! empty( $body[0] -> total_posts ) ) {
|
1468 |
+
$share_count_transient['delicious'] = $body[0] -> total_posts;
|
1469 |
+
} else {
|
1470 |
+
$share_count_transient['delicious'] = 0;
|
1471 |
+
}
|
1472 |
+
break;
|
1473 |
+
case 'pinterest':
|
1474 |
+
if ( ! empty( $body -> count ) ) {
|
1475 |
+
$share_count_transient['pinterest'] = $body -> count;
|
1476 |
+
} else {
|
1477 |
+
$share_count_transient['pinterest'] = 0;
|
1478 |
+
}
|
1479 |
+
break;
|
1480 |
+
case 'buffer':
|
1481 |
+
if ( ! empty( $body -> shares ) ) {
|
1482 |
+
$share_count_transient['buffer'] = $body -> shares;
|
1483 |
+
} else {
|
1484 |
+
$share_count_transient['buffer'] = 0;
|
1485 |
+
}
|
1486 |
+
break;
|
1487 |
+
case 'stumbleupon':
|
1488 |
+
if ( ! empty( $body -> result ) && isset( $body -> result -> views ) ) {
|
1489 |
+
$share_count_transient['stumbleupon'] = $body -> result -> views;
|
1490 |
+
} else {
|
1491 |
+
$share_count_transient['stumbleupon'] = 0;
|
1492 |
+
}
|
1493 |
+
break;
|
1494 |
+
case 'google_plus':
|
1495 |
+
if ( ! empty( $body ) ) {
|
1496 |
+
$share_count_transient['google_plus'] = (int) str_replace( '"', '', $body );
|
1497 |
+
} else {
|
1498 |
+
$share_count_transient['google_plus'] = 0;
|
1499 |
+
}
|
1500 |
+
break;
|
1501 |
+
case 'vkontakte':
|
1502 |
+
if ( ! empty( $body ) ) {
|
1503 |
+
$share_count_transient['vkontakte'] = (int) str_replace(array( 'VK.Share.count(0, ', ' );' ), '', $body);
|
1504 |
+
} else {
|
1505 |
+
$share_count_transient['vkontakte'] = 0;
|
1506 |
+
}
|
1507 |
+
break;
|
1508 |
+
}
|
1509 |
+
}
|
1510 |
+
}
|
1511 |
+
$share_count_transients[] = $share_count_transient;
|
1512 |
+
}
|
1513 |
+
$share_count_transient_array[] = $share_count_transients;
|
1514 |
+
}
|
1515 |
+
$final_share_count_transient = array();
|
1516 |
+
for ( $i = 0; $i < count( $target_urls_array[0] ); $i++ ) {
|
1517 |
+
$final_share_count_transient = $share_count_transient_array[0][$i];
|
1518 |
+
for ( $j = 1; $j < count( $share_count_transient_array ); $j++ ) {
|
1519 |
+
foreach ( $final_share_count_transient as $key => $val ) {
|
1520 |
+
$final_share_count_transient[$key] += $share_count_transient_array[$j][$i][$key];
|
1521 |
}
|
1522 |
}
|
1523 |
+
$response_data[$target_urls_array[0][$i]] = $final_share_count_transient;
|
1524 |
+
set_transient( 'heateor_sss_share_count_' . $this->get_share_count_transient_id( $target_urls_array[0][$i] ), $final_share_count_transient, $transient_expiration_time );
|
1525 |
}
|
1526 |
do_action( 'heateor_sss_share_count_ajax_hook', $response_data );
|
1527 |
|
public/js/sassy-social-share-public.js
CHANGED
@@ -564,20 +564,17 @@ function heateorSssGetSharingCounts(){
|
|
564 |
},
|
565 |
success: function(data, textStatus, XMLHttpRequest){
|
566 |
if(data.status == 1){
|
|
|
|
|
|
|
567 |
for(var i in data.message){
|
568 |
-
if(data.facebook){
|
569 |
-
heateorSssFacebookTargetUrls.push(i);
|
570 |
-
}
|
571 |
var sharingContainers = jQuery("div[heateor-sss-data-href='"+i+"']");
|
572 |
|
573 |
jQuery(sharingContainers).each(function(){
|
574 |
var totalCount = 0;
|
575 |
for(var j in data.message[i]){
|
576 |
if(j == 'google_plus'){
|
577 |
-
var sharingCount = data.message[i][j]
|
578 |
-
sharingCount = parseInt(sharingCount) || 0;
|
579 |
-
}else if(j == 'vkontakte'){
|
580 |
-
var sharingCount = parseInt(data.message[i][j].replace('VK.Share.count(0, ', '').replace(');', ''));
|
581 |
}else{
|
582 |
var sharingCount = data.message[i][j];
|
583 |
}
|
@@ -614,27 +611,37 @@ function heateorSssGetSharingCounts(){
|
|
614 |
|
615 |
function heateorSssFetchFacebookShares(targetUrls){
|
616 |
var loopCounter = 0;
|
617 |
-
for(var
|
618 |
-
|
619 |
-
|
|
|
|
|
620 |
}
|
621 |
}
|
622 |
|
623 |
-
function heateorSssFBShareJSONCall(targetUrl, loopCounter, targetUrlsLength) {
|
624 |
jQuery.getJSON('//graph.facebook.com/?id=' + targetUrl, function(data){
|
625 |
if(data.share && data.share.share_count){
|
626 |
-
var sharingContainers = jQuery("div[heateor-sss-data-href='"+
|
627 |
|
628 |
jQuery(sharingContainers).each(function(){
|
629 |
var targetElement = jQuery(this).find('.heateor_sss_facebook_count');
|
|
|
630 |
var sharingCount = parseInt(data.share.share_count);
|
631 |
|
632 |
if(jQuery(targetElement).attr('sss_st_count') !== undefined){
|
633 |
sharingCount += parseInt(jQuery(targetElement).attr('sss_st_count'));
|
634 |
}
|
635 |
|
636 |
-
jQuery(targetElement).
|
637 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
638 |
if ( ( typeof heateorSssReduceHorizontalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sss_horizontal_sharing') ) || ( typeof heateorSssReduceVerticalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sss_vertical_sharing') ) ) {
|
639 |
jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('float', 'left');
|
640 |
}
|
@@ -656,8 +663,8 @@ function heateorSssFBShareJSONCall(targetUrl, loopCounter, targetUrlsLength) {
|
|
656 |
if(loopCounter == targetUrlsLength){
|
657 |
setTimeout(function(){
|
658 |
var facebookShares = {};
|
659 |
-
for(var i in heateorSssFacebookTargetUrls){
|
660 |
-
var sharingContainers = jQuery("div[heateor-sss-data-href='"+heateorSssFacebookTargetUrls[i]+"']");
|
661 |
jQuery(sharingContainers).each(function(){
|
662 |
var facebookCountElement = jQuery(this).find('.heateor_sss_facebook_count');
|
663 |
var facebookCountElementBg = jQuery(this).find('i.heateorSssFacebookBackground');
|
@@ -668,7 +675,7 @@ function heateorSssFBShareJSONCall(targetUrl, loopCounter, targetUrlsLength) {
|
|
668 |
var startingCount = parseInt(jQuery(facebookCountElement).attr('sss_st_count').trim());
|
669 |
shareCount = Math.abs(shareCount - startingCount);
|
670 |
}
|
671 |
-
facebookShares[heateorSssFacebookTargetUrls[i]] = shareCount;
|
672 |
return;
|
673 |
}
|
674 |
});
|
564 |
},
|
565 |
success: function(data, textStatus, XMLHttpRequest){
|
566 |
if(data.status == 1){
|
567 |
+
if(data.facebook){
|
568 |
+
heateorSssFacebookTargetUrls = data.facebook_urls;
|
569 |
+
}
|
570 |
for(var i in data.message){
|
|
|
|
|
|
|
571 |
var sharingContainers = jQuery("div[heateor-sss-data-href='"+i+"']");
|
572 |
|
573 |
jQuery(sharingContainers).each(function(){
|
574 |
var totalCount = 0;
|
575 |
for(var j in data.message[i]){
|
576 |
if(j == 'google_plus'){
|
577 |
+
var sharingCount = parseInt(data.message[i][j]) || 0;
|
|
|
|
|
|
|
578 |
}else{
|
579 |
var sharingCount = data.message[i][j];
|
580 |
}
|
611 |
|
612 |
function heateorSssFetchFacebookShares(targetUrls){
|
613 |
var loopCounter = 0;
|
614 |
+
for(var i in targetUrls){
|
615 |
+
for(var j in targetUrls[i]){
|
616 |
+
loopCounter++;
|
617 |
+
heateorSssFBShareJSONCall(targetUrls[i][j], loopCounter, targetUrls[0].length*targetUrls.length, targetUrls[0][j]);
|
618 |
+
}
|
619 |
}
|
620 |
}
|
621 |
|
622 |
+
function heateorSssFBShareJSONCall(targetUrl, loopCounter, targetUrlsLength, dataHref) {
|
623 |
jQuery.getJSON('//graph.facebook.com/?id=' + targetUrl, function(data){
|
624 |
if(data.share && data.share.share_count){
|
625 |
+
var sharingContainers = jQuery("div[heateor-sss-data-href='"+dataHref+"']");
|
626 |
|
627 |
jQuery(sharingContainers).each(function(){
|
628 |
var targetElement = jQuery(this).find('.heateor_sss_facebook_count');
|
629 |
+
var facebookBackground = jQuery(this).find('i.heateorSssFacebookBackground');
|
630 |
var sharingCount = parseInt(data.share.share_count);
|
631 |
|
632 |
if(jQuery(targetElement).attr('sss_st_count') !== undefined){
|
633 |
sharingCount += parseInt(jQuery(targetElement).attr('sss_st_count'));
|
634 |
}
|
635 |
|
636 |
+
if(jQuery(targetElement).text().trim() == '' || jQuery(targetElement).text().trim() == ' '){
|
637 |
+
jQuery(targetElement).html(heateorSssCalculateApproxCount(sharingCount)).css({'visibility': 'visible', 'display': 'block'});
|
638 |
+
jQuery(facebookBackground).attr('heateor-sss-fb-shares', sharingCount);
|
639 |
+
}else if(typeof jQuery(facebookBackground).attr('heateor-sss-fb-shares') != 'undefined'){
|
640 |
+
var tempShareCount = parseInt(jQuery(facebookBackground).attr('heateor-sss-fb-shares'));
|
641 |
+
jQuery(facebookBackground).attr('heateor-sss-fb-shares', sharingCount + tempShareCount);
|
642 |
+
jQuery(targetElement).html(heateorSssCalculateApproxCount(sharingCount + tempShareCount));
|
643 |
+
}
|
644 |
+
|
645 |
if ( ( typeof heateorSssReduceHorizontalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sss_horizontal_sharing') ) || ( typeof heateorSssReduceVerticalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sss_vertical_sharing') ) ) {
|
646 |
jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('float', 'left');
|
647 |
}
|
663 |
if(loopCounter == targetUrlsLength){
|
664 |
setTimeout(function(){
|
665 |
var facebookShares = {};
|
666 |
+
for(var i in heateorSssFacebookTargetUrls[0]){
|
667 |
+
var sharingContainers = jQuery("div[heateor-sss-data-href='"+heateorSssFacebookTargetUrls[0][i]+"']");
|
668 |
jQuery(sharingContainers).each(function(){
|
669 |
var facebookCountElement = jQuery(this).find('.heateor_sss_facebook_count');
|
670 |
var facebookCountElementBg = jQuery(this).find('i.heateorSssFacebookBackground');
|
675 |
var startingCount = parseInt(jQuery(facebookCountElement).attr('sss_st_count').trim());
|
676 |
shareCount = Math.abs(shareCount - startingCount);
|
677 |
}
|
678 |
+
facebookShares[heateorSssFacebookTargetUrls[0][i]] = shareCount;
|
679 |
return;
|
680 |
}
|
681 |
});
|
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 plugin, social media plugin, social media share, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, social buttons, share wordpress, wordpress plugin share, share social plugin, facebook like, twitter tweet, google plus one, google +1, google plus share, googleplus share, googleplus one, social bookmark, bookmark, bookmarking, social bookmarking, social bookmarks, responsive share buttons, responsive sharing, mobile share buttons, mobile sharing
|
5 |
Requires at least: 2.5.0
|
6 |
Tested up to: 4.6.1
|
7 |
-
Stable tag: 2.5.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
|
@@ -115,6 +115,10 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
|
|
115 |
4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
|
116 |
|
117 |
== Changelog ==
|
|
|
|
|
|
|
|
|
118 |
= 2.5.2 =
|
119 |
* [Bugfix] Myspace sharing was not working
|
120 |
* [Bugfix] Myspace was not appearing in "More" share icons popup
|
@@ -343,4 +347,8 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
|
|
343 |
= 2.5.2 =
|
344 |
* [Bugfix] Myspace sharing was not working
|
345 |
* [Bugfix] Myspace was not appearing in "More" share icons popup
|
346 |
-
* [Bugfix] Colon (:) in post/page title was appearing encoded in Twitter sharing
|
|
|
|
|
|
|
|
4 |
Tags: social share, social sharing, social plugin, social media plugin, social media share, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, social buttons, share wordpress, wordpress plugin share, share social plugin, facebook like, twitter tweet, google plus one, google +1, google plus share, googleplus share, googleplus one, social bookmark, bookmark, bookmarking, social bookmarking, social bookmarks, responsive share buttons, responsive sharing, mobile share buttons, mobile sharing
|
5 |
Requires at least: 2.5.0
|
6 |
Tested up to: 4.6.1
|
7 |
+
Stable tag: 2.5.3
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
|
115 |
4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
|
116 |
|
117 |
== Changelog ==
|
118 |
+
= 2.5.3 =
|
119 |
+
* [New] Compatible with <a href="https://www.heateor.com/recover-social-share-counts" target="_blank">Recover Social Share Counts</a> add-on
|
120 |
+
* [Bugfix] Vkontakte share count was not working in some cases
|
121 |
+
|
122 |
= 2.5.2 =
|
123 |
* [Bugfix] Myspace sharing was not working
|
124 |
* [Bugfix] Myspace was not appearing in "More" share icons popup
|
347 |
= 2.5.2 =
|
348 |
* [Bugfix] Myspace sharing was not working
|
349 |
* [Bugfix] Myspace was not appearing in "More" share icons popup
|
350 |
+
* [Bugfix] Colon (:) in post/page title was appearing encoded in Twitter sharing
|
351 |
+
|
352 |
+
= 2.5.3 =
|
353 |
+
* [New] Compatible with <a href="https://www.heateor.com/recover-social-share-counts" target="_blank">Recover Social Share Counts</a> add-on
|
354 |
+
* [Bugfix] Vkontakte share count was not working in some 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: 2.5.
|
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.
|
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.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', '2.5.3' );
|
25 |
define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path(__FILE__) );
|
26 |
|
27 |
// plugin core class object
|