Social Share Icons & Social Share Buttons - Version 2.9.0

Version Description

  • Optimized texts
Download this release

Release Info

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

Code changes from version 2.8.9 to 2.9.0

css/sfsi-admin-style.css CHANGED
@@ -1276,3 +1276,6 @@ ul.sfsi_show_hide_section {float: right;width: 14%;}
1276
  .askhelpInview2 { bottom: 25px; }
1277
  .askhelpInview3 { bottom: 51px; }
1278
  .askhelpInview7 { bottom: 50px; }
 
 
 
1276
  .askhelpInview2 { bottom: 25px; }
1277
  .askhelpInview3 { bottom: 51px; }
1278
  .askhelpInview7 { bottom: 50px; }
1279
+
1280
+ .ulSuppressErrors {margin-top: 20px !important;}
1281
+ .ulSuppressErrors li {float: left;}
helpers/twitteroauth/twiiterCount.php CHANGED
@@ -14,8 +14,11 @@ function sfsi_plus_twitter_followers(){
14
 
15
  $connection = new TwitterOAuth($sfsi_plus_section4_options['sfsiplus_tw_consumer_key'], $sfsi_plus_section4_options['sfsiplus_tw_consumer_secret'], $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token'], $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token_secret']);
16
 
17
- $statuses = $connection->get('followers/ids');
18
- $count = count($statuses->ids);
 
 
 
19
  }
20
 
21
  return $count;
14
 
15
  $connection = new TwitterOAuth($sfsi_plus_section4_options['sfsiplus_tw_consumer_key'], $sfsi_plus_section4_options['sfsiplus_tw_consumer_secret'], $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token'], $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token_secret']);
16
 
17
+ if(isset($connection) && !empty($connection)){
18
+ $statuses = $connection->get('followers/ids');
19
+ $count = isset($statuses->ids) ? count($statuses->ids) :0;
20
+ }
21
+
22
  }
23
 
24
  return $count;
images/sad_image.png ADDED
Binary file
images/smile.png ADDED
Binary file
js/custom-admin.js CHANGED
@@ -540,6 +540,7 @@ function sfsi_plus_update_step5()
540
  });
541
 
542
  var sfsi_plus_custom_social_hide = SFSI("input[name='sfsi_plus_custom_social_hide']").val();
 
543
 
544
  var T = {
545
  action:"plus_updateSrcn5",
@@ -583,6 +584,7 @@ function sfsi_plus_update_step5()
583
  sfsi_plus_linkedinIcon_order:F,
584
  sfsi_plus_custom_orders:h,
585
  sfsi_plus_custom_social_hide:sfsi_plus_custom_social_hide,
 
586
  nonce:nonce
587
  };
588
  SFSI.ajax({
@@ -1203,6 +1205,15 @@ SFSI(document).ready(function(s) {
1203
  s.parents(".row_tab").next(".row_tab").hide("fast");
1204
  sfsi_plus_create_suscriber_form()
1205
  break;
 
 
 
 
 
 
 
 
 
1206
  default:
1207
  }
1208
  });
540
  });
541
 
542
  var sfsi_plus_custom_social_hide = SFSI("input[name='sfsi_plus_custom_social_hide']").val();
543
+ var se = SFSI("input[name='sfsi_pplus_icons_suppress_errors']:checked").val();
544
 
545
  var T = {
546
  action:"plus_updateSrcn5",
584
  sfsi_plus_linkedinIcon_order:F,
585
  sfsi_plus_custom_orders:h,
586
  sfsi_plus_custom_social_hide:sfsi_plus_custom_social_hide,
587
+ sfsi_pplus_icons_suppress_errors:se,
588
  nonce:nonce
589
  };
590
  SFSI.ajax({
1205
  s.parents(".row_tab").next(".row_tab").hide("fast");
1206
  sfsi_plus_create_suscriber_form()
1207
  break;
1208
+ case 'sfsi_pplus_icons_suppress_errors':
1209
+
1210
+ SFSI('input[name="sfsi_pplus_icons_suppress_errors"]').removeAttr('checked');
1211
+
1212
+ if(s.val() == 'yes')
1213
+ SFSI('input[name="sfsi_pplus_icons_suppress_errors"][value="yes"]').prop('checked','true');
1214
+ else
1215
+ SFSI('input[name="sfsi_pplus_icons_suppress_errors"][value="no"]').prop('checked','true');
1216
+ break;
1217
  default:
1218
  }
1219
  });
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -446,8 +446,10 @@ function sfsi_plus_options_updater5()
446
  ? $_POST["sfsi_plus_google_icons_language"]
447
  : 'Visit_us_en_US';
448
 
449
- $sfsi_plus_custom_social_hide = isset($_POST["sfsi_plus_custom_social_hide"]) ? $_POST["sfsi_plus_custom_social_hide"] : 'no';
450
-
 
 
451
  /* size and spacing of icons */
452
  $up_option5=array(
453
  'sfsi_plus_icons_size' => intval($sfsi_plus_icons_size),
@@ -490,12 +492,14 @@ function sfsi_plus_options_updater5()
490
  'sfsi_plus_houzzIcon_order' => intval($sfsi_plus_houzzIcon_order),
491
  'sfsi_plus_linkedinIcon_order' => intval($sfsi_plus_linkedinIcon_order),
492
  'sfsi_plus_custom_MouseOverTexts' => $sfsi_plus_custom_MouseOverTexts,
493
- 'sfsi_plus_custom_social_hide' => $sfsi_plus_custom_social_hide
494
- );
 
495
 
496
  update_option('sfsi_plus_section5_options',serialize($up_option5));
497
  header('Content-Type: application/json');
498
- echo json_encode(array("success")); exit;
 
499
  }
500
  /* save settings for section 6 */
501
  add_action('wp_ajax_plus_updateSrcn6','sfsi_plus_options_updater6');
@@ -731,8 +735,10 @@ function sfsi_plus_options_updater9()
731
  function sfsi_plus_getCounts()
732
  {
733
  $socialObj = new sfsi_plus_SocialHelper();
734
- $sfsi_plus_section4_options = unserialize(get_option('sfsi_plus_section4_options',false));
 
735
  $sfsi_plus_section2_options = unserialize(get_option('sfsi_plus_section2_options',false));
 
736
  $scounts = array(
737
  'rss_count'=>'',
738
  'email_count'=>'',
@@ -745,12 +751,12 @@ function sfsi_plus_getCounts()
745
  'share_count'=>''
746
  );
747
  /* get rss count */
748
- if(!empty($sfsi_plus_section4_options['sfsi_plus_rss_manualCounts']) )
749
  {
750
- $scounts['rss_count']=$sfsi_plus_section4_options['sfsi_plus_rss_manualCounts'];
751
  }
752
  /* get email count */
753
- if($sfsi_plus_section4_options['sfsi_plus_email_countsFrom']=="source" )
754
  {
755
  $feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id',false));
756
  $feed_data = $socialObj->SFSI_getFeedSubscriber($feed_id);
@@ -763,48 +769,54 @@ function sfsi_plus_getCounts()
763
  }
764
  else
765
  {
766
- $scounts['email_count']=$sfsi_plus_section4_options['sfsi_plus_email_manualCounts'];
767
 
768
  }
769
-
 
770
  /* get fb count */
771
- if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="likes" )
772
- {
773
- $url=home_url();
774
- $fb_data=$socialObj->sfsi_get_fb($url);
775
-
776
- $scounts['fb_count']= $socialObj->format_num($fb_data['like_count']);
777
-
778
- }
779
- else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="followers" )
780
- {
781
- $url=home_url();
782
- $fb_data=$socialObj->sfsi_get_fb($url);
783
- $scounts['fb_count']= format_num($fb_data['share_count']);
784
- if(empty($scounts['fb_count']))
785
- {
786
- $scounts['fb_count']=(string) "0";
787
- }
788
- }
789
- else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="mypage" )
790
- {
791
- $url = $sfsi_plus_section4_options['sfsi_plus_facebook_mypageCounts'];
792
- $fb_data = $socialObj->sfsi_get_fb_pagelike($url);
793
- $scounts['fb_count']= $fb_data;
794
- }
795
- else
796
- {
797
- $scounts['fb_count']=$sfsi_plus_section4_options['sfsi_plus_facebook_manualCounts'];
 
 
 
 
798
  }
 
799
  /* get twitter counts */
800
- if($sfsi_plus_section4_options['sfsi_plus_twitter_countsFrom']=="source")
801
  {
802
  $twitter_user = $sfsi_plus_section2_options['sfsi_plus_twitter_followUserName'];
803
  $tw_settings = array(
804
- 'sfsiplus_tw_consumer_key'=>$sfsi_plus_section4_options['sfsiplus_tw_consumer_key'],
805
- 'sfsiplus_tw_consumer_secret'=> $sfsi_plus_section4_options['sfsiplus_tw_consumer_secret'],
806
- 'sfsiplus_tw_oauth_access_token'=> $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token'],
807
- 'sfsiplus_tw_oauth_access_token_secret'=> $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token_secret']
808
  );
809
 
810
  $followers=$socialObj->sfsi_get_tweets($twitter_user,$tw_settings);
@@ -812,68 +824,74 @@ function sfsi_plus_getCounts()
812
  }
