Social Share Icons & Social Share Buttons - Version 1.8

Version Description

  • Plugin also allows a subscription form now (question 8)!
Download this release

Release Info

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

Code changes from version 1.7 to 1.8

css/images/select-arrow.png ADDED
Binary file
css/sfsi-style.css CHANGED
@@ -2373,7 +2373,7 @@ ul.tab_3_list li span {
2373
  .tab8 .save_button {
2374
  padding-top: 0px;
2375
  }
2376
- .tab8 .save_button a {
2377
  padding: 16px 0;
2378
  }
2379
  .tab2 .sfsiplus_twitter_section .twt_fld input.add, .tab2 .sfsiplus_twitter_section .twt_fld_2 textarea.add_txt {
@@ -3912,4 +3912,262 @@ label.sfsiplus_toglpstpgsbttl { float: left; margin-top: 5px !important}
3912
  }
3913
  .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr {
3914
  overflow: visible;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3915
  }
2373
  .tab8 .save_button {
2374
  padding-top: 0px;
2375
  }
2376
+ .tab10 .save_button a {
2377
  padding: 16px 0;
2378
  }
2379
  .tab2 .sfsiplus_twitter_section .twt_fld input.add, .tab2 .sfsiplus_twitter_section .twt_fld_2 textarea.add_txt {
3912
  }
3913
  .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr {
3914
  overflow: visible;
3915
+ }
3916
+ /*tab 9 css*/
3917
+ .tab9 .sfsi_plus_tab8_container
3918
+ {
3919
+ width: 100%; float: left;
3920
+ }
3921
+ .tab9 .sfsi_plus_tab8_subcontainer {
3922
+ float: left;
3923
+ padding: 20px 0;
3924
+ width: 100%;
3925
+ }
3926
+ .tab9 h3.sfsi_plus_section_title {
3927
+ font-weight: bold;
3928
+ }
3929
+ .tab9 .like_pop_box {
3930
+ width: 100%;
3931
+ margin: 35px auto auto;
3932
+ position: relative;
3933
+ text-align: center;
3934
+ }
3935
+ .tab9 .like_pop_box h2 {
3936
+ font-family: helveticabold;
3937
+ text-align: center;
3938
+ color: #414951;
3939
+ font-size: 26px;
3940
+ }
3941
+ .tab9 .sfsi_plus_subscribe_Popinner {
3942
+ display: inline-block;
3943
+ padding: 18px 20px;
3944
+ -webkit-box-shadow: 0 0 5px #ccc;
3945
+ border: 1px solid #ededed;
3946
+ background: #FFF;
3947
+ position: relative;
3948
+ }
3949
+ .tab9 .sfsi_plus_subscribe_Popinner .form-overlay {
3950
+ height: 100%;
3951
+ left: 0;
3952
+ position: absolute;
3953
+ top: 0;
3954
+ width: 100%;
3955
+ }
3956
+ .tab9 .like_pop_box .sfsi_plus_subscribe_Popinner {
3957
+ box-shadow: 0 0 5px #ccc;
3958
+ }
3959
+ .tab9 .like_pop_box .sfsi_plus_subscribe_Popinner h5 {
3960
+ margin: 0 0 10px;
3961
+ padding: 0;
3962
+ color: #414951;
3963
+ font-size: 22px;
3964
+ text-align: center;
3965
+ }
3966
+ .tab9 .sfsi_plus_subscribe_Popinner h5 {
3967
+ margin: 0 0 10px;
3968
+ padding: 0;
3969
+ color: #414951;
3970
+ font-size: 18px;
3971
+ text-align: center;
3972
+ }
3973
+ .tab9 .sfsi_plus_subscription_form_field {
3974
+ float: left;
3975
+ margin: 5px 0;
3976
+ width: 100%;
3977
+ }
3978
+ .tab9 .sfsi_plus_subscription_form_field input {
3979
+ padding: 10px 0px;
3980
+ text-align: center;
3981
+ width: 100%;
3982
+ }
3983
+ .tab9 .sfsi_plus_tab8_subcontainer label.sfsi_plus_label_text {
3984
+ float: left;
3985
+ margin: 10px 0;
3986
+ width: 100%;
3987
+ }
3988
+ .tab9 ul.sfsi_plus_form_info {
3989
+ list-style: none !important;
3990
+ margin-left: 32px;
3991
+ }
3992
+ .tab9 ul.sfsi_plus_form_info li {
3993
+ margin: 3px 0;
3994
+ }
3995
+ .tab9 .sfsi_plus_subscription_html {
3996
+ background-color: #e5e5e5;
3997
+ float: left;
3998
+ margin: 12px 0 0 30px;
3999
+ width: 90%;
4000
+ }
4001
+ .tab9 .sfsi_plus_seprater
4002
+ {
4003
+ border-bottom: 1px solid #ccc;
4004
+ }
4005
+ .tab9 .sfsi_plus_tab8_subcontainer h5.sfsi_plus_section_subtitle {
4006
+ float: left;
4007
+ font-size: 18px;
4008
+ margin: 5px 0;
4009
+ width: 100%;
4010
+ }
4011
+ .tab9 .sfsi_plus_left_container {
4012
+ margin-top: 30px;
4013
+ text-align: center;
4014
+ width: 24%;
4015
+ display: inline-block;
4016
+ }
4017
+ .tab9 .sfsi_plus_right_container {
4018
+ display: inline-block;
4019
+ margin-top: 30px;
4020
+ padding: 0 20px;
4021
+ vertical-align: top;
4022
+ width: 72%;
4023
+ }
4024
+ .tab9 .row_tab {
4025
+ display: inline-block;
4026
+ margin-bottom: 30px;
4027
+ width: 100%;
4028
+ }
4029
+ .tab9 .row_tab label {
4030
+ color: #5a6570;
4031
+ font-size: 16px;
4032
+ }
4033
+ .tab9 .row_tab div.sfsi_plus_field{
4034
+ display: inline-block;
4035
+ vertical-align: middle;
4036
+ width: auto;
4037
+ margin-right: 25px;
4038
+ }
4039
+ .tab9 .color_box {
4040
+ width: 40px;
4041
+ height: 34px;
4042
+ border: 3px solid #fff;
4043
+ box-shadow: 1px 2px 2px #ccc;
4044
+ float: right;
4045
+ position: relative;
4046
+ margin-left: 13px;
4047
+ }
4048
+ .tab9 .color_box1 {
4049
+ width: 100%;
4050
+ height: 34px;
4051
+ background: #5a6570;
4052
+ box-shadow: 1px -2px 15px -2px #d3d3d3 inset;
4053
+ }
4054
+ .tab9 .corner {
4055
+ width: 10px;
4056
+ height: 10px;
4057
+ background: #fff;
4058
+ position: absolute;
4059
+ right: 0;
4060
+ bottom: 0;
4061
+ }
4062
+ .tab9 .sfsi_plus_right_container label {
4063
+ color: #5a6570;
4064
+ font-size: 18px;
4065
+ }
4066
+ .tab9 label.sfsi_plus_heding {
4067
+ display: inline-block;
4068
+ font-weight: bold;
4069
+ padding-top: 10px;
4070
+ width: 303px;
4071
+ }
4072
+ .tab9 .border_shadow {
4073
+ display: inline-block;
4074
+ vertical-align: top;
4075
+ }
4076
+ .tab9 .border_shadow li {
4077
+ display: inline-block;
4078
+ vertical-align: top;
4079
+ padding-right: 20px;
4080
+ }
4081
+ .tab9 .border_shadow li span {
4082
+ vertical-align: middle;
4083
+ }
4084
+ .tab9 .border_shadow .radio{
4085
+ margin-right:5px;
4086
+ }
4087
+ .tab9 .sfsi_plus_field .rec-inp {
4088
+ background: #e5e5e5 none repeat scroll 0 0;
4089
+ height: 44px;
4090
+ text-align: center;
4091
+ width: 54px;
4092
+ }
4093
+ .tab9 .pix {
4094
+ color: #5a6570;
4095
+ font-size: 18px;
4096
+ padding-left: 10px;
4097
+ vertical-align: middle;
4098
+ }
4099
+ .tab9 .sfsi_plus_heding.autowidth {
4100
+ width: auto;
4101
+ margin-right: 15px;
4102
+ }
4103
+ .tab9 .sfsi_plus_heding.fixwidth {
4104
+ width: 80px;
4105
+ }
4106
+ .tab9 .small {
4107
+ background-color: #e5e5e5;
4108
+ height: 44px;
4109
+ width: 200px;
4110
+ }
4111
+ .tab9 .small.new-inp {
4112
+ background-color: #e5e5e5;
4113
+ height: 44px;
4114
+ width: 277px;
4115
+ }
4116
+ .tab9 .small.color-code {
4117
+ width: 138px !important;
4118
+ }
4119
+ .tab9 .select-same {
4120
+ border: 1px solid #d6d6d6;
4121
+ height: 47px !important;
4122
+ width: 171px;
4123
+ appearance:none;
4124
+ -moz-appearance:none;
4125
+ -webkit-appearance:none;
4126
+ background-image: url(images/select-arrow.png);
4127
+ background-repeat:no-repeat;
4128
+ background-position:right 15px center;
4129
+ }
4130
+ .tab9 .sfsi_plus_same_width {
4131
+ display: inline-block;
4132
+ width: 100px !important;
4133
+ }
4134
+ .sfsi_plus_subscribe_Popinner .sfsi_plus_highlight {
4135
+ border: 3px solid red !important;
4136
+ }
4137
+ .sfsi_plus_subscription_html xmp {
4138
+ display: block;
4139
+ padding: 0 10px;
4140
+ white-space: pre-line;
4141
+ word-wrap: break-word;
4142
+ }
4143
+ @media (max-width:1160px) {
4144
+ .sfsi_plus_subscription_html xmp {
4145
+ display: block;
4146
+ padding: 0 10px;
4147
+ white-space: pre-line;
4148
+ word-wrap: break-word;
4149
+ }
4150
+ }
4151
+ @media (max-width:1350px) {
4152
+ .tab9 .sfsi_plus_left_container {
4153
+ width: 100% !important;
4154
+ }
4155
+
4156
+ .tab9 .sfsi_plus_right_container {
4157
+ width: 100%;
4158
+ }
4159
+
4160
+ .tab9 .border_shadow {
4161
+ margin-top: 10px;
4162
+ }
4163
+
4164
+ .tab9 .row_tab div.sfsi_plus_field {
4165
+ margin-bottom: 10px;
4166
+ }
4167
+ }
4168
+ @media (max-width:770px) {
4169
+ #sfsi_plus_form_heading_fontstyle {
4170
+ margin-left: 19px !important;
4171
+ margin-top: 10px !important;
4172
+ }
4173
  }
images/notification-close.png ADDED
Binary file
js/custom-admin.js CHANGED
@@ -9,16 +9,15 @@ function sfsi_plus_update_index() {
9
  SFSI(this).find("label").html("Custom " + cntt + ":"), cntt++;
10
  });
11
  }
12
-
13
- function sfsipluscollapse(s) {
14
  var i = !0, e = SFSI(s).closest("div.ui-accordion-content").prev("h3.ui-accordion-header"), t = SFSI(s).closest("div.ui-accordion-content").first();
15
  e.toggleClass("ui-corner-all", i).toggleClass("accordion-header-active ui-state-active ui-corner-top", !i).attr("aria-selected", (!i).toString()),
16
  e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", i).toggleClass("ui-icon-triangle-1-s", !i),
17
  t.toggleClass("accordion-content-active", !i), i ? t.slideUp() :t.slideDown();
18
  }
19
-
20
- function sfsi_plus_delete_CusIcon(s, i) {
21
-
22
  sfsiplus_beForeLoad();
23
  var e = {
24
  action:"plus_deleteIcons",
@@ -47,20 +46,20 @@ function sfsi_plus_delete_CusIcon(s, i) {
47
  }
48
  });
49
  }
50
-
51
- function plus_update_Sec5Iconorder() {
52
  SFSI("ul.plus_share_icon_order").children("li").each(function() {
53
  SFSI(this).attr("data-index", SFSI(this).index() + 1);
54
  });
55
  }
56
-
57
- function sfsi_plus_section_Display(s, i) {
58
  "hide" == i ? (SFSI("." + s + " :input").prop("disabled", !0), SFSI("." + s + " :button").prop("disabled", !0),
59
  SFSI("." + s).hide()) :(SFSI("." + s + " :input").removeAttr("disabled", !0), SFSI("." + s + " :button").removeAttr("disabled", !0),
60
  SFSI("." + s).show());
61
  }
62
-
63
- function sfsi_plus_depened_sections() {
64
  if ("sfsi" == SFSI("input[name='sfsi_plus_rss_icons']:checked").val()) {
65
  for (i = 0; 16 > i; i++) {
66
  var s = i + 1, e = 74 * i;
@@ -133,11 +132,10 @@ function sfsi_plus_depened_sections() {
133
  SFSI("input[name='sfsi_plus_linkedin_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_linkedin_section", "show") :sfsi_plus_section_Display("sfsiplus_linkedin_section", "hide"),
134
  SFSI("input[element-type='sfsiplus-cusotm-icon']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_custom_section", "show") :sfsi_plus_section_Display("sfsiplus_custom_section", "hide");
135
  }
136
-
137
- function PlusCustomIConSectionsUpdate() {
138
  sfsi_plus_section_Display("counter".ele, show);
139
  }
140
-
141
  // Upload Custom Skin {Monad}
142
  function plus_sfsi_customskin_upload(s, ref)
143
  {
@@ -146,7 +144,6 @@ function plus_sfsi_customskin_upload(s, ref)
146
  action:"plus_UploadSkins",
147
  custom_imgurl:i
148
  };
149
-
150
  SFSI.ajax({
151
  url:ajax_object.ajax_url,
152
  type:"post",
@@ -163,7 +160,6 @@ function plus_sfsi_customskin_upload(s, ref)
163
  }
164
  });
165
  }
166
-
167
  // Delete Custom Skin {Monad}
168
  function sfsiplus_deleteskin_icon(s)
169
  {
@@ -188,7 +184,6 @@ function sfsiplus_deleteskin_icon(s)
188
  }
189
  });
190
  }
191
-
192
  // Save Custom Skin {Monad}
193
  function SFSI_plus_done()
194
  {
@@ -206,9 +201,9 @@ function SFSI_plus_done()
206
  }
207
  });
208
  }
209
-
210
  // Upload Custom Icons {Monad}
211
- function plus_sfsi_newcustomicon_upload(s) {
 
212
  var i = s, e = {
213
  action:"plus_UploadIcons",
214
  custom_imgurl:i
@@ -233,8 +228,8 @@ function plus_sfsi_newcustomicon_upload(s) {
233
  }
234
  });
235
  }
236
-
237
- function sfsi_plus_update_step1() {
238
  var nonce = SFSI("#sfsi_plus_save1").attr("data-nonce");
239
  global_error = 0, sfsiplus_beForeLoad(), sfsi_plus_depened_sections();
240
  var s = !1, i = SFSI("input[name='sfsi_plus_rss_display']:checked").val(), e = SFSI("input[name='sfsi_plus_email_display']:checked").val(), t = SFSI("input[name='sfsi_plus_facebook_display']:checked").val(), n = SFSI("input[name='sfsi_plus_twitter_display']:checked").val(), o = SFSI("input[name='sfsi_plus_google_display']:checked").val(), a = SFSI("input[name='sfsi_plus_share_display']:checked").val(), r = SFSI("input[name='sfsi_plus_youtube_display']:checked").val(), c = SFSI("input[name='sfsi_plus_pinterest_display']:checked").val(), p = SFSI("input[name='sfsi_plus_linkedin_display']:checked").val(), _ = SFSI("input[name='sfsi_plus_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 = {
@@ -278,8 +273,8 @@ function sfsi_plus_update_step1() {
278
  }
279
  });
280
  }
281
-
282
- function sfsi_plus_update_step2() {
283
  var nonce = SFSI("#sfsi_plus_save2").attr("data-nonce");
284
  var s = sfsi_plus_validationStep2();
285
  if (!s) return global_error = 1, !1;
@@ -349,8 +344,8 @@ function sfsi_plus_update_step2() {
349
  }
350
  });
351
  }
352
-
353
- function sfsi_plus_update_step3() {
354
  var nonce = SFSI("#sfsi_plus_save3").attr("data-nonce");
355
  var s = sfsi_plus_validationStep3();
356
  if (!s) return global_error = 1, !1;
@@ -394,13 +389,13 @@ function sfsi_plus_update_step3() {
394
  }
395
  });
396
  }
397
-
398
- function sfsi_plus_show_counts() {
399
  "yes" == SFSI("input[name='sfsi_plus_display_counts']:checked").val() ? (SFSI(".sfsiplus_count_sections").slideDown(),
400
  sfsi_plus_showPreviewCounts()) :(SFSI(".sfsiplus_count_sections").slideUp(), sfsi_plus_showPreviewCounts());
401
  }
402
-
403
- function sfsi_plus_showPreviewCounts() {
404
  var s = 0;
405
  1 == SFSI("input[name='sfsi_plus_rss_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_rss_countsDisplay").css("opacity", 1),
406
  s = 1) :SFSI("#sfsi_plus_rss_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_email_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_email_countsDisplay").css("opacity", 1),
@@ -414,12 +409,12 @@ function sfsi_plus_showPreviewCounts() {
414
  s = 1) :SFSI("#sfsi_plus_shares_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_instagram_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_instagram_countsDisplay").css("opacity", 1),
415
  s = 1) :SFSI("#sfsi_plus_instagram_countsDisplay").css("opacity", 0), 0 == s || "no" == SFSI("input[name='sfsi_plus_display_counts']:checked").val() ? SFSI(".sfsi_Cdisplay").hide() :SFSI(".sfsi_Cdisplay").show();
416
  }
417
-
418
- function sfsi_plus_show_OnpostsDisplay() {
419
  //"yes" == SFSI("input[name='sfsi_plus_show_Onposts']:checked").val() ? SFSI(".sfsiplus_PostsSettings_section").slideDown() :SFSI(".sfsiplus_PostsSettings_section").slideUp();
420
  }
421
-
422
- function sfsi_plus_update_step4() {
423
  var nonce = SFSI("#sfsi_plus_save4").attr("data-nonce");
424
  var s = !1, i = sfsi_plus_validationStep4();
425
  if (!i) return global_error = 1, !1;
@@ -494,8 +489,8 @@ function sfsi_plus_update_step4() {
494
  }
495
  }), s;
496
  }
497
-
498
- function sfsi_plus_update_step5() {
499
  var nonce = SFSI("#sfsi_plus_save5").attr("data-nonce");
500
  sfsi_plus_update_step3();
501
  var s = sfsi_plus_validationStep5();
@@ -570,8 +565,8 @@ function sfsi_plus_update_step5() {
570
  }
571
  });
572
  }
573
-
574
- function sfsi_plus_update_step6() {
575
  var nonce = SFSI("#sfsi_plus_save6").attr("data-nonce");
576
  sfsiplus_beForeLoad();
577
  var s = SFSI("input[name='sfsi_plus_show_Onposts']:checked").val(), i = SFSI("input[name='sfsi_plus_textBefor_icons']").val(), e = SFSI("#sfsi_plus_icons_alignment").val(), t = SFSI("#sfsi_plus_icons_DisplayCounts").val(), n = {
@@ -603,8 +598,8 @@ function sfsi_plus_update_step6() {
603
  }
604
  });
605
  }
606
-
607
- function sfsi_plus_update_step7() {
608
  var nonce = SFSI("#sfsi_plus_save7").attr("data-nonce");
609
  var s = sfsi_plus_validationStep7();
610
  if (!s) return global_error = 1, !1;
@@ -651,8 +646,8 @@ function sfsi_plus_update_step7() {
651
  }
652
  });
653
  }
654
-
655
- function sfsi_plus_update_step8() {
656
  var nonce = SFSI("#sfsi_plus_save8").attr("data-nonce");
657
  var s = sfsi_plus_validationStep7();
658
  s = true;
@@ -731,8 +726,96 @@ function sfsi_plus_update_step8() {
731
  }
732
  })
733
  }
734
-
735
- function sfsiplus_afterIconSuccess(s) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
736
  if (s.res = "success") {
737
  var i = s.key + 1, e = s.element, t = e + 1;
738
  SFSI("#plus_total_cusotm_icons").val(s.element);
@@ -758,8 +841,8 @@ function sfsiplus_afterIconSuccess(s) {
758
  sfsiplus_afterLoad();
759
  }
760
  }
761
-
762
- function sfsiplus_beforeIconSubmit(s) {
763
  if (SFSI(".uperror").html("Uploading....."), window.File && window.FileReader && window.FileList && window.Blob) {
764
  SFSI(s).val() || SFSI(".uperror").html("File is empty");
765
  var i = s.files[0].size, e = s.files[0].type;
@@ -777,33 +860,33 @@ function sfsiplus_beforeIconSubmit(s) {
777
  }
778
  return !0;
779
  }
780
-
781
- function sfsiplus_bytesToSize(s) {
782
  var i = [ "Bytes", "KB", "MB", "GB", "TB" ];
783
  if (0 == s) return "0 Bytes";
784
  var e = parseInt(Math.floor(Math.log(s) / Math.log(1024)));
785
  return Math.round(s / Math.pow(1024, e), 2) + " " + i[e];
786
  }
787
-
788
- function sfsiplus_showErrorSuc(s, i, e) {
789
  if ("error" == s) var t = "errorMsg"; else var t = "sucMsg";
790
  return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(),
791
  SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function() {
792
  SFSI("." + t).slideUp("slow");
793
  }, 5e3), !1;
794
  }
795
-
796
- function sfsiplus_beForeLoad() {
797
- SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events", "none");
798
  }
799
-
800
- function sfsiplus_afterLoad() {
801
- SFSI("input").removeClass("inputError"), SFSI(".save_button >a").html("Save"), SFSI(".tab9>div.save_button >a").html("Save All Settings"),
802
  SFSI(".save_button >a").css("pointer-events", "auto"), SFSI(".save_button >a").removeAttr("onclick"),
803
  SFSI(".loader-img").hide();
804
  }
