Social Share Icons & Social Share Buttons - Version 2.3.7

Version Description

  • Translation errors fixed
Download this release

Release Info

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

Code changes from version 2.3.6 to 2.3.7

images/Thumbs.db CHANGED
Binary file
libs/controllers/sfsi_socialhelper.php CHANGED
@@ -41,9 +41,11 @@ class sfsi_plus_SocialHelper
41
  /* get linkedIn counts */
42
  function sfsi_get_linkedin($url)
43
  {
44
- $json_string = $this->file_get_contents_curl("http://www.linkedin.com/countserv/count/share?url=$url&format=json");
45
- $json = json_decode($json_string, true);
46
- return isset($json['count'])? intval($json['count']):0;
 
 
47
  }
48
 
49
  /* get linkedIn follower */
@@ -558,7 +560,7 @@ class sfsi_plus_SocialHelper
558
  private function sfsi_get_http_response_code($url)
559
  {
560
  $headers = get_headers($url);
561
- return substr($headers[0], 9, 3);
562
  }
563
  }
564
  /* end of class */
41
  /* get linkedIn counts */
42
  function sfsi_get_linkedin($url)
43
  {
44
+ $json_string = $this->file_get_contents_curl(
45
+ 'https://www.linkedin.com/countserv/count/share?format=json&url='.$url
46
+ );
47
+ $json = json_decode($json_string, true);
48
+ return isset($json['count'])? intval($json['count']):0;
49
  }
50
 
51
  /* get linkedIn follower */
560
  private function sfsi_get_http_response_code($url)
561
  {
562
  $headers = get_headers($url);
563
+ return substr(@$headers[0], 9, 3);
564
  }
565
  }
566
  /* end of class */
libs/controllers/sfsiocns_OnPosts.php CHANGED
@@ -95,7 +95,7 @@ function sfsi_plus_social_buttons_below($content)
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;vertical-align: middle;width: ".$sfsiLikeWithpinit.";'>".sfsi_plus_pinitpinterest($permalink,$show_count)."</div>";
99
  }
100
  if($sfsi_section8['sfsi_plus_rectgp'] == 'yes')