813
  else
814
  {
815
- $scounts['twitter_count']=$sfsi_plus_section4_options['sfsi_plus_twitter_manualCounts'];
816
  }
 
817
  /* get google+ counts */
818
- if($sfsi_plus_section4_options['sfsi_plus_google_countsFrom']=="follower" )
819
- {
820
- $url=$sfsi_plus_section2_options['sfsi_plus_google_pageURL'];
821
- $api_key=$sfsi_plus_section4_options['sfsi_plus_google_api_key'];
822
- $followers=$socialObj->sfsi_get_google($url,$api_key);
823
- if(!is_int($followers))
824
- {
825
- $followers=0;
826
- }
827
- $counts=$followers;
828
- $scounts['google_count']= $socialObj->format_num($followers);
829
- }
830
- else if($sfsi_plus_section4_options['sfsi_plus_google_countsFrom']=="likes" )
831
- {
832
- $url=home_url();
833
- $api_key = $sfsi_plus_section4_options['sfsi_plus_google_api_key'];
834
- $followers=$socialObj->sfsi_get_google($url,$api_key);
835
- if(!is_int($followers))
836
- {
837
- $followers=0;
838
- }
839
- $counts=$followers;
840
- $scounts['google_count']= $socialObj->format_num($followers);
841
- }
842
- else
843
- {
844
- $scounts['google_count']=$sfsi_plus_section4_options['sfsi_plus_google_manualCounts'];
 
 
 
845
  }
 
846
 
847
  /* get linkedIn counts */
848
- if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsFrom']=="follower" )
849
  {
850
  $linkedIn_compay=$sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
851
- $linkedIn_compay=$sfsi_plus_section4_options['sfsi_plus_ln_company'];
852
  $ln_settings=array(
853
- 'sfsi_plus_ln_api_key' => $sfsi_plus_section4_options['sfsi_plus_ln_api_key'],
854
- 'sfsi_plus_ln_secret_key' => $sfsi_plus_section4_options['sfsi_plus_ln_secret_key'],
855
- 'sfsi_plus_ln_oAuth_user_token' => $sfsi_plus_section4_options['sfsi_plus_ln_oAuth_user_token']
856
  );
857
  $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
858
  $scounts['linkedIn_count']= $socialObj->format_num($followers);
859
  }
860
  else
861
  {
862
- $scounts['linkedIn_count']=$sfsi_plus_section4_options['sfsi_plus_linkedIn_manualCounts'];
863
- }
 
864
  /* get youtube counts */
