Social Share Icons & Social Share Buttons - Version 2.4.3

Version Description

  • jQuery issue fixed
  • Counts for SpecificFeeds-subscribers are back, getting updated once a day
  • Some mouse-over issues for custom icons, fixed now
Download this release

Release Info

Developer socialdude
Plugin Icon 128x128 Social Share Icons & Social Share Buttons
Version 2.4.3
Comparing to
See all releases

Code changes from version 2.4.2 to 2.4.3

css/sfsi-style.css CHANGED
@@ -3244,10 +3244,11 @@ label.sfsiplus_toglpstpgsbttl { float: left; margin-top: 5px !important}
3244
  }
3245
  .sfsi_plus_Sicons .sf_pinit > span
3246
  {
3247
- height: 22px !important;
3248
  vertical-align: middle;
3249
  }
3250
- .sfsi_plus_Sicons .sf_pinit > span > span
 
3251
  {
3252
  display: inline-block;
3253
  width: 47px !important;
@@ -3255,4 +3256,8 @@ label.sfsiplus_toglpstpgsbttl { float: left; margin-top: 5px !important}
3255
  margin-left: 40px;
3256
  vertical-align: top;
3257
  right: 0 !important;
3258
- }
 
 
 
 
3244
  }
3245
  .sfsi_plus_Sicons .sf_pinit > span
3246
  {
3247
+ height: 20px !important;
3248
  vertical-align: middle;
3249
  }
3250
+
3251
+ /*.sfsi_plus_Sicons .sf_pinit > span > span
3252
  {
3253
  display: inline-block;
3254
  width: 47px !important;
3256
  margin-left: 40px;
3257
  vertical-align: top;
3258
  right: 0 !important;
3259
+ }*/
3260
+ .sfsibeforpstwpr .sfsi_plus_Sicons .sf_pinit span{font-size:11px !important;}
3261
+ .sfsiaftrpstwpr .sfsi_plus_Sicons .sf_pinit span{font-size:11px !important;}
3262
+ .sfsibeforpstwpr .sfsi_plus_Sicons .sfsi_plus_inside .icon2 span{font-size:11px !important;}
3263
+ .sfsiaftrpstwpr .sfsi_plus_Sicons .sfsi_plus_inside .icon2 span{font-size:11px !important;}
js/custom-admin.js CHANGED
@@ -517,7 +517,7 @@ function sfsi_plus_update_step5()
517
  ele:SFSI(this).attr("element-id")
518
  });
519
  });
520
- var v = 1 == SFSI("input[name='sfsi_plus_rss_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_rss_MouseOverText']").val(), g = 1 == SFSI("input[name='sfsi_plus_email_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_email_MouseOverText']").val(), k = 1 == SFSI("input[name='sfsi_plus_twitter_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_twitter_MouseOverText']").val(), y = 1 == SFSI("input[name='sfsi_plus_facebook_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_facebook_MouseOverText']").val(), b = 1 == SFSI("input[name='sfsi_plus_google_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_google_MouseOverText']").val(), w = 1 == SFSI("input[name='sfsi_plus_linkedIn_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedIn_MouseOverText']").val(), x = 1 == SFSI("input[name='sfsi_plus_youtube_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_youtube_MouseOverText']").val(), C = 1 == SFSI("input[name='sfsi_plus_pinterest_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_pinterest_MouseOverText']").val(), D = 1 == SFSI("input[name='sfsi_plus_instagram_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_instagram_MouseOverText']").val(), D = 1 == SFSI("input[name='sfsi_plus_houzz_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_houzz_MouseOverText']").val(), U = 1 == SFSI("input[name='sfsi_plus_share_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_share_MouseOverText']").val(), O = {};
521
  SFSI("input[name='sfsi_plus_custom_MouseOverTexts[]']").each(function() {
522
  O[SFSI(this).attr("file-id")] = this.value;
523
  });
@@ -547,7 +547,7 @@ function sfsi_plus_update_step5()
547
  sfsi_plus_linkedIn_MouseOverText:w,
548
  sfsi_plus_pinterest_MouseOverText:C,
549
  sfsi_plus_share_MouseOverText:U,
550
- sfsi_plus_instagram_MouseOverText:D,
551
  sfsi_plus_houzz_MouseOverText:D,
552
  sfsi_plus_custom_MouseOverTexts:O,
553
  sfsi_plus_rssIcon_order:p,
517
  ele:SFSI(this).attr("element-id")
518
  });
519
  });