805
-
806
- function sfsi_plus_make_popBox() {
807
  var s = 0;
808
  SFSI(".plus_sfsi_sample_icons >li").each(function() {
809
  "none" != SFSI(this).css("display") && (s = 1);
@@ -818,8 +901,8 @@ function sfsi_plus_make_popBox() {
818
  SFSI(".sfsi_plus_Popinner >h2").css("color", SFSI('input[name="sfsi_plus_popup_fontColor"]').val() + " !important"),
819
  "yes" == SFSI('input[name="sfsi_plus_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_plus_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") :SFSI(".sfsi_plus_Popinner").css("box-shadow", "none");
820
  }
821
-
822
- function sfsi_plus_stick_widget(s) {
823
  0 == sfsiplus_initTop.length && (SFSI(".sfsi_plus_widget").each(function(s) {
824
  sfsiplus_initTop[s] = SFSI(this).position().top;
825
  }), console.log(sfsiplus_initTop));
@@ -855,30 +938,145 @@ function sfsi_plus_stick_widget(s) {
855
  }), c >= 0 && e[c] < i);
856
  }
857
  }
858
-
859
- function sfsi_plus_setCookie(s, i, e) {
860
  var t = new Date();
861
  t.setTime(t.getTime() + 1e3 * 60 * 60 * 24 * e);
862
  var n = "expires=" + t.toGMTString();
863
  document.cookie = s + "=" + i + "; " + n;
864
  }
865
-
866
- function sfsfi_plus_getCookie(s) {
867
  for (var i = s + "=", e = document.cookie.split(";"), t = 0; t < e.length; t++) {
868
  var n = e[t].trim();
869
  if (0 == n.indexOf(i)) return n.substring(i.length, n.length);
870
  }
871
  return "";
872
  }
873
-
874
  function sfsi_plus_hideFooter() {}
875
 
876
  window.onerror = function() {}, SFSI = jQuery.noConflict(), SFSI(window).load(function() {
877
  SFSI("#sfpluspageLoad").fadeOut(2e3);
878
  });
879
 
880
- var global_error = 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
881
 
 
882
  SFSI(document).ready(function(s) {
883
  //changes done {Monad}
884
  SFSI(".sfsiplus_tab_3_icns").on("click", ".cstomskins_upload", function() {
@@ -890,6 +1088,155 @@ SFSI(document).ready(function(s) {
890
  SFSI_plus_done();
891
  SFSI(".cstmskins-overlay").hide("slow");
892
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
893
  //changes done {Monad}
894
 
895
  function i() {
@@ -912,7 +1259,8 @@ SFSI(document).ready(function(s) {
912
  e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", n).toggleClass("ui-icon-triangle-1-s", !n),
913
  t.toggleClass("accordion-content-active", !n), n ? t.slideUp() :t.slideDown(), !1;
914
  }
915
- }), SFSI("#accordion1").accordion({
 
916
  collapsible:!0,
917
  active:!1,
918
  heightStyle:"content",
@@ -924,21 +1272,25 @@ SFSI(document).ready(function(s) {
924
  e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", n).toggleClass("ui-icon-triangle-1-s", !n),
925
  t.toggleClass("accordion-content-active", !n), n ? t.slideUp() :t.slideDown(), !1;
926
  }
927
- }), SFSI(".closeSec").on("click", function() {
 
928
  var s = !0, i = SFSI(this).closest("div.ui-accordion-content").prev("h3.ui-accordion-header").first(), e = SFSI(this).closest("div.ui-accordion-content").first();
929
  i.toggleClass("ui-corner-all", s).toggleClass("accordion-header-active ui-state-active ui-corner-top", !s).attr("aria-selected", (!s).toString()),
930
  i.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", s).toggleClass("ui-icon-triangle-1-s", !s),
931
  e.toggleClass("accordion-content-active", !s), s ? e.slideUp() :e.slideDown();
932
- }), SFSI(document).click(function(s) {
 
933
  var i = SFSI(".sfsi_plus_FrntInner"), e = SFSI(".sfsi_plus_wDiv"), t = SFSI("#at15s");
934
  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();
935
- }), SFSI(".sfsi_plus_outr_div").find(".addthis_button").mousemove(function() {
 
936
  var s = SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().top + 10;
937
  SFSI("#at15s").css({
938
  top:s + "px",
939
  left:SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().left + "px"
940
  });
941
- }), SFSI("#sfsifontCloroPicker").ColorPicker({
 
942
  color:"#f80000",
943
  onBeforeShow:function() {
944
  s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_fontColor").val());
@@ -957,24 +1309,33 @@ SFSI(document).ready(function(s) {
957
  SFSI("#sfsi_plus_popup_fontColor").val("#" + i), SFSI("#sfsifontCloroPicker").css("background", "#" + i),
958
  sfsi_plus_make_popBox();
959
  }
960
- }), SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
 
961
  SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
962
- }), SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
 
963
  SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
964
- }), SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function() {
 
965
  SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
966
- }), SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function() {
 
967
  SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube.svg");
968
- }), SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function() {
 
969
  SFSI(this).css("opacity", "0.9");
970
- }), SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseleave(function() {
 
971
  SFSI(this).css("opacity", "1");
972
  /*{Monad}*/
973
- }), SFSI("div#sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function() {
 
974
  SFSI(this).css("opacity", "0.9");
975
- }), SFSI("div#sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function() {
 
976
  SFSI(this).css("opacity", "1");
977
- }), SFSI("#sfsiBackgroundColorPicker").ColorPicker({
 
978
  color:"#f80000",
979
  onBeforeShow:function() {
980
  s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_background_color").val());
@@ -986,14 +1347,15 @@ SFSI(document).ready(function(s) {
986
  return SFSI(s).fadeOut(500), !1;
987
  },
988
  onChange:function(s, i) {
989
- SFSI("#sfsi_plus_popup_background_color").val("#" + i), SFSI("#sfsiBackgroundColorPicker").css("background", "#" + i),
990
  sfsi_plus_make_popBox();
991
  },
992
  onClick:function(s, i) {
993
- SFSI("#sfsi_plus_popup_background_color").val("#" + i), SFSI("#sfsiBackgroundColorPicker").css("background", "#" + i),
994
  sfsi_plus_make_popBox();
995
  }
996
- }), SFSI("#sfsiBorderColorPicker").ColorPicker({
 
997
  color:"#f80000",
998
  onBeforeShow:function() {
999
  s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_border_color").val());
@@ -1012,25 +1374,37 @@ SFSI(document).ready(function(s) {
1012
  SFSI("#sfsi_plus_popup_border_color").val("#" + i), SFSI("#sfsiBorderColorPicker").css("background", "#" + i),
1013
  sfsi_plus_make_popBox();
1014
  }
1015
- }), SFSI("#sfsi_plus_save1").on("click", function() {
 
1016
  sfsi_plus_update_step1() && sfsipluscollapse(this);
1017
- }), SFSI("#sfsi_plus_save2").on("click", function() {
 
1018
  sfsi_plus_update_step2() && sfsipluscollapse(this);
1019
- }), SFSI("#sfsi_plus_save3").on("click", function() {
 
1020
  sfsi_plus_update_step3() && sfsipluscollapse(this);
1021
- }), SFSI("#sfsi_plus_save4").on("click", function() {
 
1022
  sfsi_plus_update_step4() && sfsipluscollapse(this);
1023
- }), SFSI("#sfsi_plus_save5").on("click", function() {
 
1024
  sfsi_plus_update_step5() && sfsipluscollapse(this);
1025
- }), SFSI("#sfsi_plus_save6").on("click", function() {
 
1026
  sfsi_plus_update_step6() && sfsipluscollapse(this);
1027
- }), SFSI("#sfsi_plus_save7").on("click", function() {
 
1028
  sfsi_plus_update_step7() && sfsipluscollapse(this);
1029
- }), SFSI("#sfsi_plus_save8").on("click", function() {
 
1030
  sfsi_plus_update_step8() && sfsipluscollapse(this);
1031
- }), SFSI("#save_plus_all_settings").on("click", function() {
 
 
 
 
1032
  return SFSI("#save_plus_all_settings").text("Saving.."), SFSI(".save_button >a").css("pointer-events", "none"),
1033
- sfsi_plus_update_step1(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Which icons do you want to show on your site?" tab.', 8),
1034
  global_error = 0, !1) :(sfsi_plus_update_step2(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "What do you want the icons to do?" tab.', 8),
1035
  global_error = 0, !1) :(sfsi_plus_update_step3(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "What design & animation do you want to give your icons?" tab.', 8),
1036
  global_error = 0, !1) :(sfsi_plus_update_step4(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Do you want to display "counts" next to your icons?" tab.', 8),
@@ -1040,18 +1414,21 @@ SFSI(document).ready(function(s) {
1040
  global_error = 0, !1) : sfsi_plus_update_step8(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Where shall they be displayed?" tab.', 8),
1041
  /*global_error = 0, !1) :void (0 == global_error && sfsiplus_showErrorSuc("success", 'Saved! Now go to the <a href="widgets.php">widget</a> area and place the widget into your sidebar (if not done already)', 8))))))));*/
1042
  global_error = 0, !1) :void (0 == global_error && sfsiplus_showErrorSuc("success", '', 8))))))));
1043
- }), SFSI(".fileUPInput").live("change", function() {
 
1044
  sfsiplus_beForeLoad(), sfsiplus_beforeIconSubmit(this) && (SFSI(".upload-overlay").css("pointer-events", "none"),
1045
  SFSI("#customIconFrm").ajaxForm({
1046
  dataType:"json",
1047
  success:sfsiplus_afterIconSuccess,
1048
  resetForm:!0
1049
  }).submit());
1050
- }), SFSI(".pop-up").on("click", function() {
 
1051
  ("fbex-s2" == SFSI(this).attr("data-id") || "googlex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(),
1052
  SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")),
1053
  SFSI("." + SFSI(this).attr("data-id")).show("slow");
1054
- }), SFSI("#close_popup").live("click", function() {
 
1055
  SFSI(".read-overlay").hide("slow");
1056
  });
1057
  var e = 0;
@@ -1066,22 +1443,30 @@ SFSI(document).ready(function(s) {
1066
  if (s.is(":checked") && "sfsiplus-cusotm-icon" == s.attr("element-type")) SFSI(".fileUPInput").attr("name", "custom_icons[]"),
1067
  SFSI(".upload-overlay").show("slow", function() {
1068
  e = 0;
1069
- }), SFSI("#upload_id").val(s.attr("name")); else if (!s.is(":checked") && "sfsiplus-cusotm-icon" == s.attr("element-type")) return s.attr("ele-type") ? (SFSI(this).attr("checked", !0),
 
1070
  SFSI(this).css("background-position", "0px -36px"), e = 0, !1) :confirm("Are you sure want to delete this Icon..?? ") ? "suc" == sfsi_plus_delete_CusIcon(this, s) ? (s.attr("checked", !1),
1071
  SFSI(this).css("background-position", "0px 0px"), e = 0, !1) :(e = 0, !1) :(s.attr("checked", !0),
1072
  SFSI(this).css("background-position", "0px -36px"), e = 0, !1);
1073
- }), SFSI(".plus_icn_listing").on("click", ".checkbox", function() {
 
1074
  checked = SFSI(this).parent().find("input:checkbox:first"), "sfsi_plus_email_display" != checked.attr("name") || checked.is(":checked") || SFSI(".demail-1").show("slow");
1075
- }), SFSI("#deac_email2").on("click", function() {
 
1076
  SFSI(".demail-1").hide("slow"), SFSI(".demail-2").show("slow");
1077
- }), SFSI("#deac_email3").on("click", function() {
 
1078
  SFSI(".demail-2").hide("slow"), SFSI(".demail-3").show("slow");
1079
- }), SFSI(".hideemailpop").on("click", function() {
1080
- SFSI('input[name="sfsi_plus_email_display"]').attr("checked", !0), SFSI('input[name="sfsi_plus_email_display"]').parent().find("span:first").css("background-position", "0px -36px"),
 
 
1081
  SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
1082
- }), SFSI(".hidePop").on("click", function() {
 
1083
  SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
1084
- }), SFSI(".sfsiplus_activate_footer").on("click", function() {
 
1085
  var nonce = SFSI(this).attr("data-nonce");
1086
  SFSI(this).text("activating....");
1087
  var s = {
@@ -1106,7 +1491,8 @@ SFSI(document).ready(function(s) {
1106
  }
1107
  }
1108
  });
1109
- }), SFSI(".sfsiplus_removeFooter").on("click", function() {
 
1110
  var nonce = SFSI(this).attr("data-nonce");
1111
  SFSI(this).text("working....");
1112
  var s = {
@@ -1129,13 +1515,19 @@ SFSI(document).ready(function(s) {
1129
  }
1130
  }
1131
  });
1132
- }), SFSI(".radio").live("click", function() {
 
1133
  var s = SFSI(this).parent().find("input:radio:first");
1134
  "sfsi_plus_display_counts" == s.attr("name") && sfsi_plus_show_counts();
1135
- }), SFSI("#close_Uploadpopup").on("click", i), SFSI(".radio").live("click", function() {
 
1136
  var s = SFSI(this).parent().find("input:radio:first");
1137
  "sfsi_plus_show_Onposts" == s.attr("name") && sfsi_plus_show_OnpostsDisplay();
1138
- }), sfsi_plus_show_OnpostsDisplay(), sfsi_plus_depened_sections(), sfsi_plus_show_counts(), sfsi_plus_showPreviewCounts(),
 
 
 
 
1139
  SFSI(".plus_share_icon_order").sortable({
1140
  update:function() {
1141
  SFSI(".plus_share_icon_order li").each(function() {
@@ -1143,7 +1535,8 @@ SFSI(document).ready(function(s) {
1143
  });
1144
  },
1145
  revert:!0
1146
- }), SFSI(".radio").live("click", function() {
 
1147
  var s = SFSI(this).parent().find("input:radio:first");
1148
  "sfsi_plus_email_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_email_countsDisplay"]').prop("checked", !0),
1149
  SFSI('input[name="sfsi_plus_email_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
@@ -1254,21 +1647,26 @@ SFSI(document).ready(function(s) {
1254
  }) :(SFSI(this).css({
1255
  "z-index":"0"
1256
  }), SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide());
1257
- }), SFSI("body").on("click", function() {
 
1258
  SFSI(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide();
1259
- }), SFSI(".adminTooltip >a").on("hover", function() {
 
1260
  SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"),
1261
  SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show();
1262
- }), SFSI(".adminTooltip").on("mouseleave", function() {
 
1263
  "none" != SFSI(".gpls_tool_bdr").css("display") && 0 != SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function() {
1264
  SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide();
1265
  }) :(SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"),
1266
  SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide());
1267
- }), SFSI(".expand-area").on("click", function() {
 
1268
  "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"),
1269
  SFSI(this).text("Collapse")) :(SFSI(this).siblings("p").children("label").fadeOut("slow"),
1270
  SFSI(this).text("Read more"));
1271
- }), SFSI(".radio").live("click", function()
 
1272
  {
1273
  var s = SFSI(this).parent().find("input:radio:first");
1274
  "sfsi_plus_icons_float" == s.attr("name") && "yes" == s.val() && (SFSI(".float_options").slideDown("slow"),
@@ -1279,12 +1677,14 @@ SFSI(document).ready(function(s) {
1279
  SFSI('input[name="sfsi_plus_icons_float"][value="no"]').prop("checked", !0), SFSI('input[name="sfsi_plus_icons_float"][value="yes"]').prop("checked", !1),
1280
  SFSI('input[name="sfsi_plus_icons_float"][value="no"]').parent().find("span.radio").attr("style", "background-position:0px -41px;"),
1281
  SFSI('input[name="sfsi_plus_icons_float"][value="yes"]').parent().find("span.radio").attr("style", "background-position:0px -0px;"));
1282
- }), SFSI(".sfsi_plus_wDiv").length > 0 && setTimeout(function() {
 
1283
  var s = parseInt(SFSI(".sfsi_plus_wDiv").height()) + 0 + "px";
1284
  SFSI(".sfsi_plus_holders").each(function() {
1285
  SFSI(this).css("height", s);
1286
  });
1287
- }, 200), SFSI(".checkbox").live("click", function() {
 
1288
  var s = SFSI(this).parent().find("input:checkbox:first");
1289
  ("sfsi_plus_shuffle_Firstload" == s.attr("name") && "checked" == s.attr("checked") || "sfsi_plus_shuffle_interval" == s.attr("name") && "checked" == s.attr("checked")) && (SFSI('input[name="sfsi_plus_shuffle_icons"]').parent().find("span").css("background-position", "0px -36px"),
1290
  SFSI('input[name="sfsi_plus_shuffle_icons"]').attr("checked", "checked")), "sfsi_plus_shuffle_icons" == s.attr("name") && "checked" != s.attr("checked") && (SFSI('input[name="sfsi_plus_shuffle_Firstload"]').removeAttr("checked"),
9
  SFSI(this).find("label").html("Custom " + cntt + ":"), cntt++;
10
  });
11
  }
12
+ function sfsipluscollapse(s)
13
+ {
14
  var i = !0, e = SFSI(s).closest("div.ui-accordion-content").prev("h3.ui-accordion-header"), t = SFSI(s).closest("div.ui-accordion-content").first();
15
  e.toggleClass("ui-corner-all", i).toggleClass("accordion-header-active ui-state-active ui-corner-top", !i).attr("aria-selected", (!i).toString()),
16
  e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", i).toggleClass("ui-icon-triangle-1-s", !i),
17
  t.toggleClass("accordion-content-active", !i), i ? t.slideUp() :t.slideDown();
18
  }
19
+ function sfsi_plus_delete_CusIcon(s, i)
20
+ {
 
21
  sfsiplus_beForeLoad();
22
  var e = {
23
  action:"plus_deleteIcons",
46
  }
47
  });
48
  }
49
+ function plus_update_Sec5Iconorder()
50
+ {
51
  SFSI("ul.plus_share_icon_order").children("li").each(function() {
52
  SFSI(this).attr("data-index", SFSI(this).index() + 1);
53
  });
54
  }
55
+ function sfsi_plus_section_Display(s, i)
56
+ {
57
  "hide" == i ? (SFSI("." + s + " :input").prop("disabled", !0), SFSI("." + s + " :button").prop("disabled", !0),
58
  SFSI("." + s).hide()) :(SFSI("." + s + " :input").removeAttr("disabled", !0), SFSI("." + s + " :button").removeAttr("disabled", !0),
59
  SFSI("." + s).show());
60
  }
61
+ function sfsi_plus_depened_sections()
62
+ {
63
  if ("sfsi" == SFSI("input[name='sfsi_plus_rss_icons']:checked").val()) {
64
  for (i = 0; 16 > i; i++) {
65
  var s = i + 1, e = 74 * i;
132
  SFSI("input[name='sfsi_plus_linkedin_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_linkedin_section", "show") :sfsi_plus_section_Display("sfsiplus_linkedin_section", "hide"),
133
  SFSI("input[element-type='sfsiplus-cusotm-icon']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_custom_section", "show") :sfsi_plus_section_Display("sfsiplus_custom_section", "hide");
134
  }
135
+ function PlusCustomIConSectionsUpdate()
136
+ {
137
  sfsi_plus_section_Display("counter".ele, show);
138
  }
 
139
  // Upload Custom Skin {Monad}
140
  function plus_sfsi_customskin_upload(s, ref)
141
  {
144
  action:"plus_UploadSkins",
145
  custom_imgurl:i
146
  };
 
147
  SFSI.ajax({
148
  url:ajax_object.ajax_url,
149
  type:"post",
160
  }
161
  });
162
  }
 
163
  // Delete Custom Skin {Monad}
164
  function sfsiplus_deleteskin_icon(s)
165
  {
184
  }
185
  });
186
  }
 
187
  // Save Custom Skin {Monad}
188
  function SFSI_plus_done()
189
  {
201
  }
202
  });
203
  }
 
204
  // Upload Custom Icons {Monad}
205
+ function plus_sfsi_newcustomicon_upload(s)
206
+ {
207
  var i = s, e = {
208
  action:"plus_UploadIcons",
209
  custom_imgurl:i
228
  }
229
  });
230
  }
231
+ function sfsi_plus_update_step1()
232
+ {
233
  var nonce = SFSI("#sfsi_plus_save1").attr("data-nonce");
234
  global_error = 0, sfsiplus_beForeLoad(), sfsi_plus_depened_sections();
235
  var s = !1, i = SFSI("input[name='sfsi_plus_rss_display']:checked").val(), e = SFSI("input[name='sfsi_plus_email_display']:checked").val(), t = SFSI("input[name='sfsi_plus_facebook_display']:checked").val(), n = SFSI("input[name='sfsi_plus_twitter_display']:checked").val(), o = SFSI("input[name='sfsi_plus_google_display']:checked").val(), a = SFSI("input[name='sfsi_plus_share_display']:checked").val(), r = SFSI("input[name='sfsi_plus_youtube_display']:checked").val(), c = SFSI("input[name='sfsi_plus_pinterest_display']:checked").val(), p = SFSI("input[name='sfsi_plus_linkedin_display']:checked").val(), _ = SFSI("input[name='sfsi_plus_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 = {
273
  }
274
  });
275
  }
276
+ function sfsi_plus_update_step2()
277
+ {
278
  var nonce = SFSI("#sfsi_plus_save2").attr("data-nonce");
279
  var s = sfsi_plus_validationStep2();
280
  if (!s) return global_error = 1, !1;
344
  }
345
  });
346
  }
347
+ function sfsi_plus_update_step3()
348
+ {
349
  var nonce = SFSI("#sfsi_plus_save3").attr("data-nonce");
350
  var s = sfsi_plus_validationStep3();
351
  if (!s) return global_error = 1, !1;
389
  }
390
  });
391
  }
392
+ function sfsi_plus_show_counts()
393
+ {
394
  "yes" == SFSI("input[name='sfsi_plus_display_counts']:checked").val() ? (SFSI(".sfsiplus_count_sections").slideDown(),
395
  sfsi_plus_showPreviewCounts()) :(SFSI(".sfsiplus_count_sections").slideUp(), sfsi_plus_showPreviewCounts());
396
  }
397
+ function sfsi_plus_showPreviewCounts()
398
+ {
399
  var s = 0;
400
  1 == SFSI("input[name='sfsi_plus_rss_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_rss_countsDisplay").css("opacity", 1),
401
  s = 1) :SFSI("#sfsi_plus_rss_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_email_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_email_countsDisplay").css("opacity", 1),
409
  s = 1) :SFSI("#sfsi_plus_shares_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_instagram_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_instagram_countsDisplay").css("opacity", 1),
410
  s = 1) :SFSI("#sfsi_plus_instagram_countsDisplay").css("opacity", 0), 0 == s || "no" == SFSI("input[name='sfsi_plus_display_counts']:checked").val() ? SFSI(".sfsi_Cdisplay").hide() :SFSI(".sfsi_Cdisplay").show();
411
  }
412
+ function sfsi_plus_show_OnpostsDisplay()
413
+ {
414
  //"yes" == SFSI("input[name='sfsi_plus_show_Onposts']:checked").val() ? SFSI(".sfsiplus_PostsSettings_section").slideDown() :SFSI(".sfsiplus_PostsSettings_section").slideUp();
415
  }
416
+ function sfsi_plus_update_step4()
417
+ {
418
  var nonce = SFSI("#sfsi_plus_save4").attr("data-nonce");
419
  var s = !1, i = sfsi_plus_validationStep4();
420
  if (!i) return global_error = 1, !1;
489
  }
490
  }), s;
491
  }
492
+ function sfsi_plus_update_step5()
493
+ {
494
  var nonce = SFSI("#sfsi_plus_save5").attr("data-nonce");
495
  sfsi_plus_update_step3();
496
  var s = sfsi_plus_validationStep5();
565
  }
566
  });
567
  }
568
+ function sfsi_plus_update_step6()
569
+ {
570
  var nonce = SFSI("#sfsi_plus_save6").attr("data-nonce");
571
  sfsiplus_beForeLoad();
572
  var s = SFSI("input[name='sfsi_plus_show_Onposts']:checked").val(), i = SFSI("input[name='sfsi_plus_textBefor_icons']").val(), e = SFSI("#sfsi_plus_icons_alignment").val(), t = SFSI("#sfsi_plus_icons_DisplayCounts").val(), n = {
598
  }
599
  });
600
  }
601
+ function sfsi_plus_update_step7()
602
+ {
603
  var nonce = SFSI("#sfsi_plus_save7").attr("data-nonce");
604
  var s = sfsi_plus_validationStep7();
605
  if (!s) return global_error = 1, !1;
646
  }
647
  });
648
  }
649
+ function sfsi_plus_update_step8()
650
+ {
651
  var nonce = SFSI("#sfsi_plus_save8").attr("data-nonce");
652
  var s = sfsi_plus_validationStep7();
653
  s = true;
726
  }
727
  })
728
  }
729
+ function sfsi_plus_update_step9()
730
+ {
731
+ var nonce = SFSI("#sfsi_plus_save9").attr("data-nonce");
732
+ sfsiplus_beForeLoad();
733
+ var ie = SFSI("input[name='sfsi_plus_form_adjustment']:checked").val(),
734
+ je = SFSI("input[name='sfsi_plus_form_height']").val(),
735
+ ke = SFSI("input[name='sfsi_plus_form_width']").val(),
736
+ le = SFSI("input[name='sfsi_plus_form_border']:checked").val(),
737
+ me = SFSI("input[name='sfsi_plus_form_border_thickness']").val(),
738
+ ne = SFSI("input[name='sfsi_plus_form_border_color']").val(),
739
+ oe = SFSI("input[name='sfsi_plus_form_background']").val(),
740
+
741
+ ae = SFSI("input[name='sfsi_plus_form_heading_text']").val(),
742
+ be = SFSI("#sfsi_plus_form_heading_font option:selected").val(),
743
+ ce = SFSI("#sfsi_plus_form_heading_fontstyle option:selected").val(),
744
+ de = SFSI("input[name='sfsi_plus_form_heading_fontcolor']").val(),
745
+ ee = SFSI("input[name='sfsi_plus_form_heading_fontsize']").val(),
746
+ fe = SFSI("#sfsi_plus_form_heading_fontalign option:selected").val(),
747
+
748
+ ue = SFSI("input[name='sfsi_plus_form_field_text']").val(),
749
+ ve = SFSI("#sfsi_plus_form_field_font option:selected").val(),
750
+ we = SFSI("#sfsi_plus_form_field_fontstyle option:selected").val(),
751
+ xe = SFSI("input[name='sfsi_plus_form_field_fontcolor']").val(),
752
+ ye = SFSI("input[name='sfsi_plus_form_field_fontsize']").val(),
753
+ ze = SFSI("#sfsi_plus_form_field_fontalign option:selected").val(),
754
+
755
+ i = SFSI("input[name='sfsi_plus_form_button_text']").val(),
756
+ j = SFSI("#sfsi_plus_form_button_font option:selected").val(),
757
+ k = SFSI("#sfsi_plus_form_button_fontstyle option:selected").val(),
758
+ l = SFSI("input[name='sfsi_plus_form_button_fontcolor']").val(),
759
+ m = SFSI("input[name='sfsi_plus_form_button_fontsize']").val(),
760
+ n = SFSI("#sfsi_plus_form_button_fontalign option:selected").val(),
761
+ o = SFSI("input[name='sfsi_plus_form_button_background']").val();
762
+
763
+ var f = {
764
+ action:"plus_updateSrcn9",
765
+ sfsi_plus_form_adjustment:ie,
766
+ sfsi_plus_form_height:je,
767
+ sfsi_plus_form_width:ke,
768
+ sfsi_plus_form_border:le,
769
+ sfsi_plus_form_border_thickness:me,
770
+ sfsi_plus_form_border_color: ne,
771
+ sfsi_plus_form_background: oe,
772
+
773
+ sfsi_plus_form_heading_text:ae,
774
+ sfsi_plus_form_heading_font:be,
775
+ sfsi_plus_form_heading_fontstyle:ce,
776
+ sfsi_plus_form_heading_fontcolor:de,
777
+ sfsi_plus_form_heading_fontsize:ee,
778
+ sfsi_plus_form_heading_fontalign:fe,
779
+
780
+ sfsi_plus_form_field_text:ue,
781
+ sfsi_plus_form_field_font:ve,
782
+ sfsi_plus_form_field_fontstyle:we,
783
+ sfsi_plus_form_field_fontcolor:xe,
784
+ sfsi_plus_form_field_fontsize:ye,
785
+ sfsi_plus_form_field_fontalign:ze,
786
+
787
+ sfsi_plus_form_button_text:i,
788
+ sfsi_plus_form_button_font:j,
789
+ sfsi_plus_form_button_fontstyle:k,
790
+ sfsi_plus_form_button_fontcolor:l,
791
+ sfsi_plus_form_button_fontsize:m,
792
+ sfsi_plus_form_button_fontalign:n,
793
+ sfsi_plus_form_button_background:o,
794
+
795
+ nonce:nonce
796
+ };
797
+ SFSI.ajax({
798
+ url:ajax_object.ajax_url,
799
+ type:"post",
800
+ data:f,
801
+ dataType:"json",
802
+ async:!0,
803
+ success:function(s) {
804
+ if(s == "wrong_nonce")
805
+ {
806
+ sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 9);
807
+ sfsiplus_afterLoad();
808
+ }
809
+ else
810
+ {
811
+ "success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 9), sfsipluscollapse("#sfsi_plus_save9"), sfsi_plus_create_suscriber_form()) :sfsiplus_showErrorSuc("error", "Unkown error , please try again", 9),
812
+ sfsiplus_afterLoad();
813
+ }
814
+ }
815
+ });
816
+ }
817
+ function sfsiplus_afterIconSuccess(s)
818
+ {
819
  if (s.res = "success") {
820
  var i = s.key + 1, e = s.element, t = e + 1;
821
  SFSI("#plus_total_cusotm_icons").val(s.element);
841
  sfsiplus_afterLoad();
842
  }
843
  }
844
+ function sfsiplus_beforeIconSubmit(s)
845
+ {
846
  if (SFSI(".uperror").html("Uploading....."), window.File && window.FileReader && window.FileList && window.Blob) {
847
  SFSI(s).val() || SFSI(".uperror").html("File is empty");
848
  var i = s.files[0].size, e = s.files[0].type;
860
  }
861
  return !0;
862
  }
863
+ function sfsiplus_bytesToSize(s)
864
+ {
865
  var i = [ "Bytes", "KB", "MB", "GB", "TB" ];
866
  if (0 == s) return "0 Bytes";
867
  var e = parseInt(Math.floor(Math.log(s) / Math.log(1024)));
868
  return Math.round(s / Math.pow(1024, e), 2) + " " + i[e];
869
  }
870
+ function sfsiplus_showErrorSuc(s, i, e)
871
+ {
872
  if ("error" == s) var t = "errorMsg"; else var t = "sucMsg";
873
  return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(),
874
  SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function() {
875
  SFSI("." + t).slideUp("slow");
876
  }, 5e3), !1;
877
  }
878
+ function sfsiplus_beForeLoad()
879
+ {
880
+ SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events","none");
881
  }
882
+ function sfsiplus_afterLoad()
883
+ {
884
+ SFSI("input").removeClass("inputError"), SFSI(".save_button >a").html("Save"), SFSI(".tab10>div.save_button >a").html("Save All Settings"),
885
  SFSI(".save_button >a").css("pointer-events", "auto"), SFSI(".save_button >a").removeAttr("onclick"),
886
  SFSI(".loader-img").hide();
887
  }
888
+ function sfsi_plus_make_popBox()
889
+ {
890
  var s = 0;
891
  SFSI(".plus_sfsi_sample_icons >li").each(function() {
892
  "none" != SFSI(this).css("display") && (s = 1);
901
  SFSI(".sfsi_plus_Popinner >h2").css("color", SFSI('input[name="sfsi_plus_popup_fontColor"]').val() + " !important"),
902
  "yes" == SFSI('input[name="sfsi_plus_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_plus_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") :SFSI(".sfsi_plus_Popinner").css("box-shadow", "none");
903
  }
904
+ function sfsi_plus_stick_widget(s)
905
+ {
906
  0 == sfsiplus_initTop.length && (SFSI(".sfsi_plus_widget").each(function(s) {
907
  sfsiplus_initTop[s] = SFSI(this).position().top;
908
  }), console.log(sfsiplus_initTop));
938
  }), c >= 0 && e[c] < i);
939
  }
940
  }
941
+ function sfsi_plus_setCookie(s, i, e)
942
+ {
943
  var t = new Date();
944
  t.setTime(t.getTime() + 1e3 * 60 * 60 * 24 * e);
945
  var n = "expires=" + t.toGMTString();
946
  document.cookie = s + "=" + i + "; " + n;
947
  }
948
+ function sfsfi_plus_getCookie(s)
949
+ {
950
  for (var i = s + "=", e = document.cookie.split(";"), t = 0; t < e.length; t++) {
951
  var n = e[t].trim();
952
  if (0 == n.indexOf(i)) return n.substring(i.length, n.length);
953
  }
954
  return "";
955
  }
 
956
  function sfsi_plus_hideFooter() {}
957
 
958
  window.onerror = function() {}, SFSI = jQuery.noConflict(), SFSI(window).load(function() {
959
  SFSI("#sfpluspageLoad").fadeOut(2e3);
960
  });
961
 