865
- if($sfsi_plus_section4_options['sfsi_plus_youtube_countsFrom']=="subscriber" )
866
  {
867
  if(
868
- isset($sfsi_plus_section4_options['sfsi_plus_youtube_user'])
869
  )
870
  {
871
- $youtube_user = $sfsi_plus_section4_options['sfsi_plus_youtube_user'];
872
 
873
  $youtube_user = (
874
- isset($sfsi_plus_section4_options['sfsi_plus_youtube_user']) &&
875
- !empty($sfsi_plus_section4_options['sfsi_plus_youtube_user'])
876
- ) ? $sfsi_plus_section4_options['sfsi_plus_youtube_user'] : 'SpecificFeeds';
877
 
878
  $followers = $socialObj->sfsi_get_youtube($youtube_user);
879
  $scounts['youtube_count'] = $socialObj->format_num($followers);
@@ -885,10 +903,10 @@ function sfsi_plus_getCounts()
885
  }
886
  else
887
  {
888
- $scounts['youtube_count']=$sfsi_plus_section4_options['sfsi_plus_youtube_manualCounts'];
889
  }
890
  /* get Pinterest counts */
891
- if($sfsi_plus_section4_options['sfsi_plus_pinterest_countsFrom']=="pins" )
892
  {
893
  $url=home_url();
894
  $pins=$socialObj->sfsi_get_pinterest($url);
@@ -896,22 +914,22 @@ function sfsi_plus_getCounts()
896
  }
897
  else
898
  {
899
- $scounts['pin_count']=$sfsi_plus_section4_options['sfsi_plus_pinterest_manualCounts'];
900
  }
901
  /* get addthis share counts */
902
- if(isset($sfsi_plus_section4_options['sfsi_plus_shares_countsFrom']) && $sfsi_plus_section4_options['sfsi_plus_shares_countsFrom']=="shares" && isset($sfsi_plus_section4_options['sfsi_share_countsDisplay']) && $sfsi_plus_section4_options['sfsi_share_countsDisplay'] =="yes")
903
  {
904
  $shares=$socialObj->sfsi_get_atthis();
905
  $scounts['share_count']= $socialObj->format_num($shares);
906
  }
907
  else
908
  {
909
- $scounts['share_count']=$sfsi_plus_section4_options['sfsi_plus_shares_manualCounts'];
910
  }
911
  /* get instagram count */
912
- if($sfsi_plus_section4_options['sfsi_plus_instagram_countsFrom']=="followers" )
913
  {
914
- $iuser_name= $sfsi_plus_section4_options['sfsi_plus_instagram_User'];
915
  $counts = $socialObj->sfsi_get_instagramFollowers($iuser_name);
916
  if(empty($counts))
917
  {
@@ -924,27 +942,24 @@ function sfsi_plus_getCounts()
924
  }
925
  else
926
  {
927
- $scounts['instagram_count'] = $sfsi_plus_section4_options['sfsi_plus_instagram_manualCounts'];
928
  }
929
 
930
  /* get instagram count */
931
- if(
932
- isset($sfsi_plus_section4_options['sfsi_plus_houzz_countsFrom']) &&
933
- $sfsi_plus_section4_options['sfsi_plus_houzz_countsFrom']=="manual"
934
- )
935
  {
936
  if(
937
- isset($sfsi_plus_section4_options['sfsi_plus_houzz_manualCounts'])
938
  )
939
  {
940
- $scounts['houzz_count'] = $sfsi_plus_section4_options['sfsi_plus_houzz_manualCounts'];
941
  }
942
  else
943
  {
944
  $scounts['houzz_count'] = '20';
945
  }
946
  }
947
- elseif(!isset($sfsi_plus_section4_options['sfsi_plus_houzz_countsFrom']))
948
  {
949
  $scounts['houzz_count'] = '20';
950
  }
446
  ? $_POST["sfsi_plus_google_icons_language"]
447
  : 'Visit_us_en_US';
448
 
449
+ $sfsi_plus_custom_social_hide = isset($_POST["sfsi_plus_custom_social_hide"]) ? $_POST["sfsi_plus_custom_social_hide"] : 'no';
450
+
451
+ $sfsi_pplus_icons_suppress_errors = isset($_POST["sfsi_pplus_icons_suppress_errors"]) ? $_POST["sfsi_pplus_icons_suppress_errors"] : 'no';
452
+
453
  /* size and spacing of icons */
454
  $up_option5=array(
455
  'sfsi_plus_icons_size' => intval($sfsi_plus_icons_size),
492
  'sfsi_plus_houzzIcon_order' => intval($sfsi_plus_houzzIcon_order),
493
  'sfsi_plus_linkedinIcon_order' => intval($sfsi_plus_linkedinIcon_order),
494
  'sfsi_plus_custom_MouseOverTexts' => $sfsi_plus_custom_MouseOverTexts,
495
+ 'sfsi_plus_custom_social_hide' => $sfsi_plus_custom_social_hide,
496
+ 'sfsi_pplus_icons_suppress_errors' => sanitize_text_field($sfsi_pplus_icons_suppress_errors)
497
+ );
498
 
499
  update_option('sfsi_plus_section5_options',serialize($up_option5));
500
  header('Content-Type: application/json');
501
+ echo json_encode(array("success"));
502
+ exit;
503
  }
504
  /* save settings for section 6 */
505
  add_action('wp_ajax_plus_updateSrcn6','sfsi_plus_options_updater6');
735
  function sfsi_plus_getCounts()
736
  {
737
  $socialObj = new sfsi_plus_SocialHelper();
738
+
739
+ $option4 = unserialize(get_option('sfsi_plus_section4_options',false));
740
  $sfsi_plus_section2_options = unserialize(get_option('sfsi_plus_section2_options',false));
741
+
742
  $scounts = array(
743
  'rss_count'=>'',
744
  'email_count'=>'',
751
  'share_count'=>''
752
  );
753
  /* get rss count */
754
+ if(isset($option4['sfsi_plus_rss_manualCounts']) && !empty($option4['sfsi_plus_rss_manualCounts']) )
755
  {
756
+ $scounts['rss_count']= $option4['sfsi_plus_rss_manualCounts'];
757
  }
758
  /* get email count */
759
+ if(isset($option4['sfsi_plus_email_countsFrom']) && !empty($option4['sfsi_plus_email_countsFrom']) && $option4['sfsi_plus_email_countsFrom']=="source" )
760
  {
761
  $feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id',false));
762
  $feed_data = $socialObj->SFSI_getFeedSubscriber($feed_id);
769
  }
770
  else
771
  {
772
+ $scounts['email_count']=$option4['sfsi_plus_email_manualCounts'];
773
 
774
  }
775
+
776
+
777
  /* get fb count */
778
+ if(isset($option4['sfsi_plus_facebook_countsFrom']) && !empty($option4['sfsi_plus_facebook_countsFrom'])){
779
+
780
+ if($option4['sfsi_plus_facebook_countsFrom']=="likes" )
781
+ {
782
+ $url=home_url();
783
+ $fb_data=$socialObj->sfsi_get_fb($url);
784
+
785
+ $scounts['fb_count']= $socialObj->format_num($fb_data['like_count']);
786
+
787
+ }
788
+ else if($option4['sfsi_plus_facebook_countsFrom']=="followers" )
789
+ {
790
+ $url=home_url();
791
+ $fb_data=$socialObj->sfsi_get_fb($url);
792
+ $scounts['fb_count']= format_num($fb_data['share_count']);
793
+ if(empty($scounts['fb_count']))
794
+ {
795
+ $scounts['fb_count']=(string) "0";
796
+ }
797
+ }
798
+ else if($option4['sfsi_plus_facebook_countsFrom']=="mypage" )
799
+ {
800
+ $url = $option4['sfsi_plus_facebook_mypageCounts'];
801
+ $fb_data = $socialObj->sfsi_get_fb_pagelike($url);
802
+ $scounts['fb_count']= $fb_data;
803
+ }
804
+ else
805
+ {
806
+ $scounts['fb_count']=$option4['sfsi_plus_facebook_manualCounts'];
807
+ }
808
+
809
  }
810
+
811
  /* get twitter counts */
812
+ if(isset($option4['sfsi_plus_twitter_countsFrom']) && !empty($option4['sfsi_plus_twitter_countsFrom']) && $option4['sfsi_plus_twitter_countsFrom']=="source")
813
  {
814
  $twitter_user = $sfsi_plus_section2_options['sfsi_plus_twitter_followUserName'];
815
  $tw_settings = array(
816
+ 'sfsiplus_tw_consumer_key'=>$option4['sfsiplus_tw_consumer_key'],
817
+ 'sfsiplus_tw_consumer_secret'=> $option4['sfsiplus_tw_consumer_secret'],
818
+ 'sfsiplus_tw_oauth_access_token'=> $option4['sfsiplus_tw_oauth_access_token'],
819
+ 'sfsiplus_tw_oauth_access_token_secret'=> $option4['sfsiplus_tw_oauth_access_token_secret']
820
  );
821
 
822
  $followers=$socialObj->sfsi_get_tweets($twitter_user,$tw_settings);
824
  }
825
  else
826
  {
827
+ $scounts['twitter_count']=$option4['sfsi_plus_twitter_manualCounts'];
828
  }
829
+
830
  /* get google+ counts */
831
+ if( isset($option4['sfsi_plus_google_countsFrom']) && !empty($option4['sfsi_plus_google_countsFrom']) ){
832
+
833
+ if($option4['sfsi_plus_google_countsFrom']=="follower" )
834
+ {
835
+ $url=$sfsi_plus_section2_options['sfsi_plus_google_pageURL'];
836
+ $api_key=$option4['sfsi_plus_google_api_key'];
837
+ $followers=$socialObj->sfsi_get_google($url,$api_key);
838
+ if(!is_int($followers))
839
+ {
840
+ $followers=0;
841
+ }
842
+ $counts=$followers;
843
+ $scounts['google_count']= $socialObj->format_num($followers);
844
+ }
845
+ else if($option4['sfsi_plus_google_countsFrom']=="likes" )
846
+ {
847
+ $url=home_url();
848
+ $api_key = $option4['sfsi_plus_google_api_key'];
849
+ $followers=$socialObj->sfsi_get_google($url,$api_key);
850
+ if(!is_int($followers))
851
+ {
852
+ $followers=0;
853
+ }
854
+ $counts=$followers;
855
+ $scounts['google_count']= $socialObj->format_num($followers);
856
+ }
857
+ else
858
+ {
859
+ $scounts['google_count']=$option4['sfsi_plus_google_manualCounts'];
860
+ }
861
  }
862
+
863
 
864
  /* get linkedIn counts */
865
+ if(isset($option4['sfsi_plus_linkedIn_countsFrom']) && !empty($option4['sfsi_plus_linkedIn_countsFrom']) && $option4['sfsi_plus_linkedIn_countsFrom']=="follower" )
866
  {
867
  $linkedIn_compay=$sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
868
+ $linkedIn_compay=$option4['sfsi_plus_ln_company'];
869
  $ln_settings=array(
870
+ 'sfsi_plus_ln_api_key' => $option4['sfsi_plus_ln_api_key'],
871
+ 'sfsi_plus_ln_secret_key' => $option4['sfsi_plus_ln_secret_key'],
872
+ 'sfsi_plus_ln_oAuth_user_token' => $option4['sfsi_plus_ln_oAuth_user_token']
873
  );
874
  $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
875
  $scounts['linkedIn_count']= $socialObj->format_num($followers);
876
  }
877
  else
878
  {
879
+ $scounts['linkedIn_count']=$option4['sfsi_plus_linkedIn_manualCounts'];
880
+ }
881
+
882
  /* get youtube counts */
883
+ if(isset($option4['sfsi_plus_youtube_countsFrom']) && !empty($option4['sfsi_plus_youtube_countsFrom']) && $option4['sfsi_plus_youtube_countsFrom']=="subscriber" )
884
  {
885
  if(
886
+ isset($option4['sfsi_plus_youtube_user'])
887
  )
888
  {
889
+ $youtube_user = $option4['sfsi_plus_youtube_user'];
890
 
891
  $youtube_user = (
892
+ isset($option4['sfsi_plus_youtube_user']) &&
893
+ !empty($option4['sfsi_plus_youtube_user'])
894
+ ) ? $option4['sfsi_plus_youtube_user'] : 'SpecificFeeds';
895
 
896
  $followers = $socialObj->sfsi_get_youtube($youtube_user);
897
  $scounts['youtube_count'] = $socialObj->format_num($followers);
903
  }
904
  else
905
  {
906
+ $scounts['youtube_count']=$option4['sfsi_plus_youtube_manualCounts'];
907
  }
908
  /* get Pinterest counts */
909
+ if(isset($option4['sfsi_plus_pinterest_countsFrom']) && !empty($option4['sfsi_plus_pinterest_countsFrom']) && $option4['sfsi_plus_pinterest_countsFrom']=="pins" )
910
  {
911
  $url=home_url();
912
  $pins=$socialObj->sfsi_get_pinterest($url);
914
  }
915
  else
916
  {
917
+ $scounts['pin_count']=$option4['sfsi_plus_pinterest_manualCounts'];
918
  }
919
  /* get addthis share counts */
920
+ if(isset($option4['sfsi_plus_shares_countsFrom']) && $option4['sfsi_plus_shares_countsFrom']=="shares" && isset($option4['sfsi_share_countsDisplay']) && $option4['sfsi_share_countsDisplay'] =="yes")
921
  {
922
  $shares=$socialObj->sfsi_get_atthis();
923
  $scounts['share_count']= $socialObj->format_num($shares);
924
  }
925
  else
926
  {
927
+ $scounts['share_count']=$option4['sfsi_plus_shares_manualCounts'];
928
  }
929
  /* get instagram count */
930
+ if(isset($option4['sfsi_plus_instagram_countsFrom']) && !empty($option4['sfsi_plus_instagram_countsFrom']) && $option4['sfsi_plus_instagram_countsFrom']=="followers" )
931
  {
932
+ $iuser_name= $option4['sfsi_plus_instagram_User'];
933
  $counts = $socialObj->sfsi_get_instagramFollowers($iuser_name);
934
  if(empty($counts))
935
  {
942
  }
943
  else
944
  {
945
+ $scounts['instagram_count'] = $option4['sfsi_plus_instagram_manualCounts'];
946
  }
947
 
948
  /* get instagram count */
949
+ if(isset($option4['sfsi_plus_houzz_countsFrom']) && !empty($option4['sfsi_plus_houzz_countsFrom']) && $option4['sfsi_plus_houzz_countsFrom']=="manual")
 
 
 
950
  {
951
  if(
952
+ isset($option4['sfsi_plus_houzz_manualCounts'])
953
  )
954
  {
955
+ $scounts['houzz_count'] = $option4['sfsi_plus_houzz_manualCounts'];
956
  }
957
  else
958
  {
959
  $scounts['houzz_count'] = '20';
960
  }
961
  }
962
+ elseif(!isset($option4['sfsi_plus_houzz_countsFrom']))
963
  {
964
  $scounts['houzz_count'] = '20';
965
  }
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.89");
16
 
17
  if(!get_option('sfsi_plus_serverphpVersionnotification'))
18
  {
@@ -135,7 +135,21 @@ function sfsi_plus_update_plugin()
135
  }
136
  if(!isset($option5['sfsi_plus_custom_social_hide'])){
137
  $option5['sfsi_plus_custom_social_hide'] = 'no';
138
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  update_option('sfsi_plus_section5_options', serialize($option5));
140
  }
141
 
@@ -395,9 +409,10 @@ function sfsi_plus_activate_plugin()
395
  'sfsi_plus_youtube_MouseOverText'=>'YouTube',
396
  'sfsi_plus_share_MouseOverText'=>'Share',
397
  'sfsi_plus_custom_MouseOverTexts'=>'',
398
- 'sfsi_plus_premium_size_box'=>'yes',
399
- 'sfsi_plus_custom_social_hide'=>'no'
400
- );
 
401
  add_option('sfsi_plus_section5_options', serialize($options5));
402
 
403
  /* post options */
12
  }
13
 
14
  //Install version
15
+ update_option("sfsi_plus_pluginVersion", "2.90");
16
 
17
  if(!get_option('sfsi_plus_serverphpVersionnotification'))
18
  {
135
  }
136
  if(!isset($option5['sfsi_plus_custom_social_hide'])){
137
  $option5['sfsi_plus_custom_social_hide'] = 'no';
138
+ }
139
+
140
+ if(!isset($option5['sfsi_icons_suppress_errors'])){
141
+
142
+ $sup_errors = "no";
143
+ $sup_errors_banner_dismissed = true;
144
+
145
+ if(defined('WP_DEBUG') && false != WP_DEBUG){
146
+ $sup_errors = 'yes';
147
+ $sup_errors_banner_dismissed = false;
148
+ }
149
+
150
+ $option5['sfsi_icons_suppress_errors'] = $sup_errors;
151
+ update_option('sfsi_error_reporting_notice_dismissed',$sup_errors_banner_dismissed);
152
+ }
153
  update_option('sfsi_plus_section5_options', serialize($option5));
154
  }
155
 
409
  'sfsi_plus_youtube_MouseOverText'=>'YouTube',
410
  'sfsi_plus_share_MouseOverText'=>'Share',
411
  'sfsi_plus_custom_MouseOverTexts'=>'',
412
+ 'sfsi_plus_premium_size_box'=>'yes',
413
+ 'sfsi_plus_custom_social_hide'=>'no',
414
+ 'sfsi_pplus_icons_suppress_errors'=>'no',
415
+ );
416
  add_option('sfsi_plus_section5_options', serialize($options5));
