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
- if($sfsi_section2_options['sfsi_twitter_page']=="yes")
744
  {
745
  $hoverdiv.="<div class='cstmicon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img alt='Visit Us' title='Visit Us' src='".$visit_icon."' /></a></div>";
746
  }
747
- if($sfsi_section2_options['sfsi_twitter_followme']=="yes" && !empty($twitter_user))
748
  {
749
  $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_twitterFollow($twitter_user)."</div>";
750
  }
751
- if($sfsi_section2_options['sfsi_twitter_aboutPage']=="yes")
752
  {
753
  $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_twitterShare($current_url,$twitter_text)."</div>";
754
  }
@@ -811,59 +831,6 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
811
  }
812
  break;
813
 
814
- case "share" :
815
- $socialObj = new sfsi_SocialHelper();
816
- $url = "http://www.addthis.com/bookmark.php?v=250";
817
- $class = "addthis_button";
818
-
819
- /*fecth no of counts if active in admin section */
820
- if($sfsi_section4_options['sfsi_shares_countsDisplay']=="yes" && $sfsi_section4_options['sfsi_display_counts']=="yes")
821
- {
822
- if($sfsi_section4_options['sfsi_shares_countsFrom']=="manual")
823
- {
824
- $counts = $socialObj->format_num($sfsi_section4_options['sfsi_shares_manualCounts']);
825
- }
826
- else if($sfsi_section4_options['sfsi_shares_countsFrom']=="shares")
827
- {
828
- $shares=$socialObj->sfsi_get_atthis();
829
- $counts=$socialObj->format_num($shares);
830
- if(empty($counts))
831
- {
832
- $counts=(string) "0";
833
- }
834
- }
835
- }
836
-
837
- //Giving alternative text to image
838
- if(!empty($sfsi_section5_options['sfsi_share_MouseOverText']))
839
- {
840
- $alt_text = $sfsi_section5_options['sfsi_share_MouseOverText'];
841
- }
842
- else
843
- {
844
- $alt_text = "SHARE";
845
- }
846
-
847
- //Custom Skin Support {Monad}
848
- if($active_theme == 'custom_support')
849
- {
850
- if(get_option("share_skin"))
851
- {
852
- $icon = get_option("share_skin");
853
- }
854
- else
855
- {
856
- $active_theme = 'default';
857
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
858
- $icon=$icons_baseUrl.$active_theme."_share.png";
859
- }
860
- }
861
- else
862
- {
863
- $icon=$icons_baseUrl.$active_theme."_share.png";
864
- }
865
- break;
866
-
867
  case "youtube" :
868
  $socialObj = new sfsi_SocialHelper();
869
  $toolClass = "utube_tool_bdr";
@@ -874,7 +841,8 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
874
  $twt_margin = $totwith/2;
875
  $youtube_user = (isset($sfsi_section4_options['sfsi_youtube_user']) && !empty($sfsi_section4_options['sfsi_youtube_user'])) ? $sfsi_section4_options['sfsi_youtube_user'] : 'SpecificFeeds';
876
  $visit_icon = $visit_iconsUrl."youtube.png";
877
- $url = ($sfsi_section2_options['sfsi_youtube_pageUrl'])? $sfsi_section2_options['sfsi_youtube_pageUrl'] : 'javascript:void(0);';
 
878
 
879
  //Giving alternative text to image
880
  if(!empty($sfsi_section5_options['sfsi_youtube_MouseOverText']))
@@ -888,14 +856,21 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
888
 
889
  /* check for icons to display */
890
  $hoverdiv="";
