Social Media Share Buttons & Social Sharing Icons - Version 2.0.2

Version Description

  • Addthis removed due to GDPR
  • New option to switch debugging mode on/off
Download this release

Release Info

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

Code changes from version 2.0.1 to 2.0.2

css/sfsi-admin-style.css CHANGED
@@ -2087,3 +2087,9 @@ h2.optional { float: left;clear: both;margin-top: 25px !important; }
2087
  .askhelpInview2 { bottom: 25px; }
2088
  .askhelpInview3 { bottom: 51px; }
2089
  .askhelpInview7 { bottom: 50px; }
 
 
 
 
 
 
2087
  .askhelpInview2 { bottom: 25px; }
2088
  .askhelpInview3 { bottom: 51px; }
2089
  .askhelpInview7 { bottom: 50px; }
2090
+
2091
+ div#sfsi_plus_langnotice,div#sfsi_plus_addThis_removal_notice,div#sfsi_error_reporting_notice{
2092
+ padding: 10px;
2093
+ margin-left: 0px;
2094
+ position: relative;
2095
+ }
css/sfsi-style.css CHANGED
@@ -912,17 +912,14 @@ ul.tab_3_icns li .icns_tab_3, ul.tab_3_icns li .radio {
912
  .sfsi_Sicons .sf_fb{ margin: 0 4px 0 5px; line-height: 20px;}
913
  .sfsi_Sicons .sf_google{ margin: 0 5px 0 5px; line-height: 20px;}
914
  .sfsi_Sicons .sf_twiter{ margin: 2px 7px 0 4px; line-height: 17px;}
915
- .sfsi_Sicons .sf_addthis{ margin: 2px 7px 0 2px; line-height: 20px;}
916
  .sfsi_Sicons.left .sf_subscrbe{ margin: 2px 8px 3px 0; }
917
  .sfsi_Sicons.left .sf_fb{ margin: 0 8px 0 0; }
918
  .sfsi_Sicons.left .sf_google{ margin: 0 9px 0 0; }
919
  .sfsi_Sicons.left .sf_twiter{ margin: 2px 7px 0 0; }
920
- .sfsi_Sicons.left .sf_addthis{ margin: 2px 7px 0 0; }
921
  .sfsi_Sicons.right .sf_subscrbe{ margin: 2px 0 3px; }
922
  .sfsi_Sicons.right .sf_fb{ margin: 0 0 0 7px; }
923
  .sfsi_Sicons.right .sf_google{ margin: 0 0 0 7px; }
924
  .sfsi_Sicons.right .sf_twiter{ margin: 2px 0 0 8px; }
925
- .sfsi_Sicons.right .sf_addthis{ margin: 2px 0 0 6px; }
926
  .sfsi_Sicons .sf_subscrbe, .sfsi_Sicons .sf_twiter
927
  {
928
  position: relative;
@@ -980,14 +977,6 @@ ul.icn_listing li .right_info a {
980
  line-height: 27px;
981
  margin-left: 6px;
982
  }
983
- .sfsi_pop_up .addthis_toolbox {
984
- width: 80px;
985
- margin: 40px auto 0;
986
- }
987
- a.addthis_button_compact {
988
- margin-top: 0;
989
- width: auto;
990
- }
991
  .drop_lsts {
992
  left: 220px;
993
  position: relative;
@@ -1792,13 +1781,6 @@ h2.optional {
1792
  /*width: 450px!important;
1793
  z-index: 1;*/
1794
  }
1795
- .sfsi_Sicons .sf_addthis, .sfsi_Sicons .sf_google {
1796
- position: relative;
1797
- /*z-index: 99;*/
1798
- }
1799
- .wrapper .sfsi_Sicons .sf_addthis {
1800
- margin: 7px 0 0 4px!important;
1801
- }
1802
  .tab2 .utube_inn label {
1803
  font-size: 18px;
1804
  }
@@ -2201,11 +2183,6 @@ ul.cstmskin_iconlist {
2201
  {
2202
  float: left !important;
2203
  }
2204
- .sfsi_socialwpr .sf_addthis
2205
- {
2206
- float:left;
2207
- min-height: 20px;
2208
- }
2209
  .sfsipyplfrm
2210
  {
2211
  float: left;
@@ -2253,7 +2230,6 @@ ul.cstmskin_iconlist {
2253
  max-width: none;
2254
  }
2255
  .sfsi_mainContainer p.bldtxtmsg{float: left; font-size: 15px; font-weight: bold; margin-top: 12px; width: 100%;text-align: center;}
2256
- .addthis_toolbox a{border: medium none !important; float: left;}
2257
  .sfsinewplgndesc
2258
  {
2259
  background: none repeat scroll 0 0 #e5e5e5;
912
  .sfsi_Sicons .sf_fb{ margin: 0 4px 0 5px; line-height: 20px;}
913
  .sfsi_Sicons .sf_google{ margin: 0 5px 0 5px; line-height: 20px;}
914
  .sfsi_Sicons .sf_twiter{ margin: 2px 7px 0 4px; line-height: 17px;}
 
915
  .sfsi_Sicons.left .sf_subscrbe{ margin: 2px 8px 3px 0; }
916
  .sfsi_Sicons.left .sf_fb{ margin: 0 8px 0 0; }
917
  .sfsi_Sicons.left .sf_google{ margin: 0 9px 0 0; }
918
  .sfsi_Sicons.left .sf_twiter{ margin: 2px 7px 0 0; }
 
919
  .sfsi_Sicons.right .sf_subscrbe{ margin: 2px 0 3px; }
920
  .sfsi_Sicons.right .sf_fb{ margin: 0 0 0 7px; }
921
  .sfsi_Sicons.right .sf_google{ margin: 0 0 0 7px; }
922
  .sfsi_Sicons.right .sf_twiter{ margin: 2px 0 0 8px; }
 
923
  .sfsi_Sicons .sf_subscrbe, .sfsi_Sicons .sf_twiter
924
  {
925
  position: relative;
977
  line-height: 27px;
978
  margin-left: 6px;
979
  }
 
 
 
 
 
 
 
 
980
  .drop_lsts {
981
  left: 220px;
982
  position: relative;
1781
  /*width: 450px!important;
1782
  z-index: 1;*/
1783
  }
 
 
 
 
 
 
 
1784
  .tab2 .utube_inn label {
1785
  font-size: 18px;
1786
  }
2183
  {
2184
  float: left !important;
2185
  }
 
 
 
 
 
2186
  .sfsipyplfrm
2187
  {
2188
  float: left;
2230
  max-width: none;
2231
  }
2232
  .sfsi_mainContainer p.bldtxtmsg{float: left; font-size: 15px; font-weight: bold; margin-top: 12px; width: 100%;text-align: center;}
 
2233
  .sfsinewplgndesc
2234
  {
2235
  background: none repeat scroll 0 0 #e5e5e5;
js/custom-admin.js CHANGED
@@ -125,7 +125,6 @@ function sfsi_depened_sections() {
125
  SFSI("input[name='sfsi_facebook_display']").prop("checked") ? sfsi_section_Display("facebook_section", "show") :sfsi_section_Display("facebook_section", "hide"),
126
  SFSI("input[name='sfsi_twitter_display']").prop("checked") ? sfsi_section_Display("twitter_section", "show") :sfsi_section_Display("twitter_section", "hide"),
127
  SFSI("input[name='sfsi_google_display']").prop("checked") ? sfsi_section_Display("google_section", "show") :sfsi_section_Display("google_section", "hide"),
128
- SFSI("input[name='sfsi_share_display']").prop("checked") ? sfsi_section_Display("share_section", "show") :sfsi_section_Display("share_section", "hide"),
129
  SFSI("input[name='sfsi_youtube_display']").prop("checked") ? sfsi_section_Display("youtube_section", "show") :sfsi_section_Display("youtube_section", "hide"),
130
  SFSI("input[name='sfsi_pinterest_display']").prop("checked") ? sfsi_section_Display("pinterest_section", "show") :sfsi_section_Display("pinterest_section", "hide"),
131
  SFSI("input[name='sfsi_instagram_display']").prop("checked") ? sfsi_section_Display("instagram_section", "show") :sfsi_section_Display("instagram_section", "hide"),
@@ -206,7 +205,7 @@ function SFSI_done()
206
  data:e,
207
  success:function(msg) {
208
  jQuery("li.cstomskins_upload").children(".icns_tab_3").html(msg);
209
- SFSI("input[name='sfsi_rss_display']").prop("checked") ? sfsi_section_Display("rss_section", "show") :sfsi_section_Display("rss_section", "hide"),SFSI("input[name='sfsi_email_display']").prop("checked") ? sfsi_section_Display("email_section", "show") :sfsi_section_Display("email_section", "hide"),SFSI("input[name='sfsi_facebook_display']").prop("checked") ? sfsi_section_Display("facebook_section", "show") :sfsi_section_Display("facebook_section", "hide"), SFSI("input[name='sfsi_twitter_display']").prop("checked") ? sfsi_section_Display("twitter_section", "show") :sfsi_section_Display("twitter_section", "hide"),SFSI("input[name='sfsi_google_display']").prop("checked") ? sfsi_section_Display("google_section", "show") :sfsi_section_Display("google_section", "hide"), SFSI("input[name='sfsi_share_display']").prop("checked") ? sfsi_section_Display("share_section", "show") :sfsi_section_Display("share_section", "hide"), SFSI("input[name='sfsi_youtube_display']").prop("checked") ? sfsi_section_Display("youtube_section", "show") :sfsi_section_Display("youtube_section", "hide"), SFSI("input[name='sfsi_pinterest_display']").prop("checked") ? sfsi_section_Display("pinterest_section", "show") :sfsi_section_Display("pinterest_section", "hide"), SFSI("input[name='sfsi_instagram_display']").prop("checked") ? sfsi_section_Display("instagram_section", "show") :sfsi_section_Display("instagram_section", "hide"), SFSI("input[name='sfsi_linkedin_display']").prop("checked") ? sfsi_section_Display("linkedin_section", "show") :sfsi_section_Display("linkedin_section", "hide"), SFSI("input[element-type='cusotm-icon']").prop("checked") ? sfsi_section_Display("custom_section", "show") :sfsi_section_Display("custom_section", "hide");
210
  SFSI(".cstmskins-overlay").hide("slow");
211
  sfsi_update_step3() && sfsicollapse(this);
212
  }
@@ -243,14 +242,13 @@ function sfsi_newcustomicon_upload(s) {
243
  function sfsi_update_step1() {
244
  var nonce = SFSI("#sfsi_save1").attr("data-nonce");
245
  global_error = 0, beForeLoad(), sfsi_depened_sections();
246
- var s = !1, i = SFSI("input[name='sfsi_rss_display']:checked").val(), e = SFSI("input[name='sfsi_email_display']:checked").val(), t = SFSI("input[name='sfsi_facebook_display']:checked").val(), n = SFSI("input[name='sfsi_twitter_display']:checked").val(), o = SFSI("input[name='sfsi_google_display']:checked").val(), a = SFSI("input[name='sfsi_share_display']:checked").val(), r = SFSI("input[name='sfsi_youtube_display']:checked").val(), c = SFSI("input[name='sfsi_pinterest_display']:checked").val(), p = SFSI("input[name='sfsi_linkedin_display']:checked").val(), _ = SFSI("input[name='sfsi_instagram_display']:checked").val(), l = SFSI("input[name='sfsi_custom1_display']:checked").val(), S = SFSI("input[name='sfsi_custom2_display']:checked").val(), u = SFSI("input[name='sfsi_custom3_display']:checked").val(), f = SFSI("input[name='sfsi_custom4_display']:checked").val(), d = SFSI("input[name='sfsi_custom5_display']:checked").val(), I = {
247
  action:"updateSrcn1",
248
  sfsi_rss_display:i,
249
  sfsi_email_display:e,
250
  sfsi_facebook_display:t,
251
  sfsi_twitter_display:n,
252
  sfsi_google_display:o,
253
- sfsi_share_display:a,
254
  sfsi_youtube_display:r,
255
  sfsi_pinterest_display:c,
256
  sfsi_linkedin_display:p,
@@ -416,8 +414,7 @@ function sfsi_showPreviewCounts() {
416
  s = 1) :SFSI("#sfsi_google_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("checked") ? (SFSI("#sfsi_linkedIn_countsDisplay").css("opacity", 1),
417
  s = 1) :SFSI("#sfsi_linkedIn_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_youtube_countsDisplay']").prop("checked") ? (SFSI("#sfsi_youtube_countsDisplay").css("opacity", 1),
418
  s = 1) :SFSI("#sfsi_youtube_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("checked") ? (SFSI("#sfsi_pinterest_countsDisplay").css("opacity", 1),
419
- s = 1) :SFSI("#sfsi_pinterest_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_shares_countsDisplay']").prop("checked") ? (SFSI("#sfsi_shares_countsDisplay").css("opacity", 1),
420
- s = 1) :SFSI("#sfsi_shares_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_instagram_countsDisplay']").prop("checked") ? (SFSI("#sfsi_instagram_countsDisplay").css("opacity", 1),
421
  s = 1) :SFSI("#sfsi_instagram_countsDisplay").css("opacity", 0), 0 == s || "no" == SFSI("input[name='sfsi_display_counts']:checked").val() ? SFSI(".sfsi_Cdisplay").hide() :SFSI(".sfsi_Cdisplay").show();
422
  }
423
 
@@ -430,7 +427,7 @@ function sfsi_update_step4() {
430
  var s = !1, i = sfsi_validationStep4();
431
  if (!i) return global_error = 1, !1;
432
  beForeLoad();
433
- var e = SFSI("input[name='sfsi_display_counts']:checked").val(), t = 1 == SFSI("input[name='sfsi_email_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_countsDisplay']:checked").val(), n = 1 == SFSI("input[name='sfsi_email_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_countsFrom']:checked").val(), o = SFSI("input[name='sfsi_email_manualCounts']").val(), a = SFSI("input[name='sfsi_google_api_key']").val(), r = 1 == SFSI("input[name='sfsi_rss_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_countsDisplay']:checked").val(), c = SFSI("input[name='sfsi_rss_manualCounts']").val(), p = 1 == SFSI("input[name='sfsi_facebook_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_countsDisplay']:checked").val(), _ = 1 == SFSI("input[name='sfsi_facebook_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_countsFrom']:checked").val(), mp = SFSI("input[name='sfsi_facebook_mypageCounts']").val(), l = SFSI("input[name='sfsi_facebook_manualCounts']").val(), S = 1 == SFSI("input[name='sfsi_twitter_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_countsDisplay']:checked").val(), u = 1 == SFSI("input[name='sfsi_twitter_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_countsFrom']:checked").val(), f = SFSI("input[name='sfsi_twitter_manualCounts']").val(), d = SFSI("input[name='tw_consumer_key']").val(), I = SFSI("input[name='tw_consumer_secret']").val(), m = SFSI("input[name='tw_oauth_access_token']").val(), F = SFSI("input[name='tw_oauth_access_token_secret']").val(), h = 1 == SFSI("input[name='sfsi_google_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_countsDisplay']:checked").val(), v = 1 == SFSI("input[name='sfsi_google_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_countsFrom']:checked").val(), g = SFSI("input[name='sfsi_google_manualCounts']").val(), k = 1 == SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_linkedIn_manualCounts']").val(), b = SFSI("input[name='ln_company']").val(), w = SFSI("input[name='ln_api_key']").val(), x = SFSI("input[name='ln_secret_key']").val(), C = SFSI("input[name='ln_oAuth_user_token']").val(), D = 1 == SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_countsDisplay']:checked").val(), k = 1 == SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_linkedIn_manualCounts']").val(), U = 1 == SFSI("input[name='sfsi_youtube_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_countsDisplay']:checked").val(), O = 1 == SFSI("input[name='sfsi_youtube_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_countsFrom']:checked").val(), T = SFSI("input[name='sfsi_youtube_manualCounts']").val(), j = SFSI("input[name='sfsi_youtube_user']").val(), P = 1 == SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_countsDisplay']:checked").val(), M = 1 == SFSI("input[name='sfsi_pinterest_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_countsFrom']:checked").val(), L = SFSI("input[name='sfsi_pinterest_manualCounts']").val(), B = SFSI("input[name='sfsi_pinterest_user']").val(), E = SFSI("input[name='sfsi_pinterest_board']").val(), z = 1 == SFSI("input[name='sfsi_instagram_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_countsDisplay']:checked").val(), A = 1 == SFSI("input[name='sfsi_instagram_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_countsFrom']:checked").val(), N = SFSI("input[name='sfsi_instagram_manualCounts']").val(), H = SFSI("input[name='sfsi_instagram_User']").val(),ha = SFSI("input[name='sfsi_instagram_clientid']").val(),ia = SFSI("input[name='sfsi_instagram_appurl']").val(),ja = SFSI("input[name='sfsi_instagram_token']").val(), R = 1 == SFSI("input[name='sfsi_shares_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_shares_countsDisplay']:checked").val(), W = 1 == SFSI("input[name='sfsi_shares_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_shares_countsFrom']:checked").val(), q = SFSI("input[name='sfsi_shares_manualCounts']").val(), $ = {
434
  action:"updateSrcn4",
435
  sfsi_display_counts:e,
436
  sfsi_email_countsDisplay:t,
@@ -477,9 +474,6 @@ function sfsi_update_step4() {
477
  sfsi_instagram_clientid:ha,
478
  sfsi_instagram_appurl:ia,
479
  sfsi_instagram_token:ja,
480
- sfsi_shares_countsDisplay:R,
481
- sfsi_shares_countsFrom:W,
482
- sfsi_shares_manualCounts:q,
483
  nonce:nonce
484
  };
485
  return SFSI.ajax({
@@ -521,10 +515,7 @@ function sfsi_update_step5() {
521
  n = SFSI("#sfsi_icons_Alignment").val(),
522
  o = SFSI("input[name='sfsi_icons_ClickPageOpen']:checked").val(),
523
 
524
- //a = SFSI("input[name='sfsi_icons_float']:checked").val(),
525
- //dsb = SFSI("input[name='sfsi_disable_floaticons']:checked").val(),
526
- //r = SFSI("#sfsi_icons_floatPosition").val(),
527
-
528
  c = SFSI("input[name='sfsi_icons_stick']:checked").val(),
529
  p = SFSI("#sfsi_rssIcon_order").attr("data-index"),
530
  _ = SFSI("#sfsi_emailIcon_order").attr("data-index"),
@@ -534,7 +525,6 @@ function sfsi_update_step5() {
534
  f = SFSI("#sfsi_youtubeIcon_order").attr("data-index"),
535
  d = SFSI("#sfsi_pinterestIcon_order").attr("data-index"),
536
  I = SFSI("#sfsi_instagramIcon_order").attr("data-index"),
537
- m = SFSI("#sfsi_shareIcon_order").attr("data-index"),
538
  F = SFSI("#sfsi_linkedinIcon_order").attr("data-index"),
539
  h = new Array();
540
 
@@ -551,7 +541,7 @@ function sfsi_update_step5() {
551
  // msl = SFSI("input[name='sfsi_icons_floatMargin_left']").val(),
552
  // msr = SFSI("input[name='sfsi_icons_floatMargin_right']").val();
553
 
554
- var v = 1 == SFSI("input[name='sfsi_rss_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_MouseOverText']").val(), g = 1 == SFSI("input[name='sfsi_email_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_MouseOverText']").val(), k = 1 == SFSI("input[name='sfsi_twitter_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_MouseOverText']").val(), y = 1 == SFSI("input[name='sfsi_facebook_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_MouseOverText']").val(), b = 1 == SFSI("input[name='sfsi_google_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_MouseOverText']").val(), w = 1 == SFSI("input[name='sfsi_linkedIn_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_MouseOverText']").val(), x = 1 == SFSI("input[name='sfsi_youtube_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_MouseOverText']").val(), C = 1 == SFSI("input[name='sfsi_pinterest_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_MouseOverText']").val(), D = 1 == SFSI("input[name='sfsi_instagram_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_MouseOverText']").val(), U = 1 == SFSI("input[name='sfsi_share_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_share_MouseOverText']").val(), O = {};
555
  SFSI("input[name='sfsi_custom_MouseOverTexts[]']").each(function() {
556
  O[SFSI(this).attr("file-id")] = this.value;
557
  });
@@ -565,15 +555,7 @@ function sfsi_update_step5() {
565
  sfsi_icons_perRow:e,
566
  sfsi_icons_spacing:t,
567
  sfsi_icons_ClickPageOpen:o,
568
-
569
- // sfsi_icons_float:a,
570
- // sfsi_disable_floaticons:dsb,
571
- // sfsi_icons_floatPosition:r,
572
- // sfsi_icons_floatMargin_top:mst,
573
- // sfsi_icons_floatMargin_bottom:msb,
574
- // sfsi_icons_floatMargin_left:msl,
575
- // sfsi_icons_floatMargin_right:msr,
576
-
577
  sfsi_icons_stick:c,
578
  sfsi_rss_MouseOverText:v,
579
  sfsi_email_MouseOverText:g,
@@ -583,7 +565,6 @@ function sfsi_update_step5() {
583
  sfsi_youtube_MouseOverText:x,
584
  sfsi_linkedIn_MouseOverText:w,
585
  sfsi_pinterest_MouseOverText:C,
586
- sfsi_share_MouseOverText:U,
587
  sfsi_instagram_MouseOverText:D,
588
  sfsi_custom_MouseOverTexts:O,
589
  sfsi_rssIcon_order:p,
@@ -593,7 +574,6 @@ function sfsi_update_step5() {
593
  sfsi_googleIcon_order:l,
594
  sfsi_youtubeIcon_order:f,
595
  sfsi_pinterestIcon_order:d,
596
- sfsi_shareIcon_order:m,
597
  sfsi_instagramIcon_order:I,
598
  sfsi_linkedinIcon_order:F,
599
  sfsi_custom_orders:h,
@@ -1241,18 +1221,6 @@ function sfsi_validationStep4()
1241
  }
1242
  }
1243
  }
1244
- /* validate Atthis */
1245
- if(sfsi_validator(SFSI('input[name="sfsi_shares_countsDisplay"]'),'activte') && sfsi_validator(SFSI('input[name="sfsi_shares_countsDisplay"]'),'checked'))
1246
- {
1247
- if(SFSI('input[name="sfsi_shares_countsFrom"]:checked').val()=='manual' )
1248
- {
1249
- if(!sfsi_validator(SFSI('input[name="sfsi_shares_manualCounts"]'),'blank'))
1250
- { showErrorSuc("error","Error : Please Enter Share icon manual counts ",4);
1251
- SFSI('input[name="sfsi_shares_manualCounts"]').addClass('inputError');
1252
- return false;
1253
- }
1254
- }
1255
- }
1256
  return true;
1257
  }
1258
  function sfsi_validationStep5()
@@ -1665,20 +1633,41 @@ function create_suscriber_form()
1665
 
1666
  var global_error = 0;
1667
 
1668
- SFSI(document).ready(function(s) {
1669
 
1670
- SFSI(document).on("click", ".sfsi-notice-dismiss", function(){
1671
 
1672
- SFSI.ajax({
1673
- url:ajax_object.ajax_url,
1674
- type:"post",
1675
- data:{action: "sfsi_dismiss_lang_notice"},
1676
- success:function(e) {
1677
- if(false != e){
1678
- SFSI(".sfsi-notice-dismiss").parent().remove();
 
 
 
 
 
1679
  }
1680
- }
1681
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1682
  });
1683
 
1684
  //changes done {Monad}
@@ -1719,6 +1708,15 @@ SFSI(document).ready(function(s) {
1719
  s.parents(".row_tab").next(".row_tab").hide("fast");
1720
  create_suscriber_form()
1721
  break;
 
 
 
 
 
 
 
 
 
1722
  default:
1723
  }
1724
  });
@@ -1939,13 +1937,6 @@ SFSI(document).ready(function(s) {
1939
  SFSI(document).click(function(s) {
1940
  var i = SFSI(".sfsi_FrntInner_chg"), e = SFSI(".sfsi_wDiv"), t = SFSI("#at15s");
1941
  i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut();
1942
- }),
1943
- SFSI(".sfsi_outr_div").find(".addthis_button").mousemove(function() {
1944
- var s = SFSI(".sfsi_outr_div").find(".addthis_button").offset().top + 10;
1945
- SFSI("#at15s").css({
1946
- top:s + "px",
1947
- left:SFSI(".sfsi_outr_div").find(".addthis_button").offset().left + "px"
1948
- });
1949
  }),
1950
  SFSI('#sfsi_popup_background_color').wpColorPicker({
1951
  defaultColor: false,
@@ -2289,11 +2280,7 @@ SFSI(document).ready(function(s) {
2289
  SFSI('input[name="sfsi_instagram_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2290
  "manual" == SFSI("input[name='sfsi_instagram_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_instagram_manualCounts']").slideDown(),
2291
  SFSI(".instagram_userLi").slideUp()) :(SFSI("input[name='sfsi_instagram_manualCounts']").slideUp(),
2292
- SFSI(".instagram_userLi").slideDown())),
2293
-
2294
- "sfsi_shares_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_shares_countsDisplay"]').prop("checked", !0),
2295
- SFSI('input[name="sfsi_shares_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2296
- "manual" == SFSI("input[name='sfsi_shares_countsFrom']:checked").val() ? SFSI("input[name='sfsi_shares_manualCounts']").slideDown() :SFSI("input[name='sfsi_shares_manualCounts']").slideUp());
2297
  }),
2298
 
2299
  sfsi_make_popBox(),
125
  SFSI("input[name='sfsi_facebook_display']").prop("checked") ? sfsi_section_Display("facebook_section", "show") :sfsi_section_Display("facebook_section", "hide"),
126
  SFSI("input[name='sfsi_twitter_display']").prop("checked") ? sfsi_section_Display("twitter_section", "show") :sfsi_section_Display("twitter_section", "hide"),
127
  SFSI("input[name='sfsi_google_display']").prop("checked") ? sfsi_section_Display("google_section", "show") :sfsi_section_Display("google_section", "hide"),
 
128
  SFSI("input[name='sfsi_youtube_display']").prop("checked") ? sfsi_section_Display("youtube_section", "show") :sfsi_section_Display("youtube_section", "hide"),
129
  SFSI("input[name='sfsi_pinterest_display']").prop("checked") ? sfsi_section_Display("pinterest_section", "show") :sfsi_section_Display("pinterest_section", "hide"),
130
  SFSI("input[name='sfsi_instagram_display']").prop("checked") ? sfsi_section_Display("instagram_section", "show") :sfsi_section_Display("instagram_section", "hide"),
205
  data:e,
206
  success:function(msg) {
207
  jQuery("li.cstomskins_upload").children(".icns_tab_3").html(msg);
208
+ SFSI("input[name='sfsi_rss_display']").prop("checked") ? sfsi_section_Display("rss_section", "show") :sfsi_section_Display("rss_section", "hide"),SFSI("input[name='sfsi_email_display']").prop("checked") ? sfsi_section_Display("email_section", "show") :sfsi_section_Display("email_section", "hide"),SFSI("input[name='sfsi_facebook_display']").prop("checked") ? sfsi_section_Display("facebook_section", "show") :sfsi_section_Display("facebook_section", "hide"), SFSI("input[name='sfsi_twitter_display']").prop("checked") ? sfsi_section_Display("twitter_section", "show") :sfsi_section_Display("twitter_section", "hide"),SFSI("input[name='sfsi_google_display']").prop("checked") ? sfsi_section_Display("google_section", "show") :sfsi_section_Display("google_section", "hide"), SFSI("input[name='sfsi_youtube_display']").prop("checked") ? sfsi_section_Display("youtube_section", "show") :sfsi_section_Display("youtube_section", "hide"), SFSI("input[name='sfsi_pinterest_display']").prop("checked") ? sfsi_section_Display("pinterest_section", "show") :sfsi_section_Display("pinterest_section", "hide"), SFSI("input[name='sfsi_instagram_display']").prop("checked") ? sfsi_section_Display("instagram_section", "show") :sfsi_section_Display("instagram_section", "hide"), SFSI("input[name='sfsi_linkedin_display']").prop("checked") ? sfsi_section_Display("linkedin_section", "show") :sfsi_section_Display("linkedin_section", "hide"), SFSI("input[element-type='cusotm-icon']").prop("checked") ? sfsi_section_Display("custom_section", "show") :sfsi_section_Display("custom_section", "hide");
209
  SFSI(".cstmskins-overlay").hide("slow");
210
  sfsi_update_step3() && sfsicollapse(this);
211
  }
242
  function sfsi_update_step1() {
243
  var nonce = SFSI("#sfsi_save1").attr("data-nonce");
244
  global_error = 0, beForeLoad(), sfsi_depened_sections();
245
+ var s = !1, i = SFSI("input[name='sfsi_rss_display']:checked").val(), e = SFSI("input[name='sfsi_email_display']:checked").val(), t = SFSI("input[name='sfsi_facebook_display']:checked").val(), n = SFSI("input[name='sfsi_twitter_display']:checked").val(), o = SFSI("input[name='sfsi_google_display']:checked").val(), r = SFSI("input[name='sfsi_youtube_display']:checked").val(), c = SFSI("input[name='sfsi_pinterest_display']:checked").val(), p = SFSI("input[name='sfsi_linkedin_display']:checked").val(), _ = SFSI("input[name='sfsi_instagram_display']:checked").val(), l = SFSI("input[name='sfsi_custom1_display']:checked").val(), S = SFSI("input[name='sfsi_custom2_display']:checked").val(), u = SFSI("input[name='sfsi_custom3_display']:checked").val(), f = SFSI("input[name='sfsi_custom4_display']:checked").val(), d = SFSI("input[name='sfsi_custom5_display']:checked").val(), I = {
246
  action:"updateSrcn1",
247
  sfsi_rss_display:i,
248
  sfsi_email_display:e,
249
  sfsi_facebook_display:t,
250
  sfsi_twitter_display:n,
251
  sfsi_google_display:o,
 
252
  sfsi_youtube_display:r,
253
  sfsi_pinterest_display:c,
254
  sfsi_linkedin_display:p,
414
  s = 1) :SFSI("#sfsi_google_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("checked") ? (SFSI("#sfsi_linkedIn_countsDisplay").css("opacity", 1),
415
  s = 1) :SFSI("#sfsi_linkedIn_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_youtube_countsDisplay']").prop("checked") ? (SFSI("#sfsi_youtube_countsDisplay").css("opacity", 1),
416
  s = 1) :SFSI("#sfsi_youtube_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("checked") ? (SFSI("#sfsi_pinterest_countsDisplay").css("opacity", 1),
417
+ s = 1) :SFSI("#sfsi_pinterest_countsDisplay").css("opacity", 0),1 == SFSI("input[name='sfsi_instagram_countsDisplay']").prop("checked") ? (SFSI("#sfsi_instagram_countsDisplay").css("opacity", 1),
 
418
  s = 1) :SFSI("#sfsi_instagram_countsDisplay").css("opacity", 0), 0 == s || "no" == SFSI("input[name='sfsi_display_counts']:checked").val() ? SFSI(".sfsi_Cdisplay").hide() :SFSI(".sfsi_Cdisplay").show();
419
  }
420
 
427
  var s = !1, i = sfsi_validationStep4();
428
  if (!i) return global_error = 1, !1;
429
  beForeLoad();
430
+ var e = SFSI("input[name='sfsi_display_counts']:checked").val(), t = 1 == SFSI("input[name='sfsi_email_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_countsDisplay']:checked").val(), n = 1 == SFSI("input[name='sfsi_email_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_countsFrom']:checked").val(), o = SFSI("input[name='sfsi_email_manualCounts']").val(), a = SFSI("input[name='sfsi_google_api_key']").val(), r = 1 == SFSI("input[name='sfsi_rss_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_countsDisplay']:checked").val(), c = SFSI("input[name='sfsi_rss_manualCounts']").val(), p = 1 == SFSI("input[name='sfsi_facebook_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_countsDisplay']:checked").val(), _ = 1 == SFSI("input[name='sfsi_facebook_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_countsFrom']:checked").val(), mp = SFSI("input[name='sfsi_facebook_mypageCounts']").val(), l = SFSI("input[name='sfsi_facebook_manualCounts']").val(), S = 1 == SFSI("input[name='sfsi_twitter_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_countsDisplay']:checked").val(), u = 1 == SFSI("input[name='sfsi_twitter_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_countsFrom']:checked").val(), f = SFSI("input[name='sfsi_twitter_manualCounts']").val(), d = SFSI("input[name='tw_consumer_key']").val(), I = SFSI("input[name='tw_consumer_secret']").val(), m = SFSI("input[name='tw_oauth_access_token']").val(), F = SFSI("input[name='tw_oauth_access_token_secret']").val(), h = 1 == SFSI("input[name='sfsi_google_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_countsDisplay']:checked").val(), v = 1 == SFSI("input[name='sfsi_google_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_countsFrom']:checked").val(), g = SFSI("input[name='sfsi_google_manualCounts']").val(), k = 1 == SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_linkedIn_manualCounts']").val(), b = SFSI("input[name='ln_company']").val(), w = SFSI("input[name='ln_api_key']").val(), x = SFSI("input[name='ln_secret_key']").val(), C = SFSI("input[name='ln_oAuth_user_token']").val(), D = 1 == SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_countsDisplay']:checked").val(), k = 1 == SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_linkedIn_manualCounts']").val(), U = 1 == SFSI("input[name='sfsi_youtube_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_countsDisplay']:checked").val(), O = 1 == SFSI("input[name='sfsi_youtube_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_countsFrom']:checked").val(), T = SFSI("input[name='sfsi_youtube_manualCounts']").val(), j = SFSI("input[name='sfsi_youtube_user']").val(), P = 1 == SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_countsDisplay']:checked").val(), M = 1 == SFSI("input[name='sfsi_pinterest_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_countsFrom']:checked").val(), L = SFSI("input[name='sfsi_pinterest_manualCounts']").val(), B = SFSI("input[name='sfsi_pinterest_user']").val(), E = SFSI("input[name='sfsi_pinterest_board']").val(), z = 1 == SFSI("input[name='sfsi_instagram_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_countsDisplay']:checked").val(), A = 1 == SFSI("input[name='sfsi_instagram_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_countsFrom']:checked").val(), N = SFSI("input[name='sfsi_instagram_manualCounts']").val(), H = SFSI("input[name='sfsi_instagram_User']").val(),ha = SFSI("input[name='sfsi_instagram_clientid']").val(),ia = SFSI("input[name='sfsi_instagram_appurl']").val(),ja = SFSI("input[name='sfsi_instagram_token']").val(), $ = {
431
  action:"updateSrcn4",
432
  sfsi_display_counts:e,
433
  sfsi_email_countsDisplay:t,
474
  sfsi_instagram_clientid:ha,
475
  sfsi_instagram_appurl:ia,
476
  sfsi_instagram_token:ja,
 
 
 
477
  nonce:nonce
478
  };
479
  return SFSI.ajax({
515
  n = SFSI("#sfsi_icons_Alignment").val(),
516
  o = SFSI("input[name='sfsi_icons_ClickPageOpen']:checked").val(),
517
 
518
+ se = SFSI("input[name='sfsi_icons_suppress_errors']:checked").val(),
 
 
 
519
  c = SFSI("input[name='sfsi_icons_stick']:checked").val(),
520
  p = SFSI("#sfsi_rssIcon_order").attr("data-index"),
521
  _ = SFSI("#sfsi_emailIcon_order").attr("data-index"),
525
  f = SFSI("#sfsi_youtubeIcon_order").attr("data-index"),
526
  d = SFSI("#sfsi_pinterestIcon_order").attr("data-index"),
527
  I = SFSI("#sfsi_instagramIcon_order").attr("data-index"),
 
528
  F = SFSI("#sfsi_linkedinIcon_order").attr("data-index"),
529
  h = new Array();
530
 
541
  // msl = SFSI("input[name='sfsi_icons_floatMargin_left']").val(),
542
  // msr = SFSI("input[name='sfsi_icons_floatMargin_right']").val();
543
 
544
+ var v = 1 == SFSI("input[name='sfsi_rss_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_MouseOverText']").val(), g = 1 == SFSI("input[name='sfsi_email_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_MouseOverText']").val(), k = 1 == SFSI("input[name='sfsi_twitter_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_MouseOverText']").val(), y = 1 == SFSI("input[name='sfsi_facebook_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_MouseOverText']").val(), b = 1 == SFSI("input[name='sfsi_google_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_MouseOverText']").val(), w = 1 == SFSI("input[name='sfsi_linkedIn_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_MouseOverText']").val(), x = 1 == SFSI("input[name='sfsi_youtube_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_MouseOverText']").val(), C = 1 == SFSI("input[name='sfsi_pinterest_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_MouseOverText']").val(), D = 1 == SFSI("input[name='sfsi_instagram_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_MouseOverText']").val(), O = {};
545
  SFSI("input[name='sfsi_custom_MouseOverTexts[]']").each(function() {
546
  O[SFSI(this).attr("file-id")] = this.value;
547
  });
555
  sfsi_icons_perRow:e,
556
  sfsi_icons_spacing:t,
557
  sfsi_icons_ClickPageOpen:o,
558
+ sfsi_icons_suppress_errors:se,
 
 
 
 
 
 
 
 
559
  sfsi_icons_stick:c,
560
  sfsi_rss_MouseOverText:v,
561
  sfsi_email_MouseOverText:g,
565
  sfsi_youtube_MouseOverText:x,
566
  sfsi_linkedIn_MouseOverText:w,
567
  sfsi_pinterest_MouseOverText:C,
 
568
  sfsi_instagram_MouseOverText:D,
569
  sfsi_custom_MouseOverTexts:O,
570
  sfsi_rssIcon_order:p,
574
  sfsi_googleIcon_order:l,
575
  sfsi_youtubeIcon_order:f,
576
  sfsi_pinterestIcon_order:d,
 
577
  sfsi_instagramIcon_order:I,
578
  sfsi_linkedinIcon_order:F,
579
  sfsi_custom_orders:h,
1221
  }
1222
  }
1223
  }
 
 
 
 
 
 
 
 
 
 
 
 
1224
  return true;
1225
  }
1226
  function sfsi_validationStep5()
1633
 
1634
  var global_error = 0;
1635
 
1636
+ if(typeof SFSI != 'undefined'){
1637
 
1638
+ function sfsi_dismiss_notice(btnClass,ajaxAction){
1639
 
1640
+ var btnClass = "."+btnClass;
1641
+
1642
+ SFSI(document).on("click", btnClass, function(){
1643
+
1644
+ SFSI.ajax({
1645
+ url:ajax_object.ajax_url,
1646
+ type:"post",
1647
+ data:{action: ajaxAction},
1648
+ success:function(e) {
1649
+ if(false != e){
1650
+ SFSI(btnClass).parent().remove();
1651
+ }
1652
  }
1653
+ });
1654
  });
1655
+ }
1656
+ }
1657
+
1658
+ SFSI(document).ready(function(s) {
1659
+
1660
+ var arrDismiss = [
1661
+
1662
+ {"btnClass":"sfsi-notice-dismiss","action":"sfsi_dismiss_lang_notice"},
1663
+
1664
+ {"btnClass":"sfsi-AddThis-notice-dismiss","action":"sfsi_dismiss_addThis_icon_notice"},
1665
+
1666
+ {"btnClass":"sfsi_error_reporting_notice-dismiss","action":"sfsi_dismiss_error_reporting_notice"}
1667
+ ];
1668
+
1669
+ SFSI.each( arrDismiss, function( key, valueObj ) {
1670
+ sfsi_dismiss_notice(valueObj.btnClass,valueObj.action);
1671
  });
1672
 
1673
  //changes done {Monad}
1708
  s.parents(".row_tab").next(".row_tab").hide("fast");
1709
  create_suscriber_form()
1710
  break;
1711
+ case 'sfsi_icons_suppress_errors':
1712
+
1713
+ SFSI('input[name="sfsi_icons_suppress_errors"]').removeAttr('checked');
1714
+
1715
+ if(s.val() == 'yes')
1716
+ SFSI('input[name="sfsi_icons_suppress_errors"][value="yes"]').attr('checked','true');
1717
+ else
1718
+ SFSI('input[name="sfsi_icons_suppress_errors"][value="no"]').attr('checked','true');
1719
+ break;
1720
  default:
1721
  }
1722
  });
1937
  SFSI(document).click(function(s) {
1938
  var i = SFSI(".sfsi_FrntInner_chg"), e = SFSI(".sfsi_wDiv"), t = SFSI("#at15s");
1939
  i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut();
 
 
 
 
 
 
 
1940
  }),
1941
  SFSI('#sfsi_popup_background_color').wpColorPicker({
1942
  defaultColor: false,
2280
  SFSI('input[name="sfsi_instagram_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2281
  "manual" == SFSI("input[name='sfsi_instagram_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_instagram_manualCounts']").slideDown(),
2282
  SFSI(".instagram_userLi").slideUp()) :(SFSI("input[name='sfsi_instagram_manualCounts']").slideUp(),
2283
+ SFSI(".instagram_userLi").slideDown()));
 
 
 
 
2284
  }),
2285
 
2286
  sfsi_make_popBox(),
js/custom.js CHANGED
@@ -170,12 +170,6 @@ SFSI(document).ready(function(s) {
170
  SFSI(document).click(function(s) {
171
  var i = SFSI(".sfsi_FrntInner"), e = SFSI(".sfsi_wDiv"), t = SFSI("#at15s");
172
  i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut();
173
- }), SFSI(".sfsi_outr_div").find(".addthis_button").mousemove(function() {
174
- var s = SFSI(".sfsi_outr_div").find(".addthis_button").offset().top + 10;
175
- SFSI("#at15s").css({
176
- top:s + "px",
177
- left:SFSI(".sfsi_outr_div").find(".addthis_button").offset().left + "px"
178
- });
179
  }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
180
  SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
181
  }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
170
  SFSI(document).click(function(s) {
171
  var i = SFSI(".sfsi_FrntInner"), e = SFSI(".sfsi_wDiv"), t = SFSI("#at15s");
172
  i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut();
 
 
 
 
 
 
173
  }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
174
  SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
175
  }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
js/customValidate.js CHANGED
@@ -403,21 +403,6 @@ function sfsi_validationStep4()
403
  }
404
  }
405
  }
406
- /* validate Atthis */
407
- if(sfsi_validator(SFSI('input[name="sfsi_shares_countsDisplay"]'),'activte') && sfsi_validator(SFSI('input[name="sfsi_shares_countsDisplay"]'),'checked'))
408
- {
409
-
410
-
411
- if(SFSI('input[name="sfsi_shares_countsFrom"]:checked').val()=='manual' )
412
- {
413
-
414
- if(!sfsi_validator(SFSI('input[name="sfsi_shares_manualCounts"]'),'blank'))
415
- { showErrorSuc("error","Error : Please Enter Share icon manual counts ",4);
416
- SFSI('input[name="sfsi_shares_manualCounts"]').addClass('inputError');
417
- return false;
418
- }
419
- }
420
- }
421
 
422
 
423
  return true;
403
  }
404
  }
405
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
406
 
407
 
408
  return true;
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -13,7 +13,6 @@ function sfsi_options_updater1()
13
  $sfsi_facebook_display = isset($_POST["sfsi_facebook_display"]) ? $_POST["sfsi_facebook_display"] : 'no';
14
  $sfsi_twitter_display = isset($_POST["sfsi_twitter_display"]) ? $_POST["sfsi_twitter_display"] : 'no';
15
  $sfsi_google_display = isset($_POST["sfsi_google_display"]) ? $_POST["sfsi_google_display"] : 'no';
16
- $sfsi_share_display = isset($_POST["sfsi_share_display"]) ? $_POST["sfsi_share_display"] : 'no';
17
  $sfsi_youtube_display = isset($_POST["sfsi_youtube_display"]) ? $_POST["sfsi_youtube_display"] : 'no';
18
  $sfsi_pinterest_display = isset($_POST["sfsi_pinterest_display"]) ? $_POST["sfsi_pinterest_display"] : 'no';
19
  $sfsi_instagram_display = isset($_POST["sfsi_instagram_display"]) ? $_POST["sfsi_instagram_display"] : 'no';
@@ -25,7 +24,6 @@ function sfsi_options_updater1()
25
  'sfsi_facebook_display' => sanitize_text_field($sfsi_facebook_display),
26
  'sfsi_twitter_display' => sanitize_text_field($sfsi_twitter_display),
27
  'sfsi_google_display' => sanitize_text_field($sfsi_google_display),
28
- 'sfsi_share_display' => sanitize_text_field($sfsi_share_display),
29
  'sfsi_youtube_display' => sanitize_text_field($sfsi_youtube_display),
30
  'sfsi_pinterest_display'=> sanitize_text_field($sfsi_pinterest_display),
31
  'sfsi_linkedin_display' => sanitize_text_field($sfsi_linkedin_display),
@@ -272,10 +270,7 @@ function sfsi_options_updater4()
272
  $sfsi_instagram_User = isset($_POST["sfsi_instagram_User"]) ? $_POST["sfsi_instagram_User"] : '';
273
  $sfsi_instagram_clientid = isset($_POST["sfsi_instagram_clientid"]) ? $_POST["sfsi_instagram_clientid"] : '';
274
  $sfsi_instagram_appurl = isset($_POST["sfsi_instagram_appurl"]) ? $_POST["sfsi_instagram_appurl"] : '';
275
- $sfsi_instagram_token = isset($_POST["sfsi_instagram_token"]) ? $_POST["sfsi_instagram_token"] : '';
276
- $sfsi_shares_countsDisplay = isset($_POST["sfsi_shares_countsDisplay"]) ? $_POST["sfsi_shares_countsDisplay"] : 'no';
277
- $sfsi_shares_countsFrom = isset($_POST["sfsi_shares_countsFrom"]) ? $_POST["sfsi_shares_countsFrom"] : 'manual';
278
- $sfsi_shares_manualCounts = isset($_POST["sfsi_shares_manualCounts"]) ? trim($_POST["sfsi_shares_manualCounts"]) : '';
279
 
280
  $sfsi_facebookPage_url = isset($_POST["sfsi_facebookPage_url"]) ? trim($_POST["sfsi_facebookPage_url"]) : '';
281
 
@@ -335,9 +330,6 @@ function sfsi_options_updater4()
335
  'sfsi_instagram_clientid' => sanitize_text_field($sfsi_instagram_clientid),
336
  'sfsi_instagram_appurl' => sanitize_text_field($sfsi_instagram_appurl),
337
  'sfsi_instagram_token' => sanitize_text_field($sfsi_instagram_token),
338
- 'sfsi_shares_countsDisplay' => sanitize_text_field($sfsi_shares_countsDisplay),
339
- 'sfsi_shares_countsFrom' => sanitize_text_field($sfsi_shares_countsFrom),
340
- 'sfsi_shares_manualCounts' => intval($sfsi_shares_manualCounts),
341
  );
342
  update_option('sfsi_section4_options', serialize($up_option4));
343
 
@@ -358,15 +350,7 @@ function sfsi_options_updater5()
358
 
359
  $sfsi_icons_perRow = isset($_POST["sfsi_icons_perRow"]) ? $_POST["sfsi_icons_perRow"] : '5';
360
  $sfsi_icons_ClickPageOpen = isset($_POST["sfsi_icons_ClickPageOpen"]) ? $_POST["sfsi_icons_ClickPageOpen"] : 'no';
361
-
362
- // $sfsi_icons_float = isset($_POST["sfsi_icons_float"]) ? $_POST["sfsi_icons_float"] : 'no';
363
- // $sfsi_disable_floaticons = isset($_POST["sfsi_disable_floaticons"]) ? $_POST["sfsi_disable_floaticons"] : 'no';
364
- // $sfsi_icons_floatPosition = isset($_POST["sfsi_icons_floatPosition"]) ? $_POST["sfsi_icons_floatPosition"] : 'center-right';
365
- // $sfsi_icons_floatMargin_top = isset($_POST["sfsi_icons_floatMargin_top"]) ? $_POST["sfsi_icons_floatMargin_top"] : '';
366
- // $sfsi_icons_floatMargin_bottom = isset($_POST["sfsi_icons_floatMargin_bottom"])? $_POST["sfsi_icons_floatMargin_bottom"]:'';
367
- // $sfsi_icons_floatMargin_left = isset($_POST["sfsi_icons_floatMargin_left"]) ? $_POST["sfsi_icons_floatMargin_left"] : '';
368
- // $sfsi_icons_floatMargin_right = isset($_POST["sfsi_icons_floatMargin_right"]) ? $_POST["sfsi_icons_floatMargin_right"]:'';
369
-
370
  $sfsi_icons_stick = isset($_POST["sfsi_icons_stick"]) ? $_POST["sfsi_icons_stick"] : 'no';
371
 
372
  $sfsi_rss_MouseOverText = isset($_POST["sfsi_rss_MouseOverText"]) ? $_POST["sfsi_rss_MouseOverText"] : '';
@@ -378,7 +362,6 @@ function sfsi_options_updater5()
378
  $sfsi_pinterest_MouseOverText = isset($_POST["sfsi_pinterest_MouseOverText"]) ? $_POST["sfsi_pinterest_MouseOverText"] : '';
379
  $sfsi_instagram_MouseOverText = isset($_POST["sfsi_instagram_MouseOverText"]) ? $_POST["sfsi_instagram_MouseOverText"] : '';
380
  $sfsi_youtube_MouseOverText = isset($_POST["sfsi_youtube_MouseOverText"]) ? $_POST["sfsi_youtube_MouseOverText"] : '';
381
- $sfsi_share_MouseOverText = isset($_POST["sfsi_share_MouseOverText"]) ? $_POST["sfsi_share_MouseOverText"] : '';
382
  $sfsi_custom_orders = isset($_POST["sfsi_custom_orders"]) ? serialize($_POST["sfsi_custom_orders"]) : '';
383
 
384
  $sfsi_rssIcon_order = isset($_POST["sfsi_rssIcon_order"]) ? $_POST["sfsi_rssIcon_order"] : '1';
@@ -386,7 +369,6 @@ function sfsi_options_updater5()
386
  $sfsi_facebookIcon_order = isset($_POST["sfsi_facebookIcon_order"]) ? $_POST["sfsi_facebookIcon_order"] : '3';
387
  $sfsi_googleIcon_order = isset($_POST["sfsi_googleIcon_order"]) ? $_POST["sfsi_googleIcon_order"] : '4';
388
  $sfsi_twitterIcon_order = isset($_POST["sfsi_twitterIcon_order"]) ? $_POST["sfsi_twitterIcon_order"] : '5';
389
- $sfsi_shareIcon_order = isset($_POST["sfsi_shareIcon_order"]) ? $_POST["sfsi_shareIcon_order"] : '6';
390
  $sfsi_youtubeIcon_order = isset($_POST["sfsi_youtubeIcon_order"]) ? $_POST["sfsi_youtubeIcon_order"] : '7';
391
  $sfsi_pinterestIcon_order = isset($_POST["sfsi_pinterestIcon_order"]) ? $_POST["sfsi_pinterestIcon_order"] : '8';
392
  $sfsi_instagramIcon_order = isset($_POST["sfsi_instagramIcon_order"]) ? $_POST["sfsi_instagramIcon_order"] : '10';
@@ -402,14 +384,7 @@ function sfsi_options_updater5()
402
  'sfsi_icons_Alignment' => sanitize_text_field($sfsi_icons_Alignment),
403
  'sfsi_icons_perRow' => intval($sfsi_icons_perRow),
404
  'sfsi_icons_ClickPageOpen' => sanitize_text_field($sfsi_icons_ClickPageOpen),
405
-
406
- // 'sfsi_icons_float' => sanitize_text_field($sfsi_icons_float),
407
- // 'sfsi_disable_floaticons' => sanitize_text_field($sfsi_disable_floaticons),
408
- // 'sfsi_icons_floatPosition' => sanitize_text_field($sfsi_icons_floatPosition),
409
- // 'sfsi_icons_floatMargin_top' => intval($sfsi_icons_floatMargin_top),
410
- // 'sfsi_icons_floatMargin_bottom' => intval($sfsi_icons_floatMargin_bottom),
411
- // 'sfsi_icons_floatMargin_left' => intval($sfsi_icons_floatMargin_left),
412
- // 'sfsi_icons_floatMargin_right' => intval($sfsi_icons_floatMargin_right),
413
 
414
  'sfsi_icons_stick' => sanitize_text_field($sfsi_icons_stick),
415
  /* mouse over texts */
@@ -421,7 +396,6 @@ function sfsi_options_updater5()
421
  'sfsi_linkedIn_MouseOverText' => sanitize_text_field($sfsi_linkedIn_MouseOverText),
422
  'sfsi_pinterest_MouseOverText' => sanitize_text_field($sfsi_pinterest_MouseOverText),
423
  'sfsi_youtube_MouseOverText' => sanitize_text_field($sfsi_youtube_MouseOverText),
424
- 'sfsi_share_MouseOverText' => sanitize_text_field($sfsi_share_MouseOverText),
425
  'sfsi_instagram_MouseOverText' => sanitize_text_field($sfsi_instagram_MouseOverText),
426
  'sfsi_CustomIcons_order' => $sfsi_custom_orders,
427
  'sfsi_rssIcon_order' => intval($sfsi_rssIcon_order),
@@ -429,7 +403,6 @@ function sfsi_options_updater5()
429
  'sfsi_facebookIcon_order' => intval($sfsi_facebookIcon_order),
430
  'sfsi_googleIcon_order' => intval($sfsi_googleIcon_order),
431
  'sfsi_twitterIcon_order' => intval($sfsi_twitterIcon_order),
432
- 'sfsi_shareIcon_order' => intval($sfsi_shareIcon_order),
433
  'sfsi_youtubeIcon_order' => intval($sfsi_youtubeIcon_order),
434
  'sfsi_pinterestIcon_order' => intval($sfsi_pinterestIcon_order),
435
  'sfsi_instagramIcon_order' => intval($sfsi_instagramIcon_order),
@@ -437,6 +410,10 @@ function sfsi_options_updater5()
437
  'sfsi_custom_MouseOverTexts' => $sfsi_custom_MouseOverTexts,
438
  'sfsi_custom_social_hide' => $sfsi_custom_social_hide
439
  );
 
 
 
 
440
 
441
  update_option('sfsi_section5_options', serialize($up_option5));
442
  header('Content-Type: application/json');
@@ -668,187 +645,209 @@ function sfsi_getCounts()
668
  'pin_count' => '',
669
  'share_count' => ''
670
  );
 
671
  /* get rss count */
672
- if(!empty($sfsi_section4_options['sfsi_rss_manualCounts']) )
673
  {
674
  $scounts['rss_count']=$sfsi_section4_options['sfsi_rss_manualCounts'];
675
  }
 
676
  /* get email count */
677
- if($sfsi_section4_options['sfsi_email_countsFrom']=="source" )
678
- {
679
- $feed_id = sanitize_text_field(get_option('sfsi_feed_id',false));
680
- $feed_data = $socialObj->SFSI_getFeedSubscriber($feed_id);
681
-
682
- $scounts['email_count']= $socialObj->format_num($feed_data);
683
- if(empty($scounts['email_count']))
684
  {
685
- $scounts['email_count']=(string) "0";
 
 
 
 
 
 
 
686
  }
 
 
 
 
687
  }
688
- else
689
- {
690
- $scounts['email_count']=$sfsi_section4_options['sfsi_email_manualCounts'];
691
- }
692
-
693
- /* get fb count */
694
- if($sfsi_section4_options['sfsi_facebook_countsFrom']=="likes" )
695
- {
696
- $url = home_url();
697
- $fb_data = $socialObj->sfsi_get_fb($url);
698
- $scounts['fb_count']= $socialObj->format_num($fb_data['like_count']);
699
- }
700
- else if($sfsi_section4_options['sfsi_facebook_countsFrom']=="followers" )
701
- {
702
- $url = home_url();
703
- $fb_data = $socialObj->sfsi_get_fb($url);
704
- $scounts['fb_count']= format_num($fb_data['share_count']);
705
- if(empty($scounts['fb_count']))
706
  {
707
- $scounts['fb_count']=(string) "0";
 
 
708
  }
709
- }
710
- else if($sfsi_section4_options['sfsi_facebook_countsFrom']=="mypage" )
711
- {
712
- $url = $sfsi_section4_options['sfsi_facebook_mypageCounts'];
713
- $fb_data = $socialObj->sfsi_get_fb_pagelike($url);
714
- $scounts['fb_count']= $fb_data;
715
- }
716
- else
717
- {
718
- $scounts['fb_count'] = $sfsi_section4_options['sfsi_facebook_manualCounts'];
719
- }
720
- /* get twitter counts */
721
- if($sfsi_section4_options['sfsi_twitter_countsFrom']=="source")
722
- {
723
- $twitter_user=$sfsi_section2_options['sfsi_twitter_followUserName'];
724
- $tw_settings=array(
725
- 'tw_consumer_key'=>$sfsi_section4_options['tw_consumer_key'],
726
- 'tw_consumer_secret'=> $sfsi_section4_options['tw_consumer_secret'],
727
- 'tw_oauth_access_token'=> $sfsi_section4_options['tw_oauth_access_token'],
728
- 'tw_oauth_access_token_secret'=> $sfsi_section4_options['tw_oauth_access_token_secret']
729
- );
730
-
731
- $followers=$socialObj->sfsi_get_tweets($twitter_user,$tw_settings);
732
- $scounts['twitter_count']= $socialObj->format_num($followers);
733
- }
734
- else
735
- {
736
- $scounts['twitter_count']=$sfsi_section4_options['sfsi_twitter_manualCounts'];
737
- }
738
- /* get google+ counts */
739
- if($sfsi_section4_options['sfsi_google_countsFrom']=="follower" )
740
- {
741
- $url=$sfsi_section2_options['sfsi_google_pageURL'];
742
- $api_key=$sfsi_section4_options['sfsi_google_api_key'];
743
- $followers=$socialObj->sfsi_get_google($url,$api_key);
744
- if(!is_int($followers))
745
  {
746
- $followers=0;
747
- }
748
- $counts=$followers;
749
- $scounts['google_count']= $socialObj->format_num($followers);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
750
  }
751
- else if($sfsi_section4_options['sfsi_google_countsFrom']=="likes" )
752
- {
753
- $url=home_url();
754
- $api_key=$sfsi_section4_options['sfsi_google_api_key'];
755
- $followers=$socialObj->sfsi_get_google($url,$api_key);
756
- if(!is_int($followers))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
757
  {
758
- $followers=0;
759
- }
760
- $counts=$followers;
761
- $scounts['google_count']= $socialObj->format_num($followers);
762
  }
763
- else
764
- {
765
- $scounts['google_count']=$sfsi_section4_options['sfsi_google_manualCounts'];
766
- }
767
  /* get linkedIn counts */
768
-
769
- if($sfsi_section4_options['sfsi_linkedIn_countsFrom']=="follower" )
770
- {
771
- $linkedIn_compay=$sfsi_section2_options['sfsi_linkedin_followCompany'];
772
- $linkedIn_compay=$sfsi_section4_options['ln_company'];
773
- $ln_settings=array(
774
- 'ln_api_key'=>$sfsi_section4_options['ln_api_key'],
775
- 'ln_secret_key'=>$sfsi_section4_options['ln_secret_key'],
776
- 'ln_oAuth_user_token'=>$sfsi_section4_options['ln_oAuth_user_token']
777
- );
778
- $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
779
- $scounts['linkedIn_count']= $socialObj->format_num($followers);
780
- }
781
- else
782
- {
783
- $scounts['linkedIn_count']=$sfsi_section4_options['sfsi_linkedIn_manualCounts'];
784
- }
785
- /* get youtube counts */
786
- if($sfsi_section4_options['sfsi_youtube_countsFrom']=="subscriber" )
787
- {
788
- if(isset($sfsi_section4_options['sfsi_youtube_user']))
789
- {
790
- $youtube_user=$sfsi_section4_options['sfsi_youtube_user'];
791
- $followers=$socialObj->sfsi_get_youtube($youtube_user);
792
- $scounts['youtube_count']= $socialObj->format_num($followers);
793
-
794
  }
795
  else
796
  {
797
- $scounts['youtube_count']=01;
798
- }
799
- }
800
- else
801
- {
802
- $scounts['youtube_count']=$sfsi_section4_options['sfsi_youtube_manualCounts'];
803
- }
804
- /* get Pinterest counts */
805
-
806
- if($sfsi_section4_options['sfsi_pinterest_countsFrom']=="pins" )
807
- {
808
- $url=home_url();
809
- $pins=$socialObj->sfsi_get_pinterest($url);
810
- $scounts['pin_count']= $socialObj->format_num($pins);
811
- }
812
- else
813
- {
814
- $scounts['pin_count']=$sfsi_section4_options['sfsi_pinterest_manualCounts'];
815
- }
816
-
817
- /* get addthis share counts */
818
- if(isset($sfsi_section4_options['sfsi_shares_countsFrom']) && $sfsi_section4_options['sfsi_shares_countsFrom']=="shares" && isset($sfsi_section4_options['sfsi_share_countsDisplay']) && $sfsi_section4_options['sfsi_share_countsDisplay'] =="yes")
819
- {
820
- $shares=$socialObj->sfsi_get_atthis();
821
- $scounts['share_count']= $socialObj->format_num($shares);
822
  }
823
- else
824
- {
825
- $scounts['share_count']=$sfsi_section4_options['sfsi_shares_manualCounts'];
 
 
 
 
 
 
 
 
 
 
 
 
826
  }
827
-
828
- /* get instagram count */
829
- if($sfsi_section4_options['sfsi_instagram_countsFrom']=="followers" )
830
- {
831
- $iuser_name= $sfsi_section4_options['sfsi_instagram_User'];
832
- /*$counts=$socialObj->sfsi_get_instagramFollowers($iuser_name);
833
- if(empty($counts))
834
- {
835
- $scounts['instagram_count']=(string) "0";
836
- }*/
837
- $counts = $socialObj->sfsi_get_instagramFollowers($iuser_name);
838
- if(empty($counts))
839
- {
840
- $scounts['instagram_count']=(string) "0";
841
- }
842
- else
843
- {
844
- $scounts['instagram_count']=$counts;
845
- }
846
- }
847
- else
848
- {
849
- $scounts['instagram_count']=$sfsi_section4_options['sfsi_instagram_manualCounts'];
850
-
851
- }
 
 
852
  return $scounts; exit;
853
  }
854
  /* activate and remove footer credit link */
13
  $sfsi_facebook_display = isset($_POST["sfsi_facebook_display"]) ? $_POST["sfsi_facebook_display"] : 'no';
14
  $sfsi_twitter_display = isset($_POST["sfsi_twitter_display"]) ? $_POST["sfsi_twitter_display"] : 'no';
15
  $sfsi_google_display = isset($_POST["sfsi_google_display"]) ? $_POST["sfsi_google_display"] : 'no';
 
16
  $sfsi_youtube_display = isset($_POST["sfsi_youtube_display"]) ? $_POST["sfsi_youtube_display"] : 'no';
17
  $sfsi_pinterest_display = isset($_POST["sfsi_pinterest_display"]) ? $_POST["sfsi_pinterest_display"] : 'no';
18
  $sfsi_instagram_display = isset($_POST["sfsi_instagram_display"]) ? $_POST["sfsi_instagram_display"] : 'no';
24
  'sfsi_facebook_display' => sanitize_text_field($sfsi_facebook_display),
25
  'sfsi_twitter_display' => sanitize_text_field($sfsi_twitter_display),
26
  'sfsi_google_display' => sanitize_text_field($sfsi_google_display),
 
27
  'sfsi_youtube_display' => sanitize_text_field($sfsi_youtube_display),
28
  'sfsi_pinterest_display'=> sanitize_text_field($sfsi_pinterest_display),
29
  'sfsi_linkedin_display' => sanitize_text_field($sfsi_linkedin_display),
270
  $sfsi_instagram_User = isset($_POST["sfsi_instagram_User"]) ? $_POST["sfsi_instagram_User"] : '';
271
  $sfsi_instagram_clientid = isset($_POST["sfsi_instagram_clientid"]) ? $_POST["sfsi_instagram_clientid"] : '';
272
  $sfsi_instagram_appurl = isset($_POST["sfsi_instagram_appurl"]) ? $_POST["sfsi_instagram_appurl"] : '';
273
+ $sfsi_instagram_token = isset($_POST["sfsi_instagram_token"]) ? $_POST["sfsi_instagram_token"] : '';
 
 
 
274
 
275
  $sfsi_facebookPage_url = isset($_POST["sfsi_facebookPage_url"]) ? trim($_POST["sfsi_facebookPage_url"]) : '';
276
 
330
  'sfsi_instagram_clientid' => sanitize_text_field($sfsi_instagram_clientid),
331
  'sfsi_instagram_appurl' => sanitize_text_field($sfsi_instagram_appurl),
332
  'sfsi_instagram_token' => sanitize_text_field($sfsi_instagram_token),
 
 
 
333
  );
334
  update_option('sfsi_section4_options', serialize($up_option4));
335
 
350
 
351
  $sfsi_icons_perRow = isset($_POST["sfsi_icons_perRow"]) ? $_POST["sfsi_icons_perRow"] : '5';
352
  $sfsi_icons_ClickPageOpen = isset($_POST["sfsi_icons_ClickPageOpen"]) ? $_POST["sfsi_icons_ClickPageOpen"] : 'no';
353
+ $sfsi_icons_suppress_errors = isset($_POST["sfsi_icons_suppress_errors"]) ? $_POST["sfsi_icons_suppress_errors"] : 'no';
 
 
 
 
 
 
 
 
354
  $sfsi_icons_stick = isset($_POST["sfsi_icons_stick"]) ? $_POST["sfsi_icons_stick"] : 'no';
355
 
356
  $sfsi_rss_MouseOverText = isset($_POST["sfsi_rss_MouseOverText"]) ? $_POST["sfsi_rss_MouseOverText"] : '';
362
  $sfsi_pinterest_MouseOverText = isset($_POST["sfsi_pinterest_MouseOverText"]) ? $_POST["sfsi_pinterest_MouseOverText"] : '';
363
  $sfsi_instagram_MouseOverText = isset($_POST["sfsi_instagram_MouseOverText"]) ? $_POST["sfsi_instagram_MouseOverText"] : '';
364
  $sfsi_youtube_MouseOverText = isset($_POST["sfsi_youtube_MouseOverText"]) ? $_POST["sfsi_youtube_MouseOverText"] : '';
 
365
  $sfsi_custom_orders = isset($_POST["sfsi_custom_orders"]) ? serialize($_POST["sfsi_custom_orders"]) : '';
366
 
367
  $sfsi_rssIcon_order = isset($_POST["sfsi_rssIcon_order"]) ? $_POST["sfsi_rssIcon_order"] : '1';
369
  $sfsi_facebookIcon_order = isset($_POST["sfsi_facebookIcon_order"]) ? $_POST["sfsi_facebookIcon_order"] : '3';
370
  $sfsi_googleIcon_order = isset($_POST["sfsi_googleIcon_order"]) ? $_POST["sfsi_googleIcon_order"] : '4';
371
  $sfsi_twitterIcon_order = isset($_POST["sfsi_twitterIcon_order"]) ? $_POST["sfsi_twitterIcon_order"] : '5';
 
372
  $sfsi_youtubeIcon_order = isset($_POST["sfsi_youtubeIcon_order"]) ? $_POST["sfsi_youtubeIcon_order"] : '7';
373
  $sfsi_pinterestIcon_order = isset($_POST["sfsi_pinterestIcon_order"]) ? $_POST["sfsi_pinterestIcon_order"] : '8';
374
  $sfsi_instagramIcon_order = isset($_POST["sfsi_instagramIcon_order"]) ? $_POST["sfsi_instagramIcon_order"] : '10';
384
  'sfsi_icons_Alignment' => sanitize_text_field($sfsi_icons_Alignment),
385
  'sfsi_icons_perRow' => intval($sfsi_icons_perRow),
386
  'sfsi_icons_ClickPageOpen' => sanitize_text_field($sfsi_icons_ClickPageOpen),
387
+ 'sfsi_icons_suppress_errors' => sanitize_text_field($sfsi_icons_suppress_errors),
 
 
 
 
 
 
 
388
 
389
  'sfsi_icons_stick' => sanitize_text_field($sfsi_icons_stick),
390
  /* mouse over texts */
396
  'sfsi_linkedIn_MouseOverText' => sanitize_text_field($sfsi_linkedIn_MouseOverText),
397
  'sfsi_pinterest_MouseOverText' => sanitize_text_field($sfsi_pinterest_MouseOverText),
398
  'sfsi_youtube_MouseOverText' => sanitize_text_field($sfsi_youtube_MouseOverText),
 
399
  'sfsi_instagram_MouseOverText' => sanitize_text_field($sfsi_instagram_MouseOverText),
400
  'sfsi_CustomIcons_order' => $sfsi_custom_orders,
401
  'sfsi_rssIcon_order' => intval($sfsi_rssIcon_order),
403
  'sfsi_facebookIcon_order' => intval($sfsi_facebookIcon_order),
404
  'sfsi_googleIcon_order' => intval($sfsi_googleIcon_order),
405
  'sfsi_twitterIcon_order' => intval($sfsi_twitterIcon_order),
 
406
  'sfsi_youtubeIcon_order' => intval($sfsi_youtubeIcon_order),
407
  'sfsi_pinterestIcon_order' => intval($sfsi_pinterestIcon_order),
408
  'sfsi_instagramIcon_order' => intval($sfsi_instagramIcon_order),
410
  'sfsi_custom_MouseOverTexts' => $sfsi_custom_MouseOverTexts,
411
  'sfsi_custom_social_hide' => $sfsi_custom_social_hide
412
  );
413
+
414
+ if("yes"== $sfsi_icons_suppress_errors){
415
+ update_option('sfsi_error_reporting_notice_dismissed',false);
416
+ }
417
 
418
  update_option('sfsi_section5_options', serialize($up_option5));
419
  header('Content-Type: application/json');
645
  'pin_count' => '',
646
  'share_count' => ''
647
  );
648
+
649
  /* get rss count */
650
+ if(isset($sfsi_section4_options['sfsi_rss_manualCounts']) && !empty($sfsi_section4_options['sfsi_rss_manualCounts']) )
651
  {
652
  $scounts['rss_count']=$sfsi_section4_options['sfsi_rss_manualCounts'];
653
  }
654
+
655
  /* get email count */
656
+ if(isset($sfsi_section4_options['sfsi_email_countsFrom'])){
657
+
658
+ if($sfsi_section4_options['sfsi_email_countsFrom']=="source" )
 
 
 
 
659
  {
660
+ $feed_id = sanitize_text_field(get_option('sfsi_feed_id',false));
661
+ $feed_data = $socialObj->SFSI_getFeedSubscriber($feed_id);
662
+
663
+ $scounts['email_count']= $socialObj->format_num($feed_data);
664
+ if(empty($scounts['email_count']))
665
+ {
666
+ $scounts['email_count']=(string) "0";
667
+ }
668
  }
669
+ else
670
+ {
671
+ $scounts['email_count']=$sfsi_section4_options['sfsi_email_manualCounts'];
672
+ }
673
  }
674
+
675
+ if(isset($sfsi_section4_options['sfsi_email_countsFrom'])){
676
+
677
+ /* get fb count */
678
+ if($sfsi_section4_options['sfsi_facebook_countsFrom']=="likes" )
 
 
 
 
 
 
 
 
 
 
 
 
 
679
  {
680
+ $url = home_url();
681
+ $fb_data = $socialObj->sfsi_get_fb($url);
682
+ $scounts['fb_count']= $socialObj->format_num($fb_data['like_count']);
683
  }
684
+ else if($sfsi_section4_options['sfsi_facebook_countsFrom']=="followers" )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
685
  {
686
+ $url = home_url();
687
+ $fb_data = $socialObj->sfsi_get_fb($url);
688
+ $scounts['fb_count']= format_num($fb_data['share_count']);
689
+ if(empty($scounts['fb_count']))
690
+ {
691
+ $scounts['fb_count']=(string) "0";
692
+ }
693
+ }
694
+ else if($sfsi_section4_options['sfsi_facebook_countsFrom']=="mypage" )
695
+ {
696
+ $url = $sfsi_section4_options['sfsi_facebook_mypageCounts'];
697
+ $fb_data = $socialObj->sfsi_get_fb_pagelike($url);
698
+ $scounts['fb_count']= $fb_data;
699
+ }
700
+ else
701
+ {
702
+ $scounts['fb_count'] = $sfsi_section4_options['sfsi_facebook_manualCounts'];
703
+ }
704
+ }
705
+
706
+ if(isset($sfsi_section4_options['sfsi_twitter_countsFrom'])){
707
+
708
+ /* get twitter counts */
709
+ if($sfsi_section4_options['sfsi_twitter_countsFrom']=="source")
710
+ {
711
+ $twitter_user=$sfsi_section2_options['sfsi_twitter_followUserName'];
712
+ $tw_settings=array(
713
+ 'tw_consumer_key'=>$sfsi_section4_options['tw_consumer_key'],
714
+ 'tw_consumer_secret'=> $sfsi_section4_options['tw_consumer_secret'],
715
+ 'tw_oauth_access_token'=> $sfsi_section4_options['tw_oauth_access_token'],
716
+ 'tw_oauth_access_token_secret'=> $sfsi_section4_options['tw_oauth_access_token_secret']
717
+ );
718
+
719
+ $followers=$socialObj->sfsi_get_tweets($twitter_user,$tw_settings);
720
+ $scounts['twitter_count']= $socialObj->format_num($followers);
721
+ }
722
+ else
723
+ {
724
+ $scounts['twitter_count']=$sfsi_section4_options['sfsi_twitter_manualCounts'];
725
+ }
726
  }
727
+
728
+ if(isset($sfsi_section4_options['sfsi_google_countsFrom'])){
729
+
730
+ /* get google+ counts */
731
+ if($sfsi_section4_options['sfsi_google_countsFrom']=="follower" )
732
+ {
733
+ $followers = 0;
734
+
735
+ if(isset($sfsi_section2_options['sfsi_google_pageURL']) && !empty($sfsi_section2_options['sfsi_google_pageURL'])
736
+ && isset($sfsi_section2_options['sfsi_google_api_key']) && !empty($sfsi_section4_options['sfsi_google_api_key'])){
737
+ $url = $sfsi_section2_options['sfsi_google_pageURL'];
738
+ $api_key = $sfsi_section4_options['sfsi_google_api_key'];
739
+ $followers = $socialObj->sfsi_get_google($url,$api_key);
740
+ }
741
+
742
+ $counts = $followers;
743
+ $scounts['google_count']= $socialObj->format_num($followers);
744
+ }
745
+ else if($sfsi_section4_options['sfsi_google_countsFrom']=="likes" )
746
+ {
747
+ $url=home_url();
748
+ $api_key=$sfsi_section4_options['sfsi_google_api_key'];
749
+ $followers=$socialObj->sfsi_get_google($url,$api_key);
750
+ if(!is_int($followers))
751
+ {
752
+ $followers=0;
753
+ }
754
+ $counts=$followers;
755
+ $scounts['google_count']= $socialObj->format_num($followers);
756
+ }
757
+ else
758
  {
759
+ $scounts['google_count']=$sfsi_section4_options['sfsi_google_manualCounts'];
760
+ }
761
+
 
762
  }
763
+
 
 
 
764
  /* get linkedIn counts */
765
+
766
+ if(isset($sfsi_section4_options['sfsi_linkedIn_countsFrom'])){
767
+
768
+ if($sfsi_section4_options['sfsi_linkedIn_countsFrom']=="follower" )
769
+ {
770
+ $linkedIn_compay=$sfsi_section2_options['sfsi_linkedin_followCompany'];
771
+ $linkedIn_compay=$sfsi_section4_options['ln_company'];
772
+ $ln_settings=array(
773
+ 'ln_api_key'=>$sfsi_section4_options['ln_api_key'],
774
+ 'ln_secret_key'=>$sfsi_section4_options['ln_secret_key'],
775
+ 'ln_oAuth_user_token'=>$sfsi_section4_options['ln_oAuth_user_token']
776
+ );
777
+ $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
778
+ $scounts['linkedIn_count']= $socialObj->format_num($followers);
 
 
 
 
 
 
 
 
 
 
 
 
779
  }
780
  else
781
  {
782
+ $scounts['linkedIn_count']=$sfsi_section4_options['sfsi_linkedIn_manualCounts'];
783
+ }
784
+ }
785
+
786
+ if(isset($sfsi_section4_options['sfsi_youtube_countsFrom'])){
787
+
788
+ /* get youtube counts */
789
+ if($sfsi_section4_options['sfsi_youtube_countsFrom']=="subscriber" )
790
+ {
791
+ if(isset($sfsi_section4_options['sfsi_youtube_user']))
792
+ {
793
+ $youtube_user=$sfsi_section4_options['sfsi_youtube_user'];
794
+ $followers=$socialObj->sfsi_get_youtube($youtube_user);
795
+ $scounts['youtube_count']= $socialObj->format_num($followers);
796
+
797
+ }
798
+ else
799
+ {
800
+ $scounts['youtube_count']=01;
801
+ }
802
+ }
803
+ else
804
+ {
805
+ $scounts['youtube_count']=$sfsi_section4_options['sfsi_youtube_manualCounts'];
806
+ }
807
  }
808
+
809
+ if(isset($sfsi_section4_options['sfsi_pinterest_countsFrom'])){
810
+
811
+ /* get Pinterest counts */
812
+ if($sfsi_section4_options['sfsi_pinterest_countsFrom']=="pins" )
813
+ {
814
+ $url=home_url();
815
+ $pins=$socialObj->sfsi_get_pinterest($url);
816
+ $scounts['pin_count']= $socialObj->format_num($pins);
817
+ }
818
+ else
819
+ {
820
+ $scounts['pin_count']=$sfsi_section4_options['sfsi_pinterest_manualCounts'];
821
+ }
822
+
823
  }
824
+
825
+
826
+ if(isset($sfsi_section4_options['sfsi_instagram_countsFrom'])){
827
+ /* get instagram count */
828
+ if($sfsi_section4_options['sfsi_instagram_countsFrom']=="followers" )
829
+ {
830
+ $iuser_name= $sfsi_section4_options['sfsi_instagram_User'];
831
+ /*$counts=$socialObj->sfsi_get_instagramFollowers($iuser_name);
832
+ if(empty($counts))
833
+ {
834
+ $scounts['instagram_count']=(string) "0";
835
+ }*/
836
+ $counts = $socialObj->sfsi_get_instagramFollowers($iuser_name);
837
+ if(empty($counts))
838
+ {
839
+ $scounts['instagram_count']=(string) "0";
840
+ }
841
+ else
842
+ {
843
+ $scounts['instagram_count']=$counts;
844
+ }
845
+ }
846
+ else
847
+ {
848
+ $scounts['instagram_count']=$sfsi_section4_options['sfsi_instagram_manualCounts'];
849
+ }
850
+ }
851
  return $scounts; exit;
852
  }