101
  {
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')
101
  {
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.36");
16
 
17
  /*show notification*/
18
  if(!get_option('sfsi_plus_show_notification'))
@@ -180,7 +180,7 @@ function sfsi_plus_activate_plugin()
180
  add_option('sfsi_plus_section2_options', serialize($options2));
181
 
182
  /* Design and animation option */
183
- $options3=array('sfsi_plus_mouseOver'=>'yes',
184
  'sfsi_plus_mouseOver_effect'=>'fade_in',
185
  'sfsi_plus_shuffle_icons'=>'no',
186
  'sfsi_plus_shuffle_Firstload'=>'no',
@@ -538,7 +538,7 @@ function sfsi_plus_check_wp_head() {
538
  $path=pathinfo($_SERVER['REQUEST_URI']);
539
  if($path['basename']=="themes.php" || $path['basename']=="theme-editor.php" || $path['basename']=="admin.php?page=sfsi-plus-options")
540
  {
541
- echo "<div class=\"error\" ><p>". __( 'Error : Please fix your theme to make plugins work correctly. Go to the Theme Editor and insert &lt;?php wp_head(); ?&gt; just before the &lt;/head&gt; line of your theme`s header.php file. Go to your theme editor: ', SFSI_PLUS_DOMAIN )."<a href=\"theme-editor.php\">".__('click here', SFSI_PLUS_DOMAIN )."</a>.</p></div>";
542
 
543
  }
544
  }
@@ -562,7 +562,7 @@ function sfsi_plus_check_wp_footer() {
562
 
563
  if($path['basename']=="themes.php" || $path['basename']=="theme-editor.php" || $path['basename']=="admin.php?page=sfsi-plus-options")
564
  {
565
- echo "<div class=\"error\" ><p>". __("Error : Please fix your theme to make plugins work correctly. Go to the Theme Editor and insert &lt;?php wp_footer(); ?&gt; as the first line of your theme's footer.php file. Go to your theme editor: ", SFSI_PLUS_DOMAIN)."<a href=\"theme-editor.php\">".__('click here', SFSI_PLUS_DOMAIN )."</a>.</p></div>";
566
  }
567
  }
568
  }
12
  }
13
 
14
  //Install version
15
+ update_option("sfsi_plus_pluginVersion", "2.37");
16
 
17
  /*show notification*/
18
  if(!get_option('sfsi_plus_show_notification'))
180
  add_option('sfsi_plus_section2_options', serialize($options2));
181
 
182
  /* Design and animation option */
183
+ $options3=array('sfsi_plus_mouseOver'=>'no',
184
  'sfsi_plus_mouseOver_effect'=>'fade_in',
185
  'sfsi_plus_shuffle_icons'=>'no',
186
  'sfsi_plus_shuffle_Firstload'=>'no',
538
  $path=pathinfo($_SERVER['REQUEST_URI']);
539
  if($path['basename']=="themes.php" || $path['basename']=="theme-editor.php" || $path['basename']=="admin.php?page=sfsi-plus-options")
540
  {
541
+ echo "<div class=\"error\" ><p>". __( 'Error : Please fix your theme to make plugins work correctly. Go to the Theme Editor and insert the following string:', SFSI_PLUS_DOMAIN )." &lt;?php wp_head(); ?&gt; ".__('Please enter it just before the following line of your header.php file:',SFSI_PLUS_DOMAIN)." &lt;/head&gt; ".__('Go to your theme editor: ',SFSI_PLUS_DOMAIN)."<a href=\"theme-editor.php\">".__('click here', SFSI_PLUS_DOMAIN )."</a>.</p></div>";
542
 
543
  }
544
  }
562
 
563
  if($path['basename']=="themes.php" || $path['basename']=="theme-editor.php" || $path['basename']=="admin.php?page=sfsi-plus-options")
564
  {
565
+ echo "<div class=\"error\" ><p>". __("Error: Please fix your theme to make plugins work correctly. Go to the Theme Editor and insert the following string as the first line of your theme's footer.php file: ", SFSI_PLUS_DOMAIN)." &lt;?php wp_footer(); ?&gt; ".__("Go to your theme editor: ", SFSI_PLUS_DOMAIN)."<a href=\"theme-editor.php\">".__('click here', SFSI_PLUS_DOMAIN )."</a>.</p></div>";
566
  }
567
  }
568
  }
libs/sfsi_widget.php CHANGED
@@ -373,9 +373,9 @@ function sfsi_plus_check_visiblity($isFloter=0)
373
  return $icons_data;
374
  }
375
  /* make all icons with saved settings in admin */
376
- function sfsi_plus_prepairIcons($icon_name,$is_front=0, $onpost="no")
377
  {
378
- global $wpdb; global $socialObj;
379
  $mouse_hover_effect = '';
380
  $active_theme = 'official';
381
  $sfsi_plus_shuffle_Firstload = 'no';
@@ -422,7 +422,15 @@ function sfsi_plus_prepairIcons($icon_name,$is_front=0, $onpost="no")
422
  $icons_space = $sfsi_plus_section5_options['sfsi_plus_icons_spacing'];
423
  $padding_top = '';
424
  $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
425
- $current_url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
 
 
 
 
 
 
 
 
426
  $url = "#";
427
  $cmcls='';
428
  $toolClass = '';
@@ -600,37 +608,49 @@ function sfsi_plus_prepairIcons($icon_name,$is_front=0, $onpost="no")
600
  }
601
 
602
  /* fecth no of counts if active in admin section */
603
- if(
 
 
 
 
 
 
 
 
 
 
 
604
  $sfsi_plus_section4_options['sfsi_plus_facebook_countsDisplay']=="yes" &&
605
  $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes"
606
  )