520
+ var v = 1 == SFSI("input[name='sfsi_plus_rss_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_rss_MouseOverText']").val(), g = 1 == SFSI("input[name='sfsi_plus_email_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_email_MouseOverText']").val(), k = 1 == SFSI("input[name='sfsi_plus_twitter_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_twitter_MouseOverText']").val(), y = 1 == SFSI("input[name='sfsi_plus_facebook_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_facebook_MouseOverText']").val(), b = 1 == SFSI("input[name='sfsi_plus_google_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_google_MouseOverText']").val(), w = 1 == SFSI("input[name='sfsi_plus_linkedIn_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedIn_MouseOverText']").val(), x = 1 == SFSI("input[name='sfsi_plus_youtube_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_youtube_MouseOverText']").val(), C = 1 == SFSI("input[name='sfsi_plus_pinterest_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_pinterest_MouseOverText']").val(), insD = 1 == SFSI("input[name='sfsi_plus_instagram_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_instagram_MouseOverText']").val(), D = 1 == SFSI("input[name='sfsi_plus_houzz_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_houzz_MouseOverText']").val(), U = 1 == SFSI("input[name='sfsi_plus_share_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_share_MouseOverText']").val(), O = {};
521
  SFSI("input[name='sfsi_plus_custom_MouseOverTexts[]']").each(function() {
522
  O[SFSI(this).attr("file-id")] = this.value;
523
  });
547
  sfsi_plus_linkedIn_MouseOverText:w,
548
  sfsi_plus_pinterest_MouseOverText:C,
549
  sfsi_plus_share_MouseOverText:U,
550
+ sfsi_plus_instagram_MouseOverText:insD,
551
  sfsi_plus_houzz_MouseOverText:D,
552
  sfsi_plus_custom_MouseOverTexts:O,
553
  sfsi_plus_rssIcon_order:p,
libs/controllers/sfsi_frontpopUp.php CHANGED
@@ -21,10 +21,13 @@ function sfsi_plus_check_PopUp($content)
21
  }
22
  else if($sfsi_plus_section7_options['sfsi_plus_Show_popupOn']=="selectedpage")
23
  {
24
- if(is_page() && in_array($post->ID, unserialize($sfsi_plus_section7_options['sfsi_plus_Show_popupOn_PageIDs'])))
25
  {
26
- $content= sfsi_plus_frontPopUp ().$content;
27
- }
 
 
 
28
  }
29
  else if($sfsi_plus_section7_options['sfsi_plus_Show_popupOn']=="everypage")
30
  {
21
  }
22
  else if($sfsi_plus_section7_options['sfsi_plus_Show_popupOn']=="selectedpage")
23
  {
24
+ if(!empty($post->ID) && !empty($sfsi_plus_section7_options['sfsi_plus_Show_popupOn_PageIDs']))
25
  {
26
+ if(is_page() && in_array($post->ID, unserialize($sfsi_plus_section7_options['sfsi_plus_Show_popupOn_PageIDs'])))
27
+ {
28
+ $content= sfsi_plus_frontPopUp ().$content;
29
+ }
30
+ }
31
  }
32
  else if($sfsi_plus_section7_options['sfsi_plus_Show_popupOn']=="everypage")