417
 
418
  /* post options */
libs/sfsi_widget.php CHANGED
@@ -331,7 +331,11 @@ function sfsi_plus_check_visiblity($isFloter=0)
331
 
332
  $jquery.="</script>";
333
  $icons.='</div >';
334
- $margin=$width+11;
 
 
 
 
335
  $icons_main.=$icons.'<div id="sfsi_holder" class="sfsi_plus_holders" style="position: relative; float: left;width:100%;z-index:-1;"></div >'.$jquery;
336
  /* if floating of icons is active create a floater div */
337
  $icons_float='';
331
 
332
  $jquery.="</script>";
333
  $icons.='</div >';
334
+
335
+ $width = isset($width) && !empty($width) ? $width : 0;
336
+
337
+ $margin= $width+11;
338
+
339
  $icons_main.=$icons.'<div id="sfsi_holder" class="sfsi_plus_holders" style="position: relative; float: left;width:100%;z-index:-1;"></div >'.$jquery;
340
  /* if floating of icons is active create a floater div */
341
  $icons_float='';
readme.txt CHANGED
@@ -1,25 +1,25 @@
1
- === Social Share Icons & Social Share Buttons ===
2
  Contributors: socialsharepro
3
- Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
4
  Requires at least: 3.0
5
  Tested up to: 4.9.4
6
- Stable tag: 2.8.9
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
- Social sharing plugin adding social buttons.
11
 
12
  == Description ==
13
 
14
- This social plugin makes placing social share icons on your site REALLY easy.
15
 
16
- This free plugin has a lot to offer. Even more can be found in the Premium Plugin, please watch this short video:
17
 
