WordPress Social Sharing Plugin – Sassy Social Share - Version 1.7

Version Description

  • [Bugfix] Website title was appearing in homepage content in a few cases
  • [Bugfix] Fixed a PHP notice filling error log when enabled WordPress debugging
  • [Bugfix] Share counts were not appearing in a few cases
  • [Improvement] Share counts are now being cached (using WordPress transients) resulting in faster page loading with share counts enabled
  • [Improvement] Twitter logo background color updated to match Twitter's brand guidelines
  • [New] Added option to clear Bit.ly shorturl cache
  • [New] Added option to clear share counts cache
  • [New] Added option to specify time duration to refresh share count cache
Download this release

Release Info

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

Code changes from version 1.6 to 1.7

admin/class-sassy-social-share-admin.php CHANGED
@@ -346,7 +346,7 @@ class Sassy_Social_Share_Admin {
346
  public function admin_scripts() {
347
 
348
  ?>
349
- <script type="text/javascript">var heateorSssWebsiteUrl = '<?php echo site_url() ?>', heateorSssHelpBubbleTitle = "<?php echo __( 'Click to show help', 'sassy-social-share' ) ?>", heateorSssHelpBubbleCollapseTitle = "<?php echo __( 'Click to hide help', 'sassy-social-share' ) ?>"</script>
350
  <?php
351
  wp_enqueue_script( 'heateor_sss_admin_script', plugins_url( 'js/sassy-social-share-admin.js', __FILE__ ), array( 'jquery', 'jquery-ui-tabs' ), $this->version );
352
 
@@ -404,4 +404,30 @@ class Sassy_Social_Share_Admin {
404
 
405
  }
406
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
407
  }
346
  public function admin_scripts() {
347
 
348
  ?>
349
+ <script type="text/javascript">var heateorSssWebsiteUrl = '<?php echo site_url() ?>', heateorSssHelpBubbleTitle = "<?php echo __( 'Click to show help', 'sassy-social-share' ) ?>", heateorSssHelpBubbleCollapseTitle = "<?php echo __( 'Click to hide help', 'sassy-social-share' ) ?>", heateorSssSharingAjaxUrl = '<?php echo get_admin_url() ?>admin-ajax.php';</script>
350
  <?php
351
  wp_enqueue_script( 'heateor_sss_admin_script', plugins_url( 'js/sassy-social-share-admin.js', __FILE__ ), array( 'jquery', 'jquery-ui-tabs' ), $this->version );
352
 
404
 
405
  }
406
 
407
+ /**
408
+ * Clear Bitly shorturl cache
409
+ *
410
+ * @since 1.7
411
+ */
412
+ public function clear_shorturl_cache() {
413
+
414
+ global $wpdb;
415
+ $wpdb->query( "DELETE FROM $wpdb->postmeta WHERE meta_key = '_heateor_sss_bitly_url'" );
416
+ die;
417
+
418
+ }
419
+
420
+ /**
421
+ * Clear share counts cache
422
+ *
423
+ * @since 1.7
424
+ */
425
+ public function clear_share_count_cache() {
426
+
427
+ global $wpdb;
428
+ $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '_transient_heateor_sss_share_count_%'" );
429
+ die;
430
+
431
+ }
432
+
433
  }
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:#f1f1f1;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:#2886EF}.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:#14B2C8}.heateorSssVkontakteBackground{background-color:#5E84AC}.heateorSssYahooBackground{background-color:#8F03CC}.heateorSssXingBackground{background-color:#00797D}.heateorSssDeliciousBackground{background-color:#53BEEE}.heateorSssWhatsappBackground{background-color:#55EB4C}.heateorSssLinkedinshareBackground{width:66px!important;}.heateorSssFacebookrecommendBackground{width:95px!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}.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}.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:#f1f1f1;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:#2886EF}.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}.heateorSssWhatsappBackground{background-color:#55EB4C}.heateorSssLinkedinshareBackground{width:66px!important;}.heateorSssFacebookrecommendBackground{width:95px!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}.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}.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;}
admin/js/sassy-social-share-options.js CHANGED
@@ -22,6 +22,38 @@ function heateorSssUpdateSharingPreviewHover(e, property, targetId) {
22
  }
23
  }
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  function heateorSssHorizontalSharingOptionsToggle(e) {
26
  jQuery(e).is(":checked") ? jQuery("#heateor_sss_horizontal_sharing_options").css("display", "table-row-group") : jQuery("#heateor_sss_horizontal_sharing_options").css("display", "none")
27
  }
22
  }
23
  }
24
 
25
+ function heateorSssClearShorturlCache(){
26
+ jQuery('#shorturl_cache_loading').css('display', 'block');
27
+ jQuery.ajax({
28
+ type: 'GET',
29
+ dataType: 'json',
30
+ url: heateorSssSharingAjaxUrl,
31
+ data: {
32
+ action: 'heateor_sss_clear_shorturl_cache'
33
+ },
34
+ success: function(data, textStatus, XMLHttpRequest){
35
+ jQuery('#shorturl_cache_loading').css('display', 'none');
36
+ jQuery('#heateor_sss_cache_clear_message').css('display', 'block');
37
+ }
38
+ });
39
+ }
40
+
41
+ function heateorSssClearShareCountCache(){
42
+ jQuery('#share_count_cache_loading').css('display', 'block');
43
+ jQuery.ajax({
44
+ type: 'GET',
45
+ dataType: 'json',
46
+ url: heateorSssSharingAjaxUrl,
47
+ data: {
48
+ action: 'heateor_sss_clear_share_count_cache'
49
+ },
50
+ success: function(data, textStatus, XMLHttpRequest){
51
+ jQuery('#share_count_cache_loading').css('display', 'none');
52
+ jQuery('#heateor_sss_share_count_cache_clear_message').css('display', 'block');
53
+ }
54
+ });
55
+ }
56
+
57
  function heateorSssHorizontalSharingOptionsToggle(e) {
58
  jQuery(e).is(":checked") ? jQuery("#heateor_sss_horizontal_sharing_options").css("display", "table-row-group") : jQuery("#heateor_sss_horizontal_sharing_options").css("display", "none")
59
  }
admin/partials/sassy-social-share-options-page.php CHANGED
@@ -1529,6 +1529,56 @@ defined('ABSPATH') or die("Cheating........Uh!!");
1529
  </div>
1530
  </div>
1531
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1532
  <div class="stuffbox">
1533
  <h3><label><?php _e( 'Url shortener', 'sassy-social-share' );?></label></h3>
1534
  <div class="inside">
@@ -1546,7 +1596,7 @@ defined('ABSPATH') or die("Cheating........Uh!!");
1546
  <tr class="heateor_sss_help_content" id="heateor_sss_surl_enable_help_cont">
1547
  <td colspan="2">
1548
  <div>
1549
- <?php _e( 'Allows for shortened URLs to be used when sharing content if a shortening plugin is installed', 'sassy-social-share' ) ?>
1550
  </div>
1551
  </td>
1552
  </tr>
@@ -1606,6 +1656,25 @@ defined('ABSPATH') or die("Cheating........Uh!!");
1606
  </div>
1607
  </td>
1608
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1609
  </table>
1610
  </div>
1611
  </div>
@@ -1752,6 +1821,7 @@ defined('ABSPATH') or die("Cheating........Uh!!");
1752
  <p><a href="http://support.heateor.com/how-to-customize-the-look-of-total-share-counts" target="_blank"><?php _e( 'How to customize the look of total share counts?', 'sassy-social-share' ) ?></a></p>
1753
  <p><a href="http://support.heateor.com/how-to-customize-the-look-of-individual-share-counts" target="_blank"><?php _e( 'How to customize the look of individual share counts?', 'sassy-social-share' ) ?></a></p>
1754
  <p><a href="http://support.heateor.com/how-to-show-whatsapp-icon-only-on-mobile-devices" target="_blank"><?php _e( 'How to show Whatsapp icon only on mobile devices?', 'sassy-social-share' ) ?></a></p>
 
1755
  </div>
1756
  </div>
1757
 
1529
  </div>
1530
  </div>
1531
 
1532
+ <div class="stuffbox">
1533
+ <h3><label><?php _e( 'Share Count Cache', 'sassy-social-share' ) ?></label></h3>
1534
+ <div class="inside">
1535
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1536
+ <tr>
1537
+ <th>
1538
+ <img id="heateor_sss_share_count_cache_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1539
+ <label for="heateor_sss_share_count_cache"><?php _e( "Refresh Share Count cache every", 'sassy-social-share' ) ?></label>
1540
+ </th>
1541
+ <td>
1542
+ <input style="width: 50px;" id="heateor_sss_share_count_cache" name="heateor_sss[share_count_cache_refresh_count]" type="text" value="<?php echo $options['share_count_cache_refresh_count']; ?>" />
1543
+ <select name="heateor_sss[share_count_cache_refresh_unit]">
1544
+ <option value="seconds" <?php echo $options['share_count_cache_refresh_unit'] == 'seconds' ? 'selected' : ''; ?>>Second(s)</option>
1545
+ <option value="minutes" <?php echo $options['share_count_cache_refresh_unit'] == 'minutes' ? 'selected' : ''; ?>>Minute(s)</option>
1546
+ <option value="hours" <?php echo $options['share_count_cache_refresh_unit'] == 'hours' ? 'selected' : ''; ?>>Hour(s)</option>
1547
+ <option value="days" <?php echo $options['share_count_cache_refresh_unit'] == 'days' ? 'selected' : ''; ?>>Day(s)</option>
1548
+ </select>
1549
+ </td>
1550
+ </tr>
1551
+
1552
+ <tr class="heateor_sss_help_content" id="heateor_sss_share_count_cache_help_cont">
1553
+ <td colspan="2">
1554
+ <div>
1555
+ <?php _e( 'Frequent cache refreshing results in slower loading of pages with share counts enabled', 'sassy-social-share' ) ?>
1556
+ </div>
1557
+ </td>
1558
+ </tr>
1559
+
1560
+ <tr>
1561
+ <th style="width:215px">
1562
+ <img id="heateor_sss_clear_share_count_cache_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url('../../images/info.png', __FILE__) ?>" />
1563
+ <input type="button" class="button-primary" value="<?php _e( 'Clear Share Counts Cache', 'sassy-social-share') ?>" onclick="heateorSssClearShareCountCache()" />
1564
+ </th>
1565
+ <td>
1566
+ <img src="<?php echo plugins_url('../../images/ajax_loader.gif', __FILE__) ?>" id="share_count_cache_loading" style="display:none" />
1567
+ <div id="heateor_sss_share_count_cache_clear_message" style="color:green;display:none;"><?php _e('Share Counts cache cleared successfully.', 'sassy-social-share' ); ?></div>
1568
+ </td>
1569
+ </tr>
1570
+
1571
+ <tr class="heateor_sss_help_content" id="heateor_sss_clear_share_count_cache_help_cont">
1572
+ <td colspan="2">
1573
+ <div>
1574
+ <?php _e( 'Use this to clear cached share counts', 'sassy-social-share' ) ?>
1575
+ </div>
1576
+ </td>
1577
+ </tr>
1578
+ </table>
1579
+ </div>
1580
+ </div>
1581
+
1582
  <div class="stuffbox">
1583
  <h3><label><?php _e( 'Url shortener', 'sassy-social-share' );?></label></h3>
1584
  <div class="inside">
1596
  <tr class="heateor_sss_help_content" id="heateor_sss_surl_enable_help_cont">
1597
  <td colspan="2">
1598
  <div>
1599
+ <?php _e( 'Use default short url permalinks without the need for any additional plugin', 'sassy-social-share' ) ?>
1600
  </div>
1601
  </td>
1602
  </tr>
1656
  </div>
1657
  </td>
1658
  </tr>
1659
+
1660
+ <tr>
1661
+ <th>
1662
+ <img id="heateor_sss_clear_shorturl_cache_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url('../../images/info.png', __FILE__) ?>" />
1663
+ <input type="button" class="button-primary" value="<?php _e('Clear Bitly Cache', 'sassy-social-share') ?>" onclick="heateorSssClearShorturlCache()" />
1664
+ </th>
1665
+ <td>
1666
+ <img src="<?php echo plugins_url('../../images/ajax_loader.gif', __FILE__) ?>" id="shorturl_cache_loading" style="display:none" />
1667
+ <div id="heateor_sss_cache_clear_message" style="color:green;display:none;"><?php _e('ShortUrl cache cleared successfully.', 'sassy-social-share' ); ?></div>
1668
+ </td>
1669
+ </tr>
1670
+
1671
+ <tr class="heateor_sss_help_content" id="heateor_sss_clear_shorturl_cache_help_cont">
1672
+ <td colspan="2">
1673
+ <div>
1674
+ <?php _e('Use this to delete short urls saved in database. Handy, if urls of your website have been changed but short urls are still being generated for old urls.', 'sassy-social-share' ) ?>
1675
+ </div>
1676
+ </td>
1677
+ </tr>
1678
  </table>
1679
  </div>
1680
  </div>
