Version Description
- [Bugfix] Share counts suddenly stopped appearing because of deprecated Facebook share count API
- [Improvement] Admin UI improvement
Download this release
Release Info
Developer | Heateor |
Plugin | WordPress Social Sharing Plugin – Sassy Social Share |
Version | 2.4.1 |
Comparing to | |
See all releases |
Code changes from version 2.4 to 2.4.1
admin/class-sassy-social-share-admin.php
CHANGED
@@ -429,108 +429,7 @@ class Sassy_Social_Share_Admin {
|
|
429 |
die;
|
430 |
|
431 |
}
|
432 |
-
|
433 |
-
/**
|
434 |
-
* Ask reason to deactivate the plugin
|
435 |
-
*
|
436 |
-
* @since 2.0
|
437 |
-
*/
|
438 |
-
public function ask_reason_to_deactivate() {
|
439 |
-
|
440 |
-
global $pagenow;
|
441 |
-
if ( ! get_option( 'heateor_sss_feedback_submitted' ) && 'plugins.php' === $pagenow ) {
|
442 |
-
?>
|
443 |
-
<style type="text/css">
|
444 |
-
#heateor_sss_sharing_more_providers{position:fixed;top:45%;left:47%;background:#FAFAFA;width:650px;margin:-180px 0 0 -300px;z-index:10000000;text-shadow:none!important;height:394px}#heateor_sss_popup_bg{background:url(<?php echo plugins_url( '../images/transparent_bg.png', __FILE__ ) ?>);bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000}#heateor_sss_sharing_more_providers .title{font-size:14px!important;height:auto!important;background:#EC1B23!important;border-bottom:1px solid #D7D7D7!important;color:#fff;font-weight:700;letter-spacing:inherit;line-height:34px!important;padding:0!important;text-align:center;text-transform:none;margin:0!important;text-shadow:none!important;width:100%}#heateor_sss_sharing_more_providers *{font-family:Arial,Helvetica,sans-serif}#heateor_sss_sharing_more_content .form-table td{padding:4px 0;}#heateor_sss_sharing_more_providers #heateor_sss_sharing_more_content{background:#FAFAFA;border-radius:4px;color:#555;height:100%;width:100%}#heateor_sss_sharing_more_providers .filter{margin:0;padding:10px 0 0;position:relative;width:100%}#heateor_sss_sharing_more_providers .all-services{clear:both;height:421px;overflow:auto}#heateor_sss_sharing_more_content .all-services ul{margin:10px!important;overflow:hidden;list-style:none;padding-left:0!important;position:static!important;width:auto!important}#heateor_sss_sharing_more_content .all-services ul li{margin:0;background:0 0!important;float:left;width:33.3333%!important;text-align:left!important}#heateor_sss_sharing_more_providers .close-button img{margin:0;}#heateor_sss_sharing_more_providers .close-button.separated{background:0 0!important;border:none!important;box-shadow:none!important;width:auto!important;height:auto!important;z-index:1000}#heateor_sss_sharing_more_providers .close-button{height:auto!important;width:auto!important;left:auto!important;display:block!important;color:#555!important;cursor:pointer!important;font-size:29px!important;line-height:29px!important;margin:0!important;padding:0!important;position:absolute;right:-13px;top:-11px}#heateor_sss_sharing_more_providers .filter input.search{width:94%;display:block;float:none;font-family:"open sans","helvetica neue",helvetica,arial,sans-serif;font-weight:300;height:auto;line-height:inherit;margin:0 auto;padding:5px 8px 5px 10px;border:1px solid #ccc!important;color:#000;background:#FFF!important;font-size:16px!important;text-align:left!important}#heateor_sss_sharing_more_providers .footer-panel{background:#EC1B23!important;border-top:1px solid #D7D7D7;padding:6px 0;width:100%;color:#fff}#heateor_sss_sharing_more_providers .footer-panel p{background-color:transparent;top:0;text-align:left!important;color:#000;font-family:'helvetica neue',arial,helvetica,sans-serif;font-size:12px;line-height:1.2;margin:0!important;padding:0 6px!important;text-indent:0!important}#heateor_sss_sharing_more_providers .footer-panel a{color:#fff;text-decoration:none;font-weight:700;text-indent:0!important}#heateor_sss_sharing_more_providers .all-services ul li a{border-radius:3px;color:#666!important;display:block;font-size:18px;height:auto;line-height:28px;overflow:hidden;padding:8px;text-decoration:none!important;text-overflow:ellipsis;white-space:nowrap;border:none!important;text-indent:0!important;background:0 0!important;text-shadow:none;box-shadow:none!important}#heateor_sss_feedback_skip{background-color: #777;color:#fff;border: none;padding: 4px 28px;border-radius: 5px;cursor: pointer;}#heateor_sss_feedback_submit{color:#fff;background-color: #EC1B23; margin-right: 20px;border: none;padding: 4px 28px;border-radius: 5px;font-weight: bold;cursor: pointer}
|
445 |
-
@media screen and (max-width:783px) {#heateor_sss_sharing_more_providers{width:80%;left:60%;margin-left:-50%;text-shadow:none!important}}
|
446 |
-
</style>
|
447 |
-
<script type="text/javascript">
|
448 |
-
if (typeof String.prototype.trim!=="function") {String.prototype.trim=function() {return this.replace(/^\s+|\s+$/g,"")}}
|
449 |
-
|
450 |
-
jQuery(function() {
|
451 |
-
jQuery(document).on( 'click', 'tr[data-slug="sassy-social-share"] span.deactivate a', function(event) {
|
452 |
-
var deactivateUrl = jQuery(this).attr( 'href' );
|
453 |
-
event.preventDefault();
|
454 |
-
|
455 |
-
var heateorSssMoreSharingServicesHtml = '<h3 class="title ui-drag-handle"><?php _e( 'Please help us make the plugin better', 'sassy-social-share' ) ?></h3><button id="heateor_sss_sharing_popup_close" class="close-button separated"><img src="<?php echo plugins_url( '../images/close.png', __FILE__ ) ?>" /></button><div id="heateor_sss_sharing_more_content"><div class="all-services">';
|
456 |
-
heateorSssMoreSharingServicesHtml += '<div class="metabox-holder columns-2" id="post-body" style="width:100%"><div class="stuffbox" style="margin-bottom:0"><h3><label><?php echo sprintf(__('Please take a look at our <a href="%s" target="_blank">support documentation</a> before deactivating the plugin', 'sassy-social-share'), 'http:\/\/support.heateor.com');?></label></h3><h3><label><?php _e( 'I am deactivating the plugin because', 'sassy-social-share' );?></label></h3><div class="inside"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table"><tr><td colspan="2"><label for="heateor_sss_reason_1"><input id="heateor_sss_reason_1" name="heateor_sss_deactivate_reason" type="radio" value="1" /><?php _e("I no longer need the plugin", 'sassy-social-share' ); ?></label></td></tr><tr><td colspan="2"><label for="heateor_sss_reason_2"><input id="heateor_sss_reason_2" name="heateor_sss_deactivate_reason" type="radio" value="2" /><?php _e("I found a better plugin", 'sassy-social-share' ); ?></label></td></tr><tr><td colspan="2"><label for="heateor_sss_reason_3"><input id="heateor_sss_reason_3" name="heateor_sss_deactivate_reason" type="radio" value="3" /><?php _e("I only needed the plugin for a short period", 'sassy-social-share' ); ?></label></td></tr><tr><td colspan="2"><input id="heateor_sss_reason_4" name="heateor_sss_deactivate_reason" type="radio" value="4" /><label for="heateor_sss_reason_4"><?php _e("The plugin broke my site", 'sassy-social-share' ); ?></label></td></tr><tr><td colspan="2"><input id="heateor_sss_reason_5" name="heateor_sss_deactivate_reason" type="radio" value="5" /><label for="heateor_sss_reason_5"><?php _e("The plugin suddenly stopped working", 'sassy-social-share' ); ?></label></td></tr><tr><td colspan="2"><label for="heateor_sss_reason_6"><input id="heateor_sss_reason_6" name="heateor_sss_deactivate_reason" type="radio" value="6" /><?php _e("I couldn\'t understand how to make it work", 'sassy-social-share' ); ?></label></td></tr><tr><td colspan="2"><label for="heateor_sss_reason_7"><input id="heateor_sss_reason_7" name="heateor_sss_deactivate_reason" type="radio" value="7" /><?php _e("The plugin is great, but I need specific feature that you don\'t support", 'sassy-social-share' ); ?></label></td></tr><tr><td colspan="2"><input id="heateor_sss_reason_8" name="heateor_sss_deactivate_reason" type="radio" value="8" /><label for="heateor_sss_reason_8"><?php _e("The plugin is not working", 'sassy-social-share' ); ?></label></td></tr><tr><td colspan="2"><label for="heateor_sss_reason_9"><input id="heateor_sss_reason_9" name="heateor_sss_deactivate_reason" type="radio" value="9" /><?php _e("It\'s not what I was looking for", 'sassy-social-share' ); ?></label></td></tr><tr><td colspan="2"><label for="heateor_sss_reason_10"><input id="heateor_sss_reason_10" name="heateor_sss_deactivate_reason" type="radio" value="10" /><?php _e("The plugin didn\'t work as expected", 'sassy-social-share' ); ?></label></td></tr><tr><td colspan="2"><input id="heateor_sss_reason_11" name="heateor_sss_deactivate_reason" type="radio" value="11" /><label for="heateor_sss_reason_11"><?php _e("Other", 'sassy-social-share' ); ?></label></td></tr><tr><td colspan="2"><input type="button" id="heateor_sss_feedback_submit" value="Submit" /><input type="button" id="heateor_sss_feedback_skip" value="Skip" /></td><td class="heateor_sss_loading"></td></tr></table></div></div></div>';
|
457 |
-
var mainDiv = document.createElement( 'div' );
|
458 |
-
mainDiv.innerHTML = heateorSssMoreSharingServicesHtml + '</div><div class="footer-panel"><p></p></div></div>';
|
459 |
-
mainDiv.setAttribute( 'id', 'heateor_sss_sharing_more_providers' );
|
460 |
-
var bgDiv = document.createElement( 'div' );
|
461 |
-
bgDiv.setAttribute( 'id', 'heateor_sss_popup_bg' );
|
462 |
-
jQuery( 'body' ).append(mainDiv).append(bgDiv);
|
463 |
-
jQuery( 'input[name=heateor_sss_deactivate_reason]' ).click(function() {
|
464 |
-
jQuery( 'div#heateor_sss_reason_details' ).remove();
|
465 |
-
if (jQuery(this).val() == 2) {
|
466 |
-
var label = 'Plugin name and download link';
|
467 |
-
}else{
|
468 |
-
var label = 'Details (Optional)';
|
469 |
-
}
|
470 |
-
jQuery(this).parent().append( '<div id="heateor_sss_reason_details"><label>'+ label +'</label><div style="clear:both"></div><textarea id="heateor_sss_reason_details_textarea" rows="5" cols="50"></textarea></div>' );
|
471 |
-
});
|
472 |
-
jQuery( 'input#heateor_sss_feedback_skip' ).click(function() {
|
473 |
-
location.href = deactivateUrl;
|
474 |
-
});
|
475 |
-
jQuery( 'input#heateor_sss_feedback_submit' ).click(function() {
|
476 |
-
var reason = jQuery( 'input[name=heateor_sss_deactivate_reason]:checked' );
|
477 |
-
var details = typeof jQuery( '#heateor_sss_reason_details_textarea' ).val() != 'undefined' ? jQuery( '#heateor_sss_reason_details_textarea' ).val().trim() : '';
|
478 |
-
if (reason.length == 0) {
|
479 |
-
alert( '<?php _e("Please specify a vaild reason", "sassy-social-share") ?>' );
|
480 |
-
return false;
|
481 |
-
}
|
482 |
-
reason = reason.val().trim();
|
483 |
-
jQuery("#heateor_sss_feedback_submit").after( '<img style="margin-right:20px" src="<?php echo plugins_url( '../images/ajax_loader.gif', __FILE__ ) ?>" />' )
|
484 |
-
jQuery.ajax({
|
485 |
-
type: "GET",
|
486 |
-
dataType: "json",
|
487 |
-
url: '<?php echo get_admin_url() ?>admin-ajax.php',
|
488 |
-
data: {
|
489 |
-
action: "heateor_sss_send_feedback",
|
490 |
-
reason: reason,
|
491 |
-
details: details
|
492 |
-
},
|
493 |
-
success: function(e) {
|
494 |
-
location.href = deactivateUrl;
|
495 |
-
},
|
496 |
-
error: function(e) {
|
497 |
-
location.href = deactivateUrl;
|
498 |
-
}
|
499 |
-
});
|
500 |
-
});
|
501 |
-
document.getElementById( 'heateor_sss_sharing_popup_close' ).onclick = function() {
|
502 |
-
mainDiv.parentNode.removeChild(mainDiv);
|
503 |
-
bgDiv.parentNode.removeChild(bgDiv);
|
504 |
-
}
|
505 |
-
});
|
506 |
-
});
|
507 |
-
</script>
|
508 |
-
<?php
|
509 |
-
}
|
510 |
-
}
|
511 |
-
|
512 |
-
/**
|
513 |
-
* Send feedback to heateor server
|
514 |
-
*
|
515 |
-
* @since 2.0
|
516 |
-
*/
|
517 |
-
public function send_feedback() {
|
518 |
-
|
519 |
-
if ( isset( $_GET['reason'] ) && isset( $_GET['details'] ) ) {
|
520 |
-
$reason = trim( esc_attr( $_GET['reason'] ) );
|
521 |
-
$details = trim( esc_attr( $_GET['details'] ) );
|
522 |
-
$querystring = array(
|
523 |
-
'pid' => 8,
|
524 |
-
'r' => $reason,
|
525 |
-
'd' => $details
|
526 |
-
);
|
527 |
-
wp_remote_get( 'https://www.heateor.com/api/analytics/v1/save?' . http_build_query( $querystring ), array( 'timeout' => 15) );
|
528 |
-
add_option( 'heateor_sss_feedback_submitted', '1' );
|
529 |
-
}
|
530 |
-
die;
|
531 |
-
|
532 |
-
}
|
533 |
-
|
534 |
/**
|
535 |
* Show notices in admin area
|
536 |
*
|
429 |
die;
|
430 |
|
431 |
}
|
432 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
433 |
/**
|
434 |
* Show notices in admin area
|
435 |
*
|
admin/css/sassy-social-share-admin.css
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
@charset "utf-8";.clr,.heateor_sss_clear{clear:both}#heateor_sss_sl_curl{color:#900}h2.nav-tab-wrapper>ul>li{float:left;margin-left:5px}li.ui-tabs-active{border-bottom-color:#
|
2 |
.heateorSssAIMBackground{background-color: #fff}.heateorSssAmazonWishListBackground{background-color: #fff}.heateorSssAOLMailBackground{background-color: #2A2A2A}.heateorSssAppnetBackground{background-color: #5D5D5D}.heateorSssBaiduBackground{background-color: #fff}.heateorSssBalatarinBackground{background-color: #fff}.heateorSssBibSonomyBackground{background-color: #fff}.heateorSssBittyBrowserBackground{background-color: #EFEFEF}.heateorSssBlinklistBackground{background-color: #3D3C3B}.heateorSssBloggerPostBackground{background-color: #FDA352}.heateorSssBlogMarksBackground{background-color: #535353}.heateorSssBookmarksfrBackground{background-color: #E8EAD4}.heateorSssBoxnetBackground{background-color: #1A74B0}.heateorSssBuddyMarksBackground{background-color: #fff}.heateorSssCare2NewsBackground{background-color: #6EB43F}.heateorSssCiteULikeBackground{background-color: #2781CD}.heateorSssDiaryRuBackground{background-color: #E8D8C6}.heateorSssDiasporaBackground{background-color: #2E3436}.heateorSssDiHITTBackground{background-color: #FF6300}.heateorSssDiigoBackground{background-color: #4A8BCA}.heateorSssDZoneBackground{background-color: #fff}.heateorSssEvernoteBackground{background-color: #8BE056}.heateorSssFarkBackground{background-color: #555}
|
3 |
.heateorSssFlipboardBackground{background-color: #CC0000}.heateorSssFolkdBackground{background-color: #fff}.heateorSssGoogleBookmarksBackground{background-color: #CB0909}.heateorSssGoogleGmailBackground{background-color: #E5E5E5}.heateorSssHackerNewsBackground{background-color: #F60}.heateorSssHatenaBackground{background-color: #00A6DB}.heateorSssInstapaperBackground{background-color: #EDEDED}.heateorSssJamespotBackground{background-color: #FF9E2C}.heateorSssKakaoBackground{background-color: #FCB700}.heateorSssKindleItBackground{background-color: #2A2A2A}.heateorSssKnownBackground{background-color: #FFF}.heateorSssLineBackground{background-color: #00C300}.heateorSssLiveJournalBackground{background-color: #EDEDED}.heateorSssMailRuBackground{background-color: #356FAC}.heateorSssMendeleyBackground{background-color: #A70805}.heateorSssMeneameBackground{background-color: #FF7D12}.heateorSssMixiBackground{background-color: #EDEDED}.heateorSssMySpaceBackground{background-color: #2A2A2A}.heateorSssNetlogBackground{background-color: #2A2A2A}.heateorSssNetvouzBackground{background-color: #fff}.heateorSssNewsVineBackground{background-color: #055D00}.heateorSssNUjijBackground{background-color: #D40000}.heateorSssOdnoklassnikiBackground{background-color: #F2720C}.heateorSssOknotizieBackground{background-color: #fff}.heateorSssOutlookcomBackground{background-color: #fff}.heateorSssPinboardBackground{background-color: #1341DE}.heateorSssPlurkBackground{background-color: #CF682F}.heateorSssPocketBackground{background-color: #fff}.heateorSssPrintFriendlyBackground{background-color: #61D1D5}.heateorSssProtopageBookmarksBackground{background-color: #413FFF}.heateorSssPushaBackground{background-color: #0072B8}.heateorSssQzoneBackground{background-color: #2B82D9}.heateorSssRediffMyPageBackground{background-color: #D20000}.heateorSssRenrenBackground{background-color: #005EAC}.heateorSssSegnaloBackground{background-color: #fff}.heateorSssSinaWeiboBackground{background-color: #fff}.heateorSssSiteJotBackground{background-color: #fff}.heateorSssSlashdotBackground{background-color: #004242}.heateorSssStockTwitsBackground{background-color: #40576F}.heateorSssStumpediaBackground{background-color: #EDEDED}.heateorSssSvejoBackground{background-color: #FAFAFA}.heateorSssSymbalooFeedsBackground{background-color: #6DA8F7}.heateorSssTuentiBackground{background-color: #0075C9}.heateorSssTwiddlaBackground{background-color: #EDEDED}.heateorSssTypePadPostBackground{background-color: #2A2A2A}.heateorSssViadeoBackground{background-color: #2A2A2A}.heateorSssWaneloBackground{background-color: #fff}.heateorSssWebnewsBackground{background-color: #CC2512}.heateorSssWordPressBackground{background-color: #464646}.heateorSssWykopBackground{background-color: #367DA9}.heateorSssYahooMailBackground{background-color: #400090}.heateorSssYahooMessengerBackground{background-color: #400090}.heateorSssYoolinkBackground{background-color: #A2C538}.heateorSssYouMobBackground{background-color: #3B599D}.heateorSssYummlyshareBackground{width: 43px!important}.faq a{text-decoration: none;}.heateorSssCounterPreviewLeft,.heateorSssCounterVerticalPreviewLeft,.heateorSssCounterVerticalPreviewRight,.heateorSssCounterPreviewRight{float:left;text-align: center;font-family:sans-serif;width:30px;visibility: hidden;}.heateorSssCounterVerticalPreviewTop,.heateorSssCounterVerticalPreviewBottom,.heateorSssCounterPreviewTop,.heateorSssCounterPreviewBottom{text-align: center;line-height: 30px;height: 30px;visibility: hidden;clear: both}.heateorSssCounterVerticalPreviewInnerleft,.heateorSssCounterVerticalPreviewInnerright,.heateorSssCounterPreviewInnerleft,.heateorSssCounterPreviewInnerright{float: left;display: none;height: 100%;width:50%;text-align:center}.heateorSssCounterVerticalPreviewInnertop,.heateorSssCounterVerticalPreviewInnerbottom,.heateorSssCounterPreviewInnertop,.heateorSssCounterPreviewInnerbottom{clear: both;text-align:center;display: none;width:100%;height:30%}h2.nav-tab-wrapper{border-bottom: 1px solid #ccc;padding-bottom: 0;padding-left: 10px;}
|
1 |
+
@charset "utf-8";.clr,.heateor_sss_clear{clear:both}#heateor_sss_sl_curl{color:#900}h2.nav-tab-wrapper>ul>li{float:left;margin-left:5px}li.ui-tabs-active{border-bottom-color:#fff;border-bottom-style:solid;border-bottom-width:5px}li.ui-tabs-active a.nav-tab{background:0 0}.submit a{margin-left:20px}div.menu_containt_div>.stuffbox{width:763px}div.inside td,div.inside th{padding:7px}div.stuffbox h3{border-bottom:1px solid #eee}.heateorSssHorizontalSharingProviderContainer input,.heateorSssVerticalSharingProviderContainer input{margin-top: 0;float: left;}.heateorSssHorizontalSharingProviderContainer label,.heateorSssVerticalSharingProviderContainer label{float: left;margin:0 1px;}.heateorSssHorizontalSharingProviderContainer,.heateorSssVerticalSharingProviderContainer{font-size:11px;width:158px;float:left;margin-bottom: 4px}.heateor_sss_help_content{display:none;font-size:12px;color:#797979;line-height:15px;font-style:italic}.heateor_sss_help_content img{box-shadow:4px 4px 4px 4px #888;margin:8px 0}.heateor_sss_help_bubble{cursor:pointer;vertical-align:middle}#heateor_sss_rearrange li,#heateor_sss_vertical_rearrange li{cursor:move;float:left;display:block;margin:2px}#heateor_sss_sc_rearrange,#heateor_sss_sc_vertical_rearrange,#heateor_sss_rearrange,#heateor_sss_vertical_rearrange{margin:0}#heateor_sss_sc_rearrange li,#heateor_sss_sc_vertical_rearrange li{cursor:move;float:left;display:block;width:175px;margin:0}#heateor_sss_sc_rearrange label,#heateor_sss_sc_vertical_rearrange label{cursor:move}.heateor_sss_left_column{float:left;width:75%!important}.heateor_sss_right_column{float:left;width:23.5%;margin-left:10px}.heateor_sss_right_column a:focus{outline:0!important;border:none!important}.heateor_sss_right_column td{display:block;width:120px!important;margin:0}.heateor_sss_error{background-color:#FFFFE0;border:1px solid #E6DB55;padding:5px;margin:10px}input[type=text]{width:90%}.heateorSssLoginButton{background:url(../../images/social_icons.png) no-repeat;cursor:pointer;display:block;float:left;margin-right:10px}.heateorSssGoogleButton{background-position:-32px 0;width:32px;height:32px}.heateorSssFacebookButton{background-position:0 0;width:32px;height:32px}.heateorSssWordpressButton{background-position:0 -96px;width:32px;height:32px}.heateorSssLinkedinButton{background-position:-32px -32px;width:32px;height:32px}.heateorSssTwitterButton{background-position:0 -64px;width:32px;height:32px}.heateorSssSharingButton{display:block;background:url(../../images/sharing/sharing.png) no-repeat}.heateorSssHorizontalSharingButton,.heateorSssVerticalSharingButton{display:block}.heateorSssSharingDeliciousButton{background-position:0 0;width:32px;height:32px}.heateorSssSharingDiggButton{background-position:-32px 0;width:32px;height:32px}.heateorSssSharingEmailButton{background-position:-64px 0;width:32px;height:32px}.heateorSssSharingFacebookButton{background-position:-96px 0;width:32px;height:32px}.heateorSssSharingFloatitButton{background-position:0 -32px;width:32px;height:32px}.heateorSssSharingGoogleButton{background-position:-32px -32px;width:32px;height:32px}.heateorSssSharingLinkedinButton{background-position:-64px -32px;width:32px;height:32px}.heateorSssSharingPinterestButton{background-position:0 -64px;width:32px;height:32px}.heateorSssSharingPrintButton{background-position:-32px -64px;width:32px;height:32px}.heateorSssSharingRedditButton{background-position:-64px -64px;width:32px;height:32px}.heateorSssSharingStumbleuponButton{background-position:-96px -64px;width:32px;height:32px}.heateorSssSharingTumblrButton{background-position:0 -96px;width:32px;height:32px}.heateorSssSharingTwitterButton{background-position:-32px -96px;width:32px;height:32px}.heateorSssSharingVkontakteButton{background-position:-64px -96px;width:32px;height:32px}.heateorSssSharingYahooButton{background-position:-96px -96px;width:32px;height:32px}.heateorSssSharingXingButton{background-position:0 -128px;width:32px;height:32px}.heateorSssSharingWhatsappButton{background-position:-32px -128px;width:32px;height:32px}#heateor_sss_troubleshoot_notification{color:red}.heateorSssYummlyBackground{background-color:#E16120}.heateorSssFacebookBackground{background-color:#3C589A}.heateorSssBufferBackground{background-color:#000}.heateorSssDiggBackground{background-color:#006094}.heateorSssEmailBackground{background-color:#649A3F}.heateorSssFloatitBackground{background-color:#53BEEE}.heateorSssGoogleplusBackground{background-color:#dd4b39}.heateorSssLinkedinBackground{background-color:#0077B5}.heateorSssMoreBackground{background-color:#EE8E2D}.heateorSssPinterestBackground{background-color:#CC2329}.heateorSssPrintBackground{background-color:#FD6500}.heateorSssRedditBackground{background-color:#247CED}.heateorSssStumbleuponBackground{background-color:#EA4823}.heateorSssTumblrBackground{background-color:#29435D}.heateorSssTwitterBackground{background-color:#55acee}.heateorSssVkontakteBackground{background-color:#5E84AC}.heateorSssYahooBackground{background-color:#8F03CC}.heateorSssXingBackground{background-color:#00797D}.heateorSssDeliciousBackground{background-color:#53BEEE}.heateorSssInstagramBackground{background-color:#527FA4}.heateorSssWhatsappBackground{background-color:#55EB4C}.heateorSssLinkedinshareBackground{width:66px!important;}.heateorSssFacebookrecommendBackground{width:95px!important;}.heateorSssFacebookshareBackground{width:60px!important;}.heateorSssFacebooklikeBackground{width:50px!important;}.heateorSssTwittertweetBackground{width:57px!important;}.heateorSssGoogleplusoneBackground{width:35px!important;}.heateorSssGoogleplusshareBackground{width:57px!important;}.heateorSssPinterestpinBackground{width:44px!important;}.heateorSssBuffershareBackground{width:58px!important;}.heateorSssXingshareBackground{width:63px!important;}.heateorSssRedditbadgeBackground{width:124px!important;}.heateorSssStumbleuponbadgeBackground{width:79px!important;}.heateorSssSharingSvg{width:100%;height:100%}.ss_demo{background-color:#1D9AFC;padding:8px 0 10px;font-size:18px;border:0;color:#fff;border-radius:8px;margin:0 auto;font-weight:bolder;width:100%;cursor:pointer}.ss_demo:hover{background-color:#5BACEC}.heateorSssLinkedinshareSvg{background:url(../../images/sharing/linkedin_share.png) left no-repeat;border-radius: 0!important}.heateorSssFacebookshareSvg{background:url(../../images/sharing/facebook_share.png) left no-repeat;border-radius: 0!important}.heateorSssFacebooklikeSvg{background:url(../../images/sharing/facebook_like.png) left no-repeat;border-radius: 0!important}.heateorSssStumbleuponbadgeSvg{background:url(../../images/sharing/stumbleupon_badge.png) left no-repeat;border-radius: 0!important}.heateorSssRedditbadgeSvg{background:url(../../images/sharing/reddit_badge.png) left no-repeat;border-radius: 0!important}.heateorSssYummlyshareSvg{background:url(../../images/sharing/yummly_share.png) left no-repeat;border-radius: 0!important}.heateorSssBuffershareSvg{background:url(../../images/sharing/buffer_share.png) left no-repeat;border-radius: 0!important}.heateorSssXingshareSvg{background:url(../../images/sharing/xing_share.png) left no-repeat;border-radius: 0!important}.heateorSssPinterestpinSvg{background:url(../../images/sharing/pinterest_pin.png) left no-repeat;border-radius: 0!important}.heateorSssGoogleplusshareSvg{background:url(../../images/sharing/google_plus_share.png) left no-repeat;border-radius: 0!important}.heateorSssGoogleplusoneSvg{background:url(../../images/sharing/google_plusone.png) left no-repeat;border-radius: 0!important}.heateorSssTwittertweetSvg{background:url(../../images/sharing/twitter_tweet.png) left no-repeat;border-radius: 0!important}.heateorSssFacebookrecommendSvg{background:url(../../images/sharing/facebook_recommend.png) left no-repeat;border-radius:0!important;}
|
2 |
.heateorSssAIMBackground{background-color: #fff}.heateorSssAmazonWishListBackground{background-color: #fff}.heateorSssAOLMailBackground{background-color: #2A2A2A}.heateorSssAppnetBackground{background-color: #5D5D5D}.heateorSssBaiduBackground{background-color: #fff}.heateorSssBalatarinBackground{background-color: #fff}.heateorSssBibSonomyBackground{background-color: #fff}.heateorSssBittyBrowserBackground{background-color: #EFEFEF}.heateorSssBlinklistBackground{background-color: #3D3C3B}.heateorSssBloggerPostBackground{background-color: #FDA352}.heateorSssBlogMarksBackground{background-color: #535353}.heateorSssBookmarksfrBackground{background-color: #E8EAD4}.heateorSssBoxnetBackground{background-color: #1A74B0}.heateorSssBuddyMarksBackground{background-color: #fff}.heateorSssCare2NewsBackground{background-color: #6EB43F}.heateorSssCiteULikeBackground{background-color: #2781CD}.heateorSssDiaryRuBackground{background-color: #E8D8C6}.heateorSssDiasporaBackground{background-color: #2E3436}.heateorSssDiHITTBackground{background-color: #FF6300}.heateorSssDiigoBackground{background-color: #4A8BCA}.heateorSssDZoneBackground{background-color: #fff}.heateorSssEvernoteBackground{background-color: #8BE056}.heateorSssFarkBackground{background-color: #555}
|
3 |
.heateorSssFlipboardBackground{background-color: #CC0000}.heateorSssFolkdBackground{background-color: #fff}.heateorSssGoogleBookmarksBackground{background-color: #CB0909}.heateorSssGoogleGmailBackground{background-color: #E5E5E5}.heateorSssHackerNewsBackground{background-color: #F60}.heateorSssHatenaBackground{background-color: #00A6DB}.heateorSssInstapaperBackground{background-color: #EDEDED}.heateorSssJamespotBackground{background-color: #FF9E2C}.heateorSssKakaoBackground{background-color: #FCB700}.heateorSssKindleItBackground{background-color: #2A2A2A}.heateorSssKnownBackground{background-color: #FFF}.heateorSssLineBackground{background-color: #00C300}.heateorSssLiveJournalBackground{background-color: #EDEDED}.heateorSssMailRuBackground{background-color: #356FAC}.heateorSssMendeleyBackground{background-color: #A70805}.heateorSssMeneameBackground{background-color: #FF7D12}.heateorSssMixiBackground{background-color: #EDEDED}.heateorSssMySpaceBackground{background-color: #2A2A2A}.heateorSssNetlogBackground{background-color: #2A2A2A}.heateorSssNetvouzBackground{background-color: #fff}.heateorSssNewsVineBackground{background-color: #055D00}.heateorSssNUjijBackground{background-color: #D40000}.heateorSssOdnoklassnikiBackground{background-color: #F2720C}.heateorSssOknotizieBackground{background-color: #fff}.heateorSssOutlookcomBackground{background-color: #fff}.heateorSssPinboardBackground{background-color: #1341DE}.heateorSssPlurkBackground{background-color: #CF682F}.heateorSssPocketBackground{background-color: #fff}.heateorSssPrintFriendlyBackground{background-color: #61D1D5}.heateorSssProtopageBookmarksBackground{background-color: #413FFF}.heateorSssPushaBackground{background-color: #0072B8}.heateorSssQzoneBackground{background-color: #2B82D9}.heateorSssRediffMyPageBackground{background-color: #D20000}.heateorSssRenrenBackground{background-color: #005EAC}.heateorSssSegnaloBackground{background-color: #fff}.heateorSssSinaWeiboBackground{background-color: #fff}.heateorSssSiteJotBackground{background-color: #fff}.heateorSssSlashdotBackground{background-color: #004242}.heateorSssStockTwitsBackground{background-color: #40576F}.heateorSssStumpediaBackground{background-color: #EDEDED}.heateorSssSvejoBackground{background-color: #FAFAFA}.heateorSssSymbalooFeedsBackground{background-color: #6DA8F7}.heateorSssTuentiBackground{background-color: #0075C9}.heateorSssTwiddlaBackground{background-color: #EDEDED}.heateorSssTypePadPostBackground{background-color: #2A2A2A}.heateorSssViadeoBackground{background-color: #2A2A2A}.heateorSssWaneloBackground{background-color: #fff}.heateorSssWebnewsBackground{background-color: #CC2512}.heateorSssWordPressBackground{background-color: #464646}.heateorSssWykopBackground{background-color: #367DA9}.heateorSssYahooMailBackground{background-color: #400090}.heateorSssYahooMessengerBackground{background-color: #400090}.heateorSssYoolinkBackground{background-color: #A2C538}.heateorSssYouMobBackground{background-color: #3B599D}.heateorSssYummlyshareBackground{width: 43px!important}.faq a{text-decoration: none;}.heateorSssCounterPreviewLeft,.heateorSssCounterVerticalPreviewLeft,.heateorSssCounterVerticalPreviewRight,.heateorSssCounterPreviewRight{float:left;text-align: center;font-family:sans-serif;width:30px;visibility: hidden;}.heateorSssCounterVerticalPreviewTop,.heateorSssCounterVerticalPreviewBottom,.heateorSssCounterPreviewTop,.heateorSssCounterPreviewBottom{text-align: center;line-height: 30px;height: 30px;visibility: hidden;clear: both}.heateorSssCounterVerticalPreviewInnerleft,.heateorSssCounterVerticalPreviewInnerright,.heateorSssCounterPreviewInnerleft,.heateorSssCounterPreviewInnerright{float: left;display: none;height: 100%;width:50%;text-align:center}.heateorSssCounterVerticalPreviewInnertop,.heateorSssCounterVerticalPreviewInnerbottom,.heateorSssCounterPreviewInnertop,.heateorSssCounterPreviewInnerbottom{clear: both;text-align:center;display: none;width:100%;height:30%}h2.nav-tab-wrapper{border-bottom: 1px solid #ccc;padding-bottom: 0;padding-left: 10px;}
|
includes/class-sassy-social-share.php
CHANGED
@@ -143,10 +143,6 @@ class Sassy_Social_Share {
|
|
143 |
add_action( 'wp_ajax_heateor_sss_clear_shorturl_cache', array( $plugin_admin, 'clear_shorturl_cache' ) );
|
144 |
// ajax function to clear share counts cache
|
145 |
add_action( 'wp_ajax_heateor_sss_clear_share_count_cache', array( $plugin_admin, 'clear_share_count_cache' ) );
|
146 |
-
// ask reason to deactivate the plugin
|
147 |
-
add_action( 'admin_footer', array( $plugin_admin, 'ask_reason_to_deactivate' ) );
|
148 |
-
// ajax function to send plugin feedback
|
149 |
-
add_action( 'wp_ajax_heateor_sss_send_feedback', array( $plugin_admin, 'send_feedback' ) );
|
150 |
// show notices
|
151 |
add_action( 'admin_notices', array( $plugin_admin, 'show_notices' ) );
|
152 |
|
143 |
add_action( 'wp_ajax_heateor_sss_clear_shorturl_cache', array( $plugin_admin, 'clear_shorturl_cache' ) );
|
144 |
// ajax function to clear share counts cache
|
145 |
add_action( 'wp_ajax_heateor_sss_clear_share_count_cache', array( $plugin_admin, 'clear_share_count_cache' ) );
|
|
|
|
|
|
|
|
|
146 |
// show notices
|
147 |
add_action( 'admin_notices', array( $plugin_admin, 'show_notices' ) );
|
148 |
|
public/class-sassy-social-share-public.php
CHANGED
@@ -1358,7 +1358,7 @@ class Sassy_Social_Share_Public {
|
|
1358 |
foreach ( $sharing_networks as $provider ) {
|
1359 |
switch ( $provider ) {
|
1360 |
case 'facebook':
|
1361 |
-
$url = 'http://
|
1362 |
break;
|
1363 |
case 'twitter':
|
1364 |
$url = $twitter_count_api . $target_url;
|
@@ -1402,9 +1402,9 @@ class Sassy_Social_Share_Public {
|
|
1402 |
}
|
1403 |
switch ( $provider ) {
|
1404 |
case 'facebook':
|
1405 |
-
if ( ! empty( $body
|
1406 |
-
$response_data[$target_url]['facebook'] = $body
|
1407 |
-
$share_count_transient['facebook'] = $body
|
1408 |
} else {
|
1409 |
$response_data[$target_url]['facebook'] = 0;
|
1410 |
}
|
1358 |
foreach ( $sharing_networks as $provider ) {
|
1359 |
switch ( $provider ) {
|
1360 |
case 'facebook':
|
1361 |
+
$url = 'http://graph.facebook.com/?id=' . $target_url;
|
1362 |
break;
|
1363 |
case 'twitter':
|
1364 |
$url = $twitter_count_api . $target_url;
|
1402 |
}
|
1403 |
switch ( $provider ) {
|
1404 |
case 'facebook':
|
1405 |
+
if ( isset( $body -> share ) && ! empty( $body -> share -> share_count ) ) {
|
1406 |
+
$response_data[$target_url]['facebook'] = $body -> share -> share_count;
|
1407 |
+
$share_count_transient['facebook'] = $body -> share -> share_count;
|
1408 |
} else {
|
1409 |
$response_data[$target_url]['facebook'] = 0;
|
1410 |
}
|
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
|
7 |
-
Stable tag: 2.4
|
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.4 =
|
119 |
* [Bugfix] Plugin was not picking the homepage url correctly if it was different from the WordPress installation directory
|
120 |
* [New] Included StockTwits and Instagram in sharing networks
|
@@ -261,4 +265,8 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
|
|
261 |
* [Bugfix] Plugin was not picking the homepage url correctly if it was different from the WordPress installation directory
|
262 |
* [New] Included StockTwits and Instagram in sharing networks
|
263 |
* [New] Included official Facebook share button in sharing networks
|
264 |
-
* [Improvement] Using 'wp_add_inline_script' function to load inline Javascript with external Javascript file
|
|
|
|
|
|
|
|
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
|
7 |
+
Stable tag: 2.4.1
|
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.4.1 =
|
119 |
+
* [Bugfix] Share counts suddenly stopped appearing because of deprecated Facebook share count API
|
120 |
+
* [Improvement] Admin UI improvement
|
121 |
+
|
122 |
= 2.4 =
|
123 |
* [Bugfix] Plugin was not picking the homepage url correctly if it was different from the WordPress installation directory
|
124 |
* [New] Included StockTwits and Instagram in sharing networks
|
265 |
* [Bugfix] Plugin was not picking the homepage url correctly if it was different from the WordPress installation directory
|
266 |
* [New] Included StockTwits and Instagram in sharing networks
|
267 |
* [New] Included official Facebook share button in sharing networks
|
268 |
+
* [Improvement] Using 'wp_add_inline_script' function to load inline Javascript with external Javascript file
|
269 |
+
|
270 |
+
= 2.4.1 =
|
271 |
+
* [Bugfix] Share counts suddenly stopped appearing because of deprecated Facebook share count API
|
272 |
+
* [Improvement] Admin UI improvement
|
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.4
|
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.4' );
|
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.4.1
|
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.4.1' );
|
25 |
define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path(__FILE__) );
|
26 |
|
27 |
// plugin core class object
|