962
+ //changes done {Monad}
963
+ function sfsi_plus_selectText(containerid) {
964
+ if (document.selection) {
965
+ var range = document.body.createTextRange();
966
+ range.moveToElementText(document.getElementById(containerid));
967
+ range.select();
968
+ } else if (window.getSelection()) {
969
+ var range = document.createRange();
970
+ range.selectNode(document.getElementById(containerid));
971
+ window.getSelection().removeAllRanges();
972
+ window.getSelection().addRange(range);
973
+ }
974
+ }
975
+ function sfsi_plus_create_suscriber_form()
976
+ {
977
+ //Popbox customization
978
+ "no" == SFSI('input[name="sfsi_plus_form_adjustment"]:checked').val() ? SFSI(".sfsi_plus_subscribe_Popinner").css({"width": parseInt(SFSI('input[name="sfsi_plus_form_width"]').val()),"height":parseInt(SFSI('input[name="sfsi_plus_form_height"]').val())}) : SFSI(".sfsi_plus_subscribe_Popinner").css({"width": '',"height": ''});
979
+
980
+ "yes" == SFSI('input[name="sfsi_plus_form_adjustment"]:checked').val() ? SFSI(".sfsi_plus_html > .sfsi_plus_subscribe_Popinner").css({"width": "100%"}): '';
981
+
982
+ "yes" == SFSI('input[name="sfsi_plus_form_border"]:checked').val() ? SFSI(".sfsi_plus_subscribe_Popinner").css({"border": SFSI('input[name="sfsi_plus_form_border_thickness"]').val()+"px solid "+SFSI('input[name="sfsi_plus_form_border_color"]').val()}) : SFSI(".sfsi_plus_subscribe_Popinner").css("border", "none");
983
+
984
+ SFSI('input[name="sfsi_plus_form_background"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").css("background-color", SFSI('input[name="sfsi_plus_form_background"]').val())) : '';
985
+
986
+ //Heading customization
987
+ SFSI('input[name="sfsi_plus_form_heading_text"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").html(SFSI('input[name="sfsi_plus_form_heading_text"]').val())) : SFSI(".sfsi_plus_subscribe_Popinner > form > h5").html('');
988
+
989
+ SFSI('#sfsi_plus_form_heading_font').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("font-family", SFSI("#sfsi_plus_form_heading_font").val())) : '';
990
+
991
+ if(SFSI('#sfsi_plus_form_heading_fontstyle').val() != 'bold')
992
+ {
993
+ SFSI('#sfsi_plus_form_heading_fontstyle').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("font-style", SFSI("#sfsi_plus_form_heading_fontstyle").val())) : '';
994
+ SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("font-weight", '');
995
+ }
996
+ else
997
+ {
998
+ SFSI('#sfsi_plus_form_heading_fontstyle').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("font-weight","bold")) : '';
999
+ SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("font-style", '');
1000
+ }
1001
+
1002
+ SFSI('input[name="sfsi_plus_form_heading_fontcolor"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("color", SFSI('input[name="sfsi_plus_form_heading_fontcolor"]').val())) : '';
1003
+
1004
+ SFSI('input[name="sfsi_plus_form_heading_fontsize"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css({"font-size": parseInt(SFSI('input[name="sfsi_plus_form_heading_fontsize"]').val())})) : '';
1005
+
1006
+ SFSI('#sfsi_plus_form_heading_fontalign').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("text-align", SFSI("#sfsi_plus_form_heading_fontalign").val())) : '';
1007
+
1008
+ //Field customization
1009
+ SFSI('input[name="sfsi_plus_form_field_text"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').attr("placeholder", SFSI('input[name="sfsi_plus_form_field_text"]').val())) : SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').attr("placeholder", '');
1010
+
1011
+ SFSI('input[name="sfsi_plus_form_field_text"]').val() != "" ? (SFSI(".sfsi_plus_left_container > .sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').val(SFSI('input[name="sfsi_plus_form_field_text"]').val())) : SFSI(".sfsi_plus_left_container > .sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').val('');
1012
+
1013
+ SFSI('input[name="sfsi_plus_form_field_text"]').val() != "" ? (SFSI(".like_pop_box > .sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').val(SFSI('input[name="sfsi_plus_form_field_text"]').val())) : SFSI(".like_pop_box > .sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').val('');
1014
+
1015
+ SFSI('#sfsi_plus_form_field_font').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-family", SFSI("#sfsi_plus_form_field_font").val())) : '';
1016
+
1017
+ if(SFSI('#sfsi_plus_form_field_fontstyle').val() != "bold")
1018
+ {
1019
+ SFSI('#sfsi_plus_form_field_fontstyle').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-style", SFSI("#sfsi_plus_form_field_fontstyle").val())) : '';
1020
+ SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-weight", '');
1021
+ }
1022
+ else
1023
+ {
1024
+ SFSI('#sfsi_plus_form_field_fontstyle').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-weight", 'bold')) : '';
1025
+ SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-style", '');
1026
+ }
1027
+
1028
+ SFSI('input[name="sfsi_plus_form_field_fontcolor"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("color", SFSI('input[name="sfsi_plus_form_field_fontcolor"]').val())) : '';
1029
+
1030
+ SFSI('input[name="sfsi_plus_form_field_fontsize"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css({"font-size": parseInt(SFSI('input[name="sfsi_plus_form_field_fontsize"]').val())})) : '';
1031
+
1032
+ SFSI('#sfsi_plus_form_field_fontalign').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("text-align", SFSI("#sfsi_plus_form_field_fontalign").val())) : '';
1033
+
1034
+ //Button customization
1035
+ SFSI('input[name="sfsi_plus_form_button_text"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').attr("value", SFSI('input[name="sfsi_plus_form_button_text"]').val())) : '';
1036
+
1037
+ SFSI('#sfsi_plus_form_button_font').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("font-family", SFSI("#sfsi_plus_form_button_font").val())) : '';
1038
+
1039
+ if(SFSI('#sfsi_plus_form_button_fontstyle').val() != "bold")
1040
+ {
1041
+ SFSI('#sfsi_plus_form_button_fontstyle').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("font-style", SFSI("#sfsi_plus_form_button_fontstyle").val())) : '';
1042
+ SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("font-weight", '');
1043
+ }
1044
+ else
1045
+ {
1046
+ SFSI('#sfsi_plus_form_button_fontstyle').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("font-weight", 'bold')) : '';
1047
+ SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("font-style", '');
1048
+ }
1049
+
1050
+ SFSI('input[name="sfsi_plus_form_button_fontcolor"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("color", SFSI('input[name="sfsi_plus_form_button_fontcolor"]').val())) : '';
1051
+
1052
+ SFSI('input[name="sfsi_plus_form_button_fontsize"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css({"font-size": parseInt(SFSI('input[name="sfsi_plus_form_button_fontsize"]').val())})) : '';
1053
+
1054
+ SFSI('#sfsi_plus_form_button_fontalign').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("text-align", SFSI("#sfsi_plus_form_button_fontalign").val())) : '';
1055
+
1056
+ SFSI('input[name="sfsi_plus_form_button_background"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("background-color", SFSI('input[name="sfsi_plus_form_button_background"]').val())) : '';
1057
+
1058
+ var innerHTML = SFSI(".sfsi_plus_html > .sfsi_plus_subscribe_Popinner").html();
1059
+ var styleCss = SFSI(".sfsi_plus_html > .sfsi_plus_subscribe_Popinner").attr("style");
1060
+ innerHTML = '<div style="'+styleCss+'">'+innerHTML+'</div>';
1061
+ SFSI(".sfsi_plus_subscription_html > xmp").html(innerHTML);
1062
+
1063
+ /*var data = {
1064
+ action:"getForm",
1065
+ heading: SFSI('input[name="sfsi_plus_form_heading_text"]').val(),
1066
+ placeholder:SFSI('input[name="sfsi_plus_form_field_text"]').val(),
1067
+ button:SFSI('input[name="sfsi_plus_form_button_text"]').val()
1068
+ };
1069
+ SFSI.ajax({
1070
+ url:ajax_object.ajax_url,
1071
+ type:"post",
1072
+ data:data,
1073
+ success:function(s) {
1074
+ SFSI(".sfsi_plus_subscription_html").html(s);
1075
+ }
1076
+ });*/
1077
+ }
1078
 
1079
+ var global_error = 0;
1080
  SFSI(document).ready(function(s) {
1081
  //changes done {Monad}
1082
  SFSI(".sfsiplus_tab_3_icns").on("click", ".cstomskins_upload", function() {
1088
  SFSI_plus_done();
1089
  SFSI(".cstmskins-overlay").hide("slow");
1090
  });
1091
+
1092
+ sfsi_plus_create_suscriber_form();
1093
+
1094
+ SFSI('input[name="sfsi_plus_form_heading_text"], input[name="sfsi_plus_form_border_thickness"], input[name="sfsi_plus_form_height"], input[name="sfsi_plus_form_width"], input[name="sfsi_plus_form_heading_fontsize"], input[name="sfsi_plus_form_field_text"], input[name="sfsi_plus_form_field_fontsize"], input[name="sfsi_plus_form_button_text"], input[name="sfsi_plus_form_button_fontsize"]').on("keyup", sfsi_plus_create_suscriber_form);
1095
+
1096
+ SFSI('input[name="sfsi_plus_form_border_color"], input[name="sfsi_plus_form_background"] ,input[name="sfsi_plus_form_heading_fontcolor"], input[name="sfsi_plus_form_field_fontcolor"] ,input[name="sfsi_plus_form_button_fontcolor"],input[name="sfsi_plus_form_button_background"]').on("focus", sfsi_plus_create_suscriber_form);
1097
+
1098
+ SFSI("#sfsi_plus_form_heading_font, #sfsi_plus_form_heading_fontstyle, #sfsi_plus_form_heading_fontalign, #sfsi_plus_form_field_font, #sfsi_plus_form_field_fontstyle, #sfsi_plus_form_field_fontalign, #sfsi_plus_form_button_font, #sfsi_plus_form_button_fontstyle, #sfsi_plus_form_button_fontalign").on("change", sfsi_plus_create_suscriber_form );
1099
+
1100
+ SFSI(".radio").live("click", function() {
1101
+ var s = SFSI(this).parent().find("input:radio:first");
1102
+ switch(s.attr("name")) {
1103
+ case 'sfsi_plus_form_adjustment':
1104
+ if(s.val() == 'no')
1105
+ s.parents(".row_tab").next(".row_tab").show("fast");
1106
+ else
1107
+ s.parents(".row_tab").next(".row_tab").hide("fast");
1108
+ sfsi_plus_create_suscriber_form()
1109
+ break;
1110
+ case 'sfsi_plus_form_border':
1111
+ if(s.val() == 'yes')
1112
+ s.parents(".row_tab").next(".row_tab").show("fast");
1113
+ else
1114
+ s.parents(".row_tab").next(".row_tab").hide("fast");
1115
+ sfsi_plus_create_suscriber_form()
1116
+ break;
1117
+ default:
1118
+ }
1119
+ });
1120
+ SFSI("#sfsiPlusFormBorderColor").ColorPicker({
1121
+ color:"#f80000",
1122
+ onBeforeShow:function() {
1123
+ s(this).ColorPickerSetColor(SFSI("#sfsi_plus_form_border_color").val());
1124
+ },
1125
+ onShow:function(s) {
1126
+ return SFSI(s).fadeIn(500), !1;
1127
+ },
1128
+ onHide:function(s) {
1129
+ return SFSI(s).fadeOut(500), !1;
1130
+ },
1131
+ onChange:function(s, i) {
1132
+ SFSI("#sfsi_plus_form_border_color").val("#" + i), SFSI("#sfsiPlusFormBorderColor").css("background", "#" + i);
1133
+ sfsi_plus_create_suscriber_form();
1134
+ },
1135
+ onClick:function(s, i) {
1136
+ SFSI("#sfsi_plus_popup_background_color").val("#" + i), SFSI("#sfsiPlusFormBorderColor").css("background", "#" + i);
1137
+ sfsi_plus_create_suscriber_form();
1138
+ }
1139
+ }),
1140
+ SFSI("#sfsiPlusFormBackground").ColorPicker({
1141
+ color:"#f80000",
1142
+ onBeforeShow:function() {
1143
+ s(this).ColorPickerSetColor(SFSI("#sfsi_plus_form_background").val());
1144
+ },
1145
+ onShow:function(s) {
1146
+ return SFSI(s).fadeIn(500), !1;
1147
+ },
1148
+ onHide:function(s) {
1149
+ return SFSI(s).fadeOut(500), !1;
1150
+ },
1151
+ onChange:function(s, i) {
1152
+ SFSI("#sfsi_plus_form_background").val("#" + i), SFSI("#sfsiPlusFormBackground").css("background", "#" + i);
1153
+ sfsi_plus_create_suscriber_form();
1154
+ },
1155
+ onClick:function(s, i) {
1156
+ SFSI("#sfsi_plus_form_background").val("#" + i), SFSI("#sfsiPlusFormBackground").css("background", "#" + i);
1157
+ sfsi_plus_create_suscriber_form();
1158
+ }
1159
+ }),
1160
+ SFSI("#sfsiPlusFormHeadingFontcolor").ColorPicker({
1161
+ color:"#f80000",
1162
+ onBeforeShow:function() {
1163
+ s(this).ColorPickerSetColor(SFSI("#sfsi_plus_form_heading_fontcolor").val());
1164
+ },
1165
+ onShow:function(s) {
1166
+ return SFSI(s).fadeIn(500), !1;
1167
+ },
1168
+ onHide:function(s) {
1169
+ return SFSI(s).fadeOut(500), !1;
1170
+ },
1171
+ onChange:function(s, i) {
1172
+ SFSI("#sfsi_plus_form_heading_fontcolor").val("#"+i), SFSI("#sfsiPlusFormHeadingFontcolor").css("background","#"+i);
1173
+ sfsi_plus_create_suscriber_form();
1174
+ },
1175
+ onClick:function(s, i) {
1176
+ SFSI("#sfsi_plus_form_heading_fontcolor").val("#"+i), SFSI("#sfsiPlusFormHeadingFontcolor").css("background","#"+i);
1177
+ sfsi_plus_create_suscriber_form();
1178
+ }
1179
+ }),
1180
+ SFSI("#sfsiPlusFormFieldFontcolor").ColorPicker({
1181
+ color:"#f80000",
1182
+ onBeforeShow:function() {
1183
+ s(this).ColorPickerSetColor(SFSI("#sfsi_plus_form_field_fontcolor").val());
1184
+ },
1185
+ onShow:function(s) {
1186
+ return SFSI(s).fadeIn(500), !1;
1187
+ },
1188
+ onHide:function(s) {
1189
+ return SFSI(s).fadeOut(500), !1;
1190
+ },
1191
+ onChange:function(s, i) {
1192
+ SFSI("#sfsi_plus_form_field_fontcolor").val("#" + i), SFSI("#sfsiPlusFormFieldFontcolor").css("background", "#" +i);
1193
+ sfsi_plus_create_suscriber_form();
1194
+ },
1195
+ onClick:function(s, i) {
1196
+ SFSI("#sfsi_plus_form_field_fontcolor").val("#" + i), SFSI("#sfsiPlusFormFieldFontcolor").css("background", "#" +i);
1197
+ sfsi_plus_create_suscriber_form();
1198
+ }
1199
+ }),
1200
+ SFSI("#sfsiPlusFormButtonFontcolor").ColorPicker({
1201
+ color:"#f80000",
1202
+ onBeforeShow:function() {
1203
+ s(this).ColorPickerSetColor(SFSI("#sfsi_plus_form_button_fontcolor").val());
1204
+ },
1205
+ onShow:function(s) {
1206
+ return SFSI(s).fadeIn(500), !1;
1207
+ },
1208
+ onHide:function(s) {
1209
+ return SFSI(s).fadeOut(500), !1;
1210
+ },
1211
+ onChange:function(s, i) {
1212
+ SFSI("#sfsi_plus_form_button_fontcolor").val("#"+i), SFSI("#sfsiPlusFormButtonFontcolor").css("background", "#"+i);
1213
+ sfsi_plus_create_suscriber_form();
1214
+ },
1215
+ onClick:function(s, i) {
1216
+ SFSI("#sfsi_plus_form_button_fontcolor").val("#"+i), SFSI("#sfsiPlusFormButtonFontcolor").css("background", "#"+i);
1217
+ sfsi_plus_create_suscriber_form();
1218
+ }
1219
+ }),
1220
+ SFSI("#sfsiPlusFormButtonBackground").ColorPicker({
1221
+ color:"#f80000",
1222
+ onBeforeShow:function() {
1223
+ s(this).ColorPickerSetColor(SFSI("#sfsi_plus_form_button_background").val());
1224
+ },
1225
+ onShow:function(s) {
1226
+ return SFSI(s).fadeIn(500), !1;
1227
+ },
1228
+ onHide:function(s) {
1229
+ return SFSI(s).fadeOut(500), !1;
1230
+ },
1231
+ onChange:function(s, i) {
1232
+ SFSI("#sfsi_plus_form_button_background").val("#"+i), SFSI("#sfsiPlusFormButtonBackground").css("background","#"+i);
1233
+ sfsi_plus_create_suscriber_form();
1234
+ },
1235
+ onClick:function(s, i) {
1236
+ SFSI("#sfsi_plus_form_button_background").val("#"+i), SFSI("#sfsiPlusFormButtonBackground").css("background","#"+i);
1237
+ sfsi_plus_create_suscriber_form();
1238
+ }
1239
+ });
1240
  //changes done {Monad}
1241
 
1242
  function i() {
1259
  e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", n).toggleClass("ui-icon-triangle-1-s", !n),
1260
  t.toggleClass("accordion-content-active", !n), n ? t.slideUp() :t.slideDown(), !1;
1261
  }
1262
+ }),
1263
+ SFSI("#accordion1").accordion({
1264
  collapsible:!0,
1265
  active:!1,
1266
  heightStyle:"content",
1272
  e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", n).toggleClass("ui-icon-triangle-1-s", !n),
1273
  t.toggleClass("accordion-content-active", !n), n ? t.slideUp() :t.slideDown(), !1;
1274
  }
1275
+ }),
1276
+ SFSI(".closeSec").on("click", function() {
1277
  var s = !0, i = SFSI(this).closest("div.ui-accordion-content").prev("h3.ui-accordion-header").first(), e = SFSI(this).closest("div.ui-accordion-content").first();
1278
  i.toggleClass("ui-corner-all", s).toggleClass("accordion-header-active ui-state-active ui-corner-top", !s).attr("aria-selected", (!s).toString()),
1279
  i.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", s).toggleClass("ui-icon-triangle-1-s", !s),
1280
  e.toggleClass("accordion-content-active", !s), s ? e.slideUp() :e.slideDown();
1281
+ }),
1282
+ SFSI(document).click(function(s) {
1283
  var i = SFSI(".sfsi_plus_FrntInner"), e = SFSI(".sfsi_plus_wDiv"), t = SFSI("#at15s");
1284
  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();
1285
+ }),
1286
+ SFSI(".sfsi_plus_outr_div").find(".addthis_button").mousemove(function() {
1287
  var s = SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().top + 10;
1288
  SFSI("#at15s").css({
1289
  top:s + "px",
1290
  left:SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().left + "px"
1291
  });
1292
+ }),
1293
+ SFSI("#sfsifontCloroPicker").ColorPicker({
1294
  color:"#f80000",
1295
  onBeforeShow:function() {
1296
  s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_fontColor").val());
1309
  SFSI("#sfsi_plus_popup_fontColor").val("#" + i), SFSI("#sfsifontCloroPicker").css("background", "#" + i),
1310
  sfsi_plus_make_popBox();
1311
  }
1312
+ }),
1313
+ SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
1314
  SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
1315
+ }),
1316
+ SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
1317
  SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
1318
+ }),
1319
+ SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function() {
1320
  SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
1321
+ }),
1322
+ SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function() {
1323
  SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube.svg");
1324
+ }),
1325
+ SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function() {
1326
  SFSI(this).css("opacity", "0.9");
1327
+ }),
1328
+ SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseleave(function() {
1329
  SFSI(this).css("opacity", "1");
1330
  /*{Monad}*/
1331
+ }),
1332
+ SFSI("div#sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function() {
1333
  SFSI(this).css("opacity", "0.9");
1334
+ }),
1335
+ SFSI("div#sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function() {
1336
  SFSI(this).css("opacity", "1");
1337
+ }),
1338
+ SFSI("#sfsiBackgroundColorPicker").ColorPicker({
1339
  color:"#f80000",
1340
  onBeforeShow:function() {
1341
  s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_background_color").val());
1347
  return SFSI(s).fadeOut(500), !1;
1348
  },
1349
  onChange:function(s, i) {
1350
+ SFSI("#sfsi_plus_popup_background_color").val("#" + i), SFSI("#sfsiBackgroundColorPicker").css("background","#"+i),
1351
  sfsi_plus_make_popBox();
1352
  },
1353
  onClick:function(s, i) {
1354
+ SFSI("#sfsi_plus_popup_background_color").val("#" + i), SFSI("#sfsiBackgroundColorPicker").css("background","#"+i),
1355
  sfsi_plus_make_popBox();
1356
  }
1357
+ }),
1358
+ SFSI("#sfsiBorderColorPicker").ColorPicker({
1359
  color:"#f80000",
1360
  onBeforeShow:function() {
1361
  s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_border_color").val());
1374
  SFSI("#sfsi_plus_popup_border_color").val("#" + i), SFSI("#sfsiBorderColorPicker").css("background", "#" + i),
1375
  sfsi_plus_make_popBox();
1376
  }
1377
+ }),
1378
+ SFSI("#sfsi_plus_save1").on("click", function() {
1379
  sfsi_plus_update_step1() && sfsipluscollapse(this);
1380
+ }),
1381
+ SFSI("#sfsi_plus_save2").on("click", function() {
1382
  sfsi_plus_update_step2() && sfsipluscollapse(this);
1383
+ }),
1384
+ SFSI("#sfsi_plus_save3").on("click", function() {
1385
  sfsi_plus_update_step3() && sfsipluscollapse(this);
1386
+ }),
1387
+ SFSI("#sfsi_plus_save4").on("click", function() {
1388
  sfsi_plus_update_step4() && sfsipluscollapse(this);
1389
+ }),
1390
+ SFSI("#sfsi_plus_save5").on("click", function() {
1391
  sfsi_plus_update_step5() && sfsipluscollapse(this);
1392
+ }),
1393
+ SFSI("#sfsi_plus_save6").on("click", function() {
1394
  sfsi_plus_update_step6() && sfsipluscollapse(this);
1395
+ }),
1396
+ SFSI("#sfsi_plus_save7").on("click", function() {
1397
  sfsi_plus_update_step7() && sfsipluscollapse(this);
1398
+ }),
1399
+ SFSI("#sfsi_plus_save8").on("click", function() {
1400
  sfsi_plus_update_step8() && sfsipluscollapse(this);
1401
+ }),
1402
+ SFSI("#sfsi_plus_save9").on("click", function() {
1403
+ sfsi_plus_update_step9() && sfsipluscollapse(this);
1404
+ }),
1405
+ SFSI("#save_plus_all_settings").on("click", function() {
1406
  return SFSI("#save_plus_all_settings").text("Saving.."), SFSI(".save_button >a").css("pointer-events", "none"),
1407
+ sfsi_plus_update_step1(), sfsi_plus_update_step9(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Which icons do you want to show on your site?" tab.', 8),
1408
  global_error = 0, !1) :(sfsi_plus_update_step2(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "What do you want the icons to do?" tab.', 8),
1409
  global_error = 0, !1) :(sfsi_plus_update_step3(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "What design & animation do you want to give your icons?" tab.', 8),
1410
  global_error = 0, !1) :(sfsi_plus_update_step4(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Do you want to display "counts" next to your icons?" tab.', 8),
1414
  global_error = 0, !1) : sfsi_plus_update_step8(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Where shall they be displayed?" tab.', 8),
1415
  /*global_error = 0, !1) :void (0 == global_error && sfsiplus_showErrorSuc("success", 'Saved! Now go to the <a href="widgets.php">widget</a> area and place the widget into your sidebar (if not done already)', 8))))))));*/
1416
  global_error = 0, !1) :void (0 == global_error && sfsiplus_showErrorSuc("success", '', 8))))))));
1417
+ }),
1418
+ SFSI(".fileUPInput").live("change", function() {
1419
  sfsiplus_beForeLoad(), sfsiplus_beforeIconSubmit(this) && (SFSI(".upload-overlay").css("pointer-events", "none"),
1420
  SFSI("#customIconFrm").ajaxForm({
1421
  dataType:"json",
1422
  success:sfsiplus_afterIconSuccess,
1423
  resetForm:!0
1424
  }).submit());
1425
+ }),
1426
+ SFSI(".pop-up").on("click", function() {
1427
  ("fbex-s2" == SFSI(this).attr("data-id") || "googlex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(),
1428
  SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")),
1429
  SFSI("." + SFSI(this).attr("data-id")).show("slow");
1430
+ }),
1431
+ SFSI("#close_popup").live("click", function() {
1432
  SFSI(".read-overlay").hide("slow");
1433
  });
1434
  var e = 0;
1443
  if (s.is(":checked") && "sfsiplus-cusotm-icon" == s.attr("element-type")) SFSI(".fileUPInput").attr("name", "custom_icons[]"),
1444
  SFSI(".upload-overlay").show("slow", function() {
1445
  e = 0;
1446
+ }),
1447
+ SFSI("#upload_id").val(s.attr("name")); else if (!s.is(":checked") && "sfsiplus-cusotm-icon" == s.attr("element-type")) return s.attr("ele-type") ? (SFSI(this).attr("checked", !0),
1448
  SFSI(this).css("background-position", "0px -36px"), e = 0, !1) :confirm("Are you sure want to delete this Icon..?? ") ? "suc" == sfsi_plus_delete_CusIcon(this, s) ? (s.attr("checked", !1),
1449
  SFSI(this).css("background-position", "0px 0px"), e = 0, !1) :(e = 0, !1) :(s.attr("checked", !0),
1450
  SFSI(this).css("background-position", "0px -36px"), e = 0, !1);
1451
+ }),
1452
+ SFSI(".plus_icn_listing").on("click", ".checkbox", function() {
1453
  checked = SFSI(this).parent().find("input:checkbox:first"), "sfsi_plus_email_display" != checked.attr("name") || checked.is(":checked") || SFSI(".demail-1").show("slow");
1454
+ }),
1455
+ SFSI("#deac_email2").on("click", function() {
1456
  SFSI(".demail-1").hide("slow"), SFSI(".demail-2").show("slow");
1457
+ }),
1458
+ SFSI("#deac_email3").on("click", function() {
1459
  SFSI(".demail-2").hide("slow"), SFSI(".demail-3").show("slow");
1460
+ }),
1461
+ SFSI(".hideemailpop").on("click", function() {
1462
+ SFSI('input[name="sfsi_plus_email_display"]').attr("checked", !0),
1463
+ SFSI('input[name="sfsi_plus_email_display"]').parent().find("span:first").css("background-position", "0px -36px"),
1464
  SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
1465
+ }),
1466
+ SFSI(".hidePop").on("click", function() {
1467
  SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
1468
+ }),
1469
+ SFSI(".sfsiplus_activate_footer").on("click", function() {
1470
  var nonce = SFSI(this).attr("data-nonce");
1471
  SFSI(this).text("activating....");
1472
  var s = {
1491
  }
1492
  }
1493
  });
1494
+ }),
1495
+ SFSI(".sfsiplus_removeFooter").on("click", function() {
1496
  var nonce = SFSI(this).attr("data-nonce");
1497
  SFSI(this).text("working....");
1498
  var s = {
1515
  }
1516
  }
1517
  });
1518
+ }),
1519
+ SFSI(".radio").live("click", function() {
1520
  var s = SFSI(this).parent().find("input:radio:first");
1521
  "sfsi_plus_display_counts" == s.attr("name") && sfsi_plus_show_counts();
1522
+ }),
1523
+ SFSI("#close_Uploadpopup").on("click", i), SFSI(".radio").live("click", function() {
1524
  var s = SFSI(this).parent().find("input:radio:first");
1525
  "sfsi_plus_show_Onposts" == s.attr("name") && sfsi_plus_show_OnpostsDisplay();
1526
+ }),
1527
+ sfsi_plus_show_OnpostsDisplay(),
1528
+ sfsi_plus_depened_sections(),
1529
+ sfsi_plus_show_counts(),
1530
+ sfsi_plus_showPreviewCounts(),
1531
  SFSI(".plus_share_icon_order").sortable({
1532
  update:function() {
1533
  SFSI(".plus_share_icon_order li").each(function() {
1535
  });
1536
  },
1537
  revert:!0
1538
+ }),
1539
+ SFSI(".radio").live("click", function() {
1540
  var s = SFSI(this).parent().find("input:radio:first");
1541
  "sfsi_plus_email_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_email_countsDisplay"]').prop("checked", !0),
1542
  SFSI('input[name="sfsi_plus_email_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
1647
  }) :(SFSI(this).css({
1648
  "z-index":"0"
1649
  }), SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide());
1650
+ }),
1651
+ SFSI("body").on("click", function() {
1652
  SFSI(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide();
1653
+ }),
1654
+ SFSI(".adminTooltip >a").on("hover", function() {
1655
  SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"),
1656
  SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show();
1657
+ }),
1658
+ SFSI(".adminTooltip").on("mouseleave", function() {
1659
  "none" != SFSI(".gpls_tool_bdr").css("display") && 0 != SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function() {
1660
  SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide();
1661
  }) :(SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"),
1662
  SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide());
1663
+ }),
1664
+ SFSI(".expand-area").on("click", function() {
1665
  "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"),
1666
  SFSI(this).text("Collapse")) :(SFSI(this).siblings("p").children("label").fadeOut("slow"),
1667
  SFSI(this).text("Read more"));