607
- {
608
- if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="manual")
609
- {
610
- $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_facebook_manualCounts']);
611
- }
612
- else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="likes")
613
- {
614
- $fb_data=$socialObj->sfsi_get_fb($current_url);
615
- $counts=$socialObj->format_num($fb_data['like_count']);
616
- if(empty($counts))
617
  {
618
- $counts=(string) "0";
 
 
 
 
 
619
  }
620
- }
621
- else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="followers")
622
- {
623
- $fb_data=$socialObj->sfsi_get_fb($current_url);
624
- $counts=$socialObj->format_num($fb_data['share_count']);
625
-
626
- }
627
- else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="mypage")
628
- {
629
- $current_url = $sfsi_plus_section4_options['sfsi_plus_facebook_mypageCounts'];
630
- $fb_data=$socialObj->sfsi_get_fb_pagelike($current_url);
631
- $counts=$socialObj->format_num($fb_data);
632
- }
633
- }
634
 
635
  //Custom Skin Support {Monad}
636
  if($active_theme == 'custom_support')
@@ -1198,7 +1218,7 @@ function sfsi_plus_prepairIcons($icon_name,$is_front=0, $onpost="no")
1198
  }
1199
  if($sfsi_plus_section2_options['sfsi_plus_linkedin_SharePage']=="yes")
1200
  {
1201
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_LinkedInShare()."</div>";
1202
  }
1203
  if($sfsi_plus_section2_options['sfsi_plus_linkedin_recommendBusines']=="yes")
1204
  {
@@ -1207,29 +1227,41 @@ function sfsi_plus_prepairIcons($icon_name,$is_front=0, $onpost="no")
1207
  }
1208
  }
1209
 
1210
- /* fecth no of counts if active in admin section */
1211
- if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1212
- {
1213
- if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsFrom']=="manual")
1214
- {
1215
- $counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_linkedIn_manualCounts']);
1216
- }
1217
- else if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsFrom']=="follower")
 
 
 
 
 
1218
  {
1219
- $linkedIn_compay=$sfsi_plus_section4_options['sfsi_plus_ln_company'];
1220
- $ln_settings=array('sfsi_plus_ln_api_key'=>$sfsi_plus_section4_options['sfsi_plus_ln_api_key'],
1221
- 'sfsi_plus_ln_secret_key'=>$sfsi_plus_section4_options['sfsi_plus_ln_secret_key'],
1222
- 'sfsi_plus_ln_oAuth_user_token'=>$sfsi_plus_section4_options['sfsi_plus_ln_oAuth_user_token']);
1223
-
1224
- $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
1225
- (int) $followers;
1226
- $counts=$socialObj->format_num($followers);
1227
- if(empty($counts))
1228
- {
1229
- $counts = (string) "0";
1230
- }
1231
- }
1232
- }
 
 
 
 
 
 
 
1233
  $totwith = $width+28+$icons_space;
1234
  $twt_margin = $totwith/2;
1235
 
@@ -1414,7 +1446,7 @@ function sfsi_plus_checkNewWindow()
1414
  }
1415
  }
1416
 
1417
- function sfsi_plus_check_posts_visiblity($isFloter=0)
1418
  {
1419
  global $wpdb;
1420
  /* Access the saved settings in database */
@@ -1489,19 +1521,19 @@ function sfsi_plus_check_posts_visiblity($isFloter=0)
1489
  case 'facebook' :
1490
  if($sfsi_plus_section1_options['sfsi_plus_facebook_display'] == 'yes')
1491
  {
1492
- $icons.= sfsi_plus_prepairIcons('facebook');
1493
  }
1494
  break;
1495
  case 'google' :
1496
  if($sfsi_plus_section1_options['sfsi_plus_google_display'] == 'yes')
1497
  {
1498
- $icons.= sfsi_plus_prepairIcons('google');
1499
  }
1500
  break;
1501
  case 'twitter' :
1502
  if($sfsi_plus_section1_options['sfsi_plus_twitter_display']=='yes')
1503
  {
1504
- $icons.= sfsi_plus_prepairIcons('twitter');
1505
  }
1506
  break;
1507
  case 'share' :
@@ -1526,7 +1558,7 @@ function sfsi_plus_check_posts_visiblity($isFloter=0)
1526
  case 'linkedin' :
1527
  if($sfsi_plus_section1_options['sfsi_plus_linkedin_display']=='yes')
1528
  {
1529
- $icons.= sfsi_plus_prepairIcons('linkedin');
1530
  }
1531
  break;
1532
  case 'instagram' :
373
  return $icons_data;
374
  }
