Social Share Icons & Social Share Buttons - Version 1.2

Version Description

  • Vulnerabilities (AJAX) fixed
  • OG-issues (caused in conjunction with other plugins) fixed
Download this release

Release Info

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

Code changes from version 1.1 to 1.2

js/custom-admin.js CHANGED
@@ -193,6 +193,7 @@ function plus_sfsi_newcustomicon_upload(s) {
193
  }
194
 
195
  function sfsi_plus_update_step1() {
 
196
  global_error = 0, sfsiplus_beForeLoad(), sfsi_plus_depened_sections();
197
  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 = {
198
  action:"plus_updateSrcn1",
@@ -210,7 +211,8 @@ function sfsi_plus_update_step1() {
210
  sfsi_custom2_display:S,
211
  sfsi_custom3_display:u,
212
  sfsi_custom4_display:f,
213
- sfsi_custom5_display:d
 
214
  };
215
  SFSI.ajax({
216
  url:ajax_object.ajax_url,
@@ -219,14 +221,24 @@ function sfsi_plus_update_step1() {
219
  async:!0,
220
  dataType:"json",
221
  success:function(i) {
222
- "success" == i ? (sfsiplus_showErrorSuc("success", "Saved !", 1), sfsipluscollapse("#sfsi_plus_save1"),
223
- sfsi_plus_make_popBox()) :(global_error = 1, sfsiplus_showErrorSuc("error", "Unkown error , please try again", 1),
224
- s = !1), sfsiplus_afterLoad();
225
- }
 
 
 
 
 
 
 
 
 
226
  });
227
  }
228
 
229
  function sfsi_plus_update_step2() {
 
230
  var s = sfsi_plus_validationStep2();
231
  if (!s) return global_error = 1, !1;
232
  sfsiplus_beForeLoad();
@@ -270,7 +282,8 @@ function sfsi_plus_update_step2() {
270
  sfsi_plus_linkedin_recommendBusines:O,
271
  sfsi_plus_linkedin_recommendCompany:j,
272
  sfsi_plus_linkedin_recommendProductId:T,
273
- sfsi_plus_custom_links:P
 
274
  };
275
  SFSI.ajax({
276
  url:ajax_object.ajax_url,
@@ -279,14 +292,24 @@ function sfsi_plus_update_step2() {
279
  async:!0,
280
  dataType:"json",
281
  success:function(s) {
282
- "success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 2), sfsipluscollapse("#sfsi_plus_save2"),
283
- sfsi_plus_depened_sections()) :(global_error = 1, sfsiplus_showErrorSuc("error", "Unkown error , please try again", 2),
284
- return_value = !1), sfsiplus_afterLoad();
 
 
 
 
 
 
 
 
 
285
  }
286
  });
287
  }
288
 
289
  function sfsi_plus_update_step3() {
 
290
  var s = sfsi_plus_validationStep3();
291
  if (!s) return global_error = 1, !1;
292
  sfsiplus_beForeLoad();
@@ -305,7 +328,8 @@ function sfsi_plus_update_step3() {
305
  sfsi_plus_specialIcon_Firstload_Icons:l,
306
  sfsi_plus_specialIcon_interval:S,
307
  sfsi_plus_specialIcon_intervalTime:u,
308
- sfsi_plus_specialIcon_intervalIcons:f
 
309
  };
310
  SFSI.ajax({
311
  url:ajax_object.ajax_url,
@@ -314,9 +338,18 @@ function sfsi_plus_update_step3() {
314
  async:!0,
315
  dataType:"json",
316
  success:function(s) {
317
- "success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 3), sfsipluscollapse("#sfsi_plus_save3")) :(sfsiplus_showErrorSuc("error", "Unkown error , please try again", 3),
318
- return_value = !1), sfsiplus_afterLoad();
319
- }
 
 
 
 
 
 
 
 
 
320
  });
321
  }
322
 
@@ -345,6 +378,7 @@ function sfsi_plus_show_OnpostsDisplay() {
345
  }
346
 
347
  function sfsi_plus_update_step4() {
 
348
  var s = !1, i = sfsi_plus_validationStep4();
349
  if (!i) return global_error = 1, !1;
350
  sfsiplus_beForeLoad();
@@ -392,7 +426,8 @@ function sfsi_plus_update_step4() {
392
  sfsi_plus_instagram_User:H,
393
  sfsi_plus_shares_countsDisplay:R,
394
  sfsi_plus_shares_countsFrom:W,
395
- sfsi_plus_shares_manualCounts:q
 
396
  };
397
  return SFSI.ajax({
398
  url:ajax_object.ajax_url,
@@ -401,14 +436,24 @@ function sfsi_plus_update_step4() {
401
  dataType:"json",
402
  async:!0,
403
  success:function(s) {
404
- "success" == s.res ? (sfsiplus_showErrorSuc("success", "Saved !", 4), sfsipluscollapse("#sfsi_plus_save4"),
405
- sfsi_plus_showPreviewCounts()) :(sfsiplus_showErrorSuc("error", "Unkown error , please try again", 4),
406
- global_error = 1), sfsiplus_afterLoad();
 
 
 
 
 
 
 
 
 
407
  }
408
  }), s;
409
  }
410
 
411
  function sfsi_plus_update_step5() {
 
412
  sfsi_plus_update_step3();
413
  var s = sfsi_plus_validationStep5();
414
  if (!s) return global_error = 1, !1;
@@ -457,7 +502,8 @@ function sfsi_plus_update_step5() {
457
  sfsi_plus_shareIcon_order:m,
458
  sfsi_plus_instagramIcon_order:I,
459
  sfsi_plus_linkedinIcon_order:F,
460
- sfsi_plus_custom_orders:h
 
461
  };
462
  SFSI.ajax({
463
  url:ajax_object.ajax_url,
@@ -466,20 +512,31 @@ function sfsi_plus_update_step5() {
466
  dataType:"json",
467
  async:!0,
468
  success:function(s) {
469
- "success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 5), sfsipluscollapse("#sfsi_plus_save5")) :(global_error = 1,
470
- sfsiplus_showErrorSuc("error", "Unkown error , please try again", 5)), sfsiplus_afterLoad();
471
- }
 
 
 
 
 
 
 
 
 
472
  });
473
  }
474
 
475
  function sfsi_plus_update_step6() {
 
476
  sfsiplus_beForeLoad();
477
  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 = {
478
  action:"plus_updateSrcn6",
479
  sfsi_plus_show_Onposts:s,
480
  sfsi_plus_icons_DisplayCounts:t,
481
  sfsi_plus_icons_alignment:e,
482
- sfsi_plus_textBefor_icons:i
 
483
  };
484
  SFSI.ajax({
485
  url:ajax_object.ajax_url,
@@ -488,13 +545,23 @@ function sfsi_plus_update_step6() {
488
  dataType:"json",
489
  async:!0,
490
  success:function(s) {
491
- "success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 6), sfsipluscollapse("#sfsi_plus_save6")) :(global_error = 1,
492
- sfsiplus_showErrorSuc("error", "Unkown error , please try again", 6)), sfsiplus_afterLoad();
493
- }
 
 
 
 
 
 
 
 
 
494
  });
495
  }
496
 
497
  function sfsi_plus_update_step7() {
 
498
  var s = sfsi_plus_validationStep7();
499
  if (!s) return global_error = 1, !1;
500
  sfsiplus_beForeLoad();
@@ -517,7 +584,8 @@ function sfsi_plus_update_step7() {
517
  sfsi_plus_Show_popupOn_PageIDs:_,
518
  sfsi_plus_Shown_pop:l,
519
  sfsi_plus_Shown_popupOnceTime:S,
520
- sfsi_plus_Shown_popuplimitPerUserTime:u
 
521
  };
522
  SFSI.ajax({
523
  url:ajax_object.ajax_url,
@@ -526,13 +594,22 @@ function sfsi_plus_update_step7() {
526
  dataType:"json",
527
  async:!0,
528
  success:function(s) {
529
- "success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 7), sfsipluscollapse("#sfsi_plus_save7")) :sfsiplus_showErrorSuc("error", "Unkown error , please try again", 7),
530
- sfsiplus_afterLoad();
531
- }
 
 
 
 
 
 
 
 
532
  });
533
  }
534
 
535
  function sfsi_plus_update_step8() {
 
536
  var s = sfsi_plus_validationStep7();
537
  s = true;
538
  if (!s) return global_error = 1, !1;
@@ -579,7 +656,8 @@ function sfsi_plus_update_step8() {
579
  /*sfsi_plus_display_on_postspage: f,
580
  sfsi_plus_display_on_homepage: g*/
581
  sfsi_plus_display_before_blogposts: f,
582
- sfsi_plus_display_after_blogposts: g
 
583
  };
584
  SFSI.ajax({
585
  url: ajax_object.ajax_url,
@@ -588,8 +666,16 @@ function sfsi_plus_update_step8() {
588
  dataType: "json",
589
  async: !0,
590
  success: function(s) {
591
- "success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 8), sfsipluscollapse("#sfsi_plus_save8")) : sfsiplus_showErrorSuc("error", "Unkown error , please try again", 8), sfsiplus_afterLoad()
592
- }
 
 
 
 
 
 
 
 
593
  })
594
  }
595
 
@@ -942,10 +1028,12 @@ SFSI(document).ready(function(s) {
942
  SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
943
  }), SFSI(".hidePop").on("click", function() {
944
  SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
945
- }), SFSI(".activate_footer").on("click", function() {
 
946
  SFSI(this).text("activating....");
947
  var s = {
948
- action:"plus_activateFooter"
 
949
  };
950
  SFSI.ajax({
951
  url:ajax_object.ajax_url,
@@ -953,14 +1041,24 @@ SFSI(document).ready(function(s) {
953
  data:s,
954
  dataType:"json",
955
  success:function(s) {
956
- "success" == s.res && (SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"),
957
- SFSI(".demail-3").hide("slow"), SFSI(".activate_footer").text("Ok, activate link"));
958
- }
 
 
 
 
 
 
 
 
959
  });
960
- }), SFSI(".sfsi_removeFooter").on("click", function() {
 
961
  SFSI(this).text("working....");
962
  var s = {
963
- action:"plus_removeFooter"
 
964
  };
965
  SFSI.ajax({
966
  url:ajax_object.ajax_url,
@@ -968,8 +1066,15 @@ SFSI(document).ready(function(s) {
968
  data:s,
969
  dataType:"json",
970
  success:function(s) {
971
- "success" == s.res && (SFSI(".sfsi_removeFooter").fadeOut("slow"), SFSI(".sfsiplus_footerLnk").fadeOut("slow"));
972
- }
 
 
 
 
 
 
 
973
  });
974
  }), SFSI(".radio").live("click", function() {
975
  var s = SFSI(this).parent().find("input:radio:first");
193
  }
194
 
195
  function sfsi_plus_update_step1() {
196
+ var nonce = SFSI("#sfsi_plus_save1").attr("data-nonce");
197
  global_error = 0, sfsiplus_beForeLoad(), sfsi_plus_depened_sections();
198
  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 = {
199
  action:"plus_updateSrcn1",
211
  sfsi_custom2_display:S,
212
  sfsi_custom3_display:u,
213
  sfsi_custom4_display:f,
214
+ sfsi_custom5_display:d,
215
+ nonce:nonce
216
  };
217
  SFSI.ajax({
218
  url:ajax_object.ajax_url,
221
  async:!0,
222
  dataType:"json",
223
  success:function(i) {
224
+ if(i=="wrong_nonce")
225
+ {
226
+ sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 1);
227
+ s = !1;
228
+ sfsiplus_afterLoad();
229
+ }
230
+ else
231
+ {
232
+ "success" == i ? (sfsiplus_showErrorSuc("success", "Saved !", 1), sfsipluscollapse("#sfsi_plus_save1"),
233
+ sfsi_plus_make_popBox()) :(global_error = 1, sfsiplus_showErrorSuc("error", "Unkown error , please try again", 1),
234
+ s = !1), sfsiplus_afterLoad();
235
+ }
236
+ }
237
  });
238
  }
239
 
240
  function sfsi_plus_update_step2() {
241
+ var nonce = SFSI("#sfsi_plus_save2").attr("data-nonce");
242
  var s = sfsi_plus_validationStep2();
243
  if (!s) return global_error = 1, !1;
244
  sfsiplus_beForeLoad();
282
  sfsi_plus_linkedin_recommendBusines:O,
283
  sfsi_plus_linkedin_recommendCompany:j,
284
  sfsi_plus_linkedin_recommendProductId:T,
285
+ sfsi_plus_custom_links:P,
286
+ nonce:nonce
287
  };
288
  SFSI.ajax({
289
  url:ajax_object.ajax_url,
292
  async:!0,
293
  dataType:"json",
294
  success:function(s) {
295
+ if(s == "wrong_nonce")
296
+ {
297
+ sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 2);
298
+ return_value = !1;
299
+ sfsiplus_afterLoad();
300
+ }
301
+ else
302
+ {
303
+ "success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 2), sfsipluscollapse("#sfsi_plus_save2"),
304
+ sfsi_plus_depened_sections()) :(global_error = 1, sfsiplus_showErrorSuc("error", "Unkown error , please try again", 2),
305
+ return_value = !1), sfsiplus_afterLoad();
306
+ }
307
  }
308
  });
309
  }
310
 
311
  function sfsi_plus_update_step3() {
312
+ var nonce = SFSI("#sfsi_plus_save3").attr("data-nonce");
313
  var s = sfsi_plus_validationStep3();
314
  if (!s) return global_error = 1, !1;
315
  sfsiplus_beForeLoad();
328
  sfsi_plus_specialIcon_Firstload_Icons:l,
329
  sfsi_plus_specialIcon_interval:S,
330
  sfsi_plus_specialIcon_intervalTime:u,
331
+ sfsi_plus_specialIcon_intervalIcons:f,
332
+ nonce:nonce
333
  };
334
  SFSI.ajax({
335
  url:ajax_object.ajax_url,
338
  async:!0,
339
  dataType:"json",
340
  success:function(s) {
341
+ if(s == "wrong_nonce")
342
+ {
343
+ sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 3);
344
+ return_value = !1;
345
+ sfsiplus_afterLoad();
346
+ }
347
+ else
348
+ {
349
+ "success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 3), sfsipluscollapse("#sfsi_plus_save3")) :(sfsiplus_showErrorSuc("error", "Unkown error , please try again", 3),
350
+ return_value = !1), sfsiplus_afterLoad();
351
+ }
352
+ }
353
  });
354
  }
355
 
378
  }
379
 
380
  function sfsi_plus_update_step4() {
381
+ var nonce = SFSI("#sfsi_plus_save4").attr("data-nonce");
382
  var s = !1, i = sfsi_plus_validationStep4();
383
  if (!i) return global_error = 1, !1;
384
  sfsiplus_beForeLoad();
426
  sfsi_plus_instagram_User:H,
427
  sfsi_plus_shares_countsDisplay:R,
428
  sfsi_plus_shares_countsFrom:W,
429
+ sfsi_plus_shares_manualCounts:q,
430
+ nonce:nonce
431
  };
432
  return SFSI.ajax({
433
  url:ajax_object.ajax_url,
436
  dataType:"json",
437
  async:!0,
438
  success:function(s) {
439
+ if(s == "wrong_nonce")
440
+ {
441
+ sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 4);
442
+ global_error = 1;
443
+ sfsiplus_afterLoad();
444
+ }
445
+ else
446
+ {
447
+ "success" == s.res ? (sfsiplus_showErrorSuc("success", "Saved !", 4), sfsipluscollapse("#sfsi_plus_save4"),
448
+ sfsi_plus_showPreviewCounts()) :(sfsiplus_showErrorSuc("error", "Unkown error , please try again", 4),
449
+ global_error = 1), sfsiplus_afterLoad();
450
+ }
451
  }
452
  }), s;
453
  }
454
 
455
  function sfsi_plus_update_step5() {
456
+ var nonce = SFSI("#sfsi_plus_save5").attr("data-nonce");
457
  sfsi_plus_update_step3();
458
  var s = sfsi_plus_validationStep5();
459
  if (!s) return global_error = 1, !1;
502
  sfsi_plus_shareIcon_order:m,
503
  sfsi_plus_instagramIcon_order:I,
504
  sfsi_plus_linkedinIcon_order:F,
505
+ sfsi_plus_custom_orders:h,
506
+ nonce:nonce
507
  };
508
  SFSI.ajax({
509
  url:ajax_object.ajax_url,
512
  dataType:"json",
513
  async:!0,
514
  success:function(s) {
515
+ if(s == "wrong_nonce")
516
+ {
517
+ sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 5);
518
+ global_error = 1;
519
+ sfsiplus_afterLoad();
520
+ }
521
+ else
522
+ {
523
+ "success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 5), sfsipluscollapse("#sfsi_plus_save5")) :(global_error = 1,
524
+ sfsiplus_showErrorSuc("error", "Unkown error , please try again", 5)), sfsiplus_afterLoad();
525
+ }
526
+ }
527
  });
528
  }
529
 
530
  function sfsi_plus_update_step6() {
531
+ var nonce = SFSI("#sfsi_plus_save6").attr("data-nonce");
532
  sfsiplus_beForeLoad();
533
  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 = {
534
  action:"plus_updateSrcn6",
535
  sfsi_plus_show_Onposts:s,
536
  sfsi_plus_icons_DisplayCounts:t,
537
  sfsi_plus_icons_alignment:e,
538
+ sfsi_plus_textBefor_icons:i,
539
+ nonce:nonce
540
  };
541
  SFSI.ajax({
542
  url:ajax_object.ajax_url,
545
  dataType:"json",
546
  async:!0,
547
  success:function(s) {
548
+ if(s == "wrong_nonce")
549
+ {
550
+ sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
551
+ global_error = 1;
552
+ sfsiplus_afterLoad();
553
+ }
554
+ else
555
+ {
556
+ "success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 6), sfsipluscollapse("#sfsi_plus_save6")) :(global_error = 1,
557
+ sfsiplus_showErrorSuc("error", "Unkown error , please try again", 6)), sfsiplus_afterLoad();
558
+ }
559
+ }
560
  });
561
  }
562
 
563
  function sfsi_plus_update_step7() {
564
+ var nonce = SFSI("#sfsi_plus_save7").attr("data-nonce");
565
  var s = sfsi_plus_validationStep7();
566
  if (!s) return global_error = 1, !1;
567
  sfsiplus_beForeLoad();
584
  sfsi_plus_Show_popupOn_PageIDs:_,
585
  sfsi_plus_Shown_pop:l,
586
  sfsi_plus_Shown_popupOnceTime:S,
587
+ sfsi_plus_Shown_popuplimitPerUserTime:u,
588
+ nonce:nonce
589
  };
590
  SFSI.ajax({
591
  url:ajax_object.ajax_url,
594
  dataType:"json",
595
  async:!0,
596
  success:function(s) {
597
+ if(s == "wrong_nonce")
598
+ {
599
+ sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 7);
600
+ sfsiplus_afterLoad();
601
+ }
602
+ else
603
+ {
604
+ "success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 7), sfsipluscollapse("#sfsi_plus_save7")) :sfsiplus_showErrorSuc("error", "Unkown error , please try again", 7),
605
+ sfsiplus_afterLoad();
606
+ }
607
+ }
608
  });
609
  }
610
 
611
  function sfsi_plus_update_step8() {
612
+ var nonce = SFSI("#sfsi_plus_save8").attr("data-nonce");
613
  var s = sfsi_plus_validationStep7();
614
  s = true;
615
  if (!s) return global_error = 1, !1;
656
  /*sfsi_plus_display_on_postspage: f,
657
  sfsi_plus_display_on_homepage: g*/
658
  sfsi_plus_display_before_blogposts: f,
659
+ sfsi_plus_display_after_blogposts: g,
660
+ nonce:nonce
661
  };
662
  SFSI.ajax({
663
  url: ajax_object.ajax_url,
666
  dataType: "json",
667
  async: !0,
668
  success: function(s) {
669
+ if(s == "wrong_nonce")
670
+ {
671
+ sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 8);
672
+ sfsiplus_afterLoad();
673
+ }
674
+ else
675
+ {
676
+ "success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 8), sfsipluscollapse("#sfsi_plus_save8")) : sfsiplus_showErrorSuc("error", "Unkown error , please try again", 8), sfsiplus_afterLoad()
677
+ }
678
+ }
679
  })
680
  }
681
 
1028
  SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