1668
+ }),
1669
+ SFSI(".radio").live("click", function()
1670
  {
1671
  var s = SFSI(this).parent().find("input:radio:first");
1672
  "sfsi_plus_icons_float" == s.attr("name") && "yes" == s.val() && (SFSI(".float_options").slideDown("slow"),
1677
  SFSI('input[name="sfsi_plus_icons_float"][value="no"]').prop("checked", !0), SFSI('input[name="sfsi_plus_icons_float"][value="yes"]').prop("checked", !1),
1678
  SFSI('input[name="sfsi_plus_icons_float"][value="no"]').parent().find("span.radio").attr("style", "background-position:0px -41px;"),
1679
  SFSI('input[name="sfsi_plus_icons_float"][value="yes"]').parent().find("span.radio").attr("style", "background-position:0px -0px;"));
1680
+ }),
1681
+ SFSI(".sfsi_plus_wDiv").length > 0 && setTimeout(function() {
1682
  var s = parseInt(SFSI(".sfsi_plus_wDiv").height()) + 0 + "px";
1683
  SFSI(".sfsi_plus_holders").each(function() {
1684
  SFSI(this).css("height", s);
1685
  });
1686
+ }, 200),
1687
+ SFSI(".checkbox").live("click", function() {
1688
  var s = SFSI(this).parent().find("input:checkbox:first");
1689
  ("sfsi_plus_shuffle_Firstload" == s.attr("name") && "checked" == s.attr("checked") || "sfsi_plus_shuffle_interval" == s.attr("name") && "checked" == s.attr("checked")) && (SFSI('input[name="sfsi_plus_shuffle_icons"]').parent().find("span").css("background-position", "0px -36px"),
1690
  SFSI('input[name="sfsi_plus_shuffle_icons"]').attr("checked", "checked")), "sfsi_plus_shuffle_icons" == s.attr("name") && "checked" != s.attr("checked") && (SFSI('input[name="sfsi_plus_shuffle_Firstload"]').removeAttr("checked"),
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -8,16 +8,16 @@ function sfsi_plus_options_updater1()
8
  echo json_encode(array("wrong_nonce")); exit;
9
  }
10
  $option1= unserialize(get_option('sfsi_plus_section1_options',false));
11
- $sfsi_plus_rss_display = isset($_POST["sfsi_plus_rss_display"]) ? $_POST["sfsi_plus_rss_display"] : 'no';
12
- $sfsi_plus_email_display = isset($_POST["sfsi_plus_email_display"]) ? $_POST["sfsi_plus_email_display"] : 'no';
13
- $sfsi_plus_facebook_display = isset($_POST["sfsi_plus_facebook_display"]) ? $_POST["sfsi_plus_facebook_display"] : 'no';
14
- $sfsi_plus_twitter_display = isset($_POST["sfsi_plus_twitter_display"]) ? $_POST["sfsi_plus_twitter_display"] : 'no';
15
- $sfsi_plus_google_display = isset($_POST["sfsi_plus_google_display"]) ? $_POST["sfsi_plus_google_display"] : 'no';
16
- $sfsi_plus_share_display = isset($_POST["sfsi_plus_share_display"]) ? $_POST["sfsi_plus_share_display"] : 'no';
17
- $sfsi_plus_youtube_display = isset($_POST["sfsi_plus_youtube_display"]) ? $_POST["sfsi_plus_youtube_display"] : 'no';
18
- $sfsi_plus_pinterest_display = isset($_POST["sfsi_plus_pinterest_display"]) ? $_POST["sfsi_plus_pinterest_display"] : 'no';
19
- $sfsi_plus_instagram_display = isset($_POST["sfsi_plus_instagram_display"]) ? $_POST["sfsi_plus_instagram_display"] : 'no';
20
- $sfsi_plus_linkedin_display = isset($_POST["sfsi_plus_linkedin_display"]) ? $_POST["sfsi_plus_linkedin_display"] : 'no';
21
  $sfsi_custom_icons = isset($option1['sfsi_custom_files']) ? $option1['sfsi_custom_files'] : '';
22
  $up_option1=array(
23
  'sfsi_plus_rss_display'=>$sfsi_plus_rss_display,
@@ -31,7 +31,7 @@ function sfsi_plus_options_updater1()
31
  'sfsi_plus_linkedin_display'=>$sfsi_plus_linkedin_display,
32
  'sfsi_plus_instagram_display'=>$sfsi_plus_instagram_display,
33
  'sfsi_custom_files'=>$sfsi_custom_icons
34
- );
35
  update_option('sfsi_plus_section1_options', serialize($up_option1));
36
  header('Content-Type: application/json');
37
  echo json_encode(array("success")); exit;
@@ -40,38 +40,39 @@ function sfsi_plus_options_updater1()
40
  add_action('wp_ajax_plus_updateSrcn2','sfsi_plus_options_updater2');
41
  function sfsi_plus_options_updater2()
42
  {
43
- if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step2")) {
 
44
  echo json_encode(array("wrong_nonce")); exit;
45
  }
46
- $sfsi_plus_rss_url = isset($_POST["sfsi_plus_rss_url"]) ? trim($_POST["sfsi_plus_rss_url"]) : '';
47
- $sfsi_plus_rss_icons = isset($_POST["sfsi_plus_rss_icons"]) ? $_POST["sfsi_plus_rss_icons"] : 'email';
48
 
49
- $sfsi_plus_facebookPage_option = isset($_POST["sfsi_plus_facebookPage_option"]) ? $_POST["sfsi_plus_facebookPage_option"] : 'no';
50
- $sfsi_plus_facebookPage_url = isset($_POST["sfsi_plus_facebookPage_url"]) ? trim($_POST["sfsi_plus_facebookPage_url"]) : '';
51
- $sfsi_plus_facebookLike_option = isset($_POST["sfsi_plus_facebookLike_option"]) ? $_POST["sfsi_plus_facebookLike_option"] : 'no';
52
- $sfsi_plus_facebookShare_option = isset($_POST["sfsi_plus_facebookShare_option"]) ? $_POST["sfsi_plus_facebookShare_option"] : 'no';
53
 
54
- $sfsi_plus_twitter_followme = isset($_POST["sfsi_plus_twitter_followme"]) ? $_POST["sfsi_plus_twitter_followme"] : 'no';
55
- $sfsi_plus_twitter_followUserName = isset($_POST["sfsi_plus_twitter_followUserName"]) ? trim($_POST["sfsi_plus_twitter_followUserName"]) : '';
56
- $sfsi_plus_twitter_aboutPage = isset($_POST["sfsi_plus_twitter_aboutPage"]) ? $_POST["sfsi_plus_twitter_aboutPage"] : 'no';
57
- $sfsi_plus_twitter_page = isset($_POST["sfsi_plus_twitter_page"]) ? $_POST["sfsi_plus_twitter_page"] : 'no';
58
- $sfsi_plus_twitter_pageURL = isset($_POST["sfsi_plus_twitter_pageURL"]) ? trim($_POST["sfsi_plus_twitter_pageURL"]) : '';
59
- $sfsi_plus_twitter_aboutPageText = isset($_POST["sfsi_plus_twitter_aboutPageText"]) ? $_POST["sfsi_plus_twitter_aboutPageText"] : 'Hey check out this cool site I found';
60
 
61
- $sfsi_plus_google_page = isset($_POST["sfsi_plus_google_page"]) ? $_POST["sfsi_plus_google_page"] : 'no';
62
- $sfsi_plus_google_pageURL = isset($_POST["sfsi_plus_google_pageURL"]) ? trim($_POST["sfsi_plus_google_pageURL"]) : '';
63
- $sfsi_plus_googleLike_option = isset($_POST["sfsi_plus_googleLike_option"]) ? $_POST["sfsi_plus_googleLike_option"] : 'no';
64
- $sfsi_plus_googleShare_option = isset($_POST["sfsi_plus_googleShare_option"]) ? $_POST["sfsi_plus_googleShare_option"] : 'no';
65
 
66
- $sfsi_plus_youtube_pageUrl = isset($_POST["sfsi_plus_youtube_pageUrl"]) ? trim($_POST["sfsi_plus_youtube_pageUrl"]) : '';
67
- $sfsi_plus_youtube_page = isset($_POST["sfsi_plus_youtube_page"]) ? $_POST["sfsi_plus_youtube_page"] : 'no';
68
- $sfsi_plus_youtube_follow = isset($_POST["sfsi_plus_youtube_follow"]) ? $_POST["sfsi_plus_youtube_follow"] : 'no';
69
 
70
- $sfsi_plus_pinterest_page = isset($_POST["sfsi_plus_pinterest_page"]) ? $_POST["sfsi_plus_pinterest_page"] : 'no';
71
- $sfsi_plus_pinterest_pageUrl = isset($_POST["sfsi_plus_pinterest_pageUrl"]) ? trim($_POST["sfsi_plus_pinterest_pageUrl"]) : '';
72
- $sfsi_plus_pinterest_pingBlog = isset($_POST["sfsi_plus_pinterest_pingBlog"]) ? $_POST["sfsi_plus_pinterest_pingBlog"] : 'no';
73
 
74
- $sfsi_plus_instagram_pageUrl = isset($_POST["sfsi_plus_instagram_pageUrl"]) ? trim($_POST["sfsi_plus_instagram_pageUrl"]) : '';
75
 
76
  $sfsi_plus_linkedin_page = isset($_POST["sfsi_plus_linkedin_page"]) ? $_POST["sfsi_plus_linkedin_page"] : 'no';
77
  $sfsi_plus_linkedin_pageURL = isset($_POST["sfsi_plus_linkedin_pageURL"]) ? trim($_POST["sfsi_plus_linkedin_pageURL"]) : '';
@@ -135,11 +136,10 @@ function sfsi_plus_options_updater2()
135
  'sfsi_plus_linkedin_recommendCompany'=>$sfsi_plus_linkedin_recommendCompany,
136
  'sfsi_plus_linkedin_recommendProductId'=>$sfsi_plus_linkedin_recommendProductId,
137
  'sfsi_plus_CustomIcon_links'=>$sfsi_plus_CustomIcon_links
138
-
139
  );
140
- update_option('sfsi_plus_section2_options',serialize($up_option2));
141
- //$option4=unserialize(get_option('sfsi_plus_section4_options',false));
142
- //update_option('sfsi_plus_section4_options',serialize($option4));
143
  header('Content-Type: application/json');
144
  echo json_encode(array("success")); exit;
145
  }
@@ -478,24 +478,24 @@ function sfsi_plus_options_updater7()
478
  header('Content-Type: application/json');
479
  echo json_encode(array("success")); exit;
480
  }
481
-
482
  add_action('wp_ajax_plus_updateSrcn8','sfsi_plus_options_updater8');
483
  function sfsi_plus_options_updater8()
484
  {
485
  if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step8")) {
486
  echo json_encode(array("wrong_nonce")); exit;
487
  }
488
- $sfsi_plus_show_via_widget = isset($_POST["sfsi_plus_show_via_widget"]) ? $_POST["sfsi_plus_show_via_widget"] : 'no';
489
- $sfsi_plus_float_on_page = isset($_POST["sfsi_plus_float_on_page"]) ? $_POST["sfsi_plus_float_on_page"] : 'no';
490
- $sfsi_plus_float_page_position = isset($_POST["sfsi_plus_float_page_position"]) ? $_POST["sfsi_plus_float_page_position"] : 'no';
491
- $sfsi_plus_place_item_manually = isset($_POST["sfsi_plus_place_item_manually"]) ? $_POST["sfsi_plus_place_item_manually"] : 'no';
492
- $sfsi_plus_show_item_onposts = isset($_POST["sfsi_plus_show_item_onposts"]) ? $_POST["sfsi_plus_show_item_onposts"] : 'no';
493
- $sfsi_plus_display_button_type = isset($_POST["sfsi_plus_display_button_type"]) ? $_POST["sfsi_plus_display_button_type"] : 'no';
494
- $sfsi_plus_post_icons_size = isset($_POST["sfsi_plus_post_icons_size"]) ? $_POST["sfsi_plus_post_icons_size"] : 40;
495
- $sfsi_plus_post_icons_spacing = isset($_POST["sfsi_plus_post_icons_spacing"]) ? $_POST["sfsi_plus_post_icons_spacing"] : 5;
496
- $sfsi_plus_show_Onposts = isset($_POST["sfsi_plus_show_Onposts"]) ? $_POST["sfsi_plus_show_Onposts"] : 'no';
497
- $sfsi_plus_textBefor_icons = isset($_POST["sfsi_plus_textBefor_icons"]) ? $_POST["sfsi_plus_textBefor_icons"] : 'Please follow and like us:';
498
- $sfsi_plus_icons_alignment = isset($_POST["sfsi_plus_icons_alignment"]) ? $_POST["sfsi_plus_icons_alignment"] : 'center-right';
499
  $sfsi_plus_icons_DisplayCounts = isset($_POST["sfsi_plus_icons_DisplayCounts"]) ? $_POST["sfsi_plus_icons_DisplayCounts"] : 'no';
500
  $sfsi_plus_display_before_posts = isset($_POST["sfsi_plus_display_before_posts"]) ? $_POST["sfsi_plus_display_before_posts"] : 'no';
501
  $sfsi_plus_display_after_posts = isset($_POST["sfsi_plus_display_after_posts"]) ? $_POST["sfsi_plus_display_after_posts"] : 'no';
@@ -546,7 +546,81 @@ function sfsi_plus_options_updater8()
546
  header('Content-Type: application/json');
547
  echo json_encode(array("success")); exit;
548
  }
549
- //updateSrcn8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
550
 
551
  /* upload custom icons images */
552
  /* get counts for admin section */
@@ -749,4 +823,32 @@ function sfsiplusremoveFooter()
749
  update_option('sfsi_plus_footer_sec', 'no');
750
  echo json_encode(array('res'=>'success'));exit;
751
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
752
  ?>
8
  echo json_encode(array("wrong_nonce")); exit;
9
  }
10
  $option1= unserialize(get_option('sfsi_plus_section1_options',false));
11
+ $sfsi_plus_rss_display = isset($_POST["sfsi_plus_rss_display"]) ? $_POST["sfsi_plus_rss_display"] : 'no';
12
+ $sfsi_plus_email_display = isset($_POST["sfsi_plus_email_display"]) ? $_POST["sfsi_plus_email_display"] : 'no';
13
+ $sfsi_plus_facebook_display = isset($_POST["sfsi_plus_facebook_display"]) ? $_POST["sfsi_plus_facebook_display"] : 'no';
14
+ $sfsi_plus_twitter_display = isset($_POST["sfsi_plus_twitter_display"]) ? $_POST["sfsi_plus_twitter_display"] : 'no';
15
+ $sfsi_plus_google_display = isset($_POST["sfsi_plus_google_display"]) ? $_POST["sfsi_plus_google_display"] : 'no';
16
+ $sfsi_plus_share_display = isset($_POST["sfsi_plus_share_display"]) ? $_POST["sfsi_plus_share_display"] : 'no';
17
+ $sfsi_plus_youtube_display = isset($_POST["sfsi_plus_youtube_display"]) ? $_POST["sfsi_plus_youtube_display"] : 'no';
18
+ $sfsi_plus_pinterest_display= isset($_POST["sfsi_plus_pinterest_display"]) ? $_POST["sfsi_plus_pinterest_display"] : 'no';
19
+ $sfsi_plus_instagram_display= isset($_POST["sfsi_plus_instagram_display"]) ? $_POST["sfsi_plus_instagram_display"] : 'no';
20
+ $sfsi_plus_linkedin_display = isset($_POST["sfsi_plus_linkedin_display"]) ? $_POST["sfsi_plus_linkedin_display"] : 'no';
21
  $sfsi_custom_icons = isset($option1['sfsi_custom_files']) ? $option1['sfsi_custom_files'] : '';
22
  $up_option1=array(
23
  'sfsi_plus_rss_display'=>$sfsi_plus_rss_display,
31
  'sfsi_plus_linkedin_display'=>$sfsi_plus_linkedin_display,
32
  'sfsi_plus_instagram_display'=>$sfsi_plus_instagram_display,
33
  'sfsi_custom_files'=>$sfsi_custom_icons
34
+ );
35
  update_option('sfsi_plus_section1_options', serialize($up_option1));
36
  header('Content-Type: application/json');
37
  echo json_encode(array("success")); exit;
40
  add_action('wp_ajax_plus_updateSrcn2','sfsi_plus_options_updater2');
41
  function sfsi_plus_options_updater2()
42
  {
43
+ if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step2"))
44
+ {
45
  echo json_encode(array("wrong_nonce")); exit;
46
  }
47
+ $sfsi_plus_rss_url = isset($_POST["sfsi_plus_rss_url"]) ? trim($_POST["sfsi_plus_rss_url"]) : '';
48
+ $sfsi_plus_rss_icons = isset($_POST["sfsi_plus_rss_icons"]) ? $_POST["sfsi_plus_rss_icons"] : 'email';
49
 
50
+ $sfsi_plus_facebookPage_option = isset($_POST["sfsi_plus_facebookPage_option"]) ? $_POST["sfsi_plus_facebookPage_option"] : 'no';
51
+ $sfsi_plus_facebookPage_url = isset($_POST["sfsi_plus_facebookPage_url"]) ? trim($_POST["sfsi_plus_facebookPage_url"]) : '';
52
+ $sfsi_plus_facebookLike_option = isset($_POST["sfsi_plus_facebookLike_option"]) ? $_POST["sfsi_plus_facebookLike_option"] : 'no';
53
+ $sfsi_plus_facebookShare_option= isset($_POST["sfsi_plus_facebookShare_option"]) ? $_POST["sfsi_plus_facebookShare_option"] : 'no';
54
 
55
+ $sfsi_plus_twitter_followme = isset($_POST["sfsi_plus_twitter_followme"]) ? $_POST["sfsi_plus_twitter_followme"] : 'no';
56
+ $sfsi_plus_twitter_followUserName = isset($_POST["sfsi_plus_twitter_followUserName"]) ? trim($_POST["sfsi_plus_twitter_followUserName"]) : '';
57
+ $sfsi_plus_twitter_aboutPage = isset($_POST["sfsi_plus_twitter_aboutPage"]) ? $_POST["sfsi_plus_twitter_aboutPage"] : 'no';
58
+ $sfsi_plus_twitter_page = isset($_POST["sfsi_plus_twitter_page"]) ? $_POST["sfsi_plus_twitter_page"] : 'no';
59
+ $sfsi_plus_twitter_pageURL = isset($_POST["sfsi_plus_twitter_pageURL"]) ? trim($_POST["sfsi_plus_twitter_pageURL"]) : '';
60
+ $sfsi_plus_twitter_aboutPageText = isset($_POST["sfsi_plus_twitter_aboutPageText"]) ? $_POST["sfsi_plus_twitter_aboutPageText"] : 'Hey check out this cool site I found';
61
 
62
+ $sfsi_plus_google_page = isset($_POST["sfsi_plus_google_page"]) ? $_POST["sfsi_plus_google_page"] : 'no';
63
+ $sfsi_plus_google_pageURL = isset($_POST["sfsi_plus_google_pageURL"]) ? trim($_POST["sfsi_plus_google_pageURL"]) : '';
64
+ $sfsi_plus_googleLike_option = isset($_POST["sfsi_plus_googleLike_option"]) ? $_POST["sfsi_plus_googleLike_option"] : 'no';
65
+ $sfsi_plus_googleShare_option = isset($_POST["sfsi_plus_googleShare_option"]) ? $_POST["sfsi_plus_googleShare_option"] : 'no';
66
 
67
+ $sfsi_plus_youtube_pageUrl = isset($_POST["sfsi_plus_youtube_pageUrl"]) ? trim($_POST["sfsi_plus_youtube_pageUrl"]) : '';
68
+ $sfsi_plus_youtube_page = isset($_POST["sfsi_plus_youtube_page"]) ? $_POST["sfsi_plus_youtube_page"] : 'no';
69
+ $sfsi_plus_youtube_follow = isset($_POST["sfsi_plus_youtube_follow"]) ? $_POST["sfsi_plus_youtube_follow"] : 'no';
70
 
71
+ $sfsi_plus_pinterest_page = isset($_POST["sfsi_plus_pinterest_page"]) ? $_POST["sfsi_plus_pinterest_page"] : 'no';
72
+ $sfsi_plus_pinterest_pageUrl = isset($_POST["sfsi_plus_pinterest_pageUrl"]) ? trim($_POST["sfsi_plus_pinterest_pageUrl"]) : '';
73
+ $sfsi_plus_pinterest_pingBlog = isset($_POST["sfsi_plus_pinterest_pingBlog"]) ? $_POST["sfsi_plus_pinterest_pingBlog"] : 'no';
74
 
75
+ $sfsi_plus_instagram_pageUrl = isset($_POST["sfsi_plus_instagram_pageUrl"]) ? trim($_POST["sfsi_plus_instagram_pageUrl"]) : '';
76
 
77
  $sfsi_plus_linkedin_page = isset($_POST["sfsi_plus_linkedin_page"]) ? $_POST["sfsi_plus_linkedin_page"] : 'no';
78
  $sfsi_plus_linkedin_pageURL = isset($_POST["sfsi_plus_linkedin_pageURL"]) ? trim($_POST["sfsi_plus_linkedin_pageURL"]) : '';
136
  'sfsi_plus_linkedin_recommendCompany'=>$sfsi_plus_linkedin_recommendCompany,
137
  'sfsi_plus_linkedin_recommendProductId'=>$sfsi_plus_linkedin_recommendProductId,
138
  'sfsi_plus_CustomIcon_links'=>$sfsi_plus_CustomIcon_links
 
139
  );
140
+ update_option('sfsi_plus_section2_options',serialize($up_option2));
141
+ //$option4=unserialize(get_option('sfsi_plus_section4_options',false));
142
+ //update_option('sfsi_plus_section4_options',serialize($option4));
143
  header('Content-Type: application/json');
144
  echo json_encode(array("success")); exit;
145
  }
478
  header('Content-Type: application/json');
479
  echo json_encode(array("success")); exit;
480
  }
481
+ /* save settings for section 3 */
482
  add_action('wp_ajax_plus_updateSrcn8','sfsi_plus_options_updater8');
483
  function sfsi_plus_options_updater8()
484
  {
485
  if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step8")) {
486
  echo json_encode(array("wrong_nonce")); exit;
487
  }
488
+ $sfsi_plus_show_via_widget = isset($_POST["sfsi_plus_show_via_widget"]) ? $_POST["sfsi_plus_show_via_widget"] : 'no';
489
+ $sfsi_plus_float_on_page = isset($_POST["sfsi_plus_float_on_page"]) ? $_POST["sfsi_plus_float_on_page"] : 'no';
490
+ $sfsi_plus_float_page_position = isset($_POST["sfsi_plus_float_page_position"]) ? $_POST["sfsi_plus_float_page_position"] : 'no';
491
+ $sfsi_plus_place_item_manually = isset($_POST["sfsi_plus_place_item_manually"]) ? $_POST["sfsi_plus_place_item_manually"] : 'no';
492
+ $sfsi_plus_show_item_onposts = isset($_POST["sfsi_plus_show_item_onposts"]) ? $_POST["sfsi_plus_show_item_onposts"] : 'no';
493
+ $sfsi_plus_display_button_type = isset($_POST["sfsi_plus_display_button_type"]) ? $_POST["sfsi_plus_display_button_type"] : 'no';
494
+ $sfsi_plus_post_icons_size = isset($_POST["sfsi_plus_post_icons_size"]) ? $_POST["sfsi_plus_post_icons_size"] : 40;
495
+ $sfsi_plus_post_icons_spacing = isset($_POST["sfsi_plus_post_icons_spacing"]) ? $_POST["sfsi_plus_post_icons_spacing"] : 5;
496
+ $sfsi_plus_show_Onposts = isset($_POST["sfsi_plus_show_Onposts"]) ? $_POST["sfsi_plus_show_Onposts"] : 'no';
497
+ $sfsi_plus_textBefor_icons = isset($_POST["sfsi_plus_textBefor_icons"]) ? $_POST["sfsi_plus_textBefor_icons"] : 'Please follow and like us:';
498
+ $sfsi_plus_icons_alignment = isset($_POST["sfsi_plus_icons_alignment"]) ? $_POST["sfsi_plus_icons_alignment"] : 'center-right';
499
  $sfsi_plus_icons_DisplayCounts = isset($_POST["sfsi_plus_icons_DisplayCounts"]) ? $_POST["sfsi_plus_icons_DisplayCounts"] : 'no';
500
  $sfsi_plus_display_before_posts = isset($_POST["sfsi_plus_display_before_posts"]) ? $_POST["sfsi_plus_display_before_posts"] : 'no';
501
  $sfsi_plus_display_after_posts = isset($_POST["sfsi_plus_display_after_posts"]) ? $_POST["sfsi_plus_display_after_posts"] : 'no';
546
  header('Content-Type: application/json');
547
  echo json_encode(array("success")); exit;
548
  }