1821
  <p><a href="http://support.heateor.com/how-to-customize-the-look-of-total-share-counts" target="_blank"><?php _e( 'How to customize the look of total share counts?', 'sassy-social-share' ) ?></a></p>
1822
  <p><a href="http://support.heateor.com/how-to-customize-the-look-of-individual-share-counts" target="_blank"><?php _e( 'How to customize the look of individual share counts?', 'sassy-social-share' ) ?></a></p>
1823
  <p><a href="http://support.heateor.com/how-to-show-whatsapp-icon-only-on-mobile-devices" target="_blank"><?php _e( 'How to show Whatsapp icon only on mobile devices?', 'sassy-social-share' ) ?></a></p>
1824
+ <p><a href="http://support.heateor.com/how-to-hide-arrow-after-floating-sharing-bar" target="_blank"><?php _e( 'How to hide arrow after floating sharing bar?', 'sassy-social-share' ) ?></a></p>
1825
  </div>
1826
  </div>
1827
 
includes/class-sassy-social-share-shortcodes.php CHANGED
@@ -104,6 +104,8 @@ class Sassy_Social_Share_Shortcodes {
104
  if ( $type == 'standard' && $title != '' ) {
105
  $html .= '<div style="font-weight:bold">' . ucfirst( $title ) . '</div>';
106
  }
 
 
107
  $html .= $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $target_url, $type == 'standard' ? 'horizontal' : 'vertical', $count, $total_shares == 'ON' ? 1 : 0 );
108
  $html .= '</div>';
109
  if ( $count || $total_shares == 'ON' ) {
104
  if ( $type == 'standard' && $title != '' ) {
105
  $html .= '<div style="font-weight:bold">' . ucfirst( $title ) . '</div>';
106
  }
107
+ // share count transient ID
108
+ $this->public_class_object->share_count_transient_id = '';
109
  $html .= $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $target_url, $type == 'standard' ? 'horizontal' : 'vertical', $count, $total_shares == 'ON' ? 1 : 0 );
110
  $html .= '</div>';
111
  if ( $count || $total_shares == 'ON' ) {
includes/class-sassy-social-share-widgets.php CHANGED
@@ -102,6 +102,8 @@ class Sassy_Social_Share_Standard_Widget extends WP_Widget {
102
  }
103
  $short_url = $this->public_class_object->get_short_url( $sharing_url, $post_id );
104
 
 
 
105
  echo $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $sharing_url, 'horizontal', isset( $instance['show_counts'] ), isset( $instance['total_shares'] ) );
106
 
107
  if ( ! empty( $instance['after_widget_content'] ) ) {
@@ -286,6 +288,8 @@ class Sassy_Social_Share_Floating_Widget extends WP_Widget {
286
  $short_url = $this->public_class_object->get_short_url( $sharing_url, $post_id );
287
 
288
  //echo $before_widget;
 
 
289
  echo $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $sharing_url, 'vertical', isset( $instance['show_counts'] ), isset( $instance['total_shares'] ) );
290
 
291
  echo '</div>';
102
  }
103
  $short_url = $this->public_class_object->get_short_url( $sharing_url, $post_id );
104
 
105
+ // share count transient ID
106
+ $this->public_class_object->share_count_transient_id = '';
107
  echo $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $sharing_url, 'horizontal', isset( $instance['show_counts'] ), isset( $instance['total_shares'] ) );
108
 
109
  if ( ! empty( $instance['after_widget_content'] ) ) {
288
  $short_url = $this->public_class_object->get_short_url( $sharing_url, $post_id );
289
 
290
  //echo $before_widget;
291
+ // share count transient ID
292
+ $this->public_class_object->share_count_transient_id = '';
293
  echo $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $sharing_url, 'vertical', isset( $instance['show_counts'] ), isset( $instance['total_shares'] ) );
294
 
295
  echo '</div>';
includes/class-sassy-social-share.php CHANGED
@@ -139,6 +139,10 @@ class Sassy_Social_Share {
139
  // update the options in all the old blogs
140
  add_action( 'update_option_heateor_sss', array( $plugin_admin, 'update_old_blogs' ) );
141
  }
 
 
 
 
142
 
143
  }
144
 
139
  // update the options in all the old blogs
140
  add_action( 'update_option_heateor_sss', array( $plugin_admin, 'update_old_blogs' ) );
141
  }
142
+ // ajax function to clear bitly short url cache
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
 
147
  }
148
 
languages/sassy-social-share.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Sassy Social Share\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-12-30 06:37+0530\n"
6
- "PO-Revision-Date: 2015-12-30 06:37+0530\n"
7
  "Last-Translator: The Champ <lordofthechamps@gmail.com>\n"
8
  "Language-Team: Heateor <hello@heateor.com>\n"
9
  "Language: \n"
@@ -83,8 +83,8 @@ msgid "Miscellaneous"
83
  msgstr ""
84
 
85
  #: ../admin/partials/sassy-social-share-options-page.php:23
86
- #: ../admin/partials/sassy-social-share-options-page.php:1714
87
- #: ../admin/partials/sassy-social-share-options-page.php:1716
88
  msgid "Shortcode & Widget"
89
  msgstr ""
90
 
@@ -93,7 +93,7 @@ msgid "Troubleshooter"
93
  msgstr ""
94
 
95
  #: ../admin/partials/sassy-social-share-options-page.php:25
96
- #: ../admin/partials/sassy-social-share-options-page.php:1745
97
  msgid "FAQ"
98
  msgstr ""
99
 
@@ -207,7 +207,7 @@ msgstr ""
207
  #: ../admin/partials/sassy-social-share-options-page.php:257
208
  #: ../admin/partials/sassy-social-share-options-page.php:565
209
  #: ../admin/partials/sassy-social-share-options-page.php:1197
210
- #: ../includes/class-sassy-social-share-widgets.php:392
211
  msgid "Background Color"
212
  msgstr ""
213
 
@@ -254,7 +254,7 @@ msgstr ""
254
  #: ../admin/partials/sassy-social-share-options-page.php:614
255
  #: ../admin/partials/sassy-social-share-options-page.php:835
256
  #: ../admin/partials/sassy-social-share-options-page.php:1219
257
- #: ../includes/class-sassy-social-share-widgets.php:378
258
  msgid "Left"
259
  msgstr ""
260
 
@@ -267,7 +267,7 @@ msgstr ""
267
  #: ../admin/partials/sassy-social-share-options-page.php:618
268
  #: ../admin/partials/sassy-social-share-options-page.php:837
269
  #: ../admin/partials/sassy-social-share-options-page.php:1220
270
- #: ../includes/class-sassy-social-share-widgets.php:379
271
  msgid "Right"
272
  msgstr ""
273
 
@@ -639,120 +639,160 @@ msgid "If enabled, plugin options will get deleted when plugin is deleted/uninst
639
  msgstr ""
640
 
641
  #: ../admin/partials/sassy-social-share-options-page.php:1533
642
- msgid "Url shortener"
643
  msgstr ""
644
 
645
  #: ../admin/partials/sassy-social-share-options-page.php:1539
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
646
  msgid "Use shortlinks already installed"
647
  msgstr ""
648
 
649
- #: ../admin/partials/sassy-social-share-options-page.php:1549
650
- msgid "Allows for shortened URLs to be used when sharing content if a shortening plugin is installed"
651
  msgstr ""
652
 
653
- #: ../admin/partials/sassy-social-share-options-page.php:1557
654
  msgid "Enable bit.ly url shortener for sharing"
655
  msgstr ""
656
 
657
- #: ../admin/partials/sassy-social-share-options-page.php:1567
658
  msgid "Master control to enable bit.ly url shortening for sharing"
659
  msgstr ""
660
 
661
- #: ../admin/partials/sassy-social-share-options-page.php:1575
662
  msgid "bit.ly username"
663
  msgstr ""
664
 
665
- #: ../admin/partials/sassy-social-share-options-page.php:1585
666
  #, php-format
667
  msgid "Login to your bit.ly account and navigate to <a href=\"%s\" target=\"_blank\">this link</a> to get bit.ly username"
668
  msgstr ""
669
 
670
- #: ../admin/partials/sassy-social-share-options-page.php:1594
671
  msgid "bit.ly API Key"
672
  msgstr ""
673
 
674
- #: ../admin/partials/sassy-social-share-options-page.php:1604
675
  #, php-format
676
  msgid "Login to your bit.ly account and navigate to <a href=\"%s\" target=\"_blank\">this link</a> to get your API key"
677
  msgstr ""
678
 
679
- #: ../admin/partials/sassy-social-share-options-page.php:1614
680
- #: ../admin/partials/sassy-social-share-options-page.php:1620
 
 
 
 
 
 
 
 
 
 
 
 
681
  msgid "Language"
682
  msgstr ""
683
 
684
- #: ../admin/partials/sassy-social-share-options-page.php:1630
685
  #, php-format
686
  msgid "Enter the code of the language you want to use for like buttons. You can find the language codes at <a href=\"%s\" target=\"_blank\">this link</a>. Leave it empty for default language(English)"
687
  msgstr ""
688
 
689
- #: ../admin/partials/sassy-social-share-options-page.php:1639
690
  msgid "Username in sharing"
691
  msgstr ""
692
 
693
- #: ../admin/partials/sassy-social-share-options-page.php:1645
694
  msgid "Twitter username (without @)"
695
  msgstr ""
696
 
697
- #: ../admin/partials/sassy-social-share-options-page.php:1655
698
- #: ../admin/partials/sassy-social-share-options-page.php:1674
699
  msgid "Provided username will be appended after the content being shared as \"via @USERNAME\". Leave empty if you do not want any username in the content being shared."
700
  msgstr ""
701
 
702
- #: ../admin/partials/sassy-social-share-options-page.php:1664
703
  msgid "Buffer username (without @)"
704
  msgstr ""
705
 
706
- #: ../admin/partials/sassy-social-share-options-page.php:1683
707
- #: ../admin/partials/sassy-social-share-options-page.php:1689
708
  msgid "Custom CSS"
709
  msgstr ""
710
 
711
- #: ../admin/partials/sassy-social-share-options-page.php:1699
712
  msgid "You can specify any additional CSS rules (without &lt;style&gt; tag)"
713
  msgstr ""
714
 
715
- #: ../admin/partials/sassy-social-share-options-page.php:1726
716
  msgid "Facebook Sharing Troubleshooter"
717
  msgstr ""
718
 
719
- #: ../admin/partials/sassy-social-share-options-page.php:1731
720
  msgid "If Facebook sharing is not working fine, click at the following link and enter the problematic url (where Facebook sharing is not working properly) of your website in the text field:"
721
  msgstr ""
722
 
723
- #: ../admin/partials/sassy-social-share-options-page.php:1747
724
  msgid "How can I show share counts of my website rather than of individual pages/posts?"
725
  msgstr ""
726
 
727
- #: ../admin/partials/sassy-social-share-options-page.php:1748
728
  msgid "How can I disable sharing on particular page/post?"
729
  msgstr ""
730
 
731
- #: ../admin/partials/sassy-social-share-options-page.php:1749
732
  msgid "How can I specify minimum sharing count for sharing networks?"
733
  msgstr ""
734
 
735
- #: ../admin/partials/sassy-social-share-options-page.php:1750
736
  msgid "How to share specific page?"
737
  msgstr ""
738
 
739
- #: ../admin/partials/sassy-social-share-options-page.php:1751
740
  msgid "How to integrate Google Analytics with sharing?"
741
  msgstr ""
742
 
743
- #: ../admin/partials/sassy-social-share-options-page.php:1752
744
  msgid "How to customize the look of total share counts?"
745
  msgstr ""
746
 
747
- #: ../admin/partials/sassy-social-share-options-page.php:1753
748
  msgid "How to customize the look of individual share counts?"
749
  msgstr ""
750
 
751
- #: ../admin/partials/sassy-social-share-options-page.php:1754
752
  msgid "How to show Whatsapp icon only on mobile devices?"
753
  msgstr ""
754
 
755
- #: ../admin/partials/sassy-social-share-options-page.php:1764
 
 
 
 
756
  msgid "Save Changes"
757
  msgstr ""
758
 
@@ -829,76 +869,76 @@ msgstr ""
829
  msgid "Standard sharing widget. Let your website users share content on popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more"
830
  msgstr ""
831
 
832
- #: ../includes/class-sassy-social-share-widgets.php:172
833
  msgid "Make sure \"Standard Sharing Interface\" is enabled in \"Standard Interface\" section at \"Sassy Social Share\" page."
834
  msgstr ""
835
 
836
- #: ../includes/class-sassy-social-share-widgets.php:173
837
  msgid "Title:"
838
  msgstr ""
839
 
840
- #: ../includes/class-sassy-social-share-widgets.php:175
841
- #: ../includes/class-sassy-social-share-widgets.php:364
842
  msgid "Show individual share counts:"
843
  msgstr ""
844
 
845
- #: ../includes/class-sassy-social-share-widgets.php:177
846
- #: ../includes/class-sassy-social-share-widgets.php:366
847
  msgid "Show total shares:"
848
  msgstr ""
849
 
850
- #: ../includes/class-sassy-social-share-widgets.php:179
851
- #: ../includes/class-sassy-social-share-widgets.php:368
852
  msgid "Target Url:"