891
- if($sfsi_section2_options['sfsi_youtube_follow']=="yes" )
 
 
 
 
 
 
892
  {
893
- $hoverSHow=1;
894
- if($sfsi_section2_options['sfsi_youtube_page']=="yes")
 
895
  {
896
  $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
897
  }
898
- if($sfsi_section2_options['sfsi_youtube_follow']=="yes")
899
  {
900
  $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_YouTubeSub($youtube_user)."</div>";
901
  }
@@ -943,11 +918,12 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
943
  break;
944
 
945
  case "pinterest" :
946
- $width = 73;
947
- $totwith = $width+28+$icons_space;
948
- $twt_margin = $totwith/2;
949
- $socialObj = new sfsi_SocialHelper();
950
- $toolClass = "printst_tool_bdr";
 
951
  $arrow_class = "bot_pintst_arow";
952
 
953
  $pinterest_user = (isset($sfsi_section4_options['sfsi_pinterest_user']))
@@ -959,7 +935,7 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
959
  $url = (isset($sfsi_section2_options['sfsi_pinterest_pageUrl'])) ? $sfsi_section2_options['sfsi_pinterest_pageUrl'] : 'javascript:void(0);';
960
 
961
  //Giving alternative text to image
962
- if(!empty($sfsi_section5_options['sfsi_pinterest_MouseOverText']))
963
  {
964
  $alt_text = $sfsi_section5_options['sfsi_pinterest_MouseOverText'];
965
  }
@@ -970,33 +946,39 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
970
 
971
  /* check for icons to display */
972
  $hoverdiv="";
973
- if($sfsi_section2_options['sfsi_pinterest_pingBlog']=="yes" )
 
 
 
 
 
 
 
 
 
 
 
974
  {
975
- $hoverSHow=1;
976
- if($sfsi_section2_options['sfsi_pinterest_page']=="yes")
 
977
  {
978
  $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
979
  }
980
- if($sfsi_section2_options['sfsi_pinterest_pingBlog']=="yes")
981
  {
982
- if($sfsi_section2_options['sfsi_pinterest_pingBlog']=="yes")
983
- {
984
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_PinIt($current_url)."</div>";
985
- }
986
  }
987
  }
988
 
989
  /* fecth no of counts if active in admin section */
990
- if(
991
- $sfsi_section4_options['sfsi_pinterest_countsDisplay'] == "yes" &&
992
- $sfsi_section4_options['sfsi_display_counts']=="yes"
993
- )
994
  {
995
- if($sfsi_section4_options['sfsi_pinterest_countsFrom']=="manual")
996
  {
997
  $counts = $socialObj->format_num($sfsi_section4_options['sfsi_pinterest_manualCounts']);
998
  }
999
- else if($sfsi_section4_options['sfsi_pinterest_countsFrom']=="pins")
1000
  {
1001
  $pins = $socialObj->sfsi_get_pinterest($current_url);
1002
  $counts = $pins;
@@ -1031,11 +1013,13 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
1031
  $toolClass = "instagram_tool_bdr";
1032
  $arrow_class = "bot_pintst_arow";
1033
  $socialObj = new sfsi_SocialHelper();
 
1034
  $url = (isset($sfsi_section2_options['sfsi_instagram_pageUrl'])) ? $sfsi_section2_options['sfsi_instagram_pageUrl'] : 'javascript:void(0);';
1035
- $instagram_user_name = $sfsi_section4_options['sfsi_instagram_User'];
 
1036
 
1037
  //Giving alternative text to image
1038
- if(!empty($sfsi_section5_options['sfsi_instagram_MouseOverText']))
1039
  {
1040
  $alt_text = $sfsi_section5_options['sfsi_instagram_MouseOverText'];
1041
  }
@@ -1045,17 +1029,21 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
1045
  }
1046
 
1047
  $hoverdiv="";
 
 
 
 
 
 
 
1048
  /* fecth no of counts if active in admin section */
1049
- if(
1050
- $sfsi_section4_options['sfsi_instagram_countsDisplay']=="yes" &&
1051
- $sfsi_section4_options['sfsi_display_counts']=="yes"
1052
- )
1053
  {
1054
- if($sfsi_section4_options['sfsi_instagram_countsFrom']=="manual")
1055
  {
1056
  $counts = $socialObj->format_num($sfsi_section4_options['sfsi_instagram_manualCounts']);
1057
  }
1058
- else if($sfsi_section4_options['sfsi_instagram_countsFrom']=="followers")
1059
  {
1060
  $counts = $socialObj->sfsi_get_instagramFollowers($instagram_user_name);
1061
  if(empty($counts))
@@ -1090,57 +1078,70 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
1090
  $socialObj = new sfsi_SocialHelper();
1091
  $toolClass = "linkedin_tool_bdr";
1092
  $arrow_class = "bot_linkedin_arow";
1093
- $linkedIn_compayId = $sfsi_section2_options['sfsi_linkedin_followCompany'];
1094
- $linkedIn_compay = $sfsi_section2_options['sfsi_linkedin_followCompany'];
1095
- $linkedIn_ProductId = $sfsi_section2_options['sfsi_linkedin_recommendProductId'];
1096
- $visit_icon = $visit_iconsUrl."linkedIn.png";
 
 
 
 
 
 
 
 
 
 
 
1097
 
1098
  /*check for icons to display */
1099
- $url=($sfsi_section2_options['sfsi_linkedin_pageURL'])? $sfsi_section2_options['sfsi_linkedin_pageURL'] : 'javascript:void(0);';
1100
 
1101
- if(
1102
- $sfsi_section2_options['sfsi_linkedin_follow']=="yes" ||
1103
- $sfsi_section2_options['sfsi_linkedin_SharePage']=="yes" ||
1104
- $sfsi_section2_options['sfsi_linkedin_recommendBusines']=="yes"
1105
- )
1106
  {
1107
- $hoverSHow=1;
1108
- $hoverdiv='';
1109
- if($sfsi_section2_options['sfsi_linkedin_page']=="yes")
 
1110
  {
1111
  $hoverdiv.="<div class='icon4'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
1112
  }
1113
- if($sfsi_section2_options['sfsi_linkedin_follow']=="yes")
1114
  {
1115
  $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_LinkedInFollow($linkedIn_compayId)."</div>";
1116
  }
1117
- if($sfsi_section2_options['sfsi_linkedin_SharePage']=="yes")
1118
  {
1119
  $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_LinkedInShare()."</div>";
1120
  }
1121
- if($sfsi_section2_options['sfsi_linkedin_recommendBusines']=="yes")
1122
  {
1123
  $hoverdiv.="<div class='icon3'>".$socialObj->sfsi_LinkedInRecommend($linkedIn_compay,$linkedIn_ProductId)."</div>";
1124
  $width=99;
1125
  }
1126
  }
1127
-
 
 
 
 
 
 
1128
  /* fecth no of counts if active in admin section */
1129
- if(
1130
- $sfsi_section4_options['sfsi_linkedIn_countsDisplay']=="yes" &&
1131
- $sfsi_section4_options['sfsi_display_counts']=="yes"
1132
- )
1133
  {
1134
- if($sfsi_section4_options['sfsi_linkedIn_countsFrom']=="manual")
1135
  {
1136
  $counts = $socialObj->format_num($sfsi_section4_options['sfsi_linkedIn_manualCounts']);
1137
  }
1138
- else if($sfsi_section4_options['sfsi_linkedIn_countsFrom']=="follower")
1139
  {
1140
  $linkedIn_compay = $sfsi_section4_options['ln_company'];
1141
- $ln_settings = array('ln_api_key'=>$sfsi_section4_options['ln_api_key'],
1142
- 'ln_secret_key'=>$sfsi_section4_options['ln_secret_key'],
1143
- 'ln_oAuth_user_token'=>$sfsi_section4_options['ln_oAuth_user_token']);
 
 
1144
 
1145
  $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
1146
  (int) $followers;
@@ -1155,7 +1156,7 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
1155
  $twt_margin = $totwith/2;
1156
 
1157
  //Giving alternative text to image
1158
- if(!empty($sfsi_section5_options['sfsi_linkedIn_MouseOverText']))
1159
  {
1160
  $alt_text = $sfsi_section5_options['sfsi_linkedIn_MouseOverText'];
1161
  }
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_youtubeIcon_order']=>'youtube',
247
  $sfsi_section5['sfsi_pinterestIcon_order']=>'pinterest',
248
  $sfsi_section5['sfsi_linkedinIcon_order']=>'linkedin',
286
  break;
287
  case 'twitter' : if($sfsi_section1_options['sfsi_twitter_display']=='yes') $icons.= sfsi_prepairIcons('twitter');
288
  break;
 
289
  case 'youtube' : if($sfsi_section1_options['sfsi_youtube_display']=='yes') $icons.= sfsi_prepairIcons('youtube');
290
  break;
291
  case 'pinterest' : if($sfsi_section1_options['sfsi_pinterest_display']=='yes') $icons.= sfsi_prepairIcons('pinterest');
409
  {
410
  case "rss" :
411
  $socialObj = new sfsi_SocialHelper(); /* global object to access 3rd party icon's actions */
412
+ $url = isset($sfsi_section2_options['sfsi_rss_url']) && !empty($sfsi_section2_options['sfsi_rss_url'])? $sfsi_section2_options['sfsi_rss_url'] : 'javascript:void(0);';
413
  $toolClass = "rss_tool_bdr";
414
  $hoverdiv = '';
415
  $arrow_class = "bot_rss_arow";
511
  else
512
  {
513
  //$icon=($sfsi_section2_options['sfsi_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
514
+
515
+ $rss_icons = isset($sfsi_section2_options['sfsi_rss_icons']) && !empty($sfsi_section2_options['sfsi_rss_icons']) ? $sfsi_section2_options['sfsi_rss_icons'] : false;
516
+
517
+ if(false != $rss_icons){
518
+
519
+ if($rss_icons=="sfsi")
520
+ {
521
+ $icon = $icons_baseUrl.$active_theme."_sf.png";
522
+ }
523
+ elseif($rss_icons=="email")
524
+ {
525
+ $icon = $icons_baseUrl.$active_theme."_email.png";
526
+ }
527
  }
528
  else
529
  {
533
  break;
534
 
535
  case "facebook" :
536
+
537
+ $socialObj = new sfsi_SocialHelper();
538
+ $width = 62;
539
+ $totwith = $width+28+$icons_space;
540
+ $twt_margin = $totwith/2;
541
+ $toolClass = "fb_tool_bdr";
542
  $arrow_class = "bot_fb_arow";
543
 
544
  /* check for the over section */
552
  }
553
 
554
  $visit_icon = $visit_iconsUrl."facebook.png";
555
+
556
+ $url = isset($sfsi_section2_options['sfsi_facebookPage_url']) && !empty($sfsi_section2_options['sfsi_facebookPage_url']) ? $sfsi_section2_options['sfsi_facebookPage_url'] : false;
557
+
558
+ $url = false != $url ? $sfsi_section2_options['sfsi_facebookPage_url']:'javascript:void(0);';
559
+
560
+ $like_option = isset($sfsi_section2_options['sfsi_facebookLike_option']) && !empty($sfsi_section2_options['sfsi_facebookLike_option']) ? $sfsi_section2_options['sfsi_facebookLike_option'] : false;
561
+
562
+ $page_option = isset($sfsi_section2_options['sfsi_facebookPage_option']) && !empty($sfsi_section2_options['sfsi_facebookPage_option']) ? $sfsi_section2_options['sfsi_facebookPage_option'] : false;
563
+
564
+ $share_option = isset($sfsi_section2_options['sfsi_facebookShare_option']) && !empty($sfsi_section2_options['sfsi_facebookShare_option']) ? $sfsi_section2_options['sfsi_facebookShare_option'] : false;
565
+
566
+ if((false != $like_option && $like_option=="yes") || (false != $share_option && $share_option=="yes"))
567
  {
568
  $url=($sfsi_section2_options['sfsi_facebookPage_url']) ? $sfsi_section2_options['sfsi_facebookPage_url']:'javascript:void(0);';
569
+ $hoverSHow = 1;
570
+ $hoverdiv = '';
571
+
572
+ if(false != $page_option && $page_option=="yes")
573
  {
574
  $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
575
  }
576
+ if(false!= $like_option && $like_option=="yes")
577
  {
578
  $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_FBlike($current_url)."</div>";
579
  }
580
+ if(false!= $share_option && $share_option=="yes")
581
  {
582
  $hoverdiv.="<div class='icon3'>".$socialObj->sfsiFB_Share($current_url)."</div>";
583
  }
638
  break;
639
 
640
  case "google" :
641
+ $toolClass = "gpls_tool_bdr";
642
  $arrow_class = "bot_gpls_arow";
643
+ $socialObj = new sfsi_SocialHelper();
644
+ $width = 76;
645
+ $totwith = $width+28+$icons_space;
646
+ $twt_margin = $totwith/2;
647
 
648
  if(!empty($sfsi_section5_options['sfsi_google_MouseOverText']))
649
  {
655
  }
656
 
657
  $visit_icon = $visit_iconsUrl."google.png";
658
+
659
+ $url = isset($sfsi_section2_options['sfsi_google_pageURL']) && !empty($sfsi_section2_options['sfsi_google_pageURL']) ?$sfsi_section2_options['sfsi_google_pageURL'] : 'javascript:void(0);';
660
+
661
+ $like_option = isset($sfsi_section2_options['sfsi_googleLike_option']) && !empty($sfsi_section2_options['sfsi_googleLike_option']) ? $sfsi_section2_options['sfsi_googleLike_option'] : false;
662
+
663
+ $share_option = isset($sfsi_section2_options['sfsi_googleShare_option']) && !empty($sfsi_section2_options['sfsi_googleShare_option']) ? $sfsi_section2_options['sfsi_googleShare_option'] : false;
664
 
665
  /* check for icons to display */
666
+ if( (false != $like_option && $like_option=="yes") || (false != $share_option && $share_option=="yes"))
 
 
 
667
  {
668
  $hoverSHow=1;
669
  $hoverdiv='';
671
  {
672
  $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
673
  }
674
+ if(false != $like_option && $like_option=="yes")
675
  {
676
  $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_Googlelike($current_url)."</div>";
677
  }
678
+ if(false != $share_option && $share_option=="yes")
679
  {
680
  $hoverdiv.="<div class='icon3'>".$socialObj->sfsi_GoogleShare($current_url)."</div>";
681
  }
734
  break;
735
 
736
  case "twitter" :
737
+ $toolClass = "twt_tool_bdr";
738
  $arrow_class = "bot_twt_arow";
739
+ $socialObj = new sfsi_SocialHelper();
740
+
741
+ $url = isset($sfsi_section2_options['sfsi_twitter_pageURL']) && !empty($sfsi_section2_options['sfsi_twitter_pageURL']) ? $sfsi_section2_options['sfsi_twitter_pageURL'] : 'javascript:void(0);';
742
+
743
+ $twitter_user = isset($sfsi_section2_options['sfsi_twitter_followUserName']) && !empty($sfsi_section2_options['sfsi_twitter_followUserName']) ? $sfsi_section2_options['sfsi_twitter_followUserName'] : false;
744
+
745
+ $twitter_text = isset($sfsi_section2_options['sfsi_twitter_aboutPageText']) && !empty($sfsi_section2_options['sfsi_twitter_aboutPageText']) ? $sfsi_section2_options['sfsi_twitter_aboutPageText'] : false;
746
+
747
+ $visit_icon = $visit_iconsUrl."twitter.png";
748
+
749
+ $width = 59;
750
+ $totwith = $width+28+$icons_space;
751
  $twt_margin = $totwith/2;
752
  /* check for icons to display */
753
  $hoverdiv='';
754
+
755
+ $follow_me = isset($sfsi_section2_options['sfsi_twitter_followme']) && !empty($sfsi_section2_options['sfsi_twitter_followme']) ? $sfsi_section2_options['sfsi_twitter_followme'] : false;
756
+
757
+ $about_page = isset($sfsi_section2_options['sfsi_twitter_aboutPage']) && !empty($sfsi_section2_options['sfsi_twitter_aboutPage']) ? $sfsi_section2_options['sfsi_twitter_aboutPage'] : false;
758
 
759
+ if($follow_me=="yes" ||$about_page=="yes")
 
 
 
760
  {
761
  $hoverSHow=1;
762
  //Visit twitter page {Monad}
763
+ if(isset($sfsi_section2_options['sfsi_twitter_page']) && !empty($sfsi_section2_options['sfsi_twitter_page']) && $sfsi_section2_options['sfsi_twitter_page']=="yes")
764
  {
765
  $hoverdiv.="<div class='cstmicon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img alt='Visit Us' title='Visit Us' src='".$visit_icon."' /></a></div>";
766
  }
767
+ if($follow_me=="yes" && !empty($twitter_user))
768
  {
769
  $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_twitterFollow($twitter_user)."</div>";
770
  }
771
+ if($about_page=="yes")
772
  {
773
  $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_twitterShare($current_url,$twitter_text)."</div>";
774
  }
831
  }
832
  break;
833
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
834
  case "youtube" :
835
  $socialObj = new sfsi_SocialHelper();
836
  $toolClass = "utube_tool_bdr";
841
  $twt_margin = $totwith/2;
842
  $youtube_user = (isset($sfsi_section4_options['sfsi_youtube_user']) && !empty($sfsi_section4_options['sfsi_youtube_user'])) ? $sfsi_section4_options['sfsi_youtube_user'] : 'SpecificFeeds';
843
  $visit_icon = $visit_iconsUrl."youtube.png";
844
+
845
+ $url = isset($sfsi_section2_options['sfsi_youtube_pageUrl']) && !empty($sfsi_section2_options['sfsi_youtube_pageUrl']) ? $sfsi_section2_options['sfsi_youtube_pageUrl'] : 'javascript:void(0);';
846
 
847
  //Giving alternative text to image
848
  if(!empty($sfsi_section5_options['sfsi_youtube_MouseOverText']))
856
 
857
  /* check for icons to display */
858
  $hoverdiv="";
859
+
860
+ $follow = isset($sfsi_section2_options['sfsi_youtube_pageUrl']) && !empty($sfsi_section2_options['sfsi_youtube_pageUrl']) ? $sfsi_section2_options['sfsi_youtube_pageUrl'] : false;
861
+
862
+ $ypage = isset($sfsi_section2_options['sfsi_youtube_page']) && !empty($sfsi_section2_options['sfsi_youtube_page']) ? $sfsi_section2_options['sfsi_youtube_page'] : false;
863
+
864
+
865
+ if(false != $follow && $follow=="yes")
866
  {
867
+ $hoverSHow = 1;
868
+
869
+ if($ypage =="yes")
870
  {
871
  $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
872
  }
873
+ if($follow =="yes")
874
  {
875
  $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_YouTubeSub($youtube_user)."</div>";
876
  }
918
  break;
919
 
920
  case "pinterest" :
921
+
922
+ $width = 73;
923
+ $totwith = $width+28+$icons_space;
924
+ $twt_margin = $totwith/2;
925
+ $socialObj = new sfsi_SocialHelper();
926
+ $toolClass = "printst_tool_bdr";
927
  $arrow_class = "bot_pintst_arow";
928
 
929
  $pinterest_user = (isset($sfsi_section4_options['sfsi_pinterest_user']))
935
  $url = (isset($sfsi_section2_options['sfsi_pinterest_pageUrl'])) ? $sfsi_section2_options['sfsi_pinterest_pageUrl'] : 'javascript:void(0);';
936
 
937
  //Giving alternative text to image
938
+ if(isset($sfsi_section5_options['sfsi_pinterest_MouseOverText']) && !empty($sfsi_section5_options['sfsi_pinterest_MouseOverText']))
939
  {
940
  $alt_text = $sfsi_section5_options['sfsi_pinterest_MouseOverText'];
941
  }
946
 
947
  /* check for icons to display */
948
  $hoverdiv="";
949
+
950
+ $pingblog = isset($sfsi_section2_options['sfsi_pinterest_pingBlog']) && !empty($sfsi_section2_options['sfsi_pinterest_pingBlog']) ? $sfsi_section2_options['sfsi_pinterest_pingBlog'] : false;
951
+
952
+ $page = isset($sfsi_section2_options['sfsi_pinterest_page']) && !empty($sfsi_section2_options['sfsi_pinterest_page']) ? $sfsi_section2_options['sfsi_pinterest_page'] : false;
953
+
954
+ $cDisplay = isset($sfsi_section2_options['sfsi_pinterest_countsDisplay']) && !empty($sfsi_section2_options['sfsi_pinterest_countsDisplay']) ? $sfsi_section2_options['sfsi_pinterest_countsDisplay'] : false;
955
+
956
+ $displayC = isset($sfsi_section2_options['sfsi_display_counts']) && !empty($sfsi_section2_options['sfsi_display_counts']) ? $sfsi_section2_options['sfsi_display_counts'] : false;
957
+
958
+ $cFrom = isset($sfsi_section2_options['sfsi_pinterest_countsFrom']) && !empty($sfsi_section2_options['sfsi_pinterest_countsFrom']) ? $sfsi_section2_options['sfsi_pinterest_countsFrom'] : false;
959
+
960
+ if($pingblog=="yes" )
961
  {
962
+ $hoverSHow = 1;
963
+
964
+ if($page =="yes")
965
  {
966
  $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
967
  }
968
+ if($pingblog=="yes")
969
  {
970
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_PinIt($current_url)."</div>";
 
 
 
971
  }
972
  }
973
 
974
  /* fecth no of counts if active in admin section */
975
+ if($cDisplay == "yes" && $displayC=="yes")
 
 
 
976
  {
977
+ if($cFrom=="manual")
978
  {
979
  $counts = $socialObj->format_num($sfsi_section4_options['sfsi_pinterest_manualCounts']);
980
  }
981
+ else if($cFrom=="pins")
982
  {
983
  $pins = $socialObj->sfsi_get_pinterest($current_url);
984
  $counts = $pins;
1013
  $toolClass = "instagram_tool_bdr";
1014
  $arrow_class = "bot_pintst_arow";
1015
  $socialObj = new sfsi_SocialHelper();
1016
+
1017
  $url = (isset($sfsi_section2_options['sfsi_instagram_pageUrl'])) ? $sfsi_section2_options['sfsi_instagram_pageUrl'] : 'javascript:void(0);';
1018
+
1019
+ $instagram_user_name = isset($sfsi_section4_options['sfsi_instagram_User']) && !empty($sfsi_section4_options['sfsi_instagram_User']) ? $sfsi_section4_options['sfsi_instagram_User'] : false;
1020
 
1021
  //Giving alternative text to image
1022
+ if(isset($sfsi_section5_options['sfsi_instagram_MouseOverText']) && !empty($sfsi_section5_options['sfsi_instagram_MouseOverText']))
1023
  {
1024
  $alt_text = $sfsi_section5_options['sfsi_instagram_MouseOverText'];
1025
  }
1029
  }
1030
 
1031
  $hoverdiv="";
1032
+
1033
+ $cDisplay = isset($sfsi_section4_options['sfsi_instagram_countsDisplay']) && !empty($sfsi_section4_options['sfsi_instagram_countsDisplay']) ? $sfsi_section4_options['sfsi_instagram_countsDisplay']: false;
1034
+
1035
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1036
+
1037
+ $cFrom = isset($sfsi_section4_options['sfsi_instagram_countsFrom']) && !empty($sfsi_section4_options['sfsi_instagram_countsFrom']) ? $sfsi_section4_options['sfsi_instagram_countsFrom']: false;
1038
+
1039
  /* fecth no of counts if active in admin section */
1040
+ if($cDisplay=="yes" && $Displayc=="yes")
 
 
 
1041
  {
1042
+ if($cFrom=="manual")
1043
  {
1044
  $counts = $socialObj->format_num($sfsi_section4_options['sfsi_instagram_manualCounts']);
1045
  }
1046
+ else if($cFrom=="followers")
1047
  {
1048
  $counts = $socialObj->sfsi_get_instagramFollowers($instagram_user_name);
1049
  if(empty($counts))
1078
  $socialObj = new sfsi_SocialHelper();
1079
  $toolClass = "linkedin_tool_bdr";
1080
  $arrow_class = "bot_linkedin_arow";
1081
+
1082
+ $linkedIn_compayId = isset($sfsi_section2_options['sfsi_linkedin_followCompany']) && !empty($sfsi_section2_options['sfsi_linkedin_followCompany']) ? $sfsi_section2_options['sfsi_linkedin_followCompany'] : false;
1083
+
1084
+ $page = isset($sfsi_section2_options['sfsi_linkedin_page']) && !empty($sfsi_section2_options['sfsi_linkedin_page']) ? $sfsi_section2_options['sfsi_linkedin_page'] : false;
1085
+
1086
+ $follow = isset($sfsi_section2_options['sfsi_linkedin_follow']) && !empty($sfsi_section2_options['sfsi_linkedin_follow']) ? $sfsi_section2_options['sfsi_linkedin_follow'] : false;
1087
+
1088
+ $share = isset($sfsi_section2_options['sfsi_linkedin_SharePage']) && !empty($sfsi_section2_options['sfsi_linkedin_SharePage']) ? $sfsi_section2_options['sfsi_linkedin_SharePage'] : false;
1089
+
1090
+ $reBusiness = isset($sfsi_section2_options['sfsi_linkedin_recommendBusines']) && !empty($sfsi_section2_options['sfsi_linkedin_recommendBusines']) ? $sfsi_section2_options['sfsi_linkedin_recommendBusines'] : false;
1091
+
1092
+ $linkedIn_compay = $linkedIn_compayId;
1093
+ $linkedIn_ProductId = isset($sfsi_section2_options['sfsi_linkedin_recommendProductId']) && !empty($sfsi_section2_options['sfsi_linkedin_recommendProductId']) ? $sfsi_section2_options['sfsi_linkedin_recommendProductId'] : false;
1094
+
1095
+ $visit_icon = $visit_iconsUrl."linkedIn.png";
1096
 
1097
  /*check for icons to display */
1098
+ $url = isset($sfsi_section2_options['sfsi_linkedin_pageURL']) && !empty($sfsi_section2_options['sfsi_linkedin_pageURL']) ? $sfsi_section2_options['sfsi_linkedin_pageURL'] : 'javascript:void(0);';
1099
 
1100
+ if($follow =="yes" || $share =="yes" || $reBusiness =="yes")
 
 
 
 
1101
  {
1102
+ $hoverSHow = 1;
1103
+ $hoverdiv = '';
1104
+
1105
+ if($page=="yes")
1106
  {
1107
  $hoverdiv.="<div class='icon4'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
1108
  }
1109
+ if($follow=="yes")
1110
  {
1111
  $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_LinkedInFollow($linkedIn_compayId)."</div>";
1112
  }
1113
+ if($share=="yes")
1114
  {
1115
  $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_LinkedInShare()."</div>";
1116
  }
1117
+ if($reBusiness=="yes")
1118
  {
1119
  $hoverdiv.="<div class='icon3'>".$socialObj->sfsi_LinkedInRecommend($linkedIn_compay,$linkedIn_ProductId)."</div>";
1120
  $width=99;
1121
  }
1122
  }
1123
+
1124
+ $cFrom = isset($sfsi_section2_options['sfsi_linkedIn_countsFrom']) && !empty($sfsi_section2_options['sfsi_linkedIn_countsFrom']) ? $sfsi_section2_options['sfsi_linkedIn_countsFrom'] : false;
1125
+
1126
+ $disp = isset($sfsi_section2_options['sfsi_linkedIn_countsDisplay']) && !empty($sfsi_section2_options['sfsi_linkedIn_countsDisplay']) ? $sfsi_section2_options['sfsi_linkedIn_countsDisplay'] : false;
1127
+
1128
+ $dcount = isset($sfsi_section2_options['sfsi_display_counts']) && !empty($sfsi_section2_options['sfsi_display_counts']) ? $sfsi_section2_options['sfsi_display_counts'] : false;
1129
+
1130
  /* fecth no of counts if active in admin section */
1131
+ if($disp=="yes" &&$dcount=="yes")
 
 
 
1132
  {
1133
+ if($cFrom=="manual")
1134
  {
1135
  $counts = $socialObj->format_num($sfsi_section4_options['sfsi_linkedIn_manualCounts']);
1136
  }
1137
+ else if($cFrom=="follower")
1138
  {
1139
  $linkedIn_compay = $sfsi_section4_options['ln_company'];
1140
+ $ln_settings = array(
1141
+ 'ln_api_key'=>$sfsi_section4_options['ln_api_key'],
1142
+ 'ln_secret_key'=>$sfsi_section4_options['ln_secret_key'],
1143
+ 'ln_oAuth_user_token'=>$sfsi_section4_options['ln_oAuth_user_token']
1144
+ );
1145
 
1146
  $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
1147
  (int) $followers;
1156
  $twt_margin = $totwith/2;
1157
 
1158
  //Giving alternative text to image
1159
+ if(isset($sfsi_section5_options['sfsi_linkedIn_MouseOverText']) && !empty($sfsi_section5_options['sfsi_linkedIn_MouseOverText']))
1160
  {
1161
  $alt_text = $sfsi_section5_options['sfsi_linkedIn_MouseOverText'];
1162
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: socialdude
3
  Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
4
  Requires at least: 2.8
5
  Tested up to: 4.9.4
6
- Stable tag: 2.0.1
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -275,6 +275,10 @@ You cannot use the same plugin twice, however you can install both the USM as we
275
 
276
  == Changelog ==
277
 
 
 
 
 
278
  = 2.0.1 =
279
  * Issue of window.onscroll function overriding and breaking other plugins/themes fixed
280
 
@@ -702,5 +706,5 @@ You cannot use the same plugin twice, however you can install both the USM as we
702
 
703
  == Upgrade Notice ==
704
 
705
- = 2.0.1 =
706
  Please upgrade
3
  Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
4
  Requires at least: 2.8
5
  Tested up to: 4.9.4
6
+ Stable tag: 2.0.2
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
275
 
276
  == Changelog ==
277
 
278
+ = 2.0.2 =
279
+ * Addthis removed due to GDPR
280
+ * New option to switch debugging mode on/off
281
+
282
  = 2.0.1 =
283
  * Issue of window.onscroll function overriding and breaking other plugins/themes fixed
284
 
706
 
707
  == Upgrade Notice ==
708
 
709
+ = 2.0.2 =
710
  Please upgrade
ultimate_social_media_icons.php CHANGED
@@ -5,11 +5,11 @@ Plugin URI: http://ultimatelysocial.com
5
  Description: Easy to use and 100% FREE social media plugin which adds social media icons to your website with tons of customization features!.
6
  Author: UltimatelySocial
7
  Author URI: http://ultimatelysocial.com
8
- Version: 2.0.1
9
  License: GPLv2 or later
10
  */
11
 
12
- error_reporting(0);
13
 
14
  global $wpdb;
15
 
@@ -55,12 +55,11 @@ register_activation_hook(__FILE__, 'sfsi_activate_plugin' );
55
  register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
56
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
57
 
58
- if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.01)
59
  {
60
  add_action("init", "sfsi_update_plugin");
61
  }
62
 
63
-
64
  /* redirect setting page hook */
65
  add_action('admin_init', 'sfsi_plugin_redirect');
66
  function sfsi_plugin_redirect()
@@ -71,6 +70,25 @@ function sfsi_plugin_redirect()
71
  wp_redirect(admin_url('admin.php?page=sfsi-options'));
72
  }
73
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  //shortcode for the ultimate social icons {Monad}
75
  add_shortcode("DISPLAY_ULTIMATE_SOCIAL_ICONS", "DISPLAY_ULTIMATE_SOCIAL_ICONS");
76
  function DISPLAY_ULTIMATE_SOCIAL_ICONS($args = null, $content = null)
@@ -106,24 +124,30 @@ function sfsi_checkmetas()
106
  {
107
  require_once ABSPATH . 'wp-admin/includes/plugin.php';
108
  }
 
 
 
109
  $all_plugins = get_plugins();
110
- foreach($all_plugins as $key => $plugin)
111
- {
 
112
  if(is_plugin_active($key))
113
  {
114
- if(preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Name']) || preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Description']))
115
- {
116
- update_option("adding_tags", "no");
 
117
  break;
118
- }
119
- else
120
- {
121
- update_option("adding_tags", "yes");
122
- }
123
  }
124
- }
 
 
 
 
125
  }
126
- if ( ! is_admin() )
127
  {
128
  sfsi_checkmetas();
129
  }
@@ -644,6 +668,12 @@ function sfsi_admin_notice()
644
  <?php
645
  }
646
  }
 
 
 
 
 
 
647
  }
648
  add_action('admin_init', 'sfsi_dismiss_admin_notice');
649
  function sfsi_dismiss_admin_notice()
@@ -965,13 +995,48 @@ add_action( 'wp_ajax_sfsi_dismiss_lang_notice', 'sfsi_dismiss_lang_notice' );
965
  // ********************************* Link to support forum for different languages CLOSES *******************************//
966
 
967
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
968
  // ********************************* Link to support forum left of every Save button STARTS *******************************//
969
 
970
  function sfsi_ask_for_help($viewNumber){ ?>
971
 
972
  <div class="sfsi_askforhelp askhelpInview<?php echo $viewNumber; ?>">
973
 
974
- <img src="<?php echo SFSI_PLUGURL."images/questionmark.png"?>"/>
975
 
976
  <span>Questions? <a target="_blank" href="https://goo.gl/ctiyJM"><b>Ask us</b></a> — we will respond asap!</span>
977
 
@@ -979,4 +1044,69 @@ function sfsi_ask_for_help($viewNumber){ ?>
979
 
980
  <?php }
981
 
982
- // ********************************* Link to support forum left of every Save button CLOSES *******************************//
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  Description: Easy to use and 100% FREE social media plugin which adds social media icons to your website with tons of customization features!.
6
  Author: UltimatelySocial
7
  Author URI: http://ultimatelysocial.com
8
+ Version: 2.0.2
9
  License: GPLv2 or later
10
  */
11
 
12
+ sfsi_error_reporting();
13
 
14
  global $wpdb;
15
 
55
  register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
56
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
57
 
58
+ if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.02)
59
  {
60
  add_action("init", "sfsi_update_plugin");
61
  }
62
 
 
63
  /* redirect setting page hook */
64
  add_action('admin_init', 'sfsi_plugin_redirect');
65
  function sfsi_plugin_redirect()
70
  wp_redirect(admin_url('admin.php?page=sfsi-options'));
71
  }
72
  }
73
+
74
+ //************************************** Setting error reporting STARTS ****************************************//
75
+ function sfsi_error_reporting(){
76
+
77
+ $option5 = unserialize(get_option('sfsi_section5_options',false));
78
+
79
+ if(isset($option5['sfsi_icons_suppress_errors'])
80
+
81
+ && !empty($option5['sfsi_icons_suppress_errors'])
82
+
83
+ && "yes" == $option5['sfsi_icons_suppress_errors']){
84
+
85
+ error_reporting(0);
86
+ }
87
+ }
88
+
89
+
90
+ //************************************** Setting error reporting CLOSES ****************************************//
91
+
92
  //shortcode for the ultimate social icons {Monad}
93
  add_shortcode("DISPLAY_ULTIMATE_SOCIAL_ICONS", "DISPLAY_ULTIMATE_SOCIAL_ICONS");
94
  function DISPLAY_ULTIMATE_SOCIAL_ICONS($args = null, $content = null)
124
  {
125
  require_once ABSPATH . 'wp-admin/includes/plugin.php';
126
  }
127
+
128
+ $adding_tags = "yes";
129
+
130
  $all_plugins = get_plugins();
131
+
132
+ foreach($all_plugins as $key => $plugin):
133
+
134
  if(is_plugin_active($key))
135
  {
136
+ if(preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Name']) || preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Description'])):
137
+
138
+ $adding_tags= "no";
139
+
140
  break;
141
+
142
+ endif;
 
 
 
143
  }
144
+
145
+ endforeach;
146
+
147
+ update_option("adding_tags", $adding_tags);
148
+
149
  }
150
+ if ( is_admin() )
151
  {
152
  sfsi_checkmetas();
153
  }
668
  <?php
669
  }
670
  }
671
+
672
+ sfsi_language_notice();
673
+
674
+ sfsi_addThis_removal_notice();
675
+
676
+ sfsi_error_reporting_notice();
677
  }
678
  add_action('admin_init', 'sfsi_dismiss_admin_notice');
679
  function sfsi_dismiss_admin_notice()
995
  // ********************************* Link to support forum for different languages CLOSES *******************************//
996
 
997
 
998
+
999
+ // ********************************* Notice for removal of AddThis option STARTS *******************************//
1000
+ function sfsi_addThis_removal_notice(){
1001
+
1002
+ if (isset($_GET['page']) && "sfsi-options" == $_GET['page']) :
1003
+
1004
+ $sfsi_addThis_removalText = "We removed Addthis from the plugin due to issues with GDPR, the new EU data protection regulation.";
1005
+
1006
+ $isDismissed = get_option('sfsi_addThis_icon_removal_notice_dismissed',false);
1007
+
1008
+ if( false == $isDismissed) { ?>
1009
+
1010
+ <div id="sfsi_plus_addThis_removal_notice" class="notice notice-info">
1011
+
1012
+ <p><?php echo $sfsi_addThis_removalText; ?></p>
1013
+
1014
+ <button type="button" class="sfsi-AddThis-notice-dismiss notice-dismiss"></button>
1015
+
1016
+ </div>
1017
+
1018
+ <?php } ?>
1019
+
1020
+ <?php endif;
1021
+ }
1022
+
1023
+ function sfsi_dismiss_addthhis_removal_notice(){
1024
+ echo (string) update_option('sfsi_addThis_icon_removal_notice_dismissed',true);
1025
+ die;
1026
+ }
1027
+
1028
+ add_action( 'wp_ajax_sfsi_dismiss_addThis_icon_notice', 'sfsi_dismiss_addthhis_removal_notice' );
1029
+
1030
+ // ********************************* Notice for removal of AddThis option CLOSES *******************************//
1031
+
1032
+
1033
  // ********************************* Link to support forum left of every Save button STARTS *******************************//
1034
 
1035
  function sfsi_ask_for_help($viewNumber){ ?>
1036
 
1037
  <div class="sfsi_askforhelp askhelpInview<?php echo $viewNumber; ?>">
1038
 
1039
+ <img src="<?php echo SFSI_PLUGURL."images/questionmark.png";?>"/>
1040
 
1041
  <span>Questions? <a target="_blank" href="https://goo.gl/ctiyJM"><b>Ask us</b></a> — we will respond asap!</span>
1042
 
1044
 
1045
  <?php }
1046
 
1047
+ // ********************************* Link to support forum left of every Save button CLOSES *******************************//
1048
+
1049
+
1050
+ // ********************************* Notice for error reporting STARTS *******************************//
1051
+
1052
+ function sfsi_error_reporting_notice(){
1053
+
1054
+ if (is_admin()) :
1055
+
1056
+ $sfsi_error_reporting_notice_txt = 'We noticed that you have set error reporting to "yes" in wp-config. Our plugin (Ultimate Social Media) switches this to "off" so that no errors are displayed (which may also impact error messages from your theme or other plugins). If you don\'t want that, please select the respective option under question 6 (at the bottom).';
1057
+
1058
+ $isDismissed = get_option('sfsi_error_reporting_notice_dismissed',false);
1059
+
1060
+ $option5 = unserialize(get_option('sfsi_section5_options',false));
1061
+
1062
+ if(isset($isDismissed) && false == $isDismissed && defined('WP_DEBUG') && false != WP_DEBUG && "yes"== $option5['sfsi_icons_suppress_errors']) { ?>
1063
+
1064
+ <div style="padding: 10px;margin-left: 0px;position: relative;" id="sfsi_error_reporting_notice" class="error notice">
1065
+
1066
+ <p><?php echo $sfsi_error_reporting_notice_txt; ?></p>
1067
+
1068
+ <button type="button" class="sfsi_error_reporting_notice-dismiss notice-dismiss"></button>
1069
+
1070
+ </div>
1071
+
1072
+ <script type="text/javascript">
1073
+
1074
+ if(typeof jQuery != 'undefined'){
1075
+
1076
+ (function sfsi_dismiss_notice(btnClass,ajaxAction){
1077
+
1078
+ var btnClass = "."+btnClass;
1079
+
1080
+ var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
1081
+
1082
+ jQuery(document).on("click", btnClass, function(){
1083
+
1084
+ jQuery.ajax({
1085
+ url:ajaxurl,
1086
+ type:"post",
1087
+ data:{action: ajaxAction},
1088
+ success:function(e) {
1089
+ if(false != e){
1090
+ jQuery(btnClass).parent().remove();
1091
+ }
1092
+ }
1093
+ });
1094
+
1095
+ });
1096
+
1097
+ }("sfsi_error_reporting_notice-dismiss","sfsi_dismiss_error_reporting_notice"));
1098
+ }
1099
+ </script>
1100
+
1101
+ <?php } ?>
1102
+
1103
+ <?php endif;
1104
+ }
1105
+
1106
+ function sfsi_dismiss_error_reporting_notice(){
1107
+ echo (string) update_option('sfsi_error_reporting_notice_dismissed',true);
1108
+ die;
1109
+ }
1110
+ add_action( 'wp_ajax_sfsi_dismiss_error_reporting_notice', 'sfsi_dismiss_error_reporting_notice' );
1111
+
1112
+ // ********************************* Notice for removal of AddThis option STARTS *******************************//
views/sfsi_option_view1.php CHANGED
@@ -20,9 +20,6 @@
20
  $option1['sfsi_google_display'] = (isset($option1['sfsi_google_display']))
21
  ? sanitize_text_field($option1['sfsi_google_display'])
22
  : 'yes';
23
- $option1['sfsi_share_display'] = (isset($option1['sfsi_share_display']))
24
- ? sanitize_text_field($option1['sfsi_share_display'])
25
- : 'no';
26
  $option1['sfsi_youtube_display'] = (isset($option1['sfsi_youtube_display']))
27
  ? sanitize_text_field($option1['sfsi_youtube_display'])
28
  : 'no';
@@ -157,19 +154,6 @@
157
  </li>
158
  <!-- END INSTAGRAM ICON -->
159
 
160
- <!-- SHARE ICON -->
161
- <li>
162
- <div class="radio_section tb_4_ck"><input name="sfsi_share_display" <?php echo ($option1['sfsi_share_display']=='yes') ? 'checked="true"' : '' ;?> id=="sfsi_share_display" type="checkbox" value="yes" class="styled" /></div>
163
- <span class="sfsicls_share">Share</span>
164
- <div class="right_info">
165
- <p><span>It depends:</span>
166
- Third-party service AddThis allows your visitors to share via many other social networks, however it may also slow down your site a bit.
167
- <label class="expanded-area" >Everybody uses email – that’s why it’s <a href="http://www.entrepreneur.com/article/230949" target="_new">much more effective than social media </a> to make people follow you. Not offering an email subscription option means losing out on future traffic to your site.</label>
168
- See an <a href="javascript:;" class="pop-up" data-id="athis-s1" >Example</a> and checkout their <a href="https://wordpress.org/support/view/plugin-reviews/addthis" target="_blank">reviews</a>
169
- </p>
170
- </div>
171
- </li>
172
- <!-- END SHARE ICON -->
173
 
174
  <!-- Custom icon section start here -->
175
  <?php
20
  $option1['sfsi_google_display'] = (isset($option1['sfsi_google_display']))
21
  ? sanitize_text_field($option1['sfsi_google_display'])
22
  : 'yes';
 
 
 
23
  $option1['sfsi_youtube_display'] = (isset($option1['sfsi_youtube_display']))
24
  ? sanitize_text_field($option1['sfsi_youtube_display'])
25
  : 'no';
154
  </li>
155
  <!-- END INSTAGRAM ICON -->
156
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
 
158
  <!-- Custom icon section start here -->
159
  <?php
views/sfsi_option_view2.php CHANGED
@@ -372,15 +372,6 @@ if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeus
372
  </div>
373
  <!-- END LINKEDIN ICON -->
374
 
375
- <!-- share button -->
376
- <div class="row share_section">
377
- <h2 class="sfsicls_share">Share</h2>
378
- <div class="inr_cont">
379
- <p>Nothing needs to be done here – your visitors to share your site via «all the other» social media sites. <a class="rit_link pop-up" href="javascript:;" data-id="share-s2">(see an example).</a></p>
380
- </div>
381
- </div>
382
- <!-- share end -->
383
-
384
  <!-- Custom icon section start here -->
385
  <div class="custom-links custom_section">
386
  <?php
372
  </div>
373
  <!-- END LINKEDIN ICON -->
374
 
 
 
 
 
 
 
 
 
 
375
  <!-- Custom icon section start here -->
376
  <div class="custom-links custom_section">
377
  <?php
views/sfsi_option_view3.php CHANGED
@@ -35,40 +35,40 @@ $option3['sfsi_shuffle_intervalTime'] = (isset($option3['sfsi_shuffle_intervalT
35
 
36
  <!--icon themes section start -->
37
  <ul class="tab_3_icns">
38
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='default') ? 'checked="true"' : '' ;?> type="radio" value="default" class="styled" /><label>Default</label><div class="icns_tab_3"><span class="row_1_1 rss_section"></span><span class="row_1_2 email_section"></span><span class="row_1_3 facebook_section"></span><span class="row_1_4 google_section"></span><span class="row_1_5 twitter_section"></span><span class="row_1_6 share_section"></span><span class="row_1_7 youtube_section"></span><span class="row_1_8 pinterest_section"></span><span class="row_1_9 linkedin_section"></span> <span class="row_1_10 instagram_section"></span><!--<span class="row_1_11 sf_section"></span>--></div></li>
39
 
40
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='flat') ? 'checked="true"' : '' ;?> type="radio" value="flat" class="styled" /><label>Flat</label><div class="icns_tab_3"><span class="row_2_1 rss_section"></span><span class="row_2_2 email_section"></span><span class="row_2_3 facebook_section"></span><span class="row_2_4 google_section"></span><span class="row_2_5 twitter_section"></span><span class="row_2_6 share_section"></span><span class="row_2_7 youtube_section"></span><span class="row_2_8 pinterest_section"></span><span class="row_2_9 linkedin_section"></span><span class="row_2_10 instagram_section"></span><!--<span class="row_2_11 sf_section"></span>--></div></li>
41
 
42
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='thin') ? 'checked="true"' : '' ;?> type="radio" value="thin" class="styled" /><label>Thin</label><div class="icns_tab_3"><span class="row_3_1 rss_section"></span><span class="row_3_2 email_section"></span><span class="row_3_3 facebook_section"></span><span class="row_3_4 google_section"></span><span class="row_3_5 twitter_section"></span><span class="row_3_6 share_section"></span><span class="row_3_7 youtube_section"></span><span class="row_3_8 pinterest_section"></span><span class="row_3_9 linkedin_section"></span><span class="row_3_10 instagram_section"></span><!--<span class="row_3_11 sf_section"></span>--></div></li>
43
 
44
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='cute') ? 'checked="true"' : '' ;?> type="radio" value="cute" class="styled" /><label>Cute</label><div class="icns_tab_3"><span class="row_4_1 rss_section"></span><span class="row_4_2 email_section"></span><span class="row_4_3 facebook_section"></span><span class="row_4_4 google_section"></span><span class="row_4_5 twitter_section"></span><span class="row_4_6 share_section"></span><span class="row_4_7 youtube_section"></span><span class="row_4_8 pinterest_section"></span><span class="row_4_9 linkedin_section"></span><span class="row_4_10 instagram_section"></span><!--<span class="row_4_11 sf_section"></span>--></div></li>
45
 
