WordPress Social Sharing Plugin – Sassy Social Share - Version 3.3.9

Version Description

[8 April 2020] = [Bugfix] Sina Weibo share was not working [Bugfix] Facebook Messenger share was not working on mobile devices [Bugfix] "Search social networks" feature was not working at options page in admin area [Bugfix] bit.ly url shortener was not working [Improvement] Updated Facebook JS SDK to latest version 6.0 [Improvement] Updated ClipBoard JS to latest version 2.0.6

Download this release

Release Info

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

Code changes from version 3.3.8 to 3.3.9

admin/class-sassy-social-share-admin.php CHANGED
@@ -739,7 +739,12 @@ class Sassy_Social_Share_Admin {
739
  if ( $this->options['vertical_font_color_hover'] != '#fff' ) {
740
  heateor_sss_update_svg_css( $this->options['vertical_font_color_hover'], 'sassy-social-share-hover-svg-vertical' );
741
  }
742
-
 
 
 
 
 
743
  if ( version_compare( '3.3', $current_version ) > 0 ) {
744
  $this->options['youtube_username'] = '';
745
  $this->options['vertical_youtube_username'] = '';
739
  if ( $this->options['vertical_font_color_hover'] != '#fff' ) {
740
  heateor_sss_update_svg_css( $this->options['vertical_font_color_hover'], 'sassy-social-share-hover-svg-vertical' );
741
  }
742
+
743
+ if ( version_compare( '3.3.9', $current_version ) > 0 ) {
744
+ $this->options['bitly_access_token'] = '';
745
+ update_option( 'heateor_sss', $this->options );
746
+ }
747
+
748
  if ( version_compare( '3.3', $current_version ) > 0 ) {
749
  $this->options['youtube_username'] = '';
750
  $this->options['vertical_youtube_username'] = '';
admin/js/sassy-social-share-fb-sdk.js CHANGED
@@ -1 +1 @@
1
- !function(e,n,t){var o,c=e.getElementsByTagName(n)[0];e.getElementById(t)||(o=e.createElement(n),o.id=t,o.src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0",c.parentNode.insertBefore(o,c))}(document,"script","facebook-jssdk");
1
+ !function(e,n,t){var o,c=e.getElementsByTagName(n)[0];e.getElementById(t)||(o=e.createElement(n),o.id=t,o.src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v6.0",c.parentNode.insertBefore(o,c))}(document,"script","facebook-jssdk");
admin/partials/sassy-social-share-options-page.php CHANGED
@@ -954,7 +954,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
954
  <?php echo $sharing_network == 'Goodreads' ? '<a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/" target="_blank">' : ''; ?>
955
  <input id="heateor_sss_<?php echo $sharing_network ?>" type="checkbox" <?php echo $sharing_network == 'Goodreads' ? 'disabled ' : ''; ?><?php echo isset( $options['horizontal_re_providers'] ) && in_array( $sharing_network, $options['horizontal_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $sharing_network ?>" />
956
  <label <?php echo $sharing_network != 'Goodreads' ? 'for="heateor_sss_' . $sharing_network . '"' : ''; ?>><i style="display:block;width:18px;height:18px;" class="heateorSssSharing heateorSss<?php echo str_replace( array( '_', '.', ' ' ), '', ucfirst( $sharing_network ) ) ?>Background"><ss style="display:block;" class="heateorSssSharingSvg heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Svg"></ss></i></label>
957
- <label <?php echo $sharing_network != 'Goodreads' ? 'for="heateor_sss_' . $sharing_network . '"' : ''; ?>><?php echo str_replace( '_', ' ', ucfirst( $sharing_network ) ) ?></label>
958
  <?php echo $sharing_network == 'Goodreads' ? '</a>' : ''; ?>
959
  </div>
960
  <?php
@@ -1394,7 +1394,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1394
  <div class="heateorSssVerticalSharingProviderContainer">
1395
  <input id="heateor_sss_vertical_sharing_<?php echo $sharing_network ?>" type="checkbox" <?php echo isset( $options['vertical_re_providers'] ) && in_array( $sharing_network, $options['vertical_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $sharing_network ?>" />
1396
  <label for="heateor_sss_vertical_sharing_<?php echo $sharing_network ?>"><i style="display:block;width:18px;height:18px;" class="heateorSssSharing heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Background"><ss style="display:block;" class="heateorSssSharingSvg heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Svg"></ss></i></label>
1397
- <label for="heateor_sss_vertical_sharing_<?php echo $sharing_network ?>"><?php echo str_replace( '_', ' ', ucfirst( $sharing_network) ) ?></label>
1398
  </div>
1399
  <?php
1400
  }
@@ -1933,38 +1933,18 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1933
 
1934
  <tr>
1935
  <th>
1936
- <label for="heateor_sss_bitly_login"><?php _e("bit.ly Login", 'sassy-social-share' ); ?></label>
1937
- <img id="heateor_sss_bitly_login_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1938
  </th>
1939
  <td>
1940
- <input id="heateor_sss_bitly_login" name="heateor_sss[bitly_username]" type="text" value="<?php echo isset( $options['bitly_username'] ) ? $options['bitly_username'] : '' ?>" />
1941
  </td>
1942
  </tr>
1943
 
1944
- <tr class="heateor_sss_help_content" id="heateor_sss_bitly_login_help_cont">
1945
  <td colspan="2">
1946
  <div>
1947
- <?php echo sprintf(__( 'Login to your bit.ly account and navigate to <a href="%s" target="_blank">this link</a> to get bit.ly Login', 'sassy-social-share' ), 'https://bitly.com/a/your_api_key' ) ?>
1948
- <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_bitly_username.png', __FILE__ ); ?>" />
1949
- </div>
1950
- </td>
1951
- </tr>
1952
-
1953
- <tr>
1954
- <th>
1955
- <label for="heateor_sss_bitly_key"><?php _e("bit.ly API Key", 'sassy-social-share' ); ?></label>
1956
- <img id="heateor_sss_bitly_key_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1957
- </th>
1958
- <td>
1959
- <input id="heateor_sss_bitly_key" name="heateor_sss[bitly_key]" type="text" value="<?php echo isset( $options['bitly_key'] ) ? $options['bitly_key'] : '' ?>" />
1960
- </td>
1961
- </tr>
1962
-
1963
- <tr class="heateor_sss_help_content" id="heateor_sss_bitly_key_help_cont">
1964
- <td colspan="2">
1965
- <div>
1966
- <?php echo sprintf(__( 'Login to your bit.ly account and navigate to <a href="%s" target="_blank">this link</a> to get your API key', 'sassy-social-share' ), 'https://bitly.com/a/your_api_key' ) ?>
1967
- <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_bitly_apikey.png', __FILE__ ); ?>" />
1968
  </div>
1969
  </td>
1970
  </tr>
954
  <?php echo $sharing_network == 'Goodreads' ? '<a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/" target="_blank">' : ''; ?>
955
  <input id="heateor_sss_<?php echo $sharing_network ?>" type="checkbox" <?php echo $sharing_network == 'Goodreads' ? 'disabled ' : ''; ?><?php echo isset( $options['horizontal_re_providers'] ) && in_array( $sharing_network, $options['horizontal_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $sharing_network ?>" />
956
  <label <?php echo $sharing_network != 'Goodreads' ? 'for="heateor_sss_' . $sharing_network . '"' : ''; ?>><i style="display:block;width:18px;height:18px;" class="heateorSssSharing heateorSss<?php echo str_replace( array( '_', '.', ' ' ), '', ucfirst( $sharing_network ) ) ?>Background"><ss style="display:block;" class="heateorSssSharingSvg heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Svg"></ss></i></label>
957
+ <label class="lblSocialNetwork" <?php echo $sharing_network != 'Goodreads' ? 'for="heateor_sss_' . $sharing_network . '"' : ''; ?>><?php echo str_replace( '_', ' ', ucfirst( $sharing_network ) ) ?></label>
958
  <?php echo $sharing_network == 'Goodreads' ? '</a>' : ''; ?>
959
  </div>
960
  <?php
1394
  <div class="heateorSssVerticalSharingProviderContainer">
1395
  <input id="heateor_sss_vertical_sharing_<?php echo $sharing_network ?>" type="checkbox" <?php echo isset( $options['vertical_re_providers'] ) && in_array( $sharing_network, $options['vertical_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $sharing_network ?>" />
1396
  <label for="heateor_sss_vertical_sharing_<?php echo $sharing_network ?>"><i style="display:block;width:18px;height:18px;" class="heateorSssSharing heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Background"><ss style="display:block;" class="heateorSssSharingSvg heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Svg"></ss></i></label>
1397
+ <label class="lblSocialNetwork" for="heateor_sss_vertical_sharing_<?php echo $sharing_network ?>"><?php echo str_replace( '_', ' ', ucfirst( $sharing_network) ) ?></label>
1398
  </div>
1399
  <?php
1400
  }
1933
 
1934
  <tr>
1935
  <th>
1936
+ <label for="heateor_sss_bitly_access_token"><?php _e( "Bit.ly Generic Access Token", 'sassy-social-share' ); ?></label>
1937
+ <img id="heateor_sss_bitly_access_token_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1938
  </th>
1939
  <td>
1940
+ <input id="heateor_sss_bitly_access_token" name="heateor_sss[bitly_access_token]" type="text" value="<?php echo isset( $options['bitly_access_token'] ) ? $options['bitly_access_token'] : '' ?>" />
1941
  </td>
1942
  </tr>
1943
 
1944
+ <tr class="heateor_sss_help_content" id="heateor_sss_bitly_access_token_help_cont">
1945
  <td colspan="2">
1946
  <div>
1947
+ <?php echo sprintf( __( 'Login to your bit.ly account and navigate to <strong>Profile Settings > Generic Access Token</strong> (top-right corner) and authenticate to generate access token. More details at the <a href="%s" target="_blank">link</a>', 'sassy-social-share' ), 'https://support.sendible.com/hc/en-us/articles/360021876751-How-To-Access-Your-Bit-ly-Key' ) ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1948
  </div>
1949
  </td>
1950
  </tr>
includes/class-sassy-social-share-sharing-networks.php CHANGED
@@ -128,7 +128,7 @@ class Sassy_Social_Share_Sharing_Networks {
128
  'Refind' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("https://refind.com/?url=%encoded_post_url%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
129
  'Renren' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("//www.connect.renren.com/share/sharer?url=%encoded_post_url%&title=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
130
  'Segnalo' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://segnalo.virgilio.it/post.html.php?url=%encoded_post_url%&title=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
131
- 'Sina Weibo' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("//service.weibo.com/share/share.php?url=%encoded_post_url%&title=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
132
  'SiteJot' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://www.sitejot.com/loginform.php?iSiteAdd=&iSiteDes=")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
133
  'Skype' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("https://web.skype.com/share?url=%encoded_post_url%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
134
  'Slashdot' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("//slashdot.org/submission?url=%encoded_post_url%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
@@ -249,7 +249,7 @@ class Sassy_Social_Share_Sharing_Networks {
249
  'Refind' => '<a class="heateor_sss_amp heateor_sss_amp_refind" href="https://refind.com/?url=%encoded_post_url%" title="Refind" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/refind.svg" width="%width%" height="%height%" alt="Refind" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
250
  'Renren' => '<a class="heateor_sss_amp heateor_sss_amp_renren" href="//www.connect.renren.com/share/sharer?url=%encoded_post_url%&title=%post_title%" title="Renren" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/renren.svg" width="%width%" height="%height%" alt="Renren" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
251
  'Segnalo' => '<a class="heateor_sss_amp heateor_sss_amp_segnalo" href="http://segnalo.virgilio.it/post.html.php?url=%encoded_post_url%&title=%post_title%" title="Segnalo" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/segnalo.svg" width="%width%" height="%height%" alt="Segnalo" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
252
- 'Sina Weibo' => '<a class="heateor_sss_amp heateor_sss_amp_sina_weibo" href="//service.weibo.com/share/share.php?url=%encoded_post_url%&title=%post_title%" title="Sina Weibo" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/sina_weibo.svg" width="%width%" height="%height%" alt="Sina Weibo" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
253
  'SiteJot' => '<a class="heateor_sss_amp heateor_sss_amp_sitejot" href="http://www.sitejot.com/loginform.php?iSiteAdd=&iSiteDes=" title="SiteJot" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/sitejot.svg" width="%width%" height="%height%" alt="SiteJot" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
254
  'Skype' => '<a class="heateor_sss_amp heateor_sss_amp_skype" href="https://web.skype.com/share?url=%encoded_post_url%" title="Skype" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/skype.svg" width="%width%" height="%height%" alt="Skype" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
255
  'Slashdot' => '<a class="heateor_sss_amp heateor_sss_amp_slashdot" href="//slashdot.org/submission?url=%encoded_post_url%" title="Slashdot" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/slashdot.svg" width="%width%" height="%height%" alt="Slashdot" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
@@ -295,7 +295,7 @@ class Sassy_Social_Share_Sharing_Networks {
295
  if ( $this->options['fb_key'] != '' ) {
296
  $fb_key = $this->options['fb_key'];
297
  }
298
- $this->sharing_networks['Facebook_Messenger'] = '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("https://www.facebook.com/dialog/send?app_id=' . $fb_key . '&display=popup&link=%encoded_post_url%&redirect_uri=%encoded_post_url%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>';
299
  $whatsapp_share_url = $this->whatsapp_share_api();
300
  $this->sharing_networks['whatsapp'] = '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background"><a %amp_whatsapp% href="https://' . $whatsapp_share_url . '.whatsapp.com/send?text=%post_title% %encoded_post_url%" rel="nofollow noopener" target="_blank"><ss style="display:block" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></a></i></li>';
301
 
@@ -317,8 +317,7 @@ class Sassy_Social_Share_Sharing_Networks {
317
  if ( $this->options['fb_key'] ) {
318
  $fb_key = $this->options['fb_key'];
319
  }
320
- $this->amp_sharing_networks['Facebook_Messenger'] = '<a class="heateor_sss_amp heateor_sss_amp_facebook_messenger" href="https://www.facebook.com/dialog/send?app_id=' . $fb_key . '&display=popup&link=%encoded_post_url%&redirect_uri=%encoded_post_url%" title="Facebook Messenger" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/facebook_messenger.svg" width="%width%" height="%height%" alt="Facebook Messenger" class="amp-wp-enforced-sizes" style="width:%width%px;"></amp-img></a>';
321
-
322
 
323
  return $this->amp_sharing_networks;
324
 
@@ -331,6 +330,20 @@ class Sassy_Social_Share_Sharing_Networks {
331
  */
332
  private function whatsapp_share_api() {
333
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
334
  if ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) {
335
  // detect the device for Whatsapp share API
336
  $iphone = strpos( $_SERVER['HTTP_USER_AGENT'], "iPhone" );
@@ -338,15 +351,13 @@ class Sassy_Social_Share_Sharing_Networks {
338
  $palmpre = strpos( $_SERVER['HTTP_USER_AGENT'], "webOS" );
339
  $berry = strpos( $_SERVER['HTTP_USER_AGENT'], "BlackBerry" );
340
  $ipod = strpos( $_SERVER['HTTP_USER_AGENT'], "iPod" );
341
- // check if is a mobile
342
  if ( $iphone || $android || $palmpre || $ipod || $berry == true ) {
343
- return 'api';
344
- } else {
345
- return 'web';
346
  }
347
  }
348
 
349
- return 'api';
350
 
351
  }
352
 
128
  'Refind' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("https://refind.com/?url=%encoded_post_url%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
129
  'Renren' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("//www.connect.renren.com/share/sharer?url=%encoded_post_url%&title=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
130
  'Segnalo' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://segnalo.virgilio.it/post.html.php?url=%encoded_post_url%&title=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
131
+ 'Sina Weibo' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://service.weibo.com/share/share.php?url=%encoded_post_url%&title=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
132
  'SiteJot' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://www.sitejot.com/loginform.php?iSiteAdd=&iSiteDes=")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
133
  'Skype' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("https://web.skype.com/share?url=%encoded_post_url%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
134
  'Slashdot' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("//slashdot.org/submission?url=%encoded_post_url%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
249
  'Refind' => '<a class="heateor_sss_amp heateor_sss_amp_refind" href="https://refind.com/?url=%encoded_post_url%" title="Refind" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/refind.svg" width="%width%" height="%height%" alt="Refind" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
250
  'Renren' => '<a class="heateor_sss_amp heateor_sss_amp_renren" href="//www.connect.renren.com/share/sharer?url=%encoded_post_url%&title=%post_title%" title="Renren" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/renren.svg" width="%width%" height="%height%" alt="Renren" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
251
  'Segnalo' => '<a class="heateor_sss_amp heateor_sss_amp_segnalo" href="http://segnalo.virgilio.it/post.html.php?url=%encoded_post_url%&title=%post_title%" title="Segnalo" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/segnalo.svg" width="%width%" height="%height%" alt="Segnalo" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
252
+ 'Sina Weibo' => '<a class="heateor_sss_amp heateor_sss_amp_sina_weibo" href="http://service.weibo.com/share/share.php?url=%encoded_post_url%&title=%post_title%" title="Sina Weibo" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/sina_weibo.svg" width="%width%" height="%height%" alt="Sina Weibo" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
253
  'SiteJot' => '<a class="heateor_sss_amp heateor_sss_amp_sitejot" href="http://www.sitejot.com/loginform.php?iSiteAdd=&iSiteDes=" title="SiteJot" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/sitejot.svg" width="%width%" height="%height%" alt="SiteJot" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
254
  'Skype' => '<a class="heateor_sss_amp heateor_sss_amp_skype" href="https://web.skype.com/share?url=%encoded_post_url%" title="Skype" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/skype.svg" width="%width%" height="%height%" alt="Skype" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
255
  'Slashdot' => '<a class="heateor_sss_amp heateor_sss_amp_slashdot" href="//slashdot.org/submission?url=%encoded_post_url%" title="Slashdot" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/slashdot.svg" width="%width%" height="%height%" alt="Slashdot" class="amp-wp-enforced-sizes" style="width: %width%px;"></amp-img></a>',
295
  if ( $this->options['fb_key'] != '' ) {
296
  $fb_key = $this->options['fb_key'];
297
  }
298
+ $this->sharing_networks['Facebook_Messenger'] = '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("' . ( $this->check_if_mobile() ? 'fb-messenger://share/?link=%encoded_post_url%' : 'https://www.facebook.com/dialog/send?app_id='. $fb_key .'&display=popup&link=%encoded_post_url%&redirect_uri=%encoded_post_url%' ) . '")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>';
299
  $whatsapp_share_url = $this->whatsapp_share_api();
300
  $this->sharing_networks['whatsapp'] = '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background"><a %amp_whatsapp% href="https://' . $whatsapp_share_url . '.whatsapp.com/send?text=%post_title% %encoded_post_url%" rel="nofollow noopener" target="_blank"><ss style="display:block" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></a></i></li>';
301
 
317
  if ( $this->options['fb_key'] ) {
318
  $fb_key = $this->options['fb_key'];
319
  }
320
+ $this->amp_sharing_networks['Facebook_Messenger'] = '<a class="heateor_sss_amp heateor_sss_amp_facebook_messenger" href="' . ( $this->check_if_mobile() ? 'fb-messenger://share/?link=%encoded_post_url%' : 'https://www.facebook.com/dialog/send?app_id=' . $fb_key . '&display=popup&link=%encoded_post_url%&redirect_uri=%encoded_post_url%' ) . '" title="Facebook Messenger" rel="nofollow noopener" target="_blank"><amp-img src="%img_url%/facebook_messenger.svg" width="%width%" height="%height%" alt="Facebook Messenger" class="amp-wp-enforced-sizes" style="width:%width%px;"></amp-img></a>';
 
321
 
322
  return $this->amp_sharing_networks;
323
 
330
  */
331
  private function whatsapp_share_api() {
332
 
333
+ if ( $this->check_if_mobile() ) {
334
+ return 'api';
335
+ }
336
+ return 'web';
337
+
338
+ }
339
+
340
+ /**
341
+ * Check if webpage is being visited in a mobile device
342
+ *
343
+ * @since 3.3.9
344
+ */
345
+ private function check_if_mobile() {
346
+
347
  if ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) {
348
  // detect the device for Whatsapp share API
349
  $iphone = strpos( $_SERVER['HTTP_USER_AGENT'], "iPhone" );
351
  $palmpre = strpos( $_SERVER['HTTP_USER_AGENT'], "webOS" );
352
  $berry = strpos( $_SERVER['HTTP_USER_AGENT'], "BlackBerry" );
353
  $ipod = strpos( $_SERVER['HTTP_USER_AGENT'], "iPod" );
354
+ // check if it's a mobile
355
  if ( $iphone || $android || $palmpre || $ipod || $berry == true ) {
356
+ return true;
 
 
357
  }
358
  }
359
 
360
+ return false;
361
 
362
  }
363
 
includes/class-sassy-social-share-shortcodes.php CHANGED
@@ -195,7 +195,7 @@ class Sassy_Social_Share_Shortcodes {
195
  $inline_script .= 'var heateorSssUrlCountFetched = [], heateorSssSharesText = \''. htmlspecialchars( __( 'Shares', 'sassy-social-share' ), ENT_QUOTES ) . '\', heateorSssShareText = \'' . htmlspecialchars( __( 'Share', 'sassy-social-share' ), ENT_QUOTES ) . '\';';
196
  $inline_script .= 'function heateorSssPopup(e) {window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}';
197
  if ( $this->public_class_object->facebook_like_recommend_enabled() || $this->public_class_object->facebook_share_enabled() ) {
198
- $inline_script .= 'function heateorSssInitiateFB() {FB.init({appId:"",channelUrl:"",status:!0,cookie:!0,xfbml:!0,version:"v3.0"})}window.fbAsyncInit=function() {heateorSssInitiateFB(),' . ( defined( 'HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION' ) && $this->public_class_object->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")}) ),'. ( 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/'. ( $this->options['language'] ? $this->options['language'] : 'en_US' ) .'/sdk.js",o.parentNode.insertBefore(n,o) )}(document);';
199
  }
200
  $inline_script .= ';var heateorSssWhatsappShareAPI = "' . $this->public_class_object->whatsapp_share_api() . '";';
201
  wp_enqueue_script( 'heateor_sss_sharing_js', plugins_url( '../public/js/sassy-social-share-public.js', __FILE__ ), array( 'jquery' ), $this->public_class_object->version, $in_footer );
195
  $inline_script .= 'var heateorSssUrlCountFetched = [], heateorSssSharesText = \''. htmlspecialchars( __( 'Shares', 'sassy-social-share' ), ENT_QUOTES ) . '\', heateorSssShareText = \'' . htmlspecialchars( __( 'Share', 'sassy-social-share' ), ENT_QUOTES ) . '\';';
196
  $inline_script .= 'function heateorSssPopup(e) {window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}';
197
  if ( $this->public_class_object->facebook_like_recommend_enabled() || $this->public_class_object->facebook_share_enabled() ) {
198
+ $inline_script .= 'function heateorSssInitiateFB() {FB.init({appId:"",channelUrl:"",status:!0,cookie:!0,xfbml:!0,version:"v6.0"})}window.fbAsyncInit=function() {heateorSssInitiateFB(),' . ( defined( 'HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION' ) && $this->public_class_object->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")}) ),'. ( 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/'. ( $this->options['language'] ? $this->options['language'] : 'en_US' ) .'/sdk.js",o.parentNode.insertBefore(n,o) )}(document);';
199
  }
200
  $inline_script .= ';var heateorSssWhatsappShareAPI = "' . $this->public_class_object->whatsapp_share_api() . '";';
201
  wp_enqueue_script( 'heateor_sss_sharing_js', plugins_url( '../public/js/sassy-social-share-public.js', __FILE__ ), array( 'jquery' ), $this->public_class_object->version, $in_footer );
includes/class-sassy-social-share-widgets.php CHANGED
@@ -83,7 +83,7 @@ class Sassy_Social_Share_Standard_Widget extends WP_Widget {
83
  $inline_script .= 'var heateorSssUrlCountFetched = [], heateorSssSharesText = \''. htmlspecialchars(__('Shares', 'sassy-social-share'), ENT_QUOTES) .'\', heateorSssShareText = \''. htmlspecialchars(__('Share', 'sassy-social-share'), ENT_QUOTES) .'\';';
84
  $inline_script .= 'function heateorSssPopup(e) {window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}';
85
  if ( $this->public_class_object->facebook_like_recommend_enabled() || $this->public_class_object->facebook_share_enabled() ) {
86
- $inline_script .= 'function heateorSssInitiateFB() {FB.init({appId:"",channelUrl:"",status:!0,cookie:!0,xfbml:!0,version:"v3.0"})}window.fbAsyncInit=function() {heateorSssInitiateFB(),' . ( defined( 'HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION' ) && $this->public_class_object->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")}) ),'. ( 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/'. ( $this->options['language'] ? $this->options['language'] : 'en_US' ) .'/sdk.js",o.parentNode.insertBefore(n,o) )}(document);';
87
  }
88
  $inline_script .= ';var heateorSssWhatsappShareAPI = "' . $this->public_class_object->whatsapp_share_api() . '";';
89
  wp_enqueue_script( 'heateor_sss_sharing_js', plugins_url( '../public/js/sassy-social-share-public.js', __FILE__ ), array( 'jquery' ), $this->public_class_object->version, $in_footer );
@@ -318,7 +318,7 @@ class Sassy_Social_Share_Floating_Widget extends WP_Widget {
318
  $inline_script .= 'var heateorSssUrlCountFetched = [], heateorSssSharesText = \''. htmlspecialchars(__('Shares', 'sassy-social-share'), ENT_QUOTES) .'\', heateorSssShareText = \''. htmlspecialchars(__('Share', 'sassy-social-share'), ENT_QUOTES) .'\';';
319
  $inline_script .= 'function heateorSssPopup(e) {window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}';
320
  if ( $this->public_class_object->facebook_like_recommend_enabled() || $this->public_class_object->facebook_share_enabled() ) {
321
- $inline_script .= 'function heateorSssInitiateFB() {FB.init({appId:"",channelUrl:"",status:!0,cookie:!0,xfbml:!0,version:"v3.0"})}window.fbAsyncInit=function() {heateorSssInitiateFB(),' . ( defined( 'HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION' ) && $this->public_class_object->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")}) ),'. ( 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/'. ( $this->options['language'] ? $this->options['language'] : 'en_US' ) .'/sdk.js",o.parentNode.insertBefore(n,o) )}(document);';
322
  }
323
  $inline_script .= ';var heateorSssWhatsappShareAPI = "' . $this->public_class_object->whatsapp_share_api() . '";';
324
  wp_enqueue_script( 'heateor_sss_sharing_js', plugins_url( '../public/js/sassy-social-share-public.js', __FILE__ ), array( 'jquery' ), $this->public_class_object->version, $in_footer );
83
  $inline_script .= 'var heateorSssUrlCountFetched = [], heateorSssSharesText = \''. htmlspecialchars(__('Shares', 'sassy-social-share'), ENT_QUOTES) .'\', heateorSssShareText = \''. htmlspecialchars(__('Share', 'sassy-social-share'), ENT_QUOTES) .'\';';
84
  $inline_script .= 'function heateorSssPopup(e) {window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}';
85
  if ( $this->public_class_object->facebook_like_recommend_enabled() || $this->public_class_object->facebook_share_enabled() ) {
86
+ $inline_script .= 'function heateorSssInitiateFB() {FB.init({appId:"",channelUrl:"",status:!0,cookie:!0,xfbml:!0,version:"v6.0"})}window.fbAsyncInit=function() {heateorSssInitiateFB(),' . ( defined( 'HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION' ) && $this->public_class_object->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")}) ),'. ( 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/'. ( $this->options['language'] ? $this->options['language'] : 'en_US' ) .'/sdk.js",o.parentNode.insertBefore(n,o) )}(document);';
87
  }
88
  $inline_script .= ';var heateorSssWhatsappShareAPI = "' . $this->public_class_object->whatsapp_share_api() . '";';
89
  wp_enqueue_script( 'heateor_sss_sharing_js', plugins_url( '../public/js/sassy-social-share-public.js', __FILE__ ), array( 'jquery' ), $this->public_class_object->version, $in_footer );
318
  $inline_script .= 'var heateorSssUrlCountFetched = [], heateorSssSharesText = \''. htmlspecialchars(__('Shares', 'sassy-social-share'), ENT_QUOTES) .'\', heateorSssShareText = \''. htmlspecialchars(__('Share', 'sassy-social-share'), ENT_QUOTES) .'\';';
319
  $inline_script .= 'function heateorSssPopup(e) {window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}';
320
  if ( $this->public_class_object->facebook_like_recommend_enabled() || $this->public_class_object->facebook_share_enabled() ) {
321
+ $inline_script .= 'function heateorSssInitiateFB() {FB.init({appId:"",channelUrl:"",status:!0,cookie:!0,xfbml:!0,version:"v6.0"})}window.fbAsyncInit=function() {heateorSssInitiateFB(),' . ( defined( 'HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION' ) && $this->public_class_object->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")}) ),'. ( 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/'. ( $this->options['language'] ? $this->options['language'] : 'en_US' ) .'/sdk.js",o.parentNode.insertBefore(n,o) )}(document);';
322
  }
323
  $inline_script .= ';var heateorSssWhatsappShareAPI = "' . $this->public_class_object->whatsapp_share_api() . '";';
324
  wp_enqueue_script( 'heateor_sss_sharing_js', plugins_url( '../public/js/sassy-social-share-public.js', __FILE__ ), array( 'jquery' ), $this->public_class_object->version, $in_footer );
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: 2020-01-16 11:46+0530\n"
6
- "PO-Revision-Date: 2020-01-16 11:46+0530\n"
7
  "Last-Translator: Heateor <hello@heateor.com>\n"
8
  "Language-Team: Heateor <hello@heateor.com>\n"
9
  "Language: en_IN\n"
@@ -140,7 +140,7 @@ msgid "Settings"
140
  msgstr ""
141
 
142
  #: ../admin/partials/sassy-social-share-options-page.php:16
143
- #: ../admin/partials/sassy-social-share-options-page.php:2232
144
  #, php-format
145
  msgid ""
146
  "You can appreciate the effort put in this free plugin by rating it <a href="
@@ -169,7 +169,7 @@ msgid "3rd Party Integration"
169
  msgstr ""
170
 
171
  #: ../admin/partials/sassy-social-share-options-page.php:35
172
- #: ../admin/partials/sassy-social-share-options-page.php:2154
173
  msgid "Shortcode & Widget"
174
  msgstr ""
175
 
@@ -178,7 +178,7 @@ msgid "Troubleshooter"
178
  msgstr ""
179
 
180
  #: ../admin/partials/sassy-social-share-options-page.php:37
181
- #: ../admin/partials/sassy-social-share-options-page.php:2189
182
  msgid "FAQ"
183
  msgstr ""
184
 
@@ -621,7 +621,7 @@ msgstr ""
621
 
622
  #: ../admin/partials/sassy-social-share-options-page.php:1097
623
  #: ../admin/partials/sassy-social-share-options-page.php:1563
624
- #: ../admin/partials/sassy-social-share-options-page.php:2194
625
  msgid ""
626
  "Save Facebook App Id and Secret in the \"Miscellaneous\" section to track "
627
  "Facebook shares"
@@ -921,48 +921,39 @@ msgid "Master control to enable bit.ly url shortening for sharing"
921
  msgstr ""
922
 
923
  #: ../admin/partials/sassy-social-share-options-page.php:1936
924
- msgid "bit.ly Login"
925
  msgstr ""
926
 
927
  #: ../admin/partials/sassy-social-share-options-page.php:1947
928
  #, php-format
929
  msgid ""
930
- "Login to your bit.ly account and navigate to <a href=\"%s\" target=\"_blank"
931
- "\">this link</a> to get bit.ly Login"
932
- msgstr ""
933
-
934
- #: ../admin/partials/sassy-social-share-options-page.php:1955
935
- msgid "bit.ly API Key"
936
- msgstr ""
937
-
938
- #: ../admin/partials/sassy-social-share-options-page.php:1966
939
- #, php-format
940
- msgid ""
941
- "Login to your bit.ly account and navigate to <a href=\"%s\" target=\"_blank"
942
- "\">this link</a> to get your API key"
943
  msgstr ""
944
 
945
- #: ../admin/partials/sassy-social-share-options-page.php:1974
946
  msgid "Clear Bitly Cache"
947
  msgstr ""
948
 
949
- #: ../admin/partials/sassy-social-share-options-page.php:1979
950
  msgid "ShortUrl cache cleared successfully."
951
  msgstr ""
952
 
953
- #: ../admin/partials/sassy-social-share-options-page.php:1986
954
  msgid ""
955
  "Use this to delete short urls saved in database. Handy, if urls of your "
956
  "website have been changed but short urls are still being generated for old "
957
  "urls."
958
  msgstr ""
959
 
960
- #: ../admin/partials/sassy-social-share-options-page.php:1995
961
- #: ../admin/partials/sassy-social-share-options-page.php:2000
962
  msgid "Language"
963
  msgstr ""
964
 
965
- #: ../admin/partials/sassy-social-share-options-page.php:2011
966
  #, php-format
967
  msgid ""
968
  "Enter the code of the language you want to use for like buttons. You can "
@@ -970,68 +961,68 @@ msgid ""
970
  "Leave it empty for default language(English)"
971
  msgstr ""
972
 
973
- #: ../admin/partials/sassy-social-share-options-page.php:2020
974
  msgid "Username in sharing"
975
  msgstr ""
976
 
977
- #: ../admin/partials/sassy-social-share-options-page.php:2025
978
  msgid "Twitter username (without @)"
979
  msgstr ""
980
 
981
- #: ../admin/partials/sassy-social-share-options-page.php:2036
982
- #: ../admin/partials/sassy-social-share-options-page.php:2055
983
  msgid ""
984
  "Provided username will be appended after the content being shared as \"via "
985
  "@USERNAME\". Leave empty if you do not want any username in the content "
986
  "being shared."
987
  msgstr ""
988
 
989
- #: ../admin/partials/sassy-social-share-options-page.php:2044
990
  msgid "Buffer username (without @)"
991
  msgstr ""
992
 
993
- #: ../admin/partials/sassy-social-share-options-page.php:2064
994
  msgid "AMP"
995
  msgstr ""
996
 
997
- #: ../admin/partials/sassy-social-share-options-page.php:2069
998
  msgid "Enable sharing on AMP pages"
999
  msgstr ""
1000
 
1001
- #: ../admin/partials/sassy-social-share-options-page.php:2080
1002
  msgid "Enable this option to render sharing icons on AMP pages"
1003
  msgstr ""
1004
 
1005
- #: ../admin/partials/sassy-social-share-options-page.php:2089
1006
- #: ../admin/partials/sassy-social-share-options-page.php:2094
1007
  msgid "Custom CSS"
1008
  msgstr ""
1009
 
1010
- #: ../admin/partials/sassy-social-share-options-page.php:2105
1011
  msgid "You can specify any additional CSS rules (without &lt;style&gt; tag)"
1012
  msgstr ""
1013
 
1014
- #: ../admin/partials/sassy-social-share-options-page.php:2128
1015
  msgid "myCRED"
1016
  msgstr ""
1017
 
1018
- #: ../admin/partials/sassy-social-share-options-page.php:2133
1019
  msgid "Append myCRED referral ID to the urls being shared"
1020
  msgstr ""
1021
 
1022
- #: ../admin/partials/sassy-social-share-options-page.php:2156
1023
  msgid "Social Share Shortcode & Widget"
1024
  msgstr ""
1025
 
1026
- #: ../admin/partials/sassy-social-share-options-page.php:2157
1027
  msgid "Follow Icons Shortcode & Widget"
1028
  msgstr ""
1029
 
1030
- #: ../admin/partials/sassy-social-share-options-page.php:2169
1031
  msgid "Facebook Sharing Troubleshooter"
1032
  msgstr ""
1033
 
1034
- #: ../admin/partials/sassy-social-share-options-page.php:2174
1035
  msgid ""
1036
  "If Facebook sharing is not working fine, click at the following link and "
1037
  "enter the problematic url (where Facebook sharing is not working properly) "
@@ -1039,31 +1030,31 @@ msgid ""
1039
  "button."
1040
  msgstr ""
1041
 
1042
- #: ../admin/partials/sassy-social-share-options-page.php:2191
1043
  msgid ""
1044
  "<strong>Note:</strong> Plugin will not work on local server. You should have "
1045
  "an online website for the plugin to function properly."
1046
  msgstr ""
1047
 
1048
- #: ../admin/partials/sassy-social-share-options-page.php:2192
1049
  msgid ""
1050
  "Why is sharer not showing the correct image, title and other content when "
1051
  "sharing a webpage?"
1052
  msgstr ""
1053
 
1054
- #: ../admin/partials/sassy-social-share-options-page.php:2193
1055
  msgid "Why is Facebook share count not working?"
1056
  msgstr ""
1057
 
1058
- #: ../admin/partials/sassy-social-share-options-page.php:2195
1059
  msgid "How to Customize the Url being Shared?"
1060
  msgstr ""
1061
 
1062
- #: ../admin/partials/sassy-social-share-options-page.php:2196
1063
  msgid "Why is Instagram icon redirecting to Instagram website?"
1064
  msgstr ""
1065
 
1066
- #: ../admin/partials/sassy-social-share-options-page.php:2197
1067
  msgid ""
1068
  "Instagram icon is there to send website visitors to the Instagram page of "
1069
  "your choice. You can save the desired Instagram handle in \"Instagram "
@@ -1071,97 +1062,97 @@ msgid ""
1071
  "sections."
1072
  msgstr ""
1073
 
1074
- #: ../admin/partials/sassy-social-share-options-page.php:2199
1075
  msgid ""
1076
  "Why are Twitter shares not appearing even after registering at Twitcount.com?"
1077
  msgstr ""
1078
 
1079
- #: ../admin/partials/sassy-social-share-options-page.php:2200
1080
  msgid ""
1081
  "It takes some time for their service to track the shares made on Twitter "
1082
  "from your website. If you still feel it's taking too long you can contact "
1083
  "their support directly from their website."
1084
  msgstr ""
1085
 
1086
- #: ../admin/partials/sassy-social-share-options-page.php:2202
1087
  msgid ""
1088
  "How to restore Social Share counts lost after moving my website to SSL/Https?"
1089
  msgstr ""
1090
 
1091
- #: ../admin/partials/sassy-social-share-options-page.php:2203
1092
  msgid "How to integrate Google Analytics with sharing?"
1093
  msgstr ""
1094
 
1095
- #: ../admin/partials/sassy-social-share-options-page.php:2204
1096
  msgid "Why the color of share icons is not being updated?"
1097
  msgstr ""
1098
 
1099
- #: ../admin/partials/sassy-social-share-options-page.php:2205
1100
  msgid ""
1101
  "How to show recent Facebook Comments from all over the website in a widget?"
1102
  msgstr ""
1103
 
1104
- #: ../admin/partials/sassy-social-share-options-page.php:2206
1105
  msgid ""
1106
  "How to recover the Facebook Comments lost after moving my website to SSL/"
1107
  "Https?"
1108
  msgstr ""
1109
 
1110
- #: ../admin/partials/sassy-social-share-options-page.php:2207
1111
  msgid "How to Place Title and Social Share Icons in the Same Row?"
1112
  msgstr ""
1113
 
1114
- #: ../admin/partials/sassy-social-share-options-page.php:2208
1115
  msgid ""
1116
  "How can I show share counts of my website rather than of individual pages/"
1117
  "posts?"
1118
  msgstr ""
1119
 
1120
- #: ../admin/partials/sassy-social-share-options-page.php:2209
1121
  msgid "How can I disable sharing on particular page/post?"
1122
  msgstr ""
1123
 
1124
- #: ../admin/partials/sassy-social-share-options-page.php:2210
1125
  msgid "How can I specify minimum sharing count for sharing networks?"
1126
  msgstr ""
1127
 
1128
- #: ../admin/partials/sassy-social-share-options-page.php:2211
1129
  msgid "How to share specific page?"
1130
  msgstr ""
1131
 
1132
- #: ../admin/partials/sassy-social-share-options-page.php:2212
1133
  msgid "How to customize the look of total share counts?"
1134
  msgstr ""
1135
 
1136
- #: ../admin/partials/sassy-social-share-options-page.php:2213
1137
  msgid "How to customize the look of individual share counts?"
1138
  msgstr ""
1139
 
1140
- #: ../admin/partials/sassy-social-share-options-page.php:2214
1141
  msgid "How to show Whatsapp icon only on mobile devices?"
1142
  msgstr ""
1143
 
1144
- #: ../admin/partials/sassy-social-share-options-page.php:2215
1145
  msgid "How to hide arrow after floating sharing bar?"
1146
  msgstr ""
1147
 
1148
- #: ../admin/partials/sassy-social-share-options-page.php:2216
1149
  msgid "Why is share count not getting updated?"
1150
  msgstr ""
1151
 
1152
- #: ../admin/partials/sassy-social-share-options-page.php:2217
1153
  msgid "Why is there so much space between like buttons?"
1154
  msgstr ""
1155
 
1156
- #: ../admin/partials/sassy-social-share-options-page.php:2218
1157
  msgid "Why are floating sharing/like buttons not appearing at homepage?"
1158
  msgstr ""
1159
 
1160
- #: ../admin/partials/sassy-social-share-options-page.php:2228
1161
  msgid "Save Changes"
1162
  msgstr ""
1163
 
1164
- #: ../admin/partials/sassy-social-share-options-page.php:2240
1165
  msgid ""
1166
  "If you can send (to hello@heateor.com) how this plugin is helping your "
1167
  "business, we would be glad to shoutout on Instagram. You can also send any "
@@ -1260,7 +1251,7 @@ msgstr ""
1260
  #: ../includes/class-sassy-social-share-widgets.php:318
1261
  #: ../includes/class-sassy-social-share-shortcodes.php:195
1262
  #: ../public/class-sassy-social-share-public.php:120
1263
- #: ../public/class-sassy-social-share-public.php:535
1264
  msgid "Shares"
1265
  msgstr ""
1266
 
@@ -1268,7 +1259,7 @@ msgstr ""
1268
  #: ../includes/class-sassy-social-share-widgets.php:318
1269
  #: ../includes/class-sassy-social-share-shortcodes.php:195
1270
  #: ../public/class-sassy-social-share-public.php:120
1271
- #: ../public/class-sassy-social-share-public.php:535
1272
  msgid "Share"
1273
  msgstr ""
1274
 
@@ -1494,21 +1485,21 @@ msgstr ""
1494
  msgid "RSS Feed URL:"
1495
  msgstr ""
1496
 
1497
- #: ../public/class-sassy-social-share-public.php:313
1498
  msgid "Search for"
1499
  msgstr ""
1500
 
1501
- #: ../public/class-sassy-social-share-public.php:318
1502
- #: ../public/class-sassy-social-share-public.php:320
1503
- #: ../public/class-sassy-social-share-public.php:322
1504
  msgid "Archives"
1505
  msgstr ""
1506
 
1507
- #: ../public/class-sassy-social-share-public.php:899
1508
- #: ../public/class-sassy-social-share-public.php:1141
1509
  msgid "Invalid request"
1510
  msgstr ""
1511
 
1512
- #: ../public/class-sassy-social-share-public.php:905
1513
  msgid "Providers not selected"
1514
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: Sassy Social Share\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2020-04-08 12:13+0530\n"
6
+ "PO-Revision-Date: 2020-04-08 12:13+0530\n"
7
  "Last-Translator: Heateor <hello@heateor.com>\n"
8
  "Language-Team: Heateor <hello@heateor.com>\n"
9
  "Language: en_IN\n"
140
  msgstr ""
141
 
142
  #: ../admin/partials/sassy-social-share-options-page.php:16
143
+ #: ../admin/partials/sassy-social-share-options-page.php:2212
144
  #, php-format
145
  msgid ""
146
  "You can appreciate the effort put in this free plugin by rating it <a href="
169
  msgstr ""
170
 
171
  #: ../admin/partials/sassy-social-share-options-page.php:35
172
+ #: ../admin/partials/sassy-social-share-options-page.php:2134
173
  msgid "Shortcode & Widget"
174
  msgstr ""
175
 
178
  msgstr ""
179
 
180
  #: ../admin/partials/sassy-social-share-options-page.php:37
181
+ #: ../admin/partials/sassy-social-share-options-page.php:2169
182
  msgid "FAQ"
183
  msgstr ""
184
 
621
 
622
  #: ../admin/partials/sassy-social-share-options-page.php:1097
623
  #: ../admin/partials/sassy-social-share-options-page.php:1563
624
+ #: ../admin/partials/sassy-social-share-options-page.php:2174
625
  msgid ""
626
  "Save Facebook App Id and Secret in the \"Miscellaneous\" section to track "
627
  "Facebook shares"
921
  msgstr ""
922
 
923
  #: ../admin/partials/sassy-social-share-options-page.php:1936
924
+ msgid "Bit.ly Generic Access Token"
925
  msgstr ""
926
 
927
  #: ../admin/partials/sassy-social-share-options-page.php:1947
928
  #, php-format
929
  msgid ""
930
+ "Login to your bit.ly account and navigate to <strong>Profile Settings > "
931
+ "Generic Access Token</strong> (top-right corner) and authenticate to "
932
+ "generate access token. More details at the <a href=\"%s\" target=\"_blank"
933
+ "\">link</a>"
 
 
 
 
 
 
 
 
 
934
  msgstr ""
935
 
936
+ #: ../admin/partials/sassy-social-share-options-page.php:1954
937
  msgid "Clear Bitly Cache"
938
  msgstr ""
939
 
940
+ #: ../admin/partials/sassy-social-share-options-page.php:1959
941
  msgid "ShortUrl cache cleared successfully."
942
  msgstr ""
943
 
944
+ #: ../admin/partials/sassy-social-share-options-page.php:1966
945
  msgid ""
946
  "Use this to delete short urls saved in database. Handy, if urls of your "
947
  "website have been changed but short urls are still being generated for old "
948
  "urls."
949
  msgstr ""
950
 
951
+ #: ../admin/partials/sassy-social-share-options-page.php:1975
952
+ #: ../admin/partials/sassy-social-share-options-page.php:1980
953
  msgid "Language"
954
  msgstr ""
955
 
956
+ #: ../admin/partials/sassy-social-share-options-page.php:1991
957
  #, php-format
958
  msgid ""
959
  "Enter the code of the language you want to use for like buttons. You can "
961
  "Leave it empty for default language(English)"
962
  msgstr ""
963
 
964
+ #: ../admin/partials/sassy-social-share-options-page.php:2000
965
  msgid "Username in sharing"
966
  msgstr ""
967
 
968
+ #: ../admin/partials/sassy-social-share-options-page.php:2005
969
  msgid "Twitter username (without @)"
970
  msgstr ""
971
 
972
+ #: ../admin/partials/sassy-social-share-options-page.php:2016
973
+ #: ../admin/partials/sassy-social-share-options-page.php:2035
974
  msgid ""
975
  "Provided username will be appended after the content being shared as \"via "
976
  "@USERNAME\". Leave empty if you do not want any username in the content "
977
  "being shared."
978
  msgstr ""
979
 
980
+ #: ../admin/partials/sassy-social-share-options-page.php:2024
981
  msgid "Buffer username (without @)"
982
  msgstr ""
983
 
984
+ #: ../admin/partials/sassy-social-share-options-page.php:2044
985
  msgid "AMP"
986
  msgstr ""
987
 
988
+ #: ../admin/partials/sassy-social-share-options-page.php:2049
989
  msgid "Enable sharing on AMP pages"
990
  msgstr ""
991
 
992
+ #: ../admin/partials/sassy-social-share-options-page.php:2060
993
  msgid "Enable this option to render sharing icons on AMP pages"
994
  msgstr ""
995
 
996
+ #: ../admin/partials/sassy-social-share-options-page.php:2069
997
+ #: ../admin/partials/sassy-social-share-options-page.php:2074
998
  msgid "Custom CSS"
999
  msgstr ""
1000
 
1001
+ #: ../admin/partials/sassy-social-share-options-page.php:2085
1002
  msgid "You can specify any additional CSS rules (without &lt;style&gt; tag)"
1003
  msgstr ""
1004
 
1005
+ #: ../admin/partials/sassy-social-share-options-page.php:2108
1006
  msgid "myCRED"
1007
  msgstr ""
1008
 
1009
+ #: ../admin/partials/sassy-social-share-options-page.php:2113
1010
  msgid "Append myCRED referral ID to the urls being shared"
1011
  msgstr ""
1012
 
1013
+ #: ../admin/partials/sassy-social-share-options-page.php:2136
1014
  msgid "Social Share Shortcode & Widget"
1015
  msgstr ""
1016
 
1017
+ #: ../admin/partials/sassy-social-share-options-page.php:2137
1018
  msgid "Follow Icons Shortcode & Widget"
1019
  msgstr ""
1020
 
1021
+ #: ../admin/partials/sassy-social-share-options-page.php:2149
1022
  msgid "Facebook Sharing Troubleshooter"
1023
  msgstr ""
1024
 
1025
+ #: ../admin/partials/sassy-social-share-options-page.php:2154
1026
  msgid ""
1027
  "If Facebook sharing is not working fine, click at the following link and "
1028
  "enter the problematic url (where Facebook sharing is not working properly) "
1030
  "button."
1031
  msgstr ""
1032
 
1033
+ #: ../admin/partials/sassy-social-share-options-page.php:2171
1034
  msgid ""
1035
  "<strong>Note:</strong> Plugin will not work on local server. You should have "
1036
  "an online website for the plugin to function properly."
1037
  msgstr ""
1038
 
1039
+ #: ../admin/partials/sassy-social-share-options-page.php:2172
1040
  msgid ""
1041
  "Why is sharer not showing the correct image, title and other content when "
1042
  "sharing a webpage?"
1043
  msgstr ""
1044
 
1045
+ #: ../admin/partials/sassy-social-share-options-page.php:2173
1046
  msgid "Why is Facebook share count not working?"
1047
  msgstr ""
1048
 
1049
+ #: ../admin/partials/sassy-social-share-options-page.php:2175
1050
  msgid "How to Customize the Url being Shared?"
1051
  msgstr ""
1052
 
1053
+ #: ../admin/partials/sassy-social-share-options-page.php:2176
1054
  msgid "Why is Instagram icon redirecting to Instagram website?"
1055
  msgstr ""
1056
 
1057
+ #: ../admin/partials/sassy-social-share-options-page.php:2177
1058
  msgid ""
1059
  "Instagram icon is there to send website visitors to the Instagram page of "
1060
  "your choice. You can save the desired Instagram handle in \"Instagram "
1062
  "sections."
1063
  msgstr ""
1064
 
1065
+ #: ../admin/partials/sassy-social-share-options-page.php:2179
1066
  msgid ""
1067
  "Why are Twitter shares not appearing even after registering at Twitcount.com?"
1068
  msgstr ""
1069
 
1070
+ #: ../admin/partials/sassy-social-share-options-page.php:2180
1071
  msgid ""
1072
  "It takes some time for their service to track the shares made on Twitter "
1073
  "from your website. If you still feel it's taking too long you can contact "
1074
  "their support directly from their website."
1075
  msgstr ""
1076
 
1077
+ #: ../admin/partials/sassy-social-share-options-page.php:2182
1078
  msgid ""
1079
  "How to restore Social Share counts lost after moving my website to SSL/Https?"
1080
  msgstr ""
1081
 
1082
+ #: ../admin/partials/sassy-social-share-options-page.php:2183
1083
  msgid "How to integrate Google Analytics with sharing?"
1084
  msgstr ""
1085
 
1086
+ #: ../admin/partials/sassy-social-share-options-page.php:2184
1087
  msgid "Why the color of share icons is not being updated?"
1088
  msgstr ""
1089
 
1090
+ #: ../admin/partials/sassy-social-share-options-page.php:2185
1091
  msgid ""
1092
  "How to show recent Facebook Comments from all over the website in a widget?"
1093
  msgstr ""
1094
 
1095
+ #: ../admin/partials/sassy-social-share-options-page.php:2186
1096
  msgid ""
1097
  "How to recover the Facebook Comments lost after moving my website to SSL/"
1098
  "Https?"
1099
  msgstr ""
1100
 
1101
+ #: ../admin/partials/sassy-social-share-options-page.php:2187
1102
  msgid "How to Place Title and Social Share Icons in the Same Row?"
1103
  msgstr ""
1104
 
1105
+ #: ../admin/partials/sassy-social-share-options-page.php:2188
1106
  msgid ""
1107
  "How can I show share counts of my website rather than of individual pages/"
1108
  "posts?"
1109
  msgstr ""
1110
 
1111
+ #: ../admin/partials/sassy-social-share-options-page.php:2189
1112
  msgid "How can I disable sharing on particular page/post?"
1113
  msgstr ""
1114
 
1115
+ #: ../admin/partials/sassy-social-share-options-page.php:2190
1116
  msgid "How can I specify minimum sharing count for sharing networks?"
1117
  msgstr ""
1118
 
1119
+ #: ../admin/partials/sassy-social-share-options-page.php:2191
1120
  msgid "How to share specific page?"
1121
  msgstr ""
1122
 
1123
+ #: ../admin/partials/sassy-social-share-options-page.php:2192
1124
  msgid "How to customize the look of total share counts?"
1125
  msgstr ""
1126
 
1127
+ #: ../admin/partials/sassy-social-share-options-page.php:2193
1128
  msgid "How to customize the look of individual share counts?"
1129
  msgstr ""
1130
 
1131
+ #: ../admin/partials/sassy-social-share-options-page.php:2194
1132
  msgid "How to show Whatsapp icon only on mobile devices?"
1133
  msgstr ""
1134
 
1135
+ #: ../admin/partials/sassy-social-share-options-page.php:2195
1136
  msgid "How to hide arrow after floating sharing bar?"
1137
  msgstr ""
1138
 
1139
+ #: ../admin/partials/sassy-social-share-options-page.php:2196
1140
  msgid "Why is share count not getting updated?"
1141
  msgstr ""
1142
 
1143
+ #: ../admin/partials/sassy-social-share-options-page.php:2197
1144
  msgid "Why is there so much space between like buttons?"
1145
  msgstr ""
1146
 
1147
+ #: ../admin/partials/sassy-social-share-options-page.php:2198
1148
  msgid "Why are floating sharing/like buttons not appearing at homepage?"
1149
  msgstr ""
1150
 
1151
+ #: ../admin/partials/sassy-social-share-options-page.php:2208
1152
  msgid "Save Changes"
1153
  msgstr ""
1154
 
1155
+ #: ../admin/partials/sassy-social-share-options-page.php:2220
1156
  msgid ""
1157
  "If you can send (to hello@heateor.com) how this plugin is helping your "
1158
  "business, we would be glad to shoutout on Instagram. You can also send any "
1251
  #: ../includes/class-sassy-social-share-widgets.php:318
1252
  #: ../includes/class-sassy-social-share-shortcodes.php:195
1253
  #: ../public/class-sassy-social-share-public.php:120
1254
+ #: ../public/class-sassy-social-share-public.php:563
1255
  msgid "Shares"
1256
  msgstr ""
1257
 
1259
  #: ../includes/class-sassy-social-share-widgets.php:318
1260
  #: ../includes/class-sassy-social-share-shortcodes.php:195
1261
  #: ../public/class-sassy-social-share-public.php:120
1262
+ #: ../public/class-sassy-social-share-public.php:563
1263
  msgid "Share"
1264
  msgstr ""
1265
 
1485
  msgid "RSS Feed URL:"
1486
  msgstr ""
1487
 
1488
+ #: ../public/class-sassy-social-share-public.php:341
1489
  msgid "Search for"
1490
  msgstr ""
1491
 
1492
+ #: ../public/class-sassy-social-share-public.php:346
1493
+ #: ../public/class-sassy-social-share-public.php:348
1494
+ #: ../public/class-sassy-social-share-public.php:350
1495
  msgid "Archives"
1496
  msgstr ""
1497
 
1498
+ #: ../public/class-sassy-social-share-public.php:927
1499
+ #: ../public/class-sassy-social-share-public.php:1169
1500
  msgid "Invalid request"
1501
  msgstr ""
1502
 
1503
+ #: ../public/class-sassy-social-share-public.php:933
1504
  msgid "Providers not selected"
1505
  msgstr ""
public/class-sassy-social-share-public.php CHANGED
@@ -120,7 +120,7 @@ class Sassy_Social_Share_Public {
120
  $inline_script .= 'var heateorSssUrlCountFetched = [], heateorSssSharesText = \''. htmlspecialchars(__('Shares', 'sassy-social-share'), ENT_QUOTES) .'\', heateorSssShareText = \''. htmlspecialchars(__('Share', 'sassy-social-share'), ENT_QUOTES) .'\';';
121
  $inline_script .= 'function heateorSssPopup(e) {window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}';
122
  if ( $this->facebook_like_recommend_enabled() || $this->facebook_share_enabled() ) {
123
- $inline_script .= 'function heateorSssInitiateFB() {FB.init({appId:"",channelUrl:"",status:!0,cookie:!0,xfbml:!0,version:"v3.0"})}window.fbAsyncInit=function() {heateorSssInitiateFB(),' . ( 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")}) ),'. ( 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/'. ( $this->options['language'] ? $this->options['language'] : 'en_US' ) .'/sdk.js",o.parentNode.insertBefore(n,o) )}(document);';
124
  }
125
  $inline_script .= ';var heateorSssWhatsappShareAPI = "' . $this->whatsapp_share_api() . '";';
126
  wp_enqueue_script( 'heateor_sss_sharing_js', plugins_url( 'js/sassy-social-share-public.js', __FILE__ ), array( 'jquery' ), $this->version, $in_footer );
@@ -138,6 +138,20 @@ class Sassy_Social_Share_Public {
138
  */
139
  public function whatsapp_share_api() {
140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  if ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) {
142
  // detect the device for Whatsapp share API
143
  $iphone = strpos( $_SERVER['HTTP_USER_AGENT'], "iPhone" );
@@ -145,15 +159,13 @@ class Sassy_Social_Share_Public {
145
  $palmpre = strpos( $_SERVER['HTTP_USER_AGENT'], "webOS" );
146
  $berry = strpos( $_SERVER['HTTP_USER_AGENT'], "BlackBerry" );
147
  $ipod = strpos( $_SERVER['HTTP_USER_AGENT'], "iPod" );
148
- // check if is a mobile
149
  if ( $iphone || $android || $palmpre || $ipod || $berry == true ) {
150
- return 'api';
151
- } else {
152
- return 'web';
153
  }
154
  }
155
 
156
- return 'api';
157
 
158
  }
159
 
@@ -197,14 +209,30 @@ class Sassy_Social_Share_Public {
197
  $bitlyUrl = get_post_meta( $post_id, '_heateor_sss_bitly_url', true );
198
  if ( $bitlyUrl ) {
199
  return $bitlyUrl;
200
- } else {
 
201
  //generate the URL
202
- $bitly = 'http://api.bit.ly/v3/shorten?format=txt&login=' . $this->options['bitly_username'] . '&apiKey=' . $this->options['bitly_key'] . '&longUrl=' . urlencode( $url );
203
- $response = wp_remote_get( $bitly, array( 'timeout' => 15 ) );
204
- if ( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ) {
205
- $short_url = trim( wp_remote_retrieve_body( $response ) );
206
- update_post_meta( $post_id, '_heateor_sss_bitly_url', $short_url );
207
- return $short_url;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
208
  }
209
  }
210
  return false;
@@ -229,7 +257,7 @@ class Sassy_Social_Share_Public {
229
  $this->short_urls[$url] = $short_url;
230
  }
231
  // if bit.ly integration enabled, generate bit.ly short url
232
- } elseif ( isset( $this->options['bitly_enable'] ) && $this->options['bitly_username'] != '' && $this->options['bitly_key'] != '' ) {
233
  $short_url = $this->generate_bitly_url( $url, $post_id );
234
  if ( $short_url ) {
235
  $this->short_urls[$url] = $short_url;
120
  $inline_script .= 'var heateorSssUrlCountFetched = [], heateorSssSharesText = \''. htmlspecialchars(__('Shares', 'sassy-social-share'), ENT_QUOTES) .'\', heateorSssShareText = \''. htmlspecialchars(__('Share', 'sassy-social-share'), ENT_QUOTES) .'\';';
121
  $inline_script .= 'function heateorSssPopup(e) {window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}';
122
  if ( $this->facebook_like_recommend_enabled() || $this->facebook_share_enabled() ) {
123
+ $inline_script .= 'function heateorSssInitiateFB() {FB.init({appId:"",channelUrl:"",status:!0,cookie:!0,xfbml:!0,version:"v6.0"})}window.fbAsyncInit=function() {heateorSssInitiateFB(),' . ( 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")}) ),'. ( 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/'. ( $this->options['language'] ? $this->options['language'] : 'en_US' ) .'/sdk.js",o.parentNode.insertBefore(n,o) )}(document);';
124
  }
125
  $inline_script .= ';var heateorSssWhatsappShareAPI = "' . $this->whatsapp_share_api() . '";';
126
  wp_enqueue_script( 'heateor_sss_sharing_js', plugins_url( 'js/sassy-social-share-public.js', __FILE__ ), array( 'jquery' ), $this->version, $in_footer );
138
  */
139
  public function whatsapp_share_api() {
140
 
141
+ if ( $this->check_if_mobile() ) {
142
+ return 'api';
143
+ }
144
+ return 'web';
145
+
146
+ }
147
+
148
+ /**
149
+ * Check if webpage is being visited in a mobile device
150
+ *
151
+ * @since 3.3.9
152
+ */
153
+ public function check_if_mobile() {
154
+
155
  if ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) {
156
  // detect the device for Whatsapp share API
157
  $iphone = strpos( $_SERVER['HTTP_USER_AGENT'], "iPhone" );
159
  $palmpre = strpos( $_SERVER['HTTP_USER_AGENT'], "webOS" );
160
  $berry = strpos( $_SERVER['HTTP_USER_AGENT'], "BlackBerry" );
161
  $ipod = strpos( $_SERVER['HTTP_USER_AGENT'], "iPod" );
162
+ // check if it's a mobile
163
  if ( $iphone || $android || $palmpre || $ipod || $berry == true ) {
164
+ return true;
 
 
165
  }
166
  }
167
 
168
+ return false;
169
 
170
  }
171
 
209
  $bitlyUrl = get_post_meta( $post_id, '_heateor_sss_bitly_url', true );
210
  if ( $bitlyUrl ) {
211
  return $bitlyUrl;
212
+ } elseif ( extension_loaded( 'curl' ) ) {
213
+ $generic_access_token = $this->options['bitly_access_token'];
214
  //generate the URL
215
+ $bitly_api = 'https://api-ssl.bitly.com/v4/bitlinks';
216
+ $payload = json_encode( array( 'long_url' => $url ) );
217
+
218
+ $ch = curl_init( $bitly_api );
219
+ curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, "POST" );
220
+ curl_setopt( $ch, CURLOPT_POSTFIELDS, $payload );
221
+ curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
222
+ curl_setopt( $ch, CURLOPT_HTTPHEADER, array(
223
+ 'Authorization: Bearer ' . $generic_access_token,
224
+ 'Content-Type: application/json',
225
+ 'Content-Length: ' . strlen( $payload )
226
+ ) );
227
+ $response = curl_exec( $ch );
228
+
229
+ if ( ! is_wp_error( $response ) ) {
230
+ $short_url_object = json_decode( trim( $response ) );
231
+ if ( isset( $short_url_object->link ) ) {
232
+ $short_url = esc_url( $short_url_object->link );
233
+ update_post_meta( $post_id, '_heateor_sss_bitly_url', $short_url );
234
+ return $short_url;
235
+ }
236
  }
237
  }
238
  return false;
257
  $this->short_urls[$url] = $short_url;
258
  }
259
  // if bit.ly integration enabled, generate bit.ly short url
260
+ } elseif ( isset( $this->options['bitly_enable'] ) && $this->options['bitly_access_token'] != '' ) {
261
  $short_url = $this->generate_bitly_url( $url, $post_id );
262
  if ( $short_url ) {
263
  $this->short_urls[$url] = $short_url;
public/js/sassy-social-share-public.js CHANGED
@@ -441,7 +441,7 @@ function heateorSssMoreSharingPopup(elem, postUrl, postTitle, twitterTitle){
441
  Sina_Weibo: {
442
  title: "Sina Weibo",
443
  locale: "en-US",
444
- redirect_url: "//service.weibo.com/share/share.php?url=" + postUrl + "&title=" + postTitle,
445
  },
446
  SiteJot: {
447
  title: "SiteJot",
@@ -765,7 +765,7 @@ jQuery(function(){
765
  }
766
  }
767
 
768
- var heateorSssClipboard = new Clipboard('.heateorSssCopyLinkBackground, .heateorSssCopyLinkShare, .heateorSssCopyLinkSvg', {
769
  text: function(trigger) {
770
  if(jQuery(trigger).hasClass('heateorSssCopyLinkShare')){
771
  var element = trigger.parentElement.parentElement.parentElement.parentElement;
@@ -819,9 +819,9 @@ function heateorSssHideSharing(elem, removeClass, addClass, margin, alignment){
819
  }
820
 
821
  /*!
822
- * clipboard.js v1.7.1
823
- * https://zenorocha.github.io/clipboard.js
824
- *
825
  * Licensed MIT © Zeno Rocha
826
  */
827
- !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,o){function i(a,c){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!c&&l)return l(a,!0);if(r)return r(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return i(n||t)},u,u.exports,t,e,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(t,e,n){function o(t,e){for(;t&&t.nodeType!==i;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var i=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}e.exports=o},{}],2:[function(t,e,n){function o(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function i(t,e,n,o){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&o.call(t,n)}}var r=t("./closest");e.exports=o},{"./closest":1}],3:[function(t,e,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,n){function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.fn(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return i(t,e,n);if(c.nodeList(t))return r(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function r(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return l(document.body,t,e,n)}var c=t("./is"),l=t("delegate");e.exports=o},{"./is":3,delegate:2}],5:[function(t,e,n){function o(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),i=document.createRange();i.selectNodeContents(t),o.removeAllRanges(),o.addRange(i),e=o.toString()}return e}e.exports=o},{}],6:[function(t,e,n){function o(){}o.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){i.off(t,o),e.apply(n,arguments)}var i=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,i=n.length;for(o;o<i;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],i=[];if(o&&e)for(var r=0,a=o.length;r<a;r++)o[r].fn!==e&&o[r].fn._!==e&&i.push(o[r]);return i.length?n[t]=i:delete n[t],this}},e.exports=o},{}],7:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","select"],r);else if(void 0!==o)r(n,e("select"));else{var a={exports:{}};r(a,i.select),i.clipboardAction=a.exports}}(this,function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(e),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=function(){function t(e){o(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function t(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function t(){var e=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function t(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function t(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function t(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function t(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function t(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function t(){this.removeFake()}},{key:"action",set:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function t(){return this._action}},{key:"target",set:function t(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function t(){return this._target}}]),t}();t.exports=c})},{select:5}],8:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],r);else if(void 0!==o)r(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};r(a,i.clipboardAction,i.tinyEmitter,i.goodListener),i.clipboard=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var s=i(e),u=i(n),f=i(o),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),p=function(t){function e(t,n){r(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.resolveOptions(n),o.listenClick(t),o}return c(e,t),h(e,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function t(e){var n=this;this.listener=(0,f.default)(e,"click",function(t){return n.onClick(t)})}},{key:"onClick",value:function t(e){var n=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(n),target:this.target(n),text:this.text(n),container:this.container,trigger:n,emitter:this})}},{key:"defaultAction",value:function t(e){return l("action",e)}},{key:"defaultTarget",value:function t(e){var n=l("target",e);if(n)return document.querySelector(n)}},{key:"defaultText",value:function t(e){return l("text",e)}},{key:"destroy",value:function t(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),e}(u.default);t.exports=p})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});
441
  Sina_Weibo: {
442
  title: "Sina Weibo",
443
  locale: "en-US",
444
+ redirect_url: "http://service.weibo.com/share/share.php?url=" + postUrl + "&title=" + postTitle,
445
  },
446
  SiteJot: {
447
  title: "SiteJot",
765
  }
766
  }
767
 
768
+ var heateorSssClipboard = new ClipboardJS('.heateorSssCopyLinkBackground, .heateorSssCopyLinkShare, .heateorSssCopyLinkSvg', {
769
  text: function(trigger) {
770
  if(jQuery(trigger).hasClass('heateorSssCopyLinkShare')){
771
  var element = trigger.parentElement.parentElement.parentElement.parentElement;
819
  }
820
 
821
  /*!
822
+ * clipboard.js v2.0.6
823
+ * https://clipboardjs.com/
824
+ *
825
  * Licensed MIT © Zeno Rocha
826
  */
827
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return o={},r.m=n=[function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n,t.exports.TinyEmitter=n},function(t,e,n){var d=n(3),h=n(4);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!d.string(e))throw new TypeError("Second argument must be a String");if(!d.fn(n))throw new TypeError("Third argument must be a Function");if(d.node(t))return s=e,f=n,(u=t).addEventListener(s,f),{destroy:function(){u.removeEventListener(s,f)}};if(d.nodeList(t))return a=t,c=e,l=n,Array.prototype.forEach.call(a,function(t){t.addEventListener(c,l)}),{destroy:function(){Array.prototype.forEach.call(a,function(t){t.removeEventListener(c,l)})}};if(d.string(t))return o=t,r=e,i=n,h(document.body,o,r,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,a,c,l,u,s,f}},function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(5);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=a(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,n){"use strict";n.r(e);var o=n(0),r=n.n(o),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),this.resolveOptions(t),this.initSelection()}var l=(function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}(c,[{key:"resolveOptions",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=r()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=r()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(t){var e=0<arguments.length&&void 0!==t?t:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),c),u=n(1),s=n.n(u),f=n(2),d=n.n(f),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t};function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var m=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(v,s.a),p(v,[{key:"resolveOptions",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=d()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return b("action",t)}},{key:"defaultTarget",value:function(t){var e=b("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return b("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(t){var e=0<arguments.length&&void 0!==t?t:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),v);function v(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(v.__proto__||Object.getPrototypeOf(v)).call(this));return n.resolveOptions(e),n.listenClick(t),n}function b(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e.default=m}],r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=6).default;function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,o});
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.heateor.com/donate/?action=Sassy+Social+Share
4
  Tags: social share, social sharing, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, facebook like, twitter tweet, whatsapp share, line share
5
  Requires at least: 2.5.0
6
  Tested up to: 5.4
7
- Stable tag: 3.3.8
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more.
@@ -123,13 +123,21 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
123
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
124
 
125
  == Changelog ==
126
- = 3.3.8 [16 January 2020] =
 
 
 
 
 
 
 
 
127
  [Bugfix] [Sassy_Follow_Icons] shortcode was not accepting "=" in the url of social networks. Now it can be used in encoded form.
128
  [Bugfix] Social Media Follow Icons were appearing broken in some cases
129
  [Improvement] Admin UI improvement
130
  [Improvement] Removed Wanelo, CiteULike and DZone from social share networks as these services are not functional anymore
131
 
132
- = 3.3.7 [14 December 2019] =
133
  [New] Christmas surprise
134
  [Bugfix] Pinterest Pin button was showing pin count even if share count was disabled from options
135
 
@@ -871,12 +879,20 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
871
  [Bugfix] Previous version was breaking social share on custom posts
872
  [New] Added option (in Miscellaneous section) to control if Javascript should be loaded on every page or only where it's needed
873
 
874
- = 3.3.7 [14 December 2019] =
875
  [New] Christmas surprise
876
  [Bugfix] Pinterest Pin button was showing pin count even if share count was disabled from options
877
 
878
- = 3.3.8 [16 January 2020] =
879
  [Bugfix] [Sassy_Follow_Icons] shortcode was not accepting "=" in the url of social networks. Now it can be used in encoded form.
880
  [Bugfix] Social Media Follow Icons were appearing broken in some cases
881
  [Improvement] Admin UI improvement
882
- [Improvement] Removed Wanelo, CiteULike and DZone from social share networks as these services are not functional anymore
 
 
 
 
 
 
 
 
4
  Tags: social share, social sharing, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, facebook like, twitter tweet, whatsapp share, line share
5
  Requires at least: 2.5.0
6
  Tested up to: 5.4
7
+ Stable tag: 3.3.9
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more.
123
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
124
 
125
  == Changelog ==
126
+ = 3.3.9 [8 April 2020] =
127
+ [Bugfix] Sina Weibo share was not working
128
+ [Bugfix] Facebook Messenger share was not working on mobile devices
129
+ [Bugfix] "Search social networks" feature was not working at options page in admin area
130
+ [Bugfix] bit.ly url shortener was not working
131
+ [Improvement] Updated Facebook JS SDK to latest version 6.0
132
+ [Improvement] Updated ClipBoard JS to latest version 2.0.6
133
+
134
+ = 3.3.8 [1 March 2020] =
135
  [Bugfix] [Sassy_Follow_Icons] shortcode was not accepting "=" in the url of social networks. Now it can be used in encoded form.
136
  [Bugfix] Social Media Follow Icons were appearing broken in some cases
137
  [Improvement] Admin UI improvement
138
  [Improvement] Removed Wanelo, CiteULike and DZone from social share networks as these services are not functional anymore
139
 
140
+ = 3.3.7 [24 December 2019] =
141
  [New] Christmas surprise
142
  [Bugfix] Pinterest Pin button was showing pin count even if share count was disabled from options
143
 
879
  [Bugfix] Previous version was breaking social share on custom posts
880
  [New] Added option (in Miscellaneous section) to control if Javascript should be loaded on every page or only where it's needed
881
 
882
+ = 3.3.7 [24 December 2019] =
883
  [New] Christmas surprise
884
  [Bugfix] Pinterest Pin button was showing pin count even if share count was disabled from options
885
 
886
+ = 3.3.8 [1 March 2020] =
887
  [Bugfix] [Sassy_Follow_Icons] shortcode was not accepting "=" in the url of social networks. Now it can be used in encoded form.
888
  [Bugfix] Social Media Follow Icons were appearing broken in some cases
889
  [Improvement] Admin UI improvement
890
+ [Improvement] Removed Wanelo, CiteULike and DZone from social share networks as these services are not functional anymore
891
+
892
+ = 3.3.9 [8 April 2020] =
893
+ [Bugfix] Sina Weibo share was not working
894
+ [Bugfix] Facebook Messenger share was not working on mobile devices
895
+ [Bugfix] "Search social networks" feature was not working at options page in admin area
896
+ [Bugfix] bit.ly url shortener was not working
897
+ [Improvement] Updated Facebook JS SDK to latest version 6.0
898
+ [Improvement] Updated ClipBoard JS to latest version 2.0.6
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, Reddit, Pinterest, WhatsApp and over 100 more
10
- * Version: 3.3.8
11
  * Author: Team Heateor
12
  * Author URI: https://www.heateor.com
13
  * Text Domain: sassy-social-share
@@ -21,7 +21,7 @@ if ( ! defined( 'WPINC' ) ) {
21
  die;
22
  }
23
 
24
- define( 'HEATEOR_SSS_VERSION', '3.3.8' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
26
 
27
  // plugin core class object
@@ -121,8 +121,7 @@ function heateor_sss_save_default_options() {
121
  'delete_options' => '1',
122
  'share_count_cache_refresh_count' => '10',
123
  'share_count_cache_refresh_unit' => 'minutes',
124
- 'bitly_username' => '',
125
- 'bitly_key' => '',
126
  'language' => get_locale(),
127
  'twitter_username' => '',
128
  'buffer_username' => '',
7
  * Plugin Name: Sassy Social Share
8
  * Plugin URI: https://www.heateor.com
9
  * Description: Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more
10
+ * Version: 3.3.9
11
  * Author: Team Heateor
12
  * Author URI: https://www.heateor.com
13
  * Text Domain: sassy-social-share
21
  die;
22
  }
23
 
24
+ define( 'HEATEOR_SSS_VERSION', '3.3.9' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
26
 
27
  // plugin core class object
121
  'delete_options' => '1',
122
  'share_count_cache_refresh_count' => '10',
123
  'share_count_cache_refresh_unit' => 'minutes',
124
+ 'bitly_access_token' => '',
 
125
  'language' => get_locale(),
126
  'twitter_username' => '',
127
  'buffer_username' => '',