18
  [vimeo https://vimeo.com/269140798]
19
 
20
  See [all features of the Premium plugin](https://www.ultimatelysocial.com/usm-premium/).
21
 
22
- Key features of the free plugin:
23
 
24
  - Select from a **wide range of social share platforms** (see a list of them below)
25
  - Pick from **16 stylish design styles** for your social share buttons
@@ -36,11 +36,11 @@ For GDPR compliance, please have a look at our [Social Media GDPR Compliance pag
36
  In case of issues or questions please ask in the [Support forum] (https://wordpress.org/support/plugin/ultimate-social-media-plus).
37
 
38
 
39
- The plugin takes you through eight easy-to-answer questions so that configuring your social share icons becomes a no-brainer:
40
 
41
  = Question 1: Which social share buttons do you want to display? =
42
 
43
- You can select the following:
44
 
45
  * Facebook share icon
46
  * Twitter share icon
@@ -54,7 +54,7 @@ You can select the following:
54
  * Houzz share icon
55
  * Share icon (allows your visitors to share your site on over 200+ other social media sites; powered by addthis/sharethis)
56
 
57
- You can also upload custom social share buttons of your choice.
58
 
59
  The [Premium Plugin](https://www.ultimatelysocial.com/usm-premium) offers many more social share icons and buttons. The premium share button set includes a...
60
 
@@ -97,11 +97,11 @@ The [Premium Plugin](https://www.ultimatelysocial.com/usm-premium) offers many m
97
  * Delicious icon
98
  * Print icon
99
 
100
- If there are any important social share networks not covered yet, please let us know!
101
 
102
  = Question 2: What shall the social share buttons do? =
103
 
104
- Under this question you define what should happen if your visitors click on the social sharing icons.
105
 
106
  The options are plenty, for example for the *Facebook button* you can allow users to:
107
 
@@ -172,22 +172,22 @@ For the Googleplus share button similar options are available. For the Twitter s
172
 
173
  Here you get many other options to tailor the social share buttons to your needs. For example, you can:
174
 
175
- * Define the order of your social share buttons
176
- * Define the size of your social share buttons
177
- * Define the space between the social share buttons
178
- * Define the alignment of social share buttons (with respect to each other)
179
- * Decide how many social share buttons should be displayed per row
180
- * Pick a language for your visit us / like / follow / social share buttons
181
- * Decide to open windows in a new window (or same window) after user clicked on the social share buttons
182
- * Make the social share buttons stick (if placed via widget, so still visible if user scrolls down)
183
- * Disable float social share buttons on mobile devices
184
  * Disable auto-scaling feature of the social share buttons for mobile devices (“viewport” meta tag)
185
- * Give your social share buttons mouse-over texts
186
 
187
 
188
  = Question 7: Do you want to display a pop up? =
189
 
190
- A pop-up can make it more likely that your visitors share, follow or like your site (or connect with you). Therefore you can decide to show such a popup containing your social share buttons, and define…
191
  * *The layout of the pop up*, i.e. displayed text, font type, font style, font color, background color, border color, border thickness, and border shadow.
192
  * *Where the pop-up shall be shown*, i.e. on ever page, on blog posts only, or on selected pages only.
193
  * *When the pop-up shall be shown*, i.e. once every X seconds after the user arrived on the site, or every time the user scrolls to the end of the page.
@@ -197,7 +197,7 @@ A pop-up can make it more likely that your visitors share, follow or like your s
197
 
198
  In addition to an email button you can also place a subscription form on your site, making it more likely that users subscribe and follow your site. It works in a similar way as a newsletter (using RSS technology, but not linked to your RSS button).
199
 
200
- You can define the detailed layout of the subscription form, and have various options how to place it (via widget, shortcodes, or by copy/pasting HTML code on your site).
201
 
202
  == Premium Plugin ==
203
 
@@ -266,13 +266,13 @@ Those point to a CURL-issue on your site. Please contact your server admin or yo
266
 
267
  The plugin requires CURL for the social share counts and other features.
268
 
269
- = Social share buttons don't show =
270
 
271
  Please ensure you actually placed the social share buttons either as social widget (in your widget area) or as floating icons under question 5). The Premium Plugin makes placing sharing buttons especially easy and also allows you to place sticky buttons on your site, define the placement of the share buttons by margins and many other options, see https://www.ultimatelysocial.com/usm-premium/.
272
 
273
- If only some social share buttons show, but not all, then please clear your cache, and check if you may have conflicting browser extensions (e.g. 'Disconnect'-app in Chrome). Also Ad-Blockers are known culprits, please switch them off temporarily to see if that is the reason.
274
 
275
- If the social share buttons still don't show then there's an issue with your template. Please contact the creator of your template for that.
276
 
277
  If you are referring to specific social share buttons not showing in the plugin itself (e.g. you're looking for a Whatsapp icon, but it doesnt exist) please note that our Premium Plugin has many more social media share buttons, see https://www.ultimatelysocial.com/usm-premium/
278
 
@@ -298,7 +298,7 @@ Please ensure that you've selected the radio button 'Username' when you enter a
298
 
299
  = Aligning the social share buttons (centered, left- or right-aligned) doesn't work =
300
 
301
- The alignment options under question 5 align the sharing icons with respect to each other, not where they appear on the page. Our new Premium Plugin is the best social sharing plugin on the market, allowing you to define also many other button alignments (e.g. within a widget, within shortcode etc.).
302
 
303
  = Clicking on the RSS button returns funny codes =
304
 
@@ -372,7 +372,7 @@ We cannot provide you this data in other ways as it's coming directly from the s
372
 
373
  = How can I change the 'Please follow & like us :)'? =
374
 
375
- You can change it in the Widget-area where you dropped the widget with the sharing buttons on the sidebar. Please click on it (on the sidebar), it will open the menu where you can change the text.
376
 
377
  If you don't want to show any text, just enter a space (' ').
378
 
@@ -429,7 +429,7 @@ The premium plugin offrs many more social buttons from other social media platfo
429
 
430
  3. Then you'll define what the icons should do (they can perform several actions, e.g. lead users to your facebook page, or allow them to share your content on their facebook page)
431
 
432
- 4. In a third step you decide where the icons should be placed: a.) via Widget, b.) Floating, c.) via Shortcode and/or d.) Before or after posts
433
 
434
  5. You can pick from a wide range of social share icon designs
435
 
@@ -444,6 +444,9 @@ The premium plugin offrs many more social buttons from other social media platfo
444
 
445
  == Changelog ==
446
 
 
 
 
447
  = 2.8.9 =
448
  * Saving different languages for the social icons sometimes didn't work - fixed now
449
 
@@ -757,5 +760,5 @@ The premium plugin offrs many more social buttons from other social media platfo
757
 
758
  == Upgrade Notice ==
759
 
760
- = 2.8.9 =
761
  * Please update
1
+ === Social Widget Share Widget ===
2
  Contributors: socialsharepro
3
+ Tags: Share icons, Share widget, sharing widget, share buttons widget, share button widget, share social media, social buttons widget, sharing buttons widget, sharing icons widget, social media widget, social share widget, social sharing widget
4
  Requires at least: 3.0
5
  Tested up to: 4.9.4
6
+ Stable tag: 2.9.0
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ Social widget share widget
11
 
12
  == Description ==
13
 
14
+ This social widget makes placing social share icons on your site REALLY easy.
15
 
16
+ This free widget has a lot to offer. Even more can be found in the Premium Plugin, please watch this short video:
17
 
18
  [vimeo https://vimeo.com/269140798]
19
 
20
  See [all features of the Premium plugin](https://www.ultimatelysocial.com/usm-premium/).
21
 
22
+ Key features of the free widget:
23
 
24
  - Select from a **wide range of social share platforms** (see a list of them below)
25
  - Pick from **16 stylish design styles** for your social share buttons
36
  In case of issues or questions please ask in the [Support forum] (https://wordpress.org/support/plugin/ultimate-social-media-plus).
37
 
38
 
39
+ The plugin takes you through eight easy-to-answer questions so that configuring your social share icons via widget becomes a no-brainer:
40
 
41
  = Question 1: Which social share buttons do you want to display? =
42
 
43
+ You can select the following via widget:
44
 
45
  * Facebook share icon
46
  * Twitter share icon
54
  * Houzz share icon
55
  * Share icon (allows your visitors to share your site on over 200+ other social media sites; powered by addthis/sharethis)
56
 
57
+ You can also upload custom social share buttons of your choice to show via widget.
58
 
59
  The [Premium Plugin](https://www.ultimatelysocial.com/usm-premium) offers many more social share icons and buttons. The premium share button set includes a...
60
 
97
  * Delicious icon
98
  * Print icon
99
 
100
+ If there are any important social share networks not covered yet, please let us know in the support forum!
101
 
102
  = Question 2: What shall the social share buttons do? =
103
 
104
+ Under this question you define what should happen if your visitors click on the social sharing icons in the widget.
105
 
106
  The options are plenty, for example for the *Facebook button* you can allow users to:
107
 
172
 
173
  Here you get many other options to tailor the social share buttons to your needs. For example, you can:
174
 
175
+ * Define the order of your social share buttons in the widget
176
+ * Define the size of your social share buttons in the widget
177
+ * Define the space between the social share buttons in the widget
178
+ * Define the alignment of social share buttons (with respect to each other) in the widget
179
+ * Decide how many social share buttons should be displayed per row in the widget
180
+ * Pick a language for your visit us / like / follow / social share buttons in the widget
181
+ * Decide to open windows in a new window (or same window) after user clicked on the social share buttons in the widget
182
+ * Make the social share buttons stick (if placed via widget , so still visible if user scrolls down)
183
+ * Disable float social share buttons on mobile devices (if not placed via widget )
184
  * Disable auto-scaling feature of the social share buttons for mobile devices (“viewport” meta tag)
185
+ * Give your social share buttons mouse-over texts displaying in the widget
186
 
187
 
188
  = Question 7: Do you want to display a pop up? =
189
 
190
+ A pop-up can make it more likely that your visitors share, follow or like your site (or connect with you). It works independently from any widget. Therefore you can decide to show such a popup containing your social share buttons, and define…
191
  * *The layout of the pop up*, i.e. displayed text, font type, font style, font color, background color, border color, border thickness, and border shadow.
192
  * *Where the pop-up shall be shown*, i.e. on ever page, on blog posts only, or on selected pages only.
193
  * *When the pop-up shall be shown*, i.e. once every X seconds after the user arrived on the site, or every time the user scrolls to the end of the page.
197
 
198
  In addition to an email button you can also place a subscription form on your site, making it more likely that users subscribe and follow your site. It works in a similar way as a newsletter (using RSS technology, but not linked to your RSS button).
199
 
200
+ You can define the detailed layout of the subscription form, and have various options how to place it (via widget , shortcodes, or by copy/pasting HTML code on your site).
201
 
202
  == Premium Plugin ==
203
 
266
 
267
  The plugin requires CURL for the social share counts and other features.
268
 
269
+ = Social share buttons don't show in the widget =
270
 
271
  Please ensure you actually placed the social share buttons either as social widget (in your widget area) or as floating icons under question 5). The Premium Plugin makes placing sharing buttons especially easy and also allows you to place sticky buttons on your site, define the placement of the share buttons by margins and many other options, see https://www.ultimatelysocial.com/usm-premium/.
272
 
273
+ If only some social share buttons show in the widget, but not all, then please clear your cache, and check if you may have conflicting browser extensions (e.g. 'Disconnect'-app in Chrome). Also Ad-Blockers are known culprits, please switch them off temporarily to see if that is the reason.
274
 
275
+ If the social share buttons still don't show in the widget then there's an issue with your template. Please contact the creator of your template for that.
276
 
277
  If you are referring to specific social share buttons not showing in the plugin itself (e.g. you're looking for a Whatsapp icon, but it doesnt exist) please note that our Premium Plugin has many more social media share buttons, see https://www.ultimatelysocial.com/usm-premium/
278
 
298
 
299
  = Aligning the social share buttons (centered, left- or right-aligned) doesn't work =
300
 
301
+ The alignment options under question 5 align the sharing icons with respect to each other, not where they appear on the page. Our new Premium Plugin is the best social sharing plugin on the market, allowing you to define also many other button alignments (e.g. within a widget , within shortcode etc.).
302
 
303
  = Clicking on the RSS button returns funny codes =
304
 
372
 
373
  = How can I change the 'Please follow & like us :)'? =
374
 
375
+ You can change it in the Widget area where you dropped the widget with the sharing buttons on the sidebar. Please click on it (on the sidebar), it will open the menu where you can change the text.
376
 
377
  If you don't want to show any text, just enter a space (' ').
378
 
429
 
430
  3. Then you'll define what the icons should do (they can perform several actions, e.g. lead users to your facebook page, or allow them to share your content on their facebook page)
431
 
432
+ 4. In a third step you decide where the icons should be placed: a.) via Widget , b.) Floating, c.) via Shortcode and/or d.) Before or after posts
433
 
434
  5. You can pick from a wide range of social share icon designs
435
 
444
 
445
  == Changelog ==
446
 
447
+ = 2.9.0 =
448
+ * Optimized texts
449
+
450
  = 2.8.9 =
451
  * Saving different languages for the social icons sometimes didn't work - fixed now
452
 
760
 
761
  == Upgrade Notice ==
762
 
763
+ = 2.9.0 =
764
  * Please update
ultimate_social_media_icons.php CHANGED
@@ -7,11 +7,11 @@ Author: social share pro
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
- Version: 2.8.9
11
  License: GPLv2
12
  */
13
 
14
- error_reporting(0);
15
 
16
  global $wpdb;
17
  /* define the Root for URL and Document */
@@ -44,16 +44,17 @@ function sfsi_plus_freemius() {
44
  }
45
 
46
  // Init Freemius.
47
- sfsi_plus_freemius();
48
- sfsi_plus_freemius()->add_action('after_uninstall', 'sfsi_plus_Unistall_plugin');
49
 
50
  // Signal that SDK was initiated.
51
- do_action('usmp_fs_loaded');
52
 
53
  define('SFSI_PLUS_DOCROOT', dirname(__FILE__));
54
  define('SFSI_PLUS_PLUGURL', plugin_dir_url(__FILE__));
55
  define('SFSI_PLUS_WEBROOT', str_replace(getcwd(), home_url(), dirname(__FILE__)));
56
  define('SFSI_PLUS_DOMAIN', 'ultimate-social-media-plus');
 
57
 
58
  function sfsi_plus_get_current_url()
59
  {
@@ -93,12 +94,30 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
93
  //register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
94
 
95
  /*Plugin version setup*/
96
- if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.89)
97
  {
98
  add_action("init", "sfsi_plus_update_plugin");
99
  }
100
 
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  //shortcode for the ultimate social icons {Monad}
103
  add_shortcode("DISPLAY_ULTIMATE_PLUS", "DISPLAY_ULTIMATE_PLUS");
104
  function DISPLAY_ULTIMATE_PLUS($args = null, $content = null)
@@ -722,8 +741,6 @@ function sfsi_plus_admin_notice()
722
 
723
  }
724
 
725
-
726
-
727
  if(get_option("sfsi_plus_show_Setting_mobile_notification") == "yes")
728
  {
729
  $sfsi_plus_install_date = strtotime(get_option('sfsi_plus_installDate'));
@@ -819,6 +836,8 @@ function sfsi_plus_admin_notice()
819
  <?php
820
  }
821
  }
 
 