549
+ /* save settings for section 8 */
550
+ add_action('wp_ajax_plus_updateSrcn9','sfsi_plus_options_updater9');
551
+ function sfsi_plus_options_updater9()
552
+ {
553
+ if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step9")) {
554
+ echo json_encode(array("wrong_nonce")); exit;
555
+ }
556
+
557
+ $sfsi_plus_form_adjustment = isset($_POST["sfsi_plus_form_adjustment"]) ? $_POST["sfsi_plus_form_adjustment"] : 'yes';
558
+ $sfsi_plus_form_height = isset($_POST["sfsi_plus_form_height"]) ? $_POST["sfsi_plus_form_height"] : '180';
559
+ $sfsi_plus_form_width = isset($_POST["sfsi_plus_form_width"]) ? $_POST["sfsi_plus_form_width"] : '230';
560
+ $sfsi_plus_form_border = isset($_POST["sfsi_plus_form_border"]) ? $_POST["sfsi_plus_form_border"] : 'no';
561
+ $sfsi_plus_form_border_thickness= isset($_POST["sfsi_plus_form_border_thickness"]) ? $_POST["sfsi_plus_form_border_thickness"] : '1';
562
+ $sfsi_plus_form_border_color = isset($_POST["sfsi_plus_form_border_color"]) ? $_POST["sfsi_plus_form_border_color"] : '#f3faf2';
563
+ $sfsi_plus_form_background = isset($_POST["sfsi_plus_form_background"]) ? $_POST["sfsi_plus_form_background"] : '#eff7f7';
564
+
565
+ $sfsi_plus_form_heading_text = isset($_POST["sfsi_plus_form_heading_text"]) ? $_POST["sfsi_plus_form_heading_text"] : '';
566
+ $sfsi_plus_form_heading_font = isset($_POST["sfsi_plus_form_heading_font"]) ? $_POST["sfsi_plus_form_heading_font"] : '';
567
+ $sfsi_plus_form_heading_fontstyle= isset($_POST["sfsi_plus_form_heading_fontstyle"]) ? $_POST["sfsi_plus_form_heading_fontstyle"] : '';
568
+ $sfsi_plus_form_heading_fontcolor= isset($_POST["sfsi_plus_form_heading_fontcolor"]) ? $_POST["sfsi_plus_form_heading_fontcolor"] : '';
569
+ $sfsi_plus_form_heading_fontsize= isset($_POST["sfsi_plus_form_heading_fontsize"]) ? $_POST["sfsi_plus_form_heading_fontsize"] : '22';
570
+ $sfsi_plus_form_heading_fontalign= isset($_POST["sfsi_plus_form_heading_fontalign"]) ? $_POST["sfsi_plus_form_heading_fontalign"] :'center';
571
+
572
+ $sfsi_plus_form_field_text = isset($_POST["sfsi_plus_form_field_text"]) ? $_POST["sfsi_plus_form_field_text"] : '';
573
+ $sfsi_plus_form_field_font = isset($_POST["sfsi_plus_form_field_font"]) ? $_POST["sfsi_plus_form_field_font"] : '';
574
+ $sfsi_plus_form_field_fontstyle = isset($_POST["sfsi_plus_form_field_fontstyle"]) ? $_POST["sfsi_plus_form_field_fontstyle"] : '';
575
+ $sfsi_plus_form_field_fontcolor = isset($_POST["sfsi_plus_form_field_fontcolor"]) ? $_POST["sfsi_plus_form_field_fontcolor"] : '';
576
+ $sfsi_plus_form_field_fontsize = isset($_POST["sfsi_plus_form_field_fontsize"]) ? $_POST["sfsi_plus_form_field_fontsize"] : '22';
577
+ $sfsi_plus_form_field_fontalign = isset($_POST["sfsi_plus_form_field_fontalign"]) ? $_POST["sfsi_plus_form_field_fontalign"] :'center';
578
+
579
+ $sfsi_plus_form_button_text = isset($_POST["sfsi_plus_form_button_text"]) ? $_POST["sfsi_plus_form_button_text"] : 'Subscribe';
580
+ $sfsi_plus_form_button_font = isset($_POST["sfsi_plus_form_button_font"]) ? $_POST["sfsi_plus_form_button_font"] : '';
581
+ $sfsi_plus_form_button_fontstyle= isset($_POST["sfsi_plus_form_button_fontstyle"]) ? $_POST["sfsi_plus_form_button_fontstyle"] : '';
582
+ $sfsi_plus_form_button_fontcolor= isset($_POST["sfsi_plus_form_button_fontcolor"]) ? $_POST["sfsi_plus_form_button_fontcolor"] : '';
583
+ $sfsi_plus_form_button_fontsize = isset($_POST["sfsi_plus_form_button_fontsize"]) ? $_POST["sfsi_plus_form_button_fontsize"] : '22';
584
+ $sfsi_plus_form_button_fontalign= isset($_POST["sfsi_plus_form_button_fontalign"]) ? $_POST["sfsi_plus_form_button_fontalign"] :'center';
585
+ $sfsi_plus_form_button_background= isset($_POST["sfsi_plus_form_button_background"]) ? $_POST["sfsi_plus_form_button_background"]:'#5a6570';
586
+
587
+ /* icons pop options */
588
+ $up_option9 = array(
589
+ 'sfsi_plus_form_adjustment' => $sfsi_plus_form_adjustment,
590
+ 'sfsi_plus_form_height' => $sfsi_plus_form_height,
591
+ 'sfsi_plus_form_width' => $sfsi_plus_form_width,
592
+ 'sfsi_plus_form_border' => $sfsi_plus_form_border,
593
+ 'sfsi_plus_form_border_thickness'=> $sfsi_plus_form_border_thickness,
594
+ 'sfsi_plus_form_border_color' => $sfsi_plus_form_border_color,
595
+ 'sfsi_plus_form_background' => $sfsi_plus_form_background,
596
+
597
+ 'sfsi_plus_form_heading_text' => $sfsi_plus_form_heading_text,
598
+ 'sfsi_plus_form_heading_font' => $sfsi_plus_form_heading_font,
599
+ 'sfsi_plus_form_heading_fontstyle'=>$sfsi_plus_form_heading_fontstyle,
600
+ 'sfsi_plus_form_heading_fontcolor'=>$sfsi_plus_form_heading_fontcolor,
601
+ 'sfsi_plus_form_heading_fontsize' =>$sfsi_plus_form_heading_fontsize,
602
+ 'sfsi_plus_form_heading_fontalign'=>$sfsi_plus_form_heading_fontalign,
603
+
604
+ 'sfsi_plus_form_field_text' => $sfsi_plus_form_field_text,
605
+ 'sfsi_plus_form_field_font' => $sfsi_plus_form_field_font,
606
+ 'sfsi_plus_form_field_fontstyle'=> $sfsi_plus_form_field_fontstyle,
607
+ 'sfsi_plus_form_field_fontcolor'=> $sfsi_plus_form_field_fontcolor,
608
+ 'sfsi_plus_form_field_fontsize' => $sfsi_plus_form_field_fontsize,
609
+ 'sfsi_plus_form_field_fontalign'=> $sfsi_plus_form_field_fontalign,
610
+
611
+ 'sfsi_plus_form_button_text' => $sfsi_plus_form_button_text,
612
+ 'sfsi_plus_form_button_font' => $sfsi_plus_form_button_font,
613
+ 'sfsi_plus_form_button_fontstyle'=> $sfsi_plus_form_button_fontstyle,
614
+ 'sfsi_plus_form_button_fontcolor'=> $sfsi_plus_form_button_fontcolor,
615
+ 'sfsi_plus_form_button_fontsize'=> $sfsi_plus_form_button_fontsize,
616
+ 'sfsi_plus_form_button_fontalign'=> $sfsi_plus_form_button_fontalign,
617
+ 'sfsi_plus_form_button_background'=>$sfsi_plus_form_button_background,
618
+ );
619
+
620
+ update_option('sfsi_plus_section9_options',serialize($up_option9));
621
+ header('Content-Type: application/json');
622
+ echo json_encode(array("success")); exit;
623
+ }
624
 
625
  /* upload custom icons images */
626
  /* get counts for admin section */
823
  update_option('sfsi_plus_footer_sec', 'no');
824
  echo json_encode(array('res'=>'success'));exit;
825
  }
826
+ add_action('wp_ajax_getForm','sfsiPlusGetForm');
827
+ function sfsiPlusGetForm()
828
+ {
829
+ extract($_POST);
830
+ ?>
831
+ <xmp>
832
+ <div class="sfsi_subscribe_Popinner">
833
+ <form method="post">
834
+ <h5><?php echo $heading; ?></h5>
835
+ <div class="sfsi_subscription_form_field">
836
+ <input type="email" name="subscribe_email" placeholder="<?php echo $placeholder; ?>" value="" />
837
+ </div>
838
+ <div class="sfsi_subscription_form_field">
839
+ <input type="submit" name="subscribe" value="<?php echo $button; ?>" />
840
+ </div>
841
+ </form>
842
+ </div>
843
+ </xmp>
844
+ <?php
845
+ die;
846
+ }
847
+ add_action("wp_ajax_sfsiPlus_notification_read", "sfsiPlus_notification_read");
848
+ function sfsiPlus_notification_read()
849
+ {
850
+ update_option("sfsi_plus_show_notification", "no");
851
+ echo "success";
852
+ die;
853
+ }
854
  ?>
libs/controllers/sfsi_socialhelper.php CHANGED
@@ -1,304 +1,330 @@
1
  <?php
2
 
3
  /* social helper class include all function which are used to intract with */
 
 
 
4
 
5
- class sfsi_plus_SocialHelper {
6
- private $url,$timeout=10;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
- /* get twitter followers */
9
- function sfsi_get_tweets($username,$tw_settings)
10
- {
11
- require_once(SFSI_PLUS_DOCROOT.'/helpers/twitter-api/twitteroauth.php');
12
- $settings = array(
13
- 'oauth_access_token' => "335692958-JuqG7ArGrblrccHl3veVRFOdg64BUQZ7XpIs8x3Q",
14
- 'oauth_access_token_secret' => "A1l0LMrAVb3UeBbkpgigQr8O1EgfPcfG5USWg8cTcQyvg",
15
- 'consumer_key' => "d8OCu7GokBpy7DT17L5X1Q",
16
- 'consumer_secret' => "HUUEHS5rVSzaY57tICF9dVIaJ3bC5vwSZR9gWqq8QQ"
17
- );
18
-
19
- // Replace the four parameters below with the information from your Twitter developer application.
20
- $twitterConnection = new Plus_TwitterOAuth($tw_settings['sfsiplus_tw_consumer_key'],$tw_settings['sfsiplus_tw_consumer_secret'], $tw_settings['sfsiplus_tw_oauth_access_token_secret']);
21
-
22
- // Send the API request
23
- $twitterData = $twitterConnection->get('users/show', array('screen_name' =>$username));
24
-
25
- // Extract the follower and tweet counts
26
- if(isset($twitterData->followers_count))
27
  {
28
- $followerCount = $twitterData->followers_count;
29
- return $followerCount;
 
30
  }
31
- else
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  {
33
- return 0;
 
 
34
  }
35
- }
36
- /* get linkedIn counts */
37
- function sfsi_get_linkedin($url)
38
- {
39
- $json_string = $this->file_get_contents_curl("http://www.linkedin.com/countserv/count/share?url=$url&format=json");
40
- $json = json_decode($json_string, true);
41
- return isset($json['count'])? intval($json['count']):0;
42
- }
43
- /* get linkedIn follower */
44
- function sfsi_getlinkedin_follower($sfsi_plus_ln_company,$APIsettings)
45
- {
46
- require_once(SFSI_PLUS_DOCROOT.'/helpers/linkedin-api/linkedin-api.php');
47
- $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
48
- $url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
49
- $linkedin = new Plus_LinkedIn($APIsettings['sfsi_plus_ln_api_key'], $APIsettings['sfsi_plus_ln_secret_key'],$APIsettings['sfsi_plus_ln_oAuth_user_token'], $url );
50
- $followers = $linkedin->getCompanyFollowersByName($sfsi_plus_ln_company);
51
- if (strpos($followers, '404') === false)
52
- { return strip_tags($followers); }
53
- else
54
- { return 0; }
55
- }
56
- /* get facebook likes */
57
- function sfsi_get_fb($url)
58
- {
59
- $json_string = $this->file_get_contents_curl('http://api.facebook.com/restserver.php?method=links.getStats&format=json&urls='.$url);
60
- $json = json_decode($json_string, true);
61
- return isset($json[0])? $json[0]:0;
62
- }
63
- /* get facebook page likes */
64
- function sfsi_get_fb_pagelike($url)
65
- {
66
- $appid = '959456867427268';
67
- $appsecret = '7cc27f382c47fd5cc3a7203e40d70bf1';
68
- $json_url ='https://graph.facebook.com/'.$url.'?access_token='.$appid.'|'.$appsecret;
69
- $json_string = $this->file_get_contents_curl($json_url);
70
- $json = json_decode($json_string, true);
71
- return isset($json['likes'])? $json['likes']:0;
72
- }
73
- /* get google+ follwers */
74
- function sfsi_get_google($url,$google_api_key)
75
- {
76
- if(filter_var($url, FILTER_VALIDATE_URL) && !empty($google_api_key))
77
- {
78
- $url = parse_url($url);
79
- $url_path=explode('/',$url['path']);
80
- if(isset($url_path))
81
- {
82
- end($url_path);
83
- $key=key($url_path);
84
- $page_id = $url_path[$key];
85
- }
86
-
87
- if($this->sfsi_get_http_response_code("https://www.googleapis.com/plus/v1/people/$page_id?key=$google_api_key")!="404")
88
- {
89
- $data = $this->file_get_contents_curl("https://www.googleapis.com/plus/v1/people/$page_id?key=$google_api_key");
90
- $data = json_decode($data, true);
91
-
92
- return $this->format_num($data['circledByCount']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  }
94
  else
95
  {
96
- return 0;
97
  }
98
- }
99
- else
100
- {
101
- return 0;
102
- }
103
- }
104
- /* get google+ likes */
105
- function sfsi_getPlus1($url)
106
- {
107
- $curl = curl_init();
108
- curl_setopt($curl, CURLOPT_URL, "https://clients6.google.com/rpc");
109
- curl_setopt($curl, CURLOPT_POST, 1);
110
- curl_setopt($curl, CURLOPT_POSTFIELDS, '[{"method":"pos.plusones.get","id":"p","params":{"nolog":true,"id":"' . $url . '","source":"widget","userId":"@viewer","groupId":"@self"},"jsonrpc":"2.0","key":"p","apiVersion":"v1"}]');
111
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
112
- curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
113
- $curl_results = curl_exec ($curl);
114
- curl_close ($curl);
115
- $json = json_decode($curl_results, true);
116
-
117
- return intval( $json[0]['result']['metadata']['globalCounts']['count'] );
118
- }
119
- /* get youtube subscribers */
120
- function sfsi_get_youtube($user)
121
- {
122
- /*$xmlData = @file_get_contents('http://gdata.youtube.com/feeds/api/users/' . $user);//deprecated*/
123
- $xmlData = @file_get_contents('https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername='.$user.'&key=AIzaSyA_SqAZGCpZ22vHzOUr3St5xf5XMy78oTY');
124
- if($xmlData)
125
- {
126
- /*$xmlData = str_replace('yt:', 'yt', $xmlData);
127
- $xml = new SimpleXMLElement($xmlData);
128
- $subs = $xml->ytstatistics['subscriberCount'];*/
129
- $xmlData = json_decode($xmlData);
130
- $subs = $xmlData->items[0]->statistics->subscriberCount;
131
- $subs=$this->format_num($subs);
132
- }
133
- else
134
- {
135
- $subs=0;
136
- }
137
- return $subs;
138
- }
139
- /* get addthis counts */
140
- function sfsi_get_atthis()
141
- {
142
- $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
143
- $url=$scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
144
- $json_string = @file_get_contents('http://api-public.addthis.com/url/shares.json?url='.$url);
145
- $json = json_decode($json_string, true);
146
- return isset($json['shares'])? $this->format_num((int) $json['shares']):0;
147
-
148
- }
149
- /* get pinit counts */
150
- function sfsi_get_pinterest($url)
151
- {
152
- $return_data = $this->file_get_contents_curl('http://api.pinterest.com/v1/urls/count.json?callback=receiveCount&url='.$url);
153
- $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
154
- $json = json_decode($json_string, true);
155
- return isset($json['count'])?intval($json['count']):0;
156
- }
157
- /* get pinit counts for a user */
158
- function get_UsersPins($user_name,$board)
159
- {
160
- $query=$user_name.'/'.$board;
161
- $url_respon=$this->sfsi_get_http_response_code('http://api.pinterest.com/v3/pidgets/boards/'.$query.'/pins/');
162
- if($url_respon!=404)
163
- {
164
- $return_data = $this->file_get_contents_curl('http://api.pinterest.com/v3/pidgets/boards/'.$query.'/pins/');
165
- $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
166
- $json = json_decode($json_string, true);
167
- }
168
- else
169
- {
170
- $json['data']['user']['pin_count']=0;
171
- }
172
- return isset($json['data']['user']['pin_count'])? intval($json['data']['user']['pin_count']):0;
173
- }
174
 
175
- /* send curl request */
176
- private function file_get_contents_curl($url)
177
- {
178
- $ch=curl_init();
179
- curl_setopt($ch, CURLOPT_URL, $url);
180
- curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
181
- curl_setopt($ch, CURLOPT_FAILONERROR, 1);
182
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
183
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
184
- curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
185
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
186
- $cont = curl_exec($ch);
187
 
188
- if(curl_error($ch))
 
189
  {
190
- //die(curl_error($ch));
 
 
 
191
  }
192
- return $cont;
193
- }
194
 
195
- private function get_content_curl($url)
196
- {
197
- $curl = curl_init();
198
- curl_setopt($curl, CURLOPT_HEADER, false);
199
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
200
- curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
201
- curl_setopt($curl, CURLOPT_HTTPGET, 1);
202
- curl_setopt($curl, CURLOPT_URL, $url );
203
- curl_setopt($curl, CURLOPT_DNS_USE_GLOBAL_CACHE, false );
204
- curl_setopt($curl, CURLOPT_DNS_CACHE_TIMEOUT, 2 );
205
- $cont = curl_exec($curl);
 
 
 
 
 
 
206
 
207
- if(curl_error($curl))
 
208
  {
209
- //die(curl_error($ch));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  }
211
- return $cont;
212
- }
213
- /* convert no. to 2K,3M format */
214
- function format_num($num, $precision = 0)
215
- {
216
- if ($num >= 1000 && $num < 1000000) {
217
- $n_format = number_format($num/1000,$precision).'k';
218
- } else if ($num >= 1000000 && $num < 1000000000) {
219
- $n_format = number_format($num/1000000,$precision).'m';
220
- } else if ($num >= 1000000000) {
221
- $n_format=number_format($num/1000000000,$precision).'b';
222
- } else {
223
- $n_format = $num;
224
- }
225
- return $n_format;
226
- }
227
 
228
- /* create on page facebook links option */
229
- public function sfsi_plus_FBlike($permalink)
230
- {
231
- $send = 'false';
232
- $width = 180;
233
- $show_count=0;
234
- $fb_like_html = '<fb:like href="'.$permalink.'" width="'.$width.'" send="'.$send.'" showfaces="false" ';
235
- if($show_count) {
236
- $fb_like_html .= 'layout="button"';
237
- } else {
238
- $fb_like_html .= 'layout="button"';
239
- }
240
- $fb_like_html .= ' action="like"></fb:like>';
241
- return $fb_like_html;exit;
242
- }
243
- /*subscribe like*/
244
- function sfsi_plus_Subscribelike($permalink, $show_count)
245
- {
246
 
247
- }
248
- /*subscribe like*/
249
- /*twitter like*/
250
- function sfsi_plus_twitterlike($permalink, $show_count)
251
- {
252
- $twitter_text = '';
253
- return sfsi_twitterShare($permalink,$twitter_text);
254
- }
255
- /*twitter like*/
256
 
257
- /* create on page facebook share option */
258
- public function sfsiFB_Share($permalink)
259
- {
260
- $fb_share_html = '<fb:share-button href="'.$permalink.'" width="140" ';
261
- $fb_share_html .= 'type="button"';
262
- $fb_share_html .= '></fb:share-button>';
263
- return $fb_share_html;
264
- }
265
- /* create on page google share option */
266
- public function sfsi_Googlelike($permalink)
267
- {
268
- $show_count=0;
269
- $google_html = '<div class="g-plusone" data-href="' . $permalink . '" ';
270
- if($show_count)
271
  {
272
- $google_html .= 'data-size="bubble" ';
 
273
  }
274
- else
 
 
 
275
  {
276
- $google_html .= 'data-size="large" data-annotation="none" ';
 
 
 
277
  }
278
- $google_html .= '></div>';
279
- return $google_html;
280
- }
281
- /* create on page google share option */
282
- public function sfsi_GoogleShare($permalink) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
283
  $show_count=1;
284
 
285
  $google_html = '<div class="g-plus" data-action="share" data-annotation="none" data-height="24" data-href="'.$permalink.'">' . $permalink . '"></div>';
286
  return $google_html;
287
- }
288
- /* create on page twitter follow option */
289
- public function sfsi_twitterFollow($tw_username) {
290
-
291
- $twitter_html = '<a href="https://twitter.com/'.trim($tw_username).'" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false">Follow </a>';
 
292
 
293
  return $twitter_html;
294
  }
295
-
296
- /* create on page twitter share icon */
297
- public function sfsi_twitterShare($permalink,$tweettext)
298
  {
299
  $twitter_html = '<a rel="nofollow" href="http://twitter.com/share" data-count="none" class="sr-twitter-button twitter-share-button" lang="en" data-url="'.$permalink.'" data-text="'.$tweettext.'" ></a>';
300
 
301
- return $twitter_html;
302
  }
303
 
304
  /* create on page twitter share icon with count */
@@ -312,11 +338,11 @@ public function sfsi_Googlelike($permalink)
312
  {
313
  $twitter_html = '<a href="http://twitter.com/share" data-count="none" class="sr-twitter-button twitter-share-button" lang="en" data-url="'.$permalink.'" data-text="'.$tweettext.'" ></a>';
314
  }
315
- return $twitter_html;
316
  }
317
 
318
  /* create on page youtube subscribe icon */
319
- public function sfsi_YouTubeSub($yuser)
320
  {
321
  $option2= unserialize(get_option('sfsi_plus_section2_options',false));
322
  $option4= unserialize(get_option('sfsi_plus_section4_options',false));
@@ -346,22 +372,22 @@ public function sfsi_Googlelike($permalink)
346
  $youtube_html = '<div class="g-ytsubscribe" data-channelid="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
347
  }
348
  return $youtube_html;
349
- }
350
 
351
- /* create on page pinit button icon */
352
  public function sfsi_PinIt($url='')
353
- {
354
  $pin_it_html = '<a href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" ><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /></a>';
355
  return $pin_it_html;
356
  }
357
-
358
  /* get instragram followers */
359
  public function sfsi_get_instagramFollowers($user_name)
360
  {
361
  $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
362
 
363
  /*if date is empty (for decrease request count)*/
364
- if(empty($sfsi_plus_instagram_sf_count["date"]))
365
  {
366
  $sfsi_plus_instagram_sf_count["date"] = strtotime(date("Y-m-d"));
367
  $counts = $this->sfsi_plus_get_instagramFollowersCount($user_name);
@@ -392,47 +418,47 @@ public function sfsi_Googlelike($permalink)
392
  return $counts;
393
  }
394
 
395
- /* get instragram followers */
396
  public function sfsi_plus_get_instagramFollowersCount($user_name)
397
  {
398
  /* get instagram user id */
399
- $return_data = $this->get_content_curl('https://api.instagram.com/v1/users/search?q='.$user_name.'&client_id=12d8dcc9abd74f83b0899756adccedc2');
400
  $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
401
  $json = json_decode($json_string, true);
402
- $user_id = $json['data'][0]['id'];
403
 
404
  $return_data = $this->get_content_curl('https://api.instagram.com/v1/users/'.$user_id.'/?access_token=53042481.ab103e5.0c6f8f50471a4e1f97595f8db529a47a');
405
  $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
406
  $json = json_decode($json_string, true);
407
  return $this->format_num($json['data']['counts']['followed_by'],0);
408
  }
409
-
410
  /* create linkedIn follow button */
411
- public function sfsi_LinkedInFollow($company_id)
412
- {
413
- return $ifollow='<script type="IN/FollowCompany" data-id="'.$company_id.'" data-counter="none"></script>';
414
- }
415
-
416
- /* create linkedIn recommend button */
417
- public function sfsi_LinkedInRecommend($company_name,$product_id)
418
- {
419
- return $ifollow='<script type="IN/RecommendProduct" data-company="'.$company_name.'" data-product="'.$product_id.'"></script>';
420
- }
421
-
422
- /* create linkedIn share button */
423
- public function sfsi_LinkedInShare($url='')
424
- {
425
- $url=(isset($url))? $url : home_url();
426
- return $ifollow='<script type="IN/Share" data-url="'.$url.'"></script>';
427
- }
428
-
429
  /* get no of subscribers from specificfeeds for current blog */
430
  public function SFSI_getFeedSubscriber($feedid)
431
  {
432
  $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
433
 
434
  /*if date is empty (for decrease request count)*/
435
- if(empty($sfsi_plus_instagram_sf_count["date"]))
436
  {
437
  $sfsi_plus_instagram_sf_count["date"] = strtotime(date("Y-m-d"));
438
  $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
@@ -475,7 +501,7 @@ public function sfsi_Googlelike($permalink)
475
  CURLOPT_POST => 1,
476
  CURLOPT_POSTFIELDS => array(
477
  'feed_id' => $feedid,
478
- 'v' => "newplugincount"
479
  )
480
  ));
481
  /* Send the request & save response to $resp */
@@ -483,7 +509,7 @@ public function sfsi_Googlelike($permalink)
483
 
484
  if(!empty($resp))
485
  {
486
- $resp = json_decode($resp);
487
  curl_close($curl);
488
  $feeddata = stripslashes_deep($resp->subscriber_count);
489
  }
@@ -493,14 +519,13 @@ public function sfsi_Googlelike($permalink)
493
  }
494
  return $this->format_num($feeddata);exit;
495
  }
496
-
497
- /* check response from a url */
498
  private function sfsi_get_http_response_code($url)
499
  {
500
  $headers = get_headers($url);
501
  return substr($headers[0], 9, 3);
502
- }
503
-
504
  }
505
- /* end of class */
506
  ?>
1
  <?php
2
 
3
  /* social helper class include all function which are used to intract with */