853
  /* activate and remove footer credit link */
libs/controllers/sfsi_frontpopUp.php CHANGED
@@ -9,121 +9,132 @@ function sfsi_frontPopUp () {
9
  /* check where to be pop-shown */
10
  function sfsi_check_PopUp($content)
11
  {
12
- global $post; global $wpdb;
13
- $sfsi_section7_options= unserialize(get_option('sfsi_section7_options',false));
 
 
 
 
14
 
15
- if($sfsi_section7_options['sfsi_Show_popupOn']=="blogpage")
16
- {
17
- if(!is_feed() && !is_home() && !is_page())
18
- {
19
- $content= sfsi_frontPopUp ().$content;
20
- }
21
- }
22
- else if($sfsi_section7_options['sfsi_Show_popupOn']=="selectedpage")
23
- {
24
- if(!empty($post->ID) && !empty($sfsi_section7_options['sfsi_Show_popupOn_PageIDs']))
25
- {
26
- if(is_page() && in_array($post->ID, unserialize($sfsi_section7_options['sfsi_Show_popupOn_PageIDs'])))
27
- {
28
- $content= sfsi_frontPopUp ().$content;
29
- }
30
- }
31
- }
32
- else if($sfsi_section7_options['sfsi_Show_popupOn']=="everypage")
33
- {
34
- $content= sfsi_frontPopUp ().$content;
 
 
 
35
  }
36
 
37
  /* check for pop times */
38
- if($sfsi_section7_options['sfsi_Shown_pop']=="once")
39
- {
40
- $time_popUp= (int) $sfsi_section7_options['sfsi_Shown_popupOnceTime'];
41
- $time_popUp= $time_popUp*1000;
42
- ob_start();
43
- ?>
44
- <script>
45
- jQuery( document ).ready(function( $ )
46
- {
47
- setTimeout(function()
48
- {
49
- jQuery('.sfsi_outr_div').css({'z-index':'1000000',opacity:1});
50
- jQuery('.sfsi_outr_div').fadeIn(200);
51
- jQuery('.sfsi_FrntInner_chg').fadeIn(200);
52
- }
53
- ,<?php echo $time_popUp; ?>);
54
- });
55
- </script>
56
- <?php
57
- echo ob_get_clean();
58
- return $content;
59
- }
60
- if($sfsi_section7_options['sfsi_Shown_pop']=="ETscroll")
61
  {
62
  $time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popupOnceTime'];
63
  $time_popUp = $time_popUp*1000;
64
- ob_start();
65
-
66
- ?>
67
  <script>
68
- jQuery( document ).scroll(function( $ )
69
  {
70
- var y = jQuery(this).scrollTop();
71
-
72
- if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
73
- {
74
- if(jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height()-100)
75
- {
76
- jQuery('.sfsi_outr_div').css({'z-index':'9996',opacity:1,top:jQuery(window).scrollTop()+"px",position:"absolute"});
77
- jQuery('.sfsi_outr_div').fadeIn(200);
78
- jQuery('.sfsi_FrntInner_chg').fadeIn(200);
79
- }
80
- else{
81
- jQuery('.sfsi_outr_div').fadeOut();
82
- jQuery('.sfsi_FrntInner_chg').fadeOut();
83
- }
84
- }
85
- else
86
- {
87
- if(jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height()-3)
88
- {
89
- jQuery('.sfsi_outr_div').css({'z-index':'9996',opacity:1,top:jQuery(window).scrollTop()+200+"px",position:"absolute"});
90
- jQuery('.sfsi_outr_div').fadeIn(200);
91
- jQuery('.sfsi_FrntInner_chg').fadeIn(200);
92
- }
93
- else
94
- {
95
- jQuery('.sfsi_outr_div').fadeOut();
96
- jQuery('.sfsi_FrntInner_chg').fadeOut();
97
- }
98
- }
99
  });
100
- </script>
101
- <?php
102
  echo ob_get_clean();
103
- }
104
- if($sfsi_section7_options['sfsi_Shown_pop']=="LimitPopUp")
105
- {
106
- $time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popuplimitPerUserTime'];
107
- $end_time = (int) $_COOKIE['sfsi_socialPopUp'] + ($time_popUp*60);
108
- $time_popUp = $time_popUp*1000;
109
-
110
- if(!empty($end_time))
111
- {
112
- if($end_time<time())
113
- {
114
- ?>
115
- <script>
116
- jQuery( document ).ready(function( $ ) {
117
- //jQuery('.sfsi_outr_div').fadeIn();
118
- sfsi_setCookie('sfsi_socialPopUp',<?php echo time(); ?>,32);
119
- setTimeout(function(){jQuery('.sfsi_outr_div').css({'z-index':'1000000',opacity:1});jQuery('.sfsi_outr_div').fadeIn();},<?php echo $time_popUp;?>);
120
- });
121
- </script>
122
- <?php
123
- }
124
- }
125
- echo ob_get_clean();
126
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  return $content;
128
  }
129
  /* make front end pop div */
@@ -133,7 +144,7 @@ function sfsi_FrontPopupDiv()
133
  /* get all settings for icons saved in admin */
134
  $sfsi_section1_options= unserialize(get_option('sfsi_section1_options',false));
135
  $custom_i=unserialize($sfsi_section1_options['sfsi_custom_files']);
136
- if($sfsi_section1_options['sfsi_rss_display']=='no' && $sfsi_section1_options['sfsi_email_display']=='no' && $sfsi_section1_options['sfsi_facebook_display']=='no' && $sfsi_section1_options['sfsi_twitter_display']=='no' && $sfsi_section1_options['sfsi_google_display']=='no' && $sfsi_section1_options['sfsi_share_display']=='no' && $sfsi_section1_options['sfsi_youtube_display']=='no' && $sfsi_section1_options['sfsi_pinterest_display']=='no' && $sfsi_section1_options['sfsi_linkedin_display']=='no' && empty($custom_i))
137
  {
138
  $icons='';return $icons;exit;
139
  }
@@ -164,7 +175,6 @@ function sfsi_FrontPopupDiv()
164
  $sfsi_section5['sfsi_facebookIcon_order']=>'facebook',
165
  $sfsi_section5['sfsi_googleIcon_order']=>'google',
166
  $sfsi_section5['sfsi_twitterIcon_order']=>'twitter',
167
- $sfsi_section5['sfsi_shareIcon_order']=>'share',
168
  $sfsi_section5['sfsi_youtubeIcon_order']=>'youtube',
169
  $sfsi_section5['sfsi_pinterestIcon_order']=>'pinterest',
170
  $sfsi_section5['sfsi_linkedinIcon_order']=>'linkedin',
@@ -227,8 +237,6 @@ function sfsi_FrontPopupDiv()
227
  break;
228
  case 'twitter' : if($sfsi_section1_options['sfsi_twitter_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('twitter',1)."</li>";
229
  break;
230
- case 'share' : if($sfsi_section1_options['sfsi_share_display']=='yes') $icons.= "<li id='SFshareIcon'>".sfsi_prepairIcons('share',1)."</li>";
231
- break;
232
  case 'youtube' : if($sfsi_section1_options['sfsi_youtube_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('youtube',1)."</li>";
233
  break;
234
  case 'pinterest' : if($sfsi_section1_options['sfsi_pinterest_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('pinterest',1)."</li>";
9
  /* check where to be pop-shown */
10
  function sfsi_check_PopUp($content)
11
  {
12
+ global $post;
13
+ global $wpdb;
14
+
15
+ $content = '';
16
+
17
+ $sfsi_section7_options = unserialize(get_option('sfsi_section7_options',false));
18
 
19
+ if(isset($sfsi_section7_options['sfsi_Show_popupOn']) && !empty($sfsi_section7_options['sfsi_Show_popupOn'])){
20
+
21
+ if($sfsi_section7_options['sfsi_Show_popupOn']=="blogpage")
22
+ {
23
+ if(!is_feed() && !is_home() && !is_page())
24
+ {
25
+ $content= sfsi_frontPopUp().$content;
26
+ }
27
+ }
28
+ else if($sfsi_section7_options['sfsi_Show_popupOn']=="selectedpage")
29
+ {
30
+ if(!empty($post->ID) && !empty($sfsi_section7_options['sfsi_Show_popupOn_PageIDs']))
31
+ {
32
+ if(is_page() && in_array($post->ID, unserialize($sfsi_section7_options['sfsi_Show_popupOn_PageIDs'])))
33
+ {
34
+ $content= sfsi_frontPopUp().$content;
35
+ }
36
+ }
37
+ }
38
+ else if($sfsi_section7_options['sfsi_Show_popupOn']=="everypage")
39
+ {
40
+ $content= sfsi_frontPopUp().$content;
41
+ }
42
  }
43
 
44
  /* check for pop times */
45
+ if(isset($sfsi_section7_options['sfsi_Shown_pop']) && !empty($sfsi_section7_options['sfsi_Shown_pop']) && $sfsi_section7_options['sfsi_Shown_pop']=="once")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  {
47
  $time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popupOnceTime'];
48
  $time_popUp = $time_popUp*1000;
49
+ ob_start();
50
+ ?>
 
51
  <script>
52
+ jQuery( document ).ready(function( $ )
53
  {
54
+ setTimeout(function()
55
+ {
56
+ jQuery('.sfsi_outr_div').css({'z-index':'1000000',opacity:1});
57
+ jQuery('.sfsi_outr_div').fadeIn(200);
58
+ jQuery('.sfsi_FrntInner_chg').fadeIn(200);
59
+ }
60
+ ,<?php echo $time_popUp; ?>);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  });
62
+ </script>
63
+ <?php
64
  echo ob_get_clean();
65
+ return $content;
66
+ }
67
+
68
+ if(isset($sfsi_section7_options['sfsi_Shown_pop']) && !empty($sfsi_section7_options['sfsi_Shown_pop'])){
69
+
70
+ if($sfsi_section7_options['sfsi_Shown_pop']=="ETscroll")
71
+ {
72
+ $time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popupOnceTime'];
73
+ $time_popUp = $time_popUp*1000;
74
+ ob_start();
75
+
76
+ ?>
77
+ <script>
78
+ jQuery( document ).scroll(function( $ )
79
+ {
80
+ var y = jQuery(this).scrollTop();
81
+
82
+ if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
83
+ {
84
+ if(jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height()-100)
85
+ {
86
+ jQuery('.sfsi_outr_div').css({'z-index':'9996',opacity:1,top:jQuery(window).scrollTop()+"px",position:"absolute"});
87
+ jQuery('.sfsi_outr_div').fadeIn(200);
88
+ jQuery('.sfsi_FrntInner_chg').fadeIn(200);
89
+ }
90
+ else{
91
+ jQuery('.sfsi_outr_div').fadeOut();
92
+ jQuery('.sfsi_FrntInner_chg').fadeOut();
93
+ }
94
+ }
95
+ else
96
+ {
97
+ if(jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height()-3)
98
+ {
99
+ jQuery('.sfsi_outr_div').css({'z-index':'9996',opacity:1,top:jQuery(window).scrollTop()+200+"px",position:"absolute"});
100
+ jQuery('.sfsi_outr_div').fadeIn(200);
101
+ jQuery('.sfsi_FrntInner_chg').fadeIn(200);
102
+ }
103
+ else
104
+ {
105
+ jQuery('.sfsi_outr_div').fadeOut();
106
+ jQuery('.sfsi_FrntInner_chg').fadeOut();
107
+ }
108
+ }
109
+ });
110
+ </script>
111
+ <?php
112
+ echo ob_get_clean();
113
+ }
114
+ if($sfsi_section7_options['sfsi_Shown_pop']=="LimitPopUp")
115
+ {
116
+ $time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popuplimitPerUserTime'];
117
+ $end_time = (int) $_COOKIE['sfsi_socialPopUp'] + ($time_popUp*60);
118
+ $time_popUp = $time_popUp*1000;
119
+
120
+ if(!empty($end_time))
121
+ {
122
+ if($end_time<time())
123
+ {
124
+ ?>
125
+ <script>
126
+ jQuery( document ).ready(function( $ ) {
127
+ //jQuery('.sfsi_outr_div').fadeIn();
128
+ sfsi_setCookie('sfsi_socialPopUp',<?php echo time(); ?>,32);
129
+ setTimeout(function(){jQuery('.sfsi_outr_div').css({'z-index':'1000000',opacity:1});jQuery('.sfsi_outr_div').fadeIn();},<?php echo $time_popUp;?>);
130
+ });
131
+ </script>
132
+ <?php
133
+ }
134
+ }
135
+ echo ob_get_clean();
136
+ }
137
+ }
138
  return $content;
139
  }
140
  /* make front end pop div */
144
  /* get all settings for icons saved in admin */
145
  $sfsi_section1_options= unserialize(get_option('sfsi_section1_options',false));
146
  $custom_i=unserialize($sfsi_section1_options['sfsi_custom_files']);
147
+ if($sfsi_section1_options['sfsi_rss_display']=='no' && $sfsi_section1_options['sfsi_email_display']=='no' && $sfsi_section1_options['sfsi_facebook_display']=='no' && $sfsi_section1_options['sfsi_twitter_display']=='no' && $sfsi_section1_options['sfsi_google_display']=='no' && $sfsi_section1_options['sfsi_youtube_display']=='no' && $sfsi_section1_options['sfsi_pinterest_display']=='no' && $sfsi_section1_options['sfsi_linkedin_display']=='no' && empty($custom_i))
148
  {
149
  $icons='';return $icons;exit;
150
  }
175
  $sfsi_section5['sfsi_facebookIcon_order']=>'facebook',
176
  $sfsi_section5['sfsi_googleIcon_order']=>'google',
177
  $sfsi_section5['sfsi_twitterIcon_order']=>'twitter',
 
178
  $sfsi_section5['sfsi_youtubeIcon_order']=>'youtube',
179
  $sfsi_section5['sfsi_pinterestIcon_order']=>'pinterest',
180
  $sfsi_section5['sfsi_linkedinIcon_order']=>'linkedin',
237
  break;
238
  case 'twitter' : if($sfsi_section1_options['sfsi_twitter_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('twitter',1)."</li>";
239
  break;
 
 
240
  case 'youtube' : if($sfsi_section1_options['sfsi_youtube_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('youtube',1)."</li>";
241
  break;
242
  case 'pinterest' : if($sfsi_section1_options['sfsi_pinterest_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('pinterest',1)."</li>";
libs/controllers/sfsi_socialhelper.php CHANGED
@@ -165,19 +165,6 @@ class sfsi_SocialHelper
165
  return $subs;
166
  }
167
 
168
- /* get addthis counts */
169
- function sfsi_get_atthis()
170
- {
171
- // $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" :"http";
172
- // $url=$scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
173
-
174
- $url= sfsi_get_current_page_url();
175
-
176
- $json_string = $this->file_get_contents_curl('http://api-public.addthis.com/url/shares.json?url='.$url);
177
- $json = json_decode($json_string, true);
178
- return isset($json['shares'])? $this->format_num((int) $json['shares']):0;
179
- }
180
-
181
  /* get pinit counts */
182
  function sfsi_get_pinterest($url)
183
  {
165
  return $subs;
166
  }
167
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  /* get pinit counts */
169
  function sfsi_get_pinterest($url)
170
  {
libs/controllers/sfsiocns_OnPosts.php CHANGED
@@ -100,10 +100,6 @@ function sfsi_social_buttons_below($content)
100
  {
101
  $icons.="<div class='sf_google' style='text-align:left;float:left;max-width:62px;min-width:35px;'>".sfsi_googlePlus($permalink,$show_count)."</div>";
102
  }
103
- if($sfsi_section6['sfsi_rectshr'] == 'yes')
104
- {
105
- $icons.="<div class='sf_addthis'>".sfsi_Addthis($show_count, $permalink, $title)."</div>";
106
- }
107
  $icons.="</div>";
108
  //closing wrapper div
109
  $icons.="</div>";
@@ -239,30 +235,6 @@ function sfsi_FBlike($permalink,$show_count)
239
  $fb_like_html .= ' ></div>';
240
  return $fb_like_html;
241
  }
242
- /* create add this button */
243
- function sfsi_Addthis($show_count, $permalink, $post_title)
244
- {
245
-
246
- $atiocn =' <script type="text/javascript">
247
- var addthis_config = {
248
- url: "'.$permalink.'",
249
- title: "'.$post_title.'"
250
- }
251
- </script>';
252
-
253
- if($show_count==1)
254
- {
255
- $atiocn.=' <div class="addthis_toolbox" addthis:url="'.$permalink.'" addthis:title="'.$post_title.'">
256
- <a class="addthis_counter addthis_pill_style share_showhide"></a>
257
- </div>';
258
- return $atiocn;
259
- }
260
- else
261
- {
262
- $atiocn.='<div class="addthis_toolbox addthis_default_style addthis_20x20_style" addthis:url="'.$permalink.'" addthis:title="'.$post_title.'"><a class="addthis_button_compact " href="#"> <img src="'.SFSI_PLUGURL.'images/sharebtn.png" border="0" alt="Share" /></a></div>';
263
- return $atiocn;
264
- }
265
- }
266
 
267
  /* add all external javascript to wp_footer */
268
  function sfsi_footer_script()
@@ -357,15 +329,6 @@ function sfsi_footer_script()
357
  <script src="//platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script>
358
  <?php
359
  }
360
- if($sfsi_section1['sfsi_share_display']=="yes" || $sfsi_section6['sfsi_show_Onposts']=="yes" || $sfsi_section6['sfsi_rectshr'] == "yes")
361
- { ?>
362
- <!-- Addthis js -->
363
- <script type="text/javascript" src="https://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-558ac14e7f79bff7"></script>
364
- <script type="text/javascript">
365
- var addthis_config = { ui_click: true };
366
- </script>
367
- <?php
368
- }
369
  if($sfsi_section1['sfsi_pinterest_display']=="yes" || ($sfsi_section6['sfsi_rectpinit'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes"))
370
  {?>
371
  <!--pinit js -->
100
  {
101
  $icons.="<div class='sf_google' style='text-align:left;float:left;max-width:62px;min-width:35px;'>".sfsi_googlePlus($permalink,$show_count)."</div>";
102
  }
 
 
 
 
103
  $icons.="</div>";
104
  //closing wrapper div
105
  $icons.="</div>";
235
  $fb_like_html .= ' ></div>';
236
  return $fb_like_html;
237
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
 
239
  /* add all external javascript to wp_footer */
240
  function sfsi_footer_script()
329
  <script src="//platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script>
330
  <?php
331
  }
 
 
 
 
 
 
 
 
 
332
  if($sfsi_section1['sfsi_pinterest_display']=="yes" || ($sfsi_section6['sfsi_rectpinit'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes"))
333
  {?>
334
  <!--pinit js -->
libs/sfsi_install_uninstall.php CHANGED
@@ -12,7 +12,7 @@ function sfsi_update_plugin()
12
  }
13
 
14
  //Install version
15
- update_option("sfsi_pluginVersion", "2.01");
16
 
17
  if(!get_option('sfsi_serverphpVersionnotification'))
18
  {
@@ -217,9 +217,24 @@ function sfsi_update_plugin()
217
  unset($option5['sfsi_disable_floaticons']);
218
  }
219
 
220
- if(isset($option5['sfsi_custom_social_hide'])){
221
  $option5['sfsi_custom_social_hide'] = 'no';
222
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
  }
224
 
225
  update_option('sfsi_section5_options', serialize($option5));
@@ -265,13 +280,17 @@ function sfsi_update_plugin()
265
  if(!isset($option9['sfsi_disable_floaticons'])) { $option9['sfsi_disable_floaticons'] = $sfsi_disable_floaticons;}
266
 
267
  update_option('sfsi_section9_options', serialize($option9));
 
 
 
268
  }
269
 
270
  function sfsi_activate_plugin()
271
  {
272
  add_option('sfsi_plugin_do_activation_redirect', true);
 
273
  /* check for CURL enable at server */
274
- curl_enable_notice();
275
 
276
  if(!get_option('show_new_notification'))
277
  {
@@ -283,14 +302,15 @@ function sfsi_activate_plugin()
283
  add_option("show_premium_cumulative_count_notification", "yes");
284
  }
285
 
286
- if(!get_option('sfsi_section1_options')){
 
 
287
 
288
  $options1=array('sfsi_rss_display'=>'yes',
289
  'sfsi_email_display'=>'yes',
290
  'sfsi_facebook_display'=>'yes',
291
  'sfsi_twitter_display'=>'yes',
292
  'sfsi_google_display'=>'yes',
293
- 'sfsi_share_display'=>'no',
294
  'sfsi_pinterest_display'=>'no',
295
  'sfsi_instagram_display'=>'no',
296
  'sfsi_linkedin_display'=>'no',
@@ -312,7 +332,15 @@ function sfsi_activate_plugin()
312
  $sffeeds = SFSI_getFeedUrl();
313
  }
314
 
315
- if(!get_option('sfsi_section2_options')){
 
 
 
 
 
 
 
 
316
 
317
  /* Links and icons options */
318
  $options2=array('sfsi_rss_url'=>sfsi_get_bloginfo('rss2_url'),
@@ -355,7 +383,9 @@ function sfsi_activate_plugin()
355
  add_option('sfsi_section2_options', serialize($options2));
356
  }
357
 
358
- if(!get_option('sfsi_section3_options')){
 
 
359
 
360
  /* Design and animation option */
361
  $options3=array('sfsi_mouseOver'=>'no',
@@ -368,7 +398,9 @@ function sfsi_activate_plugin()
368
  add_option('sfsi_section3_options', serialize($options3));
369
  }
370
 
371
- if(!get_option('sfsi_section4_options')){
 
 
372
 
373
  /* display counts options */
374
  $options4=array('sfsi_display_counts'=>'no',
@@ -413,58 +445,58 @@ function sfsi_activate_plugin()
413
  'sfsi_instagram_manualCounts'=>'20',
414
 
415
  'sfsi_instagram_User'=>'',
416
-
417
- 'sfsi_shares_countsDisplay'=>'no',
418
- 'sfsi_shares_countsFrom'=>'manual',
419
- 'sfsi_shares_manualCounts'=>'20'
420
  );
421
  add_option('sfsi_section4_options', serialize($options4));
422
  }
423
 
424
- if(!get_option('sfsi_section5_options')){
 
 
425
 
426
  $options5=array(
427
- 'sfsi_icons_size'=>'40',
428
- 'sfsi_icons_spacing'=>'5',
429
- 'sfsi_icons_Alignment'=>'left',
430
- 'sfsi_icons_perRow'=>'5',
431
- 'sfsi_icons_ClickPageOpen'=>'yes',
432
- 'sfsi_icons_float'=>'no',
433
- 'sfsi_disable_floaticons'=>'no',
434
- 'sfsi_icons_floatPosition'=>'center-right',
 
435
  'sfsi_icons_floatMargin_top'=>'',
436
  'sfsi_icons_floatMargin_bottom'=>'',
437
  'sfsi_icons_floatMargin_left'=>'',
438
  'sfsi_icons_floatMargin_right'=>'',
439
- 'sfsi_icons_stick'=>'no',
440
- 'sfsi_rssIcon_order'=>'1',
441
- 'sfsi_emailIcon_order'=>'2',
442
- 'sfsi_facebookIcon_order'=>'3',
443
- 'sfsi_googleIcon_order'=>'4',
444
- 'sfsi_twitterIcon_order'=>'5',
445
- 'sfsi_shareIcon_order'=>'6',
446
- 'sfsi_youtubeIcon_order'=>'7',
447
- 'sfsi_pinterestIcon_order'=>'8',
448
- 'sfsi_linkedinIcon_order'=>'9',
449
- 'sfsi_instagramIcon_order'=>'10',
450
- 'sfsi_CustomIcons_order'=>'',
451
- 'sfsi_rss_MouseOverText'=>'RSS',
452
- 'sfsi_email_MouseOverText'=>'Follow by Email',
453
  'sfsi_twitter_MouseOverText'=>'Twitter',
454
- 'sfsi_facebook_MouseOverText'=>'Facebook',
455
- 'sfsi_google_MouseOverText'=>'Google+',
456
- 'sfsi_linkedIn_MouseOverText'=>'LinkedIn',
457
  'sfsi_pinterest_MouseOverText'=>'Pinterest',
458
  'sfsi_instagram_MouseOverText'=>'Instagram',
459
- 'sfsi_youtube_MouseOverText'=>'YouTube',
460
- 'sfsi_share_MouseOverText'=>'Share',
461
- 'sfsi_custom_MouseOverTexts'=>'',
462
- 'sfsi_custom_social_hide' => 'no'
463
  );
464
- add_option('sfsi_section5_options', serialize($options5));
465
  }
466
 
467
- if(!get_option('sfsi_section6_options')){
 
 
468
 
469
  /* post options */
470
  $options6=array('sfsi_show_Onposts'=>'no',
@@ -485,7 +517,9 @@ function sfsi_activate_plugin()
485
  add_option('sfsi_section6_options', serialize($options6));
486
  }
487
 
488
- if(!get_option('sfsi_section7_options')){
 
 
489
 
490
  /* icons pop options */
491
  $options7=array('sfsi_show_popup'=>'no',
@@ -507,7 +541,9 @@ function sfsi_activate_plugin()
507
  add_option('sfsi_section7_options', serialize($options7));
508
  }
509
 
510
- if(!get_option('sfsi_section8_options')){
 
 
511
 
512
  /* Question 8 */
513
  $options8=array(
@@ -544,7 +580,9 @@ function sfsi_activate_plugin()
544
  add_option('sfsi_section8_options', serialize($options8));
545
  }
546
 
547
- if(!get_option('sfsi_section9_options')){
 
 
548
 
549
  /* Question 3->Where shall they be displayed? */
550
  $options9 =array(
@@ -591,6 +629,12 @@ function sfsi_activate_plugin()
591
  "sfsi_instagram_count" => ""
592
  );
593
  add_option('sfsi_instagram_sf_count', serialize($sfsi_instagram_sf_count));
 
 
 
 
 
 
594
  }
595
  /* end function */
596
 
@@ -658,6 +702,8 @@ function sfsi_Unistall_plugin()
658
  delete_option('sfsi_serverphpVersionnotification');
659
  delete_option("show_premium_cumulative_count_notification");
660
 
 
 
661
  delete_option('widget_sfsi_widget');
662
  delete_option('widget_subscriber_widget');
663
  }
@@ -806,19 +852,22 @@ function sfsi_check_wp_footer() {
806
  }
807
  }
808
  /* admin notice for first time installation */
809
- function sfsi_activation_msg()
810
- {
811
- global $wp_version;
812
 
813
  if(get_option('sfsi_activate',false)==1)
814
  {
815
- echo "<div class=\"updated\" >" . "<p>Thank you for installing the <b>Ultimate Social Media Icons</b> Plugin. Please go to the <a href=\"admin.php?page=sfsi-options\">plugin's settings page </a> to configure it. </p></div>"; update_option('sfsi_activate',0);
816
  }
 
817
  $path=pathinfo($_SERVER['REQUEST_URI']);
 
818
  update_option('sfsi_activate',0);
 
819
  if($wp_version<3.5 && $path['basename']=="admin.php?page=sfsi-options")
820
  {
821
- echo "<div class=\"update-nag\" >" . "<p ><b>You're using an old Wordpress version, which may cause several of your plugins to not work correctly. Please upgrade</b></p></div>";
822
  }
823
  }
824
  /* admin notice for first time installation */
@@ -862,6 +911,7 @@ function sfsi_rating_msg()
862
  ';
863
  }
864
  }
 
865
  add_action('wp_ajax_sfsi_hideRating','sfsi_HideRatingDiv', 0);
866
  function sfsi_HideRatingDiv()
867
  {
@@ -873,6 +923,7 @@ add_action('admin_notices', 'sfsi_activation_msg');
873
  add_action('admin_notices', 'sfsi_rating_msg');
874
  add_action('admin_notices', 'sfsi_check_wp_head');
875
  add_action('admin_notices', 'sfsi_check_wp_footer');
 
876
  function sfsi_pingVendor( $post_id )
877
  {
878
  global $wp,$wpdb;
@@ -925,5 +976,34 @@ function sfsi_pingVendor( $post_id )
925
  return true;
926
  endif;
927
  }
928
- add_action( 'save_post', 'sfsi_pingVendor' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
929
  ?>
12
  }
13
 
14
  //Install version
15
+ update_option("sfsi_pluginVersion", "2.02");
16
 
17
  if(!get_option('sfsi_serverphpVersionnotification'))
18
  {
217
  unset($option5['sfsi_disable_floaticons']);
218
  }
219
 
220
+ if(isset($option5['sfsi_custom_social_hide'])){
221
  $option5['sfsi_custom_social_hide'] = 'no';
222
  }
223
+
224
+
225
+ if(!isset($option5['sfsi_icons_suppress_errors'])){
226
+
227
+ $sup_errors = "no";
228
+ $sup_errors_banner_dismissed = true;
229
+
230
+ if(defined('WP_DEBUG') && false != WP_DEBUG){
231
+ $sup_errors = 'yes';
232
+ $sup_errors_banner_dismissed = false;
233
+ }
234
+
235
+ $option5['sfsi_icons_suppress_errors'] = $sup_errors;
236
+ update_option('sfsi_error_reporting_notice_dismissed',$sup_errors_banner_dismissed);
237
+ }
238
  }
239
 
240
  update_option('sfsi_section5_options', serialize($option5));
280
  if(!isset($option9['sfsi_disable_floaticons'])) { $option9['sfsi_disable_floaticons'] = $sfsi_disable_floaticons;}
281
 
282
  update_option('sfsi_section9_options', serialize($option9));
283
+
284
+ // Add this removed in version 2.0.2, removing values from section 1 & section 6 & setting notice display value
285
+ sfsi_was_displaying_addthis();
286
  }
287
 
288
  function sfsi_activate_plugin()
289
  {
290
  add_option('sfsi_plugin_do_activation_redirect', true);
291
+
292
  /* check for CURL enable at server */
293
+ curl_enable_notice();
294
 
295
  if(!get_option('show_new_notification'))
296
  {
302
  add_option("show_premium_cumulative_count_notification", "yes");
303
  }
304
 
305
+ $option1 = unserialize(get_option('sfsi_section1_options',false));
306
+
307
+ if(!isset($option1) || empty($option1)){
308
 
309
  $options1=array('sfsi_rss_display'=>'yes',
310
  'sfsi_email_display'=>'yes',
311
  'sfsi_facebook_display'=>'yes',
312
  'sfsi_twitter_display'=>'yes',
313
  'sfsi_google_display'=>'yes',
 
314
  'sfsi_pinterest_display'=>'no',
315
  'sfsi_instagram_display'=>'no',
316
  'sfsi_linkedin_display'=>'no',
332
  $sffeeds = SFSI_getFeedUrl();
333
  }
334
 
335
+ $addThisDismissed = get_option('sfsi_addThis_icon_removal_notice_dismissed',false);
336
+
337
+ if(!isset($addThisDismissed)){
338
+ update_option('sfsi_addThis_icon_removal_notice_dismissed',true);
339
+ }
340
+
341
+ $option2 = unserialize(get_option('sfsi_section2_options',false));
342
+
343
+ if(!isset($option2) || empty($option2)){
344
 
345
  /* Links and icons options */
346
  $options2=array('sfsi_rss_url'=>sfsi_get_bloginfo('rss2_url'),
383
  add_option('sfsi_section2_options', serialize($options2));
384
  }
385
 
386
+ $option3 = unserialize(get_option('sfsi_section3_options',false));
387
+
388
+ if(!isset($option3) || empty($option3)){
389
 
390
  /* Design and animation option */
391
  $options3=array('sfsi_mouseOver'=>'no',
398
  add_option('sfsi_section3_options', serialize($options3));
399
  }
400
 
401
+ $option4 = unserialize(get_option('sfsi_section4_options',false));
402
+
403
+ if(!isset($option4) || empty($option4)){
404
 
405
  /* display counts options */
406
  $options4=array('sfsi_display_counts'=>'no',
445
  'sfsi_instagram_manualCounts'=>'20',
446
 
447
  'sfsi_instagram_User'=>'',
448
+
 
 
 
449
  );
450
  add_option('sfsi_section4_options', serialize($options4));
451
  }
452
 
453
+ $option5 = unserialize(get_option('sfsi_section5_options',false));
454
+
455
+ if(!isset($option5) || empty($option5)){
456
 
457
  $options5=array(
458
+ 'sfsi_icons_size' =>'40',
459
+ 'sfsi_icons_spacing' =>'5',
460
+ 'sfsi_icons_Alignment' =>'left',
461
+ 'sfsi_icons_perRow' =>'5',
462
+ 'sfsi_icons_ClickPageOpen' =>'yes',
463
+ 'sfsi_icons_suppress_errors'=>'no',
464
+ 'sfsi_icons_float' =>'no',
465
+ 'sfsi_disable_floaticons' =>'no',
466
+ 'sfsi_icons_floatPosition' =>'center-right',
467
  'sfsi_icons_floatMargin_top'=>'',
468
  'sfsi_icons_floatMargin_bottom'=>'',
469
  'sfsi_icons_floatMargin_left'=>'',
470
  'sfsi_icons_floatMargin_right'=>'',
471
+ 'sfsi_icons_stick' =>'no',
472
+ 'sfsi_rssIcon_order' =>'1',
473
+ 'sfsi_emailIcon_order' =>'2',
474
+ 'sfsi_facebookIcon_order' =>'3',
475
+ 'sfsi_googleIcon_order' =>'4',
476
+ 'sfsi_twitterIcon_order' =>'5',
477
+ 'sfsi_youtubeIcon_order' =>'7',
478
+ 'sfsi_pinterestIcon_order' =>'8',
479
+ 'sfsi_linkedinIcon_order' =>'9',
480
+ 'sfsi_instagramIcon_order' =>'10',
481
+ 'sfsi_CustomIcons_order' =>'',
482
+ 'sfsi_rss_MouseOverText' =>'RSS',
483
+ 'sfsi_email_MouseOverText' =>'Follow by Email',
 
484
  'sfsi_twitter_MouseOverText'=>'Twitter',
485
+ 'sfsi_facebook_MouseOverText' =>'Facebook',
486
+ 'sfsi_google_MouseOverText' =>'Google+',
487
+ 'sfsi_linkedIn_MouseOverText' =>'LinkedIn',
488
  'sfsi_pinterest_MouseOverText'=>'Pinterest',
489
  'sfsi_instagram_MouseOverText'=>'Instagram',
490
+ 'sfsi_youtube_MouseOverText' =>'YouTube',
491
+ 'sfsi_custom_MouseOverTexts' =>'',
492
+ 'sfsi_custom_social_hide' =>'no'
 
493
  );
494
+ update_option('sfsi_section5_options', serialize($options5));
495
  }
496
 
497
+ $option6 = unserialize(get_option('sfsi_section6_options',false));
498
+
499
+ if(!isset($option6) || empty($option6)){
500
 
501
  /* post options */
502
  $options6=array('sfsi_show_Onposts'=>'no',
517
  add_option('sfsi_section6_options', serialize($options6));
518
  }
519
 
520
+ $option7 = unserialize(get_option('sfsi_section7_options',false));
521
+
522
+ if(!isset($option7) || empty($option7)){
523
 
524
  /* icons pop options */
525
  $options7=array('sfsi_show_popup'=>'no',
541
  add_option('sfsi_section7_options', serialize($options7));
542
  }
543
 
544
+ $option8 = unserialize(get_option('sfsi_section8_options',false));
545
+
546
+ if(!isset($option8) || empty($option8)){
547
 
548
  /* Question 8 */
549
  $options8=array(
580
  add_option('sfsi_section8_options', serialize($options8));
581
  }
582
 
583
+ $option9 = unserialize(get_option('sfsi_section9_options',false));
584
+
585
+ if(!isset($option9) || empty($option9)){
586
 
587
  /* Question 3->Where shall they be displayed? */
588
  $options9 =array(
629
  "sfsi_instagram_count" => ""
630
  );
631
  add_option('sfsi_instagram_sf_count', serialize($sfsi_instagram_sf_count));
632
+
633
+ $error_banner = get_option('sfsi_error_reporting_notice_dismissed',false);
634
+
635
+ if(!$error_banner){
636
+ update_option('sfsi_error_reporting_notice_dismissed',true);
637
+ }
638
  }
639
  /* end function */
640
 
702
  delete_option('sfsi_serverphpVersionnotification');
703
  delete_option("show_premium_cumulative_count_notification");
704
 
705
+ delete_option("sfsi_addThis_icon_removal_notice_dismissed");
706
+ delete_option("sfsi_error_reporting_notice_dismissed");
707
  delete_option('widget_sfsi_widget');
708
  delete_option('widget_subscriber_widget');
709
  }
852
  }
853
  }
854
  /* admin notice for first time installation */
855
+ function sfsi_activation_msg(){
856
+
857
+ global $wp_version;
858
 
859
  if(get_option('sfsi_activate',false)==1)
860
  {
861
+ echo "<div class=\"updated\" >" . "<p>Thank you for installing the <b>Ultimate Social Media Icons</b> Plugin. Please go to the <a href=\"admin.php?page=sfsi-options\">plugin's settings page </a> to configure it. </p></div>"; update_option('sfsi_activate',0);
862
  }
863
+
864
  $path=pathinfo($_SERVER['REQUEST_URI']);
865
+
866
  update_option('sfsi_activate',0);
867
+
868
  if($wp_version<3.5 && $path['basename']=="admin.php?page=sfsi-options")
869
  {
870
+ echo "<div class=\"update-nag\" >" . "<p ><b>You're using an old Wordpress version, which may cause several of your plugins to not work correctly. Please upgrade</b></p></div>";
871
  }
872
  }
873
  /* admin notice for first time installation */
911
  ';
912
  }
913
  }
914
+
915
  add_action('wp_ajax_sfsi_hideRating','sfsi_HideRatingDiv', 0);
916
  function sfsi_HideRatingDiv()
917
  {
923
  add_action('admin_notices', 'sfsi_rating_msg');
924
  add_action('admin_notices', 'sfsi_check_wp_head');
925
  add_action('admin_notices', 'sfsi_check_wp_footer');
926
+
927
  function sfsi_pingVendor( $post_id )
928
  {
929
  global $wp,$wpdb;
976
  return true;
977
  endif;
978
  }
979
+ add_action( 'save_post', 'sfsi_pingVendor' );
980
+
981
+ function sfsi_was_displaying_addthis(){
982
+
983
+ $isDismissed = true;
984
+
985
+ $sfsi_section1 = unserialize(get_option('sfsi_section1_options',false));
986
+ $sfsi_section6 = unserialize(get_option('sfsi_section6_options',false));
987
+
988
+ $sfsi_addThiswasDisplayed_section1 = isset($sfsi_section1['sfsi_share_display']) && 'yes'== sanitize_text_field($sfsi_section1['sfsi_share_display']);
989
+
990
+ $sfsi_addThiswasDisplayed_section6 = isset($sfsi_section6['sfsi_rectshr']) && 'yes'== sanitize_text_field($sfsi_section6['sfsi_rectshr']);
991
+
992
+ $isDisplayed = $sfsi_addThiswasDisplayed_section1 || $sfsi_addThiswasDisplayed_section6;
993
+
994
+ // If icon was displayed
995
+ $isDismissed = false != $isDisplayed ? false : true;
996
+
997
+ update_option('sfsi_addThis_icon_removal_notice_dismissed',$isDismissed);
998
+
999
+ if($sfsi_addThiswasDisplayed_section1){
1000
+ unset($sfsi_section1['sfsi_share_display']);
1001
+ update_option('sfsi_section1_options', serialize($sfsi_section1) );
1002
+ }
1003
+
1004
+ if($sfsi_addThiswasDisplayed_section6){
1005
+ unset($sfsi_section6['sfsi_rectshr']);
1006
+ update_option('sfsi_section6_options', serialize($sfsi_section6) );
1007
+ }
1008
+ }
1009
  ?>
libs/sfsi_widget.php CHANGED
@@ -243,7 +243,6 @@ function sfsi_check_visiblity($isFloter=0)
243
  $sfsi_section5['sfsi_facebookIcon_order']=>'facebook',
244
  $sfsi_section5['sfsi_googleIcon_order']=>'google',
245
  $sfsi_section5['sfsi_twitterIcon_order']=>'twitter',
246
- $sfsi_section5['sfsi_shareIcon_order']=>'share',
247
  $sfsi_section5['sfsi_youtubeIcon_order']=>'youtube',
248
  $sfsi_section5['sfsi_pinterestIcon_order']=>'pinterest',
249
  $sfsi_section5['sfsi_linkedinIcon_order']=>'linkedin',
@@ -287,7 +286,6 @@ function sfsi_check_visiblity($isFloter=0)
287
  break;
288
  case 'twitter' : if($sfsi_section1_options['sfsi_twitter_display']=='yes') $icons.= sfsi_prepairIcons('twitter');
289
  break;
290
- case 'share' : if($sfsi_section1_options['sfsi_share_display']=='yes') $icons.= sfsi_prepairIcons('share'); break;
291
  case 'youtube' : if($sfsi_section1_options['sfsi_youtube_display']=='yes') $icons.= sfsi_prepairIcons('youtube');
292
  break;
293
  case 'pinterest' : if($sfsi_section1_options['sfsi_pinterest_display']=='yes') $icons.= sfsi_prepairIcons('pinterest');
@@ -411,7 +409,7 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
411
  {
412
  case "rss" :
413
  $socialObj = new sfsi_SocialHelper(); /* global object to access 3rd party icon's actions */
414
- $url = ($sfsi_section2_options['sfsi_rss_url'])? $sfsi_section2_options['sfsi_rss_url'] : 'javascript:void(0);';
415
  $toolClass = "rss_tool_bdr";
416
  $hoverdiv = '';
417
  $arrow_class = "bot_rss_arow";
@@ -513,13 +511,19 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
513
  else
514
  {
515
  //$icon=($sfsi_section2_options['sfsi_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
516
- if($sfsi_section2_options['sfsi_rss_icons']=="sfsi")
517
- {
518
- $icon = $icons_baseUrl.$active_theme."_sf.png";
519
- }
520
- elseif($sfsi_section2_options['sfsi_rss_icons']=="email")
521
- {
522
- $icon = $icons_baseUrl.$active_theme."_email.png";
 
 
 
 
 
 
523
  }
524
  else
525
  {
@@ -529,11 +533,12 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
529
  break;
530
 
531
  case "facebook" :
532
- $socialObj = new sfsi_SocialHelper();
533
- $width = 62;
534
- $totwith = $width+28+$icons_space;
535
- $twt_margin = $totwith/2;
536
- $toolClass = "fb_tool_bdr";
 
537
  $arrow_class = "bot_fb_arow";
538
 
539
  /* check for the over section */
@@ -547,25 +552,32 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
547
  }
548
 
549
  $visit_icon = $visit_iconsUrl."facebook.png";
550
- $url = ($sfsi_section2_options['sfsi_facebookPage_url']) ? $sfsi_section2_options['sfsi_facebookPage_url']:'javascript:void(0);';
551
-
552
- if(
553
- $sfsi_section2_options['sfsi_facebookLike_option']=="yes" ||
554
- $sfsi_section2_options['sfsi_facebookShare_option']=="yes"
555
- )
 
 
 
 
 
 
556
  {
557
  $url=($sfsi_section2_options['sfsi_facebookPage_url']) ? $sfsi_section2_options['sfsi_facebookPage_url']:'javascript:void(0);';
558
- $hoverSHow=1;
559
- $hoverdiv='';
560
- if($sfsi_section2_options['sfsi_facebookPage_option']=="yes")
 
561
  {
562
  $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
563
  }
564
- if($sfsi_section2_options['sfsi_facebookLike_option']=="yes")
565
  {
566
  $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_FBlike($current_url)."</div>";
567
  }
568
- if($sfsi_section2_options['sfsi_facebookShare_option']=="yes")
569
  {
570
  $hoverdiv.="<div class='icon3'>".$socialObj->sfsiFB_Share($current_url)."</div>";
571
  }
@@ -626,12 +638,12 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
626
  break;
627
 
628
  case "google" :
629
- $toolClass = "gpls_tool_bdr";
630
  $arrow_class = "bot_gpls_arow";
631
- $socialObj = new sfsi_SocialHelper();
632
- $width = 76;
633
- $totwith = $width+28+$icons_space;
634
- $twt_margin = $totwith/2;
635
 
636
  if(!empty($sfsi_section5_options['sfsi_google_MouseOverText']))
637
  {
@@ -643,13 +655,15 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
643
  }
644
 
645
  $visit_icon = $visit_iconsUrl."google.png";
646
- $url = ($sfsi_section2_options['sfsi_google_pageURL'])?$sfsi_section2_options['sfsi_google_pageURL'] : 'javascript:void(0);';
 
 
 
 
 
647
 
648
  /* check for icons to display */
649
- if(
650
- $sfsi_section2_options['sfsi_googleLike_option']=="yes" ||
651
- $sfsi_section2_options['sfsi_googleShare_option']=="yes"
652
- )
653
  {
654
  $hoverSHow=1;
655
  $hoverdiv='';
@@ -657,11 +671,11 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
657
  {
658
  $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
659
  }
660
- if($sfsi_section2_options['sfsi_googleLike_option']=="yes")
661
  {
662
  $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_Googlelike($current_url)."</div>";
663
  }
664
- if($sfsi_section2_options['sfsi_googleShare_option']=="yes")
665
  {
666
  $hoverdiv.="<div class='icon3'>".$socialObj->sfsi_GoogleShare($current_url)."</div>";
667
  }
@@ -720,35 +734,41 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
720
  break;
721
 
722
  case "twitter" :
723
- $toolClass = "twt_tool_bdr";
724
  $arrow_class = "bot_twt_arow";
725
- $socialObj = new sfsi_SocialHelper();
726
- $url = ($sfsi_section2_options['sfsi_twitter_pageURL'])?$sfsi_section2_options['sfsi_twitter_pageURL'] : 'javascript:void(0);';
727
- $twitter_user = $sfsi_section2_options['sfsi_twitter_followUserName'];
728
- $twitter_text = $sfsi_section2_options['sfsi_twitter_aboutPageText'];
729
- $visit_icon = $visit_iconsUrl."twitter.png";
730
- $width = 59;
731
- $totwith = $width+28+$icons_space;
 
 
 
 
 
732
  $twt_margin = $totwith/2;
733
  /* check for icons to display */
734
  $hoverdiv='';
 
 
 
 
735
 
736
- if(
737
- $sfsi_section2_options['sfsi_twitter_followme']=="yes" ||
738
- $sfsi_section2_options['sfsi_twitter_aboutPage']=="yes"
739
- )
740
  {
741
  $hoverSHow=1;
742
  //Visit twitter page {Monad}
743