46
- <!--------------------start next four------------------------>
47
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='cubes') ? 'checked="true"' : '' ;?> type="radio" value="cubes" class="styled" /><label>Cubes</label><div class="icns_tab_3"><span class="row_5_1 rss_section"></span><span class="row_5_2 email_section"></span><span class="row_5_3 facebook_section"></span><span class="row_5_4 google_section"></span><span class="row_5_5 twitter_section"></span><span class="row_5_6 share_section"></span><span class="row_5_7 youtube_section"></span><span class="row_5_8 pinterest_section"></span><span class="row_5_9 linkedin_section"></span><span class="row_5_10 instagram_section"></span><!--<span class="row_5_11 sf_section"></span>--></div></li>
48
 
49
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='chrome_blue') ? 'checked="true"' : '' ;?> type="radio" value="chrome_blue" class="styled" /><label>Chrome Blue</label><div class="icns_tab_3"><span class="row_6_1 rss_section"></span><span class="row_6_2 email_section"></span><span class="row_6_3 facebook_section"></span><span class="row_6_4 google_section"></span><span class="row_6_5 twitter_section"></span><span class="row_6_6 share_section"></span><span class="row_6_7 youtube_section"></span><span class="row_6_8 pinterest_section"></span><span class="row_6_9 linkedin_section"></span><span class="row_6_10 instagram_section"></span><!--<span class="row_6_11 sf_section"></span>--></div></li>
50
 