4
+ class sfsi_plus_SocialHelper
5
+ {
6
+ private $url,$timeout=10;
7
 
8
+ /* get twitter followers */
9
+ function sfsi_get_tweets($username,$tw_settings)
10
+ {
11
+ require_once(SFSI_PLUS_DOCROOT.'/helpers/twitter-api/twitteroauth.php');
12
+ $settings = array(
13
+ 'oauth_access_token' => "335692958-JuqG7ArGrblrccHl3veVRFOdg64BUQZ7XpIs8x3Q",
14
+ 'oauth_access_token_secret' => "A1l0LMrAVb3UeBbkpgigQr8O1EgfPcfG5USWg8cTcQyvg",
15
+ 'consumer_key' => "d8OCu7GokBpy7DT17L5X1Q",
16
+ 'consumer_secret' => "HUUEHS5rVSzaY57tICF9dVIaJ3bC5vwSZR9gWqq8QQ"
17
+ );
18
+
19
+ // Replace the four parameters below with the information from your Twitter developer application.
20
+ $twitterConnection = new Plus_TwitterOAuth(
21
+ $tw_settings['sfsiplus_tw_consumer_key'],
22
+ $tw_settings['sfsiplus_tw_consumer_secret'],
23
+ $tw_settings['sfsiplus_tw_oauth_access_token_secret']
24
+ );
25
+
26
+ // Send the API request
27
+ $twitterData = $twitterConnection->get('users/show', array('screen_name' =>$username));
28
+
29
+ // Extract the follower and tweet counts
30
+ if(isset($twitterData->followers_count))
31
+ {
32
+ $followerCount = $twitterData->followers_count;
33
+ return $followerCount;
34
+ }
35
+ else
36
+ {
37
+ return 0;
38
+ }
39
+ }
40
 
41
+ /* get linkedIn counts */
42
+ function sfsi_get_linkedin($url)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  {
44
+ $json_string = $this->file_get_contents_curl("http://www.linkedin.com/countserv/count/share?url=$url&format=json");
45
+ $json = json_decode($json_string, true);
46
+ return isset($json['count'])? intval($json['count']):0;
47
  }
48
+
49
+ /* get linkedIn follower */
50
+ function sfsi_getlinkedin_follower($sfsi_plus_ln_company,$APIsettings)
51
+ {
52
+ require_once(SFSI_PLUS_DOCROOT.'/helpers/linkedin-api/linkedin-api.php');
53
+ $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
54
+ $url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
55
+ $linkedin = new Plus_LinkedIn(
56
+ $APIsettings['sfsi_plus_ln_api_key'],
57
+ $APIsettings['sfsi_plus_ln_secret_key'],
58
+ $APIsettings['sfsi_plus_ln_oAuth_user_token'],
59
+ $url
60
+ );
61
+ $followers = $linkedin->getCompanyFollowersByName($sfsi_plus_ln_company);
62
+ if (strpos($followers, '404') === false)
63
+ { return strip_tags($followers); }
64
+ else
65
+ { return 0; }
66
+ }
67
+
68
+ /* get facebook likes */
69
+ function sfsi_get_fb($url)
70
  {
71
+ $json_string = $this->file_get_contents_curl('http://api.facebook.com/restserver.php?method=links.getStats&format=json&urls='.$url);
72
+ $json = json_decode($json_string, true);
73
+ return isset($json[0])? $json[0]:0;
74
  }
75
+
76
+ /* get facebook page likes */
77
+ function sfsi_get_fb_pagelike($url)
78
+ {
79
+ $appid = '959456867427268';
80
+ $appsecret = '7cc27f382c47fd5cc3a7203e40d70bf1';
81
+ $json_url ='https://graph.facebook.com/'.$url.'?access_token='.$appid.'|'.$appsecret;
82
+ $json_string = $this->file_get_contents_curl($json_url);
83
+ $json = json_decode($json_string, true);
84
+ return isset($json['likes'])? $json['likes']:0;
85
+ }
86
+
87
+ /* get google+ follwers */
88
+ function sfsi_get_google($url,$google_api_key)
89
+ {
90
+ if(filter_var($url, FILTER_VALIDATE_URL) && !empty($google_api_key))
91
+ {
92
+ $url = parse_url($url);
93
+ $url_path=explode('/',$url['path']);
94
+ if(isset($url_path))
95
+ {
96
+ end($url_path);
97
+ $key=key($url_path);
98
+ $page_id = $url_path[$key];
99
+ }
100
+
101
+ if($this->sfsi_get_http_response_code("https://www.googleapis.com/plus/v1/people/$page_id?key=$google_api_key")!="404")
102
+ {
103
+ $data = $this->file_get_contents_curl("https://www.googleapis.com/plus/v1/people/$page_id?key=$google_api_key");
104
+ $data = json_decode($data, true);
105
+
106
+ return $this->format_num($data['circledByCount']);
107
+ }
108
+ else
109
+ {
110
+ return 0;
111
+ }
112
+ }
113
+ else
114
+ {
115
+ return 0;
116
+ }
117
+ }
118
+
119
+ /* get google+ likes */
120
+ function sfsi_getPlus1($url)
121
+ {
122
+ $curl = curl_init();
123
+ curl_setopt($curl, CURLOPT_URL, "https://clients6.google.com/rpc");
124
+ curl_setopt($curl, CURLOPT_POST, 1);
125
+ curl_setopt($curl, CURLOPT_POSTFIELDS, '[{"method":"pos.plusones.get","id":"p","params":{"nolog":true,"id":"' . $url . '","source":"widget","userId":"@viewer","groupId":"@self"},"jsonrpc":"2.0","key":"p","apiVersion":"v1"}]');
126
+ curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
127
+ curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
128
+ $curl_results = curl_exec ($curl);
129
+ curl_close ($curl);
130
+ $json = json_decode($curl_results, true);
131
+
132
+ return intval( $json[0]['result']['metadata']['globalCounts']['count'] );
133
+ }
134
+
135
+ /* get youtube subscribers */
136
+ function sfsi_get_youtube($user)
137
+ {
138
+ /*$xmlData = @file_get_contents('http://gdata.youtube.com/feeds/api/users/' . $user);//deprecated*/
139
+ $xmlData = @file_get_contents('https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername='.$user.'&key=AIzaSyA_SqAZGCpZ22vHzOUr3St5xf5XMy78oTY');
140
+ if($xmlData)
141
+ {
142
+ /*$xmlData = str_replace('yt:', 'yt', $xmlData);
143
+ $xml = new SimpleXMLElement($xmlData);
144
+ $subs = $xml->ytstatistics['subscriberCount'];*/
145
+ $xmlData = json_decode($xmlData);
146
+ $subs = $xmlData->items[0]->statistics->subscriberCount;
147
+ $subs=$this->format_num($subs);
148
  }
149
  else
150
  {
151
+ $subs=0;
152
  }
153
+ return $subs;
154
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
 
156
+ /* get addthis counts */
157
+ function sfsi_get_atthis()
158
+ {
159
+ $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" :"http";
160
+ $url=$scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
161
+ $json_string = @file_get_contents('http://api-public.addthis.com/url/shares.json?url='.$url);
162
+ $json = json_decode($json_string, true);
163
+ return isset($json['shares'])? $this->format_num((int) $json['shares']):0;
164
+ }
 
 
 
165
 
166
+ /* get pinit counts */
167
+ function sfsi_get_pinterest($url)
168
  {
169
+ $return_data = $this->file_get_contents_curl('http://api.pinterest.com/v1/urls/count.json?callback=receiveCount&url='.$url);
170
+ $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
171
+ $json = json_decode($json_string, true);
172
+ return isset($json['count'])?intval($json['count']):0;
173
  }
 
 
174
 
175
+ /* get pinit counts for a user */
176
+ function get_UsersPins($user_name,$board)
177
+ {
178
+ $query=$user_name.'/'.$board;
179
+ $url_respon=$this->sfsi_get_http_response_code('http://api.pinterest.com/v3/pidgets/boards/'.$query.'/pins/');
180
+ if($url_respon!=404)
181
+ {
182
+ $return_data = $this->file_get_contents_curl('http://api.pinterest.com/v3/pidgets/boards/'.$query.'/pins/');
183
+ $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
184
+ $json = json_decode($json_string, true);
185
+ }
186
+ else
187
+ {
188
+ $json['data']['user']['pin_count']=0;
189
+ }
190
+ return isset($json['data']['user']['pin_count'])? intval($json['data']['user']['pin_count']):0;
191
+ }
192
 
193
+ /* send curl request */
194
+ private function file_get_contents_curl($url)
195
  {
196
+ $ch=curl_init();
197
+ curl_setopt($ch, CURLOPT_URL, $url);
198
+ curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
199
+ curl_setopt($ch, CURLOPT_FAILONERROR, 1);
200
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
201
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
202
+ curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
203
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
204
+ $cont = curl_exec($ch);
205
+
206
+ if(curl_error($ch))
207
+ {
208
+ //die(curl_error($ch));
209
+ }
210
+ return $cont;
211
+ }
212
+
213
+ private function get_content_curl($url)
214
+ {
215
+ $curl = curl_init();
216
+ curl_setopt($curl, CURLOPT_HEADER, false);
217
+ curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
218
+ curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
219
+ curl_setopt($curl, CURLOPT_HTTPGET, 1);
220
+ curl_setopt($curl, CURLOPT_URL, $url );
221
+ curl_setopt($curl, CURLOPT_DNS_USE_GLOBAL_CACHE, false );
222
+ curl_setopt($curl, CURLOPT_DNS_CACHE_TIMEOUT, 2 );
223
+ $cont = curl_exec($curl);
224
+
225
+ if(curl_error($curl))
226
+ {
227
+ //die(curl_error($ch));
228
+ }
229
+ return $cont;
230
+ }
231
+
232
+ /* convert no. to 2K,3M format */
233
+ function format_num($num, $precision = 0)
234
+ {
235
+ if ($num >= 1000 && $num < 1000000)
236
+ {
237
+ $n_format = number_format($num/1000,$precision).'k';
238
+ } else if ($num >= 1000000 && $num < 1000000000) {
239
+ $n_format = number_format($num/1000000,$precision).'m';
240
+ } else if ($num >= 1000000000) {
241
+ $n_format=number_format($num/1000000000,$precision).'b';
242
+ } else {
243
+ $n_format = $num;
244
+ }
245
+ return $n_format;
246
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
 
248
+ /* create on page facebook links option */
249
+ public function sfsi_plus_FBlike($permalink)
250
+ {
251
+ $send = 'false';
252
+ $width = 180;
253
+ $show_count=0;
254
+ $fb_like_html = '<fb:like href="'.$permalink.'" width="'.$width.'" send="'.$send.'" showfaces="false" ';
255
+ if($show_count) {
256
+ $fb_like_html .= 'layout="button"';
257
+ } else {
258
+ $fb_like_html .= 'layout="button"';
259
+ }
260
+ $fb_like_html .= ' action="like"></fb:like>';
261
+ return $fb_like_html;exit;
262
+ }
 
 
 
263
 
264
+ /*subscribe like*/
265
+ function sfsi_plus_Subscribelike($permalink, $show_count)
266
+ {
267
+
268
+ }
269
+ /*subscribe like*/
 
 
 
270
 
271
+ /*twitter like*/
272
+ function sfsi_plus_twitterlike($permalink, $show_count)
 
 
 
 
 
 
 
 
 
 
 
 
273
  {
274
+ $twitter_text = '';
275
+ return sfsi_twitterShare($permalink,$twitter_text);
276
  }
277
+ /*twitter like*/
278
+
279
+ /* create on page facebook share option */
280
+ public function sfsiFB_Share($permalink)
281
  {
282
+ $fb_share_html = '<fb:share-button href="'.$permalink.'" width="140" ';
283
+ $fb_share_html .= 'type="button"';
284
+ $fb_share_html .= '></fb:share-button>';
285
+ return $fb_share_html;
286
  }
287
+
288
+ /* create on page google share option */
289
+ public function sfsi_Googlelike($permalink)
290
+ {
291
+ $show_count=0;
292
+ $google_html = '<div class="g-plusone" data-href="' . $permalink . '" ';
293
+ if($show_count)
294
+ {
295
+ $google_html .= 'data-size="bubble" ';
296
+ }
297
+ else
298
+ {
299
+ $google_html .= 'data-size="large" data-annotation="none" ';
300
+ }
301
+ $google_html .= '></div>';
302
+ return $google_html;
303
+ }
304
+
305
+ /* create on page google share option */
306
+ public function sfsi_GoogleShare($permalink)
307
+ {
308
  $show_count=1;
309
 
310
  $google_html = '<div class="g-plus" data-action="share" data-annotation="none" data-height="24" data-href="'.$permalink.'">' . $permalink . '"></div>';
311
  return $google_html;
312
+ }
313
+
314
+ /* create on page twitter follow option */
315
+ public function sfsi_twitterFollow($tw_username)
316
+ {
317
+ $twitter_html = '<a href="https://twitter.com/'.trim($tw_username).'" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false">Follow </a>';
318
 
319
  return $twitter_html;
320
  }
321
+
322
+ /* create on page twitter share icon */
323
+ public function sfsi_twitterShare($permalink,$tweettext)
324
  {
325
  $twitter_html = '<a rel="nofollow" href="http://twitter.com/share" data-count="none" class="sr-twitter-button twitter-share-button" lang="en" data-url="'.$permalink.'" data-text="'.$tweettext.'" ></a>';
326
 
327
+ return $twitter_html;
328
  }
329
 
330
  /* create on page twitter share icon with count */
338
  {
339
  $twitter_html = '<a href="http://twitter.com/share" data-count="none" class="sr-twitter-button twitter-share-button" lang="en" data-url="'.$permalink.'" data-text="'.$tweettext.'" ></a>';
340
  }
341
+ return $twitter_html;
342
  }
343
 
344
  /* create on page youtube subscribe icon */
345
+ public function sfsi_YouTubeSub($yuser)
346
  {
347
  $option2= unserialize(get_option('sfsi_plus_section2_options',false));
348
  $option4= unserialize(get_option('sfsi_plus_section4_options',false));
372
  $youtube_html = '<div class="g-ytsubscribe" data-channelid="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
373
  }
374
  return $youtube_html;
375
+ }
376
 
377
+ /* create on page pinit button icon */
378
  public function sfsi_PinIt($url='')
379
+ {
380
  $pin_it_html = '<a href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" ><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /></a>';
381
  return $pin_it_html;
382
  }
383
+
384
  /* get instragram followers */
385
  public function sfsi_get_instagramFollowers($user_name)
386
  {
387
  $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
388
 
389
  /*if date is empty (for decrease request count)*/
390
+ if(empty($sfsi_plus_instagram_sf_count["date"]) || empty($sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"]))
391
  {
392
  $sfsi_plus_instagram_sf_count["date"] = strtotime(date("Y-m-d"));
393
  $counts = $this->sfsi_plus_get_instagramFollowersCount($user_name);
418
  return $counts;
419
  }
420
 
421
+ /* get instragram followers count*/
422
  public function sfsi_plus_get_instagramFollowersCount($user_name)
423
  {
424
  /* get instagram user id */
425
+ $return_data = $this->get_content_curl('https://api.instagram.com/v1/users/search?q='.$user_name.'&client_id=12d8dcc9abd74f83b0899756adccedc2');
426
  $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
427
  $json = json_decode($json_string, true);
428
+ $user_id=$json['data'][0]['id'];
429
 
430
  $return_data = $this->get_content_curl('https://api.instagram.com/v1/users/'.$user_id.'/?access_token=53042481.ab103e5.0c6f8f50471a4e1f97595f8db529a47a');
431
  $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
432
  $json = json_decode($json_string, true);
433
  return $this->format_num($json['data']['counts']['followed_by'],0);
434
  }
435
+
436
  /* create linkedIn follow button */
437
+ public function sfsi_LinkedInFollow($company_id)
438
+ {
439
+ return $ifollow='<script type="IN/FollowCompany" data-id="'.$company_id.'" data-counter="none"></script>';
440
+ }
441
+
442
+ /* create linkedIn recommend button */
443
+ public function sfsi_LinkedInRecommend($company_name,$product_id)
444
+ {
445
+ return $ifollow='<script type="IN/RecommendProduct" data-company="'.$company_name.'" data-product="'.$product_id.'"></script>';
446
+ }
447
+
448
+ /* create linkedIn share button */
449
+ public function sfsi_LinkedInShare($url='')
450
+ {
451
+ $url=(isset($url))? $url : home_url();
452
+ return $ifollow='<script type="IN/Share" data-url="'.$url.'"></script>';
453
+ }
454
+
455
  /* get no of subscribers from specificfeeds for current blog */
456
  public function SFSI_getFeedSubscriber($feedid)
457
  {
458
  $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
459
 
460
  /*if date is empty (for decrease request count)*/
461
+ if(empty($sfsi_plus_instagram_sf_count["date"]) || empty($sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"]))
462
  {
463
  $sfsi_plus_instagram_sf_count["date"] = strtotime(date("Y-m-d"));
464
  $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
501
  CURLOPT_POST => 1,
502
  CURLOPT_POSTFIELDS => array(
503
  'feed_id' => $feedid,
504
+ 'v' => 'newplugincount'
505
  )
506
  ));
507
  /* Send the request & save response to $resp */
509
 
510
  if(!empty($resp))
511
  {
512
+ $resp=json_decode($resp);
513
  curl_close($curl);
514
  $feeddata = stripslashes_deep($resp->subscriber_count);
515
  }
519
  }
520
  return $this->format_num($feeddata);exit;
521
  }
522
+
523
+ /* check response from a url */
524
  private function sfsi_get_http_response_code($url)
525
  {
526
  $headers = get_headers($url);
527
  return substr($headers[0], 9, 3);
528
+ }
 
529
  }
530
+ /* end of class */
531
  ?>
libs/sfsi_install_uninstall.php CHANGED
@@ -2,7 +2,50 @@
2
  function sfsi_plus_update_plugin()
3
  {
4
  //Install version
5
- update_option("sfsi_plus_pluginVersion", "1.7");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  /*Extra important options*/
8
  $sfsi_plus_instagram_sf_count = array(
@@ -29,7 +72,17 @@ function sfsi_plus_activate_plugin()
29
  'sfsi_custom_display'=>'',
30
  'sfsi_custom_files'=>'');
31
  add_option('sfsi_plus_section1_options', serialize($options1));
32
- $sffeeds = SFSI_PLUS_getFeedUrl();
 
 
 
 
 
 
 
 
 
 
33
 
34
  /* Links and icons options */
35
  $options2=array('sfsi_plus_rss_url'=>get_bloginfo('rss2_url'),
@@ -70,7 +123,8 @@ function sfsi_plus_activate_plugin()
70
  'sfsi_plus_linkedin_recommendProductId'=>'',
71
  'sfsi_plus_CustomIcon_links'=>'');
72
  add_option('sfsi_plus_section2_options', serialize($options2));
73
- /* Design and animation option */
 
74
  $options3=array('sfsi_plus_mouseOver'=>'yes',
75
  'sfsi_plus_mouseOver_effect'=>'fade_in',
76
  'sfsi_plus_shuffle_icons'=>'no',
@@ -79,6 +133,7 @@ function sfsi_plus_activate_plugin()
79
  'sfsi_plus_shuffle_intervalTime'=>'',
80
  'sfsi_plus_actvite_theme'=>'default');
81
  add_option('sfsi_plus_section3_options', serialize($options3));
 
82
  /* display counts options */
83
  $options4=array('sfsi_plus_display_counts'=>'no',
84
  'sfsi_plus_email_countsDisplay'=>'no',
@@ -155,7 +210,8 @@ function sfsi_plus_activate_plugin()
155
  'sfsi_plus_share_MouseOverText'=>'Share',
156
  'sfsi_plus_custom_MouseOverTexts'=>'');
157
  add_option('sfsi_plus_section5_options', serialize($options5));
158
- /* post options */
 
159
  $options6=array('sfsi_plus_show_Onposts'=>'no',
160
  'sfsi_plus_show_Onbottom'=>'no',
161
  'sfsi_plus_icons_postPositon'=>'source',
@@ -164,7 +220,8 @@ function sfsi_plus_activate_plugin()
164
  'sfsi_plus_textBefor_icons'=>'Please follow and like us:',
165
  'sfsi_plus_icons_DisplayCounts'=>'no');
166
  add_option('sfsi_plus_section6_options', serialize($options6));
167
- /* icons pop options */
 
168
  $options7=array('sfsi_plus_show_popup'=>'no',
169
  'sfsi_plus_popup_text'=>'Enjoy this blog? Please spread the word :)',
170
  'sfsi_plus_popup_background_color'=>'#eff7f7',
@@ -181,6 +238,7 @@ function sfsi_plus_activate_plugin()
181
  'sfsi_plus_Shown_popupOnceTime'=>'',
182
  'sfsi_plus_Shown_popuplimitPerUserTime'=>'');
183
  add_option('sfsi_plus_section7_options', serialize($options7));
 
184
  /*options that are added in the third question*/
185
  if(get_option('sfsi_plus_section4_options',false))
186
  $option4= unserialize(get_option('sfsi_plus_section4_options',false));
@@ -188,6 +246,7 @@ function sfsi_plus_activate_plugin()
188
  $option5= unserialize(get_option('sfsi_plus_section5_options',false));
189
  if(get_option('sfsi_plus_section6_options',false))
190
  $option6= unserialize(get_option('sfsi_plus_section6_options',false));
 
191
  /*if($option6['sfsi_plus_show_Onposts'] == 'yes')
192
  {
193
  $sfsi_plus_display_button_type = 'standard_buttons';
@@ -196,7 +255,8 @@ function sfsi_plus_activate_plugin()
196
  {
197
  $sfsi_plus_display_button_type = '';
198
  }*/
199
- $options8=array(
 
200
  'sfsi_plus_show_via_widget'=>'no',
201
  'sfsi_plus_float_on_page'=> $option5['sfsi_plus_icons_float'],
202
  'sfsi_plus_float_page_position'=>$option5['sfsi_plus_icons_floatPosition'],
@@ -222,16 +282,22 @@ function sfsi_plus_activate_plugin()
222
  'sfsi_plus_rectshr'=>'yes',
223
  'sfsi_plus_recttwtr'=>'yes');
224
  add_option('sfsi_plus_section8_options', serialize($options8));
225
-
 
226
  update_option('sfsi_plus_feed_id',$sffeeds->feed_id);
 
 
227
  add_option('sfsi_plus_installDate',date('Y-m-d h:i:s'));
228
  add_option('sfsi_plus_RatingDiv','no');
229
  add_option('sfsi_plus_footer_sec','no');
230
  update_option('sfsi_plus_activate', 1);
231
 
 
232
  $get_option2 = unserialize(get_option('sfsi_plus_section2_options',false));
233
  $get_option2['sfsi_plus_email_url'] = $sffeeds->redirect_url;
234
  update_option('sfsi_plus_section2_options', serialize($get_option2));
 
 
235
  sfsi_plus_setUpfeeds($sffeeds->feed_id);
236
  sfsi_plus_updateFeedPing('N',$sffeeds->feed_id);
237
  }
@@ -275,9 +341,12 @@ function sfsi_plus_Unistall_plugin()
275
  delete_option('sfsi_plus_section6_options');
276
  delete_option('sfsi_plus_section7_options');
277
  delete_option('sfsi_plus_section8_options');
 
278
  delete_option('sfsi_plus_feed_id');
 
279
  delete_option('sfsi_plus_footer_sec');
280
  delete_option('sfsi_plus_activate');
 
281
 
282
  } /* end function */
283
  /* check CUrl */
2
  function sfsi_plus_update_plugin()
3
  {
4
  //Install version
5
+ update_option("sfsi_plus_pluginVersion", "1.8");
6
+
7
+ /*show notification*/
8
+ if(!get_option('sfsi_plus_show_notification'))
9
+ {
10
+ add_option("sfsi_plus_show_notification", "yes");
11
+ }
12
+ if(!get_option('sfsi_plus_show_notification_plugin'))
13
+ {
14
+ add_option("sfsi_plus_show_notification_plugin", "yes");
15
+ }
16
+
17
+ /* subscription form */
18
+ $options9 = array('sfsi_plus_form_adjustment'=>'yes',
19
+ 'sfsi_plus_form_height'=>'180',
20
+ 'sfsi_plus_form_width' =>'230',
21
+ 'sfsi_plus_form_border'=>'yes',
22
+ 'sfsi_plus_form_border_thickness'=>'1',
23
+ 'sfsi_plus_form_border_color'=>'#b5b5b5',
24
+ 'sfsi_plus_form_background'=>'#ffffff',
25
+
26
+ 'sfsi_plus_form_heading_text'=>'Get new posts by email:',
27
+ 'sfsi_plus_form_heading_font'=>'Helvetica,Arial,sans-serif',
28
+ 'sfsi_plus_form_heading_fontstyle'=>'bold',
29
+ 'sfsi_plus_form_heading_fontcolor'=>'#000000',
30
+ 'sfsi_plus_form_heading_fontsize'=>'16',
31
+ 'sfsi_plus_form_heading_fontalign'=>'center',
32
+
33
+ 'sfsi_plus_form_field_text'=>'Enter your email',
34
+ 'sfsi_plus_form_field_font'=>'Helvetica,Arial,sans-serif',
35
+ 'sfsi_plus_form_field_fontstyle'=>'normal',
36
+ 'sfsi_plus_form_field_fontcolor'=>'#000000',
37
+ 'sfsi_plus_form_field_fontsize'=>'14',
38
+ 'sfsi_plus_form_field_fontalign'=>'center',
39
+
40
+ 'sfsi_plus_form_button_text'=>'Subscribe',
41
+ 'sfsi_plus_form_button_font'=>'Helvetica,Arial,sans-serif',
42
+ 'sfsi_plus_form_button_fontstyle'=>'bold',
43
+ 'sfsi_plus_form_button_fontcolor'=>'#000000',
44
+ 'sfsi_plus_form_button_fontsize'=>'16',
45
+ 'sfsi_plus_form_button_fontalign'=>'center',
46
+ 'sfsi_plus_form_button_background'=>'#dedede',
47
+ );
48
+ add_option('sfsi_plus_section9_options', serialize($options9));
49
 
50
  /*Extra important options*/
51
  $sfsi_plus_instagram_sf_count = array(
72
  'sfsi_custom_display'=>'',
73
  'sfsi_custom_files'=>'');
74
  add_option('sfsi_plus_section1_options', serialize($options1));
75
+
76
+ if(get_option('sfsi_plus_feed_id') && get_option('sfsi_plus_redirect_url'))
77
+ {
78
+ $sffeeds["feed_id"] = get_option('sfsi_plus_feed_id');
79
+ $sffeeds["redirect_url"] = get_option('sfsi_plus_redirect_url');
80
+ $sffeeds = (object)$sffeeds;
81
+ }
82
+ else
83
+ {
84
+ $sffeeds = SFSI_PLUS_getFeedUrl();
85
+ }
86
 
87
  /* Links and icons options */
88
  $options2=array('sfsi_plus_rss_url'=>get_bloginfo('rss2_url'),
123
  'sfsi_plus_linkedin_recommendProductId'=>'',
124
  'sfsi_plus_CustomIcon_links'=>'');
125
  add_option('sfsi_plus_section2_options', serialize($options2));
126
+
127
+ /* Design and animation option */
128
  $options3=array('sfsi_plus_mouseOver'=>'yes',
129
  'sfsi_plus_mouseOver_effect'=>'fade_in',
130
  'sfsi_plus_shuffle_icons'=>'no',
133
  'sfsi_plus_shuffle_intervalTime'=>'',
134
  'sfsi_plus_actvite_theme'=>'default');
135
  add_option('sfsi_plus_section3_options', serialize($options3));
136
+
137
  /* display counts options */
138
  $options4=array('sfsi_plus_display_counts'=>'no',
139
  'sfsi_plus_email_countsDisplay'=>'no',
210
  'sfsi_plus_share_MouseOverText'=>'Share',
211
  'sfsi_plus_custom_MouseOverTexts'=>'');
212
  add_option('sfsi_plus_section5_options', serialize($options5));
213
+
214
+ /* post options */
215
  $options6=array('sfsi_plus_show_Onposts'=>'no',
216
  'sfsi_plus_show_Onbottom'=>'no',
217
  'sfsi_plus_icons_postPositon'=>'source',
220
  'sfsi_plus_textBefor_icons'=>'Please follow and like us:',
221
  'sfsi_plus_icons_DisplayCounts'=>'no');
222
  add_option('sfsi_plus_section6_options', serialize($options6));
223
+
224
+ /* icons pop options */
225
  $options7=array('sfsi_plus_show_popup'=>'no',
226
  'sfsi_plus_popup_text'=>'Enjoy this blog? Please spread the word :)',
227
  'sfsi_plus_popup_background_color'=>'#eff7f7',
238
  'sfsi_plus_Shown_popupOnceTime'=>'',
239
  'sfsi_plus_Shown_popuplimitPerUserTime'=>'');
240
  add_option('sfsi_plus_section7_options', serialize($options7));
241
+
242
  /*options that are added in the third question*/
243
  if(get_option('sfsi_plus_section4_options',false))
244
  $option4= unserialize(get_option('sfsi_plus_section4_options',false));
246
  $option5= unserialize(get_option('sfsi_plus_section5_options',false));
247
  if(get_option('sfsi_plus_section6_options',false))
248
  $option6= unserialize(get_option('sfsi_plus_section6_options',false));
249
+
250
  /*if($option6['sfsi_plus_show_Onposts'] == 'yes')
251
  {
252
  $sfsi_plus_display_button_type = 'standard_buttons';
255
  {
256
  $sfsi_plus_display_button_type = '';
257
  }*/
258
+
259
+ $options8 = array(
260
  'sfsi_plus_show_via_widget'=>'no',
261
  'sfsi_plus_float_on_page'=> $option5['sfsi_plus_icons_float'],
262
  'sfsi_plus_float_page_position'=>$option5['sfsi_plus_icons_floatPosition'],
282
  'sfsi_plus_rectshr'=>'yes',
283
  'sfsi_plus_recttwtr'=>'yes');
284
  add_option('sfsi_plus_section8_options', serialize($options8));
285
+
286
+ /*Some additional option added*/
287
  update_option('sfsi_plus_feed_id',$sffeeds->feed_id);
288
+ update_option('sfsi_plus_redirect_url',$sffeeds->redirect_url);
289
+
290
  add_option('sfsi_plus_installDate',date('Y-m-d h:i:s'));
291
  add_option('sfsi_plus_RatingDiv','no');
292
  add_option('sfsi_plus_footer_sec','no');
293
  update_option('sfsi_plus_activate', 1);
294
 
295
+ /*Changes in option 2*/
296
  $get_option2 = unserialize(get_option('sfsi_plus_section2_options',false));
297
  $get_option2['sfsi_plus_email_url'] = $sffeeds->redirect_url;
298
  update_option('sfsi_plus_section2_options', serialize($get_option2));
299
+
300
+ /*Activation Setup for (specificfeed)*/
301
  sfsi_plus_setUpfeeds($sffeeds->feed_id);
302
  sfsi_plus_updateFeedPing('N',$sffeeds->feed_id);
303
  }
341
  delete_option('sfsi_plus_section6_options');
342
  delete_option('sfsi_plus_section7_options');
343
  delete_option('sfsi_plus_section8_options');
344
+ delete_option('sfsi_plus_section9_options');
345
  delete_option('sfsi_plus_feed_id');
346
+ delete_option('sfsi_plus_redirect_url');
347
  delete_option('sfsi_plus_footer_sec');
348
  delete_option('sfsi_plus_activate');
349
+ delete_option("sfsi_plus_pluginVersion");
350
 
351
  } /* end function */
352
  /* check CUrl */
libs/sfsi_plus_subscribe_widget.php ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //Add Subscriber form css
3
+ add_action("wp_head", "sfsi_plus_addStyleFunction");
4
+ function sfsi_plus_addStyleFunction()
5
+ {
6
+ $option9 = unserialize(get_option('sfsi_plus_section9_options',false));
7
+ $sfsi_plus_feediid = get_option('sfsi_plus_feed_id');
8
+ $url = "http://www.specificfeeds.com/widgets/subscribeWidget/";
9
+ echo $return = '';
10
+ ?>
11
+ <script>
12
+ function sfsi_plus_processfurther(ref) {
13
+ var feed_id = <?php echo $sfsi_plus_feediid?>;
14
+ var feedtype = 8;
15
+ var email = jQuery(ref).find('input[name="data[Widget][email]"]').val();
16
+ var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
17
+ if ((email != "Enter your email") && (filter.test(email))) {
18
+ if (feedtype == "8") {
19
+ var url = "<?php echo $url; ?>"+feed_id+"/"+feedtype;
20
+ window.open(url, "popupwindow", "scrollbars=yes,width=1080,height=760");
21
+ return true;
22
+ }
23
+ } else {
24
+ alert("Please enter email address");
25
+ jQuery(ref).find('input[name="data[Widget][email]"]').focus();
26
+ return false;
27
+ }
28
+ }
29
+ </script>
30
+ <style type="text/css" aria-selected="true">
31
+ .sfsi_plus_subscribe_Popinner
32
+ {
33
+ <?php if($option9['sfsi_plus_form_adjustment'] == 'yes') : ?>
34
+ width: 100% !important;
35
+ height: auto !important;
36
+ <?php else: ?>
37
+ width: <?php echo $option9['sfsi_plus_form_width'] ?>px !important;
38
+ height: <?php echo $option9['sfsi_plus_form_height'] ?>px !important;
39
+ <?php endif;?>
40
+ <?php if($option9['sfsi_plus_form_border'] == 'yes') : ?>
41
+ border: <?php echo $option9['sfsi_plus_form_border_thickness']."px solid ".$option9['sfsi_plus_form_border_color'];?> !important;
42
+ <?php endif;?>
43
+ padding: 18px 0px !important;
44
+ background-color: <?php echo $option9['sfsi_plus_form_background'] ?> !important;
45
+ }
46
+ .sfsi_plus_subscribe_Popinner form
47
+ {
48
+ margin: 0 20px !important;
49
+ }
50
+ .sfsi_plus_subscribe_Popinner h5
51
+ {
52
+ font-family: <?php echo $option9['sfsi_plus_form_heading_font'] ?> !important;
53
+ <?php if($option9['sfsi_plus_form_heading_fontstyle'] != 'bold') {?>
54
+ font-style: <?php echo $option9['sfsi_plus_form_heading_fontstyle'] ?> !important;
55
+ <?php } else{ ?>
56
+ font-weight: <?php echo $option9['sfsi_plus_form_heading_fontstyle'] ?> !important;
57
+ <?php }?>
58
+ color: <?php echo $option9['sfsi_plus_form_heading_fontcolor'] ?> !important;
59
+ font-size: <?php echo $option9['sfsi_plus_form_heading_fontsize']."px" ?> !important;
60
+ text-align: <?php echo $option9['sfsi_plus_form_heading_fontalign'] ?> !important;
61
+ margin: 0 0 10px !important;
62
+ padding: 0 !important;
63
+ }
64
+ .sfsi_plus_subscription_form_field {
65
+ margin: 5px 0 !important;
66
+ width: 100% !important;
67
+ display: inline-flex;
68
+ display: -webkit-inline-flex;
69
+ }
70
+ .sfsi_plus_subscription_form_field input {
71
+ width: 100% !important;
72
+ padding: 10px 0px !important;
73
+ }
74
+ .sfsi_plus_subscribe_Popinner input[type=email]
75
+ {
76
+ font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
77
+ <?php if($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {?>
78
+ font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
79
+ <?php } else{ ?>
80
+ font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
81
+ <?php }?>
82
+ color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
83
+ font-size: <?php echo $option9['sfsi_plus_form_field_fontsize']."px" ?> !important;
84
+ text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
85
+ }
86
+ .sfsi_plus_subscribe_Popinner input[type=email]::-webkit-input-placeholder {
87
+ font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
88
+ <?php if($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {?>
89
+ font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
90
+ <?php } else{ ?>
91
+ font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
92
+ <?php }?>
93
+ color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
94
+ font-size: <?php echo $option9['sfsi_plus_form_field_fontsize']."px" ?> !important;
95
+ text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
96
+ }
97
+
98
+ .sfsi_plus_subscribe_Popinner input[type=email]:-moz-placeholder { /* Firefox 18- */
99
+ font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
100
+ <?php if($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {?>
101
+ font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
102
+ <?php } else{ ?>
103
+ font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
104
+ <?php }?>
105
+ color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
106
+ font-size: <?php echo $option9['sfsi_plus_form_field_fontsize']."px" ?> !important;
107
+ text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
108
+ }
109
+
110
+ .sfsi_plus_subscribe_Popinner input[type=email]::-moz-placeholder { /* Firefox 19+ */
111
+ font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
112
+ <?php if($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {?>
113
+ font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
114
+ <?php } else{ ?>
115
+ font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
116
+ <?php }?>
117
+ color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
118
+ font-size: <?php echo $option9['sfsi_plus_form_field_fontsize']."px" ?> !important;
119
+ text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
120
+ }
121
+
122
+ .sfsi_plus_subscribe_Popinner input[type=email]:-ms-input-placeholder {
123
+ font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
124
+ <?php if($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {?>
125
+ font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
126
+ <?php } else{ ?>
127
+ font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
128
+ <?php }?>
129
+ color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
130
+ font-size: <?php echo $option9['sfsi_plus_form_field_fontsize']."px" ?> !important;
131
+ text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
132
+ }
133
+ .sfsi_plus_subscribe_Popinner input[type=submit]
134
+ {
135
+ font-family: <?php echo $option9['sfsi_plus_form_button_font'] ?> !important;
136
+ <?php if($option9['sfsi_plus_form_button_fontstyle'] != 'bold') {?>
137
+ font-style: <?php echo $option9['sfsi_plus_form_button_fontstyle'] ?> !important;
138
+ <?php } else{ ?>
139
+ font-weight: <?php echo $option9['sfsi_plus_form_button_fontstyle'] ?> !important;
140
+ <?php }?>
141
+ color: <?php echo $option9['sfsi_plus_form_button_fontcolor'] ?> !important;
142
+ font-size: <?php echo $option9['sfsi_plus_form_button_fontsize']."px" ?> !important;
143
+ text-align: <?php echo $option9['sfsi_plus_form_button_fontalign'] ?> !important;
144
+ background-color: <?php echo $option9['sfsi_plus_form_button_background'] ?> !important;
145
+ }
146
+ </style>
147
+ <?php
148
+ }
149
+ // Creating the widget
150
+ class sfsiPlus_subscriber_widget extends WP_Widget {
151
+
152
+ function __construct()
153
+ {
154
+ parent::__construct(
155
+ // Base ID of your widget
156
+ 'sfsiPlus_subscriber_widget',
157
+
158
+ // Widget name will appear in UI
159
+ __('Ultimate Social Plus Subscribe Form', 'sfsiPlus_subscriber_widget_domain'),
160
+
161
+ // Widget description
162
+ array( 'description' => __( 'Ultimate Social Plus Subscribe Form', 'sfsiPlus_subscriber_widget_domain' ), )
163
+ );
164
+ }
165
+
166
+ public function widget( $args, $instance )
167
+ {
168
+ $title = apply_filters( 'widget_title', $instance['title'] );
169
+
170
+ // before and after widget arguments are defined by themes
171
+ echo $args['before_widget'];
172
+
173
+ if ( ! empty( $title ) )
174
+ {
175
+ echo $args['before_title'] . $title . $args['after_title'];
176
+ }
177
+
178
+ // Call subscriber form
179
+ echo do_shortcode("[USM_plus_form]");
180
+
181
+ echo $args['after_widget'];
182
+ }
183
+
184
+ // Widget Backend
185
+ public function form( $instance )
186
+ {
187
+ if ( isset( $instance[ 'title' ] ))
188
+ {
189
+ $title = $instance[ 'title' ];
190
+ }
191
+ else
192
+ {
193
+ $title = '';
194
+ }
195
+ ?>
196
+ <p>
197
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
198
+ <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
199
+ </p>
200
+ <?php
201
+ }
202
+
203
+ // Updating widget replacing old instances with new
204
+ public function update( $newInstance, $oldInstance )
205
+ {
206
+ $instance = array();
207
+ $instance['title'] = ( ! empty( $newInstance['title'] ) ) ? strip_tags( $newInstance['title'] ) : '';
208
+ return $instance;
209
+ }
210
+ }
211
+ // Class wpb_widget ends here
212
+
213
+ // Register and load the widget
214
+ function sfsiPlus_subscriber_load_widget()
215
+ {
216
+ register_widget( 'sfsiPlus_subscriber_widget' );
217
+ }
218
+ add_action( 'widgets_init', 'sfsiPlus_subscriber_load_widget' );
219
+ ?>
220
+ <?php
221
+ add_shortcode("USM_plus_form", "sfsi_plus_get_subscriberForm");
222
+ function sfsi_plus_get_subscriberForm()
223
+ {
224
+ $option9 = unserialize(get_option('sfsi_plus_section9_options',false));
225
+ $sfsi_plus_feediid = get_option('sfsi_plus_feed_id');
226
+ $url = "http://www.specificfeeds.com/widgets/subscribeWidget/";
227
+
228
+ $return = '';
229
+ $url = $url.$sfsi_plus_feediid.'/8/';
230
+ $return .= '<div class="sfsi_plus_subscribe_Popinner">
231
+ <form method="post" onsubmit="return sfsi_plus_processfurther(this);" target="popupwindow" action="'.$url.'">
232
+ <h5>'.trim($option9['sfsi_plus_form_heading_text']).'</h5>
233
+ <div class="sfsi_plus_subscription_form_field">
234
+ <input type="email" name="data[Widget][email]" value="" placeholder="'.trim($option9['sfsi_plus_form_field_text']).'"/>
235
+ </div>
236
+ <div class="sfsi_plus_subscription_form_field">
237
+ <input type="hidden" name="data[Widget][feed_id]" value="'.$sfsi_plus_feediid.'">
238
+ <input type="hidden" name="data[Widget][feedtype]" value="8">
239
+ <input type="submit" name="subscribe" value="'.$option9['sfsi_plus_form_button_text'].'" />
240
+ </div>
241
+ </form>
242
+ </div>';
243
+ return $return;
244
+ }
245
+ ?>
libs/sfsi_widget.php CHANGED
@@ -2,12 +2,11 @@
2
  /* create SFSI widget */
3
  class Sfsi_Plus_Widget extends WP_Widget
4
  {
5
-
6
  function __construct()
7
  {
8
- $widget_ops = array( 'classname' => 'sfsi_plus', 'description' => __('Ultimate Social Media PLUS widgets', 'Ultimate Social Media PLUS ') );
9
  $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'sfsi-plus-widget' );
10
-
11
  parent::__construct(
12
  // Base ID of your widget
13
  'sfsi-plus-widget',
@@ -79,7 +78,6 @@ class Sfsi_Plus_Widget extends WP_Widget
79
  {
80
  $defaults = array( 'title' =>"" );
81
  $instance = wp_parse_args( (array) $instance, $defaults );
82
-
83
  if(isset($instance['showf']))
84
  {
85
  if( $instance['showf'] == 0 && empty($instance['title']))
@@ -97,7 +95,9 @@ class Sfsi_Plus_Widget extends WP_Widget
97
  }
98
  ?>
99
  <p>
100
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'Subscription and Social Icons'); ?></label>
 
 
101
  <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" />
102
  <input type="hidden" value="<?php echo $instance['showf'] ?>" id="<?php echo $this->get_field_id( 'showf' ); ?>" name="<?php echo $this->get_field_name( 'showf' ); ?>" />
103
  </p>
@@ -224,7 +224,7 @@ function sfsi_plus_check_visiblity($isFloter=0)
224
 
225
  /* magnage the icons in saved order in admin */
226
  $custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
227
- $icons= unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
228
  $icons_order = array(
229
  '0' => '',
230
  $sfsi_section5['sfsi_plus_rssIcon_order']=>'rss',
2
  /* create SFSI widget */
3
  class Sfsi_Plus_Widget extends WP_Widget
4
  {
 
5
  function __construct()
6
  {
7
+ $widget_ops = array( 'classname' => 'sfsi_plus', 'description' => __('Ultimate Social Media PLUS widgets', 'Ultimate Social Media PLUS ') );
8
  $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'sfsi-plus-widget' );
9
+
10
  parent::__construct(
11
  // Base ID of your widget
12
  'sfsi-plus-widget',
78
  {
79
  $defaults = array( 'title' =>"" );
80
  $instance = wp_parse_args( (array) $instance, $defaults );
 
81
  if(isset($instance['showf']))
82
  {
83
  if( $instance['showf'] == 0 && empty($instance['title']))
95
  }
96
  ?>
97
  <p>
98
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>">
99
+ <?php _e('Title:', 'Subscription and Social Icons'); ?>
100
+ </label>
101
  <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" />
102
  <input type="hidden" value="<?php echo $instance['showf'] ?>" id="<?php echo $this->get_field_id( 'showf' ); ?>" name="<?php echo $this->get_field_name( 'showf' ); ?>" />
103
  </p>
224
 
225
  /* magnage the icons in saved order in admin */
226
  $custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
227
+ $icons = unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
228
  $icons_order = array(
229
  '0' => '',
230
  $sfsi_section5['sfsi_plus_rssIcon_order']=>'rss',
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Ultimate Social Media Icons PLUS ===
2
  Contributors: socialdude
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=seb.richter%40gmx%2enet&lc=LI
4
- Tags: social media, social media icons, sharing icons, sharing, social media widget, socialmedia, subscription icons, social media pop-up, newsletter, email newsletter, widget
5
  Requires at least: 3.0
6
  Tested up to: 4.3
7
- Stable tag: 1.7
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -73,6 +73,9 @@ Please check out the FAQ on http://ultimatelysocial.com
73
 
74
  == Changelog ==
75
 
 
 
 
76
  = 1.7 =
77
  * Count issues fixed - please upgrade!
78
  * Style constructor updated to PHP 5
@@ -131,5 +134,5 @@ Please check out the FAQ on http://ultimatelysocial.com
131
 
132
  == Upgrade Notice ==
133
 
134
- = 1.7 =
135
- Count issues fixed - please upgrade!
1
  === Ultimate Social Media Icons PLUS ===
2
  Contributors: socialdude
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=seb.richter%40gmx%2enet&lc=LI
4
+ Tags: social media, social media icons, social media buttons, social media sharing, floating social media, social media icon, social media button, sharing icons, sharing, sharing buttons, social media widget, socialmedia, social media pop-up, social, social icons, icon, icons, buttons, facebook icon, twitter icon, instagram, instagram icon, counter, facebook, facebook like, like, tweet, tweet button, buttons, tweet icon, youtube, youtube icon, linkedin, linkedin icon, logos, follow, social profiles, social media accounts, social share
5
  Requires at least: 3.0
6
  Tested up to: 4.3
7
+ Stable tag: 1.8
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
73
 
74
  == Changelog ==
75
 
76
+ = 1.8 =
77
+ * Plugin also allows a subscription form now (question 8)!
78
+
79
  = 1.7 =
80
  * Count issues fixed - please upgrade!
81
  * Style constructor updated to PHP 5
134
 
135
  == Upgrade Notice ==
136
 
137
+ = 1.8 =
138
+ * Plugin also allows a subscription form now (question 8)!
ultimate_social_media_icons.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://ultimatelysocial.com
5
  Description: The best social media plugin on the market. And 100% FREE. Allows you to add social media & share icons to your blog (esp. Facebook, Twitter, Email, RSS, Pinterest, Instagram, Google+, LinkedIn, Share-button). It offers a wide range of design options and other features.
6
  Author: UltimatelySocial
7
  Author URI: http://ultimatelysocial.com
8
- Version: 1.7
9
  License: GPLv2
10
  */
11
 
@@ -26,13 +26,15 @@ include(SFSI_PLUS_DOCROOT.'/libs/controllers/sfsi_floater_icons.php');
26
  include(SFSI_PLUS_DOCROOT.'/libs/controllers/sfsi_frontpopUp.php');
27
  include(SFSI_PLUS_DOCROOT.'/libs/controllers/sfsiocns_OnPosts.php');
28
  include(SFSI_PLUS_DOCROOT.'/libs/sfsi_widget.php');
 
29
 
30
  /* plugin install and uninstall hooks */
31
  register_activation_hook(__FILE__, 'sfsi_plus_activate_plugin' );
32
  register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
33
  register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
34
 
35
- if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 1.7)
 
36
  {
37
  add_action("init", "sfsi_plus_update_plugin");
38
  }
@@ -461,4 +463,40 @@ function sfsi_plus_string_sanitize($s) {
461
  $result = preg_replace("/[^a-zA-Z0-9]+/", " ", html_entity_decode($s, ENT_QUOTES));
462
  return $result;
463
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
464
  ?>
5
  Description: The best social media plugin on the market. And 100% FREE. Allows you to add social media & share icons to your blog (esp. Facebook, Twitter, Email, RSS, Pinterest, Instagram, Google+, LinkedIn, Share-button). It offers a wide range of design options and other features.
6
  Author: UltimatelySocial
7
  Author URI: http://ultimatelysocial.com
8
+ Version: 1.8
9
  License: GPLv2
10
  */
11
 
26
  include(SFSI_PLUS_DOCROOT.'/libs/controllers/sfsi_frontpopUp.php');
27
  include(SFSI_PLUS_DOCROOT.'/libs/controllers/sfsiocns_OnPosts.php');
28
  include(SFSI_PLUS_DOCROOT.'/libs/sfsi_widget.php');
29
+ include(SFSI_PLUS_DOCROOT.'/libs/sfsi_plus_subscribe_widget.php');
30
 
31
  /* plugin install and uninstall hooks */
32
  register_activation_hook(__FILE__, 'sfsi_plus_activate_plugin' );
33
  register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
34
  register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
35
 
36
+ /*Plugin version setup*/
37
+ if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 1.8)
38
  {
39
  add_action("init", "sfsi_plus_update_plugin");
40
  }
463
  $result = preg_replace("/[^a-zA-Z0-9]+/", " ", html_entity_decode($s, ENT_QUOTES));
464
  return $result;
465
  }
466
+
467
+ add_action('admin_notices', 'sfsi_plus_admin_notice', 10);
468
+ function sfsi_plus_admin_notice()
469
+ {
470
+ if(isset($_GET['page']) && $_GET['page'] == "sfsi-plus-options")
471
+ {
472
+ $style = "overflow: hidden; margin:12px 3px 0px;";
473
+ }
474
+ else
475
+ {
476
+ $style = "overflow: hidden;";
477
+ }
478
+
479
+ if(get_option("sfsi_plus_show_notification_plugin") == "yes")
480
+ {
481
+ $url = "?sfsiPlus-dismiss-notice=true";
482
+ ?>
483
+ <div class="updated" style="<?php echo $style; ?>"">
484
+ <div class="alignleft" style="margin: 9px 0;">
485
+ <b>New feature in the Ultimate Social Media PLUS plugin:</b> You can now add a subscription form to increase sign-ups (under question 8). <a href="<?php echo site_url();?>/wp-admin/admin.php?page=sfsi-plus-options" style="color:#7AD03A; font-weight:bold;">Check it out</a>
486
+ </div>
487
+ <p class="alignright">
488
+ <a href="<?php echo $url; ?>">Dismiss</a>
489
+ </p>
490
+ </div>
491
+ <?php }
492
+ }
493
+ add_action('admin_init', 'sfsi_plus_dismiss_admin_notice');
494
+ function sfsi_plus_dismiss_admin_notice()
495
+ {
496
+ if ( isset($_REQUEST['sfsiPlus-dismiss-notice']) && $_REQUEST['sfsiPlus-dismiss-notice'] == 'true' )
497
+ {
498
+ update_option( 'sfsi_plus_show_notification_plugin', "no" );
499
+ header("Location: ".site_url()."/wp-admin/admin.php?page=sfsi-plus-options");
500
+ }
501
+ }
502
  ?>
views/sfsi_option_view2.php CHANGED
@@ -18,10 +18,11 @@
18
  </div>
19
  <!-- END RSS ICON -->
20
  <!-- EMAIL ICON -->
21
- <?php $feedId=get_option('sfsi_plus_feed_id',false);?>
22
  <div class="row sfsiplus_email_section">
23
  <h2 class="sfsicls_email">Email</h2>
24
  <div class="inr_cont">
 
25
  <p>Allows people to subscribe to your site on <a href="http://www.specificfeeds.com/widget/emailsubscribe/<?php echo base64_encode($feedId); ?>/<?php echo base64_encode(8); ?>" target="_new">this screen</a> and receive new posts automatically. The service is 100% FREE, you get full access to the emails & interesting statistics (please <a target="_new" href="http://www.specificfeeds.com/<?php echo $feedId; ?>?getParam=feeds_claims">claim your feed</a> for that) and it also make sense if you already offer an email newsletter <a href="http://specificfeeds.com/rss" target="_new">(learn more)</a>. </p>
26
 
27
  <p>Please pick which icon type you want to use:</p>
18
  </div>
19
  <!-- END RSS ICON -->
20
  <!-- EMAIL ICON -->
21
+ <?php $feedId = get_option('sfsi_plus_feed_id',false);?>
22
  <div class="row sfsiplus_email_section">
23
  <h2 class="sfsicls_email">Email</h2>
24
  <div class="inr_cont">
25
+
26
  <p>Allows people to subscribe to your site on <a href="http://www.specificfeeds.com/widget/emailsubscribe/<?php echo base64_encode($feedId); ?>/<?php echo base64_encode(8); ?>" target="_new">this screen</a> and receive new posts automatically. The service is 100% FREE, you get full access to the emails & interesting statistics (please <a target="_new" href="http://www.specificfeeds.com/<?php echo $feedId; ?>?getParam=feeds_claims">claim your feed</a> for that) and it also make sense if you already offer an email newsletter <a href="http://specificfeeds.com/rss" target="_new">(learn more)</a>. </p>
27
 
28
  <p>Please pick which icon type you want to use:</p>
views/sfsi_option_view9.php ADDED
@@ -0,0 +1,463 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* unserialize all saved option for Eight options */
3
+ $option9= unserialize(get_option('sfsi_plus_section9_options',false));
4
+ ?>
5
+ <div class="tab9">
6
+
7
+ <p>
8
+ In addition to the email- or follow-icon you can also show a subscription form which maximizes chances that people subscribe to your site.
9
+ </p>
10
+
11
+ <div class="sfsi_plus_tab8_container">
12
+ <!--Section 1-->
13
+ <div class="sfsi_plus_tab8_subcontainer">
14
+ <h3 class="sfsi_plus_section_title">Preview:</h3>
15
+ <div class="like_pop_box">
16
+ <?php get_sfsi_plus_SubscriptionForm(); ?>
17
+ </div>
18
+ </div>
19
+
20
+ <!--Section 2-->
21
+ <div class="sfsi_plus_tab8_subcontainer sfsi_plus_seprater">
22
+ <h3 class="sfsi_plus_section_title">Place it on your site</h3>
23
+ <label class="sfsi_plus_label_text">You can place the form by different methods:</label>
24
+ <ul class="sfsi_plus_form_info">
25
+ <li><b>1. Widget:</b> Go to the <a target="_blank" href="<?php echo site_url()?>/wp-admin/widgets.php">widget settings</a> and drag & drop it to the sidebar.
26
+ </li>
27
+ <li><b>2. Shortcode:</b> Use the shortcode <b>[USM_plus_form]</b> to place it into your codes</li>
28
+ <li><b>3. Copy & paste HTML code:</b></li>
29
+ </ul>
30
+ <div class="sfsi_plus_html" style="display: none;">
31
+ <?php
32
+ $sfsi_plus_feediid = get_option('sfsi_plus_feed_id');
33
+ $url = "http://www.specificfeeds.com/widgets/subscribeWidget/";
34
+ $url = $url.$sfsi_plus_feediid.'/8/';
35
+ ?>
36
+ <div class="sfsi_plus_subscribe_Popinner" style="padding: 18px 0px;">
37
+ <form method="post" onsubmit="return sfsi_plus_processfurther(this);" target="popupwindow" action="<?php echo $url?>" style="margin: 0px 20px;">
38
+ <h5 style="margin: 0 0 10px; padding: 0;">Get new posts by email:</h5>
39
+ <div style="margin: 5px 0; width: 100%;">
40
+ <input style="padding: 10px 0px !important; width: 100% !important;" type="email" placeholder="Enter your email" value="" name="data[Widget][email]" />
41
+ </div>
42
+ <div style="margin: 5px 0; width: 100%;">
43
+ <input style="padding: 10px 0px !important; width: 100% !important;" type="submit" name="subscribe" value="Subscribe" /><input type="hidden" name="data[Widget][feed_id]" value="<?php echo $sfsi_plus_feediid ?>"><input type="hidden" name="data[Widget][feedtype]" value="8">
44
+ </div>
45
+ </form>
46
+ </div>
47
+ </div>
48
+ <div class="sfsi_plus_subscription_html">
49
+ <xmp id="selectable" onclick="sfsi_plus_selectText('selectable')">
50
+ <?php get_sfsi_plus_SubscriptionForm(); ?>
51
+ </xmp>
52
+ </div>
53
+ </div>
54
+
55
+ <!--Section 3-->
56
+ <div class="sfsi_plus_tab8_subcontainer sfsi_plus_seprater">
57
+ <h3 class="sfsi_plus_section_title">Define text & design (optional)</h3>
58
+ <h5 class="sfsi_plus_section_subtitle">Overall size & border</h5>
59
+
60
+ <!--Left Section-->
61
+ <div class="sfsi_plus_left_container">
62
+ <?php get_sfsi_plus_SubscriptionForm(); ?>
63
+ </div>
64
+
65
+ <!--Right Section-->
66
+ <div class="sfsi_plus_right_container">
67
+ <div class="row_tab">
68
+ <label class="sfsi_plus_heding">Adjust size to space on website?</label>
69
+ <ul class="border_shadow">
70
+ <li>
71
+ <input type="radio" class="styled" value="yes" name="sfsi_plus_form_adjustment"
72
+ <?php echo sfsi_plus_isChecked($option9['sfsi_plus_form_adjustment'], 'yes'); ?> >
73
+ <label>Yes</label>
74
+ </li>
75
+ <li>
76
+ <input type="radio" class="styled" value="no" name="sfsi_plus_form_adjustment"
77
+ <?php echo sfsi_plus_isChecked($option9['sfsi_plus_form_adjustment'], 'no'); ?> >
78
+ <label>No</label>
79
+ </li>
80
+ </ul>
81
+ </div>
82
+ <!--Row Section-->
83
+ <div class="row_tab" style="<?php echo ($option9['sfsi_plus_form_adjustment'] == 'yes')? "display:none": ''; ?>">
84
+ <div class="sfsi_plus_field">
85
+ <label>Height</label>
86
+ <input name="sfsi_plus_form_height" type="text"
87
+ value="<?php echo ($option9['sfsi_plus_form_height']!='') ? $option9['sfsi_plus_form_height'] : '' ;?>"
88
+ class="small rec-inp" /><span class="pix">pixels</span>
89
+ </div>
90
+ <div class="sfsi_plus_field">
91
+ <label>Width</label>
92
+ <input name="sfsi_plus_form_width" type="text"
93
+ value="<?php echo ($option9['sfsi_plus_form_width']!='') ? $option9['sfsi_plus_form_width'] : '' ;?>"
94
+ class="small rec-inp" /><span class="pix">pixels</span>
95
+ </div>
96
+ </div>
97
+ <!--Row Section-->
98
+ <div class="row_tab">
99
+ <label class="sfsi_plus_heding">Border?</label>
100
+ <ul class="border_shadow">
101
+ <li>
102
+ <input type="radio" class="styled" value="yes" name="sfsi_plus_form_border"
103
+ <?php echo sfsi_plus_isChecked($option9['sfsi_plus_form_border'], 'yes'); ?> >
104
+ <label>Yes</label>
105
+ </li>
106
+ <li>
107
+ <input type="radio" class="styled" value="no" name="sfsi_plus_form_border"
108
+ <?php echo sfsi_plus_isChecked($option9['sfsi_plus_form_border'], 'no'); ?> >
109
+ <label>No</label>
110
+ </li>
111
+ </ul>
112
+ </div>
113
+ <!--Row Section-->
114
+ <div class="row_tab" style="<?php echo ($option9['sfsi_plus_form_border'] == 'no')? "display:none": ''; ?>">
115
+ <div class="sfsi_plus_field">
116
+ <label>Thickness</label>
117
+ <input name="sfsi_plus_form_border_thickness" type="text"
118
+ value="<?php echo ($option9['sfsi_plus_form_border_thickness']!='')
119
+ ? $option9['sfsi_plus_form_border_thickness'] : '' ;
120
+ ?>"
121
+ class="small rec-inp" /><span class="pix">pixels</span>
122
+ </div>
123
+ <div class="sfsi_plus_field">
124
+ <label>Color</label>
125
+ <input id="sfsi_plus_form_border_color" class="small color-code" type="text" name="sfsi_plus_form_border_color"
126
+ value="<?php echo ($option9['sfsi_plus_form_border_color']!='')
127
+ ? $option9['sfsi_plus_form_border_color'] : '' ;
128
+ ?>">
129
+ <div class="color_box">
130
+ <div class="corner"></div>
131
+ <div id="sfsiPlusFormBorderColor" class="color_box1" style="background: <?php echo ($option9['sfsi_plus_form_border_color']!='')? $option9['sfsi_plus_form_border_color'] : '' ;?>"></div>
132
+ </div>
133
+ </div>
134
+ </div>
135
+ <!--Row Section-->
136
+ <div class="row_tab">
137
+ <label class="sfsi_plus_heding autowidth">Background color:</label>
138
+ <div class="sfsi_plus_field">
139
+ <input id="sfsi_plus_form_background" class="small color-code" type="text" name="sfsi_plus_form_background"
140
+ value="<?php echo ($option9['sfsi_plus_form_background']!='')
141
+ ? $option9['sfsi_plus_form_background'] : '' ;
142
+ ?>">
143
+ <div class="color_box">
144
+ <div class="corner"></div>
145
+ <div id="sfsiPlusFormBackground" class="color_box1" style="background: <?php echo ($option9['sfsi_plus_form_background']!='')? $option9['sfsi_plus_form_background'] : '' ;?>"></div>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ <!--Row Section-->
150
+ </div>
151
+
152
+ </div>
153
+
154
+ <!--Section 4-->
155
+ <div class="sfsi_plus_tab8_subcontainer sfsi_plus_seprater">
156
+ <h5 class="sfsi_plus_section_subtitle">Text above entry field</h5>
157
+
158
+ <!--Left Section-->
159
+ <div class="sfsi_plus_left_container">
160
+ <?php get_sfsi_plus_SubscriptionForm("h5"); ?>
161
+ </div>
162
+
163
+ <!--Right Section-->
164
+ <div class="sfsi_plus_right_container">
165
+ <div class="row_tab">
166
+ <label class="sfsi_plus_heding fixwidth sfsi_plus_same_width">Text:</label>
167
+ <div class="sfsi_plus_field">
168
+ <input type="text" class="small new-inp" name="sfsi_plus_form_heading_text"
169
+ value="<?php echo ($option9['sfsi_plus_form_heading_text']!='')
170
+ ? $option9['sfsi_plus_form_heading_text'] : '' ;
171
+ ?>"/>
172
+ </div>
173
+ </div>
174
+ <!--Row Section-->
175
+ <div class="row_tab">
176
+ <div class="sfsi_plus_field">
177
+ <label class="sfsi_plus_same_width">Font:</label>
178
+ <?php sfsi_plus_get_font("sfsi_plus_form_heading_font", $option9['sfsi_plus_form_heading_font']); ?>
179
+ </div>
180
+ <div class="sfsi_plus_field">
181
+ <label>Font style:</label>
182
+ <?php sfsi_plus_get_fontstyle("sfsi_plus_form_heading_fontstyle", $option9['sfsi_plus_form_heading_fontstyle']); ?>
183
+ </div>
184
+ </div>
185
+ <!--Row Section-->
186
+ <div class="row_tab">
187
+ <div class="sfsi_plus_field">
188
+ <label class="sfsi_plus_same_width">Font color</label>
189
+ <input type="text" name="sfsi_plus_form_heading_fontcolor" class="small color-code" id="sfsi_plus_form_heading_fontcolor" value="<?php echo ($option9['sfsi_plus_form_heading_fontcolor']!='')
190
+ ? $option9['sfsi_plus_form_heading_fontcolor'] : '' ;
191
+ ?>">
192
+ <div class="color_box">
193
+ <div class="corner"></div>
194
+ <div class="color_box1" id="sfsiPlusFormHeadingFontcolor" style="background: <?php echo ($option9['sfsi_plus_form_heading_fontcolor']!='') ? $option9['sfsi_plus_form_heading_fontcolor'] : '' ;
195
+ ?>"></div>
196
+ </div>
197
+ </div>
198
+ <div class="sfsi_plus_field">
199
+ <label>Font size</label>
200
+ <input type="text" class="small rec-inp" name="sfsi_plus_form_heading_fontsize"
201
+ value="<?php echo ($option9['sfsi_plus_form_heading_fontsize']!='')
202
+ ? $option9['sfsi_plus_form_heading_fontsize'] : '' ;?>"/>
203
+ <span class="pix">pixels</span>
204
+ </div>
205
+ </div>
206
+ <!--Row Section-->
207
+ <div class="row_tab">
208
+ <div class="sfsi_plus_field">
209
+ <label class="sfsi_plus_same_width">Alignment:</label>
210
+ <?php sfsi_plus_get_alignment("sfsi_plus_form_heading_fontalign", $option9['sfsi_plus_form_heading_fontalign']); ?>
211
+ </div>
212
+ </div>
213
+ <!--End Section-->
214
+ </div>
215
+
216
+ </div>
217
+
218
+ <!--Section 5-->
219
+ <div class="sfsi_plus_tab8_subcontainer sfsi_plus_seprater">
220
+ <h5 class="sfsi_plus_section_subtitle">Entry field</h5>
221
+
222
+ <!--Left Section-->
223
+ <div class="sfsi_plus_left_container">
224
+ <?php get_sfsi_plus_SubscriptionForm("email"); ?>
225
+ </div>
226
+
227
+ <!--Right Section-->
228
+ <div class="sfsi_plus_right_container">
229
+ <div class="row_tab">
230
+ <label class="sfsi_plus_heding fixwidth sfsi_plus_same_width">Text:</label>
231
+ <div class="sfsi_plus_field">
232
+ <input type="text" class="small new-inp" name="sfsi_plus_form_field_text"
233
+ value="<?php echo ($option9['sfsi_plus_form_field_text']!='')
234
+ ? $option9['sfsi_plus_form_field_text'] : '' ;
235
+ ?>"/>
236
+ </div>
237
+ </div>
238
+ <!--Row Section-->
239
+ <div class="row_tab">
240
+ <div class="sfsi_plus_field">
241
+ <label class="sfsi_plus_same_width">Font:</label>
242
+ <?php sfsi_plus_get_font("sfsi_plus_form_field_font", $option9['sfsi_plus_form_field_font']); ?>
243
+ </div>
244
+ <div class="sfsi_plus_field">
245
+ <label>Font style:</label>
246
+ <?php sfsi_plus_get_fontstyle("sfsi_plus_form_field_fontstyle", $option9['sfsi_plus_form_field_fontstyle']); ?>
247
+ </div>
248
+ </div>
249
+ <!--Row Section-->
250
+ <div class="row_tab">
251
+ <input type="hidden" name="sfsi_plus_form_field_fontcolor" value="">
252
+ <!--<div class="sfsi_plus_field">
253
+ <label class="sfsi_plus_same_width">Font color</label>
254
+ <input type="text" name="sfsi_plus_form_field_fontcolor" class="small color-code" id="sfsi_plus_form_field_fontcolor" value="<?php //echo ($option9['sfsi_plus_form_field_fontcolor']!='')
255
+ //? $option9['sfsi_plus_form_field_fontcolor'] : '' ;
256
+ ?>">
257
+ <div class="color_box">
258
+ <div class="corner"></div>
259
+ <div class="color_box1" id="sfsiPlusFormFieldFontcolor" style="background: <?php //echo ($option9['sfsi_plus_form_field_fontcolor']!='') ? $option9['sfsi_plus_form_field_fontcolor'] : '' ;
260
+ ?>"></div>
261
+ </div>
262
+ </div>-->
263
+ <div class="sfsi_plus_field">
264
+ <label class="sfsi_plus_same_width">Alignment:</label>
265
+ <?php sfsi_plus_get_alignment("sfsi_plus_form_field_fontalign", $option9['sfsi_plus_form_field_fontalign']); ?>
266
+ </div>
267
+
268
+ <div class="sfsi_plus_field">
269
+ <label>Font size</label>
270
+ <input type="text" class="small rec-inp" name="sfsi_plus_form_field_fontsize"
271
+ value="<?php echo ($option9['sfsi_plus_form_field_fontsize']!='')
272
+ ? $option9['sfsi_plus_form_field_fontsize'] : '' ;?>"/>
273
+ <span class="pix">pixels</span>
274
+ </div>
275
+ </div>
276
+ <!--End Section-->
277
+ </div>
278
+
279
+ </div>
280
+
281
+ <!--Section 6-->
282
+ <div class="sfsi_plus_tab8_subcontainer">
283
+ <h5 class="sfsi_plus_section_subtitle">Subscribe button</h5>
284
+
285
+ <!--Left Section-->
286
+ <div class="sfsi_plus_left_container">
287
+ <?php get_sfsi_plus_SubscriptionForm("submit"); ?>
288
+ </div>
289
+
290
+ <!--Right Section-->
291
+ <div class="sfsi_plus_right_container">
292
+ <div class="row_tab">
293
+ <label class="sfsi_plus_heding fixwidth sfsi_plus_same_width">Text:</label>
294
+ <div class="sfsi_plus_field">
295
+ <input type="text" class="small new-inp" name="sfsi_plus_form_button_text"
296
+ value="<?php echo ($option9['sfsi_plus_form_button_text']!='')
297
+ ? $option9['sfsi_plus_form_button_text'] : '' ;
298
+ ?>"/>
299
+ </div>
300
+ </div>
301
+ <!--Row Section-->
302
+ <div class="row_tab">
303
+ <div class="sfsi_plus_field">
304
+ <label class="sfsi_plus_same_width">Font:</label>
305
+ <?php sfsi_plus_get_font("sfsi_plus_form_button_font", $option9['sfsi_plus_form_button_font']); ?>
306
+ </div>
307
+ <div class="sfsi_plus_field">
308
+ <label>Font style:</label>
309
+ <?php sfsi_plus_get_fontstyle("sfsi_plus_form_button_fontstyle", $option9['sfsi_plus_form_button_fontstyle']); ?>
310
+ </div>
311
+ </div>
312
+ <!--Row Section-->
313
+ <div class="row_tab">
314
+ <div class="sfsi_plus_field">
315
+ <label class="sfsi_plus_same_width">Font color</label>
316
+ <input type="text" name="sfsi_plus_form_button_fontcolor" class="small color-code" id="sfsi_plus_form_button_fontcolor" value="<?php echo ($option9['sfsi_plus_form_button_fontcolor']!='')
317
+ ? $option9['sfsi_plus_form_button_fontcolor'] : '' ;
318
+ ?>">
319
+ <div class="color_box">
320
+ <div class="corner"></div>
321
+ <div class="color_box1" id="sfsiPlusFormButtonFontcolor" style="background: <?php echo ($option9['sfsi_plus_form_button_fontcolor']!='') ? $option9['sfsi_plus_form_button_fontcolor'] : '' ;
322
+ ?>"></div>
323
+ </div>
324
+ </div>
325
+ <div class="sfsi_plus_field">
326
+ <label>Font size</label>
327
+ <input type="text" class="small rec-inp" name="sfsi_plus_form_button_fontsize"
328
+ value="<?php echo ($option9['sfsi_plus_form_button_fontsize']!='')
329
+ ? $option9['sfsi_plus_form_button_fontsize'] : '' ;?>"/>
330
+ <span class="pix">pixels</span>
331
+ </div>
332
+ </div>
333
+ <!--Row Section-->
334
+ <div class="row_tab">
335
+ <div class="sfsi_plus_field">
336
+ <label class="sfsi_plus_same_width">Alignment:</label>
337
+ <?php sfsi_plus_get_alignment("sfsi_plus_form_button_fontalign", $option9['sfsi_plus_form_button_fontalign']); ?>
338
+ </div>
339
+ </div>
340
+ <!--Row Section-->
341
+ <div class="row_tab">
342
+ <div class="sfsi_plus_field">
343
+ <label class="sfsi_plus_same_width"><b>Button color:</b></label>
344
+ <input type="text" name="sfsi_plus_form_button_background" class="small color-code" id="sfsi_plus_form_button_background" value="<?php echo ($option9['sfsi_plus_form_button_background']!='')
345
+ ? $option9['sfsi_plus_form_button_background'] : '' ;
346
+ ?>">
347
+ <div class="color_box">
348
+ <div class="corner"></div>
349
+ <div class="color_box1" id="sfsiPlusFormButtonBackground" style="background: <?php echo ($option9['sfsi_plus_form_button_background']!='') ? $option9['sfsi_plus_form_button_background'] : '' ;
350
+ ?>"></div>
351
+ </div>
352
+ </div>
353
+ </div>
354
+ <!--End Section-->
355
+ </div>
356
+
357
+ </div>
358
+ <!--Section End-->
359
+ </div>
360
+
361
+ <!-- SAVE BUTTON SECTION -->
362
+ <div class="save_button">
363
+ <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
364
+ <?php $nonce = wp_create_nonce("update_plus_step9"); ?>
365
+ <a href="javascript:;" id="sfsi_plus_save9" title="Save" data-nonce="<?php echo $nonce;?>">Save</a>
366
+ </div>
367
+ <!-- END SAVE BUTTON SECTION -->
368
+
369
+ <a class="sfsiColbtn closeSec" href="javascript:;">Collapse area</a>
370
+ <label class="closeSec"></label>
371
+
372
+ <!-- ERROR AND SUCCESS MESSAGE AREA-->
373
+ <p class="red_txt errorMsg" style="display:none"> </p>
374
+ <p class="green_txt sucMsg" style="display:none"> </p>
375
+ <div class="clear"></div>
376
+
377
+ </div>
378
+ <?php
379
+ function sfsi_plus_isChecked($givenVal, $value)
380
+ {
381
+ if($givenVal == $value)
382
+ return 'checked="true"';
383
+ else
384
+ return '';
385
+ }
386
+ function sfsi_plus_isSeletcted($givenVal, $value)
387
+ {
388
+ if($givenVal == $value)
389
+ return 'selected="true"';
390
+ else
391
+ return '';
392
+ }
393
+ function sfsi_plus_get_font($name, $value)
394
+ {
395
+ ?>
396
+ <select name="<?php echo $name; ?>" id="<?php echo $name; ?>" class="select-same">
397
+ <option value="Arial, Helvetica, sans-serif"
398
+ <?php echo sfsi_plus_isSeletcted("Arial, Helvetica, sans-serif", $value) ?> >
399
+ Arial
400
+ </option>
401
+ <option value="Arial Black, Gadget, sans-serif"
402
+ <?php echo sfsi_plus_isSeletcted("Arial Black, Gadget, sans-serif", $value) ?> >
403
+ Arial Black
404
+ </option>
405
+ <option value="Calibri" <?php echo sfsi_plus_isSeletcted("Calibri", $value) ?> >Calibri</option>
406
+ <option value="Comic Sans MS" <?php echo sfsi_plus_isSeletcted("Comic Sans MS", $value) ?> >Comic Sans MS</option>
407
+ <option value="Courier New" <?php echo sfsi_plus_isSeletcted("Courier New", $value) ?> >Courier New</option>
408
+ <option value="Georgia" <?php echo sfsi_plus_isSeletcted("Georgia", $value) ?> >Georgia</option>
409
+ <option value="Helvetica,Arial,sans-serif"
410
+ <?php echo sfsi_plus_isSeletcted("Helvetica,Arial,sans-serif", $value) ?> >
411
+ Helvetica
412
+ </option>
413
+ <option value="Impact" <?php echo sfsi_plus_isSeletcted("Impact", $value) ?> >Impact</option>
414
+ <option value="Lucida Console" <?php echo sfsi_plus_isSeletcted("Lucida Console", $value) ?> >Lucida Console</option>
415
+ <option value="Tahoma,Geneva" <?php echo sfsi_plus_isSeletcted("Tahoma,Geneva", $value) ?> >Tahoma</option>
416
+ <option value="Times New Roman" <?php echo sfsi_plus_isSeletcted("Times New Roman", $value) ?> >Times New Roman</option>
417
+ <option value="Trebuchet MS" <?php echo sfsi_plus_isSeletcted("Trebuchet MS", $value) ?> >Trebuchet MS</option>
418
+ <option value="Verdana" <?php echo sfsi_plus_isSeletcted("Verdana", $value) ?> >Verdana</option>
419
+ </select>
420
+ <?php
421
+ }
422
+ function sfsi_plus_get_fontstyle($name, $value)
423
+ {
424
+ ?>
425
+ <select name="<?php echo $name; ?>" id="<?php echo $name; ?>" class="select-same">
426
+ <option value="normal" <?php echo sfsi_plus_isSeletcted("normal", $value) ?> >Normal</option>
427
+ <option value="inherit" <?php echo sfsi_plus_isSeletcted("inherit", $value) ?> >Inherit</option>
428
+ <option value="oblique" <?php echo sfsi_plus_isSeletcted("oblique", $value) ?> >Oblique</option>
429
+ <option value="italic" <?php echo sfsi_plus_isSeletcted("italic", $value) ?> >Italic</option>
430
+ <option value="bold" <?php echo sfsi_plus_isSeletcted("bold", $value) ?> >Bold</option>
431
+ </select>
432
+ <?php
433
+ }
434
+ function sfsi_plus_get_alignment($name, $value)
435
+ {
436
+ ?>
437
+ <select name="<?php echo $name; ?>" id="<?php echo $name; ?>" class="select-same">
438
+ <option value="left" <?php echo sfsi_plus_isSeletcted("left", $value) ?> >Left Align</option>
439
+ <option value="center" <?php echo sfsi_plus_isSeletcted("center", $value) ?> >Centered</option>
440
+ <option value="right" <?php echo sfsi_plus_isSeletcted("right", $value) ?> >Right Align</option>
441
+ </select>
442
+ <?php
443
+ }
444
+ function get_sfsi_plus_SubscriptionForm($hglht=null)
445
+ {
446
+ ?>
447
+ <div class="sfsi_plus_subscribe_Popinner">
448
+ <div class="form-overlay"></div>
449
+ <form method="post">
450
+ <h5 <?php if($hglht=="h5"){ echo 'class="sfsi_plus_highlight"';}?> >Get new posts by email:</h5>
451
+ <div class="sfsi_plus_subscription_form_field">
452
+ <input type="email" name="data[Widget][email]" placeholder="Enter your email" value=""
453
+ <?php if($hglht=="email"){ echo 'class="sfsi_plus_highlight"';}?> />
454
+ </div>
455
+ <div class="sfsi_plus_subscription_form_field">
456
+ <input type="submit" name="subscribe" value="Subscribe"
457
+ <?php if($hglht=="submit"){ echo 'class="sfsi_plus_highlight"';}?> />
458
+ </div>
459
+ </form>
460
+ </div>
461
+ <?php
462
+ }
463
+ ?>
views/sfsi_options_view.php CHANGED
@@ -1,22 +1,62 @@
1
  <!-- Loader Image section -->
2
  <div id="sfpluspageLoad" >
3
 
4
- </div><!-- END Loader Image section -->
 
5
 
6
  <!-- javascript error loader -->
7
  <div class="error" id="sfsi_onload_errors" style="margin-left: 60px;display: none;">
8
  <p>We found errors in your javascript which may cause the plugin to not work properly. Please fix the error:</p><p id="sfsi_jerrors"></p>
9
- </div> <!-- END javascript error loader -->
 
10
 
11
  <!-- START Admin view for plugin-->
12
  <div class="wapper sfsi_mainContainer">
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  <!-- Top content area of plugin -->
15
  <div class="main_contant">
16
- <!--<h1>Welcome to the Ultimate Social Icons and Share Plugin!</h1>
17
- <p>This plugin is 100% FREE and will fulfill all your subscription/sharing/liking needs!</p>
18
- <p>Get started by clicking on the first question below. Once done, go to the <a href="<?php //echo admin_url('/widgets.php');?>">widget area</a> and move the widget to the sidebar so that your icons are displayed.</p>
19
- <p> If you have any questions, <a href="mailto:support@ultimatelysocial.com" title="support@ultimatelysocial.com" alt="support@ultimatelysocial.com" class="lit_txt">let us know</a>, we‘ll help you out!</p>-->
20
  <h1>Welcome to the Ultimate Social Media Icons PLUS plugin!</h1>
21
  <p>This plugin is 100% FREE and will fulfill all your subscription/sharing/liking needs!</p>
22
  <p>Simply answer the questions below (at least the first 3) by clicking on them - that's it!</p>
@@ -44,15 +84,15 @@
44
 
45
 
46
  <h2 class="optional">Optional</h2>
47
- <div id="accordion1">
48
  <!-- step old 3 start here -->
49
  <h3><span>4</span>What design &amp; animation do you want to give your icons?</h3>
50
- <?php include(SFSI_PLUS_DOCROOT.'/views/sfsi_option_view3.php'); ?>
51
  <!-- step old 3 END here -->
52
 
53
  <!-- step old 4 Start here -->
54
  <h3><span>5</span>Do you want to display "counts" next to your main icons?</h3>
55
- <?php include(SFSI_PLUS_DOCROOT.'/views/sfsi_option_view4.php'); ?>
56
  <!-- step old 4 END here -->
57
 
58
  <!-- step old 5 Start here -->
@@ -60,19 +100,23 @@
60
  <?php include(SFSI_PLUS_DOCROOT.'/views/sfsi_option_view5.php'); ?>
61
  <!-- step old 5 END here -->
62
 
63
- <!-- step old 6 Start here -->
64
  <!--<h3><span>7</span>Do you want to display icons at the end of every post?</h3>-->
65
  <?php //include(SFSI_PLUS_DOCROOT.'/views/sfsi_option_view6.php'); ?>
66
  <!-- step old 6 END here -->
67
 
68
-
69
  <!-- step old 7 Start here -->
70
  <h3><span>7</span>Do you want to display a pop-up, asking people to subscribe?</h3>
71
- <?php include(SFSI_PLUS_DOCROOT.'/views/sfsi_option_view7.php'); ?>
72
  <!-- step old 7 END here -->
73
 
74
- </div>
75
- <div class="tab9">
 
 
 
 
 
76
  <div class="save_button">
77
  <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/ajax-loader.gif" class="loader-img" />
78
  <a href="javascript:;" id="save_plus_all_settings" title="Save All Settings">Save All Settings</a>
@@ -80,10 +124,10 @@
80
  <p class="red_txt errorMsg" style="display:none"> </p>
81
  <p class="green_txt sucMsg" style="display:none"> </p>
82
  <p style="margin-top: 30px;">This plugin is 100% free. Please do us a BIG favor and give us a 5 star rating <a href="https://wordpress.org/support/view/plugin-reviews/ultimate-social-media-plus" target="_new">here</a>. If you're not happy, please <a href="mailto:support@ultimatelysocial.com">get in touch with us</a>, so that we can sort it out.Thank you!</p>
83
- <p class="sucMsg bldtxtmsg">Need top-notch Wordpress development work at a competitive price? Visit us at <a href="http://www.ultimatelysocial.com">ultimatelysocial.com</a></p>
84
 
85
  </div>
86
  <!-- all pops of plugin under sfsi_pop_content.php file -->
87
  <?php include(SFSI_PLUS_DOCROOT.'/views/sfsi_pop_content.php'); ?>
88
- </div> <!-- START Admin view for plugin-->
89
-
1
  <!-- Loader Image section -->
2
  <div id="sfpluspageLoad" >
3
 
4
+ </div>
5
+ <!-- END Loader Image section -->
6
 
7
  <!-- javascript error loader -->
8
  <div class="error" id="sfsi_onload_errors" style="margin-left: 60px;display: none;">
9
  <p>We found errors in your javascript which may cause the plugin to not work properly. Please fix the error:</p><p id="sfsi_jerrors"></p>
10
+ </div>
11
+ <!-- END javascript error loader -->
12
 
13
  <!-- START Admin view for plugin-->
14
  <div class="wapper sfsi_mainContainer">
15
 
16
+ <!-- Get notification bar-->
17
+ <?php if(get_option("sfsi_plus_show_notification") == "yes") { ?>
18
+ <script type="text/javascript">
19
+ jQuery(document).ready(function(e) {
20
+ jQuery(".sfsi_plus_show_notification").click(function(){
21
+ SFSI.ajax({
22
+ url:ajax_object.ajax_url,
23
+ type:"post",
24
+ data: {action: "sfsiPlus_notification_read"},
25
+ success:function(msg){
26
+ if(msg == 'success')
27
+ {
28
+ jQuery(".sfsi_plus_show_notification").hide("fast");
29
+ }
30
+ }
31
+ });
32
+ });
33
+ });
34
+ </script>
35
+ <style type="text/css">
36
+ .sfsi_plus_show_notification {
37
+ float: left;
38
+ margin-bottom: 45px;
39
+ padding: 12px 13px;
40
+ width: 98%;
41
+ background-image: url(<?php echo SFSI_PLUS_PLUGURL ?>images/notification-close.png);
42
+ background-position: right 20px center;
43
+ background-repeat: no-repeat;
44
+ cursor: pointer;
45
+ text-align:center;
46
+ }
47
+ </style>
48
+ <div class="sfsi_plus_show_notification" style="background-color: #38B54A; color: #fff; font-size: 18px;">
49
+ New: You can now also show a subscription form on your site, increasing sign-ups! (Question 8)
50
+ <p>
51
+ (If question 8 gets displayed in a funny way then please reload the page by pressing Control+F5(PC) or Command+R(Mac))
52
+ </p>
53
+ </div>
54
+ <?php } ?>
55
+ <!-- Get notification bar-->
56
+
57
+
58
  <!-- Top content area of plugin -->
59
  <div class="main_contant">
 
 
 
 
60
  <h1>Welcome to the Ultimate Social Media Icons PLUS plugin!</h1>
61
  <p>This plugin is 100% FREE and will fulfill all your subscription/sharing/liking needs!</p>
62
  <p>Simply answer the questions below (at least the first 3) by clicking on them - that's it!</p>
84
 
85
 
86
  <h2 class="optional">Optional</h2>
87
+ <div id="accordion1">
88
  <!-- step old 3 start here -->
89
  <h3><span>4</span>What design &amp; animation do you want to give your icons?</h3>
90
+ <?php include(SFSI_PLUS_DOCROOT.'/views/sfsi_option_view3.php'); ?>
91
  <!-- step old 3 END here -->
92
 
93
  <!-- step old 4 Start here -->
94
  <h3><span>5</span>Do you want to display "counts" next to your main icons?</h3>
95
+ <?php include(SFSI_PLUS_DOCROOT.'/views/sfsi_option_view4.php'); ?>
96
  <!-- step old 4 END here -->
97
 
98
  <!-- step old 5 Start here -->
100
  <?php include(SFSI_PLUS_DOCROOT.'/views/sfsi_option_view5.php'); ?>
101
  <!-- step old 5 END here -->
102
 
103
+ <!-- step old 6 Start here (this is older and newer is added as 8 at question 3) -->
104
  <!--<h3><span>7</span>Do you want to display icons at the end of every post?</h3>-->
105
  <?php //include(SFSI_PLUS_DOCROOT.'/views/sfsi_option_view6.php'); ?>
106
  <!-- step old 6 END here -->
107
 
 
108
  <!-- step old 7 Start here -->
109
  <h3><span>7</span>Do you want to display a pop-up, asking people to subscribe?</h3>
110
+ <?php include(SFSI_PLUS_DOCROOT.'/views/sfsi_option_view7.php'); ?>
111
  <!-- step old 7 END here -->
112
 
113
+ <!-- step old 8 Start here -->
114
+ <h3><span>8</span>Do you want to show a subscription form (increases sign ups)?</h3>
115
+ <?php include(SFSI_PLUS_DOCROOT.'/views/sfsi_option_view9.php'); ?>
116
+ <!-- step old 8 END here -->
117
+
118
+ </div>
119
+ <div class="tab10">
120
  <div class="save_button">
121
  <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/ajax-loader.gif" class="loader-img" />
122
  <a href="javascript:;" id="save_plus_all_settings" title="Save All Settings">Save All Settings</a>
124
  <p class="red_txt errorMsg" style="display:none"> </p>
125
  <p class="green_txt sucMsg" style="display:none"> </p>
126
  <p style="margin-top: 30px;">This plugin is 100% free. Please do us a BIG favor and give us a 5 star rating <a href="https://wordpress.org/support/view/plugin-reviews/ultimate-social-media-plus" target="_new">here</a>. If you're not happy, please <a href="mailto:support@ultimatelysocial.com">get in touch with us</a>, so that we can sort it out.Thank you!</p>
127
+ <p class="bldtxtmsg">Need top-notch Wordpress development work at a competitive price? Visit us at <a href="http://www.ultimatelysocial.com">ultimatelysocial.com</a></p>
128
 
129
  </div>
130
  <!-- all pops of plugin under sfsi_pop_content.php file -->
131
  <?php include(SFSI_PLUS_DOCROOT.'/views/sfsi_pop_content.php'); ?>
132
+ </div>
133
+ <!-- START Admin view for plugin-->