853
  msgstr ""
854
 
855
- #: ../includes/class-sassy-social-share-widgets.php:181
856
- #: ../includes/class-sassy-social-share-widgets.php:370
857
  msgid "Select"
858
  msgstr ""
859
 
860
- #: ../includes/class-sassy-social-share-widgets.php:187
861
  msgid "Before widget content:"
862
  msgstr ""
863
 
864
- #: ../includes/class-sassy-social-share-widgets.php:189
865
  msgid "After widget content:"
866
  msgstr ""
867
 
868
- #: ../includes/class-sassy-social-share-widgets.php:191
869
- #: ../includes/class-sassy-social-share-widgets.php:395
870
  msgid "Hide for logged in users:"
871
  msgstr ""
872
 
873
- #: ../includes/class-sassy-social-share-widgets.php:240
874
  msgid "Floating sharing widget. Let your website users share content on popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more"
875
  msgstr ""
876
 
877
- #: ../includes/class-sassy-social-share-widgets.php:363
878
  msgid "Make sure \"Floating Interface\" is enabled in \"Floating Interface\" section at \"Sassy Social Share\" page."
879
  msgstr ""
880
 
881
- #: ../includes/class-sassy-social-share-widgets.php:376
882
  msgid "Alignment"
883
  msgstr ""
884
 
885
- #: ../includes/class-sassy-social-share-widgets.php:382
886
  msgid "Left Offset"
887
  msgstr ""
888
 
889
- #: ../includes/class-sassy-social-share-widgets.php:386
890
  msgid "Right Offset"
891
  msgstr ""
892
 
893
- #: ../includes/class-sassy-social-share-widgets.php:389
894
  msgid "Top Offset"
895
  msgstr ""
896
 
897
- #: ../public/class-sassy-social-share-public.php:568
898
  msgid "Invalid request"
899
  msgstr ""
900
 
901
- #: ../public/class-sassy-social-share-public.php:574
902
  msgid "Providers not selected"
903
  msgstr ""
904
 
2
  msgstr ""
3
  "Project-Id-Version: Sassy Social Share\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2016-01-29 02:12+0530\n"
6
+ "PO-Revision-Date: 2016-01-29 02:13+0530\n"
7
  "Last-Translator: The Champ <lordofthechamps@gmail.com>\n"
8
  "Language-Team: Heateor <hello@heateor.com>\n"
9
  "Language: \n"
83
  msgstr ""
84
 
85
  #: ../admin/partials/sassy-social-share-options-page.php:23
86
+ #: ../admin/partials/sassy-social-share-options-page.php:1783
87
+ #: ../admin/partials/sassy-social-share-options-page.php:1785
88
  msgid "Shortcode & Widget"
89
  msgstr ""
90
 
93
  msgstr ""
94
 
95
  #: ../admin/partials/sassy-social-share-options-page.php:25
96
+ #: ../admin/partials/sassy-social-share-options-page.php:1814
97
  msgid "FAQ"
98
  msgstr ""
99
 
207
  #: ../admin/partials/sassy-social-share-options-page.php:257
208
  #: ../admin/partials/sassy-social-share-options-page.php:565
209
  #: ../admin/partials/sassy-social-share-options-page.php:1197
210
+ #: ../includes/class-sassy-social-share-widgets.php:396
211
  msgid "Background Color"
212
  msgstr ""
213
 
254
  #: ../admin/partials/sassy-social-share-options-page.php:614
255
  #: ../admin/partials/sassy-social-share-options-page.php:835
256
  #: ../admin/partials/sassy-social-share-options-page.php:1219
257
+ #: ../includes/class-sassy-social-share-widgets.php:382
258
  msgid "Left"
259
  msgstr ""
260
 
267
  #: ../admin/partials/sassy-social-share-options-page.php:618
268
  #: ../admin/partials/sassy-social-share-options-page.php:837
269
  #: ../admin/partials/sassy-social-share-options-page.php:1220
270
+ #: ../includes/class-sassy-social-share-widgets.php:383
271
  msgid "Right"
272
  msgstr ""
273
 
639
  msgstr ""
640
 
641
  #: ../admin/partials/sassy-social-share-options-page.php:1533
642
+ msgid "Share Count Cache"
643
  msgstr ""
644
 
645
  #: ../admin/partials/sassy-social-share-options-page.php:1539
646
+ msgid "Refresh Share Count cache every"
647
+ msgstr ""
648
+
649
+ #: ../admin/partials/sassy-social-share-options-page.php:1555
650
+ msgid "Frequent cache refreshing results in slower loading of pages with share counts enabled"
651
+ msgstr ""
652
+
653
+ #: ../admin/partials/sassy-social-share-options-page.php:1563
654
+ msgid "Clear Share Counts Cache"
655
+ msgstr ""
656
+
657
+ #: ../admin/partials/sassy-social-share-options-page.php:1567
658
+ msgid "Share Counts cache cleared successfully."
659
+ msgstr ""
660
+
661
+ #: ../admin/partials/sassy-social-share-options-page.php:1574
662
+ msgid "Use this to clear cached share counts"
663
+ msgstr ""
664
+
665
+ #: ../admin/partials/sassy-social-share-options-page.php:1583
666
+ msgid "Url shortener"
667
+ msgstr ""
668
+
669
+ #: ../admin/partials/sassy-social-share-options-page.php:1589
670
  msgid "Use shortlinks already installed"
671
  msgstr ""
672
 
673
+ #: ../admin/partials/sassy-social-share-options-page.php:1599
674
+ msgid "Use default short url permalinks without the need for any additional plugin"
675
  msgstr ""
676
 
677
+ #: ../admin/partials/sassy-social-share-options-page.php:1607
678
  msgid "Enable bit.ly url shortener for sharing"
679
  msgstr ""
680
 
681
+ #: ../admin/partials/sassy-social-share-options-page.php:1617
682
  msgid "Master control to enable bit.ly url shortening for sharing"
683
  msgstr ""
684
 
685
+ #: ../admin/partials/sassy-social-share-options-page.php:1625
686
  msgid "bit.ly username"
687
  msgstr ""
688
 
689
+ #: ../admin/partials/sassy-social-share-options-page.php:1635
690
  #, php-format
691
  msgid "Login to your bit.ly account and navigate to <a href=\"%s\" target=\"_blank\">this link</a> to get bit.ly username"
692
  msgstr ""
693
 
694
+ #: ../admin/partials/sassy-social-share-options-page.php:1644
695
  msgid "bit.ly API Key"
696
  msgstr ""
697
 
698
+ #: ../admin/partials/sassy-social-share-options-page.php:1654
699
  #, php-format
700
  msgid "Login to your bit.ly account and navigate to <a href=\"%s\" target=\"_blank\">this link</a> to get your API key"
701
  msgstr ""
702
 
703
+ #: ../admin/partials/sassy-social-share-options-page.php:1663
704
+ msgid "Clear Bitly Cache"
705
+ msgstr ""
706
+
707
+ #: ../admin/partials/sassy-social-share-options-page.php:1667
708
+ msgid "ShortUrl cache cleared successfully."
709
+ msgstr ""
710
+
711
+ #: ../admin/partials/sassy-social-share-options-page.php:1674
712
+ msgid "Use this to delete short urls saved in database. Handy, if urls of your website have been changed but short urls are still being generated for old urls."
713
+ msgstr ""
714
+
715
+ #: ../admin/partials/sassy-social-share-options-page.php:1683
716
+ #: ../admin/partials/sassy-social-share-options-page.php:1689
717
  msgid "Language"
718
  msgstr ""
719
 
720
+ #: ../admin/partials/sassy-social-share-options-page.php:1699
721
  #, php-format
722
  msgid "Enter the code of the language you want to use for like buttons. You can find the language codes at <a href=\"%s\" target=\"_blank\">this link</a>. Leave it empty for default language(English)"
723
  msgstr ""
724
 
725
+ #: ../admin/partials/sassy-social-share-options-page.php:1708
726
  msgid "Username in sharing"
727
  msgstr ""
728
 
729
+ #: ../admin/partials/sassy-social-share-options-page.php:1714
730
  msgid "Twitter username (without @)"
731
  msgstr ""
732
 
733
+ #: ../admin/partials/sassy-social-share-options-page.php:1724
734
+ #: ../admin/partials/sassy-social-share-options-page.php:1743
735
  msgid "Provided username will be appended after the content being shared as \"via @USERNAME\". Leave empty if you do not want any username in the content being shared."
736
  msgstr ""
737
 
738
+ #: ../admin/partials/sassy-social-share-options-page.php:1733
739
  msgid "Buffer username (without @)"
740
  msgstr ""
741
 
742
+ #: ../admin/partials/sassy-social-share-options-page.php:1752
743
+ #: ../admin/partials/sassy-social-share-options-page.php:1758
744
  msgid "Custom CSS"
745
  msgstr ""
746
 
747
+ #: ../admin/partials/sassy-social-share-options-page.php:1768
748
  msgid "You can specify any additional CSS rules (without &lt;style&gt; tag)"
749
  msgstr ""
750
 
751
+ #: ../admin/partials/sassy-social-share-options-page.php:1795
752
  msgid "Facebook Sharing Troubleshooter"
753
  msgstr ""
754
 
755
+ #: ../admin/partials/sassy-social-share-options-page.php:1800
756
  msgid "If Facebook sharing is not working fine, click at the following link and enter the problematic url (where Facebook sharing is not working properly) of your website in the text field:"
757
  msgstr ""
758
 
759
+ #: ../admin/partials/sassy-social-share-options-page.php:1816
760
  msgid "How can I show share counts of my website rather than of individual pages/posts?"
761
  msgstr ""
762
 
763
+ #: ../admin/partials/sassy-social-share-options-page.php:1817
764
  msgid "How can I disable sharing on particular page/post?"
765
  msgstr ""
766
 
767
+ #: ../admin/partials/sassy-social-share-options-page.php:1818
768
  msgid "How can I specify minimum sharing count for sharing networks?"
769
  msgstr ""
770
 
771
+ #: ../admin/partials/sassy-social-share-options-page.php:1819
772
  msgid "How to share specific page?"
773
  msgstr ""
774
 
775
+ #: ../admin/partials/sassy-social-share-options-page.php:1820
776
  msgid "How to integrate Google Analytics with sharing?"
777
  msgstr ""
778
 
779
+ #: ../admin/partials/sassy-social-share-options-page.php:1821
780
  msgid "How to customize the look of total share counts?"
781
  msgstr ""
782
 
783
+ #: ../admin/partials/sassy-social-share-options-page.php:1822
784
  msgid "How to customize the look of individual share counts?"
785
  msgstr ""
786
 
787
+ #: ../admin/partials/sassy-social-share-options-page.php:1823
788
  msgid "How to show Whatsapp icon only on mobile devices?"
789
  msgstr ""
790
 
791
+ #: ../admin/partials/sassy-social-share-options-page.php:1824
792
+ msgid "How to hide arrow after floating sharing bar?"
793
+ msgstr ""
794
+
795
+ #: ../admin/partials/sassy-social-share-options-page.php:1834
796
  msgid "Save Changes"
797
  msgstr ""
798
 
869
  msgid "Standard sharing widget. Let your website users share content on popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more"
870
  msgstr ""
871
 
872
+ #: ../includes/class-sassy-social-share-widgets.php:174
873
  msgid "Make sure \"Standard Sharing Interface\" is enabled in \"Standard Interface\" section at \"Sassy Social Share\" page."
874
  msgstr ""
875
 
876
+ #: ../includes/class-sassy-social-share-widgets.php:175
877
  msgid "Title:"
878
  msgstr ""
879
 
880
+ #: ../includes/class-sassy-social-share-widgets.php:177
881
+ #: ../includes/class-sassy-social-share-widgets.php:368
882
  msgid "Show individual share counts:"
883
  msgstr ""
884
 
885
+ #: ../includes/class-sassy-social-share-widgets.php:179
886
+ #: ../includes/class-sassy-social-share-widgets.php:370
887
  msgid "Show total shares:"
888
  msgstr ""
889
 
890
+ #: ../includes/class-sassy-social-share-widgets.php:181
891
+ #: ../includes/class-sassy-social-share-widgets.php:372
892
  msgid "Target Url:"
893
  msgstr ""
894
 
895
+ #: ../includes/class-sassy-social-share-widgets.php:183
896
+ #: ../includes/class-sassy-social-share-widgets.php:374
897
  msgid "Select"
898
  msgstr ""
899
 
900
+ #: ../includes/class-sassy-social-share-widgets.php:189
901
  msgid "Before widget content:"
902
  msgstr ""
903
 
904
+ #: ../includes/class-sassy-social-share-widgets.php:191
905
  msgid "After widget content:"
906
  msgstr ""
907
 
908
+ #: ../includes/class-sassy-social-share-widgets.php:193
909
+ #: ../includes/class-sassy-social-share-widgets.php:399
910
  msgid "Hide for logged in users:"
911
  msgstr ""
912
 
913
+ #: ../includes/class-sassy-social-share-widgets.php:242
914
  msgid "Floating sharing widget. Let your website users share content on popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more"