822
  }
823
 
824
 
@@ -866,21 +885,91 @@ function sfsi_plus_get_bloginfo($url)
866
  return $web_url;
867
  }
868
  /* plugin action link*/
869
- add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'sfsi_plus_action_links', 3 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
870
  function sfsi_plus_action_links ( $mylinks )
871
  {
872
- $linkQuestion = '<a target="_blank" href="https://goo.gl/MU6pTN#new-topic-0" style="color:#FF0000;"><b>Need help?</b></a>';
873
- $linkProVersion = '<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_manage_plugin_page&utm_campaign=check_out_pro_version&utm_medium=banner" style="color:#38B54A;"><b>Check out pro version</b></a>';
874
- $mylinks[] = @$mylinks['edit'];
875
- $mylinks[] = '<a href="'.admin_url("/admin.php?page=sfsi-plus-options").'">Settings</a>';
876
  unset ($mylinks['edit']);
877
 
878
- array_unshift($mylinks, $linkProVersion);
879
- array_unshift($mylinks, $linkQuestion);
 
 
 
880
 
881
  return $mylinks;
882
  }
883
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
884
  function sfsi_plus_getdomain($url)
885
  {
886
  $pieces = parse_url($url);
@@ -1143,3 +1232,69 @@ function sfsi_plus_ask_for_help($viewNumber){ ?>
1143
  // ********************************* Link to support forum left of every Save button CLOSES *******************************//
1144
 
1145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
+ Version: 2.9.0
11
  License: GPLv2
12
  */
13
 
14
+ sfsi_plus_error_reporting();
15
 
16
  global $wpdb;
17
  /* define the Root for URL and Document */
44
  }
45
 
46
  // Init Freemius.
47
+ // sfsi_plus_freemius();
48
+ // sfsi_plus_freemius()->add_action('after_uninstall', 'sfsi_plus_Unistall_plugin');
49
 
50
  // Signal that SDK was initiated.
51
+ //do_action('usmp_fs_loaded');
52
 
53
  define('SFSI_PLUS_DOCROOT', dirname(__FILE__));
54
  define('SFSI_PLUS_PLUGURL', plugin_dir_url(__FILE__));
55
  define('SFSI_PLUS_WEBROOT', str_replace(getcwd(), home_url(), dirname(__FILE__)));
56
  define('SFSI_PLUS_DOMAIN', 'ultimate-social-media-plus');
57
+ define('SFSI_PLUS_SUPPORT_FORM','https://goo.gl/jySrSF');
58
 
59
  function sfsi_plus_get_current_url()
60
  {
94
  //register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
95
 
96
  /*Plugin version setup*/
97
+ if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.90)
98
  {
99
  add_action("init", "sfsi_plus_update_plugin");
100
  }
101
 
102
 
103
+ //************************************** Setting error reporting STARTS ****************************************//
104
+
105
+ function sfsi_plus_error_reporting(){
106
+
107
+ $option5 = unserialize(get_option('sfsi_plus_section5_options',false));
108
+
109
+ if(isset($option5['sfsi_pplus_icons_suppress_errors'])
110
+
111
+ && !empty($option5['sfsi_pplus_icons_suppress_errors'])
112
+
113
+ && "yes" == $option5['sfsi_pplus_icons_suppress_errors']){
114
+
115
+ error_reporting(0);
116
+ }
117
+ }
118
+
119
+ //************************************** Setting error reporting CLOSES ****************************************//
120
+
121
  //shortcode for the ultimate social icons {Monad}
122
  add_shortcode("DISPLAY_ULTIMATE_PLUS", "DISPLAY_ULTIMATE_PLUS");
123
  function DISPLAY_ULTIMATE_PLUS($args = null, $content = null)
741
 
742
  }
743
 
 
 
744
  if(get_option("sfsi_plus_show_Setting_mobile_notification") == "yes")
745
  {
746
  $sfsi_plus_install_date = strtotime(get_option('sfsi_plus_installDate'));
836
  <?php
837
  }
838
  }
839
+
840
+ sfsi_plus_error_reporting_notice();
841
  }
842
 
843
 
885
  return $web_url;
886
  }
887
  /* plugin action link*/
888
+ function sfsi_plus_get_plugin_activation_deactivation_link( $plugin, $action = 'activate' ) {
889
+
890
+ $paged = isset($_GET['paged']) && !empty($_GET['paged']) ? intval($_GET['paged']) : 1;
891
+
892
+ if ( strpos( $plugin, '/' ) ) {
893
+ $plugin = str_replace( '\/', '%2F', $plugin );
894
+ }
895
+
896
+ $url = sprintf( admin_url( 'plugins.php?action=' . $action . '&plugin=%s&plugin_status=all&paged='.$paged.'&s' ), $plugin );
897
+
898
+ $_REQUEST['plugin'] = $plugin;
899
+
900
+ $url = wp_nonce_url( $url, $action . '-plugin_' . $plugin );
901
+ return $url;
902
+ }
903
+
904
+ add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'sfsi_plus_action_links', -9 );
905
  function sfsi_plus_action_links ( $mylinks )
906
  {
907
+ $mylinks[0] = '<a target="_blank" href="https://goo.gl/MU6pTN#new-topic-0" style="color:#FF0000;"><b>Need help?</b></a>';
908
+ $mylinks[1] = '<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_manage_plugin_page&utm_campaign=check_out_pro_version&utm_medium=banner" style="color:#38B54A;"><b>Check out pro version</b></a>';
909
+
910
+ unset ($mylinks['deactivate']);
911
  unset ($mylinks['edit']);
912
 
913
+ $slug = plugin_basename(dirname(__FILE__));
914
+ $deactivationLink = sfsi_plus_get_plugin_activation_deactivation_link(plugin_basename(__FILE__),'deactivate');
915
+
916
+ $mylinks[2] = '<a class="'.$slug.'" href="'.$deactivationLink.'">Deactivate</a></i>';
917
+ $mylinks[3] = '<a href="'.admin_url("/admin.php?page=sfsi-plus-options").'">Settings</a>';
918
 
919
  return $mylinks;
920
  }
921
 
922
+ global $pagenow;
923
+
924
+ if( 'plugins.php' === $pagenow ){
925
+
926
+ add_action( 'admin_footer', '_sfsi_plus_add_deactivation_feedback_dialog_box');
927
+
928
+ function _sfsi_plus_add_deactivation_feedback_dialog_box(){
929
+
930
+ include_once(SFSI_PLUS_DOCROOT.'/views/deactivation/sfsi_deactivation_popup.php');
931
+
932
+ $slug = plugin_basename(dirname(__FILE__));
933
+
934
+ ?>
935
+
936
+ <script type="text/javascript">
937
+
938
+ jQuery(document).ready(function($){
939
+
940
+ var className = '<?php echo $slug; ?>';
941
+
942
+ var _plus_deactivationLink = $('.'+className);
943
+
944
+ $('.sfsi-plus-deactivation-reason-link').find('a').attr('href',_plus_deactivationLink.attr('href'));
945
+
946
+ _plus_deactivationLink.on('click',function(e){
947
+ e.preventDefault();
948
+ $('[data-popup="plus-popup-1"]').fadeIn(350);
949
+ });
950
+
951
+ //----- CLOSE
952
+ $('[data-popup-close]').on('click', function(e) {
953
+ e.preventDefault();
954
+ var targeted_popup_class = jQuery(this).attr('data-popup-close');
955
+ $('[data-popup="' + targeted_popup_class + '"]').fadeOut(350);
956
+ });
957
+
958
+ //----- OPEN
959
+ $('[data-popup-open]').on('click', function(e) {
960
+ e.preventDefault();
961
+ var targeted_popup_class = jQuery(this).attr('data-popup-open');
962
+ $('[data-popup="' + targeted_popup_class + '"]').fadeIn(350);
963
+ });
964
+
965
+ });
966
+
967
+ </script>
968
+
969
+ <?php }
970
+ }
971
+
972
+
973
  function sfsi_plus_getdomain($url)