51
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='chrome_grey') ? 'checked="true"' : '' ;?> type="radio" value="chrome_grey" class="styled" /><label>Chrome Grey</label><div class="icns_tab_3"><span class="row_7_1 rss_section"></span><span class="row_7_2 email_section"></span><span class="row_7_3 facebook_section"></span><span class="row_7_4 google_section"></span><span class="row_7_5 twitter_section"></span><span class="row_7_6 share_section"></span><span class="row_7_7 youtube_section"></span><span class="row_7_8 pinterest_section"></span><span class="row_7_9 linkedin_section"></span><span class="row_7_10 instagram_section"></span><!--<span class="row_7_11 sf_section"></span>--></div></li>
52
 
53
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='splash') ? 'checked="true"' : '' ;?> type="radio" value="splash" class="styled" /><label>Splash</label><div class="icns_tab_3"><span class="row_8_1 rss_section"></span><span class="row_8_2 email_section"></span><span class="row_8_3 facebook_section"></span><span class="row_8_4 google_section"></span><span class="row_8_5 twitter_section"></span><span class="row_8_6 share_section"></span><span class="row_8_7 youtube_section"></span><span class="row_8_8 pinterest_section"></span><span class="row_8_9 linkedin_section"></span><span class="row_8_10 instagram_section"></span><!--<span class="row_8_11 sf_section"></span>--></div></li>
54
 