375
  /* make all icons with saved settings in admin */
376
+ function sfsi_plus_prepairIcons($icon_name,$is_front=0, $onpost="no", $fromPost = NULL)
377
  {
378
+ global $wpdb; global $socialObj; global $post;
379
  $mouse_hover_effect = '';
380
  $active_theme = 'official';
381
  $sfsi_plus_shuffle_Firstload = 'no';
422
  $icons_space = $sfsi_plus_section5_options['sfsi_plus_icons_spacing'];
423
  $padding_top = '';
424
  $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
425
+ //$current_url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
426
+ if($fromPost == 'yes' && !empty($post))
427
+ {
428
+ $current_url = get_permalink($post->ID);
429
+ }
430
+ else
431
+ {
432
+ $current_url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
433
+ }
434
  $url = "#";
435
  $cmcls='';
436
  $toolClass = '';
608
  }
609
 
610
  /* fecth no of counts if active in admin section */
611
+ if($fromPost == 'yes' && !empty($post))
612
+ {
613
+ $fb_data=$socialObj->sfsi_get_fb($current_url);
614
+ $counts=$socialObj->format_num($fb_data['total_count']);
615
+ if(empty($counts))
616
+ {
617
+ $counts=(string) "0";
618
+ }
619
+ }
620
+ else
621
+ {
622
+ if(
623
  $sfsi_plus_section4_options['sfsi_plus_facebook_countsDisplay']=="yes" &&
624
  $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes"
625
  )
626
+ {
627
+ if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="manual")
628
+ {
629
+ $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_facebook_manualCounts']);
630
+ }
631
+ else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="likes")
 
 
 
 
632
  {
633
+ $fb_data=$socialObj->sfsi_get_fb($current_url);
634
+ $counts=$socialObj->format_num($fb_data['like_count']);
635
+ if(empty($counts))
636
+ {
637
+ $counts=(string) "0";
638
+ }
639
  }
640
+ else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="followers")
641
+ {
642
+ $fb_data=$socialObj->sfsi_get_fb($current_url);
643
+ $counts=$socialObj->format_num($fb_data['share_count']);
644
+
645
+ }
646
+ else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="mypage")
647
+ {
648
+ $current_url = $sfsi_plus_section4_options['sfsi_plus_facebook_mypageCounts'];
649
+ $fb_data=$socialObj->sfsi_get_fb_pagelike($current_url);
650
+ $counts=$socialObj->format_num($fb_data);
651
+ }
652
+ }
653
+ }
654
 
655
  //Custom Skin Support {Monad}
656
  if($active_theme == 'custom_support')
1218
  }
1219
  if($sfsi_plus_section2_options['sfsi_plus_linkedin_SharePage']=="yes")
1220
  {
1221
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_LinkedInShare($current_url)."</div>";
1222
  }
1223
  if($sfsi_plus_section2_options['sfsi_plus_linkedin_recommendBusines']=="yes")
1224
  {
1227
  }
1228
  }
1229
 