974
  {
975
  $pieces = parse_url($url);
1232
  // ********************************* Link to support forum left of every Save button CLOSES *******************************//
1233
 
1234
 
1235
+ // ********************************* Notice for error reporting STARTS *******************************//
1236
+
1237
+ function sfsi_plus_error_reporting_notice(){
1238
+
1239
+ if (is_admin()) :
1240
+
1241
+ $sfsi_error_reporting_notice_txt = 'We noticed that you have set error reporting to "yes" in wp-config. Our plugin (Ultimate Social Media Plus) switches this to "off" so that no errors are displayed (which may also impact error messages from your theme or other plugins). If you don\'t want that, please select the respective option under question 6 (at the bottom).';
1242
+
1243
+ $isDismissed = get_option('sfsi_pplus_error_reporting_notice_dismissed',false);
1244
+
1245
+ $option5 = unserialize(get_option('sfsi_plus_section5_options',false));
1246
+
1247
+ $sfsi_pplus_icons_suppress_errors = isset($option5['sfsi_pplus_icons_suppress_errors']) && !empty($option5['sfsi_pplus_icons_suppress_errors']) ? $option5['sfsi_pplus_icons_suppress_errors']: false;
1248
+
1249
+ if(isset($isDismissed) && false == $isDismissed && defined('WP_DEBUG') && false != WP_DEBUG && "yes"== $sfsi_pplus_icons_suppress_errors) { ?>
1250
+
1251
+ <div style="padding: 10px;margin-left: 0px;position: relative;" id="sfsi_error_reporting_notice" class="error notice">
1252
+
1253
+ <p><?php echo $sfsi_error_reporting_notice_txt; ?></p>
1254
+
1255
+ <button type="button" class="sfsi_pplus_error_reporting_notice-dismiss notice-dismiss"></button>
1256
+
1257
+ </div>
1258
+
1259
+ <script type="text/javascript">
1260
+
1261
+ if(typeof jQuery != 'undefined'){
1262
+
1263
+ (function sfsi_dismiss_notice(btnClass,ajaxAction){
1264
+
1265
+ var btnClass = "."+btnClass;
1266
+
1267
+ var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
1268
+
1269
+ jQuery(document).on("click", btnClass, function(){
1270
+
1271
+ jQuery.ajax({
1272
+ url:ajaxurl,
1273
+ type:"post",
1274
+ data:{action: ajaxAction},
1275
+ success:function(e) {
1276
+ if(false != e){
1277
+ jQuery(btnClass).parent().remove();
1278
+ }
1279
+ }
1280
+ });
1281
+
1282
+ });
1283
+
1284
+ }("sfsi_pplus_error_reporting_notice-dismiss","sfsi_pplus_dismiss_error_reporting_notice"));
1285
+ }
1286
+ </script>
1287
+
1288
+ <?php } ?>
1289
+
1290
+ <?php endif;
1291
+ }
1292
+
1293
+ function sfsi_pplus_dismiss_error_reporting_notice(){
1294
+ echo (string) update_option('sfsi_pplus_error_reporting_notice_dismissed',true);
1295
+ die;
1296
+ }
1297
+ add_action( 'wp_ajax_sfsi_pplus_dismiss_error_reporting_notice', 'sfsi_pplus_dismiss_error_reporting_notice' );
1298
+
1299
+ // ********************************* Notice for error reporting CLOSE *******************************//
1300
+
views/deactivation/sfsi_deactivation_popup.php ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <style>
2
+ .sfsi-top-header .sfsi-sad-image,
3
+ .sfsi-top-header h2 {
4
+ vertical-align: middle;
5
+ display: inline-block
6
+ }
7
+
8
+ .banner_support_forum {
9
+ margin: 50px auto;
10
+ text-align: center;
11
+ width: 80%
12
+ }
13
+
14
+ .banner_support_forum .banner-1 img {
15
+ width: 100%
16
+ }
17
+
18
+ .sfsi-plus-deactivation-popup {
19
+ width: 100%;
20
+ height: 100%;
21
+ display: none;
22
+ position: fixed;
23
+ top: 0;
24
+ left: 0;
25
+ background: rgba(0, 0, 0, .75)
26
+ }
27
+
28
+ .sfsi-plus-deactivation-popup-content {
29
+ max-width: 540px;
30
+ width: 90%;
31
+ position: absolute;
32
+ top: 50%;
33
+ left: 50%;
34
+ -webkit-transform: translate(-50%, -50%);
35
+ transform: translate(-50%, -50%);
36
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 1);
37
+ border-radius: 3px;
38
+ background: #fff
39
+ }
40
+
41
+ .sfsi-plus-deactivation-popup-close {
42
+ padding: 0 5px 3px;
43
+ display: inline-block;
44
+ position: absolute;
45
+ top: 25px;
46
+ right: 25px;
47
+ transition: ease .25s all;
48
+ -webkit-transform: translate(50%, -50%);
49
+ transform: translate(50%, -50%);
50
+ border-radius: 100%;
51
+ background: #FEFEFE;
52
+ font-size: 20px;
53
+ text-align: center;
54
+ line-height: 100%;
55
+ color: #acacac;
56
+ border: 1px solid #acacac;
57
+ text-decoration: none
58
+ }
59
+
60
+ .sfsi-plus-deactivation-popup-close:active,
61
+ .sfsi-plus-deactivation-popup-close:focus,
62
+ .sfsi-plus-deactivation-popup-close:hover {
63
+ color: #acacac;
64
+ border: 1px solid #acacac
65
+ }
66
+
67
+ .sfsi-plus-deactivation-popup-close:focus {
68
+ box-shadow: none!important
69
+ }
70
+
71
+ .sfsi-top-header {
72
+ text-align: center;
73
+ padding: 30px 30px 0
74
+ }
75
+
76
+ .sfsi-top-header h2 {
77
+ font-size: 22.92px;
78
+ margin-right: 12px
79
+ }
80
+
81
+ .sfsi-popup-content {
82
+ padding: 0 30px
83
+ }
84
+
85
+ .sfsi-text {
86
+ text-align: center;
87
+ padding-bottom: 14px
88
+ }
89
+
90
+ .sfsi-text .sfsi-please {
91
+ font-size: 16.92px;
92
+ font-weight: 900;
93
+ display: inline;
94
+ text-decoration: none!important;
95
+ border-bottom: 1px solid #000!important
96
+ }
97
+
98
+ .sfsi-text .sfsi-please-other-text {
99
+ font-size: 14.92px;
100
+ display: inline
101
+ }
102
+
103
+ .sfsi-go-to-support {
104
+ text-align: center
105
+ }
106
+
107
+ .sfsi-go-to-support .go-to-support-forum {
108
+ display: inline-block;
109
+ background: #26B654;
110
+ padding: 14px 35px;
111
+ font-size: 19.34px;
112
+ color: #fff;
113
+ text-decoration: none;
114
+ font-weight: 700
115
+ }
116
+
117
+ .sfsi-info-text {
118
+ text-align: center;
119
+ margin-left: auto;
120
+ width: 70%;
121
+ margin-right: auto;
122
+ padding-top: 10px;
123
+ padding-bottom: 23px
124
+ }
125
+
126
+ .sfsi-info-text p {
127
+ font-size: 9.31px!important
128
+ }
129
+
130
+ .sfsi-popup-footer {
131
+ border-top: 2px solid #f2f2f2
132
+ }
133
+
134
+ .sfsi-popup-footer .sfsi-plus-deactivation-reason-link {
135
+ text-align: center;
136
+ padding: 28px
137
+ }
138
+
139
+ .sfsi-popup-footer .sfsi-plus-deactivation-reason-link a {
140
+ text-decoration: none!important;
141
+ font-size: 12.73px;
142
+ color: #000;
143
+ border-bottom: 1px Solid #000
144
+ }
145
+
146
+ .sfsi-radio-button-content {
147
+ padding: 23px 30px
148
+ }
149
+
150
+ .sfsi-deactivate-radio-text {
151
+ font-size: 16.92px!important;
152
+ display: inline-block;
153
+ margin: 10px 0;
154
+ padding-top: 5px;
155
+ cursor: pointer
156
+ }
157
+
158
+ .sfsi-reason-1-section .sfsi-popup-content .sfsi-text .sfsi-please-other-text img,
159
+ .sfsi-reason-2-section .sfsi-popup-content .sfsi-text .sfsi-please-other-text img {
160
+ vertical-align: middle!important;
161
+ width: 16px!important;
162
+ margin-bottom: 3px!important
163
+ }
164
+
165
+ .sfsi-deactivate-radio-text .sfsi-bold-text {
166
+ font-weight: 700!important
167
+ }
168
+
169
+ .sfsi-reason-1-section .sfsi-popup-content .sfsi-text,
170
+ .sfsi-reason-3-section .sfsi-popup-content .sfsi-text {
171
+ text-align: left;
172
+ padding-top: 10px;
173
+ padding-bottom: 14px;
174
+ padding-left: 23px
175
+ }
176
+
177
+ .sfsi-reason-1-section .sfsi-popup-content,
178
+ .sfsi-reason-2-section .sfsi-popup-content,
179
+ .sfsi-reason-3-section .sfsi-popup-content {
180
+ padding: 0!important
181
+ }
182
+
183
+ .sfsi-reason-1-section .sfsi-popup-content .sfsi-text .sfsi-please {
184
+ border-bottom: none!important
185
+ }
186
+
187
+ .sfsi-premium-version-text {
188
+ color: #5489D0!important;
189
+ text-decoration: none;
190
+ font-weight: 700
191
+ }
192
+
193
+ .sfsi-just-deactivate-it {
194
+ text-align: center
195
+ }
196
+
197
+ .sfsi-just-deactivate-it a {
198
+ text-decoration: none!important;
199
+ font-size: 13.73px;
200
+ color: #000;
201
+ border-bottom: 1px solid #000
202
+ }
203
+
204
+ .show {
205
+ display: block
206
+ }
207
+
208
+ .hide {
209
+ display: none
210
+ }
211
+
212
+ .marginbottom {
213
+ margin-bottom: 15px
214
+ }
215
+
216
+ </style>
217
+
218
+ <div class="sfsi-plus-deactivation-popup" data-popup="plus-popup-1">
219
+
220
+ <div class="sfsi-plus-deactivation-popup-content">
221
+
222
+ <div class="sfsi-popup-header sfsi-top-header">
223
+ <h2><?php _e('Oh! You don\'t like our plugin?',SFSI_PLUS_DOMAIN); ?></h2>
224
+ <div class="sfsi-sad-image">
225
+ <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/sad_image.png">
226
+ </div>
227
+ </div>
228
+
229
+ <div class="sfsi-popup-content">
230
+ <div class="sfsi-text">
231
+ <p class="sfsi-please"><?php _e('PLEASE',SFSI_PLUS_DOMAIN); ?></p>
232
+ <p class="sfsi-please-other-text"><?php _e('let us know in the Support Forum what was the issue, <br>so that we can fix it. We‘ll respond quickly!',SFSI_PLUS_DOMAIN); ?></p>
233
+ </div>
234
+ <div class="sfsi-go-to-support">
235
+ <a target="_blank" href="<?php echo SFSI_PLUS_SUPPORT_FORM; ?>" class="go-to-support-forum"><?php _e('Go to Support Forum>',SFSI_PLUS_DOMAIN); ?></a>
236
+ </div>
237
+ <div class="sfsi-info-text">
238
+ <p><?php _e('If you\'re not a Wordpress user yet, please sign up – it\'s quick! Once logged in you‘ll see a section at the bottom where you can ask your question.',SFSI_PLUS_DOMAIN); ?> </p>
239
+ </div>
240
+ </div>
241
+ <div class="sfsi-popup-footer">
242
+ <div class="sfsi-plus-deactivation-reason-link">
243
+ <a href="javascript:void(0)"><?php _e('No, don\'t worry, there was a different reason, I want to de-activate it',SFSI_PLUS_DOMAIN); ?></a>
244
+ </div>
245
+ </div>
246
+
247
+ <a href="javascript:void(0)" class="sfsi-plus-deactivation-popup-close" data-popup-close="plus-popup-1">&times;</a>
248
+
249
+ </div>
250
+
251
+ </div>
252
+
253
+ <div class="sfsi-plus-deactivation-popup" data-popup="plus-popup-2">
254
+
255
+ <div class="sfsi-plus-deactivation-popup-content">
256
+
257
+ <!-- Radio buttons START-->
258
+ <div class="sfsi-radio-button-content">
259
+
260
+ <form>
261
+
262
+ <div class="sfsi-reason-container">
263
+
264
+ <input type="radio" class="sfsi-deactivate-radio" name="reason" value="0">
265
+ <p class="sfsi-deactivate-radio-text">The plugin <span class="sfsi-bold-text">doesn't work for me</span></p>
266
+
267
+ <div class="sfsi-reason-section hide">
268
+ <div class="sfsi-popup-content">
269
+ <div class="sfsi-text">
270
+ <p class="sfsi-please">PLEASE</p>
271
+ <p class="sfsi-please-other-text">let us know in the Support Forum what didn't work, <br>so that we can fix it. We‘ll respond quickly! <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/smile.png"></p>
272
+ </div>
273
+ <div class="sfsi-go-to-support">
274
+ <a target="_blank" href="<?php echo SFSI_PLUS_SUPPORT_FORM; ?>" class="go-to-support-forum">Go to Support Forum ></a>
275
+ </div>
276
+ <div class="sfsi-info-text">
277
+ <p>If you‘re not a Wordpress user yet, please sign up – it‘s quick! Once logged in you‘ll see a section at the bottom where you can ask your question. </p>
278
+ </div>
279
+ </div>
280
+ </div>
281
+
282
+ </div>
283
+
284
+ <div class="sfsi-reason-container">
285
+
286
+ <input type="radio" class="sfsi-deactivate-radio" name="reason" value="1">
287
+ <p class="sfsi-deactivate-radio-text">I got the <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium" class="sfsi-premium-version-text">premium version</a>!</p>
288
+
289
+ <div class="sfsi-reason-section hide">
290
+ <div class="sfsi-popup-content">
291
+ <div class="sfsi-text">
292
+ <p class="sfsi-please-other-text">Thumbs up to that one! <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/smile.png"></p>
293
+ </div>
294
+ <div class="sfsi-go-to-support">
295
+ <a href="javascript:void(0)" class="sfsi-deactive-plugin go-to-support-forum">De-activate plugin now</a>
296
+ </div>
297
+ </div>
298
+ </div>
299
+
300
+ </div>
301
+ <div class="sfsi-reason-container">
302
+
303
+ <input type="radio" class="sfsi-deactivate-radio" name="reason" value="2">
304
+ <p class="sfsi-deactivate-radio-text"><span class="sfsi-bold-text">Other</span></p>
305
+
306
+ <div class="sfsi-reason-section hide">
307
+ <div class="sfsi-popup-content marginbottom">
308
+ <div class="sfsi-text">
309
+ <p class="sfsi-please-other-text">Cool - if it was a reason we colud learn from, please let us know in the Support Forum.</p>
310
+ </div>
311
+ <div class="sfsi-go-to-support">
312
+ <a target="_blank" href="<?php echo SFSI_SUPPORT_FORM; ?>" class="go-to-support-forum">Go to Support Forum ></a>
313
+ </div>
314
+ </div>
315
+ </div>
316
+ </div>
317
+
318
+ <div class="sfsi-reason-container">
319
+
320
+ <div class="sfsi-just-deactivate-it">
321
+ <a href="javascript:void(0)" class="sfsi-deactive-plugin">Just de-activate it</a>
322
+ </div>
323
+
324
+ </div>
325
+
326
+ </form>
327
+
328
+ </div>
329
+ <!-- Radio buttons END-->
330
+
331
+ <a href="javascript:void(0)" class="sfsi-plus-deactivation-popup-close" data-popup-close="plus-popup-2">&times;</a>
332
+
333
+ </div>
334
+ </div>
views/sfsi_option_view5.php CHANGED
@@ -94,9 +94,13 @@
94
  $option5['sfsi_plus_houzz_MouseOverText'] = (isset($option5['sfsi_plus_houzz_MouseOverText']))