55
- <!--------------------start second four------------------------>
56
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='orange') ? 'checked="true"' : '' ;?> type="radio" value="orange" class="styled" /><label>Orange</label><div class="icns_tab_3"><span class="row_9_1 rss_section"></span><span class="row_9_2 email_section"></span><span class="row_9_3 facebook_section"></span><span class="row_9_4 google_section"></span><span class="row_9_5 twitter_section"></span><span class="row_9_6 share_section"></span><span class="row_9_7 youtube_section"></span><span class="row_9_8 pinterest_section"></span><span class="row_9_9 linkedin_section"></span><span class="row_9_10 instagram_section"></span><!--<span class="row_9_11 sf_section"></span>--></div></li>
57
 
58
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='crystal') ? 'checked="true"' : '' ;?> type="radio" value="crystal" class="styled" /><label>Crystal</label><div class="icns_tab_3"><span class="row_10_1 rss_section"></span><span class="row_10_2 email_section"></span><span class="row_10_3 facebook_section"></span><span class="row_10_4 google_section"></span><span class="row_10_5 twitter_section"></span><span class="row_10_6 share_section"></span><span class="row_10_7 youtube_section"></span><span class="row_10_8 pinterest_section"></span><span class="row_10_9 linkedin_section"></span><span class="row_10_10 instagram_section"></span><!--<span class="row_10_11 sf_section"></span>--></div></li>
59
 
60
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='glossy') ? 'checked="true"' : '' ;?> type="radio" value="glossy" class="styled" /><label>Glossy</label><div class="icns_tab_3"><span class="row_11_1 rss_section"></span><span class="row_11_2 email_section"></span><span class="row_11_3 facebook_section"></span><span class="row_11_4 google_section"></span><span class="row_11_5 twitter_section"></span><span class="row_11_6 share_section"></span><span class="row_11_7 youtube_section"></span><span class="row_11_8 pinterest_section"></span><span class="row_11_9 linkedin_section"></span><span class="row_11_10 instagram_section"></span><!--<span class="row_11_11 sf_section"></span>--></div></li>
61
 
62
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='black') ? 'checked="true"' : '' ;?> type="radio" value="black" class="styled" /><label>Black</label><div class="icns_tab_3"><span class="row_12_1 rss_section"></span><span class="row_12_2 email_section"></span><span class="row_12_3 facebook_section"></span><span class="row_12_4 google_section"></span><span class="row_12_5 twitter_section"></span><span class="row_12_6 share_section"></span><span class="row_12_7 youtube_section"></span><span class="row_12_8 pinterest_section"></span><span class="row_12_9 linkedin_section"></span><span class="row_12_10 instagram_section"></span><!--<span class="row_12_11 sf_section"></span>--></div></li>
63
 
64
- <!--------------------start last four------------------------>
65
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='silver') ? 'checked="true"' : '' ;?> type="radio" value="silver" class="styled" /><label>Silver</label><div class="icns_tab_3"><span class="row_13_1 rss_section"></span><span class="row_13_2 email_section"></span><span class="row_13_3 facebook_section"></span><span class="row_13_4 google_section"></span><span class="row_13_5 twitter_section"></span><span class="row_13_6 share_section"></span><span class="row_13_7 youtube_section"></span><span class="row_13_8 pinterest_section"></span><span class="row_13_9 linkedin_section"></span><span class="row_13_10 instagram_section"></span><!--<span class="row_13_11 sf_section"></span>--></div></li>
66
 
67
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='shaded_dark') ? 'checked="true"' : '' ;?> type="radio" value="shaded_dark" class="styled" /><label>Shaded Dark</label><div class="icns_tab_3"><span class="row_14_1 rss_section"></span><span class="row_14_2 email_section"></span><span class="row_14_3 facebook_section"></span><span class="row_14_4 google_section"></span><span class="row_14_5 twitter_section"></span><span class="row_14_6 share_section"></span><span class="row_14_7 youtube_section"></span><span class="row_14_8 pinterest_section"></span><span class="row_14_9 linkedin_section"></span><span class="row_14_10 instagram_section"></span><!--<span class="row_14_11 sf_section"></span>--></div></li>
68
 
69
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='shaded_light') ? 'checked="true"' : '' ;?> type="radio" value="shaded_light" class="styled" /><label>Shaded Light</label><div class="icns_tab_3"><span class="row_15_1 rss_section"></span><span class="row_15_2 email_section"></span><span class="row_15_3 facebook_section"></span><span class="row_15_4 google_section"></span><span class="row_15_5 twitter_section"></span><span class="row_15_6 share_section"></span><span class="row_15_7 youtube_section"></span><span class="row_15_8 pinterest_section"></span><span class="row_15_9 linkedin_section"></span><span class="row_15_10 instagram_section"></span><!--<span class="row_15_11 sf_section"></span>--></div></li>
70
 
71
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='transparent') ? 'checked="true"' : '' ;?> type="radio" value="transparent" class="styled" /><label style="line-height:20px !important;margin-top:15px; ">Transparent <br/><span style="font-size: 9px;" >(for dark backgrounds)</span></label> <div class="icns_tab_3 trans_bg" style="padding-left: 6px;"><span class="row_16_1 rss_section"></span><span class="row_16_2 email_section"></span><span class="row_16_3 facebook_section"></span><span class="row_16_4 google_section"></span><span class="row_16_5 twitter_section"></span><span class="row_16_6 share_section"></span><span class="row_16_7 youtube_section"></span><span class="row_16_8 pinterest_section"></span><span class="row_16_9 linkedin_section"></span><span class="row_16_10 instagram_section"></span><!--<span class="row_16_11 sf_section"></span>--></div></li>
72
 
73
  <!--Custom Icon Support {Monad}-->
74
 
@@ -128,15 +128,15 @@ $option3['sfsi_shuffle_intervalTime'] = (isset($option3['sfsi_shuffle_intervalT
128
  echo '<span class="row_17_5 twitter_section" style="background-position:-235px 0;"></span>';
129
  }
130
 
131
- if(get_option("share_skin"))
132
- {
133
- $icon = get_option("share_skin");
134
- echo '<span class="row_17_6 share_section sfsi-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
135
- }
136
- else
137
- {
138
- echo '<span class="row_17_6 share_section" style="background-position:-293px 0;"></span>';
139
- }
140
 
141
  if(get_option("youtube_skin"))
142
  {
35
 
36
  <!--icon themes section start -->
37
  <ul class="tab_3_icns">
38
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='default') ? 'checked="true"' : '' ;?> type="radio" value="default" class="styled" /><label>Default</label><div class="icns_tab_3"><span class="row_1_1 rss_section"></span><span class="row_1_2 email_section"></span><span class="row_1_3 facebook_section"></span><span class="row_1_4 google_section"></span><span class="row_1_5 twitter_section"></span><span class="row_1_7 youtube_section"></span><span class="row_1_8 pinterest_section"></span><span class="row_1_9 linkedin_section"></span> <span class="row_1_10 instagram_section"></span><!--<span class="row_1_11 sf_section"></span>--></div></li>
39
 
40
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='flat') ? 'checked="true"' : '' ;?> type="radio" value="flat" class="styled" /><label>Flat</label><div class="icns_tab_3"><span class="row_2_1 rss_section"></span><span class="row_2_2 email_section"></span><span class="row_2_3 facebook_section"></span><span class="row_2_4 google_section"></span><span class="row_2_5 twitter_section"></span><span class="row_2_7 youtube_section"></span><span class="row_2_8 pinterest_section"></span><span class="row_2_9 linkedin_section"></span><span class="row_2_10 instagram_section"></span><!--<span class="row_2_11 sf_section"></span>--></div></li>
41
 
42
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='thin') ? 'checked="true"' : '' ;?> type="radio" value="thin" class="styled" /><label>Thin</label><div class="icns_tab_3"><span class="row_3_1 rss_section"></span><span class="row_3_2 email_section"></span><span class="row_3_3 facebook_section"></span><span class="row_3_4 google_section"></span><span class="row_3_5 twitter_section"></span><span class="row_3_7 youtube_section"></span><span class="row_3_8 pinterest_section"></span><span class="row_3_9 linkedin_section"></span><span class="row_3_10 instagram_section"></span><!--<span class="row_3_11 sf_section"></span>--></div></li>
43
 
44
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='cute') ? 'checked="true"' : '' ;?> type="radio" value="cute" class="styled" /><label>Cute</label><div class="icns_tab_3"><span class="row_4_1 rss_section"></span><span class="row_4_2 email_section"></span><span class="row_4_3 facebook_section"></span><span class="row_4_4 google_section"></span><span class="row_4_5 twitter_section"></span><span class="row_4_7 youtube_section"></span><span class="row_4_8 pinterest_section"></span><span class="row_4_9 linkedin_section"></span><span class="row_4_10 instagram_section"></span><!--<span class="row_4_11 sf_section"></span>--></div></li>
45
 
46
+ <!--start next four-->
47
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='cubes') ? 'checked="true"' : '' ;?> type="radio" value="cubes" class="styled" /><label>Cubes</label><div class="icns_tab_3"><span class="row_5_1 rss_section"></span><span class="row_5_2 email_section"></span><span class="row_5_3 facebook_section"></span><span class="row_5_4 google_section"></span><span class="row_5_5 twitter_section"></span><span class="row_5_7 youtube_section"></span><span class="row_5_8 pinterest_section"></span><span class="row_5_9 linkedin_section"></span><span class="row_5_10 instagram_section"></span><!--<span class="row_5_11 sf_section"></span>--></div></li>
48
 
49
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='chrome_blue') ? 'checked="true"' : '' ;?> type="radio" value="chrome_blue" class="styled" /><label>Chrome Blue</label><div class="icns_tab_3"><span class="row_6_1 rss_section"></span><span class="row_6_2 email_section"></span><span class="row_6_3 facebook_section"></span><span class="row_6_4 google_section"></span><span class="row_6_5 twitter_section"></span><span class="row_6_7 youtube_section"></span><span class="row_6_8 pinterest_section"></span><span class="row_6_9 linkedin_section"></span><span class="row_6_10 instagram_section"></span><!--<span class="row_6_11 sf_section"></span>--></div></li>
50
 