1230
+ /* fecth no of counts if active in admin section */
1231
+ if($fromPost == 'yes' && !empty($post))
1232
+ {
1233
+ $followers=$socialObj->sfsi_get_linkedin($current_url);
1234
+ $counts=$socialObj->format_num($followers);
1235
+ if(empty($counts))
1236
+ {
1237
+ $counts = (string) "0";
1238
+ }
1239
+ }
1240
+ else
1241
+ {
1242
+ if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1243
  {
1244
+ if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsFrom']=="manual")
1245
+ {
1246
+ $counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_linkedIn_manualCounts']);
1247
+ }
1248
+ else if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsFrom']=="follower")
1249
+ {
1250
+ $linkedIn_compay=$sfsi_plus_section4_options['sfsi_plus_ln_company'];
1251
+ $ln_settings=array('sfsi_plus_ln_api_key'=>$sfsi_plus_section4_options['sfsi_plus_ln_api_key'],
1252
+ 'sfsi_plus_ln_secret_key'=>$sfsi_plus_section4_options['sfsi_plus_ln_secret_key'],
1253
+ 'sfsi_plus_ln_oAuth_user_token'=>$sfsi_plus_section4_options['sfsi_plus_ln_oAuth_user_token']);
1254
+
1255
+ $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
1256
+ (int) $followers;
1257
+ $counts=$socialObj->format_num($followers);
1258
+ if(empty($counts))
1259
+ {
1260
+ $counts = (string) "0";
1261
+ }
1262
+ }
1263
+ }
1264
+ }
1265
  $totwith = $width+28+$icons_space;
1266
  $twt_margin = $totwith/2;
1267
 
1446
  }
1447
  }
1448
 
1449
+ function sfsi_plus_check_posts_visiblity($isFloter=0 , $fromPost = NULL)
1450
  {
1451
  global $wpdb;
1452
  /* Access the saved settings in database */
1521
  case 'facebook' :
1522
  if($sfsi_plus_section1_options['sfsi_plus_facebook_display'] == 'yes')
1523
  {
1524
+ $icons.= sfsi_plus_prepairIcons('facebook', 0, "no", $fromPost);
1525
  }
1526
  break;
1527
  case 'google' :
1528
  if($sfsi_plus_section1_options['sfsi_plus_google_display'] == 'yes')
1529
  {
1530
+ $icons.= sfsi_plus_prepairIcons('google', 0, "no", $fromPost);
1531
  }
1532
  break;
1533
  case 'twitter' :
1534
  if($sfsi_plus_section1_options['sfsi_plus_twitter_display']=='yes')
1535
  {
1536
+ $icons.= sfsi_plus_prepairIcons('twitter', 0, "no", $fromPost);
1537
  }
1538
  break;
1539
  case 'share' :
1558
  case 'linkedin' :
1559
  if($sfsi_plus_section1_options['sfsi_plus_linkedin_display']=='yes')
1560
  {
1561
+ $icons.= sfsi_plus_prepairIcons('linkedin', 0, "no", $fromPost);
1562
  }
1563
  break;
1564
  case 'instagram' :
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.4.2
7
- Stable tag: 2.3.6
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -372,6 +372,8 @@ Plugin adalah gratis dan sangat mudah digunakan.
372
 
373
  == Changelog ==
374
 
 
 
375
 
376
  = 2.3.6 =
377
  * Translation errors fixed
@@ -515,5 +517,5 @@ Plugin adalah gratis dan sangat mudah digunakan.
515
 
516
  == Upgrade Notice ==
517
 
518
- = 2.3.6 =
519
  * Upgrade if you faced issues
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.4.2
7
+ Stable tag: 2.3.7
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
372
 
373
  == Changelog ==
374
 
375
+ = 2.3.7 =
376
+ * Translation errors fixed
377
 
378
  = 2.3.6 =
379
  * Translation errors fixed
517
 
518
  == Upgrade Notice ==
519
 
520
+ = 2.3.7 =
521
  * Upgrade if you faced issues
ultimate_social_media_icons.php CHANGED
@@ -6,7 +6,7 @@ Description: The best social media plugin on the market. And 100% FREE. Allows y
6
  Author: UltimatelySocial
7
  Text Domain: ultimate-social-media-plus
8
  Author URI: http://ultimatelysocial.com
9
- Version: 2.3.6
10
  License: GPLv2
11
  */
12
 
@@ -36,7 +36,7 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
36
  register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
37
 
38
  /*Plugin version setup*/
39
- if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.36)
40
  {
41
  add_action("init", "sfsi_plus_update_plugin");
42
  }