33
  {
libs/controllers/sfsi_socialhelper.php CHANGED
@@ -413,7 +413,7 @@ class sfsi_plus_SocialHelper
413
  /* create on page pinit button icon */
414
  public function sfsi_PinIt($url='')
415
  {
416
- $pin_it_html = '<a href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" ><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /></a>';
417
  return $pin_it_html;
418
  }
419
 
@@ -423,7 +423,7 @@ class sfsi_plus_SocialHelper
423
  $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
424
 
425
  /*if date is empty (for decrease request count)*/
426
- if(empty($sfsi_plus_instagram_sf_count["date"]) || empty($sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"]))
427
  {
428
  $sfsi_plus_instagram_sf_count["date"] = strtotime(date("Y-m-d"));
429
  $counts = $this->sfsi_plus_get_instagramFollowersCount($user_name);
@@ -461,7 +461,7 @@ class sfsi_plus_SocialHelper
461
  $return_data = $this->get_content_curl('https://api.instagram.com/v1/users/search?q='.$user_name.'&client_id=12d8dcc9abd74f83b0899756adccedc2');
462
  $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
463
  $json = json_decode($json_string, true);
464
- $user_id=$json['data'][0]['id'];
465
 
466
  $return_data = $this->get_content_curl('https://api.instagram.com/v1/users/'.$user_id.'/?access_token=53042481.ab103e5.0c6f8f50471a4e1f97595f8db529a47a');
467
  $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
413
  /* create on page pinit button icon */
414
  public function sfsi_PinIt($url='')
415
  {
416
+ $pin_it_html = '<script async defer src="//assets.pinterest.com/js/pinit.js"></script><a data-pin-do="buttonPin" data-pin-save="true" href="https://www.pinterest.com/pin/create/button/?url=&media=&description="></a>';
417
  return $pin_it_html;
418
  }
419
 
423
  $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
424
 
425
  /*if date is empty (for decrease request count)*/
426
+ if(empty($sfsi_plus_instagram_sf_count["date"]))
427
  {
428
  $sfsi_plus_instagram_sf_count["date"] = strtotime(date("Y-m-d"));
429
  $counts = $this->sfsi_plus_get_instagramFollowersCount($user_name);
461
  $return_data = $this->get_content_curl('https://api.instagram.com/v1/users/search?q='.$user_name.'&client_id=12d8dcc9abd74f83b0899756adccedc2');
462
  $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
463
  $json = json_decode($json_string, true);
464
+ $user_id=@$json['data'][0]['id'];
465
 
466
  $return_data = $this->get_content_curl('https://api.instagram.com/v1/users/'.$user_id.'/?access_token=53042481.ab103e5.0c6f8f50471a4e1f97595f8db529a47a');
467
  $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
libs/controllers/sfsiocns_OnPosts.php CHANGED
@@ -94,7 +94,7 @@ function sfsi_plus_social_buttons_below($content)
94
  }
95
  if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
96
  {
97
- if($show_count){$sfsiLikeWithpinit = "90px";}else{$sfsiLikeWithpinit = "auto";}
98
  $icons.="<div class='sf_pinit' style='display: inline-block;text-align:left;vertical-align: middle;width: ".$sfsiLikeWithpinit.";'>".sfsi_plus_pinitpinterest($permalink,$show_count)."</div>";
99
  }
100
  if($sfsi_section8['sfsi_plus_rectgp'] == 'yes')
@@ -231,16 +231,16 @@ return $fb_like_html;
231
  /* create pinit button */
232
  function sfsi_plus_pinitpinterest($permalink,$show_count)
233
  {
234
- $pinit_html = '<a href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" ';
235
  if($show_count)
236
  {
237
- $pinit_html .= 'count-layout="horizontal"';
238
  }
239
  else
240
  {
241
- $pinit_html .= 'count-layout="none"';
242
  }
243
- $pinit_html .= '><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /></a>';
244
 
245
  return $pinit_html;
246
  }
94
  }
95
  if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
96
  {
97
+ if($show_count){$sfsiLikeWithpinit = "100px";}else{$sfsiLikeWithpinit = "auto";}
98
  $icons.="<div class='sf_pinit' style='display: inline-block;text-align:left;vertical-align: middle;width: ".$sfsiLikeWithpinit.";'>".sfsi_plus_pinitpinterest($permalink,$show_count)."</div>";
99
  }
100
  if($sfsi_section8['sfsi_plus_rectgp'] == 'yes')
231
  /* create pinit button */
232
  function sfsi_plus_pinitpinterest($permalink,$show_count)
233
  {
234
+ $pinit_html = '<script async defer src="//assets.pinterest.com/js/pinit.js"></script><a href="https://www.pinterest.com/pin/create/button/?url=&media=&description=" data-pin-do="buttonPin" data-pin-save="true"';
235
  if($show_count)
236
  {
237
+ $pinit_html .= 'data-pin-count="beside"';
238
  }
239
  else
240
  {
241
+ $pinit_html .= 'data-pin-count="none"';
242
  }
243
+ $pinit_html .= '></a>';
244
 
245
  return $pinit_html;
246
  }
libs/sfsi_install_uninstall.php CHANGED
@@ -12,7 +12,7 @@ function sfsi_plus_update_plugin()
12
  }
13
 
14
  //Install version
15
- update_option("sfsi_plus_pluginVersion", "2.42");
16
 
17
  /*show notification*/
18
  if(!get_option('sfsi_plus_show_notification'))
12
  }
13
 
14
  //Install version
15
+ update_option("sfsi_plus_pluginVersion", "2.43");
16
 
17
  /*show notification*/
18
  if(!get_option('sfsi_plus_show_notification'))
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=seb.r
4
  Tags: social media, facebook, instagram, youtube, twitter, share, social share, buttons, counter, pop-up, subscription, icons
5
  Requires at least: 3.0
6
  Tested up to: 4.5.2
7
- Stable tag: 2.4.2
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -75,9 +75,14 @@ Note: This plugin requires CURL to be activated/installed on your server (which
75
 
76
  == Changelog ==
77
 
 
 
 
 
 
78
  = 2.4.2 =
79
  * Cute G+ icon didn't look good on dark backgrounds, fixed now
80
- * Counts for SpecificFeeds-subscribers sometimes caused high server load, fixed now.
81
 
82
  = 2.4.1 =
83
  * Size of custom icons corrected
@@ -239,5 +244,5 @@ Note: This plugin requires CURL to be activated/installed on your server (which
239
 
240
  == Upgrade Notice ==
241
 
242
- = 2.4.2 =
243
- * Please upgrade!
4
  Tags: social media, facebook, instagram, youtube, twitter, share, social share, buttons, counter, pop-up, subscription, icons
5
  Requires at least: 3.0
6
  Tested up to: 4.5.2
7
+ Stable tag: 2.4.3
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
75
 
76
  == Changelog ==
77
 
78
+ = 2.4.3 =
79
+ * jQuery issue fixed
80
+ * Counts for SpecificFeeds-subscribers are back, getting updated once a day
81
+ * Some mouse-over issues for custom icons, fixed now
82
+
83
  = 2.4.2 =
84
  * Cute G+ icon didn't look good on dark backgrounds, fixed now
85
+ * Counts for SpecificFeeds-subscribers disabled due to high server load. We'll try to bring them back in a future plugin version.
86
 
87
  = 2.4.1 =
88
  * Size of custom icons corrected
244
 
245
  == Upgrade Notice ==
246
 
247
+ = 2.4.3 =
248
+ * Please upgrade
ultimate_social_media_icons.php CHANGED
@@ -7,7 +7,7 @@ Author: UltimatelySocial
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://ultimatelysocial.com
10
- Version: 2.4.2
11
  License: GPLv2
12
  */
13
 
@@ -37,7 +37,7 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
37
  register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
38
 
39
  /*Plugin version setup*/
40
- if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.42)
41
  {
42
  add_action("init", "sfsi_plus_update_plugin");
43
  }
@@ -414,7 +414,7 @@ function sfsi_plus_beforeafterblogposts( $content )
414
  }
415
  if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
416
  {
417
- if($show_count){$sfsiLikeWithpinit = "90px";}else{$sfsiLikeWithpinit = "auto";}
418
  $icons_before.="<div class='sf_pinit' style='display: inline-block;vertical-align: middle;text-align:left;width: ".$sfsiLikeWithpinit."'>".sfsi_plus_pinitpinterest($permalink,$show_count)."</div>";
419
  }
420
 
@@ -491,7 +491,7 @@ function sfsi_plus_beforeafterblogposts( $content )
491
  }
