Social Media Share Buttons & Social Sharing Icons - Version 2.0.0

Version Description

  • New question 3 to facilitate placement of icons
Download this release

Release Info

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

Code changes from version 1.9.8 to 2.0.0

css/sfsi-admin-style.css CHANGED
@@ -47,13 +47,13 @@ body {
47
  outline: 0;
48
  }
49
  .wapper {
50
- padding: 48px 106px 40px 20px;
51
  display: block;
52
  background: #f1f1f1;
53
  }
54
  .main_contant {
55
  margin: 0;
56
- padding: 0;
57
  width: 100%;
58
  float: left;
59
  }
@@ -73,6 +73,9 @@ body {
73
  text-decoration: underline;
74
  font-family: helveticabold;
75
  }
 
 
 
76
  #accordion p, #accordion1 p {
77
  color: #5a6570;
78
  text-align: left;
@@ -83,7 +86,7 @@ body {
83
  padding-top: 19px;
84
  }
85
  #accordion p:first-child, #accordion1 p:first-child {
86
- padding-top: 0;
87
  }
88
  #accordion h4, #accordion1 h4 {
89
  margin: 0;
@@ -1959,4 +1962,119 @@ h2.optional { float: left;clear: both;margin-top: 25px !important; }
1959
  .premiumButtonsContainer{width: 44% !important;}
1960
  .premiumButtonsContainer .premiumSection2{width: 41% !important;}
1961
  .premiumButtonsContainer .premiumSection3{width: 41% !important;}
1962
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  outline: 0;
48
  }
49
  .wapper {
50
+ padding: 30px 40px 40px 40px;
51
  display: block;
52
  background: #f1f1f1;
53
  }
54
  .main_contant {
55
  margin: 0;
56
+ padding: 20px 0 0 0;
57
  width: 100%;
58
  float: left;
59
  }
73
  text-decoration: underline;
74
  font-family: helveticabold;
75
  }
76
+ a#save_all_settings {
77
+ padding: 15px 10px;
78
+ }
79
  #accordion p, #accordion1 p {
80
  color: #5a6570;
81
  text-align: left;
86
  padding-top: 19px;
87
  }
88
  #accordion p:first-child, #accordion1 p:first-child {
89
+ padding-top: 2px;
90
  }
91
  #accordion h4, #accordion1 h4 {
92
  margin: 0;
1962
  .premiumButtonsContainer{width: 44% !important;}
1963
  .premiumButtonsContainer .premiumSection2{width: 41% !important;}
1964
  .premiumButtonsContainer .premiumSection3{width: 41% !important;}
