Social Media Share Buttons & Social Sharing Icons - Version 2.2.9

Version Description

  • Solved: Sometimes icons after posts were not shown, this is corrected now.
Download this release

Release Info

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

Code changes from version 2.2.8 to 2.2.9

libs/controllers/sfsiocns_OnPosts.php CHANGED
@@ -6,9 +6,9 @@ function sfsi_social_buttons_below($content)
6
  global $post;
7
  $sfsi_section6 = unserialize(get_option('sfsi_section6_options', false));
8
  $sfsi_section9 = unserialize(get_option('sfsi_section9_options', false));
9
- if($sfsi_section9["sfsi_show_via_afterposts"]!=="yes"){
10
- return $content;
11
- }
12
  if($sfsi_section6["sfsi_display_button_type"]=="responsive_button"){
13
  if($sfsi_section6["sfsi_responsive_icons_end_post"]=="yes"){
14
  $content = $content . sfsi_social_responsive_buttons(null, $sfsi_section6);
@@ -49,14 +49,14 @@ function sfsi_social_buttons_below($content)
49
  }
50
  $txt = (isset($sfsi_section6['sfsi_textBefor_icons'])) ? $sfsi_section6['sfsi_textBefor_icons'] : "Please follow and like us:";
51
  $float = $sfsi_section6['sfsi_icons_alignment'];
52
- if (($sfsi_section9['sfsi_show_via_afterposts'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes") && ($sfsi_section6['sfsi_rectsub'] == 'yes' || $sfsi_section6['sfsi_rectfb'] == 'yes' || $sfsi_section6['sfsi_rectshr'] == 'yes' || $sfsi_section6['sfsi_recttwtr'] == 'yes' || $sfsi_section6['sfsi_rectpinit'] == 'yes' || $sfsi_section6['sfsi_rectfbshare'] == 'yes')) {
53
  $icons = "<div class='sfsi_Sicons' style='width: 100%; display: inline-block; vertical-align: middle; text-align:" . $float . "'><div style='margin:0px 8px 0px 0px; line-height: 24px'><span>" . $txt . "</span></div>";
54
  } else {
55
  $icons = "<div style='margin:0'>";
56
  }
57
  //adding wrapper div
58
  $icons .= "<div class='sfsi_socialwpr'>";
59
- if ($sfsi_section9['sfsi_show_via_afterposts'] == "yes" && $sfsi_section6['sfsi_rectsub'] == 'yes' && $sfsi_section6['sfsi_show_Onposts'] == "yes") {
60
  if ($show_count) {
61
  $sfsiLikeWithsub = "93px";
62
  } else {
@@ -67,7 +67,7 @@ function sfsi_social_buttons_below($content)
67
  }
68
  $icons .= "<div class='sf_subscrbe' style='text-align:left;vertical-align: middle;float:left;width:" . $sfsiLikeWithsub . "'>" . sfsi_Subscribelike($permalink, $show_count) . "</div>";
69
  }
70
- if (($sfsi_section9['sfsi_show_via_afterposts'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes") && ($sfsi_section6['sfsi_rectfb'] == 'yes' || $sfsi_section6['sfsi_rectfbshare'] == 'yes')) {
71
  if ($sfsi_section6['sfsi_rectfb'] == 'yes') {
72
  if ($show_count) {
73
  $sfsiLikeWithfb = "80px";
@@ -92,7 +92,7 @@ function sfsi_social_buttons_below($content)
92
 
93
  $icons .= "<div class='sf_fb' style='text-align:left;vertical-align: middle;width:" . $sfsiLikeWithfb . "'>" . sfsi_FBlike($permalink, $show_count) . "</div>";
94
  }
95
- if (($sfsi_section9['sfsi_show_via_afterposts'] == "yes" && $sfsi_section6['sfsi_recttwtr'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes")) {
96
  if ($show_count) {
97
  $sfsiLikeWithtwtr = "62px";
98
  } else {
@@ -104,7 +104,7 @@ function sfsi_social_buttons_below($content)
104
  $icons .= "<div class='sf_twiter' style='text-align:left;float:left;vertical-align: middle;width:auto'>" . sfsi_twitterlike($permalink, $show_count) . "</div>";
105
  }
106
 
107
- if (($sfsi_section9['sfsi_show_via_afterposts'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes") && $sfsi_section6['sfsi_rectpinit'] == 'yes') {
108
  $sfsi_pinwidth = "47px";
109
  if ($show_count) {
110
  $sfsi_pinwidth = "100px";
@@ -237,7 +237,7 @@ function sfsi_footer_script()
237
  $sfsi_section6['sfsi_show_Onposts'] = isset($sfsi_section6['sfsi_show_Onposts']) && !empty($sfsi_section6['sfsi_show_Onposts']) ? $sfsi_section6['sfsi_show_Onposts'] : "no";
238
  if ($sfsi_section1['sfsi_facebook_display'] == "yes") {
239
  // var_dump($sfsi_section6['sfsi_rectfb'],$sfsi_section6['sfsi_show_Onposts']);
240
- if (($sfsi_section9['sfsi_show_via_afterposts'] == "yes" && ($sfsi_section6['sfsi_rectfb'] == "yes" || $sfsi_section6['sfsi_rectfbshare'] == "yes") && $sfsi_section6['sfsi_show_Onposts'] == "yes") || $sisi_common_options_check && ($sfsi_section2['sfsi_facebookPage_option'] == "yes" || $sfsi_section2['sfsi_facebookLike_option'] == "yes" || $sfsi_section2['sfsi_facebookShare_option'] == "yes")) {
241
  ?>
242
  <!--facebook like and share js -->
243
  <div id="fb-root"></div>
@@ -296,7 +296,7 @@ function sfsi_footer_script()
296
  }
297
  }
298
  if ($sfsi_section1['sfsi_pinterest_display'] == "yes") {
299
- if (($sfsi_section9['sfsi_show_via_afterposts'] == "yes" && $sfsi_section6['sfsi_rectpinit'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes") || $sisi_common_options_check && ($sfsi_section2['sfsi_pinterest_page'] == 'yes' || $sfsi_section2['sfsi_pinterest_pingBlog'] == 'yes')) { ?>
300
  <!--pinit js -->
301
  <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
302
  <?php
@@ -304,7 +304,7 @@ function sfsi_footer_script()
304
  }
305
 
306
  if ($sfsi_section1['sfsi_twitter_display'] == "yes") {
307
- if (($sfsi_section9['sfsi_show_via_afterposts'] == "yes" && $sfsi_section6['sfsi_recttwtr'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes") || ($sisi_common_options_check && ($sfsi_section2['sfsi_twitter_page'] == 'yes' || $sfsi_section2['sfsi_twitter_followme'] == 'yes' || $sfsi_section2['sfsi_twitter_aboutPage'] == 'yes'))) { ?>
308
  <!-- twitter JS End -->
309
  <script>
310
  ! function(d, s, id) {
6
  global $post;
7
  $sfsi_section6 = unserialize(get_option('sfsi_section6_options', false));
8
  $sfsi_section9 = unserialize(get_option('sfsi_section9_options', false));
9
+ // if($sfsi_section9["sfsi_show_via_afterposts"]!=="yes"){
10
+ // return $content;
11
+ // }
12
  if($sfsi_section6["sfsi_display_button_type"]=="responsive_button"){
13
  if($sfsi_section6["sfsi_responsive_icons_end_post"]=="yes"){
14
  $content = $content . sfsi_social_responsive_buttons(null, $sfsi_section6);
49
  }
50
  $txt = (isset($sfsi_section6['sfsi_textBefor_icons'])) ? $sfsi_section6['sfsi_textBefor_icons'] : "Please follow and like us:";
51
  $float = $sfsi_section6['sfsi_icons_alignment'];
52
+ if (($sfsi_section6['sfsi_show_Onposts'] == "yes") && ($sfsi_section6['sfsi_rectsub'] == 'yes' || $sfsi_section6['sfsi_rectfb'] == 'yes' || $sfsi_section6['sfsi_rectshr'] == 'yes' || $sfsi_section6['sfsi_recttwtr'] == 'yes' || $sfsi_section6['sfsi_rectpinit'] == 'yes' || $sfsi_section6['sfsi_rectfbshare'] == 'yes')) {
53
  $icons = "<div class='sfsi_Sicons' style='width: 100%; display: inline-block; vertical-align: middle; text-align:" . $float . "'><div style='margin:0px 8px 0px 0px; line-height: 24px'><span>" . $txt . "</span></div>";
54
  } else {
55
  $icons = "<div style='margin:0'>";
56
  }
57
  //adding wrapper div
58
  $icons .= "<div class='sfsi_socialwpr'>";
59
+ if ( $sfsi_section6['sfsi_rectsub'] == 'yes' && $sfsi_section6['sfsi_show_Onposts'] == "yes") {
60
  if ($show_count) {
61
  $sfsiLikeWithsub = "93px";
62
  } else {
67
  }
68
  $icons .= "<div class='sf_subscrbe' style='text-align:left;vertical-align: middle;float:left;width:" . $sfsiLikeWithsub . "'>" . sfsi_Subscribelike($permalink, $show_count) . "</div>";
69
  }
70
+ if (($sfsi_section6['sfsi_show_Onposts'] == "yes") && ($sfsi_section6['sfsi_rectfb'] == 'yes' || $sfsi_section6['sfsi_rectfbshare'] == 'yes')) {
71
  if ($sfsi_section6['sfsi_rectfb'] == 'yes') {
72
  if ($show_count) {
73
  $sfsiLikeWithfb = "80px";
92
 
93
  $icons .= "<div class='sf_fb' style='text-align:left;vertical-align: middle;width:" . $sfsiLikeWithfb . "'>" . sfsi_FBlike($permalink, $show_count) . "</div>";
94
  }
95
+ if (( $sfsi_section6['sfsi_recttwtr'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes")) {
96
  if ($show_count) {
97
  $sfsiLikeWithtwtr = "62px";
98
  } else {
104
  $icons .= "<div class='sf_twiter' style='text-align:left;float:left;vertical-align: middle;width:auto'>" . sfsi_twitterlike($permalink, $show_count) . "</div>";
105
  }
106
 
107
+ if (($sfsi_section6['sfsi_show_Onposts'] == "yes") && $sfsi_section6['sfsi_rectpinit'] == 'yes') {
108
  $sfsi_pinwidth = "47px";
109
  if ($show_count) {
110
  $sfsi_pinwidth = "100px";
237
  $sfsi_section6['sfsi_show_Onposts'] = isset($sfsi_section6['sfsi_show_Onposts']) && !empty($sfsi_section6['sfsi_show_Onposts']) ? $sfsi_section6['sfsi_show_Onposts'] : "no";
238
  if ($sfsi_section1['sfsi_facebook_display'] == "yes") {
239
  // var_dump($sfsi_section6['sfsi_rectfb'],$sfsi_section6['sfsi_show_Onposts']);
240
+ if ((($sfsi_section6['sfsi_rectfb'] == "yes" || $sfsi_section6['sfsi_rectfbshare'] == "yes") && $sfsi_section6['sfsi_show_Onposts'] == "yes") || $sisi_common_options_check && ($sfsi_section2['sfsi_facebookPage_option'] == "yes" || $sfsi_section2['sfsi_facebookLike_option'] == "yes" || $sfsi_section2['sfsi_facebookShare_option'] == "yes")) {
241
  ?>
242
  <!--facebook like and share js -->
243
  <div id="fb-root"></div>
296
  }
297
  }
298
  if ($sfsi_section1['sfsi_pinterest_display'] == "yes") {
299
+ if (( $sfsi_section6['sfsi_rectpinit'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes") || $sisi_common_options_check && ($sfsi_section2['sfsi_pinterest_page'] == 'yes' || $sfsi_section2['sfsi_pinterest_pingBlog'] == 'yes')) { ?>
300
  <!--pinit js -->
301
  <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
302
  <?php
304
  }
305
 
306
  if ($sfsi_section1['sfsi_twitter_display'] == "yes") {
307
+ if (( $sfsi_section6['sfsi_recttwtr'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes") || ($sisi_common_options_check && ($sfsi_section2['sfsi_twitter_page'] == 'yes' || $sfsi_section2['sfsi_twitter_followme'] == 'yes' || $sfsi_section2['sfsi_twitter_aboutPage'] == 'yes'))) { ?>
308
  <!-- twitter JS End -->
309
  <script>
310
  ! function(d, s, id) {
libs/sfsi_install_uninstall.php CHANGED
@@ -34,7 +34,7 @@ function sfsi_update_plugin()
34
  update_option("sfsi_custom_icons", "yes");
35
  }
36
  //Install version
37
- update_option("sfsi_pluginVersion", "2.28");
38
 
39
  if (!get_option('sfsi_serverphpVersionnotification')) {
40
  add_option("sfsi_serverphpVersionnotification", "yes");
34
  update_option("sfsi_custom_icons", "yes");
35
  }
36
  //Install version
37
+ update_option("sfsi_pluginVersion", "2.29");
38
 
39
  if (!get_option('sfsi_serverphpVersionnotification')) {
40
  add_option("sfsi_serverphpVersionnotification", "yes");
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: socialdude, socialtech
3
  Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
4
  Requires at least: 3.5
5
  Tested up to: 5.2
6
- Stable tag: 2.2.8
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -275,6 +275,9 @@ You cannot use the same plugin twice, however you can install both the USM as we
275
 
276
  == Changelog ==
277
 
 
 
 
278
  = 2.2.8 =
279
  * Solved: Header already sent error on some servers.
280
 
@@ -816,5 +819,5 @@ You cannot use the same plugin twice, however you can install both the USM as we
816
 
817
  == Upgrade Notice ==
818
 
819
- = 2.2.8 =
820
  Please upgrade
3
  Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
4
  Requires at least: 3.5
5
  Tested up to: 5.2
6
+ Stable tag: 2.2.9
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
275
 
276
  == Changelog ==
277
 
278
+ = 2.2.9 =
279
+ * Solved: Sometimes icons after posts were not shown, this is corrected now.
280
+
281
  = 2.2.8 =
282
  * Solved: Header already sent error on some servers.
283
 
819
 
820
  == Upgrade Notice ==
821
 
822
+ = 2.2.9 =
823
  Please upgrade
ultimate_social_media_icons.php CHANGED
@@ -6,7 +6,7 @@ Description: Easy to use and 100% FREE social media plugin which adds social med
6
 
7
  Author: UltimatelySocial
8
  Author URI: http://ultimatelysocial.com
9
- Version: 2.2.8
10
  License: GPLv2 or later
11
  */
12
  require_once 'analyst/main.php';
@@ -97,7 +97,7 @@ register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
97
 
98
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
99
 
100
- if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.28)
101
  {
102
 
103
  add_action("init", "sfsi_update_plugin");
6
 
7
  Author: UltimatelySocial
8
  Author URI: http://ultimatelysocial.com
9
+ Version: 2.2.9
10
  License: GPLv2 or later
11
  */
12
  require_once 'analyst/main.php';
97
 
98
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
99
 
100
+ if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.29)
101
  {
102
 
103
  add_action("init", "sfsi_update_plugin");
views/subviews/que3/sfsi_que3_place_via_after_posts.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
-
3
  $sfsi_show_via_afterposts = "no";
4
 
5
  if(isset($option9['sfsi_show_via_afterposts']) && !empty($option9['sfsi_show_via_afterposts'])){
1
  <?php
2
+
3
  $sfsi_show_via_afterposts = "no";
4
 
5
  if(isset($option9['sfsi_show_via_afterposts']) && !empty($option9['sfsi_show_via_afterposts'])){