1029
  }), SFSI(".hidePop").on("click", function() {
1030
  SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
1031
+ }), SFSI(".sfsiplus_activate_footer").on("click", function() {
1032
+ var nonce = SFSI(this).attr("data-nonce");
1033
  SFSI(this).text("activating....");
1034
  var s = {
1035
+ action:"plus_activateFooter",
1036
+ nonce:nonce
1037
  };
1038
  SFSI.ajax({
1039
  url:ajax_object.ajax_url,
1041
  data:s,
1042
  dataType:"json",
1043
  success:function(s) {
1044
+ if(s.res == "wrong_nonce")
1045
+ {
1046
+ SFSI(".sfsiplus_activate_footer").css("font-size", "18px");
1047
+ SFSI(".sfsiplus_activate_footer").text("Unauthorised Request, Try again after refreshing page");
1048
+ }
1049
+ else
1050
+ {
1051
+ "success" == s.res && (SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"),
1052
+ SFSI(".demail-3").hide("slow"), SFSI(".sfsiplus_activate_footer").text("Ok, activate link"));
1053
+ }
1054
+ }
1055
  });
1056
+ }), SFSI(".sfsiplus_removeFooter").on("click", function() {
1057
+ var nonce = SFSI(this).attr("data-nonce");
1058
  SFSI(this).text("working....");
1059
  var s = {
1060
+ action:"plus_removeFooter",
1061
+ nonce:nonce
1062
  };
1063
  SFSI.ajax({
1064
  url:ajax_object.ajax_url,
1066
  data:s,
1067
  dataType:"json",
1068
  success:function(s) {
1069
+ if(s.res == "wrong_nonce")
1070
+ {
1071
+ SFSI(".sfsiplus_removeFooter").text("Unauthorised Request, Try again after refreshing page");
1072
+ }
1073
+ else
1074
+ {
1075
+ "success" == s.res && (SFSI(".sfsiplus_removeFooter").fadeOut("slow"), SFSI(".sfsiplus_footerLnk").fadeOut("slow"));
1076
+ }
1077
+ }
1078
  });
1079
  }), SFSI(".radio").live("click", function() {
1080
  var s = SFSI(this).parent().find("input:radio:first");
js/custom-min.js CHANGED
@@ -1,2 +1,2 @@
1
  function sfsi_plus_update_index(){var s=1;SFSI("ul.icn_listing li.custom").each(function(){SFSI(this).children("span.sfsiplus_custom-txt").html("Custom "+s),s++}),cntt=1,SFSI("div.cm_lnk").each(function(){SFSI(this).find("h2.custom").find("span.sfsiCtxt").html("Custom "+cntt+":"),cntt++}),cntt=1,SFSI("div.custom_m").find("div.sfsiplus_custom_section").each(function(){SFSI(this).find("label").html("Custom "+cntt+":"),cntt++})}function sfsipluscollapse(s){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();e.toggleClass("ui-corner-all",i).toggleClass("accordion-header-active ui-state-active ui-corner-top",!i).attr("aria-selected",(!i).toString()),e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e",i).toggleClass("ui-icon-triangle-1-s",!i),t.toggleClass("accordion-content-active",!i),i?t.slideUp():t.slideDown()}function sfsi_plus_delete_CusIcon(s,i){sfsiplus_beForeLoad();var e={action:"deleteIcons",icon_name:i.attr("name")};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:e,dataType:"json",success:function(e){if("success"==e.res){sfsiplus_showErrorSuc("success","Saved !",1);var t=e.last_index+1;SFSI("#total_cusotm_icons").val(e.total_up),SFSI(s).closest(".custom").remove(),SFSI("li.custom:last").addClass("bdr_btm_non"),SFSI(".custom-links").find("div."+i.attr("name")).remove(),SFSI(".custom_m").find("div."+i.attr("name")).remove(),SFSI(".share_icon_order").children("li."+i.attr("name")).remove(),SFSI("ul.sfsi_sample_icons").children("li."+i.attr("name")).remove();var n=e.total_up+1;4==e.total_up&&SFSI(".icn_listing").append('<li id="c'+t+'" class="custom bdr_btm_non"><div class="radio_section tb_4_ck"><span class="checkbox" dynamic_ele="yes" style="background-position: 0px 0px;"></span><input name="sfsiICON_'+t+'_display" type="checkbox" value="yes" class="styled" style="display:none;" element-type="cusotm-icon" isNew="yes" /></div> <span class="custom-img"><img src="'+SFSI("#plugin_url").val()+'images/custom.png" id="CImg_'+t+'" /> </span> <span class="custom sfsiplus_custom-txt">Custom'+n+' </span> <div class="sfsiplus_right_info"> <p><span>It depends:</span> Upload a custom icon if you have other accounts/websites you want to link to.</p><div class="inputWrapper"></div></li>')}else sfsiplus_showErrorSuc("error","Unkown error , please try again",1);return sfsi_plus_update_index(),plus_update_Sec5Iconorder(),sfsi_plus_update_step1(),sfsi_plus_update_step5(),sfsiplus_afterLoad(),"suc"}})}function plus_update_Sec5Iconorder(){SFSI("ul.share_icon_order").children("li").each(function(){SFSI(this).attr("data-index",SFSI(this).index()+1)})}function sfsi_plus_section_Display(s,i){"hide"==i?(SFSI("."+s+" :input").prop("disabled",!0),SFSI("."+s+" :button").prop("disabled",!0),SFSI("."+s).hide()):(SFSI("."+s+" :input").removeAttr("disabled",!0),SFSI("."+s+" :button").removeAttr("disabled",!0),SFSI("."+s).show())}function sfsi_plus_depened_sections(){if("sfsi"==SFSI("input[name='sfsi_rss_icons']:checked").val()){for(i=0;16>i;i++){var s=i+1,e=74*i;SFSI(".sfsiplus_row_"+s+"_2").css("background-position","-588px -"+e+"px")}var t=SFSI(".icon_img").attr("src"),n=t.replace("email.png","sf_asfsiplus_row_icn.png");SFSI(".icon_img").attr("src",n)}else{for(SFSI(".sfsiplus_row_1_2").css("background-position","-58px 0"),i=0;16>i;i++){var s=i+1,e=74*i;SFSI(".sfsiplus_row_"+s+"_2").css("background-position","-58px -"+e+"px")}var t=SFSI(".icon_img").attr("src");if(t){var n=t.replace("sf_asfsiplus_row_icn.png","email.png");SFSI(".icon_img").attr("src",n)}}SFSI("input[name='sfsi_rss_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_rss_section","show"):sfsi_plus_section_Display("sfsiplus_rss_section","hide"),SFSI("input[name='sfsi_email_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_email_section","show"):sfsi_plus_section_Display("sfsiplus_email_section","hide"),SFSI("input[name='sfsi_facebook_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_facebook_section","show"):sfsi_plus_section_Display("sfsiplus_facebook_section","hide"),SFSI("input[name='sfsi_twitter_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_twitter_section","show"):sfsi_plus_section_Display("sfsiplus_twitter_section","hide"),SFSI("input[name='sfsi_google_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_google_section","show"):sfsi_plus_section_Display("sfsiplus_google_section","hide"),SFSI("input[name='sfsi_share_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_share_section","show"):sfsi_plus_section_Display("sfsiplus_share_section","hide"),SFSI("input[name='sfsi_youtube_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_youtube_section","show"):sfsi_plus_section_Display("sfsiplus_youtube_section","hide"),SFSI("input[name='sfsi_pinterest_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_pinterest_section","show"):sfsi_plus_section_Display("sfsiplus_pinterest_section","hide"),SFSI("input[name='sfsi_instagram_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_instagram_section","show"):sfsi_plus_section_Display("sfsiplus_instagram_section","hide"),SFSI("input[name='sfsi_linkedin_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_linkedin_section","show"):sfsi_plus_section_Display("sfsiplus_linkedin_section","hide"),SFSI("input[element-type='cusotm-icon']").prop("checked")?sfsi_plus_section_Display("sfsiplus_custom_section","show"):sfsi_plus_section_Display("sfsiplus_custom_section","hide")}function PlusCustomIConSectionsUpdate(){sfsi_plus_section_Display("counter".ele,show)}function sfsi_customskin_upload(s,i){var e=(jQuery(i).attr("title"),s),t={action:"UploadSkins",custom_imgurl:e};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:t,success:function(e){if(e.res="success"){var t=s.split("=");jQuery(i).prev(".imgskin").attr("src",t[1]),jQuery(i).prev(".imgskin").css("display","block"),jQuery(i).text("Update"),jQuery(i).next(".dlt_btn").css("display","block")}}})}function sfsiplus_deleteskin_icon(s){var i=jQuery(s).attr("title"),e=i,t={action:"DeleteSkin",iconname:e};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:t,success:function(i){(i.res="success")&&(SFSI(s).prev("a").text("Upload"),SFSI(s).prev("a").prev("img").attr("src",""),SFSI(s).prev("a").prev("img").css("display","none"),SFSI(s).css("display","none"))}})}function SFSI_plus_done(){e={action:"Iamdone"},SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:e,success:function(s){jQuery("li.cstomskins_upload").children(".sfsiplus_icns_tab_3").html(s),SFSI("input[name='sfsi_rss_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_rss_section","show"):sfsi_plus_section_Display("sfsiplus_rss_section","hide"),SFSI("input[name='sfsi_email_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_email_section","show"):sfsi_plus_section_Display("sfsiplus_email_section","hide"),SFSI("input[name='sfsi_facebook_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_facebook_section","show"):sfsi_plus_section_Display("sfsiplus_facebook_section","hide"),SFSI("input[name='sfsi_twitter_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_twitter_section","show"):sfsi_plus_section_Display("sfsiplus_twitter_section","hide"),SFSI("input[name='sfsi_google_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_google_section","show"):sfsi_plus_section_Display("sfsiplus_google_section","hide"),SFSI("input[name='sfsi_share_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_share_section","show"):sfsi_plus_section_Display("sfsiplus_share_section","hide"),SFSI("input[name='sfsi_youtube_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_youtube_section","show"):sfsi_plus_section_Display("sfsiplus_youtube_section","hide"),SFSI("input[name='sfsi_pinterest_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_pinterest_section","show"):sfsi_plus_section_Display("sfsiplus_pinterest_section","hide"),SFSI("input[name='sfsi_instagram_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_instagram_section","show"):sfsi_plus_section_Display("sfsiplus_instagram_section","hide"),SFSI("input[name='sfsi_linkedin_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_linkedin_section","show"):sfsi_plus_section_Display("sfsiplus_linkedin_section","hide"),SFSI("input[element-type='cusotm-icon']").prop("checked")?sfsi_plus_section_Display("sfsiplus_custom_section","show"):sfsi_plus_section_Display("sfsiplus_custom_section","hide"),SFSI(".cstmskins-overlay").hide("slow"),sfsi_plus_update_step3()&&sfsipluscollapse(this)}})}function sfsi_newcustomicon_upload(s){var i=s,e={action:"UploadIcons",custom_imgurl:i};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:e,dataType:"json",async:!0,success:function(s){sfsiplus_afterIconSuccess(s)}})}function sfsi_plus_update_step1(){global_error=0,sfsiplus_beForeLoad(),sfsi_plus_depened_sections();var s=!1,i=SFSI("input[name='sfsi_rss_display']:checked").val(),e=SFSI("input[name='sfsi_email_display']:checked").val(),t=SFSI("input[name='sfsi_facebook_display']:checked").val(),n=SFSI("input[name='sfsi_twitter_display']:checked").val(),o=SFSI("input[name='sfsi_google_display']:checked").val(),a=SFSI("input[name='sfsi_share_display']:checked").val(),c=SFSI("input[name='sfsi_youtube_display']:checked").val(),r=SFSI("input[name='sfsi_pinterest_display']:checked").val(),p=SFSI("input[name='sfsi_linkedin_display']:checked").val(),_=SFSI("input[name='sfsi_instagram_display']:checked").val(),l=SFSI("input[name='sfsi_custom1_display']:checked").val(),S=SFSI("input[name='sfsi_custom2_display']:checked").val(),u=SFSI("input[name='sfsi_custom3_display']:checked").val(),f=SFSI("input[name='sfsi_custom4_display']:checked").val(),d=SFSI("input[name='sfsi_custom5_display']:checked").val(),m={action:"updateSrcn1",sfsi_rss_display:i,sfsi_email_display:e,sfsi_facebook_display:t,sfsi_twitter_display:n,sfsi_google_display:o,sfsi_share_display:a,sfsi_youtube_display:c,sfsi_pinterest_display:r,sfsi_linkedin_display:p,sfsi_instagram_display:_,sfsi_custom1_display:l,sfsi_custom2_display:S,sfsi_custom3_display:u,sfsi_custom4_display:f,sfsi_custom5_display:d};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:m,async:!0,dataType:"json",success:function(i){"success"==i?(sfsiplus_showErrorSuc("success","Saved !",1),sfsipluscollapse("#sfsi_save1"),sfsi_plus_make_popBox()):(global_error=1,sfsiplus_showErrorSuc("error","Unkown error , please try again",1),s=!1),sfsiplus_afterLoad()}})}function sfsi_plus_update_step2(){var s=sfsi_plus_validationStep2();if(!s)return global_error=1,!1;sfsiplus_beForeLoad();var i=1==SFSI("input[name='sfsi_rss_url']").prop("disabled")?"":SFSI("input[name='sfsi_rss_url']").val(),e=1==SFSI("input[name='sfsi_rss_icons']").prop("disabled")?"":SFSI("input[name='sfsi_rss_icons']:checked").val(),t=1==SFSI("input[name='sfsi_facebookPage_option']").prop("disabled")?"":SFSI("input[name='sfsi_facebookPage_option']:checked").val(),n=1==SFSI("input[name='sfsi_plus_facebookLike_option']").prop("disabled")?"":SFSI("input[name='sfsi_plus_facebookLike_option']:checked").val(),o=1==SFSI("input[name='sfsi_plus_facebookShare_option']").prop("disabled")?"":SFSI("input[name='sfsi_plus_facebookShare_option']:checked").val(),a=SFSI("input[name='sfsi_facebookPage_url']").val(),c=1==SFSI("input[name='sfsi_plus_twitter_followme']").prop("disabled")?"":SFSI("input[name='sfsi_plus_twitter_followme']:checked").val(),r=1==SFSI("input[name='sfsi_twitter_followUserName']").prop("disabled")?"":SFSI("input[name='sfsi_twitter_followUserName']").val(),p=1==SFSI("input[name='sfsi_plus_twitter_aboutPage']").prop("disabled")?"":SFSI("input[name='sfsi_twitter_aboutPage']:checked").val(),_=1==SFSI("input[name='sfsi_plus_twitter_page']").prop("disabled")?"":SFSI("input[name='sfsi_plus_twitter_page']:checked").val(),l=SFSI("input[name='sfsi_twitter_pageURL']").val(),S=SFSI("textarea[name='sfsi_twitter_aboutPageText']").val(),u=1==SFSI("input[name='sfsi_google_page']").prop("disabled")?"":SFSI("input[name='sfsi_google_page']:checked").val(),f=1==SFSI("input[name='sfsi_googleLike_option']").prop("disabled")?"":SFSI("input[name='sfsi_googleLike_option']:checked").val(),d=SFSI("input[name='sfsi_google_pageURL']").val(),m=1==SFSI("input[name='sfsi_plus_googleShare_option']").prop("disabled")?"":SFSI("input[name='sfsi_plus_googleShare_option']:checked").val(),I=1==SFSI("input[name='sfsi_youtube_page']").prop("disabled")?"":SFSI("input[name='sfsi_youtube_page']:checked").val(),F=1==SFSI("input[name='sfsi_plus_youtube_pageUrl']").prop("disabled")?"":SFSI("input[name='sfsi_youtube_pageUrl']").val(),h=1==SFSI("input[name='sfsi_youtube_follow']").prop("disabled")?"":SFSI("input[name='sfsi_youtube_follow']:checked").val(),v=SFSI("input[name='sfsi_plus_youtubeusernameorid']:checked").val(),g=SFSI("input[name='sfsi_plus_ytube_user']").val(),k=SFSI("input[name='sfsi_plus_ytube_chnlid']").val(),y=1==SFSI("input[name='sfsi_plus_pinterest_page']").prop("disabled")?"":SFSI("input[name='sfsi_plus_pinterest_page']:checked").val(),b=1==SFSI("input[name='sfsi_plus_pinterest_pageUrl']").prop("disabled")?"":SFSI("input[name='sfsi_plus_pinterest_pageUrl']").val(),w=1==SFSI("input[name='sfsi_pinterest_pingBlog']").prop("disabled")?"":SFSI("input[name='sfsi_pinterest_pingBlog']:checked").val(),x=1==SFSI("input[name='sfsi_plus_instagram_pageUrl']").prop("disabled")?"":SFSI("input[name='sfsi_plus_instagram_pageUrl']").val(),C=1==SFSI("input[name='sfsi_linkedin_page']").prop("disabled")?"":SFSI("input[name='sfsi_linkedin_page']:checked").val(),D=1==SFSI("input[name='sfsi_linkedin_pageURL']").prop("disabled")?"":SFSI("input[name='sfsi_linkedin_pageURL']").val(),U=1==SFSI("input[name='sfsi_linkedin_follow']").prop("disabled")?"":SFSI("input[name='sfsi_linkedin_follow']:checked").val(),j=SFSI("input[name='sfsi_linkedin_followCompany']").val(),O=1==SFSI("input[name='sfsi_linkedin_SharePage']").prop("disabled")?"":SFSI("input[name='sfsi_linkedin_SharePage']:checked").val(),T=SFSI("input[name='sfsi_plus_linkedin_recommendBusines']:checked").val(),P=SFSI("input[name='sfsi_linkedin_recommendProductId']").val(),M=SFSI("input[name='sfsi_linkedin_recommendCompany']").val(),L={};SFSI("input[name='sfsi_plus_CustomIcon_links[]']").each(function(){L[SFSI(this).attr("file-id")]=this.value});var B={action:"updateSrcn2",sfsi_rss_url:i,sfsi_rss_icons:e,sfsi_facebookPage_option:t,sfsi_plus_facebookLike_option:n,sfsi_plus_facebookShare_option:o,sfsi_facebookPage_url:a,sfsi_plus_twitter_followme:c,sfsi_twitter_followUserName:r,sfsi_twitter_aboutPage:p,sfsi_twitter_page:_,sfsi_twitter_pageURL:l,sfsi_twitter_aboutPageText:S,sfsi_google_page:u,sfsi_googleLike_option:f,sfsi_google_pageURL:d,sfsi_plus_googleShare_option:m,sfsi_youtube_page:I,sfsi_youtube_pageUrl:F,sfsi_youtube_follow:h,sfsi_plus_youtubeusernameorid:v,sfsi_plus_ytube_user:g,sfsi_plus_ytube_chnlid:k,sfsi_pinterest_page:y,sfsi_pinterest_pageUrl:b,sfsi_plus_instagram_pageUrl:x,sfsi_pinterest_pingBlog:w,sfsi_linkedin_page:C,sfsi_linkedin_pageURL:D,sfsi_linkedin_follow:U,sfsi_linkedin_followCompany:j,sfsi_linkedin_SharePage:O,sfsi_plus_linkedin_recommendBusines:T,sfsi_linkedin_recommendCompany:M,sfsi_linkedin_recommendProductId:P,sfsi_plus_custom_links:L};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:B,async:!0,dataType:"json",success:function(s){"success"==s?(sfsiplus_showErrorSuc("success","Saved !",2),sfsipluscollapse("#sfsi_save2"),sfsi_plus_depened_sections()):(global_error=1,sfsiplus_showErrorSuc("error","Unkown error , please try again",2),return_value=!1),sfsiplus_afterLoad()}})}function sfsi_plus_update_step3(){var s=sfsi_plus_validationStep3();if(!s)return global_error=1,!1;sfsiplus_beForeLoad();var i=SFSI("input[name='sfsi_plus_actvite_theme']:checked").val(),e=SFSI("input[name='sfsi_mouseOver']:checked").val(),t=SFSI("input[name='sfsi_plus_shuffle_icons']:checked").val(),n=SFSI("input[name='sfsi_plus_shuffle_Firstload']:checked").val(),o=SFSI("#sfsi_mouseOver_effect option:selected").val(),a=SFSI("input[name='sfsi_plus_shuffle_interval']:checked").val(),c=SFSI("input[name='sfsi_plus_shuffle_intervalTime']").val(),r=SFSI("input[name='sfsi_plus_specialIcon_animation']:checked").val(),p=SFSI("input[name='sfsi_plus_specialIcon_MouseOver']:checked").val(),_=SFSI("input[name='sfsi_plus_specialIcon_Firstload']:checked").val(),l=SFSI("#sfsi_plus_specialIcon_Firstload_Icons option:selected").val(),S=SFSI("input[name='sfsi_plus_specialIcon_interval']:checked").val(),u=SFSI("input[name='sfsi_plus_specialIcon_intervalTime']").val(),f=SFSI("#sfsi_plus_specialIcon_intervalIcons option:selected").val(),d={action:"updateSrcn3",sfsi_plus_actvite_theme:i,sfsi_mouseOver:e,sfsi_plus_shuffle_icons:t,sfsi_plus_shuffle_Firstload:n,sfsi_mouseOver_effect:o,sfsi_plus_shuffle_interval:a,sfsi_plus_shuffle_intervalTime:c,sfsi_plus_specialIcon_animation:r,sfsi_plus_specialIcon_MouseOver:p,sfsi_plus_specialIcon_Firstload:_,sfsi_plus_specialIcon_Firstload_Icons:l,sfsi_plus_specialIcon_interval:S,sfsi_plus_specialIcon_intervalTime:u,sfsi_plus_specialIcon_intervalIcons:f};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:d,async:!0,dataType:"json",success:function(s){"success"==s?(sfsiplus_showErrorSuc("success","Saved !",3),sfsipluscollapse("#sfsi_save3")):(sfsiplus_showErrorSuc("error","Unkown error , please try again",3),return_value=!1),sfsiplus_afterLoad()}})}function sfsi_plus_show_counts(){"yes"==SFSI("input[name='sfsi_display_counts']:checked").val()?(SFSI(".count_sections").slideDown(),sfsi_plus_showPreviewCounts()):(SFSI(".count_sections").slideUp(),sfsi_plus_showPreviewCounts())}function sfsi_plus_showPreviewCounts(){var s=0;1==SFSI("input[name='sfsi_rss_countsDisplay']").prop("checked")?(SFSI("#sfsi_rss_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_rss_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_email_countsDisplay']").prop("checked")?(SFSI("#sfsi_email_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_email_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_plus_facebook_countsDisplay']").prop("checked")?(SFSI("#sfsi_plus_facebook_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_facebook_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_twitter_countsDisplay']").prop("checked")?(SFSI("#sfsi_twitter_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_twitter_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_google_countsDisplay']").prop("checked")?(SFSI("#sfsi_google_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_google_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("checked")?(SFSI("#sfsi_linkedIn_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_linkedIn_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_plus_youtube_countsDisplay']").prop("checked")?(SFSI("#sfsi_plus_youtube_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_youtube_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_plus_pinterest_countsDisplay']").prop("checked")?(SFSI("#sfsi_pinterest_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_pinterest_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_plus_shares_countsDisplay']").prop("checked")?(SFSI("#sfsi_plus_shares_countsDisplay").css("opacity",1),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),s=1):SFSI("#sfsi_plus_instagram_countsDisplay").css("opacity",0),0==s||"no"==SFSI("input[name='sfsi_display_counts']:checked").val()?SFSI(".sfsi_Cdisplay").hide():SFSI(".sfsi_Cdisplay").show()}function sfsi_plus_show_OnpostsDisplay(){"yes"==SFSI("input[name='sfsi_plus_show_Onposts']:checked").val()?SFSI(".sfsiplus_PostsSettings_section").slideDown():SFSI(".sfsiplus_PostsSettings_section").slideUp()}function sfsi_plus_update_step4(){var s=!1,i=sfsi_plus_validationStep4();if(!i)return global_error=1,!1;sfsiplus_beForeLoad();var e=SFSI("input[name='sfsi_display_counts']:checked").val(),t=1==SFSI("input[name='sfsi_email_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_email_countsDisplay']:checked").val(),n=1==SFSI("input[name='sfsi_email_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_email_countsFrom']:checked").val(),o=SFSI("input[name='sfsi_plus_email_manualCounts']").val(),a=SFSI("input[name='sfsi_plus_google_api_key']").val(),c=1==SFSI("input[name='sfsi_rss_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_rss_countsDisplay']:checked").val(),r=SFSI("input[name='sfsi_plus_rss_manualCounts']").val(),p=1==SFSI("input[name='sfsi_facebook_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_facebook_countsDisplay']:checked").val(),_=1==SFSI("input[name='sfsi_facebook_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_facebook_countsFrom']:checked").val(),l=SFSI("input[name='sfsi_facebook_manualCounts']").val(),S=1==SFSI("input[name='sfsi_twitter_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_twitter_countsDisplay']:checked").val(),u=1==SFSI("input[name='sfsi_twitter_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_twitter_countsFrom']:checked").val(),f=SFSI("input[name='sfsi_twitter_manualCounts']").val(),d=SFSI("input[name='sfsiplus_tw_consumer_key']").val(),m=SFSI("input[name='sfsiplus_tw_consumer_secret']").val(),I=SFSI("input[name='sfsiplus_tw_oauth_access_token']").val(),F=SFSI("input[name='sfsiplus_tw_oauth_access_token_secret']").val(),h=1==SFSI("input[name='sfsi_google_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_google_countsDisplay']:checked").val(),v=1==SFSI("input[name='sfsi_google_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_google_countsFrom']:checked").val(),g=SFSI("input[name='sfsi_google_manualCounts']").val(),k=1==SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(),y=SFSI("input[name='sfsi_linkedIn_manualCounts']").val(),b=SFSI("input[name='sfsi_plus_ln_company']").val(),w=SFSI("input[name='ln_api_key']").val(),x=SFSI("input[name='sfsi_plus_ln_secret_key']").val(),C=SFSI("input[name='ln_oAuth_user_token']").val(),D=1==SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_linkedIn_countsDisplay']:checked").val(),k=1==SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(),y=SFSI("input[name='sfsi_linkedIn_manualCounts']").val(),U=1==SFSI("input[name='sfsi_youtube_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_youtube_countsDisplay']:checked").val(),j=1==SFSI("input[name='sfsi_youtube_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_youtube_countsFrom']:checked").val(),O=SFSI("input[name='sfsi_youtube_manualCounts']").val(),T=SFSI("input[name='sfsi_youtube_user']").val(),P=1==SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_pinterest_countsDisplay']:checked").val(),M=1==SFSI("input[name='sfsi_pinterest_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_pinterest_countsFrom']:checked").val(),L=SFSI("input[name='sfsi_plus_pinterest_manualCounts']").val(),B=SFSI("input[name='sfsi_plus_pinterest_user']").val(),E=SFSI("input[name='sfsi_plus_pinterest_board']").val(),z=1==SFSI("input[name='sfsi_plus_instagram_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_plus_instagram_countsDisplay']:checked").val(),A=1==SFSI("input[name='sfsi_plus_instagram_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_plus_instagram_countsFrom']:checked").val(),N=SFSI("input[name='sfsi_plus_instagram_manualCounts']").val(),H=SFSI("input[name='sfsi_plus_instagram_User']").val(),R=1==SFSI("input[name='sfsi_plus_shares_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_plus_shares_countsDisplay']:checked").val(),Q=1==SFSI("input[name='sfsi_plus_shares_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_plus_shares_countsFrom']:checked").val(),W=SFSI("input[name='sfsi_plus_shares_manualCounts']").val(),q={action:"updateSrcn4",sfsi_display_counts:e,sfsi_email_countsDisplay:t,sfsi_email_countsFrom:n,sfsi_email_manualCounts:o,sfsi_rss_countsDisplay:c,sfsi_rss_manualCounts:r,sfsi_facebook_countsDisplay:p,sfsi_facebook_countsFrom:_,sfsi_facebook_manualCounts:l,sfsi_twitter_countsDisplay:S,sfsi_twitter_countsFrom:u,sfsi_twitter_manualCounts:f,sfsiplus_tw_consumer_key:d,sfsiplus_tw_consumer_secret:m,sfsiplus_tw_oauth_access_token:I,sfsiplus_tw_oauth_access_token_secret:F,sfsi_google_countsDisplay:h,sfsi_google_countsFrom:v,sfsi_google_manualCounts:g,sfsi_google_api_key:a,sfsi_linkedIn_countsDisplay:D,sfsi_linkedIn_countsFrom:k,sfsi_linkedIn_manualCounts:y,ln_company:b,ln_api_key:w,sfsi_plus_ln_secret_key:x,ln_oAuth_user_token:C,sfsi_youtube_countsDisplay:U,sfsi_youtube_countsFrom:j,sfsi_youtube_manualCounts:O,sfsi_youtube_user:T,sfsi_pinterest_countsDisplay:P,sfsi_pinterest_countsFrom:M,sfsi_plus_pinterest_manualCounts:L,sfsi_plus_pinterest_user:B,sfsi_plus_pinterest_board:E,sfsi_plus_instagram_countsDisplay:z,sfsi_plus_instagram_countsFrom:A,sfsi_plus_instagram_manualCounts:N,sfsi_plus_instagram_User:H,sfsi_plus_shares_countsDisplay:R,sfsi_plus_shares_countsFrom:Q,sfsi_plus_shares_manualCounts:W};return SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:q,dataType:"json",async:!0,success:function(s){"success"==s.res?(sfsiplus_showErrorSuc("success","Saved !",4),sfsipluscollapse("#sfsi_save4"),sfsi_plus_showPreviewCounts()):(sfsiplus_showErrorSuc("error","Unkown error , please try again",4),global_error=1),sfsiplus_afterLoad()}}),s}function sfsi_plus_update_step5(){var s=sfsi_plus_validationStep5();if(!s)return global_error=1,!1;sfsiplus_beForeLoad();var i=SFSI("input[name='sfsi_plus_icons_size']").val(),e=SFSI("input[name='sfsi_plus_icons_perRow']").val(),t=SFSI("input[name='sfsi_plus_icons_spacing']").val(),n=SFSI("#sfsi_plus_icons_Alignment").val(),o=SFSI("input[name='sfsi_plus_icons_ClickPageOpen']:checked").val(),a=SFSI("input[name='sfsi_plus_icons_float']:checked").val(),c=SFSI("input[name='sfsi_plus_disable_floaticons']:checked").val(),r=SFSI("#sfsi_plus_icons_floatPosition").val(),p=SFSI("input[name='sfsi_plus_icons_stick']:checked").val(),_=SFSI("#sfsi_plus_rssIcon_order").attr("data-index"),l=SFSI("#sfsi_plus_emailIcon_order").attr("data-index"),S=SFSI("#sfsi_plus_googleIcon_order").attr("data-index"),u=SFSI("#sfsi_plus_facebookIcon_order").attr("data-index"),f=SFSI("#sfsi_plus_twitterIcon_order").attr("data-index"),d=SFSI("#sfsi_plus_youtubeIcon_order").attr("data-index"),m=SFSI("#sfsi_plus_pinterestIcon_order").attr("data-index"),I=SFSI("#sfsi_plus_instagramIcon_order").attr("data-index"),F=SFSI("#sfsi_plus_shareIcon_order").attr("data-index"),h=SFSI("#sfsi_plus_linkedinIcon_order").attr("data-index"),v=new Array;SFSI(".sfsiplus_custom_iconOrder").each(function(){v.push({order:SFSI(this).attr("data-index"),ele:SFSI(this).attr("element-id")})});var g=1==SFSI("input[name='sfsi_plus_rss_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_rss_MouseOverText']").val(),k=1==SFSI("input[name='sfsi_plus_email_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_email_MouseOverText']").val(),y=1==SFSI("input[name='sfsi_plus_twitter_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_twitter_MouseOverText']").val(),b=1==SFSI("input[name='sfsi_plus_facebook_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_facebook_MouseOverText']").val(),w=1==SFSI("input[name='sfsi_plus_google_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_google_MouseOverText']").val(),x=1==SFSI("input[name='sfsi_plus_linkedIn_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_linkedIn_MouseOverText']").val(),C=1==SFSI("input[name='sfsi_plus_youtube_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_youtube_MouseOverText']").val(),D=1==SFSI("input[name='sfsi_plus_pinterest_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_pinterest_MouseOverText']").val(),U=1==SFSI("input[name='sfsi_plus_instagram_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_instagram_MouseOverText']").val(),j=1==SFSI("input[name='sfsi_plus_share_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_share_MouseOverText']").val(),O={};SFSI("input[name='sfsi_plus_custom_MouseOverTexts[]']").each(function(){O[SFSI(this).attr("file-id")]=this.value});var T={action:"updateSrcn5",sfsi_plus_icons_size:i,sfsi_plus_icons_Alignment:n,sfsi_plus_icons_perRow:e,sfsi_plus_icons_spacing:t,sfsi_plus_icons_ClickPageOpen:o,sfsi_plus_icons_float:a,sfsi_plus_disable_floaticons:c,sfsi_plus_icons_floatPosition:r,sfsi_plus_icons_stick:p,sfsi_plus_rss_MouseOverText:g,sfsi_plus_email_MouseOverText:k,sfsi_plus_twitter_MouseOverText:y,sfsi_plus_facebook_MouseOverText:b,sfsi_plus_google_MouseOverText:w,sfsi_plus_youtube_MouseOverText:C,sfsi_plus_linkedIn_MouseOverText:x,sfsi_plus_pinterest_MouseOverText:D,sfsi_plus_share_MouseOverText:j,sfsi_plus_instagram_MouseOverText:U,sfsi_plus_custom_MouseOverTexts:O,sfsi_plus_rssIcon_order:_,sfsi_plus_emailIcon_order:l,sfsi_plus_facebookIcon_order:u,sfsi_plus_twitterIcon_order:f,sfsi_plus_googleIcon_order:S,sfsi_plus_youtubeIcon_order:d,sfsi_plus_pinterestIcon_order:m,sfsi_plus_shareIcon_order:F,sfsi_plus_instagramIcon_order:I,sfsi_plus_linkedinIcon_order:h,sfsi_plus_custom_orders:v};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:T,dataType:"json",async:!0,success:function(s){"success"==s?(sfsiplus_showErrorSuc("success","Saved !",5),sfsipluscollapse("#sfsi_save5")):(global_error=1,sfsiplus_showErrorSuc("error","Unkown error , please try again",5)),sfsiplus_afterLoad()}})}function sfsi_plus_update_step6(){sfsiplus_beForeLoad();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={action:"updateSrcn6",sfsi_plus_show_Onposts:s,sfsi_plus_icons_DisplayCounts:t,sfsi_plus_icons_alignment:e,sfsi_plus_textBefor_icons:i};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:n,dataType:"json",async:!0,success:function(s){"success"==s?(sfsiplus_showErrorSuc("success","Saved !",6),sfsipluscollapse("#sfsi_save6")):(global_error=1,sfsiplus_showErrorSuc("error","Unkown error , please try again",6)),sfsiplus_afterLoad()}})}function sfsi_plus_update_step7(){var s=sfsi_plus_validationStep7();if(!s)return global_error=1,!1;sfsiplus_beForeLoad();var i=SFSI("input[name='sfsi_plus_popup_text']").val(),e=SFSI("#sfsi_plus_popup_font option:selected").val(),t=(SFSI("#sfsi_plus_popup_fontStyle option:selected").val(),SFSI("input[name='sfsi_plus_popup_fontColor']").val()),n=SFSI("input[name='sfsi_plus_popup_fontSize']").val(),o=SFSI("input[name='sfsi_plus_popup_background_color']").val(),a=SFSI("input[name='sfsi_plus_popup_border_color']").val(),c=SFSI("input[name='sfsi_plus_popup_border_thickness']").val(),r=SFSI("input[name='sfsi_plus_popup_border_shadow']:checked").val(),p=SFSI("input[name='sfsi_plus_Show_popupOn']:checked").val(),_=[];SFSI("#sfsi_plus_Show_popupOn_PageIDs :selected").each(function(s,i){_[s]=SFSI(i).val()});var l=SFSI("input[name='sfsi_plus_Shown_pop']:checked").val(),S=SFSI("input[name='sfsi_plus_Shown_popupOnceTime']").val(),u=SFSI("#sfsi_plus_Shown_popuplimitPerUserTime").val(),f={action:"updateSrcn7",sfsi_plus_popup_text:i,sfsi_plus_popup_font:e,sfsi_plus_popup_fontColor:t,sfsi_plus_popup_fontSize:n,sfsi_plus_popup_background_color:o,sfsi_plus_popup_border_color:a,sfsi_plus_popup_border_thickness:c,sfsi_plus_popup_border_shadow:r,sfsi_plus_Show_popupOn:p,sfsi_plus_Show_popupOn_PageIDs:_,sfsi_plus_Shown_pop:l,sfsi_plus_Shown_popupOnceTime:S,sfsi_plus_Shown_popuplimitPerUserTime:u};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:f,dataType:"json",async:!0,success:function(s){"success"==s?(sfsiplus_showErrorSuc("success","Saved !",7),sfsipluscollapse("#sfsi_save7")):sfsiplus_showErrorSuc("error","Unkown error , please try again",7),sfsiplus_afterLoad()}})}function sfsiplus_afterIconSuccess(s){if(s.res="success"){var i=s.key+1,e=s.element,t=e+1;SFSI("#total_cusotm_icons").val(s.element),SFSI(".upload-overlay").hide("slow"),SFSI(".uperror").html(""),sfsiplus_showErrorSuc("success","Custom Icon updated successfully",1),d=new Date,SFSI("input[name=sfsiICON_"+s.key+"]").removeAttr("ele-type"),SFSI("input[name=sfsiICON_"+s.key+"]").removeAttr("isnew"),SFSI("li.custom:last").removeClass("bdr_btm_non"),SFSI("li.custom:last").children("span.custom-img").children("img").attr("src",s.img_path+"?"+d.getTime()),icons_name=SFSI("li.custom:last").find("input.styled").attr("name");var n=icons_name.split("_");s.key=n[1],s.img_path+="?"+d.getTime(),5>e&&SFSI(".icn_listing").append('<li id="c'+i+'" class="custom bdr_btm_non"><div class="radio_section tb_4_ck"><span class="checkbox" dynamic_ele="yes" style="background-position: 0px 0px;"></span><input name="sfsiICON_'+i+'" type="checkbox" value="yes" class="styled" style="display:none;" element-type="cusotm-icon" isNew="yes" /></div> <span class="custom-img"><img src="'+SFSI("#plugin_url").val()+'images/custom.png" id="CImg_'+i+'" /> </span> <span class="custom sfsiplus_custom-txt">Custom'+t+' </span> <div class="sfsiplus_right_info"> <p><span>It depends:</span> Upload a custom icon if you have other accounts/websites you want to link to.</p><div class="inputWrapper"></div></li>'),SFSI(".sfsiplus_custom_section").show(),SFSI(".custom-links").append(' <div class="row sfsiICON_'+s.key+' cm_lnk"> <h2 class="custom"> <span class="customstep2-img"> <img src="'+s.img_path+"?"+d.getTime()+'" style="border-radius:48%" /> </span> <span class="sfsiCtxt">Custom '+e+'</span> </h2> <div class="inr_cont "><p>Where do you want this icon to link to?</p> <p class="radio_section fb_url sfsiplus_custom_section sfsiICON_'+s.key+'" ><label>Link :</label><input file-id="'+s.key+'" name="sfsi_plus_CustomIcon_links[]" type="text" value="" placeholder="http://" class="add" /></p></div></div>');var o=SFSI("div.custom_m").find("div.mouseover_field").length;SFSI("div.custom_m").append(0==o%2?'<div class="clear"> </div> <div class="mouseover_field sfsiplus_custom_section sfsiICON_'+s.key+'"><label>Custom '+e+':</label><input name="sfsi_plus_custom_MouseOverTexts[]" value="" type="text" file-id="'+s.key+'" /></div>':'<div class="cHover " ><div class="mouseover_field sfsiplus_custom_section sfsiICON_'+s.key+'"><label>Custom '+e+':</label><input name="sfsi_plus_custom_MouseOverTexts[]" value="" type="text" file-id="'+s.key+'" /></div>'),SFSI("ul.share_icon_order").append('<li class="sfsiplus_custom_iconOrder sfsiICON_'+s.key+'" data-index="" element-id="'+s.key+'" id=""><a href="#" title="Custom Icon" ><img src="'+s.img_path+'" alt="Linked In" class="sfcm"/></a></li>'),SFSI("ul.sfsi_sample_icons").append('<li class="sfsiICON_'+s.key+'" element-id="'+s.key+'" ><div><img src="'+s.img_path+'" alt="Linked In" class="sfcm"/><span class="sfsi_Cdisplay">12k</span></div></li>'),sfsi_plus_update_index(),plus_update_Sec5Iconorder(),sfsi_plus_update_step1(),sfsi_plus_update_step2(),sfsi_plus_update_step5(),SFSI(".upload-overlay").css("pointer-events","auto"),sfsi_plus_showPreviewCounts(),sfsiplus_afterLoad()
2
- }}function sfsiplus_beforeIconSubmit(s){if(SFSI(".uperror").html("Uploading....."),window.File&&window.FileReader&&window.FileList&&window.Blob){SFSI(s).val()||SFSI(".uperror").html("File is empty");var i=s.files[0].size,e=s.files[0].type;switch(e){case"image/png":case"image/gif":case"image/jpeg":case"image/pjpeg":break;default:return SFSI(".uperror").html("Unsupported file"),!1}return i>1048576?(SFSI(".uperror").html("Image should be less than 1 MB"),!1):!0}return!0}function sfsiplus_bytesToSize(s){var i=["Bytes","KB","MB","GB","TB"];if(0==s)return"0 Bytes";var e=parseInt(Math.floor(Math.log(s)/Math.log(1024)));return Math.round(s/Math.pow(1024,e),2)+" "+i[e]}function sfsiplus_showErrorSuc(s,i,e){if("error"==s)var t="errorMsg";else var t="sucMsg";return SFSI(".tab"+e+">."+t).html(i),SFSI(".tab"+e+">."+t).show(),SFSI(".tab"+e+">."+t).effect("highlight",{},5e3),setTimeout(function(){SFSI("."+t).slideUp("slow")},5e3),!1}function sfsiplus_beForeLoad(){SFSI(".loader-img").show(),SFSI(".save_button >a").html("Saving..."),SFSI(".save_button >a").css("pointer-events","none")}function sfsiplus_afterLoad(){SFSI("input").removeClass("inputError"),SFSI(".save_button >a").html("Save"),SFSI(".tab8>div.save_button >a").html("Save All Settings"),SFSI(".save_button >a").css("pointer-events","auto"),SFSI(".save_button >a").removeAttr("onclick"),SFSI(".loader-img").hide()}function sfsi_plus_make_popBox(){var s=0;SFSI(".sfsi_sample_icons >li").each(function(){"none"!=SFSI(this).css("display")&&(s=1)}),0==s?SFSI(".sfsi_plus_Popinner").hide():SFSI(".sfsi_plus_Popinner").show(),""!=SFSI('input[name="sfsi_plus_popup_text"]').val()?(SFSI(".sfsi_plus_Popinner >h2").html(SFSI('input[name="sfsi_plus_popup_text"]').val()),SFSI(".sfsi_plus_Popinner >h2").show()):SFSI(".sfsi_plus_Popinner >h2").hide(),SFSI(".sfsi_plus_Popinner").css({"border-color":SFSI('input[name="sfsi_plus_popup_border_color"]').val(),"border-width":SFSI('input[name="sfsi_plus_popup_border_thickness"]').val(),"border-style":"solid"}),SFSI(".sfsi_plus_Popinner").css("background-color",SFSI('input[name="sfsi_plus_popup_background_color"]').val()),SFSI(".sfsi_plus_Popinner h2").css("font-family",SFSI("#sfsi_plus_popup_font").val()),SFSI(".sfsi_plus_Popinner h2").css("font-style",SFSI("#sfsi_plus_popup_fontStyle").val()),SFSI(".sfsi_plus_Popinner >h2").css("font-size",parseInt(SFSI('input[name="sfsi_plus_popup_fontSize"]').val())),SFSI(".sfsi_plus_Popinner >h2").css("color",SFSI('input[name="sfsi_plus_popup_fontColor"]').val()+" !important"),"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")}function sfsi_plus_stick_widget(s){0==sfsiplus_initTop.length&&(SFSI(".sfsi_plus_widget").each(function(s){sfsiplus_initTop[s]=SFSI(this).position().top}),console.log(sfsiplus_initTop));var i=SFSI(window).scrollTop(),e=[],t=[];SFSI(".sfsi_plus_widget").each(function(s){e[s]=SFSI(this).position().top,t[s]=SFSI(this)});var n=!1;for(var o in e){var a=parseInt(o)+1;e[o]<i&&e[a]>i&&a<e.length?(SFSI(t[o]).css({position:"fixed",top:s}),SFSI(t[a]).css({position:"",top:sfsiplus_initTop[a]}),n=!0):SFSI(t[o]).css({position:"",top:sfsiplus_initTop[o]})}if(!n){var c=e.length-1,r=-1;e.length>1&&(r=e.length-2),sfsiplus_initTop[c]<i?(SFSI(t[c]).css({position:"fixed",top:s}),r>=0&&SFSI(t[r]).css({position:"",top:sfsiplus_initTop[r]})):(SFSI(t[c]).css({position:"",top:sfsiplus_initTop[c]}),r>=0&&e[r]<i)}}function sfsi_plus_float_widget(s){function i(){c="Microsoft Internet Explorer"===navigator.appName?a-document.documentElement.scrollTop:a-window.pageYOffset,Math.abs(c)>0?(window.removeEventListener("scroll",i),a-=c*o,SFSI("#sfsi_plus_floater").css({top:(a+t).toString()+"px"}),setTimeout(i,n)):window.addEventListener("scroll",i,!1)}function e(){var s=SFSI("#sfsi_plus_floater").attr("data-top"),e=parseInt(SFSI("#sfsi_plus_floater").height()),t=parseInt(SFSI("#sfsi_plus_floater").css("top"));parseInt(e)+parseInt(t)<=s?window.addEventListener("scroll",i,!1):(window.removeEventListener("scroll",i),SFSI("#sfsi_plus_floater").css("top",s+"px"))}if("center"==s)var t=window.innerHeight/2;else if("bottom"==s)var t=window.innerHeight-SFSI("#sfsi_plus_floater").height();else var t=parseInt(s);var n=50,o=.1,a=0,c=0;SFSI("#sfsi_plus_floater"),window.onscroll=e}function sfsi_plus_shuffle(){var s=[];SFSI(".sfsi_plus_wicons ").each(function(i){SFSI(this).text().match(/^\s*$/)||(s[i]="<div class='"+SFSI(this).attr("class")+"'>"+SFSI(this).html()+"</div>",SFSI(this).fadeOut("slow"),SFSI(this).insertBefore(SFSI(this).prev(".sfsi_plus_wicons")),SFSI(this).fadeIn("slow"))}),s=sfsiplus_Shuffle(s),$("#sfsi_plus_wDiv").html("");for(var i=0;i<testArray.length;i++)$("#sfsi_plus_wDiv").append(s[i])}function sfsiplus_Shuffle(s){for(var i,e,t=s.length;t;i=parseInt(Math.random()*t),e=s[--t],s[t]=s[i],s[i]=e);return s}function sfsi_plus_setCookie(s,i,e){var t=new Date;t.setTime(t.getTime()+864e5*e);var n="expires="+t.toGMTString();document.cookie=s+"="+i+"; "+n}function sfsfi_plus_getCookie(s){for(var i=s+"=",e=document.cookie.split(";"),t=0;t<e.length;t++){var n=e[t].trim();if(0==n.indexOf(i))return n.substring(i.length,n.length)}return""}function sfsi_plus_hideFooter(){}function showhideutube(s){var i=SFSI(s).children("input").val();"name"==i?(SFSI(s).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideDown(),SFSI(s).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlidwpr").slideUp()):(SFSI(s).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlidwpr").slideDown(),SFSI(s).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideUp())}function sfsiplushidemepopup(){SFSI(".sfsi_plus_FrntInner").fadeOut()}jQuery(document).ready(function(){jQuery("#sfsi_plus_floater").attr("data-top",jQuery(document).height())}),window.onerror=function(){},SFSI=jQuery.noConflict(),SFSI(window).load(function(){SFSI("#sfpluspageLoad").fadeOut(2e3)});var global_error=0;SFSI(document).ready(function(s){function i(){SFSI(".uperror").html(""),sfsiplus_afterLoad();var s=SFSI('input[name="'+SFSI("#upload_id").val()+'"]');s.removeAttr("checked");var i=SFSI(s).parent().find("span:first");return SFSI(i).css("background-position","0px 0px"),SFSI(".upload-overlay").hide("slow"),!1}SFSI(".sfsiplus_tab_3_icns").on("click",".cstomskins_upload",function(){SFSI(".cstmskins-overlay").show("slow",function(){e=0})}),SFSI("#custmskin_clspop").live("click",function(){SFSI_plus_done(),SFSI(".cstmskins-overlay").hide("slow")}),SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'),SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'),SFSI("head").append('<meta http-equiv="Expires" content="0" />'),SFSI("#accordion").accordion({collapsible:!0,active:!1,heightStyle:"content",event:"click",beforeActivate:function(s,i){if(i.newHeader[0])var e=i.newHeader,t=e.next(".ui-accordion-content");else var e=i.oldHeader,t=e.next(".ui-accordion-content");var n="true"==e.attr("aria-selected");return e.toggleClass("ui-corner-all",n).toggleClass("accordion-header-active ui-state-active ui-corner-top",!n).attr("aria-selected",(!n).toString()),e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e",n).toggleClass("ui-icon-triangle-1-s",!n),t.toggleClass("accordion-content-active",!n),n?t.slideUp():t.slideDown(),!1}}),SFSI("#accordion1").accordion({collapsible:!0,active:!1,heightStyle:"content",event:"click",beforeActivate:function(s,i){if(i.newHeader[0])var e=i.newHeader,t=e.next(".ui-accordion-content");else var e=i.oldHeader,t=e.next(".ui-accordion-content");var n="true"==e.attr("aria-selected");return e.toggleClass("ui-corner-all",n).toggleClass("accordion-header-active ui-state-active ui-corner-top",!n).attr("aria-selected",(!n).toString()),e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e",n).toggleClass("ui-icon-triangle-1-s",!n),t.toggleClass("accordion-content-active",!n),n?t.slideUp():t.slideDown(),!1}}),SFSI(".closeSec").on("click",function(){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();i.toggleClass("ui-corner-all",s).toggleClass("accordion-header-active ui-state-active ui-corner-top",!s).attr("aria-selected",(!s).toString()),i.children(".ui-icon").toggleClass("ui-icon-triangle-1-e",s).toggleClass("ui-icon-triangle-1-s",!s),e.toggleClass("accordion-content-active",!s),s?e.slideUp():e.slideDown()}),SFSI(document).click(function(s){var i=SFSI(".sfsi_plus_FrntInner"),e=SFSI(".sfsi_plus_wDiv"),t=SFSI("#at15s");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()}),SFSI(".sfsi_plus_outr_div").find(".addthis_button").mousemove(function(){var s=SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().top+10;SFSI("#at15s").css({top:s+"px",left:SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().left+"px"})}),SFSI("#sfsifontCloroPicker").ColorPicker({color:"#f80000",onBeforeShow:function(){s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_fontColor").val())},onShow:function(s){return SFSI(s).fadeIn(500),!1},onHide:function(s){return SFSI(s).fadeOut(500),sfsi_plus_make_popBox(),!1},onChange:function(s,i){SFSI("#sfsi_plus_popup_fontColor").val("#"+i),SFSI("#sfsifontCloroPicker").css("background","#"+i),sfsi_plus_make_popBox()},onClick:function(s,i){SFSI("#sfsi_plus_popup_fontColor").val("#"+i),SFSI("#sfsifontCloroPicker").css("background","#"+i),sfsi_plus_make_popBox()}}),SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function(){SFSI(this).attr("src",ajax_object.plugin_url+"images/visit_icons/linkedIn_hover.svg")}),SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function(){SFSI(this).attr("src",ajax_object.plugin_url+"images/visit_icons/linkedIn.svg")}),SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function(){SFSI(this).attr("src",ajax_object.plugin_url+"images/visit_icons/youtube_hover.svg")}),SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function(){SFSI(this).attr("src",ajax_object.plugin_url+"images/visit_icons/youtube.svg")}),SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function(){SFSI(this).css("opacity","0.9")}),SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseleave(function(){SFSI(this).css("opacity","1")}),SFSI("div#sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function(){SFSI(this).css("opacity","0.9")}),SFSI("div#sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function(){SFSI(this).css("opacity","1")}),SFSI("#sfsiBackgroundColorPicker").ColorPicker({color:"#f80000",onBeforeShow:function(){s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_background_color").val())},onShow:function(s){return SFSI(s).fadeIn(500),!1},onHide:function(s){return SFSI(s).fadeOut(500),!1},onChange:function(s,i){SFSI("#sfsi_plus_popup_background_color").val("#"+i),SFSI("#sfsiBackgroundColorPicker").css("background","#"+i),sfsi_plus_make_popBox()},onClick:function(s,i){SFSI("#sfsi_plus_popup_background_color").val("#"+i),SFSI("#sfsiBackgroundColorPicker").css("background","#"+i),sfsi_plus_make_popBox()}}),SFSI("#sfsiBorderColorPicker").ColorPicker({color:"#f80000",onBeforeShow:function(){s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_border_color").val())},onShow:function(s){return SFSI(s).fadeIn(500),!1},onHide:function(s){return SFSI(s).fadeOut(500),!1},onChange:function(s,i){SFSI("#sfsi_plus_popup_border_color").val("#"+i),SFSI("#sfsiBorderColorPicker").css("background","#"+i),sfsi_plus_make_popBox()},onClick:function(s,i){SFSI("#sfsi_plus_popup_border_color").val("#"+i),SFSI("#sfsiBorderColorPicker").css("background","#"+i),sfsi_plus_make_popBox()}}),SFSI("#sfsi_save1").on("click",function(){sfsi_plus_update_step1()&&sfsipluscollapse(this)}),SFSI("#sfsi_save2").on("click",function(){sfsi_plus_update_step2()&&sfsipluscollapse(this)}),SFSI("#sfsi_save3").on("click",function(){sfsi_plus_update_step3()&&sfsipluscollapse(this)}),SFSI("#sfsi_save4").on("click",function(){sfsi_plus_update_step4()&&sfsipluscollapse(this)}),SFSI("#sfsi_save5").on("click",function(){sfsi_plus_update_step5()&&sfsipluscollapse(this)}),SFSI("#sfsi_save6").on("click",function(){sfsi_plus_update_step6()&&sfsipluscollapse(this)}),SFSI("#sfsi_save7").on("click",function(){sfsi_plus_update_step7()&&sfsipluscollapse(this)}),SFSI("#save_all_settings").on("click",function(){return SFSI("#save_all_settings").text("Saving.."),SFSI(".save_button >a").css("pointer-events","none"),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),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),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),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),global_error=0,!1):(sfsi_plus_update_step5(),1==global_error?(sfsiplus_showErrorSuc("error",'Some Selection error in "Any other wishes for your main icons?" tab.',8),global_error=0,!1):(sfsi_plus_update_step6(),1==global_error?(sfsiplus_showErrorSuc("error",'Some Selection error in "Do you want to display icons at the end of every post?" tab.',8),global_error=0,!1):(sfsi_plus_update_step7(),1==global_error?(sfsiplus_showErrorSuc("error",'Some Selection error in "Do you want to display a pop-up, asking people to subscribe?" tab.',8),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))))))))}),SFSI(".fileUPInput").live("change",function(){sfsiplus_beForeLoad(),sfsiplus_beforeIconSubmit(this)&&(SFSI(".upload-overlay").css("pointer-events","none"),SFSI("#customIconFrm").ajaxForm({dataType:"json",success:sfsiplus_afterIconSuccess,resetForm:!0}).submit())}),SFSI(".pop-up").on("click",function(){("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(),SFSI("."+SFSI(this).attr("data-id")).css("opacity","1"),SFSI("."+SFSI(this).attr("data-id")).css("z-index","1000")),SFSI("."+SFSI(this).attr("data-id")).show("slow")}),SFSI("#close_popup").live("click",function(){SFSI(".read-overlay").hide("slow")});var e=0;SFSI(".icn_listing").on("click",".checkbox",function(){if(1==e)return!1;"yes"==SFSI(this).attr("dynamic_ele")&&(s=SFSI(this).parent().find("input:checkbox:first"),s.is(":checked")?SFSI(s).attr("checked",!1):SFSI(s).attr("checked",!0)),s=SFSI(this).parent().find("input:checkbox:first"),"yes"==SFSI(s).attr("isNew")&&("0px 0px"==SFSI(this).css("background-position")?(SFSI(s).attr("checked",!0),SFSI(this).css("background-position","0px -36px")):(SFSI(s).removeAttr("checked",!0),SFSI(this).css("background-position","0px 0px")));var s=SFSI(this).parent().find("input:checkbox:first");if(s.is(":checked")&&"cusotm-icon"==s.attr("element-type"))SFSI(".fileUPInput").attr("name","custom_icons[]"),SFSI(".upload-overlay").show("slow",function(){e=0}),SFSI("#upload_id").val(s.attr("name"));else if(!s.is(":checked")&&"cusotm-icon"==s.attr("element-type"))return s.attr("ele-type")?(SFSI(this).attr("checked",!0),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),SFSI(this).css("background-position","0px 0px"),e=0,!1):(e=0,!1):(s.attr("checked",!0),SFSI(this).css("background-position","0px -36px"),e=0,!1)}),SFSI(".icn_listing").on("click",".checkbox",function(){checked=SFSI(this).parent().find("input:checkbox:first"),"sfsi_email_display"!=checked.attr("name")||checked.is(":checked")||SFSI(".demail-1").show("slow")}),SFSI("#deac_email2").on("click",function(){SFSI(".demail-1").hide("slow"),SFSI(".demail-2").show("slow")}),SFSI("#deac_email3").on("click",function(){SFSI(".demail-2").hide("slow"),SFSI(".demail-3").show("slow")}),SFSI(".hideemailpop").on("click",function(){SFSI('input[name="sfsi_email_display"]').attr("checked",!0),SFSI('input[name="sfsi_email_display"]').parent().find("span:first").css("background-position","0px -36px"),SFSI(".demail-1").hide("slow"),SFSI(".demail-2").hide("slow"),SFSI(".demail-3").hide("slow")}),SFSI(".hidePop").on("click",function(){SFSI(".demail-1").hide("slow"),SFSI(".demail-2").hide("slow"),SFSI(".demail-3").hide("slow")}),SFSI(".activate_footer").on("click",function(){SFSI(this).text("activating....");var s={action:"activateFooter"};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:s,dataType:"json",success:function(s){"success"==s.res&&(SFSI(".demail-1").hide("slow"),SFSI(".demail-2").hide("slow"),SFSI(".demail-3").hide("slow"),SFSI(".activate_footer").text("Ok, activate link"))}})}),SFSI(".sfsi_removeFooter").on("click",function(){SFSI(this).text("working....");var s={action:"removeFooter"};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:s,dataType:"json",success:function(s){"success"==s.res&&(SFSI(".sfsi_removeFooter").fadeOut("slow"),SFSI(".sfsiplus_footerLnk").fadeOut("slow"))}})}),SFSI(".radio").live("click",function(){var s=SFSI(this).parent().find("input:radio:first");"sfsi_display_counts"==s.attr("name")&&sfsi_plus_show_counts()}),SFSI("#close_Uploadpopup").on("click",i),SFSI(".radio").live("click",function(){var s=SFSI(this).parent().find("input:radio:first");"sfsi_plus_show_Onposts"==s.attr("name")&&sfsi_plus_show_OnpostsDisplay()}),sfsi_plus_show_OnpostsDisplay(),sfsi_plus_depened_sections(),sfsi_plus_show_counts(),sfsi_plus_showPreviewCounts(),SFSI(".share_icon_order").sortable({update:function(){SFSI(".share_icon_order li").each(function(){SFSI(this).attr("data-index",SFSI(this).index()+1)})},revert:!0}),SFSI(".radio").live("click",function(){var s=SFSI(this).parent().find("input:radio:first");"sfsi_email_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_email_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_email_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_email_countsFrom']:checked").val()?SFSI("input[name='sfsi_email_manualCounts']").slideDown():SFSI("input[name='sfsi_email_manualCounts']").slideUp()),"sfsi_facebook_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_facebook_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_facebook_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_facebook_countsFrom']:checked").val()?SFSI("input[name='sfsi_facebook_manualCounts']").slideDown():SFSI("input[name='sfsi_facebook_manualCounts']").slideUp()),"sfsi_twitter_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_twitter_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_twitter_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_twitter_countsFrom']:checked").val()?(SFSI("input[name='sfsi_twitter_manualCounts']").slideDown(),SFSI(".tw_follow_options").slideUp()):(SFSI("input[name='sfsi_twitter_manualCounts']").slideUp(),SFSI(".tw_follow_options").slideDown())),"sfsi_google_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_google_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_google_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_google_countsFrom']:checked").val()&&(SFSI("input[name='sfsi_google_manualCounts']").slideDown(),SFSI(".google_option").slideUp()),"likes"==SFSI("input[name='sfsi_google_countsFrom']:checked").val()&&(SFSI("input[name='sfsi_google_manualCounts']").slideUp(),SFSI(".google_option").slideUp()),"follower"==SFSI("input[name='sfsi_google_countsFrom']:checked").val()&&(SFSI(".google_option").slideDown(),SFSI("input[name='sfsi_google_manualCounts']").slideUp())),"sfsi_linkedIn_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_linkedIn_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_linkedIn_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val()?(SFSI("input[name='sfsi_linkedIn_manualCounts']").slideDown(),SFSI(".linkedIn_options").slideUp()):(SFSI("input[name='sfsi_linkedIn_manualCounts']").slideUp(),SFSI(".linkedIn_options").slideDown())),"sfsi_youtube_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_youtube_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_youtube_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_youtube_countsFrom']:checked").val()?(SFSI("input[name='sfsi_youtube_manualCounts']").slideDown(),SFSI(".youtube_options").slideUp()):(SFSI("input[name='sfsi_youtube_manualCounts']").slideUp(),SFSI(".youtube_options").slideDown())),"sfsi_pinterest_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_pinterest_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_pinterest_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_pinterest_countsFrom']:checked").val()?(SFSI("input[name='sfsi_plus_pinterest_manualCounts']").slideDown(),SFSI(".pin_options").slideUp()):SFSI("input[name='sfsi_plus_pinterest_manualCounts']").slideUp()),"sfsi_plus_instagram_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_plus_instagram_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_plus_instagram_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_plus_instagram_countsFrom']:checked").val()?(SFSI("input[name='sfsi_plus_instagram_manualCounts']").slideDown(),SFSI(".instagram_userLi").slideUp()):(SFSI("input[name='sfsi_plus_instagram_manualCounts']").slideUp(),SFSI(".instagram_userLi").slideDown())),"sfsi_plus_shares_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_plus_shares_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_plus_shares_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_plus_shares_countsFrom']:checked").val()?SFSI("input[name='sfsi_plus_shares_manualCounts']").slideDown():SFSI("input[name='sfsi_plus_shares_manualCounts']").slideUp())}),sfsi_plus_make_popBox(),SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("keyup",sfsi_plus_make_popBox),SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("focus",sfsi_plus_make_popBox),SFSI("#sfsi_plus_popup_font ,#sfsi_plus_popup_fontStyle").on("change",sfsi_plus_make_popBox),SFSI(".radio").live("click",function(){var s=SFSI(this).parent().find("input:radio:first");"sfsi_plus_popup_border_shadow"==s.attr("name")&&sfsi_plus_make_popBox()}),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?SFSI("img.sfsi_wicon").on("click",function(s){s.stopPropagation();var i=SFSI("#sfsi_plus_floater_sec").val();SFSI("div.sfsi_plus_wicons").css("z-index","0"),SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide(),SFSI(this).parent().parent().parent().parent().siblings("li").length>0&&(SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index","0"),SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide()),SFSI(this).parent().parent().parent().css("z-index","1000000"),SFSI(this).parent().parent().css({"z-index":"999"}),SFSI(this).attr("effect")&&"fade_in"==SFSI(this).attr("effect")&&(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parent().css("opacity","1")),SFSI(this).attr("effect")&&"scale"==SFSI(this).attr("effect")&&(SFSI(this).parent().addClass("scale"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parent().css("opacity","1")),SFSI(this).attr("effect")&&"combo"==SFSI(this).attr("effect")&&(SFSI(this).parent().addClass("scale"),SFSI(this).parent().css("opacity","1"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10})),("top-left"==i||"top-right"==i)&&SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length>0&&"sfsi_plus_floater"==SFSI(this).parent().parent().parent().parent().attr("id")?(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()):(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":1e3}),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show())}):SFSI("img.sfsi_wicon").on("mouseenter",function(){var s=SFSI("#sfsi_plus_floater_sec").val();SFSI("div.sfsi_plus_wicons").css("z-index","0"),SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide(),SFSI(this).parent().parent().parent().parent().siblings("li").length>0&&(SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index","0"),SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide()),SFSI(this).parent().parent().parent().css("z-index","1000000"),SFSI(this).parent().parent().css({"z-index":"999"}),SFSI(this).attr("effect")&&"fade_in"==SFSI(this).attr("effect")&&(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parent().css("opacity","1")),SFSI(this).attr("effect")&&"scale"==SFSI(this).attr("effect")&&(SFSI(this).parent().addClass("scale"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parent().css("opacity","1")),SFSI(this).attr("effect")&&"combo"==SFSI(this).attr("effect")&&(SFSI(this).parent().addClass("scale"),SFSI(this).parent().css("opacity","1"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10})),("top-left"==s||"top-right"==s)&&SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length>0&&"sfsi_plus_floater"==SFSI(this).parent().parent().parent().parent().attr("id")?(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()):(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show())}),SFSI("div.sfsi_plus_wicons").on("mouseleave",function(){SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect")&&"fade_in"==SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect")&&SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity","0.6"),SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect")&&"scale"==SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect")&&SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale"),SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect")&&"combo"==SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect")&&(SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity","0.6"),SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale")),"google"==SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").attr("id")?SFSI("body").on("click",function(){SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide()}):(SFSI(this).css({"z-index":"0"}),SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide())}),SFSI("body").on("click",function(){SFSI(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide()}),SFSI(".adminTooltip >a").on("hover",function(){SFSI(this).offset().top,SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity","1"),SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show()}),SFSI(".adminTooltip").on("mouseleave",function(){"none"!=SFSI(".gpls_tool_bdr").css("display")&&0!=SFSI(".gpls_tool_bdr").css("opacity")?SFSI(".pop_up_box ").on("click",function(){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()}):(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())}),SFSI(".expand-area").on("click",function(){"Read more"==SFSI(this).text()?(SFSI(this).siblings("p").children("label").fadeIn("slow"),SFSI(this).text("Collapse")):(SFSI(this).siblings("p").children("label").fadeOut("slow"),SFSI(this).text("Read more"))}),SFSI(".radio").live("click",function(){var s=SFSI(this).parent().find("input:radio:first");"sfsi_plus_icons_float"==s.attr("name")&&"yes"==s.val()&&(SFSI(".float_options").slideDown("slow"),SFSI('input[name="sfsi_plus_icons_stick"][value="no"]').attr("checked",!0),SFSI('input[name="sfsi_plus_icons_stick"][value="yes"]').removeAttr("checked"),SFSI('input[name="sfsi_plus_icons_stick"][value="no"]').parent().find("span").attr("style","background-position:0px -41px;"),SFSI('input[name="sfsi_plus_icons_stick"][value="yes"]').parent().find("span").attr("style","background-position:0px -0px;")),("sfsi_plus_icons_stick"==s.attr("name")&&"yes"==s.val()||"sfsi_plus_icons_float"==s.attr("name")&&"no"==s.val())&&(SFSI(".float_options").slideUp("slow"),SFSI('input[name="sfsi_plus_icons_float"][value="no"]').prop("checked",!0),SFSI('input[name="sfsi_plus_icons_float"][value="yes"]').prop("checked",!1),SFSI('input[name="sfsi_plus_icons_float"][value="no"]').parent().find("span.radio").attr("style","background-position:0px -41px;"),SFSI('input[name="sfsi_plus_icons_float"][value="yes"]').parent().find("span.radio").attr("style","background-position:0px -0px;"))}),SFSI(".sfsi_plus_wDiv").length>0&&setTimeout(function(){var s=parseInt(SFSI(".sfsi_plus_wDiv").height())+15+"px";SFSI(".sfsi_plus_holders").each(function(){SFSI(this).css("height",s)})},200),SFSI(".checkbox").live("click",function(){var s=SFSI(this).parent().find("input:checkbox:first");("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"),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"),SFSI('input[name="sfsi_plus_shuffle_Firstload"]').parent().find("span").css("background-position","0px 0px"),SFSI('input[name="sfsi_plus_shuffle_interval"]').removeAttr("checked"),SFSI('input[name="sfsi_plus_shuffle_interval"]').parent().find("span").css("background-position","0px 0px"))})});var sfsiplus_initTop=new Array;
1
  function sfsi_plus_update_index(){var s=1;SFSI("ul.icn_listing li.custom").each(function(){SFSI(this).children("span.sfsiplus_custom-txt").html("Custom "+s),s++}),cntt=1,SFSI("div.cm_lnk").each(function(){SFSI(this).find("h2.custom").find("span.sfsiCtxt").html("Custom "+cntt+":"),cntt++}),cntt=1,SFSI("div.custom_m").find("div.sfsiplus_custom_section").each(function(){SFSI(this).find("label").html("Custom "+cntt+":"),cntt++})}function sfsipluscollapse(s){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();e.toggleClass("ui-corner-all",i).toggleClass("accordion-header-active ui-state-active ui-corner-top",!i).attr("aria-selected",(!i).toString()),e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e",i).toggleClass("ui-icon-triangle-1-s",!i),t.toggleClass("accordion-content-active",!i),i?t.slideUp():t.slideDown()}function sfsi_plus_delete_CusIcon(s,i){sfsiplus_beForeLoad();var e={action:"deleteIcons",icon_name:i.attr("name")};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:e,dataType:"json",success:function(e){if("success"==e.res){sfsiplus_showErrorSuc("success","Saved !",1);var t=e.last_index+1;SFSI("#total_cusotm_icons").val(e.total_up),SFSI(s).closest(".custom").remove(),SFSI("li.custom:last").addClass("bdr_btm_non"),SFSI(".custom-links").find("div."+i.attr("name")).remove(),SFSI(".custom_m").find("div."+i.attr("name")).remove(),SFSI(".share_icon_order").children("li."+i.attr("name")).remove(),SFSI("ul.sfsi_sample_icons").children("li."+i.attr("name")).remove();var n=e.total_up+1;4==e.total_up&&SFSI(".icn_listing").append('<li id="c'+t+'" class="custom bdr_btm_non"><div class="radio_section tb_4_ck"><span class="checkbox" dynamic_ele="yes" style="background-position: 0px 0px;"></span><input name="sfsiICON_'+t+'_display" type="checkbox" value="yes" class="styled" style="display:none;" element-type="cusotm-icon" isNew="yes" /></div> <span class="custom-img"><img src="'+SFSI("#plugin_url").val()+'images/custom.png" id="CImg_'+t+'" /> </span> <span class="custom sfsiplus_custom-txt">Custom'+n+' </span> <div class="sfsiplus_right_info"> <p><span>It depends:</span> Upload a custom icon if you have other accounts/websites you want to link to.</p><div class="inputWrapper"></div></li>')}else sfsiplus_showErrorSuc("error","Unkown error , please try again",1);return sfsi_plus_update_index(),plus_update_Sec5Iconorder(),sfsi_plus_update_step1(),sfsi_plus_update_step5(),sfsiplus_afterLoad(),"suc"}})}function plus_update_Sec5Iconorder(){SFSI("ul.share_icon_order").children("li").each(function(){SFSI(this).attr("data-index",SFSI(this).index()+1)})}function sfsi_plus_section_Display(s,i){"hide"==i?(SFSI("."+s+" :input").prop("disabled",!0),SFSI("."+s+" :button").prop("disabled",!0),SFSI("."+s).hide()):(SFSI("."+s+" :input").removeAttr("disabled",!0),SFSI("."+s+" :button").removeAttr("disabled",!0),SFSI("."+s).show())}function sfsi_plus_depened_sections(){if("sfsi"==SFSI("input[name='sfsi_rss_icons']:checked").val()){for(i=0;16>i;i++){var s=i+1,e=74*i;SFSI(".sfsiplus_row_"+s+"_2").css("background-position","-588px -"+e+"px")}var t=SFSI(".icon_img").attr("src"),n=t.replace("email.png","sf_asfsiplus_row_icn.png");SFSI(".icon_img").attr("src",n)}else{for(SFSI(".sfsiplus_row_1_2").css("background-position","-58px 0"),i=0;16>i;i++){var s=i+1,e=74*i;SFSI(".sfsiplus_row_"+s+"_2").css("background-position","-58px -"+e+"px")}var t=SFSI(".icon_img").attr("src");if(t){var n=t.replace("sf_asfsiplus_row_icn.png","email.png");SFSI(".icon_img").attr("src",n)}}SFSI("input[name='sfsi_rss_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_rss_section","show"):sfsi_plus_section_Display("sfsiplus_rss_section","hide"),SFSI("input[name='sfsi_email_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_email_section","show"):sfsi_plus_section_Display("sfsiplus_email_section","hide"),SFSI("input[name='sfsi_facebook_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_facebook_section","show"):sfsi_plus_section_Display("sfsiplus_facebook_section","hide"),SFSI("input[name='sfsi_twitter_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_twitter_section","show"):sfsi_plus_section_Display("sfsiplus_twitter_section","hide"),SFSI("input[name='sfsi_google_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_google_section","show"):sfsi_plus_section_Display("sfsiplus_google_section","hide"),SFSI("input[name='sfsi_share_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_share_section","show"):sfsi_plus_section_Display("sfsiplus_share_section","hide"),SFSI("input[name='sfsi_youtube_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_youtube_section","show"):sfsi_plus_section_Display("sfsiplus_youtube_section","hide"),SFSI("input[name='sfsi_pinterest_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_pinterest_section","show"):sfsi_plus_section_Display("sfsiplus_pinterest_section","hide"),SFSI("input[name='sfsi_instagram_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_instagram_section","show"):sfsi_plus_section_Display("sfsiplus_instagram_section","hide"),SFSI("input[name='sfsi_linkedin_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_linkedin_section","show"):sfsi_plus_section_Display("sfsiplus_linkedin_section","hide"),SFSI("input[element-type='cusotm-icon']").prop("checked")?sfsi_plus_section_Display("sfsiplus_custom_section","show"):sfsi_plus_section_Display("sfsiplus_custom_section","hide")}function PlusCustomIConSectionsUpdate(){sfsi_plus_section_Display("counter".ele,show)}function sfsi_customskin_upload(s,i){var e=(jQuery(i).attr("title"),s),t={action:"UploadSkins",custom_imgurl:e};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:t,success:function(e){if(e.res="success"){var t=s.split("=");jQuery(i).prev(".imgskin").attr("src",t[1]),jQuery(i).prev(".imgskin").css("display","block"),jQuery(i).text("Update"),jQuery(i).next(".dlt_btn").css("display","block")}}})}function sfsiplus_deleteskin_icon(s){var i=jQuery(s).attr("title"),e=i,t={action:"DeleteSkin",iconname:e};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:t,success:function(i){(i.res="success")&&(SFSI(s).prev("a").text("Upload"),SFSI(s).prev("a").prev("img").attr("src",""),SFSI(s).prev("a").prev("img").css("display","none"),SFSI(s).css("display","none"))}})}function SFSI_plus_done(){e={action:"Iamdone"},SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:e,success:function(s){jQuery("li.cstomskins_upload").children(".sfsiplus_icns_tab_3").html(s),SFSI("input[name='sfsi_rss_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_rss_section","show"):sfsi_plus_section_Display("sfsiplus_rss_section","hide"),SFSI("input[name='sfsi_email_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_email_section","show"):sfsi_plus_section_Display("sfsiplus_email_section","hide"),SFSI("input[name='sfsi_facebook_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_facebook_section","show"):sfsi_plus_section_Display("sfsiplus_facebook_section","hide"),SFSI("input[name='sfsi_twitter_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_twitter_section","show"):sfsi_plus_section_Display("sfsiplus_twitter_section","hide"),SFSI("input[name='sfsi_google_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_google_section","show"):sfsi_plus_section_Display("sfsiplus_google_section","hide"),SFSI("input[name='sfsi_share_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_share_section","show"):sfsi_plus_section_Display("sfsiplus_share_section","hide"),SFSI("input[name='sfsi_youtube_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_youtube_section","show"):sfsi_plus_section_Display("sfsiplus_youtube_section","hide"),SFSI("input[name='sfsi_pinterest_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_pinterest_section","show"):sfsi_plus_section_Display("sfsiplus_pinterest_section","hide"),SFSI("input[name='sfsi_instagram_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_instagram_section","show"):sfsi_plus_section_Display("sfsiplus_instagram_section","hide"),SFSI("input[name='sfsi_linkedin_display']").prop("checked")?sfsi_plus_section_Display("sfsiplus_linkedin_section","show"):sfsi_plus_section_Display("sfsiplus_linkedin_section","hide"),SFSI("input[element-type='cusotm-icon']").prop("checked")?sfsi_plus_section_Display("sfsiplus_custom_section","show"):sfsi_plus_section_Display("sfsiplus_custom_section","hide"),SFSI(".cstmskins-overlay").hide("slow"),sfsi_plus_update_step3()&&sfsipluscollapse(this)}})}function sfsi_newcustomicon_upload(s){var i=s,e={action:"UploadIcons",custom_imgurl:i};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:e,dataType:"json",async:!0,success:function(s){sfsiplus_afterIconSuccess(s)}})}function sfsi_plus_update_step1(){global_error=0,sfsiplus_beForeLoad(),sfsi_plus_depened_sections();var s=!1,i=SFSI("input[name='sfsi_rss_display']:checked").val(),e=SFSI("input[name='sfsi_email_display']:checked").val(),t=SFSI("input[name='sfsi_facebook_display']:checked").val(),n=SFSI("input[name='sfsi_twitter_display']:checked").val(),o=SFSI("input[name='sfsi_google_display']:checked").val(),a=SFSI("input[name='sfsi_share_display']:checked").val(),c=SFSI("input[name='sfsi_youtube_display']:checked").val(),r=SFSI("input[name='sfsi_pinterest_display']:checked").val(),p=SFSI("input[name='sfsi_linkedin_display']:checked").val(),_=SFSI("input[name='sfsi_instagram_display']:checked").val(),l=SFSI("input[name='sfsi_custom1_display']:checked").val(),S=SFSI("input[name='sfsi_custom2_display']:checked").val(),u=SFSI("input[name='sfsi_custom3_display']:checked").val(),f=SFSI("input[name='sfsi_custom4_display']:checked").val(),d=SFSI("input[name='sfsi_custom5_display']:checked").val(),m={action:"updateSrcn1",sfsi_rss_display:i,sfsi_email_display:e,sfsi_facebook_display:t,sfsi_twitter_display:n,sfsi_google_display:o,sfsi_share_display:a,sfsi_youtube_display:c,sfsi_pinterest_display:r,sfsi_linkedin_display:p,sfsi_instagram_display:_,sfsi_custom1_display:l,sfsi_custom2_display:S,sfsi_custom3_display:u,sfsi_custom4_display:f,sfsi_custom5_display:d};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:m,async:!0,dataType:"json",success:function(i){"success"==i?(sfsiplus_showErrorSuc("success","Saved !",1),sfsipluscollapse("#sfsi_save1"),sfsi_plus_make_popBox()):(global_error=1,sfsiplus_showErrorSuc("error","Unkown error , please try again",1),s=!1),sfsiplus_afterLoad()}})}function sfsi_plus_update_step2(){var s=sfsi_plus_validationStep2();if(!s)return global_error=1,!1;sfsiplus_beForeLoad();var i=1==SFSI("input[name='sfsi_rss_url']").prop("disabled")?"":SFSI("input[name='sfsi_rss_url']").val(),e=1==SFSI("input[name='sfsi_rss_icons']").prop("disabled")?"":SFSI("input[name='sfsi_rss_icons']:checked").val(),t=1==SFSI("input[name='sfsi_facebookPage_option']").prop("disabled")?"":SFSI("input[name='sfsi_facebookPage_option']:checked").val(),n=1==SFSI("input[name='sfsi_plus_facebookLike_option']").prop("disabled")?"":SFSI("input[name='sfsi_plus_facebookLike_option']:checked").val(),o=1==SFSI("input[name='sfsi_plus_facebookShare_option']").prop("disabled")?"":SFSI("input[name='sfsi_plus_facebookShare_option']:checked").val(),a=SFSI("input[name='sfsi_facebookPage_url']").val(),c=1==SFSI("input[name='sfsi_plus_twitter_followme']").prop("disabled")?"":SFSI("input[name='sfsi_plus_twitter_followme']:checked").val(),r=1==SFSI("input[name='sfsi_twitter_followUserName']").prop("disabled")?"":SFSI("input[name='sfsi_twitter_followUserName']").val(),p=1==SFSI("input[name='sfsi_plus_twitter_aboutPage']").prop("disabled")?"":SFSI("input[name='sfsi_twitter_aboutPage']:checked").val(),_=1==SFSI("input[name='sfsi_plus_twitter_page']").prop("disabled")?"":SFSI("input[name='sfsi_plus_twitter_page']:checked").val(),l=SFSI("input[name='sfsi_twitter_pageURL']").val(),S=SFSI("textarea[name='sfsi_twitter_aboutPageText']").val(),u=1==SFSI("input[name='sfsi_google_page']").prop("disabled")?"":SFSI("input[name='sfsi_google_page']:checked").val(),f=1==SFSI("input[name='sfsi_googleLike_option']").prop("disabled")?"":SFSI("input[name='sfsi_googleLike_option']:checked").val(),d=SFSI("input[name='sfsi_google_pageURL']").val(),m=1==SFSI("input[name='sfsi_plus_googleShare_option']").prop("disabled")?"":SFSI("input[name='sfsi_plus_googleShare_option']:checked").val(),I=1==SFSI("input[name='sfsi_youtube_page']").prop("disabled")?"":SFSI("input[name='sfsi_youtube_page']:checked").val(),F=1==SFSI("input[name='sfsi_plus_youtube_pageUrl']").prop("disabled")?"":SFSI("input[name='sfsi_youtube_pageUrl']").val(),h=1==SFSI("input[name='sfsi_youtube_follow']").prop("disabled")?"":SFSI("input[name='sfsi_youtube_follow']:checked").val(),v=SFSI("input[name='sfsi_plus_youtubeusernameorid']:checked").val(),g=SFSI("input[name='sfsi_plus_ytube_user']").val(),k=SFSI("input[name='sfsi_plus_ytube_chnlid']").val(),y=1==SFSI("input[name='sfsi_plus_pinterest_page']").prop("disabled")?"":SFSI("input[name='sfsi_plus_pinterest_page']:checked").val(),b=1==SFSI("input[name='sfsi_plus_pinterest_pageUrl']").prop("disabled")?"":SFSI("input[name='sfsi_plus_pinterest_pageUrl']").val(),w=1==SFSI("input[name='sfsi_pinterest_pingBlog']").prop("disabled")?"":SFSI("input[name='sfsi_pinterest_pingBlog']:checked").val(),x=1==SFSI("input[name='sfsi_plus_instagram_pageUrl']").prop("disabled")?"":SFSI("input[name='sfsi_plus_instagram_pageUrl']").val(),C=1==SFSI("input[name='sfsi_linkedin_page']").prop("disabled")?"":SFSI("input[name='sfsi_linkedin_page']:checked").val(),D=1==SFSI("input[name='sfsi_linkedin_pageURL']").prop("disabled")?"":SFSI("input[name='sfsi_linkedin_pageURL']").val(),U=1==SFSI("input[name='sfsi_linkedin_follow']").prop("disabled")?"":SFSI("input[name='sfsi_linkedin_follow']:checked").val(),j=SFSI("input[name='sfsi_linkedin_followCompany']").val(),O=1==SFSI("input[name='sfsi_linkedin_SharePage']").prop("disabled")?"":SFSI("input[name='sfsi_linkedin_SharePage']:checked").val(),T=SFSI("input[name='sfsi_plus_linkedin_recommendBusines']:checked").val(),P=SFSI("input[name='sfsi_linkedin_recommendProductId']").val(),M=SFSI("input[name='sfsi_linkedin_recommendCompany']").val(),L={};SFSI("input[name='sfsi_plus_CustomIcon_links[]']").each(function(){L[SFSI(this).attr("file-id")]=this.value});var B={action:"updateSrcn2",sfsi_rss_url:i,sfsi_rss_icons:e,sfsi_facebookPage_option:t,sfsi_plus_facebookLike_option:n,sfsi_plus_facebookShare_option:o,sfsi_facebookPage_url:a,sfsi_plus_twitter_followme:c,sfsi_twitter_followUserName:r,sfsi_twitter_aboutPage:p,sfsi_twitter_page:_,sfsi_twitter_pageURL:l,sfsi_twitter_aboutPageText:S,sfsi_google_page:u,sfsi_googleLike_option:f,sfsi_google_pageURL:d,sfsi_plus_googleShare_option:m,sfsi_youtube_page:I,sfsi_youtube_pageUrl:F,sfsi_youtube_follow:h,sfsi_plus_youtubeusernameorid:v,sfsi_plus_ytube_user:g,sfsi_plus_ytube_chnlid:k,sfsi_pinterest_page:y,sfsi_pinterest_pageUrl:b,sfsi_plus_instagram_pageUrl:x,sfsi_pinterest_pingBlog:w,sfsi_linkedin_page:C,sfsi_linkedin_pageURL:D,sfsi_linkedin_follow:U,sfsi_linkedin_followCompany:j,sfsi_linkedin_SharePage:O,sfsi_plus_linkedin_recommendBusines:T,sfsi_linkedin_recommendCompany:M,sfsi_linkedin_recommendProductId:P,sfsi_plus_custom_links:L};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:B,async:!0,dataType:"json",success:function(s){"success"==s?(sfsiplus_showErrorSuc("success","Saved !",2),sfsipluscollapse("#sfsi_save2"),sfsi_plus_depened_sections()):(global_error=1,sfsiplus_showErrorSuc("error","Unkown error , please try again",2),return_value=!1),sfsiplus_afterLoad()}})}function sfsi_plus_update_step3(){var s=sfsi_plus_validationStep3();if(!s)return global_error=1,!1;sfsiplus_beForeLoad();var i=SFSI("input[name='sfsi_plus_actvite_theme']:checked").val(),e=SFSI("input[name='sfsi_mouseOver']:checked").val(),t=SFSI("input[name='sfsi_plus_shuffle_icons']:checked").val(),n=SFSI("input[name='sfsi_plus_shuffle_Firstload']:checked").val(),o=SFSI("#sfsi_mouseOver_effect option:selected").val(),a=SFSI("input[name='sfsi_plus_shuffle_interval']:checked").val(),c=SFSI("input[name='sfsi_plus_shuffle_intervalTime']").val(),r=SFSI("input[name='sfsi_plus_specialIcon_animation']:checked").val(),p=SFSI("input[name='sfsi_plus_specialIcon_MouseOver']:checked").val(),_=SFSI("input[name='sfsi_plus_specialIcon_Firstload']:checked").val(),l=SFSI("#sfsi_plus_specialIcon_Firstload_Icons option:selected").val(),S=SFSI("input[name='sfsi_plus_specialIcon_interval']:checked").val(),u=SFSI("input[name='sfsi_plus_specialIcon_intervalTime']").val(),f=SFSI("#sfsi_plus_specialIcon_intervalIcons option:selected").val(),d={action:"updateSrcn3",sfsi_plus_actvite_theme:i,sfsi_mouseOver:e,sfsi_plus_shuffle_icons:t,sfsi_plus_shuffle_Firstload:n,sfsi_mouseOver_effect:o,sfsi_plus_shuffle_interval:a,sfsi_plus_shuffle_intervalTime:c,sfsi_plus_specialIcon_animation:r,sfsi_plus_specialIcon_MouseOver:p,sfsi_plus_specialIcon_Firstload:_,sfsi_plus_specialIcon_Firstload_Icons:l,sfsi_plus_specialIcon_interval:S,sfsi_plus_specialIcon_intervalTime:u,sfsi_plus_specialIcon_intervalIcons:f};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:d,async:!0,dataType:"json",success:function(s){"success"==s?(sfsiplus_showErrorSuc("success","Saved !",3),sfsipluscollapse("#sfsi_save3")):(sfsiplus_showErrorSuc("error","Unkown error , please try again",3),return_value=!1),sfsiplus_afterLoad()}})}function sfsi_plus_show_counts(){"yes"==SFSI("input[name='sfsi_display_counts']:checked").val()?(SFSI(".count_sections").slideDown(),sfsi_plus_showPreviewCounts()):(SFSI(".count_sections").slideUp(),sfsi_plus_showPreviewCounts())}function sfsi_plus_showPreviewCounts(){var s=0;1==SFSI("input[name='sfsi_rss_countsDisplay']").prop("checked")?(SFSI("#sfsi_rss_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_rss_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_email_countsDisplay']").prop("checked")?(SFSI("#sfsi_email_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_email_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_plus_facebook_countsDisplay']").prop("checked")?(SFSI("#sfsi_plus_facebook_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_facebook_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_twitter_countsDisplay']").prop("checked")?(SFSI("#sfsi_twitter_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_twitter_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_google_countsDisplay']").prop("checked")?(SFSI("#sfsi_google_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_google_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("checked")?(SFSI("#sfsi_linkedIn_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_linkedIn_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_plus_youtube_countsDisplay']").prop("checked")?(SFSI("#sfsi_plus_youtube_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_youtube_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_plus_pinterest_countsDisplay']").prop("checked")?(SFSI("#sfsi_pinterest_countsDisplay").css("opacity",1),s=1):SFSI("#sfsi_pinterest_countsDisplay").css("opacity",0),1==SFSI("input[name='sfsi_plus_shares_countsDisplay']").prop("checked")?(SFSI("#sfsi_plus_shares_countsDisplay").css("opacity",1),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),s=1):SFSI("#sfsi_plus_instagram_countsDisplay").css("opacity",0),0==s||"no"==SFSI("input[name='sfsi_display_counts']:checked").val()?SFSI(".sfsi_Cdisplay").hide():SFSI(".sfsi_Cdisplay").show()}function sfsi_plus_show_OnpostsDisplay(){"yes"==SFSI("input[name='sfsi_plus_show_Onposts']:checked").val()?SFSI(".sfsiplus_PostsSettings_section").slideDown():SFSI(".sfsiplus_PostsSettings_section").slideUp()}function sfsi_plus_update_step4(){var s=!1,i=sfsi_plus_validationStep4();if(!i)return global_error=1,!1;sfsiplus_beForeLoad();var e=SFSI("input[name='sfsi_display_counts']:checked").val(),t=1==SFSI("input[name='sfsi_email_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_email_countsDisplay']:checked").val(),n=1==SFSI("input[name='sfsi_email_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_email_countsFrom']:checked").val(),o=SFSI("input[name='sfsi_plus_email_manualCounts']").val(),a=SFSI("input[name='sfsi_plus_google_api_key']").val(),c=1==SFSI("input[name='sfsi_rss_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_rss_countsDisplay']:checked").val(),r=SFSI("input[name='sfsi_plus_rss_manualCounts']").val(),p=1==SFSI("input[name='sfsi_facebook_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_facebook_countsDisplay']:checked").val(),_=1==SFSI("input[name='sfsi_facebook_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_facebook_countsFrom']:checked").val(),l=SFSI("input[name='sfsi_facebook_manualCounts']").val(),S=1==SFSI("input[name='sfsi_twitter_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_twitter_countsDisplay']:checked").val(),u=1==SFSI("input[name='sfsi_twitter_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_twitter_countsFrom']:checked").val(),f=SFSI("input[name='sfsi_twitter_manualCounts']").val(),d=SFSI("input[name='sfsiplus_tw_consumer_key']").val(),m=SFSI("input[name='sfsiplus_tw_consumer_secret']").val(),I=SFSI("input[name='sfsiplus_tw_oauth_access_token']").val(),F=SFSI("input[name='sfsiplus_tw_oauth_access_token_secret']").val(),h=1==SFSI("input[name='sfsi_google_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_google_countsDisplay']:checked").val(),v=1==SFSI("input[name='sfsi_google_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_google_countsFrom']:checked").val(),g=SFSI("input[name='sfsi_google_manualCounts']").val(),k=1==SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(),y=SFSI("input[name='sfsi_linkedIn_manualCounts']").val(),b=SFSI("input[name='sfsi_plus_ln_company']").val(),w=SFSI("input[name='ln_api_key']").val(),x=SFSI("input[name='sfsi_plus_ln_secret_key']").val(),C=SFSI("input[name='ln_oAuth_user_token']").val(),D=1==SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_linkedIn_countsDisplay']:checked").val(),k=1==SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(),y=SFSI("input[name='sfsi_linkedIn_manualCounts']").val(),U=1==SFSI("input[name='sfsi_youtube_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_youtube_countsDisplay']:checked").val(),j=1==SFSI("input[name='sfsi_youtube_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_youtube_countsFrom']:checked").val(),O=SFSI("input[name='sfsi_youtube_manualCounts']").val(),T=SFSI("input[name='sfsi_youtube_user']").val(),P=1==SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_pinterest_countsDisplay']:checked").val(),M=1==SFSI("input[name='sfsi_pinterest_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_pinterest_countsFrom']:checked").val(),L=SFSI("input[name='sfsi_plus_pinterest_manualCounts']").val(),B=SFSI("input[name='sfsi_plus_pinterest_user']").val(),E=SFSI("input[name='sfsi_plus_pinterest_board']").val(),z=1==SFSI("input[name='sfsi_plus_instagram_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_plus_instagram_countsDisplay']:checked").val(),A=1==SFSI("input[name='sfsi_plus_instagram_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_plus_instagram_countsFrom']:checked").val(),N=SFSI("input[name='sfsi_plus_instagram_manualCounts']").val(),H=SFSI("input[name='sfsi_plus_instagram_User']").val(),R=1==SFSI("input[name='sfsi_plus_shares_countsDisplay']").prop("disabled")?"":SFSI("input[name='sfsi_plus_shares_countsDisplay']:checked").val(),Q=1==SFSI("input[name='sfsi_plus_shares_countsFrom']").prop("disabled")?"":SFSI("input[name='sfsi_plus_shares_countsFrom']:checked").val(),W=SFSI("input[name='sfsi_plus_shares_manualCounts']").val(),q={action:"updateSrcn4",sfsi_display_counts:e,sfsi_email_countsDisplay:t,sfsi_email_countsFrom:n,sfsi_email_manualCounts:o,sfsi_rss_countsDisplay:c,sfsi_rss_manualCounts:r,sfsi_facebook_countsDisplay:p,sfsi_facebook_countsFrom:_,sfsi_facebook_manualCounts:l,sfsi_twitter_countsDisplay:S,sfsi_twitter_countsFrom:u,sfsi_twitter_manualCounts:f,sfsiplus_tw_consumer_key:d,sfsiplus_tw_consumer_secret:m,sfsiplus_tw_oauth_access_token:I,sfsiplus_tw_oauth_access_token_secret:F,sfsi_google_countsDisplay:h,sfsi_google_countsFrom:v,sfsi_google_manualCounts:g,sfsi_google_api_key:a,sfsi_linkedIn_countsDisplay:D,sfsi_linkedIn_countsFrom:k,sfsi_linkedIn_manualCounts:y,ln_company:b,ln_api_key:w,sfsi_plus_ln_secret_key:x,ln_oAuth_user_token:C,sfsi_youtube_countsDisplay:U,sfsi_youtube_countsFrom:j,sfsi_youtube_manualCounts:O,sfsi_youtube_user:T,sfsi_pinterest_countsDisplay:P,sfsi_pinterest_countsFrom:M,sfsi_plus_pinterest_manualCounts:L,sfsi_plus_pinterest_user:B,sfsi_plus_pinterest_board:E,sfsi_plus_instagram_countsDisplay:z,sfsi_plus_instagram_countsFrom:A,sfsi_plus_instagram_manualCounts:N,sfsi_plus_instagram_User:H,sfsi_plus_shares_countsDisplay:R,sfsi_plus_shares_countsFrom:Q,sfsi_plus_shares_manualCounts:W};return SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:q,dataType:"json",async:!0,success:function(s){"success"==s.res?(sfsiplus_showErrorSuc("success","Saved !",4),sfsipluscollapse("#sfsi_save4"),sfsi_plus_showPreviewCounts()):(sfsiplus_showErrorSuc("error","Unkown error , please try again",4),global_error=1),sfsiplus_afterLoad()}}),s}function sfsi_plus_update_step5(){var s=sfsi_plus_validationStep5();if(!s)return global_error=1,!1;sfsiplus_beForeLoad();var i=SFSI("input[name='sfsi_plus_icons_size']").val(),e=SFSI("input[name='sfsi_plus_icons_perRow']").val(),t=SFSI("input[name='sfsi_plus_icons_spacing']").val(),n=SFSI("#sfsi_plus_icons_Alignment").val(),o=SFSI("input[name='sfsi_plus_icons_ClickPageOpen']:checked").val(),a=SFSI("input[name='sfsi_plus_icons_float']:checked").val(),c=SFSI("input[name='sfsi_plus_disable_floaticons']:checked").val(),r=SFSI("#sfsi_plus_icons_floatPosition").val(),p=SFSI("input[name='sfsi_plus_icons_stick']:checked").val(),_=SFSI("#sfsi_plus_rssIcon_order").attr("data-index"),l=SFSI("#sfsi_plus_emailIcon_order").attr("data-index"),S=SFSI("#sfsi_plus_googleIcon_order").attr("data-index"),u=SFSI("#sfsi_plus_facebookIcon_order").attr("data-index"),f=SFSI("#sfsi_plus_twitterIcon_order").attr("data-index"),d=SFSI("#sfsi_plus_youtubeIcon_order").attr("data-index"),m=SFSI("#sfsi_plus_pinterestIcon_order").attr("data-index"),I=SFSI("#sfsi_plus_instagramIcon_order").attr("data-index"),F=SFSI("#sfsi_plus_shareIcon_order").attr("data-index"),h=SFSI("#sfsi_plus_linkedinIcon_order").attr("data-index"),v=new Array;SFSI(".sfsiplus_custom_iconOrder").each(function(){v.push({order:SFSI(this).attr("data-index"),ele:SFSI(this).attr("element-id")})});var g=1==SFSI("input[name='sfsi_plus_rss_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_rss_MouseOverText']").val(),k=1==SFSI("input[name='sfsi_plus_email_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_email_MouseOverText']").val(),y=1==SFSI("input[name='sfsi_plus_twitter_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_twitter_MouseOverText']").val(),b=1==SFSI("input[name='sfsi_plus_facebook_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_facebook_MouseOverText']").val(),w=1==SFSI("input[name='sfsi_plus_google_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_google_MouseOverText']").val(),x=1==SFSI("input[name='sfsi_plus_linkedIn_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_linkedIn_MouseOverText']").val(),C=1==SFSI("input[name='sfsi_plus_youtube_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_youtube_MouseOverText']").val(),D=1==SFSI("input[name='sfsi_plus_pinterest_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_pinterest_MouseOverText']").val(),U=1==SFSI("input[name='sfsi_plus_instagram_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_instagram_MouseOverText']").val(),j=1==SFSI("input[name='sfsi_plus_share_MouseOverText']").prop("disabled")?"":SFSI("input[name='sfsi_plus_share_MouseOverText']").val(),O={};SFSI("input[name='sfsi_plus_custom_MouseOverTexts[]']").each(function(){O[SFSI(this).attr("file-id")]=this.value});var T={action:"updateSrcn5",sfsi_plus_icons_size:i,sfsi_plus_icons_Alignment:n,sfsi_plus_icons_perRow:e,sfsi_plus_icons_spacing:t,sfsi_plus_icons_ClickPageOpen:o,sfsi_plus_icons_float:a,sfsi_plus_disable_floaticons:c,sfsi_plus_icons_floatPosition:r,sfsi_plus_icons_stick:p,sfsi_plus_rss_MouseOverText:g,sfsi_plus_email_MouseOverText:k,sfsi_plus_twitter_MouseOverText:y,sfsi_plus_facebook_MouseOverText:b,sfsi_plus_google_MouseOverText:w,sfsi_plus_youtube_MouseOverText:C,sfsi_plus_linkedIn_MouseOverText:x,sfsi_plus_pinterest_MouseOverText:D,sfsi_plus_share_MouseOverText:j,sfsi_plus_instagram_MouseOverText:U,sfsi_plus_custom_MouseOverTexts:O,sfsi_plus_rssIcon_order:_,sfsi_plus_emailIcon_order:l,sfsi_plus_facebookIcon_order:u,sfsi_plus_twitterIcon_order:f,sfsi_plus_googleIcon_order:S,sfsi_plus_youtubeIcon_order:d,sfsi_plus_pinterestIcon_order:m,sfsi_plus_shareIcon_order:F,sfsi_plus_instagramIcon_order:I,sfsi_plus_linkedinIcon_order:h,sfsi_plus_custom_orders:v};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:T,dataType:"json",async:!0,success:function(s){"success"==s?(sfsiplus_showErrorSuc("success","Saved !",5),sfsipluscollapse("#sfsi_save5")):(global_error=1,sfsiplus_showErrorSuc("error","Unkown error , please try again",5)),sfsiplus_afterLoad()}})}function sfsi_plus_update_step6(){sfsiplus_beForeLoad();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={action:"updateSrcn6",sfsi_plus_show_Onposts:s,sfsi_plus_icons_DisplayCounts:t,sfsi_plus_icons_alignment:e,sfsi_plus_textBefor_icons:i};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:n,dataType:"json",async:!0,success:function(s){"success"==s?(sfsiplus_showErrorSuc("success","Saved !",6),sfsipluscollapse("#sfsi_save6")):(global_error=1,sfsiplus_showErrorSuc("error","Unkown error , please try again",6)),sfsiplus_afterLoad()}})}function sfsi_plus_update_step7(){var s=sfsi_plus_validationStep7();if(!s)return global_error=1,!1;sfsiplus_beForeLoad();var i=SFSI("input[name='sfsi_plus_popup_text']").val(),e=SFSI("#sfsi_plus_popup_font option:selected").val(),t=(SFSI("#sfsi_plus_popup_fontStyle option:selected").val(),SFSI("input[name='sfsi_plus_popup_fontColor']").val()),n=SFSI("input[name='sfsi_plus_popup_fontSize']").val(),o=SFSI("input[name='sfsi_plus_popup_background_color']").val(),a=SFSI("input[name='sfsi_plus_popup_border_color']").val(),c=SFSI("input[name='sfsi_plus_popup_border_thickness']").val(),r=SFSI("input[name='sfsi_plus_popup_border_shadow']:checked").val(),p=SFSI("input[name='sfsi_plus_Show_popupOn']:checked").val(),_=[];SFSI("#sfsi_plus_Show_popupOn_PageIDs :selected").each(function(s,i){_[s]=SFSI(i).val()});var l=SFSI("input[name='sfsi_plus_Shown_pop']:checked").val(),S=SFSI("input[name='sfsi_plus_Shown_popupOnceTime']").val(),u=SFSI("#sfsi_plus_Shown_popuplimitPerUserTime").val(),f={action:"updateSrcn7",sfsi_plus_popup_text:i,sfsi_plus_popup_font:e,sfsi_plus_popup_fontColor:t,sfsi_plus_popup_fontSize:n,sfsi_plus_popup_background_color:o,sfsi_plus_popup_border_color:a,sfsi_plus_popup_border_thickness:c,sfsi_plus_popup_border_shadow:r,sfsi_plus_Show_popupOn:p,sfsi_plus_Show_popupOn_PageIDs:_,sfsi_plus_Shown_pop:l,sfsi_plus_Shown_popupOnceTime:S,sfsi_plus_Shown_popuplimitPerUserTime:u};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:f,dataType:"json",async:!0,success:function(s){"success"==s?(sfsiplus_showErrorSuc("success","Saved !",7),sfsipluscollapse("#sfsi_save7")):sfsiplus_showErrorSuc("error","Unkown error , please try again",7),sfsiplus_afterLoad()}})}function sfsiplus_afterIconSuccess(s){if(s.res="success"){var i=s.key+1,e=s.element,t=e+1;SFSI("#total_cusotm_icons").val(s.element),SFSI(".upload-overlay").hide("slow"),SFSI(".uperror").html(""),sfsiplus_showErrorSuc("success","Custom Icon updated successfully",1),d=new Date,SFSI("input[name=sfsiICON_"+s.key+"]").removeAttr("ele-type"),SFSI("input[name=sfsiICON_"+s.key+"]").removeAttr("isnew"),SFSI("li.custom:last").removeClass("bdr_btm_non"),SFSI("li.custom:last").children("span.custom-img").children("img").attr("src",s.img_path+"?"+d.getTime()),icons_name=SFSI("li.custom:last").find("input.styled").attr("name");var n=icons_name.split("_");s.key=n[1],s.img_path+="?"+d.getTime(),5>e&&SFSI(".icn_listing").append('<li id="c'+i+'" class="custom bdr_btm_non"><div class="radio_section tb_4_ck"><span class="checkbox" dynamic_ele="yes" style="background-position: 0px 0px;"></span><input name="sfsiICON_'+i+'" type="checkbox" value="yes" class="styled" style="display:none;" element-type="cusotm-icon" isNew="yes" /></div> <span class="custom-img"><img src="'+SFSI("#plugin_url").val()+'images/custom.png" id="CImg_'+i+'" /> </span> <span class="custom sfsiplus_custom-txt">Custom'+t+' </span> <div class="sfsiplus_right_info"> <p><span>It depends:</span> Upload a custom icon if you have other accounts/websites you want to link to.</p><div class="inputWrapper"></div></li>'),SFSI(".sfsiplus_custom_section").show(),SFSI(".custom-links").append(' <div class="row sfsiICON_'+s.key+' cm_lnk"> <h2 class="custom"> <span class="customstep2-img"> <img src="'+s.img_path+"?"+d.getTime()+'" style="border-radius:48%" /> </span> <span class="sfsiCtxt">Custom '+e+'</span> </h2> <div class="inr_cont "><p>Where do you want this icon to link to?</p> <p class="radio_section fb_url sfsiplus_custom_section sfsiICON_'+s.key+'" ><label>Link :</label><input file-id="'+s.key+'" name="sfsi_plus_CustomIcon_links[]" type="text" value="" placeholder="http://" class="add" /></p></div></div>');var o=SFSI("div.custom_m").find("div.mouseover_field").length;SFSI("div.custom_m").append(0==o%2?'<div class="clear"> </div> <div class="mouseover_field sfsiplus_custom_section sfsiICON_'+s.key+'"><label>Custom '+e+':</label><input name="sfsi_plus_custom_MouseOverTexts[]" value="" type="text" file-id="'+s.key+'" /></div>':'<div class="cHover " ><div class="mouseover_field sfsiplus_custom_section sfsiICON_'+s.key+'"><label>Custom '+e+':</label><input name="sfsi_plus_custom_MouseOverTexts[]" value="" type="text" file-id="'+s.key+'" /></div>'),SFSI("ul.share_icon_order").append('<li class="sfsiplus_custom_iconOrder sfsiICON_'+s.key+'" data-index="" element-id="'+s.key+'" id=""><a href="#" title="Custom Icon" ><img src="'+s.img_path+'" alt="Linked In" class="sfcm"/></a></li>'),SFSI("ul.sfsi_sample_icons").append('<li class="sfsiICON_'+s.key+'" element-id="'+s.key+'" ><div><img src="'+s.img_path+'" alt="Linked In" class="sfcm"/><span class="sfsi_Cdisplay">12k</span></div></li>'),sfsi_plus_update_index(),plus_update_Sec5Iconorder(),sfsi_plus_update_step1(),sfsi_plus_update_step2(),sfsi_plus_update_step5(),SFSI(".upload-overlay").css("pointer-events","auto"),sfsi_plus_showPreviewCounts(),sfsiplus_afterLoad()
2
+ }}function sfsiplus_beforeIconSubmit(s){if(SFSI(".uperror").html("Uploading....."),window.File&&window.FileReader&&window.FileList&&window.Blob){SFSI(s).val()||SFSI(".uperror").html("File is empty");var i=s.files[0].size,e=s.files[0].type;switch(e){case"image/png":case"image/gif":case"image/jpeg":case"image/pjpeg":break;default:return SFSI(".uperror").html("Unsupported file"),!1}return i>1048576?(SFSI(".uperror").html("Image should be less than 1 MB"),!1):!0}return!0}function sfsiplus_bytesToSize(s){var i=["Bytes","KB","MB","GB","TB"];if(0==s)return"0 Bytes";var e=parseInt(Math.floor(Math.log(s)/Math.log(1024)));return Math.round(s/Math.pow(1024,e),2)+" "+i[e]}function sfsiplus_showErrorSuc(s,i,e){if("error"==s)var t="errorMsg";else var t="sucMsg";return SFSI(".tab"+e+">."+t).html(i),SFSI(".tab"+e+">."+t).show(),SFSI(".tab"+e+">."+t).effect("highlight",{},5e3),setTimeout(function(){SFSI("."+t).slideUp("slow")},5e3),!1}function sfsiplus_beForeLoad(){SFSI(".loader-img").show(),SFSI(".save_button >a").html("Saving..."),SFSI(".save_button >a").css("pointer-events","none")}function sfsiplus_afterLoad(){SFSI("input").removeClass("inputError"),SFSI(".save_button >a").html("Save"),SFSI(".tab8>div.save_button >a").html("Save All Settings"),SFSI(".save_button >a").css("pointer-events","auto"),SFSI(".save_button >a").removeAttr("onclick"),SFSI(".loader-img").hide()}function sfsi_plus_make_popBox(){var s=0;SFSI(".sfsi_sample_icons >li").each(function(){"none"!=SFSI(this).css("display")&&(s=1)}),0==s?SFSI(".sfsi_plus_Popinner").hide():SFSI(".sfsi_plus_Popinner").show(),""!=SFSI('input[name="sfsi_plus_popup_text"]').val()?(SFSI(".sfsi_plus_Popinner >h2").html(SFSI('input[name="sfsi_plus_popup_text"]').val()),SFSI(".sfsi_plus_Popinner >h2").show()):SFSI(".sfsi_plus_Popinner >h2").hide(),SFSI(".sfsi_plus_Popinner").css({"border-color":SFSI('input[name="sfsi_plus_popup_border_color"]').val(),"border-width":SFSI('input[name="sfsi_plus_popup_border_thickness"]').val(),"border-style":"solid"}),SFSI(".sfsi_plus_Popinner").css("background-color",SFSI('input[name="sfsi_plus_popup_background_color"]').val()),SFSI(".sfsi_plus_Popinner h2").css("font-family",SFSI("#sfsi_plus_popup_font").val()),SFSI(".sfsi_plus_Popinner h2").css("font-style",SFSI("#sfsi_plus_popup_fontStyle").val()),SFSI(".sfsi_plus_Popinner >h2").css("font-size",parseInt(SFSI('input[name="sfsi_plus_popup_fontSize"]').val())),SFSI(".sfsi_plus_Popinner >h2").css("color",SFSI('input[name="sfsi_plus_popup_fontColor"]').val()+" !important"),"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")}function sfsi_plus_stick_widget(s){0==sfsiplus_initTop.length&&(SFSI(".sfsi_plus_widget").each(function(s){sfsiplus_initTop[s]=SFSI(this).position().top}),console.log(sfsiplus_initTop));var i=SFSI(window).scrollTop(),e=[],t=[];SFSI(".sfsi_plus_widget").each(function(s){e[s]=SFSI(this).position().top,t[s]=SFSI(this)});var n=!1;for(var o in e){var a=parseInt(o)+1;e[o]<i&&e[a]>i&&a<e.length?(SFSI(t[o]).css({position:"fixed",top:s}),SFSI(t[a]).css({position:"",top:sfsiplus_initTop[a]}),n=!0):SFSI(t[o]).css({position:"",top:sfsiplus_initTop[o]})}if(!n){var c=e.length-1,r=-1;e.length>1&&(r=e.length-2),sfsiplus_initTop[c]<i?(SFSI(t[c]).css({position:"fixed",top:s}),r>=0&&SFSI(t[r]).css({position:"",top:sfsiplus_initTop[r]})):(SFSI(t[c]).css({position:"",top:sfsiplus_initTop[c]}),r>=0&&e[r]<i)}}function sfsi_plus_float_widget(s){function i(){c="Microsoft Internet Explorer"===navigator.appName?a-document.documentElement.scrollTop:a-window.pageYOffset,Math.abs(c)>0?(window.removeEventListener("scroll",i),a-=c*o,SFSI("#sfsi_plus_floater").css({top:(a+t).toString()+"px"}),setTimeout(i,n)):window.addEventListener("scroll",i,!1)}function e(){var s=SFSI("#sfsi_plus_floater").attr("data-top"),e=parseInt(SFSI("#sfsi_plus_floater").height()),t=parseInt(SFSI("#sfsi_plus_floater").css("top"));parseInt(e)+parseInt(t)<=s?window.addEventListener("scroll",i,!1):(window.removeEventListener("scroll",i),SFSI("#sfsi_plus_floater").css("top",s+"px"))}if("center"==s)var t=window.innerHeight/2;else if("bottom"==s)var t=window.innerHeight-SFSI("#sfsi_plus_floater").height();else var t=parseInt(s);var n=50,o=.1,a=0,c=0;SFSI("#sfsi_plus_floater"),window.onscroll=e}function sfsi_plus_shuffle(){var s=[];SFSI(".sfsi_plus_wicons ").each(function(i){SFSI(this).text().match(/^\s*$/)||(s[i]="<div class='"+SFSI(this).attr("class")+"'>"+SFSI(this).html()+"</div>",SFSI(this).fadeOut("slow"),SFSI(this).insertBefore(SFSI(this).prev(".sfsi_plus_wicons")),SFSI(this).fadeIn("slow"))}),s=sfsiplus_Shuffle(s),$("#sfsi_plus_wDiv").html("");for(var i=0;i<testArray.length;i++)$("#sfsi_plus_wDiv").append(s[i])}function sfsiplus_Shuffle(s){for(var i,e,t=s.length;t;i=parseInt(Math.random()*t),e=s[--t],s[t]=s[i],s[i]=e);return s}function sfsi_plus_setCookie(s,i,e){var t=new Date;t.setTime(t.getTime()+864e5*e);var n="expires="+t.toGMTString();document.cookie=s+"="+i+"; "+n}function sfsfi_plus_getCookie(s){for(var i=s+"=",e=document.cookie.split(";"),t=0;t<e.length;t++){var n=e[t].trim();if(0==n.indexOf(i))return n.substring(i.length,n.length)}return""}function sfsi_plus_hideFooter(){}function showhideutube(s){var i=SFSI(s).children("input").val();"name"==i?(SFSI(s).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideDown(),SFSI(s).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlidwpr").slideUp()):(SFSI(s).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlidwpr").slideDown(),SFSI(s).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideUp())}function sfsiplushidemepopup(){SFSI(".sfsi_plus_FrntInner").fadeOut()}jQuery(document).ready(function(){jQuery("#sfsi_plus_floater").attr("data-top",jQuery(document).height())}),window.onerror=function(){},SFSI=jQuery.noConflict(),SFSI(window).load(function(){SFSI("#sfpluspageLoad").fadeOut(2e3)});var global_error=0;SFSI(document).ready(function(s){function i(){SFSI(".uperror").html(""),sfsiplus_afterLoad();var s=SFSI('input[name="'+SFSI("#upload_id").val()+'"]');s.removeAttr("checked");var i=SFSI(s).parent().find("span:first");return SFSI(i).css("background-position","0px 0px"),SFSI(".upload-overlay").hide("slow"),!1}SFSI(".sfsiplus_tab_3_icns").on("click",".cstomskins_upload",function(){SFSI(".cstmskins-overlay").show("slow",function(){e=0})}),SFSI("#custmskin_clspop").live("click",function(){SFSI_plus_done(),SFSI(".cstmskins-overlay").hide("slow")}),SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'),SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'),SFSI("head").append('<meta http-equiv="Expires" content="0" />'),SFSI("#accordion").accordion({collapsible:!0,active:!1,heightStyle:"content",event:"click",beforeActivate:function(s,i){if(i.newHeader[0])var e=i.newHeader,t=e.next(".ui-accordion-content");else var e=i.oldHeader,t=e.next(".ui-accordion-content");var n="true"==e.attr("aria-selected");return e.toggleClass("ui-corner-all",n).toggleClass("accordion-header-active ui-state-active ui-corner-top",!n).attr("aria-selected",(!n).toString()),e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e",n).toggleClass("ui-icon-triangle-1-s",!n),t.toggleClass("accordion-content-active",!n),n?t.slideUp():t.slideDown(),!1}}),SFSI("#accordion1").accordion({collapsible:!0,active:!1,heightStyle:"content",event:"click",beforeActivate:function(s,i){if(i.newHeader[0])var e=i.newHeader,t=e.next(".ui-accordion-content");else var e=i.oldHeader,t=e.next(".ui-accordion-content");var n="true"==e.attr("aria-selected");return e.toggleClass("ui-corner-all",n).toggleClass("accordion-header-active ui-state-active ui-corner-top",!n).attr("aria-selected",(!n).toString()),e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e",n).toggleClass("ui-icon-triangle-1-s",!n),t.toggleClass("accordion-content-active",!n),n?t.slideUp():t.slideDown(),!1}}),SFSI(".closeSec").on("click",function(){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();i.toggleClass("ui-corner-all",s).toggleClass("accordion-header-active ui-state-active ui-corner-top",!s).attr("aria-selected",(!s).toString()),i.children(".ui-icon").toggleClass("ui-icon-triangle-1-e",s).toggleClass("ui-icon-triangle-1-s",!s),e.toggleClass("accordion-content-active",!s),s?e.slideUp():e.slideDown()}),SFSI(document).click(function(s){var i=SFSI(".sfsi_plus_FrntInner"),e=SFSI(".sfsi_plus_wDiv"),t=SFSI("#at15s");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()}),SFSI(".sfsi_plus_outr_div").find(".addthis_button").mousemove(function(){var s=SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().top+10;SFSI("#at15s").css({top:s+"px",left:SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().left+"px"})}),SFSI("#sfsifontCloroPicker").ColorPicker({color:"#f80000",onBeforeShow:function(){s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_fontColor").val())},onShow:function(s){return SFSI(s).fadeIn(500),!1},onHide:function(s){return SFSI(s).fadeOut(500),sfsi_plus_make_popBox(),!1},onChange:function(s,i){SFSI("#sfsi_plus_popup_fontColor").val("#"+i),SFSI("#sfsifontCloroPicker").css("background","#"+i),sfsi_plus_make_popBox()},onClick:function(s,i){SFSI("#sfsi_plus_popup_fontColor").val("#"+i),SFSI("#sfsifontCloroPicker").css("background","#"+i),sfsi_plus_make_popBox()}}),SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function(){SFSI(this).attr("src",ajax_object.plugin_url+"images/visit_icons/linkedIn_hover.svg")}),SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function(){SFSI(this).attr("src",ajax_object.plugin_url+"images/visit_icons/linkedIn.svg")}),SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function(){SFSI(this).attr("src",ajax_object.plugin_url+"images/visit_icons/youtube_hover.svg")}),SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function(){SFSI(this).attr("src",ajax_object.plugin_url+"images/visit_icons/youtube.svg")}),SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function(){SFSI(this).css("opacity","0.9")}),SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseleave(function(){SFSI(this).css("opacity","1")}),SFSI("div#sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function(){SFSI(this).css("opacity","0.9")}),SFSI("div#sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function(){SFSI(this).css("opacity","1")}),SFSI("#sfsiBackgroundColorPicker").ColorPicker({color:"#f80000",onBeforeShow:function(){s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_background_color").val())},onShow:function(s){return SFSI(s).fadeIn(500),!1},onHide:function(s){return SFSI(s).fadeOut(500),!1},onChange:function(s,i){SFSI("#sfsi_plus_popup_background_color").val("#"+i),SFSI("#sfsiBackgroundColorPicker").css("background","#"+i),sfsi_plus_make_popBox()},onClick:function(s,i){SFSI("#sfsi_plus_popup_background_color").val("#"+i),SFSI("#sfsiBackgroundColorPicker").css("background","#"+i),sfsi_plus_make_popBox()}}),SFSI("#sfsiBorderColorPicker").ColorPicker({color:"#f80000",onBeforeShow:function(){s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_border_color").val())},onShow:function(s){return SFSI(s).fadeIn(500),!1},onHide:function(s){return SFSI(s).fadeOut(500),!1},onChange:function(s,i){SFSI("#sfsi_plus_popup_border_color").val("#"+i),SFSI("#sfsiBorderColorPicker").css("background","#"+i),sfsi_plus_make_popBox()},onClick:function(s,i){SFSI("#sfsi_plus_popup_border_color").val("#"+i),SFSI("#sfsiBorderColorPicker").css("background","#"+i),sfsi_plus_make_popBox()}}),SFSI("#sfsi_save1").on("click",function(){sfsi_plus_update_step1()&&sfsipluscollapse(this)}),SFSI("#sfsi_save2").on("click",function(){sfsi_plus_update_step2()&&sfsipluscollapse(this)}),SFSI("#sfsi_save3").on("click",function(){sfsi_plus_update_step3()&&sfsipluscollapse(this)}),SFSI("#sfsi_save4").on("click",function(){sfsi_plus_update_step4()&&sfsipluscollapse(this)}),SFSI("#sfsi_save5").on("click",function(){sfsi_plus_update_step5()&&sfsipluscollapse(this)}),SFSI("#sfsi_save6").on("click",function(){sfsi_plus_update_step6()&&sfsipluscollapse(this)}),SFSI("#sfsi_save7").on("click",function(){sfsi_plus_update_step7()&&sfsipluscollapse(this)}),SFSI("#save_all_settings").on("click",function(){return SFSI("#save_all_settings").text("Saving.."),SFSI(".save_button >a").css("pointer-events","none"),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),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),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),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),global_error=0,!1):(sfsi_plus_update_step5(),1==global_error?(sfsiplus_showErrorSuc("error",'Some Selection error in "Any other wishes for your main icons?" tab.',8),global_error=0,!1):(sfsi_plus_update_step6(),1==global_error?(sfsiplus_showErrorSuc("error",'Some Selection error in "Do you want to display icons at the end of every post?" tab.',8),global_error=0,!1):(sfsi_plus_update_step7(),1==global_error?(sfsiplus_showErrorSuc("error",'Some Selection error in "Do you want to display a pop-up, asking people to subscribe?" tab.',8),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))))))))}),SFSI(".fileUPInput").live("change",function(){sfsiplus_beForeLoad(),sfsiplus_beforeIconSubmit(this)&&(SFSI(".upload-overlay").css("pointer-events","none"),SFSI("#customIconFrm").ajaxForm({dataType:"json",success:sfsiplus_afterIconSuccess,resetForm:!0}).submit())}),SFSI(".pop-up").on("click",function(){("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(),SFSI("."+SFSI(this).attr("data-id")).css("opacity","1"),SFSI("."+SFSI(this).attr("data-id")).css("z-index","1000")),SFSI("."+SFSI(this).attr("data-id")).show("slow")}),SFSI("#close_popup").live("click",function(){SFSI(".read-overlay").hide("slow")});var e=0;SFSI(".icn_listing").on("click",".checkbox",function(){if(1==e)return!1;"yes"==SFSI(this).attr("dynamic_ele")&&(s=SFSI(this).parent().find("input:checkbox:first"),s.is(":checked")?SFSI(s).attr("checked",!1):SFSI(s).attr("checked",!0)),s=SFSI(this).parent().find("input:checkbox:first"),"yes"==SFSI(s).attr("isNew")&&("0px 0px"==SFSI(this).css("background-position")?(SFSI(s).attr("checked",!0),SFSI(this).css("background-position","0px -36px")):(SFSI(s).removeAttr("checked",!0),SFSI(this).css("background-position","0px 0px")));var s=SFSI(this).parent().find("input:checkbox:first");if(s.is(":checked")&&"cusotm-icon"==s.attr("element-type"))SFSI(".fileUPInput").attr("name","custom_icons[]"),SFSI(".upload-overlay").show("slow",function(){e=0}),SFSI("#upload_id").val(s.attr("name"));else if(!s.is(":checked")&&"cusotm-icon"==s.attr("element-type"))return s.attr("ele-type")?(SFSI(this).attr("checked",!0),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),SFSI(this).css("background-position","0px 0px"),e=0,!1):(e=0,!1):(s.attr("checked",!0),SFSI(this).css("background-position","0px -36px"),e=0,!1)}),SFSI(".icn_listing").on("click",".checkbox",function(){checked=SFSI(this).parent().find("input:checkbox:first"),"sfsi_email_display"!=checked.attr("name")||checked.is(":checked")||SFSI(".demail-1").show("slow")}),SFSI("#deac_email2").on("click",function(){SFSI(".demail-1").hide("slow"),SFSI(".demail-2").show("slow")}),SFSI("#deac_email3").on("click",function(){SFSI(".demail-2").hide("slow"),SFSI(".demail-3").show("slow")}),SFSI(".hideemailpop").on("click",function(){SFSI('input[name="sfsi_email_display"]').attr("checked",!0),SFSI('input[name="sfsi_email_display"]').parent().find("span:first").css("background-position","0px -36px"),SFSI(".demail-1").hide("slow"),SFSI(".demail-2").hide("slow"),SFSI(".demail-3").hide("slow")}),SFSI(".hidePop").on("click",function(){SFSI(".demail-1").hide("slow"),SFSI(".demail-2").hide("slow"),SFSI(".demail-3").hide("slow")}),SFSI(".activate_footer").on("click",function(){SFSI(this).text("activating....");var s={action:"activateFooter"};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:s,dataType:"json",success:function(s){"success"==s.res&&(SFSI(".demail-1").hide("slow"),SFSI(".demail-2").hide("slow"),SFSI(".demail-3").hide("slow"),SFSI(".activate_footer").text("Ok, activate link"))}})}),SFSI(".sfsiplus_removeFooter").on("click",function(){SFSI(this).text("working....");var s={action:"removeFooter"};SFSI.ajax({url:ajax_object.ajax_url,type:"post",data:s,dataType:"json",success:function(s){"success"==s.res&&(SFSI(".sfsiplus_removeFooter").fadeOut("slow"),SFSI(".sfsiplus_footerLnk").fadeOut("slow"))}})}),SFSI(".radio").live("click",function(){var s=SFSI(this).parent().find("input:radio:first");"sfsi_display_counts"==s.attr("name")&&sfsi_plus_show_counts()}),SFSI("#close_Uploadpopup").on("click",i),SFSI(".radio").live("click",function(){var s=SFSI(this).parent().find("input:radio:first");"sfsi_plus_show_Onposts"==s.attr("name")&&sfsi_plus_show_OnpostsDisplay()}),sfsi_plus_show_OnpostsDisplay(),sfsi_plus_depened_sections(),sfsi_plus_show_counts(),sfsi_plus_showPreviewCounts(),SFSI(".share_icon_order").sortable({update:function(){SFSI(".share_icon_order li").each(function(){SFSI(this).attr("data-index",SFSI(this).index()+1)})},revert:!0}),SFSI(".radio").live("click",function(){var s=SFSI(this).parent().find("input:radio:first");"sfsi_email_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_email_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_email_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_email_countsFrom']:checked").val()?SFSI("input[name='sfsi_email_manualCounts']").slideDown():SFSI("input[name='sfsi_email_manualCounts']").slideUp()),"sfsi_facebook_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_facebook_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_facebook_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_facebook_countsFrom']:checked").val()?SFSI("input[name='sfsi_facebook_manualCounts']").slideDown():SFSI("input[name='sfsi_facebook_manualCounts']").slideUp()),"sfsi_twitter_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_twitter_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_twitter_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_twitter_countsFrom']:checked").val()?(SFSI("input[name='sfsi_twitter_manualCounts']").slideDown(),SFSI(".tw_follow_options").slideUp()):(SFSI("input[name='sfsi_twitter_manualCounts']").slideUp(),SFSI(".tw_follow_options").slideDown())),"sfsi_google_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_google_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_google_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_google_countsFrom']:checked").val()&&(SFSI("input[name='sfsi_google_manualCounts']").slideDown(),SFSI(".google_option").slideUp()),"likes"==SFSI("input[name='sfsi_google_countsFrom']:checked").val()&&(SFSI("input[name='sfsi_google_manualCounts']").slideUp(),SFSI(".google_option").slideUp()),"follower"==SFSI("input[name='sfsi_google_countsFrom']:checked").val()&&(SFSI(".google_option").slideDown(),SFSI("input[name='sfsi_google_manualCounts']").slideUp())),"sfsi_linkedIn_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_linkedIn_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_linkedIn_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val()?(SFSI("input[name='sfsi_linkedIn_manualCounts']").slideDown(),SFSI(".linkedIn_options").slideUp()):(SFSI("input[name='sfsi_linkedIn_manualCounts']").slideUp(),SFSI(".linkedIn_options").slideDown())),"sfsi_youtube_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_youtube_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_youtube_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_youtube_countsFrom']:checked").val()?(SFSI("input[name='sfsi_youtube_manualCounts']").slideDown(),SFSI(".youtube_options").slideUp()):(SFSI("input[name='sfsi_youtube_manualCounts']").slideUp(),SFSI(".youtube_options").slideDown())),"sfsi_pinterest_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_pinterest_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_pinterest_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_pinterest_countsFrom']:checked").val()?(SFSI("input[name='sfsi_plus_pinterest_manualCounts']").slideDown(),SFSI(".pin_options").slideUp()):SFSI("input[name='sfsi_plus_pinterest_manualCounts']").slideUp()),"sfsi_plus_instagram_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_plus_instagram_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_plus_instagram_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_plus_instagram_countsFrom']:checked").val()?(SFSI("input[name='sfsi_plus_instagram_manualCounts']").slideDown(),SFSI(".instagram_userLi").slideUp()):(SFSI("input[name='sfsi_plus_instagram_manualCounts']").slideUp(),SFSI(".instagram_userLi").slideDown())),"sfsi_plus_shares_countsFrom"==s.attr("name")&&(SFSI('input[name="sfsi_plus_shares_countsDisplay"]').prop("checked",!0),SFSI('input[name="sfsi_plus_shares_countsDisplay"]').parent().find("span.checkbox").attr("style","background-position:0px -36px;"),"manual"==SFSI("input[name='sfsi_plus_shares_countsFrom']:checked").val()?SFSI("input[name='sfsi_plus_shares_manualCounts']").slideDown():SFSI("input[name='sfsi_plus_shares_manualCounts']").slideUp())}),sfsi_plus_make_popBox(),SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("keyup",sfsi_plus_make_popBox),SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("focus",sfsi_plus_make_popBox),SFSI("#sfsi_plus_popup_font ,#sfsi_plus_popup_fontStyle").on("change",sfsi_plus_make_popBox),SFSI(".radio").live("click",function(){var s=SFSI(this).parent().find("input:radio:first");"sfsi_plus_popup_border_shadow"==s.attr("name")&&sfsi_plus_make_popBox()}),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?SFSI("img.sfsi_wicon").on("click",function(s){s.stopPropagation();var i=SFSI("#sfsi_plus_floater_sec").val();SFSI("div.sfsi_plus_wicons").css("z-index","0"),SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide(),SFSI(this).parent().parent().parent().parent().siblings("li").length>0&&(SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index","0"),SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide()),SFSI(this).parent().parent().parent().css("z-index","1000000"),SFSI(this).parent().parent().css({"z-index":"999"}),SFSI(this).attr("effect")&&"fade_in"==SFSI(this).attr("effect")&&(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parent().css("opacity","1")),SFSI(this).attr("effect")&&"scale"==SFSI(this).attr("effect")&&(SFSI(this).parent().addClass("scale"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parent().css("opacity","1")),SFSI(this).attr("effect")&&"combo"==SFSI(this).attr("effect")&&(SFSI(this).parent().addClass("scale"),SFSI(this).parent().css("opacity","1"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10})),("top-left"==i||"top-right"==i)&&SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length>0&&"sfsi_plus_floater"==SFSI(this).parent().parent().parent().parent().attr("id")?(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()):(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":1e3}),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show())}):SFSI("img.sfsi_wicon").on("mouseenter",function(){var s=SFSI("#sfsi_plus_floater_sec").val();SFSI("div.sfsi_plus_wicons").css("z-index","0"),SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide(),SFSI(this).parent().parent().parent().parent().siblings("li").length>0&&(SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index","0"),SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide()),SFSI(this).parent().parent().parent().css("z-index","1000000"),SFSI(this).parent().parent().css({"z-index":"999"}),SFSI(this).attr("effect")&&"fade_in"==SFSI(this).attr("effect")&&(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parent().css("opacity","1")),SFSI(this).attr("effect")&&"scale"==SFSI(this).attr("effect")&&(SFSI(this).parent().addClass("scale"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parent().css("opacity","1")),SFSI(this).attr("effect")&&"combo"==SFSI(this).attr("effect")&&(SFSI(this).parent().addClass("scale"),SFSI(this).parent().css("opacity","1"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10})),("top-left"==s||"top-right"==s)&&SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length>0&&"sfsi_plus_floater"==SFSI(this).parent().parent().parent().parent().attr("id")?(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()):(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show())}),SFSI("div.sfsi_plus_wicons").on("mouseleave",function(){SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect")&&"fade_in"==SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect")&&SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity","0.6"),SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect")&&"scale"==SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect")&&SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale"),SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect")&&"combo"==SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect")&&(SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity","0.6"),SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale")),"google"==SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").attr("id")?SFSI("body").on("click",function(){SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide()}):(SFSI(this).css({"z-index":"0"}),SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide())}),SFSI("body").on("click",function(){SFSI(".sfsiplus_inerCnt").find("div.sfsi_tool_tip_2").hide()}),SFSI(".adminTooltip >a").on("hover",function(){SFSI(this).offset().top,SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity","1"),SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show()}),SFSI(".adminTooltip").on("mouseleave",function(){"none"!=SFSI(".gpls_tool_bdr").css("display")&&0!=SFSI(".gpls_tool_bdr").css("opacity")?SFSI(".pop_up_box ").on("click",function(){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()}):(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())}),SFSI(".expand-area").on("click",function(){"Read more"==SFSI(this).text()?(SFSI(this).siblings("p").children("label").fadeIn("slow"),SFSI(this).text("Collapse")):(SFSI(this).siblings("p").children("label").fadeOut("slow"),SFSI(this).text("Read more"))}),SFSI(".radio").live("click",function(){var s=SFSI(this).parent().find("input:radio:first");"sfsi_plus_icons_float"==s.attr("name")&&"yes"==s.val()&&(SFSI(".float_options").slideDown("slow"),SFSI('input[name="sfsi_plus_icons_stick"][value="no"]').attr("checked",!0),SFSI('input[name="sfsi_plus_icons_stick"][value="yes"]').removeAttr("checked"),SFSI('input[name="sfsi_plus_icons_stick"][value="no"]').parent().find("span").attr("style","background-position:0px -41px;"),SFSI('input[name="sfsi_plus_icons_stick"][value="yes"]').parent().find("span").attr("style","background-position:0px -0px;")),("sfsi_plus_icons_stick"==s.attr("name")&&"yes"==s.val()||"sfsi_plus_icons_float"==s.attr("name")&&"no"==s.val())&&(SFSI(".float_options").slideUp("slow"),SFSI('input[name="sfsi_plus_icons_float"][value="no"]').prop("checked",!0),SFSI('input[name="sfsi_plus_icons_float"][value="yes"]').prop("checked",!1),SFSI('input[name="sfsi_plus_icons_float"][value="no"]').parent().find("span.radio").attr("style","background-position:0px -41px;"),SFSI('input[name="sfsi_plus_icons_float"][value="yes"]').parent().find("span.radio").attr("style","background-position:0px -0px;"))}),SFSI(".sfsi_plus_wDiv").length>0&&setTimeout(function(){var s=parseInt(SFSI(".sfsi_plus_wDiv").height())+15+"px";SFSI(".sfsi_plus_holders").each(function(){SFSI(this).css("height",s)})},200),SFSI(".checkbox").live("click",function(){var s=SFSI(this).parent().find("input:checkbox:first");("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"),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"),SFSI('input[name="sfsi_plus_shuffle_Firstload"]').parent().find("span").css("background-position","0px 0px"),SFSI('input[name="sfsi_plus_shuffle_interval"]').removeAttr("checked"),SFSI('input[name="sfsi_plus_shuffle_interval"]').parent().find("span").css("background-position","0px 0px"))})});var sfsiplus_initTop=new Array;
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -4,7 +4,9 @@
4
  add_action('wp_ajax_plus_updateSrcn1','sfsi_plus_options_updater1');
5
  function sfsi_plus_options_updater1()
6
  {
7
-
 
 
8
  $option1= unserialize(get_option('sfsi_plus_section1_options',false));
9
  $sfsi_plus_rss_display = isset($_POST["sfsi_plus_rss_display"]) ? $_POST["sfsi_plus_rss_display"] : 'no';
10
  $sfsi_plus_email_display = isset($_POST["sfsi_plus_email_display"]) ? $_POST["sfsi_plus_email_display"] : 'no';
@@ -38,6 +40,9 @@ function sfsi_plus_options_updater1()
38
  add_action('wp_ajax_plus_updateSrcn2','sfsi_plus_options_updater2');
39
  function sfsi_plus_options_updater2()
40
  {
 
 
 
41
  $sfsi_plus_rss_url = isset($_POST["sfsi_plus_rss_url"]) ? trim($_POST["sfsi_plus_rss_url"]) : '';
42
  $sfsi_plus_rss_icons = isset($_POST["sfsi_plus_rss_icons"]) ? $_POST["sfsi_plus_rss_icons"] : 'email';
43
 
@@ -142,8 +147,9 @@ function sfsi_plus_options_updater2()
142
  add_action('wp_ajax_plus_updateSrcn3','sfsi_plus_options_updater3');
143
  function sfsi_plus_options_updater3()
144
  {
145
-
146
-
 
147
  $sfsi_plus_actvite_theme = isset($_POST["sfsi_plus_actvite_theme"]) ? $_POST["sfsi_plus_actvite_theme"] : 'no';
148
  $sfsi_plus_mouseOver = isset($_POST["sfsi_plus_mouseOver"]) ? $_POST["sfsi_plus_mouseOver"] : 'no';
149
  $sfsi_plus_mouseOver_effect = isset($_POST["sfsi_plus_mouseOver_effect"]) ? $_POST["sfsi_plus_mouseOver_effect"] : 'fade_in';
@@ -185,6 +191,9 @@ function sfsi_plus_options_updater3()
185
  add_action('wp_ajax_plus_updateSrcn4','sfsi_plus_options_updater4');
186
  function sfsi_plus_options_updater4()
187
  {
 
 
 
188
  $sfsi_plus_display_counts = isset($_POST["sfsi_plus_display_counts"]) ? $_POST["sfsi_plus_display_counts"] : 'no';
189
 
190
  $sfsi_plus_email_countsDisplay = isset($_POST["sfsi_plus_email_countsDisplay"]) ? $_POST["sfsi_plus_email_countsDisplay"] : 'no';
@@ -310,6 +319,9 @@ function sfsi_plus_options_updater4()
310
  add_action('wp_ajax_plus_updateSrcn5','sfsi_plus_options_updater5');
311
  function sfsi_plus_options_updater5()
312
  {
 
 
 
313
  $sfsi_plus_icons_size = isset($_POST["sfsi_plus_icons_size"]) ? $_POST["sfsi_plus_icons_size"] : '51';
314
  $sfsi_plus_icons_spacing = isset($_POST["sfsi_plus_icons_spacing"]) ? $_POST["sfsi_plus_icons_spacing"] : '2';
315
  $sfsi_plus_icons_Alignment = isset($_POST["sfsi_plus_icons_Alignment"]) ? $_POST["sfsi_plus_icons_Alignment"] : 'center';
@@ -397,6 +409,9 @@ function sfsi_plus_options_updater5()
397
  add_action('wp_ajax_plus_updateSrcn6','sfsi_plus_options_updater6');
398
  function sfsi_plus_options_updater6()
399
  {
 
 
 
400
  $sfsi_plus_show_Onposts = isset($_POST["sfsi_plus_show_Onposts"]) ? $_POST["sfsi_plus_show_Onposts"] : 'no';
401
  $sfsi_plus_icons_postPositon = isset($_POST["sfsi_plus_icons_postPositon"]) ? $_POST["sfsi_plus_icons_postPositon"] : '';
402
  $sfsi_plus_icons_alignment = isset($_POST["sfsi_plus_icons_alignment"]) ? $_POST["sfsi_plus_icons_alignment"] : 'center-right';
@@ -418,6 +433,9 @@ function sfsi_plus_options_updater6()
418
  add_action('wp_ajax_plus_updateSrcn7','sfsi_plus_options_updater7');
419
  function sfsi_plus_options_updater7()
420
  {
 
 
 
421
  $sfsi_plus_popup_text = isset($_POST["sfsi_plus_popup_text"]) ? $_POST["sfsi_plus_popup_text"] : '';
422
  $sfsi_plus_popup_background_color = isset($_POST["sfsi_plus_popup_background_color"]) ? $_POST["sfsi_plus_popup_background_color"] : '#fffff';
423
  $sfsi_plus_popup_border_color = isset($_POST["sfsi_plus_popup_border_color"]) ? $_POST["sfsi_plus_popup_border_color"] : 'center-right';
@@ -460,6 +478,9 @@ function sfsi_plus_options_updater7()
460
  add_action('wp_ajax_plus_updateSrcn8','sfsi_plus_options_updater8');
461
  function sfsi_plus_options_updater8()
462
  {
 
 
 
463
  $sfsi_plus_show_via_widget = isset($_POST["sfsi_plus_show_via_widget"]) ? $_POST["sfsi_plus_show_via_widget"] : 'no';
464
  $sfsi_plus_float_on_page = isset($_POST["sfsi_plus_float_on_page"]) ? $_POST["sfsi_plus_float_on_page"] : 'no';
465
  $sfsi_plus_float_page_position = isset($_POST["sfsi_plus_float_page_position"]) ? $_POST["sfsi_plus_float_page_position"] : 'no';
@@ -691,12 +712,18 @@ function sfsi_plus_getCounts()
691
  add_action('wp_ajax_plus_activateFooter','sfsiplusActivateFooter');
692
  function sfsiplusActivateFooter()
693
  {
 
 
 
694
  update_option('sfsi_plus_footer_sec', 'yes');
695
  echo json_encode(array('res'=>'success'));exit;
696
  }
697
- add_action('wp_ajax_removeFooter','sfsiplusremoveFooter');
698
  function sfsiplusremoveFooter()
699
  {
 
 
 
700
  update_option('sfsi_plus_footer_sec', 'no');
701
  echo json_encode(array('res'=>'success'));exit;
702
  }
4
  add_action('wp_ajax_plus_updateSrcn1','sfsi_plus_options_updater1');
5
  function sfsi_plus_options_updater1()
6
  {
7
+ if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step1")) {
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';
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
 
147
  add_action('wp_ajax_plus_updateSrcn3','sfsi_plus_options_updater3');
148
  function sfsi_plus_options_updater3()
149
  {
150
+ if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step3")) {
151
+ echo json_encode(array("wrong_nonce")); exit;
152
+ }
153
  $sfsi_plus_actvite_theme = isset($_POST["sfsi_plus_actvite_theme"]) ? $_POST["sfsi_plus_actvite_theme"] : 'no';
154
  $sfsi_plus_mouseOver = isset($_POST["sfsi_plus_mouseOver"]) ? $_POST["sfsi_plus_mouseOver"] : 'no';
155
  $sfsi_plus_mouseOver_effect = isset($_POST["sfsi_plus_mouseOver_effect"]) ? $_POST["sfsi_plus_mouseOver_effect"] : 'fade_in';
191
  add_action('wp_ajax_plus_updateSrcn4','sfsi_plus_options_updater4');
192
  function sfsi_plus_options_updater4()
193
  {
194
+ if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step4")) {
195
+ echo json_encode(array("wrong_nonce")); exit;
196
+ }
197
  $sfsi_plus_display_counts = isset($_POST["sfsi_plus_display_counts"]) ? $_POST["sfsi_plus_display_counts"] : 'no';
198
 
199
  $sfsi_plus_email_countsDisplay = isset($_POST["sfsi_plus_email_countsDisplay"]) ? $_POST["sfsi_plus_email_countsDisplay"] : 'no';
319
  add_action('wp_ajax_plus_updateSrcn5','sfsi_plus_options_updater5');
320
  function sfsi_plus_options_updater5()
321
  {
322
+ if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step5")) {
323
+ echo json_encode(array("wrong_nonce")); exit;
324
+ }
325
  $sfsi_plus_icons_size = isset($_POST["sfsi_plus_icons_size"]) ? $_POST["sfsi_plus_icons_size"] : '51';
326
  $sfsi_plus_icons_spacing = isset($_POST["sfsi_plus_icons_spacing"]) ? $_POST["sfsi_plus_icons_spacing"] : '2';
327
  $sfsi_plus_icons_Alignment = isset($_POST["sfsi_plus_icons_Alignment"]) ? $_POST["sfsi_plus_icons_Alignment"] : 'center';
409
  add_action('wp_ajax_plus_updateSrcn6','sfsi_plus_options_updater6');
410
  function sfsi_plus_options_updater6()
411
  {
412
+ if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step6")) {
413
+ echo json_encode(array("wrong_nonce")); exit;
414
+ }
415
  $sfsi_plus_show_Onposts = isset($_POST["sfsi_plus_show_Onposts"]) ? $_POST["sfsi_plus_show_Onposts"] : 'no';
416
  $sfsi_plus_icons_postPositon = isset($_POST["sfsi_plus_icons_postPositon"]) ? $_POST["sfsi_plus_icons_postPositon"] : '';
417
  $sfsi_plus_icons_alignment = isset($_POST["sfsi_plus_icons_alignment"]) ? $_POST["sfsi_plus_icons_alignment"] : 'center-right';
433
  add_action('wp_ajax_plus_updateSrcn7','sfsi_plus_options_updater7');
434
  function sfsi_plus_options_updater7()
435
  {
436
+ if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step7")) {
437
+ echo json_encode(array("wrong_nonce")); exit;
438
+ }
439
  $sfsi_plus_popup_text = isset($_POST["sfsi_plus_popup_text"]) ? $_POST["sfsi_plus_popup_text"] : '';
440
  $sfsi_plus_popup_background_color = isset($_POST["sfsi_plus_popup_background_color"]) ? $_POST["sfsi_plus_popup_background_color"] : '#fffff';
441
  $sfsi_plus_popup_border_color = isset($_POST["sfsi_plus_popup_border_color"]) ? $_POST["sfsi_plus_popup_border_color"] : 'center-right';
478
  add_action('wp_ajax_plus_updateSrcn8','sfsi_plus_options_updater8');
479
  function sfsi_plus_options_updater8()
480
  {
481
+ if ( !wp_verify_nonce( $_POST['nonce'], "update_plus_step8")) {
482
+ echo json_encode(array("wrong_nonce")); exit;
483
+ }
484
  $sfsi_plus_show_via_widget = isset($_POST["sfsi_plus_show_via_widget"]) ? $_POST["sfsi_plus_show_via_widget"] : 'no';
485
  $sfsi_plus_float_on_page = isset($_POST["sfsi_plus_float_on_page"]) ? $_POST["sfsi_plus_float_on_page"] : 'no';
486
  $sfsi_plus_float_page_position = isset($_POST["sfsi_plus_float_page_position"]) ? $_POST["sfsi_plus_float_page_position"] : 'no';
712
  add_action('wp_ajax_plus_activateFooter','sfsiplusActivateFooter');
713
  function sfsiplusActivateFooter()
714
  {
715
+ if ( !wp_verify_nonce( $_POST['nonce'], "active_plusfooter")) {
716
+ echo json_encode(array('res'=>'wrong_nonce')); exit;
717
+ }
718
  update_option('sfsi_plus_footer_sec', 'yes');
719
  echo json_encode(array('res'=>'success'));exit;
720
  }
721
+ add_action('wp_ajax_plus_removeFooter','sfsiplusremoveFooter');
722
  function sfsiplusremoveFooter()
723
  {
724
+ if ( !wp_verify_nonce( $_POST['nonce'], "remove_plusfooter")) {
725
+ echo json_encode(array('res'=>'wrong_nonce')); exit;
726
+ }
727
  update_option('sfsi_plus_footer_sec', 'no');
728
  echo json_encode(array('res'=>'success'));exit;
729
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=seb.r
4
  Tags: social media, social media icons, sidebar, admin, icons, sharing icons, social media widget, social icon widget, socialmedia, fb widget, facebook, facebook icon, facebook button, facebook share button, facebook like button, twitter, twitter icon, twitter button, google+, google, google plus, google plus icon, google plus button, pinterest, pinterest icon, pinterest button, instagram, Instagram icon, Instagram button, youtube, youtube icon, youtube button, linkedin, linkedin icon, linkedin button, subscription popup, pop-up, ultimate, email, rss, rss2email, subscription icons, subscription icon, social media pop-up, free, newsletter, email newsletter, follow, follow me, counter, feed, feeds, filter, links, link, media, plugin, social, widget, tweet button, email button, email icon, socialize, facebook like, facebook recommend
5
  Requires at least: 3.0
6
  Tested up to: 4.2.2
7
- Stable tag: 1.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -48,51 +48,7 @@ Note: This plugin requires CURL to be activated/installed on your server (which
48
 
49
  == Frequently Asked Questions ==
50
 
51
- = Some of the links I entered don't work =
52
-
53
- Please don't forget to enter the "http://" at the beginning of the link.
54
-
55
- = How can I change the "Please follow & like us :)" if I placed the icons via a widget? =
56
-
57
- You can change that in the Widget-area where you dropped the widget on the sidebar. Please click on it (on the sidebar), it will open the menu where you can change the text.
58
-
59
- For you visual people: http://screencast.com/t/euuqTzbJ
60
-
61
- If you don't want to show any text, just enter a space (" ").
62
-
63
- = How can I remove the credit-link ("Powered by Ultimatelysocial")? =
64
-
65
- Open the first question in the plugin ("1. Where do you want to display the icons?"), on the level of the email-icon you see a link on the right hand side. Please click it to remove the credit link.
66
-
67
- Please note that we didn't place the credit link without your consent (you agreed to it when de-selecting the email-icon).
68
-
69
- In video: http://screencast.com/t/o0sfAgyqjWBH
70
-
71
- = Can I also display the icons vertically (on top of each other)? =
72
-
73
- Yes. For that please go to question 5 and select to display only 1 icon per row.
74
-
75
- = I have difficulties uploading custom icons - why is that? =
76
-
77
- Most likely that's because you've set "allow_url_fopen" to "off". Please turn it to "on" (or ask your server admin to do so - he'll know what to do).
78
-
79
- = My Youtube icon doesn't work =
80
-
81
- Please ensure that you've selected the radio button "Username" when you enter a youtube username, or "Channel ID" when you entered a channel ID.
82
-
83
- = Aligning the icons (centered, left- or right-aligned) doesn't work =
84
-
85
- The alignment options under question 6 align the icons with respect to each other (see http://screencast.com/t/VPkmjs3oV ), not where they appear on the page.
86
-
87
- To make the icons show up at the right spot please play around with all the different placement options the plugin offers (under question 3). If that doesn't work please ask the creator of your template for advice.
88
-
89
- = This is a great plugin! How can I say "Thank you"? =
90
-
91
- By giving us a 5-star rating :) You can give your "Thank you" even more strength with a donation - check the "Donate to this plugin" on the right hand side)
92
-
93
- = Are you guys open for taking on client work? =
94
-
95
- Yes, absolutely. We build websites (incl. design), web applications and software, plugins :) and do theme customizations. Get in touch with us at support at ultimatelysocial dot com.
96
 
97
  == Screenshots ==
98
 
@@ -117,6 +73,10 @@ Yes, absolutely. We build websites (incl. design), web applications and software
117
 
118
  == Changelog ==
119
 
 
 
 
 
120
  = 1.1 =
121
  * Og-issues fixed
122
  * Conflicts with Yoast SEO plugin sorted
@@ -132,4 +92,9 @@ Yes, absolutely. We build websites (incl. design), web applications and software
132
  * Facebook sharing text issues fixed
133
 
134
  = 1.0 =
135
- * First release
 
 
 
 
 
4
  Tags: social media, social media icons, sidebar, admin, icons, sharing icons, social media widget, social icon widget, socialmedia, fb widget, facebook, facebook icon, facebook button, facebook share button, facebook like button, twitter, twitter icon, twitter button, google+, google, google plus, google plus icon, google plus button, pinterest, pinterest icon, pinterest button, instagram, Instagram icon, Instagram button, youtube, youtube icon, youtube button, linkedin, linkedin icon, linkedin button, subscription popup, pop-up, ultimate, email, rss, rss2email, subscription icons, subscription icon, social media pop-up, free, newsletter, email newsletter, follow, follow me, counter, feed, feeds, filter, links, link, media, plugin, social, widget, tweet button, email button, email icon, socialize, facebook like, facebook recommend
5
  Requires at least: 3.0
6
  Tested up to: 4.2.2
7
+ Stable tag: 1.2
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
48
 
49
  == Frequently Asked Questions ==
50
 
51
+ Please check out the FAQ on http://ultimatelysocial.com
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
 
53
  == Screenshots ==
54
 
73
 
74
  == Changelog ==
75
 
76
+ = 1.2 =
77
+ * Vulnerabilities (AJAX) fixed
78
+ * OG-issues (caused in conjunction with other plugins) fixed
79
+
80
  = 1.1 =
81
  * Og-issues fixed
82
  * Conflicts with Yoast SEO plugin sorted
92
  * Facebook sharing text issues fixed
93
 
94
  = 1.0 =
95
+ * First release
96
+
97
+ == Upgrade Notice ==
98
+
99
+ = 1.2 =
100
+ Vulnerabilities fixed, please upgrade to latest version
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.1
9
  License: GPLv2
10
  */
11
 
@@ -77,7 +77,7 @@ function sfsi_plus_checkmetas()
77
  {
78
  if(is_plugin_active($key))
79
  {
80
- if(preg_match("/(seo|search engine optimization|meta tag)/im", $plugin['Name']) || preg_match("/(seo|search engine optimization|meta tag)/im", $plugin['Description']))
81
  {
82
  update_option("adding_plustags", "no");
83
  break;
@@ -363,4 +363,4 @@ function sfsi_plus_string_sanitize($s) {
363
  $result = preg_replace("/[^a-zA-Z0-9]+/", " ", html_entity_decode($s, ENT_QUOTES));
364
  return $result;
365
  }
366
- ?>
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.2
9
  License: GPLv2
10
  */
11
 
77
  {
78
  if(is_plugin_active($key))
79
  {
80
+ if(preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Name']) || preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Description']))
81
  {
82
  update_option("adding_plustags", "no");
83
  break;
363
  $result = preg_replace("/[^a-zA-Z0-9]+/", " ", html_entity_decode($s, ENT_QUOTES));
364
  return $result;
365
  }
366
+ ?>
views/sfsi_option_view1.php CHANGED
@@ -24,7 +24,7 @@
24
  <span class="sfsicls_email">Email</span>
25
  <div class="sfsiplus_right_info">
26
  <p><span>"Mandatory":</span> Email is the most effective tool to build up a followership.
27
- <span style="float: right;margin-right: 13px; margin-top: -3px;"><?php if(get_option('sfsi_plus_footer_sec')=="yes") { ?> <a style="font-size:13px;margin-left:30px;color:#777777;" href="javascript:;" class="sfsi_removeFooter" >Remove credit link</a> <?php } ?></span>
28
  <label class="expanded-area" >Everybody uses email – that’s why it’s <a href="http://www.entrepreneur.com/article/230949" target="_new">much more effective than social media </a> to make people follow you. Not offering an email subscription option means losing out on future traffic to your site.</label>
29
  </p>
30
  <a href="javascript:;" class="expand-area" >Read more</a>
@@ -168,7 +168,8 @@
168
  <!-- SAVE BUTTON SECTION -->
169
  <div class="save_button tab_1_sav">
170
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
171
- <a href="javascript:;" id="sfsi_plus_save1" title="Save">Save</a>
 
172
  </div><!-- END SAVE BUTTON SECTION -->
173
  <a class="sfsiColbtn closeSec" href="javascript:;" >Collapse area</a>
174
  <!-- ERROR AND SUCCESS MESSAGE AREA-->
24
  <span class="sfsicls_email">Email</span>
25
  <div class="sfsiplus_right_info">
26
  <p><span>"Mandatory":</span> Email is the most effective tool to build up a followership.
27
+ <span style="float: right;margin-right: 13px; margin-top: -3px;"><?php if(get_option('sfsi_plus_footer_sec')=="yes") { $nonce = wp_create_nonce("remove_plusfooter"); ?> <a style="font-size:13px;margin-left:30px;color:#777777;" href="javascript:;" class="sfsiplus_removeFooter" data-nonce="<?php echo $nonce;?>">Remove credit link</a> <?php } ?></span>
28
  <label class="expanded-area" >Everybody uses email – that’s why it’s <a href="http://www.entrepreneur.com/article/230949" target="_new">much more effective than social media </a> to make people follow you. Not offering an email subscription option means losing out on future traffic to your site.</label>
29
  </p>
30
  <a href="javascript:;" class="expand-area" >Read more</a>
168
  <!-- SAVE BUTTON SECTION -->
169
  <div class="save_button tab_1_sav">
170
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
171
+ <?php $nonce = wp_create_nonce("update_plus_step1"); ?>
172
+ <a href="javascript:;" id="sfsi_plus_save1" title="Save" data-nonce="<?php echo $nonce;?>">Save</a>
173
  </div><!-- END SAVE BUTTON SECTION -->
174
  <a class="sfsiColbtn closeSec" href="javascript:;" >Collapse area</a>
175
  <!-- ERROR AND SUCCESS MESSAGE AREA-->
views/sfsi_option_view2.php CHANGED
@@ -187,7 +187,8 @@
187
  <!-- SAVE BUTTON SECTION -->
188
  <div class="save_button tab_2_sav">
189
  <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/ajax-loader.gif" class="loader-img" />
190
- <a href="javascript:;" id="sfsi_plus_save2" title="Save">Save</a>
 
191
  </div>
192
  <!-- END SAVE BUTTON SECTION -->
193
  <a class="sfsiColbtn closeSec" href="javascript:;">Collapse area</a>
187
  <!-- SAVE BUTTON SECTION -->
188
  <div class="save_button tab_2_sav">
189
  <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/ajax-loader.gif" class="loader-img" />
190
+ <?php $nonce = wp_create_nonce("update_plus_step2"); ?>
191
+ <a href="javascript:;" id="sfsi_plus_save2" title="Save" data-nonce="<?php echo $nonce;?>">Save</a>
192
  </div>
193
  <!-- END SAVE BUTTON SECTION -->
194
  <a class="sfsiColbtn closeSec" href="javascript:;">Collapse area</a>
views/sfsi_option_view3.php CHANGED
@@ -183,7 +183,8 @@
183
  <!-- SAVE BUTTON SECTION -->
184
  <div class="save_button tab_3_sav">
185
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
186
- <a href="javascript:;" id="sfsi_plus_save3" title="Save">Save</a>
 
187
  </div> <!-- END SAVE BUTTON SECTION -->
188
  <a class="sfsiColbtn closeSec" href="javascript:;" class="closeSec">Collapse area</a>
189
  <label class="closeSec"></label>
183
  <!-- SAVE BUTTON SECTION -->
184
  <div class="save_button tab_3_sav">
185
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
186
+ <?php $nonce = wp_create_nonce("update_plus_step3"); ?>
187
+ <a href="javascript:;" id="sfsi_plus_save3" title="Save" data-nonce="<?php echo $nonce;?>">Save</a>
188
  </div> <!-- END SAVE BUTTON SECTION -->
189
  <a class="sfsiColbtn closeSec" href="javascript:;" class="closeSec">Collapse area</a>
190
  <label class="closeSec"></label>
views/sfsi_option_view4.php CHANGED
@@ -259,7 +259,8 @@
259
  <!-- SAVE BUTTON SECTION -->
260
  <div class="save_button">
261
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
262
- <a href="javascript:;" id="sfsi_plus_save4" title="Save">Save</a>
 
263
  </div><!-- END SAVE BUTTON SECTION -->
264
  <a class="sfsiColbtn closeSec" href="javascript:;" class="closeSec">Collapse area</a>
265
  <label class="closeSec"></label>
259
  <!-- SAVE BUTTON SECTION -->
260
  <div class="save_button">
261
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
262
+ <?php $nonce = wp_create_nonce("update_plus_step4"); ?>
263
+ <a href="javascript:;" id="sfsi_plus_save4" title="Save" data-nonce="<?php echo $nonce;?>">Save</a>
264
  </div><!-- END SAVE BUTTON SECTION -->
265
  <a class="sfsiColbtn closeSec" href="javascript:;" class="closeSec">Collapse area</a>
266
  <label class="closeSec"></label>
views/sfsi_option_view5.php CHANGED
@@ -244,7 +244,8 @@ here what text will be displayed if a user moves his mouse over the icon:</p>
244
  <!-- SAVE BUTTON SECTION -->
245
  <div class="save_button">
246
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
247
- <a href="javascript:;" id="sfsi_plus_save5" title="Save">Save</a>
 
248
  </div><!-- END SAVE BUTTON SECTION -->
249
  <a class="sfsiColbtn closeSec" href="javascript:;" >Collapse area</a>
250
  <label class="closeSec"></label>
244
  <!-- SAVE BUTTON SECTION -->
245
  <div class="save_button">
246
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
247
+ <?php $nonce = wp_create_nonce("update_plus_step5"); ?>
248
+ <a href="javascript:;" id="sfsi_plus_save5" title="Save" data-nonce="<?php echo $nonce;?>">Save</a>
249
  </div><!-- END SAVE BUTTON SECTION -->
250
  <a class="sfsiColbtn closeSec" href="javascript:;" >Collapse area</a>
251
  <label class="closeSec"></label>
views/sfsi_option_view6.php CHANGED
@@ -47,7 +47,8 @@
47
  <!-- SAVE BUTTON SECTION -->
48
  <div class="save_button">
49
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
50
- <a href="javascript:;" id="sfsi_plus_save6" title="Save">Save</a>
 
51
 
52
  </div> <!-- END SAVE BUTTON SECTION -->
53
  <a class="sfsiColbtn closeSec" href="javascript:;">Collapse area</a>
47
  <!-- SAVE BUTTON SECTION -->
48
  <div class="save_button">
49
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
50
+ <?php $nonce = wp_create_nonce("update_plus_step6"); ?>
51
+ <a href="javascript:;" id="sfsi_plus_save6" title="Save" data-nonce="<?php echo $nonce;?>">Save</a>
52
 
53
  </div> <!-- END SAVE BUTTON SECTION -->
54
  <a class="sfsiColbtn closeSec" href="javascript:;">Collapse area</a>
views/sfsi_option_view7.php CHANGED
@@ -197,7 +197,8 @@
197
  <!-- SAVE BUTTON SECTION -->
198
  <div class="save_button">
199
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
200
- <a href="javascript:;" id="sfsi_plus_save7" title="Save">Save</a>
 
201
  </div><!-- END SAVE BUTTON SECTION -->
202
  <a class="sfsiColbtn closeSec" href="javascript:;" class="closeSec">Collapse area</a>
203
  <label class="closeSec"></label>
197
  <!-- SAVE BUTTON SECTION -->
198
  <div class="save_button">
199
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
200
+ <?php $nonce = wp_create_nonce("update_plus_step7"); ?>
201
+ <a href="javascript:;" id="sfsi_plus_save7" title="Save" data-nonce="<?php echo $nonce;?>">Save</a>
202
  </div><!-- END SAVE BUTTON SECTION -->
203
  <a class="sfsiColbtn closeSec" href="javascript:;" class="closeSec">Collapse area</a>
204
  <label class="closeSec"></label>
views/sfsi_option_view8.php CHANGED
@@ -242,7 +242,8 @@
242
  <!-- SAVE BUTTON SECTION -->
243
  <div class="save_button">
244
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
245
- <a href="javascript:;" id="sfsi_plus_save8" title="Save">Save</a>
 
246
 
247
  </div> <!-- END SAVE BUTTON SECTION -->
248
  <a class="sfsiColbtn closeSec" href="javascript:;" class="closeSec">Collapse area</a>
242
  <!-- SAVE BUTTON SECTION -->
243
  <div class="save_button">
244
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
245
+ <?php $nonce = wp_create_nonce("update_plus_step8"); ?>
246
+ <a href="javascript:;" id="sfsi_plus_save8" title="Save" data-nonce="<?php echo $nonce;?>">Save</a>
247
 
248
  </div> <!-- END SAVE BUTTON SECTION -->
249
  <a class="sfsiColbtn closeSec" href="javascript:;" class="closeSec">Collapse area</a>
views/sfsi_pop_content.php CHANGED
@@ -257,7 +257,8 @@ I want to see how it works</a></div>
257
  <div class="pop-overlay read-overlay demail-2" >
258
  <div class="pop_up_box sfsi_pop_up" >
259
  <h4 class="activate">Ok, fine, however for using this plugin for FREE, please support us by activating a link back to our site:</h4>
260
- <div class="button"><a href="javascript:;" class="activate_footer activate" title="Ok, activate link">Ok, activate link</a></div>
 
261
  <a href="javascript:;" id="deac_email3" title="Don’t activate link">Don’t activate link</a>
262
  </div>
263
  </div>
257
  <div class="pop-overlay read-overlay demail-2" >
258
  <div class="pop_up_box sfsi_pop_up" >
259
  <h4 class="activate">Ok, fine, however for using this plugin for FREE, please support us by activating a link back to our site:</h4>
260
+ <?php $nonce = wp_create_nonce("active_plusfooter");?>
261
+ <div class="button"><a href="javascript:;" class="sfsiplus_activate_footer activate" title="Ok, activate link" data-nonce="<?php echo $nonce;?>">Ok, activate link</a></div>
262
  <a href="javascript:;" id="deac_email3" title="Don’t activate link">Don’t activate link</a>
263
  </div>
264
  </div>