@@ -265,7 +265,7 @@ function sfsi_plus_beforaftereposts( $content )
265
  {
266
  $icons_before .= "<div class='sfsi_plus_Sicons' style='".$style."'>";
267
  $icons_before .= "<div style='float:left;margin:0 0px; line-height:".$lineheight."px'><span>".$txt."</span></div>";
268
- $icons_before .= sfsi_plus_check_posts_visiblity(0);
269
  $icons_before .= "</div>";
270
  }
271
  $icons_before .= '</div>';
@@ -283,7 +283,7 @@ function sfsi_plus_beforaftereposts( $content )
283
  {
284
  $icons_after .= "<div class='sfsi_plus_Sicons' style='".$style."'>";
285
  $icons_after .= "<div style='float:left;margin:0 0px; line-height:".$lineheight."px'><span>".$txt."</span></div>";
286
- $icons_after .= sfsi_plus_check_posts_visiblity(0);
287
  $icons_after .= "</div>";
288
  }
289
  $icons_after .= '</div>';
@@ -414,7 +414,7 @@ function sfsi_plus_beforeafterblogposts( $content )
414
  if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
415
  {
416
  if($show_count){$sfsiLikeWithpinit = "90px";}else{$sfsiLikeWithpinit = "auto";}
417
- $icons_before.="<div class='sf_pinit' style='display: inline-block;vertical-align: middle;width: ".$sfsiLikeWithpinit."'>".sfsi_plus_pinitpinterest($permalink,$show_count)."</div>";
418
  }
419
 
420
  if($sfsi_section8['sfsi_plus_rectgp'] == 'yes')
@@ -430,7 +430,7 @@ function sfsi_plus_beforeafterblogposts( $content )
430
  else
431
  {
432
  $icons_before .= "<div style='float:left;margin:0 0px; line-height:".$lineheight."px'><span>".$txt."</span></div>";
433
- $icons_before .= sfsi_plus_check_posts_visiblity(0);
434
  }
435
  $icons_before .= "</div>";
436
  $icons_before .= "</div>";
@@ -491,7 +491,7 @@ function sfsi_plus_beforeafterblogposts( $content )
491
  if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
492
  {
493
  if($show_count){$sfsiLikeWithpinit = "90px";}else{$sfsiLikeWithpinit = "auto";}
494
- $icons_after.="<div class='sf_pinit' style='display: inline-block;vertical-align: middle;width: ".$sfsiLikeWithpinit."'>".sfsi_plus_pinitpinterest($permalink,$show_count)."</div>";
495
  }
496
 
497
  if($sfsi_section8['sfsi_plus_rectgp'] == 'yes')
@@ -507,7 +507,7 @@ function sfsi_plus_beforeafterblogposts( $content )
507
  else
508
  {
509
  $icons_after .= "<div style='float:left;margin:0 0px; line-height:".$lineheight."px'><span>".$txt."</span></div>";
510
- $icons_after .= sfsi_plus_check_posts_visiblity(0);
511
  }
512
  $icons_after .= "</div>";
513
  $icons_after .= "</div>";
6
  Author: UltimatelySocial
7
  Text Domain: ultimate-social-media-plus
8
  Author URI: http://ultimatelysocial.com
9
+ Version: 2.3.7
10
  License: GPLv2
11
  */
12
 
36
  register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
37
 
38
  /*Plugin version setup*/
39
+ if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.37)
40
  {
41
  add_action("init", "sfsi_plus_update_plugin");
42
  }
265
  {
266
  $icons_before .= "<div class='sfsi_plus_Sicons' style='".$style."'>";
267
  $icons_before .= "<div style='float:left;margin:0 0px; line-height:".$lineheight."px'><span>".$txt."</span></div>";
268
+ $icons_before .= sfsi_plus_check_posts_visiblity(0 , "yes");
269
  $icons_before .= "</div>";
270
  }
271
  $icons_before .= '</div>';