95
  ? sanitize_text_field($option5['sfsi_plus_houzz_MouseOverText'])
96
  : '';
97
- $option5['sfsi_plus_premium_size_box'] = (isset($option5['sfsi_plus_premium_size_box']))
98
  ? sanitize_text_field($option5['sfsi_plus_premium_size_box'])
99
  : 'yes';
 
 
 
 
100
 
101
  $visit_iconsUrl = SFSI_PLUS_PLUGURL."images/visit_icons/";
102
  if(is_array($custom_icons_order) )
@@ -1036,6 +1040,22 @@
1036
 
1037
  </div>
1038
  <!-- END mouse over text section -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1039
 
1040
  <?php sfsi_plus_ask_for_help(5); ?>
1041
 
94
  $option5['sfsi_plus_houzz_MouseOverText'] = (isset($option5['sfsi_plus_houzz_MouseOverText']))
95
  ? sanitize_text_field($option5['sfsi_plus_houzz_MouseOverText'])
96
  : '';
97
+ $option5['sfsi_plus_premium_size_box'] = (isset($option5['sfsi_plus_premium_size_box']))
98
  ? sanitize_text_field($option5['sfsi_plus_premium_size_box'])
99
  : 'yes';
100
+
101
+ $sfsi_icons_suppress_errors = (isset($option5['sfsi_pplus_icons_suppress_errors']))
102
+ ? sanitize_text_field($option5['sfsi_pplus_icons_suppress_errors'])
103
+ : 'no';
104
 
105
  $visit_iconsUrl = SFSI_PLUS_PLUGURL."images/visit_icons/";
106
  if(is_array($custom_icons_order) )
1040
 
1041
  </div>
1042
  <!-- END mouse over text section -->
1043
+
1044
+ <div class="row new_wind">
1045
+ <h4>Error reporting</h4>
1046
+ <div class="row_onl"><p>Suppress error messages?</p>
1047
+ <ul class="enough_waffling ulSuppressErrors">
1048
+ <li>
1049
+ <input name="sfsi_pplus_icons_suppress_errors" <?php echo ($sfsi_icons_suppress_errors=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
1050
+ <label>Yes</label>
1051
+ </li>
1052
+ <li>
1053
+ <input name="sfsi_pplus_icons_suppress_errors" <?php echo ($sfsi_icons_suppress_errors=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" />
1054
+ <label>No</label>
1055
+ </li>
1056
+ </ul>
1057
+ </div>
1058
+ </div>
1059
 
1060
  <?php sfsi_plus_ask_for_help(5); ?>
1061