915
  msgstr ""
916
 
917
+ #: ../includes/class-sassy-social-share-widgets.php:367
918
  msgid "Make sure \"Floating Interface\" is enabled in \"Floating Interface\" section at \"Sassy Social Share\" page."
919
  msgstr ""
920
 
921
+ #: ../includes/class-sassy-social-share-widgets.php:380
922
  msgid "Alignment"
923
  msgstr ""
924
 
925
+ #: ../includes/class-sassy-social-share-widgets.php:386
926
  msgid "Left Offset"
927
  msgstr ""
928
 
929
+ #: ../includes/class-sassy-social-share-widgets.php:390
930
  msgid "Right Offset"
931
  msgstr ""
932
 
933
+ #: ../includes/class-sassy-social-share-widgets.php:393
934
  msgid "Top Offset"
935
  msgstr ""
936
 
937
+ #: ../public/class-sassy-social-share-public.php:627
938
  msgid "Invalid request"
939
  msgstr ""
940
 
941
+ #: ../public/class-sassy-social-share-public.php:633
942
  msgid "Providers not selected"
943
  msgstr ""
944
 
public/class-sassy-social-share-public.php CHANGED
@@ -50,11 +50,19 @@ class Sassy_Social_Share_Public {
50
  */
51
  private $short_urls = array();
52
 
 
 
 
 
 
 
 
53
  /**
54
  * Get saved options.
55
  *
56
  * @since 1.0.0
57
- * @param array $options Plugin options saved in database
 
58
  */
59
  public function __construct( $options, $version ) {
60
 
@@ -89,32 +97,34 @@ class Sassy_Social_Share_Public {
89
  <script type="text/javascript">function heateorSssLoadEvent(e){var t=window.onload;if(typeof window.onload!="function"){window.onload=e}else{window.onload=function(){t();e()}}}</script>
90
  <?php
91
  global $post;
92
- $sharing_meta = get_post_meta( $post->ID, '_heateor_sss_meta', true );
93
- if ( is_front_page() || ! isset( $sharing_meta['sharing'] ) || $sharing_meta['sharing'] != 1 || ! isset( $sharing_meta['vertical_sharing'] ) || $sharing_meta['vertical_sharing'] != 1 ) {
94
- ?>
95
- <script> var heateorSssSharingAjaxUrl = '<?php echo get_admin_url() ?>admin-ajax.php', heateorSssCloseIconPath = '<?php echo plugins_url( '../images/close.png', __FILE__ ) ?>', heateorSssPluginIconPath = '<?php echo plugins_url( '../images/logo.png', __FILE__ ) ?>', heateorSssHorizontalSharingCountEnable = <?php echo isset( $this->options['hor_enable'] ) && ( isset( $this->options['horizontal_counts'] ) || isset( $this->options['horizontal_total_shares'] ) ) ? 1 : 0 ?>, heateorSssVerticalSharingCountEnable = <?php echo isset( $this->options['vertical_enable'] ) && ( isset( $this->options['vertical_counts'] ) || isset( $this->options['vertical_total_shares'] ) ) ? 1 : 0 ?>, heateorSssSharingOffset = <?php echo isset( $this->options['alignment'] ) && $this->options['alignment'] != '' && isset( $this->options[$this->options['alignment'].'_offset'] ) && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options[$this->options['alignment'].'_offset'] : 0; ?>;
96
- <?php
97
- if ( isset( $this->options['horizontal_counts'] ) && isset( $this->options['horizontal_counter_position'] ) ) {
98
- echo in_array( $this->options['horizontal_counter_position'], array( 'inner_left', 'inner_right' ) ) ? 'var heateorSssReduceHorizontalSvgWidth = true;' : '';
99
- echo in_array( $this->options['horizontal_counter_position'], array( 'inner_top', 'inner_bottom' ) ) ? 'var heateorSssReduceHorizontalSvgHeight = true;' : '';
100
- }
101
- if ( isset( $this->options['vertical_counts'] ) ) {
102
- echo isset( $this->options['vertical_counter_position'] ) && in_array( $this->options['vertical_counter_position'], array( 'inner_left', 'inner_right' ) ) ? 'var heateorSssReduceVerticalSvgWidth = true;' : '';
103
- echo ! isset( $this->options['vertical_counter_position'] ) || in_array( $this->options['vertical_counter_position'], array( 'inner_top', 'inner_bottom' ) ) ? 'var heateorSssReduceVerticalSvgHeight = true;' : '';
104
- }
105
- ?>
106
- var heateorSssUrlCountFetched = '';
107
- function heateorSssPopup(e){window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes")}
108
- </script>
109
- <?php
110
- if ( $this->facebook_like_recommend_enabled() ) {
111
  ?>
112
- <script type="text/javascript">
113
- function heateorSssInitiateFB(){FB.init({appId:"",channelUrl:"",status:!0,cookie:!0,xfbml:!0,version:"v2.4"})}window.fbAsyncInit=function(){heateorSssInitiateFB(),<?php echo defined( 'HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION' ) && $this->facebook_like_recommend_enabled() ? 1 : 0 ?>&&(FB.Event.subscribe("edge.create",function(e){heateorSsmiMycredPoints("Facebook_like_recommend","",e?e:"")}),FB.Event.subscribe("edge.remove",function(e){heateorSsmiMycredPoints("Facebook_like_recommend","",e?e:"","Minus point(s) for undoing Facebook like-recommend")})),<?php echo defined( 'HEATEOR_SHARING_GOOGLE_ANALYTICS_VERSION' ) ? 1 : 0 ?>&&(FB.Event.subscribe("edge.create",function(e){heateorSsgaSocialPluginsTracking("Facebook","Like",e?e:"")}),FB.Event.subscribe("edge.remove",function(e){heateorSsgaSocialPluginsTracking("Facebook","Unlike",e?e:"")}))},function(e){var n,i="facebook-jssdk",o=e.getElementsByTagName("script")[0];e.getElementById(i)||(n=e.createElement("script"),n.id=i,n.async=!0,n.src="//connect.facebook.net/<?php echo $this->options['language'] ? $this->options['language'] : 'en_US' ?>/sdk.js",o.parentNode.insertBefore(n,o))}(document);
114
  </script>
115
  <?php
 
 
 
 
 
 
 
 
116
  }
117
- wp_enqueue_script( 'heateor_sss_sharing_js', plugins_url( 'js/sassy-social-share-public.js', __FILE__ ), array( 'jquery' ), $this->version, $in_footer );
118
  }
119
 
120
  }
@@ -197,10 +207,7 @@ class Sassy_Social_Share_Public {
197
  global $post;
198
 
199
  if ( $sharing_type == 'vertical' && ( is_front_page() || is_home() ) ) {
200
- $post_title = wp_title( '', false );
201
- if ( $post_title == '' ) {
202
- $post_title = get_bloginfo( 'name' ) . " - " . get_bloginfo( 'description' );
203
- }
204
  } else {
205
  $post_title = $post->post_title;
206
  }
@@ -215,7 +222,7 @@ class Sassy_Social_Share_Public {
215
  }
216
  $html = '';
217
  $sharing_meta = '';
218
- if (! is_front_page() || ( is_front_page() && 'page' == get_option( 'show_on_front' ) ) ) {
219
  $sharing_meta = get_post_meta( $post->ID, '_heateor_sss_meta', true );
220
  }
221
 
@@ -226,7 +233,8 @@ class Sassy_Social_Share_Public {
226
  $sharing_networks = $sharing_networks_object->fetch_sharing_networks();
227
 
228
  $html = '<ul ' . ( $sharing_type == 'horizontal' && $this->options['hor_sharing_alignment'] == "center" ? "style='list-style: none;position: relative;left: 50%;'" : "" ) .' class="heateor_sss_sharing_ul">';
229
- $style = 'style="width:' . ( $this->options[$sharing_type . '_sharing_shape'] != 'rectangle' ? $this->options[$sharing_type . '_sharing_size'] : $this->options[$sharing_type . '_sharing_width'] ) . 'px;height:' . ( $this->options[$sharing_type . '_sharing_shape'] != 'rectangle' ? $this->options[$sharing_type . '_sharing_size'] : $this->options[$sharing_type . '_sharing_height'] ) . 'px;';
 
230
  $counter_container_init_html = '<ss class="heateor_sss_square_count';
231
  $counter_container_end_html = '</ss>';
232
  $inner_style = 'display:block;';
@@ -249,8 +257,16 @@ class Sassy_Social_Share_Public {
249
  $like_button_count_container = $counter_container_init_html . '">&nbsp;' . $counter_container_end_html;
250
  }
251
 
 
 
 
 
 
 
 
252
  $counter_placeholder = '';
253
  $counter_placeholder_value = '';
 
254
 
255
  if ( $display_count ) {
256
  if ( ! isset( $this->options[$sharing_type . '_counter_position'] ) ) {
@@ -261,30 +277,49 @@ class Sassy_Social_Share_Public {
261
 
262
  switch ( $counter_position ) {
263
  case 'left':
 
 
 
264
  case 'top':
265
  $counter_placeholder = '><i';
266
  break;
267
  case 'right':
 
 
 
268
  case 'bottom':
 
269
  $counter_placeholder = 'i><';
270
  break;
271
  case 'inner_left':
 
 
 
272
  case 'inner_top':
 
273
  $counter_placeholder = '><ss';
274
  break;
275
  case 'inner_right':
 
 
 
276
  case 'inner_bottom':
 
277
  $counter_placeholder = 'ss><';
278
  break;
279
  default:
280
  }
 
281
  $counter_placeholder_value = str_replace( '>', '>' . $counter_container_init_html . ' heateor_sss_%network%_count">&nbsp;' . $counter_container_end_html, $counter_placeholder );
282
  }
283
 
284
  $twitter_username = $this->options['twitter_username'] != '' ? $this->options['twitter_username'] : '';
285
-
 
 
286
  foreach ( $this->options[$sharing_type.'_re_providers'] as $provider ) {
287
- //var_dump($twitter_username);
 
288
  $li_items .= str_replace(
289
  array(
290
  '%padding%',
@@ -317,9 +352,9 @@ class Sassy_Social_Share_Public {
317
  $language,
318
  $this->options['buffer_username'] != '' ? $this->options['buffer_username'] : '',
319
  $style,
320
- $inner_style,
321
  $li_class,
322
- str_replace( '%network%', $provider, isset( $sharing_meta[$provider . '_' . $sharing_type . '_count'] ) && $sharing_meta[$provider . '_' . $sharing_type . '_count'] != '' ? str_replace( '>&nbsp;', ' sss_st_count="' . $sharing_meta[$provider . '_' . $sharing_type . '_count'] . '">&nbsp;', $counter_placeholder_value ) : $counter_placeholder_value ),
323
  ucfirst( str_replace( '_', ' ', $provider ) )
324
  ),
325
  $sharing_networks[$provider]
@@ -345,9 +380,9 @@ class Sassy_Social_Share_Public {
345
  } else {
346
  $add_style = ';margin-bottom:9px !important;';
347
  }
348
- $add_style .= '"';
349
  $style = str_replace( ';"', $add_style, $style );
350
- $total_shares_html .= '<i ' . $style . ' title="Total Shares" alt="Total Shares" class="heateorSssSharing heateorSssTCBackground"></i></li>';
351
  }
352
 
353
  if ( $sharing_type == 'vertical' ) {
@@ -361,6 +396,42 @@ class Sassy_Social_Share_Public {
361
  return $html;
362
  }
363
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
364
  /**
365
  * Get http/https protocol at the website
366
  *
@@ -427,7 +498,8 @@ class Sassy_Social_Share_Public {
427
  }
428
 
429
  $sharing_url = $this->get_short_url( $post_url, $post->ID );
430
-
 
431
  $sharing_div = $this->prepare_sharing_html( $sharing_url ? $sharing_url : $post_url, 'horizontal', isset( $this->options['horizontal_counts'] ), isset( $this->options['horizontal_total_shares'] ) );
432
  $sharing_container_style = '';
433
  $sharing_title_style = 'style="font-weight:bold"';
@@ -439,7 +511,7 @@ class Sassy_Social_Share_Public {
439
  $sharing_title_style = 'style="font-weight: bold;list-style: none;position: relative;left: 50%;"';
440
  }
441
 
442
- $horizontal_div = "<div style='clear: both'></div><div ". $sharing_container_style ." class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' heateor-sss-data-href='" . $post_url . "'><div class='heateor_sss_sharing_title' " . $sharing_title_style . " >" . ucfirst( $this->options['title'] ) . "</div>" . $sharing_div . "</div><div style='clear: both'></div>";
443
  if ( $sharing_bp_activity ) {
444
  echo $horizontal_div;
445
  }
@@ -497,9 +569,11 @@ class Sassy_Social_Share_Public {
497
  if ( isset( $this->options['vertical_counts'] ) && isset( $this->options['vertical_counter_position'] ) && in_array( $this->options['vertical_counter_position'], array( 'left', 'right' ) ) ) {
498
  $vertical_sharing_width += $vertical_sharing_width*60/100;
499
  }
 
 
500
  $sharing_div = $this->prepare_sharing_html( $sharing_url ? $sharing_url : $post_url, 'vertical', isset( $this->options['vertical_counts'] ), isset( $this->options['vertical_total_shares'] ) );
501
  $offset = ( $this->options['alignment'] != '' && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options['alignment'] . ': ' . $this->options[$this->options['alignment'].'_offset'] . 'px;' : '' ) . ( $this->options['top_offset'] != '' ? 'top: '.$this->options['top_offset'] . 'px;' : '' );
502
- $vertical_div = "<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing" . ( isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . "' style='width:" . ( $vertical_sharing_width + 4 ) . "px;" . $offset . ( $this->options['vertical_bg'] != '' ? 'background-color: '.$this->options['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;' ) . "' heateor-sss-data-href='" . $post_url . "'>" . $sharing_div . "</div>";
503
  // show vertical sharing
504
  if ( ( isset( $this->options['vertical_home'] ) && is_front_page() ) || ( isset( $this->options['vertical_category'] ) && is_category() ) || ( isset( $this->options['vertical_archive'] ) && is_archive() ) || ( isset( $this->options['vertical_post'] ) && is_single() && isset( $post -> post_type ) && $post -> post_type == 'post' ) || ( isset( $this->options['vertical_page'] ) && is_page() && isset( $post -> post_type ) && $post -> post_type == 'page' ) || ( isset( $this->options['vertical_excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $this->options['vertical_bb_forum'] ) && current_filter() == 'bbp_template_before_single_forum' ) || ( isset( $this->options['vertical_bb_topic'] ) && in_array( current_filter(), array( 'bbp_template_before_single_topic', 'bbp_template_before_lead_topic' )) ) || (current_filter() == 'bp_before_group_header' && isset( $this->options['vertical_bp_group'] ) ) ) {
505
  if ( in_array( current_filter(), array( 'bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bp_before_group_header' ) ) ) {
@@ -515,9 +589,10 @@ class Sassy_Social_Share_Public {
515
  if ( $this->options['vertical_target_url'] == 'default' ) {
516
  $post_url = site_url();
517
  $sharing_url = $this->get_short_url( $post_url, 0 );
518
-
 
519
  $sharing_div = $this->prepare_sharing_html( $sharing_url ? $sharing_url : $post_url, 'vertical', isset( $this->options['vertical_counts'] ), isset( $this->options['vertical_total_shares'] ) );
520
- $vertical_div = "<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing" . ( isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . "' style='width:" . ( $vertical_sharing_width + 4 ) . "px;" . $offset . ( $this->options['vertical_bg'] != '' ? 'background-color: ' . $this->options['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;' ) . "' heateor-sss-data-href='" . $post_url . "'>" . $sharing_div . "</div>";
521
  }
522
  $content = $content . $vertical_div;
523
  if ( current_filter() == 'the_content' ) {
@@ -589,7 +664,33 @@ class Sassy_Social_Share_Public {
589
  }
590
 
591
  $response_data = array();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
592
  foreach ( $target_urls as $target_url ) {
 
593
  foreach ( $sharing_networks as $provider ) {
594
  switch ( $provider ) {
595
  case 'facebook':
@@ -639,6 +740,7 @@ class Sassy_Social_Share_Public {
639
  case 'facebook':
640
  if ( ! empty( $body[0] -> total_count ) ) {
641
  $response_data[$target_url]['facebook'] = $body[0] -> total_count;
 
642
  } else {
643
  $response_data[$target_url]['facebook'] = 0;
644
  }
@@ -646,6 +748,7 @@ class Sassy_Social_Share_Public {
646
  case 'twitter':
647
  if ( ! empty( $body -> count ) ) {
648
  $response_data[$target_url]['twitter'] = $body -> count;
 
649
  } else {
650
  $response_data[$target_url]['twitter'] = 0;
651
  }
@@ -653,6 +756,7 @@ class Sassy_Social_Share_Public {
653
  case 'linkedin':
654
  if ( ! empty( $body -> count ) ) {
655
  $response_data[$target_url]['linkedin'] = $body -> count;
 
656
  } else {
657
  $response_data[$target_url]['linkedin'] = 0;
658
  }
@@ -663,12 +767,14 @@ class Sassy_Social_Share_Public {
663
  $children = $body -> data -> children;
664
  if ( ! empty( $children[0] -> data -> score ) ) {
665
  $response_data[$target_url]['reddit'] = $children[0] -> data -> score;
 
666
  }
667
  }
668
  break;
669
  case 'delicious':
670
  if ( ! empty( $body[0] -> total_posts ) ) {
671
  $response_data[$target_url]['delicious'] = $body[0] -> total_posts;
 
672
  } else {
673
  $response_data[$target_url]['delicious'] = 0;
674
  }
@@ -676,6 +782,7 @@ class Sassy_Social_Share_Public {
676
  case 'pinterest':
677
  if ( ! empty( $body -> count ) ) {
678
  $response_data[$target_url]['pinterest'] = $body -> count;
 
679
  } else {
680
  $response_data[$target_url]['pinterest'] = 0;
681
  }
@@ -683,6 +790,7 @@ class Sassy_Social_Share_Public {
683
  case 'buffer':
684
  if ( ! empty( $body -> shares ) ) {
685
  $response_data[$target_url]['buffer'] = $body -> shares;
 
686
  } else {
687
  $response_data[$target_url]['buffer'] = 0;
688
  }
@@ -690,6 +798,7 @@ class Sassy_Social_Share_Public {
690
  case 'stumbleupon':
691
  if ( ! empty( $body -> result ) && isset( $body -> result -> views ) ) {
692
  $response_data[$target_url]['stumbleupon'] = $body -> result -> views;
 
693
  } else {
694
  $response_data[$target_url]['stumbleupon'] = 0;
695
  }
@@ -697,6 +806,7 @@ class Sassy_Social_Share_Public {
697
  case 'google_plus':
698
  if ( ! empty( $body ) ) {
699
  $response_data[$target_url]['google_plus'] = $body;
 
700
  } else {
701
  $response_data[$target_url]['google_plus'] = 0;
702
  }
@@ -704,6 +814,7 @@ class Sassy_Social_Share_Public {
704
  case 'vkontakte':
705
  if ( ! empty( $body ) ) {
706
  $response_data[$target_url]['vkontakte'] = $body;
 
707
  } else {
708
  $response_data[$target_url]['vkontakte'] = 0;
709
  }
@@ -711,8 +822,27 @@ class Sassy_Social_Share_Public {
711
  }
712
  }
713
  }
 
714
  }
 
715
  $this->ajax_response( array( 'status' => 1, 'message' => $response_data ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
716
  }
717
 
718
  /**
@@ -881,6 +1011,10 @@ class Sassy_Social_Share_Public {
881
  heateor_sss_update_svg_css( $this->options['vertical_font_color_hover'], 'sassy-social-share-hover-svg-vertical' );
882
  }
883
 
 
 
 
 
884
  // update plugin version in database
885
  update_option( 'heateor_sss_version', $this->version );
886
  }
50
  */
51
  private $short_urls = array();
52
 
53
+ /**
54
+ * Share Count Transient ID
55
+ *
56
+ * @since 1.7
57
+ */
58
+ public $share_count_transient_id = '';
59
+
60
  /**
61
  * Get saved options.
62
  *
63
  * @since 1.0.0
64
+ * @param array $options Plugin options saved in database
65
+ * @param string $version Current version of the plugin
66
  */
67
  public function __construct( $options, $version ) {
68
 
97
  <script type="text/javascript">function heateorSssLoadEvent(e){var t=window.onload;if(typeof window.onload!="function"){window.onload=e}else{window.onload=function(){t();e()}}}</script>
98
  <?php
99
  global $post;
100
+ if ( $post ) {
101
+ $sharing_meta = get_post_meta( $post->ID, '_heateor_sss_meta', true );
102
+ if ( is_front_page() || ! isset( $sharing_meta['sharing'] ) || $sharing_meta['sharing'] != 1 || ! isset( $sharing_meta['vertical_sharing'] ) || $sharing_meta['vertical_sharing'] != 1 ) {
103
+ ?>
104
+ <script> var heateorSssSharingAjaxUrl = '<?php echo get_admin_url() ?>admin-ajax.php', heateorSssCloseIconPath = '<?php echo plugins_url( '../images/close.png', __FILE__ ) ?>', heateorSssPluginIconPath = '<?php echo plugins_url( '../images/logo.png', __FILE__ ) ?>', heateorSssHorizontalSharingCountEnable = <?php echo isset( $this->options['hor_enable'] ) && ( isset( $this->options['horizontal_counts'] ) || isset( $this->options['horizontal_total_shares'] ) ) ? 1 : 0 ?>, heateorSssVerticalSharingCountEnable = <?php echo isset( $this->options['vertical_enable'] ) && ( isset( $this->options['vertical_counts'] ) || isset( $this->options['vertical_total_shares'] ) ) ? 1 : 0 ?>, heateorSssSharingOffset = <?php echo isset( $this->options['alignment'] ) && $this->options['alignment'] != '' && isset( $this->options[$this->options['alignment'].'_offset'] ) && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options[$this->options['alignment'].'_offset'] : 0; ?>;
105
+ <?php
106
+ if ( isset( $this->options['horizontal_counts'] ) && isset( $this->options['horizontal_counter_position'] ) ) {
107
+ echo in_array( $this->options['horizontal_counter_position'], array( 'inner_left', 'inner_right' ) ) ? 'var heateorSssReduceHorizontalSvgWidth = true;' : '';
108
+ echo in_array( $this->options['horizontal_counter_position'], array( 'inner_top', 'inner_bottom' ) ) ? 'var heateorSssReduceHorizontalSvgHeight = true;' : '';
109
+ }
110
+ if ( isset( $this->options['vertical_counts'] ) ) {
111
+ echo isset( $this->options['vertical_counter_position'] ) && in_array( $this->options['vertical_counter_position'], array( 'inner_left', 'inner_right' ) ) ? 'var heateorSssReduceVerticalSvgWidth = true;' : '';
112
+ echo ! isset( $this->options['vertical_counter_position'] ) || in_array( $this->options['vertical_counter_position'], array( 'inner_top', 'inner_bottom' ) ) ? 'var heateorSssReduceVerticalSvgHeight = true;' : '';
113
+ }
 
 
 
 
 
114
  ?>
115
+ var heateorSssUrlCountFetched = '';
116
+ function heateorSssPopup(e){window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes")}
117
  </script>
118
  <?php
119
+ if ( $this->facebook_like_recommend_enabled() ) {
120
+ ?>
121
+ <script type="text/javascript">
122
+ function heateorSssInitiateFB(){FB.init({appId:"",channelUrl:"",status:!0,cookie:!0,xfbml:!0,version:"v2.4"})}window.fbAsyncInit=function(){heateorSssInitiateFB(),<?php echo defined( 'HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION' ) && $this->facebook_like_recommend_enabled() ? 1 : 0 ?>&&(FB.Event.subscribe("edge.create",function(e){heateorSsmiMycredPoints("Facebook_like_recommend","",e?e:"")}),FB.Event.subscribe("edge.remove",function(e){heateorSsmiMycredPoints("Facebook_like_recommend","",e?e:"","Minus point(s) for undoing Facebook like-recommend")})),<?php echo defined( 'HEATEOR_SHARING_GOOGLE_ANALYTICS_VERSION' ) ? 1 : 0 ?>&&(FB.Event.subscribe("edge.create",function(e){heateorSsgaSocialPluginsTracking("Facebook","Like",e?e:"")}),FB.Event.subscribe("edge.remove",function(e){heateorSsgaSocialPluginsTracking("Facebook","Unlike",e?e:"")}))},function(e){var n,i="facebook-jssdk",o=e.getElementsByTagName("script")[0];e.getElementById(i)||(n=e.createElement("script"),n.id=i,n.async=!0,n.src="//connect.facebook.net/<?php echo $this->options['language'] ? $this->options['language'] : 'en_US' ?>/sdk.js",o.parentNode.insertBefore(n,o))}(document);
123
+ </script>
124
+ <?php
125
+ }
126
+ wp_enqueue_script( 'heateor_sss_sharing_js', plugins_url( 'js/sassy-social-share-public.js', __FILE__ ), array( 'jquery' ), $this->version, $in_footer );
127
  }
 
128
  }
129
 
130
  }
207
  global $post;
208
 
209
  if ( $sharing_type == 'vertical' && ( is_front_page() || is_home() ) ) {
210
+ $post_title = get_bloginfo( 'name' ) . " - " . get_bloginfo( 'description' );
 
 
 
211
  } else {
212
  $post_title = $post->post_title;
213
  }
222
  }
223
  $html = '';
224
  $sharing_meta = '';
225
+ if ( ! is_front_page() || ( is_front_page() && 'page' == get_option( 'show_on_front' ) ) ) {
226
  $sharing_meta = get_post_meta( $post->ID, '_heateor_sss_meta', true );
227
  }
228
 
233
  $sharing_networks = $sharing_networks_object->fetch_sharing_networks();
234
 
235
  $html = '<ul ' . ( $sharing_type == 'horizontal' && $this->options['hor_sharing_alignment'] == "center" ? "style='list-style: none;position: relative;left: 50%;'" : "" ) .' class="heateor_sss_sharing_ul">';
236
+ $icon_height = $this->options[$sharing_type . '_sharing_shape'] != 'rectangle' ? $this->options[$sharing_type . '_sharing_size'] : $this->options[$sharing_type . '_sharing_height'];
237
+ $style = 'style="width:' . ( $this->options[$sharing_type . '_sharing_shape'] != 'rectangle' ? $this->options[$sharing_type . '_sharing_size'] : $this->options[$sharing_type . '_sharing_width'] ) . 'px;height:' . $icon_height . 'px;';
238
  $counter_container_init_html = '<ss class="heateor_sss_square_count';
239
  $counter_container_end_html = '</ss>';
240
  $inner_style = 'display:block;';
257
  $like_button_count_container = $counter_container_init_html . '">&nbsp;' . $counter_container_end_html;
258
  }
259
 
260
+ // share count
261
+ if ( false !== ( $cached_share_count = $this->get_cached_share_count( $this->share_count_transient_id ) ) ) {
262
+ $share_counts = $cached_share_count;
263
+ } else {
264
+ $share_counts = '&nbsp;';
265
+ }
266
+
267
  $counter_placeholder = '';
268
  $counter_placeholder_value = '';
269
+ $inner_style_conditional = '';
270
 
271
  if ( $display_count ) {
272
  if ( ! isset( $this->options[$sharing_type . '_counter_position'] ) ) {
277
 
278
  switch ( $counter_position ) {
279
  case 'left':
280
+ $inner_style_conditional = 'display:block;';
281
+ $counter_placeholder = '><i';
282
+ break;
283
  case 'top':
284
  $counter_placeholder = '><i';
285
  break;
286
  case 'right':
287
+ $inner_style_conditional = 'display:block;';
288
+ $counter_placeholder = 'i><';
289
+ break;
290
  case 'bottom':
291
+ $inner_style_conditional = 'display:block;';
292
  $counter_placeholder = 'i><';
293
  break;
294
  case 'inner_left':
295
+ $inner_style_conditional = 'float:left;';
296
+ $counter_placeholder = '><ss';
297
+ break;
298
  case 'inner_top':
299
+ $inner_style_conditional = 'margin-top:0;';
300
  $counter_placeholder = '><ss';
301
  break;
302
  case 'inner_right':
303
+ $inner_style_conditional = 'float:left;';
304
+ $counter_placeholder = 'ss><';
305
+ break;
306
  case 'inner_bottom':
307
+ $inner_style_conditional = 'margin-top:0;';
308
  $counter_placeholder = 'ss><';
309
  break;
310
  default:
311
  }
312
+
313
  $counter_placeholder_value = str_replace( '>', '>' . $counter_container_init_html . ' heateor_sss_%network%_count">&nbsp;' . $counter_container_end_html, $counter_placeholder );
314
  }
315
 
316
  $twitter_username = $this->options['twitter_username'] != '' ? $this->options['twitter_username'] : '';
317
+ $total_share_count = 0;
318
+
319
+ $share_count = array();
320
  foreach ( $this->options[$sharing_type.'_re_providers'] as $provider ) {
321
+ $share_count[$provider] = $share_counts == '&nbsp;' ? '' : ( isset( $share_counts[$provider] ) ? $share_counts[$provider] : '' );
322
+ $total_share_count += intval( $share_count[$provider] );
323
  $li_items .= str_replace(
324
  array(
325
  '%padding%',
352
  $language,
353
  $this->options['buffer_username'] != '' ? $this->options['buffer_username'] : '',
354
  $style,
355
+ $inner_style . ( $share_count[$provider] ? $inner_style_conditional : '' ),
356
  $li_class,
357
+ str_replace( '%network%', $provider, isset( $sharing_meta[$provider . '_' . $sharing_type . '_count'] ) && $sharing_meta[$provider . '_' . $sharing_type . '_count'] != '' ? str_replace( '>&nbsp;', ' sss_st_count="' . $sharing_meta[$provider . '_' . $sharing_type . '_count'] . '"' . ( $share_counts == '&nbsp;' ? '>&nbsp;' : ' 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( '>&nbsp;', $share_count[$provider] ? ' style="visibility:visible;' . ( $inner_style_conditional ? 'display:block;' : '' ) . '">' . $this->round_off_counts( $share_count[$provider] ) : '>&nbsp;', $counter_placeholder_value ) ),
358
  ucfirst( str_replace( '_', ' ', $provider ) )
359
  ),
360
  $sharing_networks[$provider]
380
  } else {
381
  $add_style = ';margin-bottom:9px !important;';
382
  }
383
+ $add_style .= ( $total_share_count ? 'visibility:visible;' : '' ) . '"';
384
  $style = str_replace( ';"', $add_style, $style );
385
+ $total_shares_html .= '<i ' . $style . ' title="Total Shares" alt="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">Shares</div>' : '' ) . '</i></li>';
386
  }
387
 
388
  if ( $sharing_type == 'vertical' ) {
396
  return $html;
397
  }
398
 
399
+ /**
400
+ * Roud off share counts
401
+ *
402
+ * @since 1.7
403
+ * @param integer $sharingCount Share counts
404
+ */
405
+ private function round_off_counts( $sharing_count ) {
406
+
407
+ if ( $sharing_count > 999 && $sharing_count < 10000 ) {
408
+ $sharing_count = round( $sharing_count/1000 ) . 'K';
409
+ } elseif ( $sharing_count > 9999 && $sharing_count < 100000 ) {
410
+ $sharing_count = round( $sharing_count/1000 ) . 'K';
411
+ } else if( $sharing_count > 99999 && $sharing_count < 1000000 ) {
412
+ $sharing_count = round( $sharing_count/1000 ) . 'K';
413
+ } else if ( $sharing_count > 999999 ) {
414
+ $sharing_count = round( $sharing_count/1000000 ) . 'M';
415
+ }
416
+
417
+ return $sharing_count;
418
+
419
+ }
420
+
421
+ /**
422
+ * Get cached share counts for given post ID
423
+ *
424
+ * @since 1.7
425
+ * @param integer $post_id ID of the post to fetch cached share counts for
426
+ */
427
+ private function get_cached_share_count( $post_id ) {
428
+
429
+ $share_count_transient = get_transient( 'heateor_sss_share_count_' . $post_id );
430
+ do_action( 'heateor_sss_share_count_transient_hook', $share_count_transient, $post_id );
431
+ return $share_count_transient;
432
+
433
+ }
434
+
435
  /**
436
  * Get http/https protocol at the website
437
  *
498
  }
499
 
500
  $sharing_url = $this->get_short_url( $post_url, $post->ID );
501
+ // share count transient ID
502
+ $this->share_count_transient_id = $this->get_share_count_transient_id( $post_url );
503
  $sharing_div = $this->prepare_sharing_html( $sharing_url ? $sharing_url : $post_url, 'horizontal', isset( $this->options['horizontal_counts'] ), isset( $this->options['horizontal_total_shares'] ) );
504
  $sharing_container_style = '';
505
  $sharing_title_style = 'style="font-weight:bold"';
511
  $sharing_title_style = 'style="font-weight: bold;list-style: none;position: relative;left: 50%;"';
512
  }
513
 
514
+ $horizontal_div = "<div style='clear: both'></div><div ". $sharing_container_style ." class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' " . ( $this->get_cached_share_count( $this->share_count_transient_id ) === false ? "heateor-sss-data-href='" . $post_url . "'" : '' ) . "><div class='heateor_sss_sharing_title' " . $sharing_title_style . " >" . ucfirst( $this->options['title'] ) . "</div>" . $sharing_div . "</div><div style='clear: both'></div>";
515
  if ( $sharing_bp_activity ) {
516
  echo $horizontal_div;
517
  }
569
  if ( isset( $this->options['vertical_counts'] ) && isset( $this->options['vertical_counter_position'] ) && in_array( $this->options['vertical_counter_position'], array( 'left', 'right' ) ) ) {
570
  $vertical_sharing_width += $vertical_sharing_width*60/100;
571
  }
572
+ // share count transient ID
573
+ $this->share_count_transient_id = $this->get_share_count_transient_id( $post_url );
574
  $sharing_div = $this->prepare_sharing_html( $sharing_url ? $sharing_url : $post_url, 'vertical', isset( $this->options['vertical_counts'] ), isset( $this->options['vertical_total_shares'] ) );
575
  $offset = ( $this->options['alignment'] != '' && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options['alignment'] . ': ' . $this->options[$this->options['alignment'].'_offset'] . 'px;' : '' ) . ( $this->options['top_offset'] != '' ? 'top: '.$this->options['top_offset'] . 'px;' : '' );
576
+ $vertical_div = "<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing" . ( isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . "' style='width:" . ( $vertical_sharing_width + 4 ) . "px;" . $offset . ( $this->options['vertical_bg'] != '' ? 'background-color: '.$this->options['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;' ) . "' " . ( $this->get_cached_share_count( $this->share_count_transient_id ) === false ? "heateor-sss-data-href='" . $post_url . "'" : '' ) . ">" . $sharing_div . "</div>";
577
  // show vertical sharing
578
  if ( ( isset( $this->options['vertical_home'] ) && is_front_page() ) || ( isset( $this->options['vertical_category'] ) && is_category() ) || ( isset( $this->options['vertical_archive'] ) && is_archive() ) || ( isset( $this->options['vertical_post'] ) && is_single() && isset( $post -> post_type ) && $post -> post_type == 'post' ) || ( isset( $this->options['vertical_page'] ) && is_page() && isset( $post -> post_type ) && $post -> post_type == 'page' ) || ( isset( $this->options['vertical_excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $this->options['vertical_bb_forum'] ) && current_filter() == 'bbp_template_before_single_forum' ) || ( isset( $this->options['vertical_bb_topic'] ) && in_array( current_filter(), array( 'bbp_template_before_single_topic', 'bbp_template_before_lead_topic' )) ) || (current_filter() == 'bp_before_group_header' && isset( $this->options['vertical_bp_group'] ) ) ) {
579
  if ( in_array( current_filter(), array( 'bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bp_before_group_header' ) ) ) {
589
  if ( $this->options['vertical_target_url'] == 'default' ) {
590
  $post_url = site_url();
591
  $sharing_url = $this->get_short_url( $post_url, 0 );
592
+ // share count transient ID
593
+ $this->share_count_transient_id = 0;
594
  $sharing_div = $this->prepare_sharing_html( $sharing_url ? $sharing_url : $post_url, 'vertical', isset( $this->options['vertical_counts'] ), isset( $this->options['vertical_total_shares'] ) );
595
+ $vertical_div = "<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing" . ( isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . "' style='width:" . ( $vertical_sharing_width + 4 ) . "px;" . $offset . ( $this->options['vertical_bg'] != '' ? 'background-color: ' . $this->options['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;' ) . "' " . ( $this->get_cached_share_count( 0 ) === false ? "heateor-sss-data-href='" . $post_url . "'" : '' ) . ">" . $sharing_div . "</div>";
596
  }
597
  $content = $content . $vertical_div;
598
  if ( current_filter() == 'the_content' ) {
664
  }
665
 
666
  $response_data = array();
667
+
668
+ $multiplier = 60;
669
+ switch ( $this->options['share_count_cache_refresh_unit'] ) {
670
+ case 'seconds':
671
+ $multiplier = 1;
672
+ break;
673
+
674
+ case 'minutes':
675
+ $multiplier = 60;
676
+ break;
677
+
678
+ case 'hours':
679
+ $multiplier = 3600;
680
+ break;
681
+
682
+ case 'days':
683
+ $multiplier = 3600*24;
684
+ break;
685
+
686
+ default:
687
+ $multiplier = 60;
688
+ break;
689
+ }
690
+ $transient_expiration_time = $multiplier * $this->options['share_count_cache_refresh_count'];
691
+
692
  foreach ( $target_urls as $target_url ) {
693
+ $share_count_transient = array();
694
  foreach ( $sharing_networks as $provider ) {
695
  switch ( $provider ) {
696
  case 'facebook':
740
  case 'facebook':
741
  if ( ! empty( $body[0] -> total_count ) ) {
742
  $response_data[$target_url]['facebook'] = $body[0] -> total_count;
743
+ $share_count_transient['facebook'] = $body[0] -> total_count;
744
  } else {
745
  $response_data[$target_url]['facebook'] = 0;
746
  }
748
  case 'twitter':
749
  if ( ! empty( $body -> count ) ) {
750
  $response_data[$target_url]['twitter'] = $body -> count;
751
+ $share_count_transient['twitter'] = $body -> count;
752
  } else {
753
  $response_data[$target_url]['twitter'] = 0;
754
  }
756
  case 'linkedin':
757
  if ( ! empty( $body -> count ) ) {
758
  $response_data[$target_url]['linkedin'] = $body -> count;
759
+ $share_count_transient['linkedin'] = $body -> count;
760
  } else {
761
  $response_data[$target_url]['linkedin'] = 0;
762
  }
767
  $children = $body -> data -> children;
768
  if ( ! empty( $children[0] -> data -> score ) ) {
769
  $response_data[$target_url]['reddit'] = $children[0] -> data -> score;
770
+ $share_count_transient['reddit'] = $children[0] -> data -> score;
771
  }
772
  }
773
  break;
774
  case 'delicious':
775
  if ( ! empty( $body[0] -> total_posts ) ) {
776
  $response_data[$target_url]['delicious'] = $body[0] -> total_posts;
777
+ $share_count_transient['delicious'] = $body[0] -> total_posts;
778
  } else {
779
  $response_data[$target_url]['delicious'] = 0;
780
  }
782
  case 'pinterest':
783
  if ( ! empty( $body -> count ) ) {
784
  $response_data[$target_url]['pinterest'] = $body -> count;
785
+ $share_count_transient['pinterest'] = $body -> count;
786
  } else {
787
  $response_data[$target_url]['pinterest'] = 0;
788
  }
790
  case 'buffer':
791
  if ( ! empty( $body -> shares ) ) {
792
  $response_data[$target_url]['buffer'] = $body -> shares;
793
+ $share_count_transient['buffer'] = $body -> shares;
794
  } else {
795
  $response_data[$target_url]['buffer'] = 0;
796
  }
798
  case 'stumbleupon':
799
  if ( ! empty( $body -> result ) && isset( $body -> result -> views ) ) {
800
  $response_data[$target_url]['stumbleupon'] = $body -> result -> views;
801
+ $share_count_transient['stumbleupon'] = $body -> result -> views;
802
  } else {
803
  $response_data[$target_url]['stumbleupon'] = 0;
804
  }
806
  case 'google_plus':
807
  if ( ! empty( $body ) ) {
808
  $response_data[$target_url]['google_plus'] = $body;
809
+ $share_count_transient['google_plus'] = (int) str_replace( '"', '', $body );
810
  } else {
811
  $response_data[$target_url]['google_plus'] = 0;
812
  }
814
  case 'vkontakte':
815
  if ( ! empty( $body ) ) {
816
  $response_data[$target_url]['vkontakte'] = $body;
817
+ $share_count_transient['vkontakte'] = $body;
818
  } else {
819
  $response_data[$target_url]['vkontakte'] = 0;
820
  }
822
  }
823
  }
824
  }
825
+ set_transient( 'heateor_sss_share_count_' . $this->get_share_count_transient_id( $target_url ), $share_count_transient, $transient_expiration_time );
826
  }
827
+ do_action( 'heateor_sss_share_count_ajax_hook', $response_data );
828
  $this->ajax_response( array( 'status' => 1, 'message' => $response_data ) );
829
+
830
+ }
831
+
832
+ /**
833
+ * Get ID of the share count transient
834
+ *
835
+ * @since 1.0.0
836
+ */
837
+ private function get_share_count_transient_id( $target_url ) {
838
+
839
+ if ( $this->options['horizontal_target_url_custom'] == $target_url || $this->options['vertical_target_url_custom'] == $target_url ) {
840
+ $post_id = 'custom';
841
+ } else {
842
+ $post_id = url_to_postid( $target_url );
843
+ }
844
+ return $post_id;
845
+
846
  }
847
 
848
  /**
1011
  heateor_sss_update_svg_css( $this->options['vertical_font_color_hover'], 'sassy-social-share-hover-svg-vertical' );
1012
  }
1013
 
1014
+ $this->options['share_count_cache_refresh_count'] = '30';
1015
+ $this->options['share_count_cache_refresh_unit'] = 'minutes';
1016
+ update_option( 'heateor_sss', $this->options );
1017
+
1018
  // update plugin version in database
1019
  update_option( 'heateor_sss_version', $this->version );
1020
  }
public/css/sassy-social-share-public.css CHANGED
@@ -1,2 +1,2 @@
1
- @charset "utf-8";#heateor_sss_error{color:red;margin:7px 0}.heateor_sss_login_container{margin:2px 0}.heateor_sss_login_container img,.heateor_sss_sharing_container img{cursor:pointer;margin:2px;border:none}.heateor_sss_login_container img{display:none;float:left}#heateor_sss_loading_image{display:block!important;float:none}.heateor_sss_error{background-color:#FFFFE0;border:1px solid #E6DB55;padding:5px;margin:10px}#heateor_sss_sharing_more_providers{position:fixed;top:50%;left:47%;background:#FAFAFA;width:650px;margin:-180px 0 0 -300px;z-index:10000000;text-shadow:none!important;height:308px}#heateor_sss_popup_bg{background:url(../../images/transparent_bg.png);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:#58B8F8!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_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:250px;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:#fff;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}.heateor_sss_share_count{display:block;text-indent:0!important;visibility:hidden;background-color:#58B8F8!important;width:5px;height:auto;text-align:center;min-width:8px!important;padding:1px 4px!important;color:#fff!important;font-family:'Open Sans',arial,sans-serif!important;font-size:10px!important;font-weight:600!important;-webkit-border-radius:15px!important;border-radius:15px!important;-webkit-box-shadow:0 2px 2px rgba(0,0,0,.4);box-shadow:0 2px 2px rgba(0,0,0,.4);text-shadow:0 -1px 0 rgba(0,0,0,.2);line-height:14px!important;border:2px solid #fff!important;z-index:1;margin:2px auto!important;box-sizing:content-box!important}.heateor_sss_share_count,.heateor_sss_vertical_sharing{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important}ul.heateor_sss_login_ul,ul.heateor_sss_sharing_ul{list-style:none!important;padding-left:0!important}.heateorSssXingButton{background-position:-64px 0;width:32px;height:32px;display:block}.heateorSssFacebookButton{background-position:0 0;width:32px;height:32px;display:none}.heateorSssLiveButton{background-position:-32px -96px;width:32px;height:32px;display:block}.heateorSssGoogleButton{background-position:-32px 0;width:32px;height:32px;display:none}.heateorSssInstagramButton{background-position:0 -32px;width:32px;height:32px;display:block!important}.heateorSssLinkedinButton{background-position:-32px -32px;width:32px;height:32px;display:none}.heateorSssTwitterButton{background-position:0 -64px;width:32px;height:32px;display:block!important}.heateorSssVkontakteButton{background-position:-32px -64px;width:32px;height:32px;display:none}ul.heateor_sss_sharing_ul{margin:1px 0!important}#heateor_sss_sharing_popup_close img{opacity: 1!important;background:0 0!important;border:none!important;outline:0!important;box-shadow:none!important;width:auto!important;height:auto!important;top:inherit!important;right:inherit!important;left:9px!important;padding:0!important}ul.heateor_sss_sharing_ul li.heateorSssSharingRound{background:0 0!important}.heateor_sss_square_count{display:none;text-align:center;font-weight:bolder;font-family:sans-serif;font-style: normal;font-size: .8em;visibility:hidden}ul.heateor_sss_sharing_ul li{float:left!important;margin:0!important;padding:0!important;list-style:none!important;border:none!important}.heateorSssSharing,.heateorSssSharingButton{display:block;cursor:pointer;margin:2px}ul.heateor_sss_login_ul li:before,ul.heateor_sss_sharing_ul li:before{content:none!important}.heateor_sss_vertical_sharing{background:0 0;-webkit-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);box-shadow:0 1px 4px 1px rgba(0,0,0,.1);position:fixed;overflow:visible;z-index:10000000;display:block;padding:10px;border-radius:4px;opacity:1;box-sizing:content-box!important}li.heateor_sss_facebook_like .fb-like span,li.heateor_sss_facebook_recommend .fb-like span{vertical-align:top!important}li.heateor_sss_facebook_like .fb-like span iframe,li.heateor_sss_facebook_recommend .fb-like span iframe{max-width:none!important;z-index:1000!important}.heateor_sss_counter_container li{height:21px}.heateorSssInstagramBackground{background-color:#624E47}.heateorSssYummlyBackground{background-color:#E16120}.heateorSssBufferBackground{background-color:#000}.heateorSssDeliciousBackground{background-color:#53BEEE}.heateorSssFacebookBackground{background-color:#3C589A}.heateorSssDiggBackground{background-color:#006094}.heateorSssEmailBackground{background-color:#649A3F}.heateorSssFloatitBackground{background-color:#53BEEE}.heateorSssGoogleBackground{background-color:#dd4b39}.heateorSssGoogleplusBackground{background-color:#dd4b39}.heateorSssLinkedinBackground{background-color:#2886EF}.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:#14B2C8}.heateorSssVkontakteBackground{background-color:#5E84AC}.heateorSssYahooBackground{background-color:#8F03CC}.heateorSssXingBackground{background-color:#00797D}.heateorSssWhatsappBackground{background-color:#55EB4C}.heateorSssTCBackground,.heateorSssTCBackground:hover{border-width: 0!important;background-color:transparent;}.heateorSssTCBackground{background-color:transparent!important;font-style:normal!important;word-wrap:normal;color:#666;line-height:1;visibility:hidden;}.heateorSssSharingSvg{width:100%;height:100%}.heateorSssSharing{float:left;border:none}.heateorSssSharingArrow{background-color:#000!important;height:16px;width:16px;cursor:pointer;margin-top:10px}.heateorSssPushIn{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cGF0aCBkPSJNIDcgNiBxIDIgNiAxMCA2IHYgLTYgbCA2IDkgbCAtNiA5IHYgLTYgcSAtMTAgMiAtMTAgLTEyIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZT0iI2ZmZiIgZmlsbD0id2hpdGUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.heateorSssPullOut{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cGF0aCBkPSJNIDIzIDYgcSAtMiA2IC0xMCA2IHYgLTYgbCAtNiA5IGwgNiA5IHYgLTYgcSAxMCAyIDEwIC0xMiIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2U9IiNmZmYiIGZpbGw9IndoaXRlIiBzdHJva2UtbGluZWNhcD0icm91bmQiPjwvcGF0aD48L3N2Zz4=) left no-repeat}.heateorSssCommentingTabs li{padding-left:0!important;float:left;margin:0 1em 0 0!important;list-style:none;color:#aaa;display:block;cursor:pointer;font-size:.85em}div.heateorSssTotalShareCount{word-wrap:normal!important;font-weight: bolder;font-family: sans-serif;padding: 0;margin: 0;text-align:center}div.heateorSssTotalShareText{word-wrap:normal!important;margin: 0;padding: 0;text-align: center;}div.heateor_sss_horizontal_sharing li{width:auto}.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}
2
  .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}.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}i.heateorSssWhatsappBackground a{display: inline!important}div.heateor_sss_horizontal_sharing li.heateor_sss_facebook_like{width:110px}div.heateor_sss_horizontal_sharing li.heateor_sss_facebook_recommend{width:145px}div.heateor_sss_horizontal_sharing li.heateor_sss_twitter_tweet{width:95px}div.heateor_sss_horizontal_sharing li.heateor_sss_linkedin_share{width:117px}div.heateor_sss_horizontal_sharing li.heateor_sss_google_plusone{width:74px}div.heateor_sss_horizontal_sharing li.heateor_sss_buffer_share{width:81px;}div.heateor_sss_horizontal_sharing li.heateor_sss_reddit_badge{width:130px}div.heateor_sss_horizontal_sharing li.heateor_sss_yummly_share{width:81px}div.heateor_sss_horizontal_sharing li.heateor_sss_google_plus_share{width:95px}div.heateor_sss_horizontal_sharing li.heateor_sss_pinterest_pin{width:76px}div.heateor_sss_horizontal_sharing li.heateor_sss_xing{width:98px}div.heateor_sss_horizontal_sharing .heateor_sss_stumbleupon{width:80px}i.heateorSssLineBackground a{display: inline!important;}.heateor_sss_sharing_container a{box-shadow:none!important;border:none!important}@media screen and (max-width:783px){#heateor_sss_sharing_more_providers{width:80%;left:60%;margin-left:-50%;text-shadow:none!important}#heateor_sss_sharing_more_providers .filter input.search{border:1px solid #ccc;width:92%}}
1
+ @charset "utf-8";#heateor_sss_error{color:red;margin:7px 0}.heateor_sss_login_container{margin:2px 0}.heateor_sss_login_container img,.heateor_sss_sharing_container img{cursor:pointer;margin:2px;border:none}.heateor_sss_login_container img{display:none;float:left}#heateor_sss_loading_image{display:block!important;float:none}.heateor_sss_error{background-color:#FFFFE0;border:1px solid #E6DB55;padding:5px;margin:10px}#heateor_sss_sharing_more_providers{position:fixed;top:50%;left:47%;background:#FAFAFA;width:650px;margin:-180px 0 0 -300px;z-index:10000000;text-shadow:none!important;height:308px}#heateor_sss_popup_bg{background:url(../../images/transparent_bg.png);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:#58B8F8!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_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:250px;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:#fff;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}.heateor_sss_share_count{display:block;text-indent:0!important;visibility:hidden;background-color:#58B8F8!important;width:5px;height:auto;text-align:center;min-width:8px!important;padding:1px 4px!important;color:#fff!important;font-family:'Open Sans',arial,sans-serif!important;font-size:10px!important;font-weight:600!important;-webkit-border-radius:15px!important;border-radius:15px!important;-webkit-box-shadow:0 2px 2px rgba(0,0,0,.4);box-shadow:0 2px 2px rgba(0,0,0,.4);text-shadow:0 -1px 0 rgba(0,0,0,.2);line-height:14px!important;border:2px solid #fff!important;z-index:1;margin:2px auto!important;box-sizing:content-box!important}.heateor_sss_share_count,.heateor_sss_vertical_sharing{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important}ul.heateor_sss_login_ul,ul.heateor_sss_sharing_ul{list-style:none!important;padding-left:0!important}.heateorSssXingButton{background-position:-64px 0;width:32px;height:32px;display:block}.heateorSssFacebookButton{background-position:0 0;width:32px;height:32px;display:none}.heateorSssLiveButton{background-position:-32px -96px;width:32px;height:32px;display:block}.heateorSssGoogleButton{background-position:-32px 0;width:32px;height:32px;display:none}.heateorSssInstagramButton{background-position:0 -32px;width:32px;height:32px;display:block!important}.heateorSssLinkedinButton{background-position:-32px -32px;width:32px;height:32px;display:none}.heateorSssTwitterButton{background-position:0 -64px;width:32px;height:32px;display:block!important}.heateorSssVkontakteButton{background-position:-32px -64px;width:32px;height:32px;display:none}ul.heateor_sss_sharing_ul{margin:1px 0!important}#heateor_sss_sharing_popup_close img{opacity: 1!important;background:0 0!important;border:none!important;outline:0!important;box-shadow:none!important;width:auto!important;height:auto!important;top:inherit!important;right:inherit!important;left:9px!important;padding:0!important}ul.heateor_sss_sharing_ul li.heateorSssSharingRound{background:0 0!important}.heateor_sss_square_count{display:none;text-align:center;font-weight:bolder;font-family:sans-serif;font-style: normal;font-size: .8em;visibility:hidden}ul.heateor_sss_sharing_ul li{float:left!important;margin:0!important;padding:0!important;list-style:none!important;border:none!important}.heateorSssSharing,.heateorSssSharingButton{display:block;cursor:pointer;margin:2px}ul.heateor_sss_login_ul li:before,ul.heateor_sss_sharing_ul li:before{content:none!important}.heateor_sss_vertical_sharing{background:0 0;-webkit-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);box-shadow:0 1px 4px 1px rgba(0,0,0,.1);position:fixed;overflow:visible;z-index:10000000;display:block;padding:10px;border-radius:4px;opacity:1;box-sizing:content-box!important}li.heateor_sss_facebook_like .fb-like span,li.heateor_sss_facebook_recommend .fb-like span{vertical-align:top!important}li.heateor_sss_facebook_like .fb-like span iframe,li.heateor_sss_facebook_recommend .fb-like span iframe{max-width:none!important;z-index:1000!important}.heateor_sss_counter_container li{height:21px}.heateorSssInstagramBackground{background-color:#624E47}.heateorSssYummlyBackground{background-color:#E16120}.heateorSssBufferBackground{background-color:#000}.heateorSssDeliciousBackground{background-color:#53BEEE}.heateorSssFacebookBackground{background-color:#3C589A}.heateorSssDiggBackground{background-color:#006094}.heateorSssEmailBackground{background-color:#649A3F}.heateorSssFloatitBackground{background-color:#53BEEE}.heateorSssGoogleBackground{background-color:#dd4b39}.heateorSssGoogleplusBackground{background-color:#dd4b39}.heateorSssLinkedinBackground{background-color:#2886EF}.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}.heateorSssWhatsappBackground{background-color:#55EB4C}.heateorSssTCBackground,.heateorSssTCBackground:hover{border-width: 0!important;background-color:transparent;}.heateorSssTCBackground{background-color:transparent!important;font-style:normal!important;word-wrap:normal;color:#666;line-height:1;visibility:hidden;}.heateorSssSharingSvg{width:100%;height:100%}.heateorSssSharing{float:left;border:none}.heateorSssSharingArrow{background-color:#000!important;height:16px;width:16px;cursor:pointer;margin-top:10px}.heateorSssPushIn{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cGF0aCBkPSJNIDcgNiBxIDIgNiAxMCA2IHYgLTYgbCA2IDkgbCAtNiA5IHYgLTYgcSAtMTAgMiAtMTAgLTEyIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZT0iI2ZmZiIgZmlsbD0id2hpdGUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PC9wYXRoPjwvc3ZnPg==) left no-repeat}.heateorSssPullOut{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMCAzMCI+DQo8cGF0aCBkPSJNIDIzIDYgcSAtMiA2IC0xMCA2IHYgLTYgbCAtNiA5IGwgNiA5IHYgLTYgcSAxMCAyIDEwIC0xMiIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2U9IiNmZmYiIGZpbGw9IndoaXRlIiBzdHJva2UtbGluZWNhcD0icm91bmQiPjwvcGF0aD48L3N2Zz4=) left no-repeat}.heateorSssCommentingTabs li{padding-left:0!important;float:left;margin:0 1em 0 0!important;list-style:none;color:#aaa;display:block;cursor:pointer;font-size:.85em}div.heateorSssTotalShareCount{word-wrap:normal!important;font-weight: bolder;font-family: sans-serif;padding: 0;margin: 0;text-align:center}div.heateorSssTotalShareText{word-wrap:normal!important;margin: 0;padding: 0;text-align: center;}div.heateor_sss_horizontal_sharing li{width:auto}.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}
2
  .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}.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}i.heateorSssWhatsappBackground a{display: inline!important}div.heateor_sss_horizontal_sharing li.heateor_sss_facebook_like{width:110px}div.heateor_sss_horizontal_sharing li.heateor_sss_facebook_recommend{width:145px}div.heateor_sss_horizontal_sharing li.heateor_sss_twitter_tweet{width:95px}div.heateor_sss_horizontal_sharing li.heateor_sss_linkedin_share{width:117px}div.heateor_sss_horizontal_sharing li.heateor_sss_google_plusone{width:74px}div.heateor_sss_horizontal_sharing li.heateor_sss_buffer_share{width:81px;}div.heateor_sss_horizontal_sharing li.heateor_sss_reddit_badge{width:130px}div.heateor_sss_horizontal_sharing li.heateor_sss_yummly_share{width:81px}div.heateor_sss_horizontal_sharing li.heateor_sss_google_plus_share{width:95px}div.heateor_sss_horizontal_sharing li.heateor_sss_pinterest_pin{width:76px}div.heateor_sss_horizontal_sharing li.heateor_sss_xing{width:98px}div.heateor_sss_horizontal_sharing .heateor_sss_stumbleupon{width:80px}i.heateorSssLineBackground a{display: inline!important;}.heateor_sss_sharing_container a{box-shadow:none!important;border:none!important}@media screen and (max-width:783px){#heateor_sss_sharing_more_providers{width:80%;left:60%;margin-left:-50%;text-shadow:none!important}#heateor_sss_sharing_more_providers .filter input.search{border:1px solid #ccc;width:92%}}
public/js/sassy-social-share-public.js CHANGED
@@ -541,7 +541,7 @@ function heateorSssGetSharingCounts(horizontalCounts, verticalCounts){
541
  var targetUrls = [];
542
  jQuery('.heateor_sss_sharing_container').each(function(){
543
  var currentTargetUrl = jQuery(this).attr('heateor-sss-data-href');
544
- if(heateorSssUrlCountFetched.indexOf(currentTargetUrl) == -1){
545
  targetUrls.push(currentTargetUrl);
546
  heateorSssUrlCountFetched += ',' + currentTargetUrl;
547
  }
541
  var targetUrls = [];
542
  jQuery('.heateor_sss_sharing_container').each(function(){
543
  var currentTargetUrl = jQuery(this).attr('heateor-sss-data-href');
544
+ if(currentTargetUrl != null && heateorSssUrlCountFetched.indexOf(currentTargetUrl) == -1){
545
  targetUrls.push(currentTargetUrl);
546
  heateorSssUrlCountFetched += ',' + currentTargetUrl;
547
  }
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.4.1
7
- Stable tag: 1.6
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,16 @@ 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
  = 1.6 =
119
  * [Improvement] Improved bit.ly short url cache resulting in reduced page load time
120
  * [Improvement] Specified "heateor_sss_sharing_title" class name for the div containing title of sharing interface
@@ -165,4 +175,14 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
165
  = 1.6 =
166
  * [Improvement] Improved bit.ly short url cache resulting in reduced page load time
167
  * [Improvement] Specified "heateor_sss_sharing_title" class name for the div containing title of sharing interface
168
- * [Improvement] Compatible with "Social Share myCRED Integration" add-on
 
 
 
 
 
 
 
 
 
 
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.4.1
7
+ Stable tag: 1.7
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
+ = 1.7 =
119
+ * [Bugfix] Website title was appearing in homepage content in a few cases
120
+ * [Bugfix] Fixed a PHP notice filling error log when enabled WordPress debugging
121
+ * [Bugfix] Share counts were not appearing in a few cases
122
+ * [Improvement] Share counts are now being cached (using WordPress transients) resulting in faster page loading with share counts enabled
123
+ * [Improvement] Twitter logo background color updated to match Twitter's brand guidelines
124
+ * [New] Added option to clear Bit.ly shorturl cache
125
+ * [New] Added option to clear share counts cache
126
+ * [New] Added option to specify time duration to refresh share count cache
127
+
128
  = 1.6 =
129
  * [Improvement] Improved bit.ly short url cache resulting in reduced page load time
130
  * [Improvement] Specified "heateor_sss_sharing_title" class name for the div containing title of sharing interface
175
  = 1.6 =
176
  * [Improvement] Improved bit.ly short url cache resulting in reduced page load time
177
  * [Improvement] Specified "heateor_sss_sharing_title" class name for the div containing title of sharing interface
178
+ * [Improvement] Compatible with "Social Share myCRED Integration" add-on
179
+
180
+ = 1.7 =
181
+ * [Bugfix] Website title was appearing in homepage content in a few cases
182
+ * [Bugfix] Fixed a PHP notice filling error log when enabled WordPress debugging
183
+ * [Bugfix] Share counts were not appearing in a few cases
184
+ * [Improvement] Share counts are now being cached (using WordPress transients) resulting in faster page loading with share counts enabled
185
+ * [Improvement] Twitter logo background color updated to match Twitter's brand guidelines
186
+ * [New] Added option to clear Bit.ly shorturl cache
187
+ * [New] Added option to clear share counts cache
188
+ * [New] Added option to specify time duration to refresh share count cache
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: 1.6
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', '1.6' );
25
 
26
  // plugin core class object
27
  $heateor_sss = null;
@@ -101,7 +101,7 @@ function heateor_sss_default_options() {
101
  'top_offset' => '100',
102
  'vertical_post' => '1',
103
  'vertical_page' => '1',
104
- 'vertical_excerpt' => '1',
105
  'vertical_more' => '1',
106
  'hide_mobile_sharing' => '1',
107
  'vertical_screen_width' => '783',
@@ -111,6 +111,8 @@ function heateor_sss_default_options() {
111
  'bottom_sharing_alignment' => 'left',
112
  'footer_script' => '1',
113
  'delete_options' => '1',
 
 
114
  'bitly_username' => '',
115
  'bitly_key' => '',
116
  'language' => get_locale(),
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: 1.7
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', '1.7' );
25
 
26
  // plugin core class object
27
  $heateor_sss = null;
101
  'top_offset' => '100',
102
  'vertical_post' => '1',
103
  'vertical_page' => '1',
104
+ 'vertical_home' => '1',
105
  'vertical_more' => '1',
106
  'hide_mobile_sharing' => '1',
107
  'vertical_screen_width' => '783',
111
  'bottom_sharing_alignment' => 'left',
112
  'footer_script' => '1',
113
  'delete_options' => '1',
114
+ 'share_count_cache_refresh_count' => '30',
115
+ 'share_count_cache_refresh_unit' => 'minutes',
116
  'bitly_username' => '',
117
  'bitly_key' => '',
118
  'language' => get_locale(),
uninstall.php CHANGED
@@ -29,7 +29,8 @@ if ( isset( $heateor_sss_options['delete_options'] ) ) {
29
  // For Single site
30
  if ( ! is_multisite() ) {
31
  delete_option( $heateor_sss_option_to_delete );
32
- $wpdb->query( "delete from $wpdb->postmeta where meta_key like '_heateor_sss%'" );
 
33
  } else {
34
  // for multisite
35
  $heateor_sss_blog_ids = heateor_sss_get_blog_ids();
29
  // For Single site
30
  if ( ! is_multisite() ) {
31
  delete_option( $heateor_sss_option_to_delete );
32
+ $wpdb->query( "DELETE FROM $wpdb->postmeta WHERE meta_key LIKE '_heateor_sss%'" );
33
+ $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '_transient_heateor_sss_%'" );
34
  } else {
35
  // for multisite
36
  $heateor_sss_blog_ids = heateor_sss_get_blog_ids();