283
  {
284
  $icons_after .= "<div class='sfsi_plus_Sicons' style='".$style."'>";
285
  $icons_after .= "<div style='float:left;margin:0 0px; line-height:".$lineheight."px'><span>".$txt."</span></div>";
286
+ $icons_after .= sfsi_plus_check_posts_visiblity(0 , "yes");
287
  $icons_after .= "</div>";
288
  }
289
  $icons_after .= '</div>';
414
  if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
415
  {
416
  if($show_count){$sfsiLikeWithpinit = "90px";}else{$sfsiLikeWithpinit = "auto";}
417
+ $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>";
418
  }
419
 
420
  if($sfsi_section8['sfsi_plus_rectgp'] == 'yes')
430
  else
431
  {
432
  $icons_before .= "<div style='float:left;margin:0 0px; line-height:".$lineheight."px'><span>".$txt."</span></div>";
433
+ $icons_before .= sfsi_plus_check_posts_visiblity(0 , "yes");
434
  }
435
  $icons_before .= "</div>";
436
  $icons_before .= "</div>";
491
  if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
492
  {
493
  if($show_count){$sfsiLikeWithpinit = "90px";}else{$sfsiLikeWithpinit = "auto";}
494
+ $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>";
495
  }
496
 
497
  if($sfsi_section8['sfsi_plus_rectgp'] == 'yes')
507
  else
508
  {
509
  $icons_after .= "<div style='float:left;margin:0 0px; line-height:".$lineheight."px'><span>".$txt."</span></div>";
510
+ $icons_after .= sfsi_plus_check_posts_visiblity(0 , "yes");
511
  }
512
  $icons_after .= "</div>";
513
  $icons_after .= "</div>";
views/sfsi_option_view4.php CHANGED
@@ -410,7 +410,7 @@
410
  2: <?php _e( 'Click on "Create new app"', SFSI_PLUS_DOMAIN ); ?>
411
  </li>
412
  <li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
413
- 3: <?php _e( 'Enter a random Name, Descriptions and Website URL (including the "http://", e.g. http://dummysitename.com)', SFSI_PLUS_DOMAIN ); ?>
414
  </li>
415
  <li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
416
  4: <?php _e( 'Go to "Keys and Access Tokens" tab and click on "Generate Token" in the "Token actions" section at the bottom', SFSI_PLUS_DOMAIN ); ?>
410
  2: <?php _e( 'Click on "Create new app"', SFSI_PLUS_DOMAIN ); ?>
411
  </li>
412
  <li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
413
+ 3: <?php _e( 'Enter a random Name, Description and Website URL (including the "http://", e.g. http://dummysitename.com)', SFSI_PLUS_DOMAIN ); ?>
414
  </li>
415
  <li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
416
  4: <?php _e( 'Go to "Keys and Access Tokens" tab and click on "Generate Token" in the "Token actions" section at the bottom', SFSI_PLUS_DOMAIN ); ?>
views/sfsi_option_view8.php CHANGED
@@ -263,7 +263,11 @@
263
  }
264
  ?>
265
  <label class="sfsiplus_sub-subtitle ckckslctn" <?php echo $label_style;?>>
266
- <?php _e( 'Place &lt;?php echo DISPLAY_ULTIMATE_PLUS(); ?&gt; in your theme codes or use the shortcode [DISPLAY_ULTIMATE_PLUS] to display them wherever you want.', SFSI_PLUS_DOMAIN ); ?>
 
 
 
 
267
  </label>
268
  </p>
269
  </div>
263
  }
264
  ?>
265
  <label class="sfsiplus_sub-subtitle ckckslctn" <?php echo $label_style;?>>
266
+ <?php _e('Place the following string into your theme codes: ',SFSI_PLUS_DOMAIN);?>
267
+
268
+ &lt;?php echo DISPLAY_ULTIMATE_PLUS(); ?&gt;
269
+
270
+ <?php _e('Or use the shortcode [DISPLAY_ULTIMATE_PLUS] to display them wherever you want.',SFSI_PLUS_DOMAIN); ?>
271
  </label>
272
  </p>
273
  </div>