1965
+ }
1966
+
1967
+ /************************************ Question 3-> Where shall they be displayed? CSS STARTS *************************/
1968
+ .tab9 h1 {font-size: 20px !important;ont-weight: bold !important;margin-bottom: 20px !important;}
1969
+ .tab9 span.checkbox {margin-top: 3px;}
1970
+ .tab9 input {width: 317px; background: #e5e5e5;box-shadow: 2px 2px 3px #dcdcdc inset;border: 0;padding: 13px 10px !important;font-size: 17px;color: #5a6570;}
1971
+ .tab9 ul.sfsi_icn_listing8 {list-style: outside none none;margin: 5px 0 0;overflow: hidden;}
1972
+ .tab9 ul.sfsi_icn_listing8 li .sfsi_right_info {font-family: helveticaregular;width: 94.7%;float: left;}
1973
+ .tab9 ul.sfsi_icn_listing8 li {float: left;padding: 11px 0 15px 8px;width: 100%;margin: 0;}
1974
+ .tab9 .sfsi_float_position_icon_label img{margin-left: auto;margin-right: auto;display: block;margin-top: 7px; }
1975
+ .tab9 .sfsi_float_position_icon_label img.sfsi_img_center_bottom {position: absolute;bottom: 0px;left: 18%;}
1976
+ .tab9 .sfsiLocationli .cstmfltonpgstck p{padding-top: 0px!important; padding-left: 20px!important; display: table;font-size: 19px !important}
1977
+ .sfsi_mainContainer .checkbox{ float: left; }
1978
+
1979
+
1980
+ #accordion .tab9 .sfsi_icn_listing8 li .sfsi_right_info .kckslctn p:first-child {margin-top: 17px !important;}
1981
+ #accordion .tab9 .sfsi_icn_listing8 li .sfsi_right_info p {padding-left: 20px;font-size: 19px !important; display: table}
1982
+ #accordion .tab9 .sfsi_icn_listing8 li.sfsi_show_via_shortcode .sfsi_right_info p:last-child {padding-top: 0px;}
1983
+ #accordion .tab9 .sfsi_icn_listing8 li.sfsi_show_via_shortcode .sfsi_right_info .kckslctn p:last-child {padding-top: 19px !important;}
1984
+ .tab9 .sfsi_premium_feature_note {font-size: 18px !important;margin-left:12px !important;padding-top:0px !important;}
1985
+ .tab9 .ul.sfsi_make_icons.sfsi_plus_mobile_float {float: left;}
1986
+ .tab9 .sfsi_disable_floatingicons_mobile { width: 88%; float: left; margin:25px 0 0 27px }
1987
+ .tab9 .sfsi_disable_floatingicons_mobile h4 { float: left;line-height: 56px !important;margin-right: 50px !important;font-family: 'helveticaneue-light' !important;color: #5a6570 !important;}
1988
+ .tab9 .sfsi_toglepstpgspn {font-weight: bold;}
1989
+ .tab9 .sfsi_show_via_shortcode .kckslctn,.tab9 .sfsi_show_via_afterposts .kckslctn{font-size: 15px;margin-top: 5px; }
1990
+ .tab9 .sfsi_show_via_shortcode .kckslctn h4,.tab9 .sfsi_show_via_afterposts .kckslctn h4{font-size: 18px !important;padding: 18px 0 0 0 !important; }
1991
+ .tab9 .sfsi_navigate_to_question7{text-decoration:underline;cursor:pointer}
1992
+ .tab9 .sfsiLocationli h4{font-size:19px!important}
1993
+ .tab9 .sfsi_make_icons span.radio{background-position:0 0;display:inline-block;vertical-align:middle;float: left;}
1994
+ .tab9 ul.sfsi_icn_listing8 li .flthmonpg li{min-width:33%;width:33%!important}.
1995
+ .tab9 .radio_section.tb_4_ck{margin:0 20px 0 0!important;float:left}
1996
+ .tab9 .sfsi_tab_3_icns {display: block;}
1997
+ .tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns .sfsi_make_icons li{width:13%;min-width:35px}
1998
+ .tab9 .sfsi_make_icons .sfsi_flicnsoptn3{color:#69737c;display:inline-block;float:none;font-family:helveticaneue-light;font-size:20px;margin:0 0 0 15px;vertical-align:middle;width:auto}
1999
+ .tab9 .sfsi_float_position_icon_label{border:1px solid #ccc;border-radius:18px;margin-top:3px;position:relative;width:189px;height:148px}
2000
+ .tab9 .save_button{padding-top:0}
2001
+ .tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns li{padding-left:0;padding-bottom:15px}
2002
+ .tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns ul.sfsi_floaticon_margin_sec li{min-width:50%;padding-left:0;padding-bottom:15px;float:left;width:50%}
2003
+ .tab9 .sfsi_tab_3_icns.flthmonpg .radio{margin-top:55px}
2004
+ .tab9 .sfsi_position_divider{float:left;margin-top:0;margin-left:15px;width:100%}
2005
+ #accordion .tab9 ul.sfsiplus_shwthmbfraftr .labelhdng4,#accordion .tab9 ul.sfsiplus_shwthmbfraftr .row h4.labelhdng4{color:#555;font-size:20px;margin-left:20px;font-family:helveticaregular}
2006
+ .tab9 .sfsiLocationli .sfsi_right_info .sfsi_tab_3_icns{float:left;clear:both}
2007
+ .tab9 ul.sfsi_tab_3_icns li .sfsiplus_icns_tab_3,ul.sfsi_tab_3_icns li .radio{float:left}
2008
+ .tab9 ul.sfsi_tab_3_icns.flthmonpg{margin-top:20px}
2009
+ .tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec li{float:left}
2010
+ .tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec label{font-size:17px;padding-right:7px;width:63px!important;display:inline-block;margin-top:10px}
2011
+ .tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec ins{margin-top:10px}
2012
+ .tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec li input{background-color:#dedede;border:none;box-shadow:none;padding:14px 8px;width:80px}
2013
+ .tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec li ins{font-size:17px;font-weight:400;margin-left:15px;text-decoration:none}
2014
+ .tab9 .sfsi_flicnsoptn3{color:#69737c;float:left;font-size:20px;margin:62px 5px 0 20px;font-family:helveticaneue-light;width:136px}
2015
+ .tab9 ul.sfsi_tab_3_icns label{float:left;line-height:42px;color:#69737C;font-size:18px;font-family:helveticaregular;min-width:120px}
2016
+
2017
+ @media screen and (max-width: 823px){
2018
+ .wapper { padding: 0 15px; }
2019
+ .welcometext { width: 62% !important; }
2020
+ .supportforum { margin-top: 22px; }
2021
+ .main_contant h1 { line-height: 35px;}
2022
+ #sfpageLoad { width: 100% !important;left: 0px !important;}
2023
+ .tab9 .sfsi_position_divider { margin-left: 0px !important; }
2024
+ .row ul.tab_2_email_sec li{ width: 31%; }
2025
+ .tab9 ul.sfsi_icn_listing8 li .sfsi_right_info {width: 89.7% !important;}
2026
+ .tab9 ul.sfsi_icn_listing8 li.sfsiLocationli .sfsi_right_info {width: 100% !important;}
2027
+ .tab9 .sfsi_float_position_icon_label { clear: both !important; }
2028
+ .tab9 .sfsi_tab_3_icns.flthmonpg .radio { margin-top: 0px !important; }
2029
+ .tab9 .sfsi_flicnsoptn3 {margin: 5px 5px 0 20px!important;width: 131px !important;}
2030
+ .tab9 .sfsiLocationli label, .tab9 .sfsi_float_position_icon_label { margin-top: 13px; clear: both !important;}
2031
+ .tab9 .sfsi_position_divider:nth-child(2) {margin: 20px 0;}
2032
+ .tab9 ul.sfsi_tab_3_icns.flthmonpg {margin-left: 44px;}
2033
+
2034
+ .tab9 ul.sfsi_make_icons.sfsi_plus_mobile_float {float: left;clear: both;}
2035
+ .tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns .sfsi_make_icons li { width: 50% !important; }
2036
+ }
2037
+ @media screen and (min-width: 360px) and (max-width: 414px){
2038
+ .tab9 ul.sfsi_icn_listing8 li .flthmonpg li{ width: 100% !important; }
2039
+ }
2040
+ @media screen and (min-width: 640px) and (max-width: 640px){
2041
+ .tab9 ul.sfsi_icn_listing8 li .flthmonpg li{ width: 100% !important ; }
2042
+ .tab9 .sfsi_img_center_bottom { padding-top: 0px !important;width: 62% !important;margin-top: -10px;margin-left: 5px;}
2043
+ }
2044
+ @media screen and (min-width: 1024px) and (max-width: 1024px){
2045
+ .wapper { padding: 0 30px 0px 15px; }
2046
+ .welcometext { width: 62% !important; }
2047
+ .supportforum { margin-top: 22px; }
2048
+ .main_contant h1 { line-height: 35px;}
2049
+ #sfpageLoad { width: 100% !important;}
2050
+ .tab9 ul.sfsi_tab_3_icns.flthmonpg {margin-left: 45px;}
2051
+ .row ul.tab_2_email_sec li{ width: 31%; }
2052
+ .tab9 ul.sfsi_icn_listing8 li .sfsi_right_info {width: 90.7% !important;}
2053
+ .tab9 ul.sfsi_icn_listing8 li.sfsiLocationli .sfsi_right_info {width: 100% !important;}
2054
+ .tab9 .sfsi_float_position_icon_label { clear: both !important; }
2055
+ .tab9 .sfsiLocationli label, .tab9 .sfsi_float_position_icon_label { margin-top: 13px;clear: both;float: left;}
2056
+ .tab9 .sfsi_tab_3_icns.flthmonpg .radio {margin-top: 0px !important;}
2057
+ .tab9 .sfsi_flicnsoptn3 {margin-top: 3px !important}
2058
+ .tab9 .sfsi_position_divider:nth-child(2) {margin: 20px 0;}
2059
+ .tab9 .sfsi_position_divider{ margin-left: 0px !important; }
2060
+ .tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns .sfsi_make_icons li { width: 30% !important; }
2061
+ .tab9 ul.sfsi_make_icons.sfsi_plus_mobile_float { width: 100% !important; }
2062
+ }
2063
+
2064
+ @media screen and (min-width: 1080px) and (max-width: 1080px){
2065
+ .tab9 ul.sfsi_tab_3_icns label {clear: both;margin-top: 20px;}
2066
+ .tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns ul.sfsi_make_icons {float: left;clear: both; width: 100%;}
2067
+ .tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns ul.sfsi_make_icons li {width: 50%;}
2068
+ }
2069
+
2070
+ @media screen and (min-width: 1920px) and (max-width: 1920px){
2071
+ .tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns ul.sfsi_make_icons li span.sfsi_flicnsoptn3 { padding-top: 6px;padding-left: 5px; }
2072
+ }
2073
+
2074
+ @media screen and (min-width: 1366px) and (max-width: 1366px){
2075
+ .wapper { padding: 40px 40px 40px 10px;}
2076
+ .tab9 ul.sfsi_icn_listing8 li.sfsiLocationli .sfsi_right_info {width: 100% !important;}
2077
+ .tab9 .sfsi_flicnsoptn3{font-size: 18px !important;min-width: 113px !important; margin: 60px 0px 0 10px !important;width: auto !important;}
2078
+ .tab9 .sfsi_position_divider { margin-left: 0px !important; }
2079
+ }
2080
+ /************************************ Question 3-> Where shall they be displayed? CSS CLOSES *************************/
css/sfsi-style.css CHANGED
@@ -346,6 +346,7 @@ label.toglpstpgsbttl { float: left; margin-top: 5px !important}
346
  padding: 0;
347
  list-style: none;
348
  display: inline-block;
 
349
  }
350
  .tab5 ul.enough_waffling li span {
351
  float: left;
@@ -386,7 +387,9 @@ label.toglpstpgsbttl { float: left; margin-top: 5px !important}
386
  }
387
  .sticking a {
388
  color: #a4a9ad;
389
- text-decoration: none;
 
 
390
  }
391
  .sticking .field {
392
  position: relative;
@@ -1045,7 +1048,7 @@ a.addthis_button_compact {
1045
  background: #f1f1f1;
1046
  }
1047
  #accordion {
1048
- margin-top: 4px;
1049
  }
1050
  .main_contant p>a, .tab1 p span {
1051
  font-family: helveticabold;
346
  padding: 0;
347
  list-style: none;
348
  display: inline-block;
349
+ float: left;
350
  }
351
  .tab5 ul.enough_waffling li span {
352
  float: left;
387
  }
388
  .sticking a {
389
  color: #a4a9ad;
390
+ }
391
+ .sticking p{
392
+ line-height: 19px !important;
393
  }
394
  .sticking .field {
395
  position: relative;
1048
  background: #f1f1f1;
1049
  }
1050
  #accordion {
1051
+ margin-top: 25px;
1052
  }
1053
  .main_contant p>a, .tab1 p span {
1054
  font-family: helveticabold;
helpers/twitteroauth/twiiterCount.php CHANGED
@@ -12,10 +12,15 @@ function sfsi_twitter_followers(){
12
  if(isset($sfsi_section4_options['tw_consumer_key']) && isset($sfsi_section4_options['tw_consumer_secret'])
13
  && isset($sfsi_section4_options['tw_oauth_access_token']) && isset($sfsi_section4_options['tw_oauth_access_token_secret'])){
14
 
15
- $connection = new TwitterOAuth($sfsi_section4_options['tw_consumer_key'], $sfsi_section4_options['tw_consumer_secret'], $sfsi_section4_options['tw_oauth_access_token'], $sfsi_section4_options['tw_oauth_access_token_secret']);
16
-
17
- $statuses = $connection->get('followers/ids');
18
- $count = count($statuses->ids);
 
 
 
 
 
19
  }
20
 
21
  return $count;
12
  if(isset($sfsi_section4_options['tw_consumer_key']) && isset($sfsi_section4_options['tw_consumer_secret'])
13
  && isset($sfsi_section4_options['tw_oauth_access_token']) && isset($sfsi_section4_options['tw_oauth_access_token_secret'])){
14
 
15
+ try {
16
+ $connection = new TwitterOAuth($sfsi_section4_options['tw_consumer_key'], $sfsi_section4_options['tw_consumer_secret'], $sfsi_section4_options['tw_oauth_access_token'], $sfsi_section4_options['tw_oauth_access_token_secret']);
17
+
18
+ $statuses = $connection->get('followers/ids');
19
+ $count = isset($statuses) && isset($statuses->ids)? count($statuses->ids) : 0;
20
+ }
21
+ catch(Exception $e) {
22
+ return $count;
23
+ }
24
  }
25
 
26
  return $count;
images/bottom_left.png ADDED
Binary file
images/bottom_right.png ADDED
Binary file
images/center_left.png ADDED
Binary file
images/center_right.png ADDED
Binary file
images/float_position_icon.png ADDED
Binary file
images/music.png ADDED
Binary file
images/print.png ADDED
Binary file
images/top_left.png ADDED
Binary file
images/top_right.png ADDED
Binary file
js/custom-admin.js CHANGED
@@ -1,4 +1,4 @@
1
- function sfsi_update_index(){
2
  var s = 1;
3
  SFSI("ul.icn_listing li.custom").each(function() {
4
  SFSI(this).children("span.custom-txt").html("Custom " + s), s++;
@@ -508,10 +508,36 @@ function sfsi_update_step4() {
508
  function sfsi_update_step5() {
509
  var nonce = SFSI("#sfsi_save5").attr("data-nonce");
510
  sfsi_update_step3();
 
511
  var s = sfsi_validationStep5();
 
512
  if (!s) return global_error = 1, !1;
 
513
  beForeLoad();
514
- var i = SFSI("input[name='sfsi_icons_size']").val(), e = SFSI("input[name='sfsi_icons_perRow']").val(), t = SFSI("input[name='sfsi_icons_spacing']").val(), n = SFSI("#sfsi_icons_Alignment").val(), o = SFSI("input[name='sfsi_icons_ClickPageOpen']:checked").val(), a = SFSI("input[name='sfsi_icons_float']:checked").val(), dsb = SFSI("input[name='sfsi_disable_floaticons']:checked").val(), r = SFSI("#sfsi_icons_floatPosition").val(), c = SFSI("input[name='sfsi_icons_stick']:checked").val(), p = SFSI("#sfsi_rssIcon_order").attr("data-index"), _ = SFSI("#sfsi_emailIcon_order").attr("data-index"), l = SFSI("#sfsi_googleIcon_order").attr("data-index"), S = SFSI("#sfsi_facebookIcon_order").attr("data-index"), u = SFSI("#sfsi_twitterIcon_order").attr("data-index"), f = SFSI("#sfsi_youtubeIcon_order").attr("data-index"), d = SFSI("#sfsi_pinterestIcon_order").attr("data-index"), I = SFSI("#sfsi_instagramIcon_order").attr("data-index"), m = SFSI("#sfsi_shareIcon_order").attr("data-index"), F = SFSI("#sfsi_linkedinIcon_order").attr("data-index"), h = new Array();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
515
  SFSI(".custom_iconOrder").each(function()
516
  {
517
  h.push({
@@ -519,7 +545,11 @@ function sfsi_update_step5() {
519
  ele:SFSI(this).attr("element-id")
520
  });
521
  });
522
- var mst = SFSI("input[name='sfsi_icons_floatMargin_top']").val(), msb = SFSI("input[name='sfsi_icons_floatMargin_bottom']").val(), msl = SFSI("input[name='sfsi_icons_floatMargin_left']").val(), msr = SFSI("input[name='sfsi_icons_floatMargin_right']").val();
 
 
 
 
523
 
524
  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 = {};
525
  SFSI("input[name='sfsi_custom_MouseOverTexts[]']").each(function() {
@@ -535,13 +565,15 @@ function sfsi_update_step5() {
535
  sfsi_icons_perRow:e,
536
  sfsi_icons_spacing:t,
537
  sfsi_icons_ClickPageOpen:o,
538
- sfsi_icons_float:a,
539
- sfsi_disable_floaticons:dsb,
540
- sfsi_icons_floatPosition:r,
541
- sfsi_icons_floatMargin_top:mst,
542
- sfsi_icons_floatMargin_bottom:msb,
543
- sfsi_icons_floatMargin_left:msl,
544
- sfsi_icons_floatMargin_right:msr,
 
 
545
  sfsi_icons_stick:c,
546
  sfsi_rss_MouseOverText:v,
547
  sfsi_email_MouseOverText:g,
@@ -780,6 +812,62 @@ function sfsi_update_step8()
780
  });
781
  }
782
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
783
  function sfsi_validationStep2()
784
  {
785
  //var class_name= SFSI(element).hasAttr('sfsi_validate');
@@ -1216,12 +1304,12 @@ function sfsi_validationStep5()
1216
  return false;
1217
  }
1218
  /* validate icons effects */
1219
- if(SFSI('input[name="sfsi_icons_float"]:checked').val()=="yes" && SFSI('input[name="sfsi_icons_stick"]:checked').val()=="yes")
1220
- {
1221
- showErrorSuc("error","Error : Only one allow from Sticking & floating ",5);
1222
- SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", true);
1223
- return false;
1224
- }
1225
  return true;
1226
  }
1227
  function sfsi_validationStep7()
@@ -1373,7 +1461,7 @@ function beForeLoad() {
1373
  }
1374
 
1375
  function afterLoad() {
1376
- SFSI("input").removeClass("inputError"), SFSI(".save_button >a").html("Save"), SFSI(".tab9>div.save_button >a").html("Save All Settings"),
1377
  SFSI(".save_button >a").css("pointer-events", "auto"), SFSI(".save_button >a").removeAttr("onclick"),
1378
  SFSI(".loader-img").hide();
1379
  }
@@ -1974,6 +2062,9 @@ SFSI(document).ready(function(s) {
1974
  SFSI("#sfsi_save8").on("click", function() {
1975
  sfsi_update_step8() && sfsicollapse(this);
1976
  }),
 
 
 
1977
  SFSI("#save_all_settings").on("click", function() {
1978
  return SFSI("#save_all_settings").text("Saving.."), SFSI(".save_button >a").css("pointer-events", "none"),
1979
  sfsi_update_step1(),sfsi_update_step8(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Which icons do you want to show on your site?" tab.', 8),
@@ -2112,21 +2203,32 @@ SFSI(document).ready(function(s) {
2112
 
2113
  SFSI(document).on("click", '.checkbox', function () {
2114
 
2115
- var s = SFSI(this).parent().find("input:checkbox:first");
 
 
2116
 
2117
  if(s.attr('name')== "sfsi_custom_social_hide"){
2118
- var backgroundPos = jQuery(this).css('background-position').split(" ");
2119
- var xPos = backgroundPos[0],
2120
- yPos = backgroundPos[1];
2121
- var val = (yPos=="0px") ? "no":"yes";
2122
- SFSI('input[name="sfsi_custom_social_hide"]').val(val);
2123
  }
 
 
 
 
 
 
 
 
 
 
 
2124
  });
2125
 
2126
  //*------------------------------- Sharing text & pcitures checkbox for showing section in Page, Post CLOSES -------------------------------------//
2127
 
2128
  /*SFSI(".radio").live("click", function() {*/
2129
  SFSI(document).on("click", '.radio', function () {
 
2130
  var s = SFSI(this).parent().find("input:radio:first");
2131
  "sfsi_email_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_email_countsDisplay"]').prop("checked", !0),
2132
  SFSI('input[name="sfsi_email_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
@@ -2178,13 +2280,29 @@ SFSI(document).ready(function(s) {
2178
  SFSI('input[name="sfsi_shares_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2179
  "manual" == SFSI("input[name='sfsi_shares_countsFrom']:checked").val() ? SFSI("input[name='sfsi_shares_manualCounts']").slideDown() :SFSI("input[name='sfsi_shares_manualCounts']").slideUp());
2180
  }),
2181
- sfsi_make_popBox(),
 
 
2182
  SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("keyup", sfsi_make_popBox),
2183
  SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus", sfsi_make_popBox),
 
2184
  SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox),
 
2185
  /*SFSI(".radio").live("click", function(){*/
2186
  SFSI(document).on("click", '.radio', function () {
 
2187
  var s = SFSI(this).parent().find("input:radio:first");
 
 
 
 
 
 
 
 
 
 
 
2188
  "sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
2189
  }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function(s) {
2190
  s.stopPropagation();
@@ -2269,16 +2387,24 @@ SFSI(document).ready(function(s) {
2269
  SFSI(this).text("Collapse")) :(SFSI(this).siblings("p").children("label").fadeOut("slow"),
2270
  SFSI(this).text("Read more"));
2271
  }), /*SFSI(".radio").live("click", function() {*/SFSI(document).on("click", '.radio', function () {
 
2272
  var s = SFSI(this).parent().find("input:radio:first");
 
2273
  "sfsi_icons_float" == s.attr("name") && "yes" == s.val() && (SFSI(".float_options").slideDown("slow"),
 
2274
  SFSI('input[name="sfsi_icons_stick"][value="no"]').attr("checked", !0), SFSI('input[name="sfsi_icons_stick"][value="yes"]').removeAttr("checked"),
2275
  SFSI('input[name="sfsi_icons_stick"][value="no"]').parent().find("span").attr("style", "background-position:0px -41px;"),
2276
  SFSI('input[name="sfsi_icons_stick"][value="yes"]').parent().find("span").attr("style", "background-position:0px -0px;")),
2277
- ("sfsi_icons_stick" == s.attr("name") && "yes" == s.val() || "sfsi_icons_float" == s.attr("name") && "no" == s.val()) && (SFSI(".float_options").slideUp("slow"),
 
 
 
2278
  SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", !0), SFSI('input[name="sfsi_icons_float"][value="yes"]').prop("checked", !1),
2279
  SFSI('input[name="sfsi_icons_float"][value="no"]').parent().find("span.radio").attr("style", "background-position:0px -41px;"),
2280
  SFSI('input[name="sfsi_icons_float"][value="yes"]').parent().find("span.radio").attr("style", "background-position:0px -0px;"));
 
2281
  }),
 
2282
  SFSI(".sfsi_wDiv").length > 0 && setTimeout(function() {
2283
  var s = parseInt(SFSI(".sfsi_wDiv").height()) + 0 + "px";
2284
  SFSI(".sfsi_holders").each(function() {
@@ -2368,16 +2494,75 @@ function showhideutube(ref)
2368
  function checkforinfoslction(ref)
2369
  {
2370
  var pos = jQuery(ref).children(".checkbox").css("background-position");
2371
- if(pos == "0px 0px")
2372
- {
2373
- jQuery(ref).next(".right_info").children("p").children("label").hide();
2374
- }
2375
- else
2376
- {
2377
- jQuery(ref).next(".right_info").children("p").children("label").show();
2378
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2379
  }
 
2380
  var initTop = new Array();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2381
  SFSI("body").on("click", ".sfsi_tokenGenerateButton a", function(){
2382
  var clienId = SFSI("input[name='sfsi_instagram_clientid']").val();
2383
  var redirectUrl = SFSI("input[name='sfsi_instagram_appurl']").val();
1
+ function sfsi_update_index(){
2
  var s = 1;
3
  SFSI("ul.icn_listing li.custom").each(function() {
4
  SFSI(this).children("span.custom-txt").html("Custom " + s), s++;
508
  function sfsi_update_step5() {
509
  var nonce = SFSI("#sfsi_save5").attr("data-nonce");
510
  sfsi_update_step3();
511
+
512
  var s = sfsi_validationStep5();
513
+
514
  if (!s) return global_error = 1, !1;
515
+
516
  beForeLoad();
517
+
518
+ var i = SFSI("input[name='sfsi_icons_size']").val(),
519
+ e = SFSI("input[name='sfsi_icons_perRow']").val(),
520
+ t = SFSI("input[name='sfsi_icons_spacing']").val(),
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"),
531
+ l = SFSI("#sfsi_googleIcon_order").attr("data-index"),
532
+ S = SFSI("#sfsi_facebookIcon_order").attr("data-index"),
533
+ u = SFSI("#sfsi_twitterIcon_order").attr("data-index"),
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
+
541
  SFSI(".custom_iconOrder").each(function()
542
  {
543
  h.push({
545
  ele:SFSI(this).attr("element-id")
546
  });
547
  });
548
+
549
+ // var mst = SFSI("input[name='sfsi_icons_floatMargin_top']").val(),
550
+ // msb = SFSI("input[name='sfsi_icons_floatMargin_bottom']").val(),
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() {
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,
812
  });
813
  }
814
 
815
+ // Queestion 3
816
+ function sfsi_update_step9()
817
+ {
818
+ var nonce = SFSI("#sfsi_save9").attr("data-nonce");
819
+ beForeLoad();
820
+
821
+ var i_float = SFSI("input[name='sfsi_icons_float']:checked").val(),
822
+ i_floatP = SFSI("input[name='sfsi_icons_floatPosition']:checked").val(),
823
+ i_floatMt = SFSI("input[name='sfsi_icons_floatMargin_top']").val(),
824
+ i_floatMb = SFSI("input[name='sfsi_icons_floatMargin_bottom']").val(),
825
+ i_floatMl = SFSI("input[name='sfsi_icons_floatMargin_left']").val(),
826
+ i_floatMr = SFSI("input[name='sfsi_icons_floatMargin_right']").val(),
827
+ i_disableFloat = SFSI("input[name='sfsi_disable_floaticons']:checked").val(),
828
+
829
+ show_via_widget = SFSI("input[name='sfsi_show_via_widget']").val(),
830
+ show_via__shortcode = SFSI("input[name='sfsi_show_via_shortcode']").val(),
831
+ sfsi_show_via_afterposts = SFSI("input[name='sfsi_show_via_afterposts']").val();
832
+
833
+ var f = {
834
+
835
+ action :"updateSrcn9",
836
+
837
+ sfsi_icons_float : i_float,
838
+ sfsi_icons_floatPosition : i_floatP,
839
+ sfsi_icons_floatMargin_top : i_floatMt,
840
+ sfsi_icons_floatMargin_bottom : i_floatMb,
841
+ sfsi_icons_floatMargin_left : i_floatMl,
842
+ sfsi_icons_floatMargin_right : i_floatMr,
843
+ sfsi_disable_floaticons : i_disableFloat,
844
+
845
+ sfsi_show_via_widget : show_via_widget,
846
+ sfsi_show_via_shortcode : show_via__shortcode,
847
+ sfsi_show_via_afterposts : sfsi_show_via_afterposts,
848
+ nonce:nonce
849
+ };
850
+ SFSI.ajax({
851
+ url:ajax_object.ajax_url,
852
+ type:"post",
853
+ data:f,
854
+ dataType:"json",
855
+ async:!0,
856
+ success:function(s) {
857
+ if(s == "wrong_nonce")
858
+ {
859
+ showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 9);
860
+ afterLoad();
861
+ }
862
+ else
863
+ {
864
+ "success" == s ? (showErrorSuc("success", "Saved !", 9), sfsicollapse("#sfsi_save9")) :showErrorSuc("error", "Unkown error , please try again", 9),
865
+ afterLoad();
866
+ }
867
+ }
868
+ });
869
+ }
870
+
871
  function sfsi_validationStep2()
872
  {
873
  //var class_name= SFSI(element).hasAttr('sfsi_validate');
1304
  return false;
1305
  }
1306
  /* validate icons effects */
1307
+ // if(SFSI('input[name="sfsi_icons_float"]:checked').val()=="yes" && SFSI('input[name="sfsi_icons_stick"]:checked').val()=="yes")
1308
+ // {
1309
+ // showErrorSuc("error","Error : Only one allow from Sticking & floating ",5);
1310
+ // SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", true);
1311
+ // return false;
1312
+ // }
1313
  return true;
1314
  }
1315
  function sfsi_validationStep7()
1461
  }
1462
 
1463
  function afterLoad() {
1464
+ SFSI("input").removeClass("inputError"), SFSI(".save_button >a").html("Save"), SFSI(".tab10>div.save_button >a").html("Save All Settings"),
1465
  SFSI(".save_button >a").css("pointer-events", "auto"), SFSI(".save_button >a").removeAttr("onclick"),
1466
  SFSI(".loader-img").hide();
1467
  }
2062
  SFSI("#sfsi_save8").on("click", function() {
2063
  sfsi_update_step8() && sfsicollapse(this);
2064
  }),
2065
+ SFSI("#sfsi_save9").on("click", function() {
2066
+ sfsi_update_step9() && sfsicollapse(this);
2067
+ }),
2068
  SFSI("#save_all_settings").on("click", function() {
2069
  return SFSI("#save_all_settings").text("Saving.."), SFSI(".save_button >a").css("pointer-events", "none"),
2070
  sfsi_update_step1(),sfsi_update_step8(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Which icons do you want to show on your site?" tab.', 8),
2203
 
2204
  SFSI(document).on("click", '.checkbox', function () {
2205
 
2206
+ var s = SFSI(this).parent().find("input:checkbox:first");
2207
+ var backgroundPos = jQuery(this).css('background-position').split(" ");
2208
+ var xPos = backgroundPos[0],yPos = backgroundPos[1];
2209
 
2210
  if(s.attr('name')== "sfsi_custom_social_hide"){
2211
+ var val = (yPos=="0px") ? "no":"yes";
2212
+ SFSI('input[name="sfsi_custom_social_hide"]').val(val);
 
 
 
2213
  }
2214
+
2215
+ if("sfsi_show_via_widget" == s.attr('name')
2216
+ || "sfsi_show_via_shortcode" == s.attr('name')
2217
+ || "sfsi_show_via_afterposts" == s.attr('name')
2218
+ || "sfsi_custom_social_hide" == s.attr('name')
2219
+ )
2220
+ {
2221
+ var val = (yPos=="0px") ? "no":"yes";
2222
+ SFSI('input[name="'+s.attr('name')+'"]').val(val);
2223
+ }
2224
+
2225
  });
2226
 
2227
  //*------------------------------- Sharing text & pcitures checkbox for showing section in Page, Post CLOSES -------------------------------------//
2228
 
2229
  /*SFSI(".radio").live("click", function() {*/
2230
  SFSI(document).on("click", '.radio', function () {
2231
+
2232
  var s = SFSI(this).parent().find("input:radio:first");
2233
  "sfsi_email_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_email_countsDisplay"]').prop("checked", !0),
2234
  SFSI('input[name="sfsi_email_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2280
  SFSI('input[name="sfsi_shares_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2281
  "manual" == SFSI("input[name='sfsi_shares_countsFrom']:checked").val() ? SFSI("input[name='sfsi_shares_manualCounts']").slideDown() :SFSI("input[name='sfsi_shares_manualCounts']").slideUp());
2282
  }),
2283
+
2284
+ sfsi_make_popBox(),
2285
+
2286
  SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("keyup", sfsi_make_popBox),
2287
  SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus", sfsi_make_popBox),
2288
+
2289
  SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox),
2290
+
2291
  /*SFSI(".radio").live("click", function(){*/
2292
  SFSI(document).on("click", '.radio', function () {
2293
+
2294
  var s = SFSI(this).parent().find("input:radio:first");
2295
+
2296
+ if("sfsi_icons_floatPosition" == s.attr("name")){
2297
+ SFSI('input[name="sfsi_icons_floatPosition"]').removeAttr("checked");
2298
+ s.attr("checked", true);
2299
+ }
2300
+
2301
+ if("sfsi_disable_floaticons" == s.attr("name")){
2302
+ SFSI('input[name="sfsi_disable_floaticons"]').removeAttr("checked");
2303
+ s.attr("checked", true);
2304
+ }
2305
+
2306
  "sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
2307
  }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function(s) {
2308
  s.stopPropagation();
2387
  SFSI(this).text("Collapse")) :(SFSI(this).siblings("p").children("label").fadeOut("slow"),
2388
  SFSI(this).text("Read more"));
2389
  }), /*SFSI(".radio").live("click", function() {*/SFSI(document).on("click", '.radio', function () {
2390
+
2391
  var s = SFSI(this).parent().find("input:radio:first");
2392
+
2393
  "sfsi_icons_float" == s.attr("name") && "yes" == s.val() && (SFSI(".float_options").slideDown("slow"),
2394
+
2395
  SFSI('input[name="sfsi_icons_stick"][value="no"]').attr("checked", !0), SFSI('input[name="sfsi_icons_stick"][value="yes"]').removeAttr("checked"),
2396
  SFSI('input[name="sfsi_icons_stick"][value="no"]').parent().find("span").attr("style", "background-position:0px -41px;"),
2397
  SFSI('input[name="sfsi_icons_stick"][value="yes"]').parent().find("span").attr("style", "background-position:0px -0px;")),
2398
+
2399
+ //("sfsi_icons_stick" == s.attr("name") && "yes" == s.val() || "sfsi_icons_float" == s.attr("name") && "no" == s.val()) && (SFSI(".float_options").slideUp("slow"),
2400
+ ("sfsi_icons_stick" == s.attr("name") && "yes" == s.val()) && (SFSI(".float_options").slideUp("slow"),
2401
+
2402
  SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", !0), SFSI('input[name="sfsi_icons_float"][value="yes"]').prop("checked", !1),
2403
  SFSI('input[name="sfsi_icons_float"][value="no"]').parent().find("span.radio").attr("style", "background-position:0px -41px;"),
2404
  SFSI('input[name="sfsi_icons_float"][value="yes"]').parent().find("span.radio").attr("style", "background-position:0px -0px;"));
2405
+
2406
  }),
2407
+
2408
  SFSI(".sfsi_wDiv").length > 0 && setTimeout(function() {
2409
  var s = parseInt(SFSI(".sfsi_wDiv").height()) + 0 + "px";
2410
  SFSI(".sfsi_holders").each(function() {
2494
  function checkforinfoslction(ref)
2495
  {
2496
  var pos = jQuery(ref).children(".checkbox").css("background-position");
2497
+
2498
+ var rightInfoClass = jQuery(ref).next().attr('class');
2499
+
2500
+ var rightInfoPElem = jQuery(ref).next("."+rightInfoClass).children("p").first();
2501
+
2502
+ var elemName = 'label';
2503
+
2504
+ if(pos == "0px 0px")
2505
+ {
2506
+ rightInfoPElem.children(elemName).hide();
2507
+ }
2508
+ else
2509
+ {
2510
+ rightInfoPElem.children(elemName).show();
2511
+ }
2512
+ }
2513
+
2514
+ function checkforinfoslction_checkbox(ref){
2515
+
2516
+ var pos = jQuery(ref).children(".checkbox").css("background-position");
2517
+
2518
+ var elem = jQuery(ref).parent().children('.sfsi_right_info').find('.kckslctn');
2519
+
2520
+ if(pos == "0px 0px")
2521
+ {
2522
+ elem.hide();
2523
+ }
2524
+ else
2525
+ {
2526
+ elem.show();
2527
+ }
2528
+ }
2529
+
2530
+ function sfsi_toggleflotpage_que3(ref)
2531
+ {
2532
+ var pos = jQuery(ref).children(".checkbox").css("background-position");
2533
+ if(pos == "0px 0px")
2534
+ {
2535
+ jQuery(ref).next(".sfsi_right_info").hide();
2536
+
2537
+ }
2538
+ else
2539
+ {
2540
+ jQuery(ref).next(".sfsi_right_info").show();
2541
+ }
2542
  }
2543
+
2544
  var initTop = new Array();
2545
+
2546
+ SFSI('.sfsi_navigate_to_question7').on("click",function(){
2547
+
2548
+ var elem = SFSI('#ui-id-6');
2549
+
2550
+ if(elem.hasClass('accordion-content-active')){
2551
+
2552
+ // Cloase tab of Question 3
2553
+ elem.find('.sfsiColbtn').trigger('click');
2554
+
2555
+ // Open tab of Question 7
2556
+ if(!SFSI('#ui-id-14').hasClass('accordion-content-active')){
2557
+ SFSI('#ui-id-13').trigger('click');
2558
+ }
2559
+
2560
+ var pos = SFSI("#ui-id-13").offset();
2561
+ var scrollToPos = pos.top - SFSI(window).height() * 0.99 + 30;
2562
+ SFSI('html,body').animate({scrollTop: scrollToPos}, 500);
2563
+ }
2564
+ });
2565
+
2566
  SFSI("body").on("click", ".sfsi_tokenGenerateButton a", function(){
2567
  var clienId = SFSI("input[name='sfsi_instagram_clientid']").val();
2568
  var redirectUrl = SFSI("input[name='sfsi_instagram_appurl']").val();
js/customValidate.js CHANGED
@@ -491,13 +491,13 @@ function sfsi_validationStep5()
491
  return false;
492
  }
493
 
494
- /* validate icons effects */
495
- if(SFSI('input[name="sfsi_icons_float"]:checked').val()=="yes" && SFSI('input[name="sfsi_icons_stick"]:checked').val()=="yes")
496
- {
497
- showErrorSuc("error","Error : Only one allow from Sticking & floating ",5);
498
- SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", true);
499
- return false;
500
- }
501
 
502
 
503
  return true;
491
  return false;
492
  }
493
 
494
+ /* validate icons effects */
495
+ // if(SFSI('input[name="sfsi_icons_float"]:checked').val()=="yes" && SFSI('input[name="sfsi_icons_stick"]:checked').val()=="yes")
496
+ // {
497
+ // showErrorSuc("error","Error : Only one allow from Sticking & floating ",5);
498
+ // SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", true);
499
+ // return false;
500
+ // }
501
 
502
 
503
  return true;
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -359,14 +359,16 @@ function sfsi_options_updater5()
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
  $sfsi_icons_stick = isset($_POST["sfsi_icons_stick"]) ? $_POST["sfsi_icons_stick"] : 'no';
 
370
  $sfsi_rss_MouseOverText = isset($_POST["sfsi_rss_MouseOverText"]) ? $_POST["sfsi_rss_MouseOverText"] : '';
371
  $sfsi_email_MouseOverText = isset($_POST["sfsi_email_MouseOverText"]) ? $_POST["sfsi_email_MouseOverText"] : '';
372
  $sfsi_twitter_MouseOverText = isset($_POST["sfsi_twitter_MouseOverText"]) ? $_POST["sfsi_twitter_MouseOverText"] : '';
@@ -400,13 +402,15 @@ function sfsi_options_updater5()
400
  'sfsi_icons_Alignment' => sanitize_text_field($sfsi_icons_Alignment),
401
  'sfsi_icons_perRow' => intval($sfsi_icons_perRow),
402
  'sfsi_icons_ClickPageOpen' => sanitize_text_field($sfsi_icons_ClickPageOpen),
403
- 'sfsi_icons_float' => sanitize_text_field($sfsi_icons_float),
404
- 'sfsi_disable_floaticons' => sanitize_text_field($sfsi_disable_floaticons),
405
- 'sfsi_icons_floatPosition' => sanitize_text_field($sfsi_icons_floatPosition),
406
- 'sfsi_icons_floatMargin_top' => intval($sfsi_icons_floatMargin_top),
407
- 'sfsi_icons_floatMargin_bottom' => intval($sfsi_icons_floatMargin_bottom),
408
- 'sfsi_icons_floatMargin_left' => intval($sfsi_icons_floatMargin_left),
409
- 'sfsi_icons_floatMargin_right' => intval($sfsi_icons_floatMargin_right),
 
 
410
  'sfsi_icons_stick' => sanitize_text_field($sfsi_icons_stick),
411
  /* mouse over texts */
412
  'sfsi_rss_MouseOverText' => sanitize_text_field($sfsi_rss_MouseOverText),
@@ -445,7 +449,9 @@ function sfsi_options_updater6()
445
  if ( !wp_verify_nonce( $_POST['nonce'], "update_step6")) {
446
  echo json_encode(array("wrong_nonce")); exit;
447
  }
 
448
  $sfsi_show_Onposts = isset($_POST["sfsi_show_Onposts"]) ? $_POST["sfsi_show_Onposts"] : 'no';
 
449
  $sfsi_icons_postPositon = isset($_POST["sfsi_icons_postPositon"]) ? $_POST["sfsi_icons_postPositon"] : '';
450
  $sfsi_icons_alignment = isset($_POST["sfsi_icons_alignment"]) ? $_POST["sfsi_icons_alignment"] : 'center-right';
451
  $sfsi_textBefor_icons = isset($_POST["sfsi_textBefor_icons"]) ? $_POST["sfsi_textBefor_icons"] : '';
@@ -459,7 +465,9 @@ function sfsi_options_updater6()
459
  $sfsi_rectfbshare = isset($_POST["sfsi_rectfbshare"]) ? $_POST["sfsi_rectfbshare"] : 'no';
460
  /* post options */
461
  $up_option6=array(
 
462
  'sfsi_show_Onposts' => sanitize_text_field($sfsi_show_Onposts),
 
463
  'sfsi_icons_postPositon'=> sanitize_text_field($sfsi_icons_postPositon),
464
  'sfsi_icons_alignment' => sanitize_text_field($sfsi_icons_alignment),
465
  'sfsi_textBefor_icons' => sanitize_text_field(stripslashes($sfsi_textBefor_icons)),
@@ -528,35 +536,36 @@ function sfsi_options_updater8()
528
  if ( !wp_verify_nonce( $_POST['nonce'], "update_step8")) {
529
  echo json_encode(array("wrong_nonce")); exit;
530
  }
 
531
  $sfsi_form_adjustment = isset($_POST["sfsi_form_adjustment"]) ? $_POST["sfsi_form_adjustment"] : 'yes';
532
  $sfsi_form_height = isset($_POST["sfsi_form_height"]) ? $_POST["sfsi_form_height"] : '180';
533
  $sfsi_form_width = isset($_POST["sfsi_form_width"]) ? $_POST["sfsi_form_width"] : '230';
534
  $sfsi_form_border = isset($_POST["sfsi_form_border"]) ? $_POST["sfsi_form_border"] : 'no';
535
  $sfsi_form_border_thickness = isset($_POST["sfsi_form_border_thickness"]) ? $_POST["sfsi_form_border_thickness"] : '1';
536
- $sfsi_form_border_color = isset($_POST["sfsi_form_border_color"]) ? $_POST["sfsi_form_border_color"] : '#f3faf2';
537
  $sfsi_form_background = isset($_POST["sfsi_form_background"]) ? $_POST["sfsi_form_background"] : '#eff7f7';
538
 
539
- $sfsi_form_heading_text = isset($_POST["sfsi_form_heading_text"]) ? $_POST["sfsi_form_heading_text"] : '';
540
- $sfsi_form_heading_font = isset($_POST["sfsi_form_heading_font"]) ? $_POST["sfsi_form_heading_font"] : '';
541
- $sfsi_form_heading_fontstyle= isset($_POST["sfsi_form_heading_fontstyle"]) ? $_POST["sfsi_form_heading_fontstyle"] : '';
542
- $sfsi_form_heading_fontcolor= isset($_POST["sfsi_form_heading_fontcolor"]) ? $_POST["sfsi_form_heading_fontcolor"] : '';
543
- $sfsi_form_heading_fontsize = isset($_POST["sfsi_form_heading_fontsize"]) ? $_POST["sfsi_form_heading_fontsize"] : '22';
544
  $sfsi_form_heading_fontalign= isset($_POST["sfsi_form_heading_fontalign"]) ? $_POST["sfsi_form_heading_fontalign"] :'center';
545
 
546
- $sfsi_form_field_text = isset($_POST["sfsi_form_field_text"]) ? $_POST["sfsi_form_field_text"] : '';
547
- $sfsi_form_field_font = isset($_POST["sfsi_form_field_font"]) ? $_POST["sfsi_form_field_font"] : '';
548
- $sfsi_form_field_fontstyle = isset($_POST["sfsi_form_field_fontstyle"]) ? $_POST["sfsi_form_field_fontstyle"] : '';
549
- $sfsi_form_field_fontcolor = isset($_POST["sfsi_form_field_fontcolor"]) ? $_POST["sfsi_form_field_fontcolor"] : '';
550
- $sfsi_form_field_fontsize = isset($_POST["sfsi_form_field_fontsize"]) ? $_POST["sfsi_form_field_fontsize"] : '22';
551
  $sfsi_form_field_fontalign = isset($_POST["sfsi_form_field_fontalign"]) ? $_POST["sfsi_form_field_fontalign"] :'center';
552
 
553
  $sfsi_form_button_text = isset($_POST["sfsi_form_button_text"]) ? $_POST["sfsi_form_button_text"] : 'Subscribe';
554
- $sfsi_form_button_font = isset($_POST["sfsi_form_button_font"]) ? $_POST["sfsi_form_button_font"] : '';
555
- $sfsi_form_button_fontstyle = isset($_POST["sfsi_form_button_fontstyle"]) ? $_POST["sfsi_form_button_fontstyle"] : '';
556
- $sfsi_form_button_fontcolor = isset($_POST["sfsi_form_button_fontcolor"]) ? $_POST["sfsi_form_button_fontcolor"] : '';
557
- $sfsi_form_button_fontsize = isset($_POST["sfsi_form_button_fontsize"]) ? $_POST["sfsi_form_button_fontsize"] : '22';
558
  $sfsi_form_button_fontalign = isset($_POST["sfsi_form_button_fontalign"]) ? $_POST["sfsi_form_button_fontalign"] :'center';
559
- $sfsi_form_button_background= isset($_POST["sfsi_form_button_background"]) ? $_POST["sfsi_form_button_background"]:'#5a6570';
560
 
561
  /* icons pop options */
562
  $up_option8 = array(
@@ -594,6 +603,53 @@ function sfsi_options_updater8()
594
  header('Content-Type: application/json');
595
  echo json_encode(array("success")); exit;
596
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
597
  /* upload custom icons images */
598
  /* get counts for admin section */
599
  function sfsi_getCounts()
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"] : '';
373
  $sfsi_email_MouseOverText = isset($_POST["sfsi_email_MouseOverText"]) ? $_POST["sfsi_email_MouseOverText"] : '';
374
  $sfsi_twitter_MouseOverText = isset($_POST["sfsi_twitter_MouseOverText"]) ? $_POST["sfsi_twitter_MouseOverText"] : '';
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 */
416
  'sfsi_rss_MouseOverText' => sanitize_text_field($sfsi_rss_MouseOverText),
449
  if ( !wp_verify_nonce( $_POST['nonce'], "update_step6")) {
450
  echo json_encode(array("wrong_nonce")); exit;
451
  }
452
+
453
  $sfsi_show_Onposts = isset($_POST["sfsi_show_Onposts"]) ? $_POST["sfsi_show_Onposts"] : 'no';
454
+
455
  $sfsi_icons_postPositon = isset($_POST["sfsi_icons_postPositon"]) ? $_POST["sfsi_icons_postPositon"] : '';
456
  $sfsi_icons_alignment = isset($_POST["sfsi_icons_alignment"]) ? $_POST["sfsi_icons_alignment"] : 'center-right';
457
  $sfsi_textBefor_icons = isset($_POST["sfsi_textBefor_icons"]) ? $_POST["sfsi_textBefor_icons"] : '';
465
  $sfsi_rectfbshare = isset($_POST["sfsi_rectfbshare"]) ? $_POST["sfsi_rectfbshare"] : 'no';
466
  /* post options */
467
  $up_option6=array(
468
+
469
  'sfsi_show_Onposts' => sanitize_text_field($sfsi_show_Onposts),
470
+
471
  'sfsi_icons_postPositon'=> sanitize_text_field($sfsi_icons_postPositon),
472
  'sfsi_icons_alignment' => sanitize_text_field($sfsi_icons_alignment),
473
  'sfsi_textBefor_icons' => sanitize_text_field(stripslashes($sfsi_textBefor_icons)),
536
  if ( !wp_verify_nonce( $_POST['nonce'], "update_step8")) {
537
  echo json_encode(array("wrong_nonce")); exit;
538
  }
539
+
540
  $sfsi_form_adjustment = isset($_POST["sfsi_form_adjustment"]) ? $_POST["sfsi_form_adjustment"] : 'yes';
541
  $sfsi_form_height = isset($_POST["sfsi_form_height"]) ? $_POST["sfsi_form_height"] : '180';
542
  $sfsi_form_width = isset($_POST["sfsi_form_width"]) ? $_POST["sfsi_form_width"] : '230';
543
  $sfsi_form_border = isset($_POST["sfsi_form_border"]) ? $_POST["sfsi_form_border"] : 'no';
544
  $sfsi_form_border_thickness = isset($_POST["sfsi_form_border_thickness"]) ? $_POST["sfsi_form_border_thickness"] : '1';
545
+ $sfsi_form_border_color = isset($_POST["sfsi_form_border_color"]) ? $_POST["sfsi_form_border_color"] : '#b5b5b5';
546
  $sfsi_form_background = isset($_POST["sfsi_form_background"]) ? $_POST["sfsi_form_background"] : '#eff7f7';
547
 
548
+ $sfsi_form_heading_text = isset($_POST["sfsi_form_heading_text"]) ? $_POST["sfsi_form_heading_text"] : 'Get new posts by email';
549
+ $sfsi_form_heading_font = isset($_POST["sfsi_form_heading_font"]) ? $_POST["sfsi_form_heading_font"] : 'Helvetica,Arial,sans-serif';
550
+ $sfsi_form_heading_fontstyle= isset($_POST["sfsi_form_heading_fontstyle"]) ? $_POST["sfsi_form_heading_fontstyle"] : 'bold';
551
+ $sfsi_form_heading_fontcolor= isset($_POST["sfsi_form_heading_fontcolor"]) ? $_POST["sfsi_form_heading_fontcolor"] : '#000000';
552
+ $sfsi_form_heading_fontsize = isset($_POST["sfsi_form_heading_fontsize"]) ? $_POST["sfsi_form_heading_fontsize"] : '16';
553
  $sfsi_form_heading_fontalign= isset($_POST["sfsi_form_heading_fontalign"]) ? $_POST["sfsi_form_heading_fontalign"] :'center';
554
 
555
+ $sfsi_form_field_text = isset($_POST["sfsi_form_field_text"]) ? $_POST["sfsi_form_field_text"] : 'Subscribe';
556
+ $sfsi_form_field_font = isset($_POST["sfsi_form_field_font"]) ? $_POST["sfsi_form_field_font"] : 'Helvetica,Arial,sans-serif';
557
+ $sfsi_form_field_fontstyle = isset($_POST["sfsi_form_field_fontstyle"]) ? $_POST["sfsi_form_field_fontstyle"] : 'normal';
558
+ $sfsi_form_field_fontcolor = isset($_POST["sfsi_form_field_fontcolor"]) ? $_POST["sfsi_form_field_fontcolor"] : '#000000';
559
+ $sfsi_form_field_fontsize = isset($_POST["sfsi_form_field_fontsize"]) ? $_POST["sfsi_form_field_fontsize"] : '14';
560
  $sfsi_form_field_fontalign = isset($_POST["sfsi_form_field_fontalign"]) ? $_POST["sfsi_form_field_fontalign"] :'center';
561
 
562
  $sfsi_form_button_text = isset($_POST["sfsi_form_button_text"]) ? $_POST["sfsi_form_button_text"] : 'Subscribe';
563
+ $sfsi_form_button_font = isset($_POST["sfsi_form_button_font"]) ? $_POST["sfsi_form_button_font"] : 'Helvetica,Arial,sans-serif';
564
+ $sfsi_form_button_fontstyle = isset($_POST["sfsi_form_button_fontstyle"]) ? $_POST["sfsi_form_button_fontstyle"] : 'bold';
565
+ $sfsi_form_button_fontcolor = isset($_POST["sfsi_form_button_fontcolor"]) ? $_POST["sfsi_form_button_fontcolor"] : '#000000';
566
+ $sfsi_form_button_fontsize = isset($_POST["sfsi_form_button_fontsize"]) ? $_POST["sfsi_form_button_fontsize"] : '16';
567
  $sfsi_form_button_fontalign = isset($_POST["sfsi_form_button_fontalign"]) ? $_POST["sfsi_form_button_fontalign"] :'center';
568
+ $sfsi_form_button_background= isset($_POST["sfsi_form_button_background"]) ? $_POST["sfsi_form_button_background"]:'#dedede';
569
 
570
  /* icons pop options */
571
  $up_option8 = array(
603
  header('Content-Type: application/json');
604
  echo json_encode(array("success")); exit;
605
  }
606
+
607
+ /* save settings for section 3 */
608
+ add_action('wp_ajax_updateSrcn9','sfsi_options_updater9');
609
+ function sfsi_options_updater9(){
610
+
611
+ if ( !wp_verify_nonce( $_POST['nonce'], "update_step9")) {
612
+ echo json_encode(array("wrong_nonce")); exit;
613
+ }
614
+
615
+ $sfsi_show_via_widget = isset($_POST["sfsi_show_via_widget"]) ? $_POST["sfsi_show_via_widget"] : 'no';
616
+
617
+ $sfsi_icons_float = isset($_POST["sfsi_icons_float"]) ? $_POST["sfsi_icons_float"] : 'no';
618
+ $sfsi_icons_floatPosition = isset($_POST["sfsi_icons_floatPosition"]) ? $_POST["sfsi_icons_floatPosition"] : 'center-right';
619
+ $sfsi_icons_floatMargin_top = isset($_POST["sfsi_icons_floatMargin_top"]) ? $_POST["sfsi_icons_floatMargin_top"] : '';
620
+ $sfsi_icons_floatMargin_bottom = isset($_POST["sfsi_icons_floatMargin_bottom"]) ? $_POST["sfsi_icons_floatMargin_bottom"]: '';
621
+ $sfsi_icons_floatMargin_left = isset($_POST["sfsi_icons_floatMargin_left"]) ? $_POST["sfsi_icons_floatMargin_left"] : '';
622
+ $sfsi_icons_floatMargin_right = isset($_POST["sfsi_icons_floatMargin_right"]) ? $_POST["sfsi_icons_floatMargin_right"] : '';
623
+ $sfsi_disable_floaticons = isset($_POST["sfsi_disable_floaticons"]) ? $_POST["sfsi_disable_floaticons"] : 'no';
624
+
625
+ $sfsi_show_via_shortcode = isset($_POST["sfsi_show_via_shortcode"]) ? $_POST["sfsi_show_via_shortcode"] : 'no';
626
+
627
+ $sfsi_show_via_afterposts = isset($_POST["sfsi_show_via_afterposts"]) ? $_POST["sfsi_show_via_afterposts"] : 'no';
628
+
629
+
630
+ /* icons pop options */
631
+ $up_option9 = array(
632
+
633
+ 'sfsi_show_via_widget' => sanitize_text_field($sfsi_show_via_widget),
634
+
635
+ 'sfsi_icons_float' => sanitize_text_field($sfsi_icons_float),
636
+ 'sfsi_icons_floatPosition' => sanitize_text_field($sfsi_icons_floatPosition),
637
+ 'sfsi_icons_floatMargin_top' => intval(sanitize_text_field($sfsi_icons_floatMargin_top)),
638
+ 'sfsi_icons_floatMargin_bottom' => intval(sanitize_text_field($sfsi_icons_floatMargin_bottom)),
639
+ 'sfsi_icons_floatMargin_left' => intval(sanitize_text_field($sfsi_icons_floatMargin_left)),
640
+ 'sfsi_icons_floatMargin_right' => intval(sanitize_text_field($sfsi_icons_floatMargin_right)),
641
+ 'sfsi_disable_floaticons' => sanitize_text_field($sfsi_disable_floaticons),
642
+
643
+ 'sfsi_show_via_shortcode' => sanitize_text_field($sfsi_show_via_shortcode),
644
+
645
+ 'sfsi_show_via_afterposts' => sanitize_text_field($sfsi_show_via_afterposts)
646
+
647
+ );
648
+
649
+ update_option('sfsi_section9_options',serialize($up_option9));
650
+ header('Content-Type: application/json');
651
+ echo json_encode(array("success")); exit;
652
+ }
653
  /* upload custom icons images */
654
  /* get counts for admin section */
655
  function sfsi_getCounts()
libs/controllers/sfsi_floater_icons.php CHANGED
@@ -1,9 +1,10 @@
1
  <?php
2
  /* make icons float icons even widget is not active */
3
  function sfsi_frontFloter ($content) {
4
- $sfsi_section5= unserialize(get_option('sfsi_section5_options',false));
5
- $sfsi_section5['sfsi_icons_float'];
6
- if($sfsi_section5['sfsi_icons_float']=="yes") :
 
7
  ob_start();
8
  /* call the all icons function under sfsi_widget.php file */
9
  echo sfsi_check_visiblity(1);
1
  <?php
2
  /* make icons float icons even widget is not active */
3
  function sfsi_frontFloter ($content) {
4
+ $sfsi_section9= unserialize(get_option('sfsi_section9_options',false));
5
+ $sfsi_section9['sfsi_icons_float'];
6
+
7
+ if($sfsi_section9['sfsi_icons_float']=="yes") :
8
  ob_start();
9
  /* call the all icons function under sfsi_widget.php file */
10
  echo sfsi_check_visiblity(1);
libs/controllers/sfsi_frontpopUp.php CHANGED
@@ -62,42 +62,44 @@ function sfsi_check_PopUp($content)
62
  $time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popupOnceTime'];
63
  $time_popUp = $time_popUp*1000;
64
  ob_start();
65
- ?>
66
- <script>
67
- jQuery( document ).scroll(function( $ )
68
- {
69
- var y = jQuery(this).scrollTop();
70
- if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
71
- {
72
- if(jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height()-100)
73
- {
74
- jQuery('.sfsi_outr_div').css({'z-index':'9996',opacity:1,top:jQuery(window).scrollTop()+"px",position:"absolute"});
75
- jQuery('.sfsi_outr_div').fadeIn(200);
76
- jQuery('.sfsi_FrntInner_chg').fadeIn(200);
77
- }
78
- else{
79
- jQuery('.sfsi_outr_div').fadeOut();
80
- jQuery('.sfsi_FrntInner_chg').fadeOut();
81
- }
82
- }
83
- else
84
- {
85
- if(jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height()-3)
86
- {
87
- jQuery('.sfsi_outr_div').css({'z-index':'9996',opacity:1,top:jQuery(window).scrollTop()+200+"px",position:"absolute"});
88
- jQuery('.sfsi_outr_div').fadeIn(200);
89
- jQuery('.sfsi_FrntInner_chg').fadeIn(200);
90
- }
91
- else
92
- {
93
- jQuery('.sfsi_outr_div').fadeOut();
94
- jQuery('.sfsi_FrntInner_chg').fadeOut();
95
- }
96
- }
97
- });
98
- </script>
99
- <?php
100
- echo ob_get_clean();
 
 
101
  }
102
  if($sfsi_section7_options['sfsi_Shown_pop']=="LimitPopUp")
103
  {
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
  {
libs/controllers/sfsiocns_OnPosts.php CHANGED
@@ -298,6 +298,8 @@ function sfsi_footer_script()
298
  $sfsi_section6['sfsi_rectfbshare'] = 'no';
299
  }
300
 
 
 
301
  if($sfsi_section1['sfsi_facebook_display']=="yes" || ($sfsi_section6['sfsi_rectfb'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes") || ($sfsi_section6['sfsi_rectfbshare'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes"))
302
  {
303
  ?>
298
  $sfsi_section6['sfsi_rectfbshare'] = 'no';
299
  }
300
 
301
+ $sfsi_section6['sfsi_show_Onposts'] = isset($sfsi_section6['sfsi_show_Onposts']) && !empty($sfsi_section6['sfsi_show_Onposts']) ? $sfsi_section6['sfsi_show_Onposts'] : "no";
302
+
303
  if($sfsi_section1['sfsi_facebook_display']=="yes" || ($sfsi_section6['sfsi_rectfb'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes") || ($sfsi_section6['sfsi_rectfbshare'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes"))
304
  {
305
  ?>
libs/sfsi_Init_JqueryCss.php CHANGED
@@ -17,9 +17,9 @@ function theme_back_enqueue_script()
17
  }
18
 
19
  //including floating option css
20
- $option5= unserialize(get_option('sfsi_section5_options',false));
21
 
22
- if($option5['sfsi_disable_floaticons'] == 'yes')
23
  {
24
  wp_enqueue_style("disable_sfsi", SFSI_PLUGURL . 'css/disable_sfsi.css' );
25
  }
@@ -86,8 +86,8 @@ function theme_front_enqueue_script()
86
  wp_enqueue_style("SFSImainCss", SFSI_PLUGURL . 'css/sfsi-style.css', true);
87
 
88
  //including floating option css
89
- $option5= unserialize(get_option('sfsi_section5_options',false));
90
- if($option5['sfsi_disable_floaticons'] == 'yes')
91
  {
92
  wp_enqueue_style("disable_sfsi", SFSI_PLUGURL . 'css/disable_sfsi.css' );
93
  }
17
  }
18
 
19
  //including floating option css
20
+ $option9= unserialize(get_option('sfsi_section9_options',false));
21
 
22
+ if($option9['sfsi_disable_floaticons'] == 'yes')
23
  {
24
  wp_enqueue_style("disable_sfsi", SFSI_PLUGURL . 'css/disable_sfsi.css' );
25
  }
86
  wp_enqueue_style("SFSImainCss", SFSI_PLUGURL . 'css/sfsi-style.css', true);
87
 
88
  //including floating option css
89
+ $option9= unserialize(get_option('sfsi_section9_options',false));
90
+ if($option9['sfsi_disable_floaticons'] == 'yes')
91
  {
92
  wp_enqueue_style("disable_sfsi", SFSI_PLUGURL . 'css/disable_sfsi.css' );
93
  }
libs/sfsi_install_uninstall.php CHANGED
@@ -12,8 +12,7 @@ function sfsi_update_plugin()
12
  }
13
 
14
  //Install version
15
- update_option("sfsi_pluginVersion", "1.96");
16
-
17
 
18
  if(!get_option('sfsi_serverphpVersionnotification'))
19
  {
@@ -56,95 +55,35 @@ function sfsi_update_plugin()
56
  add_option("sfsi_languageNotice", "yes");
57
  }
58
 
59
- /* subscription form */
60
- $options8 = array('sfsi_form_adjustment'=>'yes',
61
- 'sfsi_form_height'=>'180',
62
- 'sfsi_form_width' =>'230',
63
- 'sfsi_form_border'=>'yes',
64
- 'sfsi_form_border_thickness'=>'1',
65
- 'sfsi_form_border_color'=>'#b5b5b5',
66
- 'sfsi_form_background'=>'#ffffff',
67
-
68
- 'sfsi_form_heading_text'=>'Get new posts by email',
69
- 'sfsi_form_heading_font'=>'Helvetica,Arial,sans-serif',
70
- 'sfsi_form_heading_fontstyle'=>'bold',
71
- 'sfsi_form_heading_fontcolor'=>'#000000',
72
- 'sfsi_form_heading_fontsize'=>'16',
73
- 'sfsi_form_heading_fontalign'=>'center',
74
-
75
- 'sfsi_form_field_text'=>'Enter your email',
76
- 'sfsi_form_field_font'=>'Helvetica,Arial,sans-serif',
77
- 'sfsi_form_field_fontstyle'=>'normal',
78
- 'sfsi_form_field_fontcolor'=>'#000000',
79
- 'sfsi_form_field_fontsize'=>'14',
80
- 'sfsi_form_field_fontalign'=>'center',
81
-
82
- 'sfsi_form_button_text'=>'Subscribe',
83
- 'sfsi_form_button_font'=>'Helvetica,Arial,sans-serif',
84
- 'sfsi_form_button_fontstyle'=>'bold',
85
- 'sfsi_form_button_fontcolor'=>'#000000',
86
- 'sfsi_form_button_fontsize'=>'16',
87
- 'sfsi_form_button_fontalign'=>'center',
88
- 'sfsi_form_button_background'=>'#dedede',
89
- );
90
- add_option('sfsi_section8_options', serialize($options8));
91
-
92
- /*Float Icon setting*/
93
- $option5 = unserialize(get_option('sfsi_section5_options',false));
94
- if(isset($option5) && !empty($option5) && !isset($option5['sfsi_icons_floatMargin_top']))
95
- {
96
- $option5['sfsi_icons_floatMargin_top'] = '';
97
- $option5['sfsi_icons_floatMargin_bottom'] = '';
98
- $option5['sfsi_icons_floatMargin_left'] = '';
99
- $option5['sfsi_icons_floatMargin_right'] = '';
100
- update_option('sfsi_section5_options', serialize($option5));
101
- }
102
-
103
- /*Youtube Channelid settings*/
104
- $option4 = unserialize(get_option('sfsi_section4_options',false));
105
- if(isset($option4) && !empty($option4) && !isset($option4['sfsi_youtube_channelId']))
106
- {
107
- $option4['sfsi_youtube_channelId'] = '';
108
- update_option('sfsi_section4_options', serialize($option4));
109
- }
110
-
111
- $option6= unserialize(get_option('sfsi_section6_options',false));
112
- if(isset($option6) && !empty($option6))
113
- {
114
- if(!isset($option6['sfsi_rectpinit']))
115
- {
116
- $option6['sfsi_rectpinit'] = 'no';
117
- }
118
- if(!isset($option6['sfsi_rectfbshare']))
119
- {
120
- $option6['sfsi_rectfbshare'] = 'no';
121
- }
122
- update_option('sfsi_section6_options', serialize($option6));
123
- }
124
-
125
  /*Extra important options*/
126
- $sfsi_instagram_sf_count = array(
127
- "date" => strtotime(date("Y-m-d")),
128
- "sfsi_sf_count" => "",
129
- "sfsi_instagram_count" => ""
130
- );
131
- add_option('sfsi_instagram_sf_count', serialize($sfsi_instagram_sf_count));
 
 
 
 
132
  $option4 = unserialize(get_option('sfsi_section4_options',false));
133
- if(isset($option4) && !empty($option4) && !isset($option4['sfsi_instagram_clientid']))
134
- {
135
- $option4['sfsi_instagram_clientid'] = '';
136
- $option4['sfsi_instagram_appurl'] = '';
137
- $option4['sfsi_instagram_token'] = '';
138
- }
139
 
140
- $option5 = unserialize(get_option('sfsi_section5_options',false));
141
- if(isset($option5) && !empty($option5) && !isset($option5['sfsi_custom_social_hide']))
142
  {
143
- $option5['sfsi_custom_social_hide'] = 'no';
144
- update_option('sfsi_section5_options', serialize($option5));
 
 
 
 
 
 
 
 
145
  }
146
 
147
  $option2 = unserialize(get_option('sfsi_section2_options',false));
 
148
  if(isset($option2) && !empty($option2))
149
  {
150
  if(!isset($option2['sfsi_youtubeusernameorid'])){
@@ -168,8 +107,166 @@ function sfsi_update_plugin()
168
 
169
  update_option('sfsi_section4_options', serialize($option4));
170
  update_option('sfsi_section2_options', serialize($option2));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
171
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  }
 
173
  function sfsi_activate_plugin()
174
  {
175
  add_option('sfsi_plugin_do_activation_redirect', true);
@@ -186,21 +283,23 @@ function sfsi_activate_plugin()
186
  add_option("show_premium_cumulative_count_notification", "yes");
187
  }
188
 
 
189
 
190
- $options1=array('sfsi_rss_display'=>'yes',
191
- 'sfsi_email_display'=>'yes',
192
- 'sfsi_facebook_display'=>'yes',
193
- 'sfsi_twitter_display'=>'yes',
194
- 'sfsi_google_display'=>'yes',
195
- 'sfsi_share_display'=>'no',
196
- 'sfsi_pinterest_display'=>'no',
197
- 'sfsi_instagram_display'=>'no',
198
- 'sfsi_linkedin_display'=>'no',
199
- 'sfsi_youtube_display'=>'no',
200
- 'sfsi_custom_display'=>'',
201
- 'sfsi_custom_files'=>''
202
- );
203
- add_option('sfsi_section1_options', serialize($options1));
 
204
 
205
  if(get_option('sfsi_feed_id') && get_option('sfsi_redirect_url'))
206
  {
@@ -213,182 +312,260 @@ function sfsi_activate_plugin()
213
  $sffeeds = SFSI_getFeedUrl();
214
  }
215
 
216
- /* Links and icons options */
217
- $options2=array('sfsi_rss_url'=>sfsi_get_bloginfo('rss2_url'),
218
- 'sfsi_rss_icons' =>'email',
219
- 'sfsi_email_url' =>$sffeeds->redirect_url,
220
- 'sfsi_facebookPage_option' =>'no',
221
- 'sfsi_facebookPage_url' =>'',
222
- 'sfsi_facebookLike_option' =>'yes',
223
- 'sfsi_facebookShare_option' =>'yes',
224
- 'sfsi_twitter_followme' =>'no',
225
- 'sfsi_twitter_followUserName'=>'',
226
- 'sfsi_twitter_aboutPage' =>'yes',
227
- 'sfsi_twitter_page' =>'no',
228
- 'sfsi_twitter_pageURL' =>'',
229
- 'sfsi_twitter_aboutPageText' =>'Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name',
230
- 'sfsi_google_page' =>'no',
231
- 'sfsi_google_pageURL' =>'',
232
- 'sfsi_googleLike_option' =>'yes',
233
- 'sfsi_googleShare_option' =>'yes',
234
- 'sfsi_youtube_pageUrl' =>'',
235
- 'sfsi_youtube_page' =>'no',
236
- 'sfsi_youtubeusernameorid' => '',
237
- 'sfsi_ytube_chnlid' => '',
238
- 'sfsi_youtube_follow' =>'no',
239
- 'sfsi_pinterest_page' =>'no',
240
- 'sfsi_pinterest_pageUrl' =>'',
241
- 'sfsi_pinterest_pingBlog' =>'',
242
- 'sfsi_instagram_page' =>'no',
243
- 'sfsi_instagram_pageUrl' =>'',
244
- 'sfsi_linkedin_page' =>'no',
245
- 'sfsi_linkedin_pageURL' =>'',
246
- 'sfsi_linkedin_follow' =>'no',
247
- 'sfsi_linkedin_followCompany'=>'',
248
- 'sfsi_linkedin_SharePage' =>'yes',
249
- 'sfsi_linkedin_recommendBusines' =>'no',
250
- 'sfsi_linkedin_recommendCompany' =>'',
251
- 'sfsi_linkedin_recommendProductId'=>'',
252
- 'sfsi_CustomIcon_links' =>''
253
- );
254
- add_option('sfsi_section2_options', serialize($options2));
255
-
256
- /* Design and animation option */
257
- $options3=array('sfsi_mouseOver'=>'no',
258
- 'sfsi_mouseOver_effect'=>'fade_in',
259
- 'sfsi_shuffle_icons'=>'no',
260
- 'sfsi_shuffle_Firstload'=>'no',
261
- 'sfsi_shuffle_interval'=>'no',
262
- 'sfsi_shuffle_intervalTime'=>'',
263
- 'sfsi_actvite_theme'=>'default' );
264
- add_option('sfsi_section3_options', serialize($options3));
265
-
266
- /* display counts options */
267
- $options4=array('sfsi_display_counts'=>'no',
268
- 'sfsi_email_countsDisplay'=>'no',
269
- 'sfsi_email_countsFrom'=>'source',
270
- 'sfsi_email_manualCounts'=>'20',
271
- 'sfsi_rss_countsDisplay'=>'no',
272
- 'sfsi_rss_manualCounts'=>'20',
273
- 'sfsi_facebook_PageLink'=>'',
274
- 'sfsi_facebook_countsDisplay'=>'no',
275
- 'sfsi_facebook_countsFrom'=>'manual',
276
- 'sfsi_facebook_manualCounts'=>'20',
277
- 'sfsi_twitter_countsDisplay'=>'no',
278
- 'sfsi_twitter_countsFrom'=>'manual',
279
- 'sfsi_twitter_manualCounts'=>'20',
280
- 'sfsi_google_api_key'=>'',
281
- 'sfsi_google_countsDisplay'=>'no',
282
- 'sfsi_google_countsFrom'=>'manual',
283
- 'sfsi_google_manualCounts'=>'20',
284
- 'sfsi_linkedIn_countsDisplay'=>'no',
285
- 'sfsi_linkedIn_countsFrom'=>'manual',
286
- 'sfsi_linkedIn_manualCounts'=>'20',
287
- 'ln_api_key'=>'',
288
- 'ln_secret_key'=>'',
289
- 'ln_oAuth_user_token'=>'',
290
- 'ln_company'=>'',
291
- 'sfsi_youtubeusernameorid'=>'name',
292
- 'sfsi_youtube_user'=>'',
293
- 'sfsi_youtube_channelId' =>'',
294
- 'sfsi_ytube_chnlid'=>'',
295
- 'sfsi_youtube_countsDisplay'=>'no',
296
- 'sfsi_youtube_countsFrom'=>'manual',
297
- 'sfsi_youtube_manualCounts'=>'20',
298
- 'sfsi_pinterest_countsDisplay'=>'no',
299
- 'sfsi_pinterest_countsFrom'=>'manual',
300
- 'sfsi_pinterest_manualCounts'=>'20',
301
- 'sfsi_pinterest_user'=>'',
302
- 'sfsi_pinterest_board'=>'',
303
-
304
- 'sfsi_instagram_countsFrom'=>'manual',
305
- 'sfsi_instagram_countsDisplay'=>'no',
306
- 'sfsi_instagram_manualCounts'=>'20',
307
 
308
- 'sfsi_instagram_User'=>'',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
 
310
- 'sfsi_shares_countsDisplay'=>'no',
311
- 'sfsi_shares_countsFrom'=>'manual',
312
- 'sfsi_shares_manualCounts'=>'20'
313
- );
314
- add_option('sfsi_section4_options', serialize($options4));
 
 
 
 
 
 
 
315
 
316
- $options5=array('sfsi_icons_size'=>'40',
317
- 'sfsi_icons_spacing'=>'5',
318
- 'sfsi_icons_Alignment'=>'left',
319
- 'sfsi_icons_perRow'=>'5',
320
- 'sfsi_icons_ClickPageOpen'=>'yes',
321
- 'sfsi_icons_float'=>'no',
322
- 'sfsi_disable_floaticons'=>'no',
323
- 'sfsi_icons_floatPosition'=>'center-right',
324
- 'sfsi_icons_floatMargin_top'=>'',
325
- 'sfsi_icons_floatMargin_bottom'=>'',
326
- 'sfsi_icons_floatMargin_left'=>'',
327
- 'sfsi_icons_floatMargin_right'=>'',
328
- 'sfsi_icons_stick'=>'no',
329
- 'sfsi_rssIcon_order'=>'1',
330
- 'sfsi_emailIcon_order'=>'2',
331
- 'sfsi_facebookIcon_order'=>'3',
332
- 'sfsi_googleIcon_order'=>'4',
333
- 'sfsi_twitterIcon_order'=>'5',
334
- 'sfsi_shareIcon_order'=>'6',
335
- 'sfsi_youtubeIcon_order'=>'7',
336
- 'sfsi_pinterestIcon_order'=>'8',
337
- 'sfsi_linkedinIcon_order'=>'9',
338
- 'sfsi_instagramIcon_order'=>'10',
339
- 'sfsi_CustomIcons_order'=>'',
340
- 'sfsi_rss_MouseOverText'=>'RSS',
341
- 'sfsi_email_MouseOverText'=>'Follow by Email',
342
- 'sfsi_twitter_MouseOverText'=>'Twitter',
343
- 'sfsi_facebook_MouseOverText'=>'Facebook',
344
- 'sfsi_google_MouseOverText'=>'Google+',
345
- 'sfsi_linkedIn_MouseOverText'=>'LinkedIn',
346
- 'sfsi_pinterest_MouseOverText'=>'Pinterest',
347
- 'sfsi_instagram_MouseOverText'=>'Instagram',
348
- 'sfsi_youtube_MouseOverText'=>'YouTube',
349
- 'sfsi_share_MouseOverText'=>'Share',
350
- 'sfsi_custom_MouseOverTexts'=>'',
351
- 'sfsi_custom_social_hide' => 'no'
 
 
 
 
 
 
 
 
 
 
 
 
 
352
  );
353
- add_option('sfsi_section5_options', serialize($options5));
 
354
 
355
- /* post options */
356
- $options6=array('sfsi_show_Onposts'=>'no',
357
- 'sfsi_show_Onbottom'=>'no',
358
- 'sfsi_icons_postPositon'=>'source',
359
- 'sfsi_icons_alignment'=>'center-right',
360
- 'sfsi_rss_countsDisplay'=>'no',
361
- 'sfsi_textBefor_icons'=>'Please follow and like us:',
362
- 'sfsi_icons_DisplayCounts'=>'no',
363
- 'sfsi_rectsub'=>'yes',
364
- 'sfsi_rectfb'=>'yes',
365
- 'sfsi_rectgp'=>'yes',
366
- 'sfsi_rectshr'=>'no',
367
- 'sfsi_recttwtr'=>'yes',
368
- 'sfsi_rectpinit'=>'yes',
369
- 'sfsi_rectfbshare'=>'yes'
370
- );
371
- add_option('sfsi_section6_options', serialize($options6));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
372
 
373
- /* icons pop options */
374
- $options7=array('sfsi_show_popup'=>'no',
375
- 'sfsi_popup_text'=>'Enjoy this blog? Please spread the word :)',
376
- 'sfsi_popup_background_color'=>'#eff7f7',
377
- 'sfsi_popup_border_color'=>'#f3faf2',
378
- 'sfsi_popup_border_thickness'=>'1',
379
- 'sfsi_popup_border_shadow'=>'yes',
380
- 'sfsi_popup_font'=>'Helvetica,Arial,sans-serif',
381
- 'sfsi_popup_fontSize'=>'30',
382
- 'sfsi_popup_fontStyle'=>'normal',
383
- 'sfsi_popup_fontColor'=>'#000000',
384
- 'sfsi_Show_popupOn'=>'none',
385
- 'sfsi_Show_popupOn_PageIDs'=>'',
386
- 'sfsi_Shown_pop'=>'ETscroll',
387
- 'sfsi_Shown_popupOnceTime'=>'',
388
- 'sfsi_Shown_popuplimitPerUserTime'=>'',
389
- );
390
- add_option('sfsi_section7_options', serialize($options7));
 
 
391
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
392
  /*Some additional option added*/
393
  update_option('sfsi_feed_id',sanitize_text_field($sffeeds->feed_id));
394
  update_option('sfsi_redirect_url',esc_url($sffeeds->redirect_url));
@@ -399,6 +576,7 @@ function sfsi_activate_plugin()
399
 
400
  /*Changes in option 2*/
401
  $get_option2 = unserialize(get_option('sfsi_section2_options',false));
 
402
  $get_option2['sfsi_email_url'] = $sffeeds->redirect_url;
403
  update_option('sfsi_section2_options', serialize($get_option2));
404
 
@@ -416,6 +594,8 @@ function sfsi_activate_plugin()
416
  }
417
  /* end function */
418
 
 
 
419
  /* deactivate plugin */
420
  function sfsi_deactivate_plugin()
421
  {
@@ -455,6 +635,7 @@ function sfsi_Unistall_plugin()
455
  delete_option('sfsi_section6_options');
456
  delete_option('sfsi_section7_options');
457
  delete_option('sfsi_section8_options');
 
458
  delete_option('sfsi_feed_id');
459
  delete_option('sfsi_redirect_url');
460
  delete_option('sfsi_footer_sec');
12
  }
13
 
14
  //Install version
15
+ update_option("sfsi_pluginVersion", "2.00");
 
16
 
17
  if(!get_option('sfsi_serverphpVersionnotification'))
18
  {
55
  add_option("sfsi_languageNotice", "yes");
56
  }
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  /*Extra important options*/
59
+ if(!get_option('sfsi_instagram_sf_count')){
60
+
61
+ $sfsi_instagram_sf_count = array(
62
+ "date" => strtotime(date("Y-m-d")),
63
+ "sfsi_sf_count" => "",
64
+ "sfsi_instagram_count" => ""
65
+ );
66
+ add_option('sfsi_instagram_sf_count', serialize($sfsi_instagram_sf_count));
67
+ }
68
+
69
  $option4 = unserialize(get_option('sfsi_section4_options',false));
 
 
 
 
 
 
70
 
71
+ if(isset($option4) && !empty($option4))
 
72
  {
73
+ if(!isset($option4['sfsi_instagram_clientid'])){
74
+ $option4['sfsi_instagram_clientid'] = '';
75
+ $option4['sfsi_instagram_appurl'] = '';
76
+ $option4['sfsi_instagram_token'] = '';
77
+ }
78
+
79
+ /*Youtube Channelid settings*/
80
+ if(!isset($option4['sfsi_youtube_channelId'])){
81
+ $option4['sfsi_youtube_channelId'] = '';
82
+ }
83
  }
84
 
85
  $option2 = unserialize(get_option('sfsi_section2_options',false));
86
+
87
  if(isset($option2) && !empty($option2))
88
  {
89
  if(!isset($option2['sfsi_youtubeusernameorid'])){
107
 
108
  update_option('sfsi_section4_options', serialize($option4));
109
  update_option('sfsi_section2_options', serialize($option2));
110
+
111
+
112
+ $option7 = unserialize(get_option('sfsi_section7_options',false));
113
+ $option7 = isset($option7) && !empty($option7) ? $option7 : array();
114
+
115
+ if(!isset($option7['sfsi_show_popup'])) { $option7['sfsi_show_popup'] = 'no'; }
116
+ if(!isset($option7['sfsi_popup_text'])) { $option7['sfsi_popup_text'] = 'Enjoy this blog? Please spread the word :)'; }
117
+ if(!isset($option7['sfsi_popup_background_color'])) { $option7['sfsi_popup_background_color'] = '#eff7f7'; }
118
+ if(!isset($option7['sfsi_popup_border_color'])) { $option7['sfsi_popup_border_color'] = '#f3faf2'; }
119
+ if(!isset($option7['sfsi_popup_border_thickness'])) { $option7['sfsi_popup_border_thickness'] = '1'; }
120
+ if(!isset($option7['sfsi_popup_border_shadow'])) { $option7['sfsi_popup_border_shadow'] = 'yes'; }
121
+ if(!isset($option7['sfsi_popup_font'])) { $option7['sfsi_popup_font'] = 'Helvetica,Arial,sans-serif';}
122
+ if(!isset($option7['sfsi_popup_fontSize'])) { $option7['sfsi_popup_fontSize'] = '30';}
123
+ if(!isset($option7['sfsi_popup_fontStyle'])) { $option7['sfsi_popup_fontStyle'] = 'normal';}
124
+ if(!isset($option7['sfsi_popup_fontColor'])) { $option7['sfsi_popup_fontColor'] = '#000000';}
125
+ if(!isset($option7['sfsi_Show_popupOn'])) { $option7['sfsi_Show_popupOn'] = 'none';}
126
+ if(!isset($option7['sfsi_Show_popupOn_PageIDs'])) { $option7['sfsi_Show_popupOn_PageIDs'] = '';}
127
+ if(!isset($option7['sfsi_Shown_popupOnceTime'])) { $option7['sfsi_Shown_popupOnceTime'] = '';}
128
+ if(!isset($option7['sfsi_Shown_popuplimitPerUserTime'])) { $option7['sfsi_Shown_popuplimitPerUserTime'] = '';}
129
+
130
+ update_option('sfsi_section7_options', serialize($option7));
131
+
132
+ /* subscription form */
133
+ $option8 = unserialize(get_option('sfsi_section8_options',false));
134
+ $option8 = isset($option8) && !empty($option8) ? $option8 : array();
135
+
136
+ if(!isset($option8['sfsi_form_adjustment'])) { $option8['sfsi_form_adjustment'] = 'yes';}
137
+ if(!isset($option8['sfsi_form_height'])) { $option8['sfsi_form_height'] = '180';}
138
+ if(!isset($option8['sfsi_form_width'])) { $option8['sfsi_form_width'] = '230';}
139
+ if(!isset($option8['sfsi_form_border'])) { $option8['sfsi_form_border'] = 'yes';}
140
+ if(!isset($option8['sfsi_form_border_thickness'])) { $option8['sfsi_form_border_thickness'] = '1';}
141
+ if(!isset($option8['sfsi_form_border_color'])) { $option8['sfsi_form_border_color'] = '#b5b5b5';}
142
+ if(!isset($option8['sfsi_form_background'])) { $option8['sfsi_form_background'] = '#ffffff';} //
143
+ if(!isset($option8['sfsi_form_heading_text'])) { $option8['sfsi_form_heading_text'] = 'Get new posts by email';}
144
+ if(!isset($option8['sfsi_form_heading_font'])) { $option8['sfsi_form_heading_font'] = 'Helvetica,Arial,sans-serif';}
145
+ if(!isset($option8['sfsi_form_heading_fontstyle'])) { $option8['sfsi_form_heading_fontstyle'] = 'bold';}
146
+ if(!isset($option8['sfsi_form_heading_fontcolor'])) { $option8['sfsi_form_heading_fontcolor'] = '#000000';}
147
+ if(!isset($option8['sfsi_form_heading_fontsize'])) { $option8['sfsi_form_heading_fontsize'] = '16';}
148
+ if(!isset($option8['sfsi_form_heading_fontalign'])) { $option8['sfsi_form_heading_fontalign'] = 'center';}
149
+ if(!isset($option8['sfsi_form_field_text'])) { $option8['sfsi_form_field_text'] = 'Enter your email';}
150
+ if(!isset($option8['sfsi_form_field_font'])) { $option8['sfsi_form_field_font'] = 'Helvetica,Arial,sans-serif';}
151
+ if(!isset($option8['sfsi_form_field_fontstyle'])) { $option8['sfsi_form_field_fontstyle'] = 'normal';}
152
+ if(!isset($option8['sfsi_form_field_fontcolor'])) { $option8['sfsi_form_field_fontcolor'] = '#000000';}
153
+ if(!isset($option8['sfsi_form_field_fontsize'])) { $option8['sfsi_form_field_fontsize'] = '14';}
154
+ if(!isset($option8['sfsi_form_field_fontalign'])) { $option8['sfsi_form_field_fontalign'] = 'center';}
155
+ if(!isset($option8['sfsi_form_button_text'])) { $option8['sfsi_form_button_text'] = 'Subscribe';}
156
+ if(!isset($option8['sfsi_form_button_font'])) { $option8['sfsi_form_button_font'] = 'Helvetica,Arial,sans-serif';}
157
+ if(!isset($option8['sfsi_form_button_fontstyle'])) { $option8['sfsi_form_button_fontstyle'] = 'bold';}
158
+ if(!isset($option8['sfsi_form_button_fontcolor'])) { $option8['sfsi_form_button_fontcolor'] = '#000000';}
159
+ if(!isset($option8['sfsi_form_button_fontsize'])) { $option8['sfsi_form_button_fontsize'] = '16';}
160
+ if(!isset($option8['sfsi_form_button_fontalign'])) { $option8['sfsi_form_button_fontalign'] = 'center';}
161
+ if(!isset($option8['sfsi_form_button_background'])) { $option8['sfsi_form_button_background'] = '#dedede';}
162
+
163
+ update_option('sfsi_section8_options', serialize($option8));
164
+
165
+
166
+ /*Float Icon setting*/
167
+ $option5 = unserialize(get_option('sfsi_section5_options',false));
168
+
169
+ $sfsi_show_via_widget = 'no';
170
+
171
+ $sfsi_icons_float = 'no';
172
+ $sfsi_icons_floatPosition = 'center-right';
173
+ $sfsi_icons_floatMargin_top = '';
174
+ $sfsi_icons_floatMargin_bottom = '';
175
+ $sfsi_icons_floatMargin_left = '';
176
+ $sfsi_icons_floatMargin_right = '';
177
+ $sfsi_disable_floaticons = 'no';
178
+
179
+ $sfsi_show_via_shortcode = 'no';
180
+ $sfsi_show_via_afterposts = 'no';
181
+
182
+
183
+ if(isset($option5) && !empty($option5))
184
+ {
185
+ if(isset($option5['sfsi_icons_float'])){
186
+ $sfsi_icons_float = $option5['sfsi_icons_float'];
187
+ unset($option5['sfsi_icons_float']);
188
+ }
189
+
190
+ if(isset($option5['sfsi_icons_floatPosition'])){
191
+ $sfsi_icons_floatPosition = $option5['sfsi_icons_floatPosition'];
192
+ unset($option5['sfsi_icons_floatPosition']);
193
+ }
194
+
195
+ if(isset($option5['sfsi_icons_floatMargin_top'])){
196
+ $sfsi_icons_floatMargin_top = $option5['sfsi_icons_floatMargin_top'];
197
+ unset($option5['sfsi_icons_floatMargin_top']);
198
+ }
199
+
200
+ if(isset($option5['sfsi_icons_floatMargin_bottom'])){
201
+ $sfsi_icons_floatMargin_bottom = $option5['sfsi_icons_floatMargin_bottom'];
202
+ unset($option5['sfsi_icons_floatMargin_bottom']);
203
+ }
204
+
205
+ if(isset($option5['sfsi_icons_floatMargin_left'])){
206
+ $sfsi_icons_floatMargin_left = $option5['sfsi_icons_floatMargin_left'];
207
+ unset($option5['sfsi_icons_floatMargin_left']);
208
+ }
209
+
210
+ if(isset($option5['sfsi_icons_floatMargin_right'])){
211
+ $sfsi_icons_floatMargin_right = $option5['sfsi_icons_floatMargin_right'];
212
+ unset($option5['sfsi_icons_floatMargin_right']);
213
+ }
214
+
215
+ if(isset($option5['sfsi_disable_floaticons'])){
216
+ $sfsi_disable_floaticons = $option5['sfsi_disable_floaticons'];
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));
226
 
227
+ $option6= unserialize(get_option('sfsi_section6_options',false));
228
+
229
+ if(isset($option6) && !empty($option6))
230
+ {
231
+ if(!isset($option6['sfsi_rectpinit']))
232
+ {
233
+ $option6['sfsi_rectpinit'] = 'no';
234
+ }
235
+ if(!isset($option6['sfsi_rectfbshare']))
236
+ {
237
+ $option6['sfsi_rectfbshare'] = 'no';
238
+ }
239
+
240
+ update_option('sfsi_section6_options', serialize($option6));
241
+ }
242
+
243
+
244
+ // Setting default values for Question 3
245
+ $option9 = unserialize(get_option('sfsi_section9_options',false));
246
+ $option9 = isset($option9) && !empty($option9) ? $option9 : array();
247
+
248
+ if(!isset($option9['sfsi_show_via_widget'])){
249
+
250
+ if(class_exists('Sfsi_Widget')){
251
+ $widegtObj = new Sfsi_Widget();
252
+ $sfsi_show_via_widget = is_active_widget(false,false,$widegtObj->id_base,true) ? "yes" : "no";
253
+ }
254
+ $option9['sfsi_show_via_widget'] = $sfsi_show_via_widget;
255
+ }
256
+
257
+ if(!isset($option9['sfsi_show_via_shortcode'])) { $option9['sfsi_show_via_shortcode'] = $sfsi_show_via_shortcode;}
258
+ if(!isset($option9['sfsi_show_via_afterposts'])) { $option9['sfsi_show_via_afterposts'] = $sfsi_show_via_afterposts;}
259
+ if(!isset($option9['sfsi_icons_float'])) { $option9['sfsi_icons_float'] = $sfsi_icons_float;}
260
+ if(!isset($option9['sfsi_icons_floatPosition'])) { $option9['sfsi_icons_floatPosition'] = $sfsi_icons_floatPosition;}
261
+ if(!isset($option9['sfsi_icons_floatMargin_top'])) { $option9['sfsi_icons_floatMargin_top'] = $sfsi_icons_floatMargin_top;}
262
+ if(!isset($option9['sfsi_icons_floatMargin_bottom'])){ $option9['sfsi_icons_floatMargin_bottom'] = $sfsi_icons_floatMargin_bottom;}
263
+ if(!isset($option9['sfsi_icons_floatMargin_left'])) { $option9['sfsi_icons_floatMargin_left'] = $sfsi_icons_floatMargin_left;}
264
+ if(!isset($option9['sfsi_icons_floatMargin_right'])) { $option9['sfsi_icons_floatMargin_right'] = $sfsi_icons_floatMargin_right;}
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);
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',
297
+ 'sfsi_youtube_display'=>'no',
298
+ 'sfsi_custom_display'=>'',
299
+ 'sfsi_custom_files'=>''
300
+ );
301
+ add_option('sfsi_section1_options', serialize($options1));
302
+ }
303
 
304
  if(get_option('sfsi_feed_id') && get_option('sfsi_redirect_url'))
305
  {
312
  $sffeeds = SFSI_getFeedUrl();
313
  }
314
 
315
+ if(!get_option('sfsi_section2_options')){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316
 
317