492
  if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
493
  {
494
- if($show_count){$sfsiLikeWithpinit = "90px";}else{$sfsiLikeWithpinit = "auto";}
495
  $icons_after.="<div class='sf_pinit' style='display: inline-block;text-align:left;vertical-align: middle;width: ".$sfsiLikeWithpinit."'>".sfsi_plus_pinitpinterest($permalink,$show_count)."</div>";
496
  }
497
 
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://ultimatelysocial.com
10
+ Version: 2.4.3
11
  License: GPLv2
12
  */
13
 
37
  register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
38
 
39
  /*Plugin version setup*/
40
+ if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.43)
41
  {
42
  add_action("init", "sfsi_plus_update_plugin");
43
  }
414
  }
415
  if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
416
  {
417
+ if($show_count){$sfsiLikeWithpinit = "100px";}else{$sfsiLikeWithpinit = "auto";}
418
  $icons_before.="<div class='sf_pinit' style='display: inline-block;vertical-align: middle;text-align:left;width: ".$sfsiLikeWithpinit."'>".sfsi_plus_pinitpinterest($permalink,$show_count)."</div>";
419
  }
420
 
491
  }
492
  if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
493
  {
494
+ if($show_count){$sfsiLikeWithpinit = "100px";}else{$sfsiLikeWithpinit = "auto";}
495
  $icons_after.="<div class='sf_pinit' style='display: inline-block;text-align:left;vertical-align: middle;width: ".$sfsiLikeWithpinit."'>".sfsi_plus_pinitpinterest($permalink,$show_count)."</div>";
496
  }
497