51
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='chrome_grey') ? 'checked="true"' : '' ;?> type="radio" value="chrome_grey" class="styled" /><label>Chrome Grey</label><div class="icns_tab_3"><span class="row_7_1 rss_section"></span><span class="row_7_2 email_section"></span><span class="row_7_3 facebook_section"></span><span class="row_7_4 google_section"></span><span class="row_7_5 twitter_section"></span><span class="row_7_7 youtube_section"></span><span class="row_7_8 pinterest_section"></span><span class="row_7_9 linkedin_section"></span><span class="row_7_10 instagram_section"></span><!--<span class="row_7_11 sf_section"></span>--></div></li>
52
 
53
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='splash') ? 'checked="true"' : '' ;?> type="radio" value="splash" class="styled" /><label>Splash</label><div class="icns_tab_3"><span class="row_8_1 rss_section"></span><span class="row_8_2 email_section"></span><span class="row_8_3 facebook_section"></span><span class="row_8_4 google_section"></span><span class="row_8_5 twitter_section"></span><span class="row_8_7 youtube_section"></span><span class="row_8_8 pinterest_section"></span><span class="row_8_9 linkedin_section"></span><span class="row_8_10 instagram_section"></span><!--<span class="row_8_11 sf_section"></span>--></div></li>
54
 
55
+ <!--start second four-->
56
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='orange') ? 'checked="true"' : '' ;?> type="radio" value="orange" class="styled" /><label>Orange</label><div class="icns_tab_3"><span class="row_9_1 rss_section"></span><span class="row_9_2 email_section"></span><span class="row_9_3 facebook_section"></span><span class="row_9_4 google_section"></span><span class="row_9_5 twitter_section"></span><span class="row_9_7 youtube_section"></span><span class="row_9_8 pinterest_section"></span><span class="row_9_9 linkedin_section"></span><span class="row_9_10 instagram_section"></span><!--<span class="row_9_11 sf_section"></span>--></div></li>
57
 
58
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='crystal') ? 'checked="true"' : '' ;?> type="radio" value="crystal" class="styled" /><label>Crystal</label><div class="icns_tab_3"><span class="row_10_1 rss_section"></span><span class="row_10_2 email_section"></span><span class="row_10_3 facebook_section"></span><span class="row_10_4 google_section"></span><span class="row_10_5 twitter_section"></span><span class="row_10_7 youtube_section"></span><span class="row_10_8 pinterest_section"></span><span class="row_10_9 linkedin_section"></span><span class="row_10_10 instagram_section"></span><!--<span class="row_10_11 sf_section"></span>--></div></li>
59
 
60
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='glossy') ? 'checked="true"' : '' ;?> type="radio" value="glossy" class="styled" /><label>Glossy</label><div class="icns_tab_3"><span class="row_11_1 rss_section"></span><span class="row_11_2 email_section"></span><span class="row_11_3 facebook_section"></span><span class="row_11_4 google_section"></span><span class="row_11_5 twitter_section"></span><span class="row_11_7 youtube_section"></span><span class="row_11_8 pinterest_section"></span><span class="row_11_9 linkedin_section"></span><span class="row_11_10 instagram_section"></span><!--<span class="row_11_11 sf_section"></span>--></div></li>
61
 
62
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='black') ? 'checked="true"' : '' ;?> type="radio" value="black" class="styled" /><label>Black</label><div class="icns_tab_3"><span class="row_12_1 rss_section"></span><span class="row_12_2 email_section"></span><span class="row_12_3 facebook_section"></span><span class="row_12_4 google_section"></span><span class="row_12_5 twitter_section"></span><span class="row_12_7 youtube_section"></span><span class="row_12_8 pinterest_section"></span><span class="row_12_9 linkedin_section"></span><span class="row_12_10 instagram_section"></span><!--<span class="row_12_11 sf_section"></span>--></div></li>
63
 
64
+ <!--start last four-->
65
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='silver') ? 'checked="true"' : '' ;?> type="radio" value="silver" class="styled" /><label>Silver</label><div class="icns_tab_3"><span class="row_13_1 rss_section"></span><span class="row_13_2 email_section"></span><span class="row_13_3 facebook_section"></span><span class="row_13_4 google_section"></span><span class="row_13_5 twitter_section"></span><span class="row_13_7 youtube_section"></span><span class="row_13_8 pinterest_section"></span><span class="row_13_9 linkedin_section"></span><span class="row_13_10 instagram_section"></span><!--<span class="row_13_11 sf_section"></span>--></div></li>
66
 
67
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='shaded_dark') ? 'checked="true"' : '' ;?> type="radio" value="shaded_dark" class="styled" /><label>Shaded Dark</label><div class="icns_tab_3"><span class="row_14_1 rss_section"></span><span class="row_14_2 email_section"></span><span class="row_14_3 facebook_section"></span><span class="row_14_4 google_section"></span><span class="row_14_5 twitter_section"></span><span class="row_14_7 youtube_section"></span><span class="row_14_8 pinterest_section"></span><span class="row_14_9 linkedin_section"></span><span class="row_14_10 instagram_section"></span><!--<span class="row_14_11 sf_section"></span>--></div></li>
68
 
69
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='shaded_light') ? 'checked="true"' : '' ;?> type="radio" value="shaded_light" class="styled" /><label>Shaded Light</label><div class="icns_tab_3"><span class="row_15_1 rss_section"></span><span class="row_15_2 email_section"></span><span class="row_15_3 facebook_section"></span><span class="row_15_4 google_section"></span><span class="row_15_5 twitter_section"></span><span class="row_15_7 youtube_section"></span><span class="row_15_8 pinterest_section"></span><span class="row_15_9 linkedin_section"></span><span class="row_15_10 instagram_section"></span><!--<span class="row_15_11 sf_section"></span>--></div></li>
70
 
71
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='transparent') ? 'checked="true"' : '' ;?> type="radio" value="transparent" class="styled" /><label style="line-height:20px !important;margin-top:15px; ">Transparent <br/><span style="font-size: 9px;" >(for dark backgrounds)</span></label> <div class="icns_tab_3 trans_bg" style="padding-left: 6px;"><span class="row_16_1 rss_section"></span><span class="row_16_2 email_section"></span><span class="row_16_3 facebook_section"></span><span class="row_16_4 google_section"></span><span class="row_16_5 twitter_section"></span><span class="row_16_7 youtube_section"></span><span class="row_16_8 pinterest_section"></span><span class="row_16_9 linkedin_section"></span><span class="row_16_10 instagram_section"></span><!--<span class="row_16_11 sf_section"></span>--></div></li>
72
 
73
  <!--Custom Icon Support {Monad}-->
74
 
128
  echo '<span class="row_17_5 twitter_section" style="background-position:-235px 0;"></span>';
129
  }
130
 
131
+ // if(get_option("share_skin"))
132
+ // {
133
+ // $icon = get_option("share_skin");
134
+ // echo '<span class="row_17_6 share_section sfsi-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
135
+ // }
136
+ // else
137
+ // {
138
+ // echo '<span class="row_17_6 share_section" style="background-position:-293px 0;"></span>';
139
+ // }
140
 
141
  if(get_option("youtube_skin"))
142
  {
views/sfsi_option_view4.php CHANGED
@@ -106,9 +106,6 @@ $option4['sfsi_instagram_countsDisplay']= (isset($option4['sfsi_instagram_count
106
  $option4['sfsi_pinterest_manualCounts'] = (isset($option4['sfsi_pinterest_manualCounts']))
107
  ? intval($option4['sfsi_pinterest_manualCounts'])
108
  : '';
109
- $option4['sfsi_shares_manualCounts'] = (isset($option4['sfsi_shares_manualCounts']))
110
- ? intval($option4['sfsi_shares_manualCounts'])
111
- : '';
112
  $option4['sfsi_linkedIn_manualCounts'] = (isset($option4['sfsi_linkedIn_manualCounts']))
113
  ? intval($option4['sfsi_linkedIn_manualCounts'])
114
  : '';
@@ -186,12 +183,12 @@ $hide="display:none;";
186
  </a>
187
  <span>12k</span>
188
  </li>
189
- <li class="share_section">
190
  <a href="#" title="Share">
191
- <img src="<?php echo SFSI_PLUGURL ?>images/share.png" alt="Share" />
192
  </a>
193
  <span>12k</span>
194
- </li>
195
  <li class="youtube_section">
196
  <a href="#" title="YouTube">
197
  <img src="<?php echo SFSI_PLUGURL ?>images/youtube.png" alt="YouTube" />
@@ -585,27 +582,6 @@ $hide="display:none;";
585
  </div>
586
  <!-- END INSTAGRAM ICON COUNT SECTION-->
587
 
588
- <!-- ADDTHIS ICON COUNT SECTION-->
589
- <div class="specify_counts share_section">
590
- <div class="radio_section"><input name="sfsi_shares_countsDisplay" <?php echo ($option4['sfsi_shares_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" /></div>
591
- <div class="social_icon_like">
592
- <ul class="like_icon">
593
- <li>
594
- <a title="Share">
595
- <img src="<?php echo SFSI_PLUGURL ?>images/share.png" alt="Share" />
596
- <span><?php echo $counts['share_count']; ?></span>
597
- </a>
598
- </li>
599
- </ul>
600
- </div>
601
- <div class="listing">
602
- <ul>
603
- <li><input name="sfsi_shares_countsFrom" <?php echo ($option4['sfsi_shares_countsFrom']=='shares') ? 'checked="true"' : '' ;?> type="radio" value="shares" class="styled" />Retrieve the number of shares</li>
604
- <li><input name="sfsi_shares_countsFrom" <?php echo ($option4['sfsi_shares_countsFrom']=='manual') ? 'checked="true"' : '' ;?> type="radio" value="manual" class="styled" /><label class="high_prb">Enter the figure manually</label><input name="sfsi_shares_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_shares_manualCounts']!='') ? $option4['sfsi_shares_manualCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_shares_countsFrom']=='shares') ? 'display:none;' : '' ;?>" /></li>
605
- </ul>
606
- </div>
607
- </div>
608
- <!-- END ADDTHIS ICON COUNT SECTION-->
609
 
610
  </div>
611
  <!-- END show/hide counts for all icons section -->
106
  $option4['sfsi_pinterest_manualCounts'] = (isset($option4['sfsi_pinterest_manualCounts']))
107
  ? intval($option4['sfsi_pinterest_manualCounts'])
108
  : '';
 
 
 
109
  $option4['sfsi_linkedIn_manualCounts'] = (isset($option4['sfsi_linkedIn_manualCounts']))
110
  ? intval($option4['sfsi_linkedIn_manualCounts'])
111
  : '';
183
  </a>
184
  <span>12k</span>
185
  </li>
186
+ <!-- <li class="share_section">
187
  <a href="#" title="Share">
188
+ <img src="<?php //echo SFSI_PLUGURL ?>images/share.png" alt="Share" />
189
  </a>
190
  <span>12k</span>
191
+ </li> -->
192
  <li class="youtube_section">
193
  <a href="#" title="YouTube">
194
  <img src="<?php echo SFSI_PLUGURL ?>images/youtube.png" alt="YouTube" />
582
  </div>
583
  <!-- END INSTAGRAM ICON COUNT SECTION-->
584
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
585
 
586
  </div>
587
  <!-- END show/hide counts for all icons section -->
views/sfsi_option_view5.php CHANGED
@@ -10,7 +10,6 @@
10
  $option5['sfsi_facebookIcon_order'] => 'facebook',
11
  $option5['sfsi_googleIcon_order'] => 'google',
12
  $option5['sfsi_twitterIcon_order'] => 'twitter',
13
- $option5['sfsi_shareIcon_order'] => 'share',
14
  $option5['sfsi_youtubeIcon_order'] => 'youtube',
15
  $option5['sfsi_pinterestIcon_order']=> 'pinterest',
16
  $option5['sfsi_linkedinIcon_order'] => 'linkedin',
@@ -34,28 +33,7 @@
34
  : '';
35
  $option5['sfsi_icons_ClickPageOpen'] = (isset($option5['sfsi_icons_ClickPageOpen']))
36
  ? sanitize_text_field($option5['sfsi_icons_ClickPageOpen'])
37
- :'';
38
- // $option5['sfsi_icons_float'] = (isset($option5['sfsi_icons_float']))
39
- // ? sanitize_text_field($option5['sfsi_icons_float'])
40
- // : '';
41
- // $option5['sfsi_disable_floaticons'] = (isset($option5['sfsi_disable_floaticons']))
42
- // ? sanitize_text_field($option5['sfsi_disable_floaticons'])
43
- // : '';
44
- // $option5['sfsi_icons_floatPosition'] = (isset($option5['sfsi_icons_floatPosition']))
45
- // ? sanitize_text_field($option5['sfsi_icons_floatPosition'])
46
- // :'';
47
- // $option5['sfsi_icons_floatMargin_top'] = (isset($option5['sfsi_icons_floatMargin_top']))
48
- // ? intval($option5['sfsi_icons_floatMargin_top'])
49
- // : '';
50
- // $option5['sfsi_icons_floatMargin_bottom'] = (isset($option5['sfsi_icons_floatMargin_bottom']))
51
- // ? intval($option5['sfsi_icons_floatMargin_bottom'])
52
- // : '';
53
- // $option5['sfsi_icons_floatMargin_left'] = (isset($option5['sfsi_icons_floatMargin_left']))
54
- // ? intval($option5['sfsi_icons_floatMargin_left'])
55
- // : '';
56
- // $option5['sfsi_icons_floatMargin_right'] = (isset($option5['sfsi_icons_floatMargin_right']))
57
- // ? intval($option5['sfsi_icons_floatMargin_right']): '';
58
-
59
  $option5['sfsi_icons_stick'] = (isset($option5['sfsi_icons_stick']))
60
  ? sanitize_text_field($option5['sfsi_icons_stick'])
61
  : '';
@@ -83,13 +61,12 @@
83
  $option5['sfsi_youtube_MouseOverText'] = (isset($option5['sfsi_youtube_MouseOverText']))
84
  ? sanitize_text_field($option5['sfsi_youtube_MouseOverText'])
85
  : '';
86
- $option5['sfsi_share_MouseOverText'] = (isset($option5['sfsi_share_MouseOverText']))
87
- ? sanitize_text_field($option5['sfsi_share_MouseOverText'])
88
- : '';
89
  $option5['sfsi_instagram_MouseOverText'] = (isset($option5['sfsi_instagram_MouseOverText']))
90
  ? sanitize_text_field($option5['sfsi_instagram_MouseOverText'])
91
  : '';
92
-
 
 
93
  if(is_array($custom_icons_order) )
94
  {
95
  foreach($custom_icons_order as $data)
@@ -105,7 +82,7 @@
105
  <h4>Order of your icons</h4>
106
  <!-- icon drag drop section start here -->
107
  <ul class="share_icon_order" >
108
- <?php
109
  $ctn = 0;
110
  foreach($icons_order as $index=>$icn) :
111
 
@@ -140,12 +117,6 @@
140
  </li>
141
  <?php break; ?>
142
 
143
- <?php case 'share' : ?>
144
- <li class="share_section " data-index="<?php echo $index; ?>" id="sfsi_shareIcon_order">
145
- <a href="#" title="Share" ><img src="<?php echo SFSI_PLUGURL; ?>images/share.png" alt="Share" /></a>
146
- </li>
147
- <?php break; ?>
148
-
149
  <?php case 'youtube' :?>
150
  <li class="youtube_section " data-index="<?php echo $index; ?>" id="sfsi_youtubeIcon_order">
151
  <a href="#" title="YouTube" ><img src="<?php echo SFSI_PLUGURL; ?>images/youtube.png" alt="YouTube" /></a>
@@ -222,14 +193,21 @@
222
  </div>
223
 
224
  <div class="row new_wind">
225
- <h4>New window</h4>
226
- <div class="row_onl"><p>If user clicks on your icons, do you want to open the page in a new window?</p>
227
- <ul class="enough_waffling">
228
- <li><input name="sfsi_icons_ClickPageOpen" <?php echo ($option5['sfsi_icons_ClickPageOpen']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" /><label>Yes</label></li>
229
- <li><input name="sfsi_icons_ClickPageOpen" <?php echo ($option5['sfsi_icons_ClickPageOpen']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" /><label>No</label></li>
230
- </ul></div>
 
 
 
 
 
 
 
231
  </div>
232
- <!-- END icon's size and spacing section -->
233
 
234
  <!-- icon's floating and stick section start here -->
235
  <div class="row sticking">
@@ -424,12 +402,6 @@ here what text will be displayed if a user moves his mouse over the icon:
424
  <input name="sfsi_instagram_MouseOverText" value="<?php echo ($option5['sfsi_instagram_MouseOverText']!='') ? $option5['sfsi_instagram_MouseOverText'] : '' ;?>" type="text" />
425
  </div>
426
  </div>
427
- <!--<div class="clear">
428
- <div class="mouseover_field share_section">
429
- <label>Share:</label>
430
- <input name="sfsi_share_MouseOverText" value="<?php //echo ($option5['sfsi_share_MouseOverText']!='') ? $option5['sfsi_share_MouseOverText'] : '' ;?>" type="text" />
431
- </div>
432
- </div> -->
433
  <div class="clear"> </div>
434
  <div class="custom_m">
435
  <?php
@@ -455,6 +427,22 @@ here what text will be displayed if a user moves his mouse over the icon:
455
  </div>
456
  <!-- END mouse over text section -->
457
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
458
  <?php sfsi_ask_for_help(5); ?>
459
 
460
 
10
  $option5['sfsi_facebookIcon_order'] => 'facebook',
11
  $option5['sfsi_googleIcon_order'] => 'google',
12
  $option5['sfsi_twitterIcon_order'] => 'twitter',
 
13
  $option5['sfsi_youtubeIcon_order'] => 'youtube',
14
  $option5['sfsi_pinterestIcon_order']=> 'pinterest',
15
  $option5['sfsi_linkedinIcon_order'] => 'linkedin',
33
  : '';
34
  $option5['sfsi_icons_ClickPageOpen'] = (isset($option5['sfsi_icons_ClickPageOpen']))
35
  ? sanitize_text_field($option5['sfsi_icons_ClickPageOpen'])
36
+ :'';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  $option5['sfsi_icons_stick'] = (isset($option5['sfsi_icons_stick']))
38
  ? sanitize_text_field($option5['sfsi_icons_stick'])
39
  : '';
61
  $option5['sfsi_youtube_MouseOverText'] = (isset($option5['sfsi_youtube_MouseOverText']))
62
  ? sanitize_text_field($option5['sfsi_youtube_MouseOverText'])
63
  : '';
 
 
 
64
  $option5['sfsi_instagram_MouseOverText'] = (isset($option5['sfsi_instagram_MouseOverText']))
65
  ? sanitize_text_field($option5['sfsi_instagram_MouseOverText'])
66
  : '';
67
+ $sfsi_icons_suppress_errors = (isset($option5['sfsi_icons_suppress_errors']))
68
+ ? sanitize_text_field($option5['sfsi_icons_suppress_errors'])
69
+ : 'no';
70
  if(is_array($custom_icons_order) )
71
  {
72
  foreach($custom_icons_order as $data)
82
  <h4>Order of your icons</h4>
83
  <!-- icon drag drop section start here -->
84
  <ul class="share_icon_order" >
85
+ <?php
86
  $ctn = 0;
87
  foreach($icons_order as $index=>$icn) :
88
 
117
  </li>
118
  <?php break; ?>
119
 
 
 
 
 
 
 
120
  <?php case 'youtube' :?>
121
  <li class="youtube_section " data-index="<?php echo $index; ?>" id="sfsi_youtubeIcon_order">
122
  <a href="#" title="YouTube" ><img src="<?php echo SFSI_PLUGURL; ?>images/youtube.png" alt="YouTube" /></a>
193
  </div>
194
 
195
  <div class="row new_wind">
196
+ <h4>New window</h4>
197
+ <div class="row_onl"><p>If user clicks on your icons, do you want to open the page in a new window?</p>
198
+ <ul class="enough_waffling">
199
+ <li>
200
+ <input name="sfsi_icons_ClickPageOpen" <?php echo ($option5['sfsi_icons_ClickPageOpen']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
201
+ <label>Yes</label>
202
+ </li>
203
+ <li>
204
+ <input name="sfsi_icons_ClickPageOpen" <?php echo ($option5['sfsi_icons_ClickPageOpen']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" />
205
+ <label>No</label>
206
+ </li>
207
+ </ul>
208
+ </div>
209
  </div>
210
+
211
 
212
  <!-- icon's floating and stick section start here -->
213
  <div class="row sticking">
402
  <input name="sfsi_instagram_MouseOverText" value="<?php echo ($option5['sfsi_instagram_MouseOverText']!='') ? $option5['sfsi_instagram_MouseOverText'] : '' ;?>" type="text" />
403
  </div>
404
  </div>
 
 
 
 
 
 
405
  <div class="clear"> </div>
406
  <div class="custom_m">
407
  <?php
427
  </div>
428
  <!-- END mouse over text section -->
429
 
430
+ <div class="row new_wind">
431
+ <h4>Error reporting</h4>
432
+ <div class="row_onl"><p>Suppress error messages?</p>
433
+ <ul class="enough_waffling">
434
+ <li>
435
+ <input name="sfsi_icons_suppress_errors" <?php echo ($sfsi_icons_suppress_errors=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
436
+ <label>Yes</label>
437
+ </li>
438
+ <li>
439
+ <input name="sfsi_icons_suppress_errors" <?php echo ($sfsi_icons_suppress_errors=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" />
440
+ <label>No</label>
441
+ </li>
442
+ </ul>
443
+ </div>
444
+ </div>
445
+
446
  <?php sfsi_ask_for_help(5); ?>
447
 
448
 
views/sfsi_option_view6.php CHANGED
@@ -32,10 +32,6 @@ if(!isset($option6['sfsi_rectgp']))
32
  {
33
  $option6['sfsi_rectgp'] = 'yes';
34
  }
35
- if(!isset($option6['sfsi_rectshr']))
36
- {
37
- $option6['sfsi_rectshr'] = 'yes';
38
- }
39
  if(!isset($option6['sfsi_recttwtr']))
40
  {
41
  $option6['sfsi_recttwtr'] = 'no';
@@ -51,6 +47,7 @@ if(!isset($option6['sfsi_rectfbshare']))
51
 
52
  ?>
53
  <!-- Section 6 "Do you want to display icons at the end of every post?" main div Start -->
 
54
  <div class="tab6">
55
  <p>The selections you made so far were to display the subscriptions/ social media icons for your site in general (in a widget on the sidebar). You can also display icons at the end of every post, encouraging users to subscribe/like/share after they’ve read it. The following buttons will be added: </p>
56
  <!-- icons example section -->
@@ -98,14 +95,6 @@ if(!isset($option6['sfsi_rectfbshare']))
98
  <img src="<?php echo SFSI_PLUGURL; ?>images/google_plus1.jpg" alt="Google Plus" />
99
  </a>
100
  </li>
101
-
102
- <li>
103
- <div class="radio_section tb_4_ck"><input name="sfsi_rectshr" <?php echo ($option6['sfsi_rectshr']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_rectshr" type="checkbox" value="yes" class="styled" /></div>
104
- <a href="#" title="Share">
105
- <img src="<?php echo SFSI_PLUGURL; ?>images/share1.jpg" alt="Share" />
106
- </a>
107
- <p style="width:auto;float:left;padding: 0px!important;">(may impact loading speed)</p>
108
- </li>
109
 
110
  </ul>
111
  </div><!-- icons position section -->
@@ -116,7 +105,6 @@ if(!isset($option6['sfsi_rectfbshare']))
116
  <li>2. Facebook is No.1 in «liking», so it’s a must have</li>
117
  <li>3. Google+ is becoming more popular, and also important for SEO reasons</li>
118
  <li>4. The Tweet-button allows quick tweeting of your article</li>
119
- <li>5. The share-button covers all other platforms for sharing</li>
120
  <li></li>
121
  </ul>
122
 
32
  {
33
  $option6['sfsi_rectgp'] = 'yes';
34
  }
 
 
 
 
35
  if(!isset($option6['sfsi_recttwtr']))
36
  {
37
  $option6['sfsi_recttwtr'] = 'no';
47
 
48
  ?>
49
  <!-- Section 6 "Do you want to display icons at the end of every post?" main div Start -->
50
+
51
  <div class="tab6">
52
  <p>The selections you made so far were to display the subscriptions/ social media icons for your site in general (in a widget on the sidebar). You can also display icons at the end of every post, encouraging users to subscribe/like/share after they’ve read it. The following buttons will be added: </p>
53
  <!-- icons example section -->
95
  <img src="<?php echo SFSI_PLUGURL; ?>images/google_plus1.jpg" alt="Google Plus" />
96
  </a>
97
  </li>
 
 
 
 
 
 
 
 
98
 
99
  </ul>
100
  </div><!-- icons position section -->
105
  <li>2. Facebook is No.1 in «liking», so it’s a must have</li>
106
  <li>3. Google+ is becoming more popular, and also important for SEO reasons</li>
107
  <li>4. The Tweet-button allows quick tweeting of your article</li>
 
108
  <li></li>
109
  </ul>
110
 
views/sfsi_option_view7.php CHANGED
@@ -57,12 +57,6 @@ $option7['sfsi_Shown_popupOnceTime'] = (isset($option7['sfsi_Shown_popupOnceTim
57
  <span class="sfsi_Cdisplay" id="sfsi_twitter_countsDisplay">12k</span>
58
  </div>
59
  </li>
60
- <li class="share_section">
61
- <div>
62
- <img src="<?php echo SFSI_PLUGURL ?>images/share.png" alt="Share" />
63
- <span class="sfsi_Cdisplay" id="sfsi_shares_countsDisplay">12k</span>
64
- </div>
65
- </li>
66
  <li class="youtube_section">
67
  <div>
68
  <img src="<?php echo SFSI_PLUGURL ?>images/youtube.png" alt="YouTube" />
57
  <span class="sfsi_Cdisplay" id="sfsi_twitter_countsDisplay">12k</span>
58
  </div>
59
  </li>
 
 
 
 
 
 
60
  <li class="youtube_section">
61
  <div>
62
  <img src="<?php echo SFSI_PLUGURL ?>images/youtube.png" alt="YouTube" />
views/sfsi_options_view.php CHANGED
@@ -12,8 +12,6 @@
12
  <!-- START Admin view for plugin-->
13
  <div class="wapper sfsi_mainContainer">
14
 
15
- <?php sfsi_language_notice(); ?>
16
-
17
  <!-- Get notification bar-->
18
  <?php if(get_option("show_new_notification") == "yes") { ?>
19
  <script type="text/javascript">
12
  <!-- START Admin view for plugin-->
13
  <div class="wapper sfsi_mainContainer">
14
 
 
 
15
  <!-- Get notification bar-->
16
  <?php if(get_option("show_new_notification") == "yes") { ?>
17
  <script type="text/javascript">
views/sfsi_pop_content.php CHANGED
@@ -91,12 +91,18 @@ $connectFeedLgn = "http://www.specificfeeds.com/?".base64_encode("userprofile=wo
91
 
92
 
93
  <?php
94
- $active_theme=$option3['sfsi_actvite_theme'];
95
- $icons_baseUrl=SFSI_PLUGURL."/images/icons_theme/".$active_theme."/";
96
  $visit_iconsUrl= SFSI_PLUGURL."/images/visit_icons/";
97
- $soicalObj=new sfsi_SocialHelper();
98
- $twitetr_share=($option2['sfsi_twitter_followUserName']!='') ? "https://twitter.com/".$option2['sfsi_twitter_followUserName'] : 'http://specificfeeds.com';
99
- $twitter_text=($option2['sfsi_twitter_followUserName']!='') ? $option2['sfsi_twitter_aboutPageText'] : 'Create Your Perfect Newspaper for free';
 
 
 
 
 
 
100
  ?>
101
 
102
  <!-- Facebook example pop up -->
@@ -120,31 +126,19 @@ $connectFeedLgn = "http://www.specificfeeds.com/?".base64_encode("userprofile=wo
120
  </div>
121
  </div><!-- END Facebook example pop up -->
122
 
123
- <!-- adthis example pop up -->
124
- <div class="pop-overlay read-overlay athis-s1" >
125
- <div class="pop_up_box sfsi_pop_up adPopWidth" >
126
- <img src="<?php echo SFSI_PLUGURL; ?>images/close.jpg" id="close_popup" class="sfsicloseBtn" />
127
- <h4 id="readmore_text">Move over the “+ icon” to see the sharing options</h4>
128
- <div style="margin: 0px auto;">
129
- <script type="text/javascript">
130
- var addthis_config = {pubid: "YOUR-PROFILE-ID"}
131
- </script>
132
- <a href="http://www.addthis.com/bookmark.php?v=250" class="addthis_button">
133
- <img width="51" class="sfsi_wicon" src="<?php echo $icons_baseUrl."/".$active_theme; ?>_share.png" title="share" alt="share" />
134
- </a>
135
- <?php //echo sfsi_Addthis(1); ?>
136
- </div>
137
- </div>
138
- </div><!-- END adthis example pop up -->
139
 
140
  <?php
141
- $twit_tolCls = "100";
142
- $twt_margin = "63";
143
- $icons_space = $option5['sfsi_icons_spacing'];
144
- $twitter_user = $option2['sfsi_twitter_followUserName'];
145
- $twit_tolCls = round(strlen($twitter_user)*4+100+20);
146
- $main_margin = round($icons_space)/2;
147
- $twt_margin = round($twit_tolCls/2+$main_margin+6);
 
 
 
 
148
  ?>
149
  <!-- twiiter example pop-up -->
150
  <div class="pop-overlay read-overlay twex-s2" >
@@ -167,7 +161,7 @@ $connectFeedLgn = "http://www.specificfeeds.com/?".base64_encode("userprofile=wo
167
  </div><!-- END twiiter example pop-up -->
168
 
169
  <?php
170
- $google_url=($option2['sfsi_google_pageURL']!='') ? $option2['sfsi_google_pageURL'] : 'https://plus.google.com/117732335852724933053' ;
171
  ?>
172
  <!-- Goolge+ example pop up -->
173
  <div class="pop-overlay read-overlay googlex-s2" style="display: block;z-index: -1;opacity: 0;">
@@ -190,8 +184,8 @@ $connectFeedLgn = "http://www.specificfeeds.com/?".base64_encode("userprofile=wo
190
  </div><!-- END Goolge+ example pop up -->
191
 
192
  <?php
193
- $youtube_url=($option2['sfsi_youtube_pageUrl']!='') ? $option2['sfsi_youtube_pageUrl'] : 'http://www.youtube.com/user/SpecificFeeds' ;
194
- $youtube_user=($option4['sfsi_youtube_user']!='' && isset($option4['sfsi_youtube_user']))? $option4['sfsi_youtube_user'] : 'SpecificFeeds' ;
195
  ?>
196
  <!-- You tube example pop up -->
197
  <div class="pop-overlay read-overlay ytex-s2" >
@@ -211,8 +205,10 @@ $connectFeedLgn = "http://www.specificfeeds.com/?".base64_encode("userprofile=wo
211
  </div>
212
  </div>
213
  </div><!-- END You tube example pop up -->
 
214
  <?php
215
- $pin_url=($option2['sfsi_pinterest_pageUrl']!='') ? $option2['sfsi_pinterest_pageUrl'] : 'http://pinterest.com/specificfeeds' ;
 
216
  ?>
217
  <!-- Pinterest example pop up -->
218
  <div class="pop-overlay read-overlay pinex-s2" >
@@ -234,9 +230,9 @@ $pin_url=($option2['sfsi_pinterest_pageUrl']!='') ? $option2['sfsi_pinterest_pa
234
  </div> <!-- END Pinterest example pop up -->
235
 
236
  <?php
237
- $linnked_share=($option2['sfsi_linkedin_pageURL']!='') ? $option2['sfsi_linkedin_pageURL'] : 'https://www.linkedin.com/' ;
238
- $linkedIncom=($option2['sfsi_linkedin_followCompany']!='') ? $option2['sfsi_linkedin_followCompany'] : '904740' ;
239
- $ln_product=($option2['sfsi_linkedin_recommendProductId']!='') ? $option2['sfsi_linkedin_recommendProductId'] : '201714' ;
240
  ?>
241
  <!-- LinkedIn example pop up -->
242
  <div class="pop-overlay read-overlay linkex-s2" style="display: block;z-index: -1;opacity: 0;" >
@@ -258,17 +254,6 @@ $pin_url=($option2['sfsi_pinterest_pageUrl']!='') ? $option2['sfsi_pinterest_pa
258
  </div>
259
  </div> <!-- END LinkedIn example pop up -->
260
 
261
- <!-- ADDTHIS ICON POP-UP -->
262
- <div class="pop-overlay read-overlay share-s2" >
263
- <div class="pop_up_box sfsi_pop_up adPopWidth" >
264
- <img src="<?php echo SFSI_PLUGURL; ?>images/close.jpg" id="close_popup" class="sfsicloseBtn" />
265
- <h4 id="readmore_text">Move over the “+ icon” to see the sharing options</h4>
266
- <div style="float: right;opacity: 1;position: relative;right: 215px;top: 10px;width: 52px; text-align: center;" ><a alt="share" href="http://www.addthis.com/bookmark.php?v=250" effect="" class="addthis_button"><img width="51" class="sfsi_wicon" src="<?php echo SFSI_PLUGURL; ?>images/share.png" title="share" alt="share" /></a>
267
- </div>
268
- </div>
269
- </div><!-- END ADDTHIS ICON POP-UP -->
270
-
271
-
272
 
273
  <!-- email deactivate pop-ups -->
274
 
91
 
92
 
93
  <?php
94
+ $active_theme = $option3['sfsi_actvite_theme'];
95
+ $icons_baseUrl = SFSI_PLUGURL."/images/icons_theme/".$active_theme."/";
96
  $visit_iconsUrl= SFSI_PLUGURL."/images/visit_icons/";
97
+ $soicalObj = new sfsi_SocialHelper();
98
+
99
+ $twitetr_share = 'http://specificfeeds.com';
100
+ $twitter_text = 'Create Your Perfect Newspaper for free';
101
+
102
+ if(isset($option2['sfsi_twitter_followUserName']) && !empty($option2['sfsi_twitter_followUserName'])){
103
+ $twitetr_share = "https://twitter.com/".$option2['sfsi_twitter_followUserName'];
104
+ $twitter_text = $option2['sfsi_twitter_aboutPageText'];
105
+ }
106
  ?>
107
 
108
  <!-- Facebook example pop up -->
126
  </div>
127
  </div><!-- END Facebook example pop up -->
128
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
 
130
  <?php
131
+ $twit_tolCls = "100";
132
+ $twt_margin = "63";
133
+ $icons_space = $option5['sfsi_icons_spacing'];
134
+
135
+ if(isset($option2['sfsi_twitter_followUserName']) && !empty($option2['sfsi_twitter_followUserName'])){
136
+ $twitter_user = $option2['sfsi_twitter_followUserName'];
137
+ $twit_tolCls = round(strlen($twitter_user)*4+100+20);
138
+ $main_margin = round($icons_space)/2;
139
+ $twt_margin = round($twit_tolCls/2+$main_margin+6);
140
+ }
141
+
142
  ?>
143
  <!-- twiiter example pop-up -->
144
  <div class="pop-overlay read-overlay twex-s2" >
161
  </div><!-- END twiiter example pop-up -->
162
 
163
  <?php
164
+ $google_url=(isset($option2['sfsi_google_pageURL']) && !empty($option2['sfsi_google_pageURL'])) ? $option2['sfsi_google_pageURL'] : 'https://plus.google.com/117732335852724933053' ;
165
  ?>
166
  <!-- Goolge+ example pop up -->
167
  <div class="pop-overlay read-overlay googlex-s2" style="display: block;z-index: -1;opacity: 0;">
184
  </div><!-- END Goolge+ example pop up -->
185
 
186
  <?php
187
+ $youtube_url = isset($option2['sfsi_youtube_pageUrl']) && !empty($option2['sfsi_youtube_pageUrl']) ? $option2['sfsi_youtube_pageUrl'] : 'http://www.youtube.com/user/SpecificFeeds' ;
188
+ $youtube_user= isset($option4['sfsi_youtube_user']) && !empty($option4['sfsi_youtube_user']) ? $option4['sfsi_youtube_user'] : 'SpecificFeeds' ;
189
  ?>
190
  <!-- You tube example pop up -->
191
  <div class="pop-overlay read-overlay ytex-s2" >
205
  </div>
206
  </div>
207
  </div><!-- END You tube example pop up -->
208
+
209
  <?php
210
+
211
+ $pin_url= isset($option2['sfsi_pinterest_pageUrl']) && !empty($option2['sfsi_pinterest_pageUrl']) ? $option2['sfsi_pinterest_pageUrl'] : 'http://pinterest.com/specificfeeds' ;
212
  ?>
213
  <!-- Pinterest example pop up -->
214
  <div class="pop-overlay read-overlay pinex-s2" >
230
  </div> <!-- END Pinterest example pop up -->
231
 
232
  <?php
233
+ $linnked_share = isset($option2['sfsi_linkedin_pageURL']) && !empty($option2['sfsi_linkedin_pageURL']) ? $option2['sfsi_linkedin_pageURL'] : 'https://www.linkedin.com/' ;
234
+ $linkedIncom = isset($option2['sfsi_linkedin_followCompany']) && !empty($option2['sfsi_linkedin_followCompany']) ? $option2['sfsi_linkedin_followCompany'] : '904740' ;
235
+ $ln_product = isset($option2['sfsi_linkedin_recommendProductId']) && !empty($option2['sfsi_linkedin_recommendProductId']) ? $option2['sfsi_linkedin_recommendProductId'] : '201714' ;
236
  ?>
237
  <!-- LinkedIn example pop up -->
238
  <div class="pop-overlay read-overlay linkex-s2" style="display: block;z-index: -1;opacity: 0;" >
254
  </div>
255
  </div> <!-- END LinkedIn example pop up -->
256
 
 
 
 
 
 
 
 
 
 
 
 
257
 
258
  <!-- email deactivate pop-ups -->
259