Social Share Icons & Social Share Buttons - Version 3.2.9

Version Description

  • Q3 auto opening and opening of Floating and 'before and after posts' open automatically for new installs
  • Popup open error fixed
  • Analyst 5.4
  • Added the waiting imgage on contact
  • Removed console.log
Download this release

Release Info

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

Code changes from version 3.2.8 to 3.2.9

analyst/src/Account/Account.php CHANGED
@@ -246,14 +246,9 @@ class Account implements TrackerContract
246
  $question = isset($_POST['question']) ? stripslashes($_POST['question']) : null;
247
  $reason = isset($_POST['reason']) ? stripslashes($_POST['reason']) : null;
248
 
249
- $response = DeactivateRequest::make($this->collector, $this->id, $this->path, $question, $reason)
250
  ->execute($this->requestor);
251
 
252
- // Exit if request failed
253
- if (!$response->isSuccess()) {
254
- wp_send_json_error($response->body);
255
- }
256
-
257
  $this->setIsInstalled(false);
258
 
259
  AccountDataFactory::syncData();
@@ -268,12 +263,7 @@ class Account implements TrackerContract
268
  */
269
  public function onOptInListener()
270
  {
271
- $response = OptInRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
272
-
273
- // Exit if request failed
274
- if (!$response->isSuccess()) {
275
- wp_send_json_error($response->body);
276
- }
277
 
278
  $this->setIsOptedIn(true);
279
 
@@ -289,12 +279,7 @@ class Account implements TrackerContract
289
  */
290
  public function onOptOutListener()
291
  {
292
- $response = OptOutRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
293
-
294
- // Exit if request failed
295
- if (!$response->isSuccess()) {
296
- wp_send_json_error($response->body);
297
- }
298
 
299
  $this->setIsOptedIn(false);
300
 
@@ -318,12 +303,7 @@ class Account implements TrackerContract
318
  $this->setIsInstallResolved(true);
319
  $cache->delete('plugin_to_install');
320
 
321
- $response = InstallRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
322
-
323
- // Exit if request failed
324
- if (!$response->isSuccess()) {
325
- wp_send_json_error($response->body);
326
- }
327
 
328
  $this->setIsSigned(true);
329
 
246
  $question = isset($_POST['question']) ? stripslashes($_POST['question']) : null;
247
  $reason = isset($_POST['reason']) ? stripslashes($_POST['reason']) : null;
248
 
249
+ DeactivateRequest::make($this->collector, $this->id, $this->path, $question, $reason)
250
  ->execute($this->requestor);
251
 
 
 
 
 
 
252
  $this->setIsInstalled(false);
253
 
254
  AccountDataFactory::syncData();
263
  */
264
  public function onOptInListener()
265
  {
266
+ OptInRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
 
 
 
 
 
267
 
268
  $this->setIsOptedIn(true);
269
 
279
  */
280
  public function onOptOutListener()
281
  {
282
+ OptOutRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
 
 
 
 
 
283
 
284
  $this->setIsOptedIn(false);
285
 
303
  $this->setIsInstallResolved(true);
304
  $cache->delete('plugin_to_install');
305
 
306
+ InstallRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
 
 
 
 
 
307
 
308
  $this->setIsSigned(true);
309
 
analyst/version.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  return array(
4
  // The sdk version
5
- 'sdk' => '1.3.28',
6
 
7
  // Minimum supported WordPress version
8
  'wp' => '4.7',
2
 
3
  return array(
4
  // The sdk version
5
+ 'sdk' => '1.3.30',
6
 
7
  // Minimum supported WordPress version
8
  'wp' => '4.7',
css/sfsi-admin-style.css CHANGED
@@ -4743,7 +4743,7 @@ div#sfsi_plus_langnotice {
4743
  .sfsi_plus_responsive_default_icon_container .sfsi_plus_icon_container .sfsi_plus_responsive_icon_item_container,
4744
  .sfsi_plus_responsive_custom_icon_container .sfsi_plus_icon_container .sfsi_plus_responsive_icon_item_container {
4745
  padding: 0px 20px;
4746
- width: 236px;
4747
  text-align: center;
4748
  margin-right: 8px;
4749
  margin-top: -5px;
@@ -4943,3 +4943,41 @@ input[type="number"] {
4943
  height: unset;
4944
  padding: 13px !important;
4945
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4743
  .sfsi_plus_responsive_default_icon_container .sfsi_plus_icon_container .sfsi_plus_responsive_icon_item_container,
4744
  .sfsi_plus_responsive_custom_icon_container .sfsi_plus_icon_container .sfsi_plus_responsive_icon_item_container {
4745
  padding: 0px 20px;
4746
+ width: 245px;
4747
  text-align: center;
4748
  margin-right: 8px;
4749
  margin-top: -5px;
4943
  height: unset;
4944
  padding: 13px !important;
4945
  }
4946
+ .tab8 .sfsi_float_position_icon_label {
4947
+ border: 1px solid #ccc;
4948
+ border-radius: 18px;
4949
+ margin-top: 3px;
4950
+ position: relative;
4951
+ width: 189px;
4952
+ height: 148px;
4953
+ float: left;
4954
+ }
4955
+ .tab8 .sfsi_float_position_icon_label img {
4956
+ margin-left: auto;
4957
+ margin-right: auto;
4958
+ display: block;
4959
+ margin-top: 7px;
4960
+ }
4961
+ .tab8 .sfsi_float_position_icon_label img.sfsi_img_center_bottom {
4962
+ position: absolute;
4963
+ bottom: 0px;
4964
+ left: 18%;
4965
+ }
4966
+ .tab8 .flthmonpg .radio {
4967
+ margin-top: 55px;
4968
+ }
4969
+ .tab8 ul li .radio {
4970
+ float: left;
4971
+ }
4972
+ @media screen and (max-width: 1366px) and (min-width: 1366px){
4973
+ .tab8 .sfsi_flicnsoptn3 {
4974
+ font-size: 18px !important;
4975
+ min-width: 113px !important;
4976
+ margin: 60px 0px 0 10px !important;
4977
+ width: auto !important;
4978
+ }
4979
+ }
4980
+ .tab8 ul.sfsiplus_icn_listing8 li .sfsiplus_tab_3_icns li{
4981
+ width:33%;
4982
+ min-width:33%;
4983
+ }
css/sfsi-style.css CHANGED
@@ -2871,7 +2871,7 @@ ul.cstmskin_iconlist {
2871
  /*modify by palak*/
2872
  .tab8 ul.sfsiplus_icn_listing8 li {
2873
  float: left;
2874
- padding: 11px 0 26px 8px;
2875
  width: 100%;
2876
  /*max-width: 1000px;*/
2877
  margin: 0
2871
  /*modify by palak*/
2872
  .tab8 ul.sfsiplus_icn_listing8 li {
2873
  float: left;
2874
+ padding: 11px 0 26px 0;
2875
  width: 100%;
2876
  /*max-width: 1000px;*/
2877
  margin: 0
images/float_position_icon.png ADDED
Binary file
js/custom-admin.js CHANGED
@@ -931,7 +931,6 @@ function sfsi_plus_save_export() {
931
  type: "post",
932
  data: data,
933
  success: function (s) {
934
- console.log(s);
935
  if (s == "wrong_nonce") {
936
  sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
937
  global_error = 1;
@@ -1088,7 +1087,6 @@ function sfsi_plus_update_step8() {
1088
  /*SFSI("#sfsi_plus_Show_popupOn_PageIDs :selected").each(function(s, i) {
1089
  _[s] = SFSI(i).val()
1090
  });*/
1091
- console.log(responsive_icons, 'testing responsive');
1092
  var mst = SFSI("input[name='sfsi_plus_icons_floatMargin_top']").val(),
1093
  msb = SFSI("input[name='sfsi_plus_icons_floatMargin_bottom']").val(),
1094
  msl = SFSI("input[name='sfsi_plus_icons_floatMargin_left']").val(),
@@ -1329,7 +1327,8 @@ function sfsi_plus_make_popBox() {
1329
  function sfsi_plus_stick_widget(s) {
1330
  0 == sfsiplus_initTop.length && (SFSI(".sfsi_plus_widget").each(function (s) {
1331
  sfsiplus_initTop[s] = SFSI(this).position().top;
1332
- }), console.log(sfsiplus_initTop));
 
1333
  var i = SFSI(window).scrollTop(),
1334
  e = [],
1335
  t = [];
@@ -1514,6 +1513,74 @@ function sfsi_plus_create_suscriber_form() {
1514
  var global_error = 0;
1515
  SFSI(document).ready(function (s) {
1516
  //changes done {Monad}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1517
 
1518
  SFSI(document).on("click", ".sfsi-notice-dismiss", function () {
1519
 
@@ -1599,7 +1666,6 @@ SFSI(document).ready(function (s) {
1599
  SFSI('input[name="sfsi_pplus_icons_suppress_errors"][value="no"]').prop('checked', 'true');
1600
  break;
1601
  case 'sfsi_plus_responsive_icon_show_count':
1602
- console.log(s.val());
1603
  if ("yes" == s.val()) {
1604
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icons_count').show();
1605
  } else {
@@ -2417,13 +2483,10 @@ SFSI(document).ready(function (s) {
2417
  window.scroll(0, 30);
2418
  var scrolto_elem = SFSI('.sfsiplusbeforeafterpostselector');
2419
  if (scrolto_elem && scrolto_elem.length > 0 && scrolto_elem.offset() && scrolto_elem.offset().top) {
2420
- console.log('scrolling:', 'window.scrollTo(0,' + scrolto_elem.offset().top + ');');
2421
  window.scrollTo(0, scrolto_elem.offset().top - 30);
2422
  setTimeout(function () {
2423
- console.log('scrolling:', 'window.scrollTo(0,' + scrolto_elem.offset().top + ');');
2424
  window.scrollTo(0, scrolto_elem.offset().top - 30);
2425
  }, 1000);
2426
- // console.log(window.scrollTo(0,scrolto_elem.offset().top));
2427
  }
2428
  break;
2429
  }
@@ -2567,7 +2630,6 @@ SFSI(document).ready(function () {
2567
  });
2568
  SFSI('#sfsi_plus_jivo_offline_chat #sfsi_sales form').submit(function (event) {
2569
  event & event.preventDefault();
2570
- // console.log(event);
2571
  var target = SFSI(this).parents('.tab-content');
2572
  var message = SFSI(this).find('textarea[name="question"]').val();
2573
  var email = SFSI(this).find('input[name="email"]').val();
@@ -2575,12 +2637,10 @@ SFSI(document).ready(function () {
2575
  var nonce = SFSI(this).find('input[name="nonce"]').val();
2576
 
2577
  if ("" === email || false === re.test(String(email).toLowerCase())) {
2578
- // console.log(SFSI(this).find('input[name="email"]'));
2579
  SFSI(this).find('input[name="email"]').css('background-color', 'red');
2580
  SFSI(this).find('input[name="email"]').on('keyup', function () {
2581
  var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
2582
  var email = SFSI(this).val();
2583
- // console.log(email,re.test(String(email).toLowerCase()) );
2584
  if ("" !== email && true === re.test(String(email).toLowerCase())) {
2585
  SFSI(this).css('background-color', '#fff');
2586
  }
@@ -2624,8 +2684,6 @@ SFSI(document).on("click", '.checkbox', function () {
2624
  var inputName = s.attr("name");
2625
  var inputChecked = s.attr("checked");
2626
 
2627
- console.log(inputName, inputChecked);
2628
-
2629
  //----------------- Customization for twitter card section STARTS----------------------------//
2630
 
2631
  switch (inputName) {
@@ -2716,13 +2774,11 @@ SFSI(document).on("click", '.checkbox', function () {
2716
  break;
2717
 
2718
  case 'sfsi_plus_icon_hover_show_pinterest':
2719
- console.log('incase', inputName, inputChecked);
2720
  var elem = SFSI('input[name="' + inputName + '"]');
2721
 
2722
  var togglelem = elem.parent().next();
2723
 
2724
  if (inputChecked) {
2725
- console.log('in checked', inputName, inputChecked, SFSI('.sfsi_plus_include_exclude_wrapper .sfsi_premium_restriction_warning_pinterest'));
2726
 
2727
  togglelem.removeClass('hide').addClass('show');
2728
  SFSI('.sfsi_plus_include_exclude_wrapper .sfsi_premium_restriction_warning_pinterest').removeClass('hide');
@@ -3032,7 +3088,6 @@ function sfsi_plus_delete_wechat_scan_upload(event, context) {
3032
  async: !0,
3033
  success: function (s) {
3034
  if (s.res == 'success') {
3035
- console.log(s);
3036
  jQuery('input[name="sfsi_plus_wechat_scan_image"]').val('');
3037
  jQuery('.sfsi_plus_wechat_display>img').attr('src', '');
3038
  jQuery('.sfsi_plus_wechat_display').removeClass("show").addClass('hide');
@@ -3059,7 +3114,6 @@ function sfsi_plus_checkbox_checker() {
3059
  // check if Custom checkbox is loaded.
3060
  if (undefined !== this.sfsi_plus_styled_input) {
3061
  jQuery(window).load(function () {
3062
- console.log(window.sfsi_plus_checkbox_loaded);
3063
  if (undefined == window.sfsi_plus_checkbox_loaded) {
3064
  alert('There was js conflict. and we couldn\'t load our plugin successfully. please check with other plugins for the conflict.');
3065
  }
@@ -3076,37 +3130,63 @@ function sfsi_plus_close_quickpay(e) {
3076
  }
3077
 
3078
  // Worker Plugin
3079
- function sfsi_plus_worker_plugin() {
3080
- var nonce = SFSI("#sfsi_plus_worker_plugin").attr("data-nonce");
3081
- var e = {
3082
- action: "worker_plugin",
 
 
3083
  customs: true,
 
 
3084
  nonce: nonce
3085
  };
 
3086
  SFSI.ajax({
3087
- url: sfsi_plus_ajax_object.ajax_url,
3088
- type: "post",
3089
- data: e,
3090
- success: function (msg) {
3091
- console.log(msg);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3092
  }
3093
  });
3094
 
3095
  }
 
3096
  // <------------------------* Responsive icon *----------------------->
3097
  function sfsi_plus_responsive_icon_intraction_handler() {
3098
  window.sfsi_plus_fittext_shouldDisplay = true;
3099
  SFSI('select[name="sfsi_plus_responsive_icons_settings_edge_type"]').on('change', function () {
3100
  $target_div = (SFSI(this).parent());
3101
  if (SFSI(this).val() === "Round") {
3102
- console.log('Round', 'Round', SFSI(this).val());
3103
 
3104
  $target_div.parent().children().css('display', 'inline-block');
3105
  var radius = jQuery('select[name="sfsi_plus_responsive_icons_settings_edge_radius"]').val() + 'px'
3106
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icon_item_container,.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icons_count').css('border-radius', radius);
3107
 
3108
  } else {
3109
- console.log('sharp', 'sharp', SFSI(this).val(), $target_div.parent().children(), $target_div.parent().children().hide());
3110
 
3111
  $target_div.parent().children().hide();
3112
  $target_div.show();
@@ -3212,7 +3292,6 @@ function sfsi_plus_responsive_icon_intraction_handler() {
3212
  })
3213
  jQuery('.sfsi_plus_responsive_custom_url_toggler, .sfsi_plus_responsive_default_url_toggler').click(function (event) {
3214
  event.preventDefault();
3215
- console.log('testing responsive');
3216
  sfsi_plus_responsive_open_url(event);
3217
  });
3218
  jQuery('.sfsi_plus_responsive_custom_url_toggler, .sfsi_plus_responsive_default_url_toggler').click(function (event) {
@@ -3221,7 +3300,6 @@ function sfsi_plus_responsive_icon_intraction_handler() {
3221
  })
3222
  jQuery('.sfsi_plus_responsive_custom_url_hide, .sfsi_plus_responsive_default_url_hide').click(function (event) {
3223
  event.preventDefault();
3224
- /* console.log(event,jQuery(event.target)); */
3225
  jQuery(event.target).parent().parent().find('.sfsi_plus_responsive_custom_url_hide').hide();
3226
  jQuery(event.target).parent().parent().find('.sfsi_plus_responsive_url_input').hide();
3227
  jQuery(event.target).parent().parent().find('.sfsi_plus_responsive_default_url_hide').hide();
@@ -3330,7 +3408,6 @@ function sfsi_plus_responsive_icon_counter_tgl(hide, show, ref = null) {
3330
  function sfsi_plus_responsive_toggle_count() {
3331
  var data = jQuery('input[name="sfsi_plus_responsive_icon_show_count"]:checked').val();
3332
  var data2 = jQuery('input[name="sfsi_plus_display_counts"]:checked').val();
3333
- /* console.log('toggleer ',data,data2); */
3334
  if (data2 == "yes" && 'yes' == data) {
3335
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icons_count').css('display', 'inline-block');
3336
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_icons_container').removeClass('sfsi_plus_responsive_without_counter_icons').addClass('sfsi_plus_responsive_with_counter_icons');
@@ -3353,12 +3430,10 @@ function sfsi_plus_responsive_icon_hide_responsive_options() {
3353
  jQuery('.sfsiplus_PostsSettings_section').show();
3354
  jQuery('.sfsi_plus_choose_post_types_section').show();
3355
  jQuery('.sfsi_plus_not_responsive').show();
3356
- // jQuery('.sfsiplus_icn_listing8.sfsi_plus_closerli').hide();
3357
  }
3358
 
3359
  function sfsi_plus_responsive_icon_show_responsive_options() {
3360
  jQuery('.sfsiplus_PostsSettings_section').hide();
3361
- // jQuery('.sfsiplus_PostsSettings_section').show();
3362
  jQuery('.sfsi_plus_choose_post_types_section').hide();
3363
  jQuery('.sfsi_plus_not_responsive').hide();
3364
  window.sfsi_plus_fittext_shouldDisplay = true;
@@ -3382,11 +3457,8 @@ function sfsi_plus_scroll_to_div(option_id, scroll_selector) {
3382
  scrollTop: jQuery(scroll_selector).offset().top
3383
  }, 1000);
3384
  }
3385
-
3386
  function sfsi_plus_fitText(container) {
3387
- /* console.log(container,container.parent().parent(),container.parent().parent().hasClass('sfsi_plus_icons_container_box_fixed_container')); */
3388
  if (container.parent().parent().hasClass('sfsi_plus_icons_container_box_fixed_container')) {
3389
- /* console.log(window.sfsi_plus_fittext_shouldDisplay); */
3390
  if (window.sfsi_plus_fittext_shouldDisplay === true) {
3391
  if (jQuery('select[name="sfsi_plus_responsive_icons_settings_icon_width_type"]').val() == "Fully responsive") {
3392
  var all_icon_width = jQuery('.sfsi_plus_responsive_icons .sfsi_plus_icons_container').width();
@@ -3449,7 +3521,6 @@ function sfsi_plus_fitText(container) {
3449
  }
3450
  } else {
3451
  var span = container.find('span');
3452
- /* console.log(span); */
3453
  span.css('font-size', 'initial');
3454
  span.show();
3455
  }
@@ -3458,7 +3529,6 @@ function sfsi_plus_fitText(container) {
3458
 
3459
  function sfsi_plus_fixedWidth_fitText(container) {
3460
  return;
3461
- /* console.log(sfsi_plus_fittext_shouldDisplay); */
3462
  if (window.sfsi_plus_fittext_shouldDisplay === true) {
3463
  if (jQuery('select[name="sfsi_plus_responsive_icons_settings_icon_width_type"]').val() == "Fixed icon width") {
3464
  var all_icon_width = jQuery('.sfsi_plus_responsive_icons .sfsi_plus_icons_container').width();
@@ -3552,4 +3622,18 @@ function sfsi_plus_resize_icons_container() {
3552
  }
3553
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_icons_container').attr('style', sfsi_plus_inline_style);
3554
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3555
  }
931
  type: "post",
932
  data: data,
933
  success: function (s) {
 
934
  if (s == "wrong_nonce") {
935
  sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
936
  global_error = 1;
1087
  /*SFSI("#sfsi_plus_Show_popupOn_PageIDs :selected").each(function(s, i) {
1088
  _[s] = SFSI(i).val()
1089
  });*/
 
1090
  var mst = SFSI("input[name='sfsi_plus_icons_floatMargin_top']").val(),
1091
  msb = SFSI("input[name='sfsi_plus_icons_floatMargin_bottom']").val(),
1092
  msl = SFSI("input[name='sfsi_plus_icons_floatMargin_left']").val(),
1327
  function sfsi_plus_stick_widget(s) {
1328
  0 == sfsiplus_initTop.length && (SFSI(".sfsi_plus_widget").each(function (s) {
1329
  sfsiplus_initTop[s] = SFSI(this).position().top;
1330
+ })
1331
+ );
1332
  var i = SFSI(window).scrollTop(),
1333
  e = [],
1334
  t = [];
1513
  var global_error = 0;
1514
  SFSI(document).ready(function (s) {
1515
  //changes done {Monad}
1516
+ function sfsi_plus_open_admin_section(id){
1517
+ SFSI("#ui-id-"+(id+1)).show();
1518
+ SFSI("#ui-id-"+id).removeClass("ui-corner-all");
1519
+ SFSI("#ui-id-"+id).addClass("ui-corner-top");
1520
+ SFSI("#ui-id-"+id).addClass("accordion-header-active");
1521
+ SFSI("#ui-id-"+id).addClass("ui-state-active");
1522
+ SFSI("#ui-id-"+id).attr("aria-expanded","false");
1523
+ SFSI("#ui-id-"+id).attr("aria-selected","true");
1524
+ if(SFSI("#ui-id-"+(id+1)).length>0){
1525
+ SFSI("#ui-id-"+(id-2))[0].scrollIntoView();
1526
+ }
1527
+ }
1528
+ var sfsi_plus_show_option1 = SFSI('input[name="sfsi_plus_show_via_widget"]:checked').val()||'no';
1529
+ var sfsi_plus_show_option2 = SFSI('input[name="sfsi_plus_float_on_page"]:checked').val()||'no';
1530
+ var sfsi_plus_show_option3 = SFSI('input[name="sfsi_plus_place_item_manually"]:checked').val()||'no';
1531
+ var sfsi_plus_show_option4 = SFSI('input[name="sfsi_plus_show_item_onposts"]:checked').val()||'no';
1532
+ var sfsi_plus_show_option5 = SFSI('input[name="sfsi_plus_place_item_gutenberg"]:checked').val()||'no';
1533
+
1534
+ var sfsi_plus_analyst_popup = SFSI('#sfsi_plus_analyst_pop').attr('data-status');
1535
+
1536
+ if(sfsi_plus_analyst_popup =="no"){
1537
+ if(sfsi_plus_show_option1=="no" && sfsi_plus_show_option2=='no' && sfsi_plus_show_option3 =='no' && sfsi_plus_show_option4 == 'no' && sfsi_plus_show_option5 =='no'){
1538
+ sfsi_plus_open_admin_section(5);
1539
+ if(SFSI("#ui-id-5").length==0 || SFSI("#ui-id-5").attr('aria-selected')=="false"){
1540
+ setTimeout(function(){
1541
+ sfsi_plus_open_admin_section(5);
1542
+ if(SFSI("#ui-id-5").length==0 || SFSI("#ui-id-5").attr('aria-selected')=="false"){
1543
+ setTimeout(function(){
1544
+ sfsi_plus_open_admin_section(5);
1545
+ if(SFSI("#ui-id-5").length==0 || SFSI("#ui-id-5").attr('aria-selected')=="false"){
1546
+ setTimeout(function(){
1547
+ sfsi_plus_open_admin_section(5);
1548
+ if(SFSI("#ui-id-5").length==0 || SFSI("#ui-id-5").attr('aria-selected')=="false"){
1549
+ setTimeout(function(){
1550
+ sfsi_plus_open_admin_section(5);
1551
+ },2000);
1552
+ }
1553
+ },2000);
1554
+ }
1555
+ },2000);
1556
+ }
1557
+ },2000);
1558
+ }
1559
+ }
1560
+ }else{
1561
+ SFSI("#analyst-install-skip, #analyst-install-action").click(function(){
1562
+ sfsi_plus_open_admin_section(5);
1563
+ if(SFSI("#ui-id-5").length==1 || SFSI("#ui-id-5").attr('aria-selected')=="false"){
1564
+ setTimeout(function(){
1565
+ sfsi_plus_open_admin_section(5);
1566
+ if(SFSI("#ui-id-5").length==1 || SFSI("#ui-id-5").attr('aria-selected')=="false"){
1567
+ setTimeout(function(){
1568
+ sfsi_plus_open_admin_section(5);
1569
+ if(SFSI("#ui-id-5").length==1 || SFSI("#ui-id-5").attr('aria-selected')=="false"){
1570
+ setTimeout(function(){
1571
+ sfsi_plus_open_admin_section(5);
1572
+ },2000);
1573
+ }
1574
+ },2000);
1575
+ }
1576
+ },2000);
1577
+ }
1578
+ })
1579
+ }
1580
+
1581
+ SFSI(document).on("click", "#sfsi_dummy_chat_icon", function () {
1582
+ SFSI(".sfsi_plus_wait_container").show();
1583
+ });
1584
 
1585
  SFSI(document).on("click", ".sfsi-notice-dismiss", function () {
1586
 
1666
  SFSI('input[name="sfsi_pplus_icons_suppress_errors"][value="no"]').prop('checked', 'true');
1667
  break;
1668
  case 'sfsi_plus_responsive_icon_show_count':
 
1669
  if ("yes" == s.val()) {
1670
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icons_count').show();
1671
  } else {
2483
  window.scroll(0, 30);
2484
  var scrolto_elem = SFSI('.sfsiplusbeforeafterpostselector');
2485
  if (scrolto_elem && scrolto_elem.length > 0 && scrolto_elem.offset() && scrolto_elem.offset().top) {
 
2486
  window.scrollTo(0, scrolto_elem.offset().top - 30);
2487
  setTimeout(function () {
 
2488
  window.scrollTo(0, scrolto_elem.offset().top - 30);
2489
  }, 1000);
 
2490
  }
2491
  break;
2492
  }
2630
  });
2631
  SFSI('#sfsi_plus_jivo_offline_chat #sfsi_sales form').submit(function (event) {
2632
  event & event.preventDefault();
 
2633
  var target = SFSI(this).parents('.tab-content');
2634
  var message = SFSI(this).find('textarea[name="question"]').val();
2635
  var email = SFSI(this).find('input[name="email"]').val();
2637
  var nonce = SFSI(this).find('input[name="nonce"]').val();
2638
 
2639
  if ("" === email || false === re.test(String(email).toLowerCase())) {
 
2640
  SFSI(this).find('input[name="email"]').css('background-color', 'red');
2641
  SFSI(this).find('input[name="email"]').on('keyup', function () {
2642
  var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
2643
  var email = SFSI(this).val();
 
2644
  if ("" !== email && true === re.test(String(email).toLowerCase())) {
2645
  SFSI(this).css('background-color', '#fff');
2646
  }
2684
  var inputName = s.attr("name");
2685
  var inputChecked = s.attr("checked");
2686
 
 
 
2687
  //----------------- Customization for twitter card section STARTS----------------------------//
2688
 
2689
  switch (inputName) {
2774
  break;
2775
 
2776
  case 'sfsi_plus_icon_hover_show_pinterest':
 
2777
  var elem = SFSI('input[name="' + inputName + '"]');
2778
 
2779
  var togglelem = elem.parent().next();
2780
 
2781
  if (inputChecked) {
 
2782
 
2783
  togglelem.removeClass('hide').addClass('show');
2784
  SFSI('.sfsi_plus_include_exclude_wrapper .sfsi_premium_restriction_warning_pinterest').removeClass('hide');
3088
  async: !0,
3089
  success: function (s) {
3090
  if (s.res == 'success') {
 
3091
  jQuery('input[name="sfsi_plus_wechat_scan_image"]').val('');
3092
  jQuery('.sfsi_plus_wechat_display>img').attr('src', '');
3093
  jQuery('.sfsi_plus_wechat_display').removeClass("show").addClass('hide');
3114
  // check if Custom checkbox is loaded.
3115
  if (undefined !== this.sfsi_plus_styled_input) {
3116
  jQuery(window).load(function () {
 
3117
  if (undefined == window.sfsi_plus_checkbox_loaded) {
3118
  alert('There was js conflict. and we couldn\'t load our plugin successfully. please check with other plugins for the conflict.');
3119
  }
3130
  }
3131
 
3132
  // Worker Plugin
3133
+ function sfsi_plus_worker_plugin(data)
3134
+ {
3135
+ var nonce = SFSI("#sfsi_plus_worker_plugin").attr("data-nonce");
3136
+ var redirectUrl = SFSI("#sfsi_plus_worker_plugin").attr("data-plugin-list-url");
3137
+ var e = {
3138
+ action:"worker_plugin",
3139
  customs: true,
3140
+ premium_url:data.installation_premium_plugin_file,
3141
+ licence:data.license_key,
3142
  nonce: nonce
3143
  };
3144
+ sfsi_plus_worker_wait();
3145
  SFSI.ajax({
3146
+ url:sfsi_plus_ajax_object.ajax_url,
3147
+ type:"post",
3148
+ data:e,
3149
+ success:function(msg) {
3150
+ window.msg = msg;
3151
+ var error =false;
3152
+ var message ="";
3153
+ if(msg[0]=="{"){
3154
+ message = JSON.parse(msg);
3155
+ }else{
3156
+ var json_txts = msg.match(/\{.*\}/g);
3157
+ if(json_txts.length>0){
3158
+ message = JSON.parse(json_txts[0])
3159
+ }else{
3160
+ error = true;
3161
+ }
3162
+ }
3163
+ if(false==error && message.installed==true && message.activate==null){
3164
+ window.location.href = redirectUrl;
3165
+ }else{
3166
+ jQuery('.sfsi_plus_premium_installer-overlay').hide();
3167
+ alert('unexpected error occured It might be due to server permission issue. Please download the file and install manually.');
3168
+ }
3169
+ },
3170
+ error:function(msg){
3171
+ jQuery('.sfsi_plus_premium_installer-overlay').hide();
3172
+ alert('unexpected error occured It might be due to server permission issue. Please install manually.');
3173
  }
3174
  });
3175
 
3176
  }
3177
+
3178
  // <------------------------* Responsive icon *----------------------->
3179
  function sfsi_plus_responsive_icon_intraction_handler() {
3180
  window.sfsi_plus_fittext_shouldDisplay = true;
3181
  SFSI('select[name="sfsi_plus_responsive_icons_settings_edge_type"]').on('change', function () {
3182
  $target_div = (SFSI(this).parent());
3183
  if (SFSI(this).val() === "Round") {
 
3184
 
3185
  $target_div.parent().children().css('display', 'inline-block');
3186
  var radius = jQuery('select[name="sfsi_plus_responsive_icons_settings_edge_radius"]').val() + 'px'
3187
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icon_item_container,.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icons_count').css('border-radius', radius);
3188
 
3189
  } else {
 
3190
 
3191
  $target_div.parent().children().hide();
3192
  $target_div.show();
3292
  })
3293
  jQuery('.sfsi_plus_responsive_custom_url_toggler, .sfsi_plus_responsive_default_url_toggler').click(function (event) {
3294
  event.preventDefault();
 
3295
  sfsi_plus_responsive_open_url(event);
3296
  });
3297
  jQuery('.sfsi_plus_responsive_custom_url_toggler, .sfsi_plus_responsive_default_url_toggler').click(function (event) {
3300
  })
3301
  jQuery('.sfsi_plus_responsive_custom_url_hide, .sfsi_plus_responsive_default_url_hide').click(function (event) {
3302
  event.preventDefault();
 
3303
  jQuery(event.target).parent().parent().find('.sfsi_plus_responsive_custom_url_hide').hide();
3304
  jQuery(event.target).parent().parent().find('.sfsi_plus_responsive_url_input').hide();
3305
  jQuery(event.target).parent().parent().find('.sfsi_plus_responsive_default_url_hide').hide();
3408
  function sfsi_plus_responsive_toggle_count() {
3409
  var data = jQuery('input[name="sfsi_plus_responsive_icon_show_count"]:checked').val();
3410
  var data2 = jQuery('input[name="sfsi_plus_display_counts"]:checked').val();
 
3411
  if (data2 == "yes" && 'yes' == data) {
3412
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icons_count').css('display', 'inline-block');
3413
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_icons_container').removeClass('sfsi_plus_responsive_without_counter_icons').addClass('sfsi_plus_responsive_with_counter_icons');
3430
  jQuery('.sfsiplus_PostsSettings_section').show();
3431
  jQuery('.sfsi_plus_choose_post_types_section').show();
3432
  jQuery('.sfsi_plus_not_responsive').show();
 
3433
  }
3434
 
3435
  function sfsi_plus_responsive_icon_show_responsive_options() {
3436
  jQuery('.sfsiplus_PostsSettings_section').hide();
 
3437
  jQuery('.sfsi_plus_choose_post_types_section').hide();
3438
  jQuery('.sfsi_plus_not_responsive').hide();
3439
  window.sfsi_plus_fittext_shouldDisplay = true;
3457
  scrollTop: jQuery(scroll_selector).offset().top
3458
  }, 1000);
3459
  }
 
3460
  function sfsi_plus_fitText(container) {
 
3461
  if (container.parent().parent().hasClass('sfsi_plus_icons_container_box_fixed_container')) {
 
3462
  if (window.sfsi_plus_fittext_shouldDisplay === true) {
3463
  if (jQuery('select[name="sfsi_plus_responsive_icons_settings_icon_width_type"]').val() == "Fully responsive") {
3464
  var all_icon_width = jQuery('.sfsi_plus_responsive_icons .sfsi_plus_icons_container').width();
3521
  }
3522
  } else {
3523
  var span = container.find('span');
 
3524
  span.css('font-size', 'initial');
3525
  span.show();
3526
  }
3529
 
3530
  function sfsi_plus_fixedWidth_fitText(container) {
3531
  return;
 
3532
  if (window.sfsi_plus_fittext_shouldDisplay === true) {
3533
  if (jQuery('select[name="sfsi_plus_responsive_icons_settings_icon_width_type"]').val() == "Fixed icon width") {
3534
  var all_icon_width = jQuery('.sfsi_plus_responsive_icons .sfsi_plus_icons_container').width();
3622
  }
3623
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_icons_container').attr('style', sfsi_plus_inline_style);
3624
 
3625
+ }
3626
+
3627
+ function sfsi_plus_worker_wait(){
3628
+ var html = '<div class="pop-overlay read-overlay sfsi_plus_premium_installer-overlay" style="background: rgba(255, 255, 255, 0.6); z-index: 9999; overflow-y: auto; display: block;">'+
3629
+ '<div style="width:100%;height:100%"> <div style="width:50px;margin:auto;margin-top:20%"> <style type="text/css"> .lds-roller{display: inline-block; position: relative; width: 64px; height: 64px;}.lds-roller div{animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; transform-origin: 32px 32px;}.lds-roller div:after{content: " "; display: block; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #333; margin: -3px 0 0 -3px;}.lds-roller div:nth-child(1){animation-delay: -0.036s;}.lds-roller div:nth-child(1):after{top: 50px; left: 50px;}.lds-roller div:nth-child(2){animation-delay: -0.072s;}.lds-roller div:nth-child(2):after{top: 54px; left: 45px;}.lds-roller div:nth-child(3){animation-delay: -0.108s;}.lds-roller div:nth-child(3):after{top: 57px; left: 39px;}.lds-roller div:nth-child(4){animation-delay: -0.144s;}.lds-roller div:nth-child(4):after{top: 58px; left: 32px;}.lds-roller div:nth-child(5){animation-delay: -0.18s;}.lds-roller div:nth-child(5):after{top: 57px; left: 25px;}.lds-roller div:nth-child(6){animation-delay: -0.216s;}.lds-roller div:nth-child(6):after{top: 54px; left: 19px;}.lds-roller div:nth-child(7){animation-delay: -0.252s;}.lds-roller div:nth-child(7):after{top: 50px; left: 14px;}.lds-roller div:nth-child(8){animation-delay: -0.288s;}.lds-roller div:nth-child(8):after{top: 45px; left: 10px;}@keyframes lds-roller{0%{transform: rotate(0deg);}100%{transform: rotate(360deg);}}</style> <div class="lds-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div></div>'+
3630
+ '<div style="text-align: center;font-size:32px">Please wait while we are installing the premium plugin.</div>'+
3631
+ '</div>';
3632
+ jQuery('body').append(html);
3633
+ jQuery('.sfsi_plus_premium_installer-overlay').show();
3634
+ }
3635
+ function sellcodesSuccess(data) {
3636
+ if(data.installation){
3637
+ sfsi_plus_worker_plugin(data);
3638
+ }
3639
  }
js/custom.js CHANGED
@@ -34,7 +34,7 @@ function sfsi_plus_make_popBox() {
34
  function sfsi_plus_stick_widget(s) {
35
  0 == sfsiplus_initTop.length && (SFSI(".sfsi_plus_widget").each(function (s) {
36
  sfsiplus_initTop[s] = SFSI(this).position().top;
37
- }), console.log(sfsiplus_initTop));
38
  var i = SFSI(window).scrollTop(),
39
  e = [],
40
  t = [];
@@ -310,12 +310,10 @@ SFSI(document).ready(function (s) {
310
  SFSI(".sfsi_plus_widget").css("min-height", "auto");
311
  }, 200);
312
  jQuery(document).find('.wp-block-ultimate-social-media-plus-sfsi-plus-share-block').each(function (index, target) {
313
- console.log('gutenberg', target);
314
  var actual_target = jQuery(target).find('.sfsi_plus_block');
315
  var align = jQuery(actual_target).attr('data-align');
316
  var maxPerRow = jQuery(actual_target).attr('data-count');
317
  var iconType = jQuery(actual_target).attr('data-icon-type');
318
- // console.log(iconType);
319
  jQuery.ajax({
320
  'url': '/wp-json/ultimate-social-media-plus/v1/icons/?url=' + encodeURI(decodeURI(window.location.href)) + '&ractangle_icon=' + ('round' == iconType ? 0 : 1),
321
  'method': 'GET'
@@ -362,7 +360,6 @@ SFSI(document).ready(function (s) {
362
  }
363
  };
364
  }).fail((response) => {
365
- // console.log(response,$('.sfsi_plus_block'));
366
  jQuery(actual_target).html(response.responseText.replace('/\\/g', ''));
367
  });
368
  });
@@ -381,11 +378,9 @@ function sfsi_plus_update_iconcount() {
381
  SFSI(".wp-block-ultimate-social-media-plus-sfsi-plus-share-block").each(function () {
382
  var icon_count = SFSI(this).find(".sfsi_plus_block").attr('data-count');
383
  var icon_align = SFSI(this).find(".sfsi_plus_block").attr('data-align');
384
- // console.log(icon_count,icon_align,this,jQuery(this),jQuery(this).find('.sfsiplus_norm_row'));
385
  // sfsi_plus_changeIconWidth(icon_count,this);
386
  if (jQuery(this).find('.sfsiplus_norm_row').length < 1) {
387
  setTimeout(function () {
388
- // console.log(icon_count);
389
  sfsi_plus_changeIconWidth(icon_count, this, icon_align);
390
  }, 1000);
391
  } else {
@@ -396,7 +391,6 @@ function sfsi_plus_update_iconcount() {
396
 
397
  function sfsi_plus_changeIconWidth(per_row = null, target, icon_align) {
398
  var iconWidth = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('width')) || 40;
399
- console.log('iconwidth', iconWidth, jQuery(target).find('.sfsiplus_norm_row'), jQuery(target).find('.sfsiplus_norm_row div').css('width'));
400
 
401
  var iconMargin = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('margin-left')) || 0;
402
 
@@ -465,7 +459,6 @@ function sfsi_plus_wechat_share_mobile(url) {
465
 
466
  function sfsi_copy_text_parent_input(event) {
467
  var target = jQuery(event.target);
468
- console.log(target);
469
  input_target = target.parent().parent().parent().find('input');
470
  input_target.select();
471
  document.execCommand('copy');
34
  function sfsi_plus_stick_widget(s) {
35
  0 == sfsiplus_initTop.length && (SFSI(".sfsi_plus_widget").each(function (s) {
36
  sfsiplus_initTop[s] = SFSI(this).position().top;
37
+ }));
38
  var i = SFSI(window).scrollTop(),
39
  e = [],
40
  t = [];
310
  SFSI(".sfsi_plus_widget").css("min-height", "auto");
311
  }, 200);
312
  jQuery(document).find('.wp-block-ultimate-social-media-plus-sfsi-plus-share-block').each(function (index, target) {
 
313
  var actual_target = jQuery(target).find('.sfsi_plus_block');
314
  var align = jQuery(actual_target).attr('data-align');
315
  var maxPerRow = jQuery(actual_target).attr('data-count');
316
  var iconType = jQuery(actual_target).attr('data-icon-type');
 
317
  jQuery.ajax({
318
  'url': '/wp-json/ultimate-social-media-plus/v1/icons/?url=' + encodeURI(decodeURI(window.location.href)) + '&ractangle_icon=' + ('round' == iconType ? 0 : 1),
319
  'method': 'GET'
360
  }
361
  };
362
  }).fail((response) => {
 
363
  jQuery(actual_target).html(response.responseText.replace('/\\/g', ''));
364
  });
365
  });
378
  SFSI(".wp-block-ultimate-social-media-plus-sfsi-plus-share-block").each(function () {
379
  var icon_count = SFSI(this).find(".sfsi_plus_block").attr('data-count');
380
  var icon_align = SFSI(this).find(".sfsi_plus_block").attr('data-align');
 
381
  // sfsi_plus_changeIconWidth(icon_count,this);
382
  if (jQuery(this).find('.sfsiplus_norm_row').length < 1) {
383
  setTimeout(function () {
 
384
  sfsi_plus_changeIconWidth(icon_count, this, icon_align);
385
  }, 1000);
386
  } else {
391
 
392
  function sfsi_plus_changeIconWidth(per_row = null, target, icon_align) {
393
  var iconWidth = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('width')) || 40;
 
394
 
395
  var iconMargin = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('margin-left')) || 0;
396
 
459
 
460
  function sfsi_copy_text_parent_input(event) {
461
  var target = jQuery(event.target);
 
462
  input_target = target.parent().parent().parent().find('input');
463
  input_target.select();
464
  document.execCommand('copy');
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -1471,8 +1471,6 @@ function sfsi_plus_OfflineChatMessage()
1471
  die();
1472
  }
1473
 
1474
- add_action('wp_ajax_worker_plugin', 'sfsi_plus_worker_plugin');
1475
- // define('usmpw_PLUS_worker_plugin','usm_premium_worker.php');
1476
 
1477
  /* save settings for save export */
1478
  add_action('wp_ajax_save_export', 'sfsi_plus_save_export');
@@ -1493,7 +1491,8 @@ function sfsi_plus_save_export()
1493
  $sfsi_plus_new_show_notification = get_option("sfsi_plus_new_show_notification");
1494
  $sfsi_plus_pluginVersion = get_option("sfsi_plus_pluginVersion");
1495
  $sfsi_plus_show_Setting_mobile_notification = get_option("sfsi_plus_show_Setting_mobile_notification");
1496
-
 
1497
  /* size and spacing of icons */
1498
  $save_export_options = array(
1499
  'option1' => $option1,
@@ -1510,7 +1509,8 @@ function sfsi_plus_save_export()
1510
  'sfsi_plus_footer_sec' => $sfsi_plus_footer_sec,
1511
  'sfsi_plus_new_show_notification' => $sfsi_plus_new_show_notification,
1512
  'sfsi_plus_pluginVersion' => $sfsi_plus_pluginVersion,
1513
- 'sfsi_plus_show_Setting_mobile_notification' => $sfsi_plus_show_Setting_mobile_notification
 
1514
  );
1515
 
1516
  $json = json_encode($save_export_options);
@@ -1519,5 +1519,46 @@ function sfsi_plus_save_export()
1519
  echo $json;
1520
  exit;
1521
  }
 
1522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1523
  ?>
1471
  die();
1472
  }
1473
 
 
 
1474
 
1475
  /* save settings for save export */
1476
  add_action('wp_ajax_save_export', 'sfsi_plus_save_export');
1491
  $sfsi_plus_new_show_notification = get_option("sfsi_plus_new_show_notification");
1492
  $sfsi_plus_pluginVersion = get_option("sfsi_plus_pluginVersion");
1493
  $sfsi_plus_show_Setting_mobile_notification = get_option("sfsi_plus_show_Setting_mobile_notification");
1494
+ $sfsi_plus_installDate = get_option("sfsi_plus_installDate");
1495
+
1496
  /* size and spacing of icons */
1497
  $save_export_options = array(
1498
  'option1' => $option1,
1509
  'sfsi_plus_footer_sec' => $sfsi_plus_footer_sec,
1510
  'sfsi_plus_new_show_notification' => $sfsi_plus_new_show_notification,
1511
  'sfsi_plus_pluginVersion' => $sfsi_plus_pluginVersion,
1512
+ 'sfsi_plus_show_Setting_mobile_notification' => $sfsi_plus_show_Setting_mobile_notification,
1513
+ 'sfsi_plus_installDate' => $sfsi_plus_installDate
1514
  );
1515
 
1516
  $json = json_encode($save_export_options);
1519
  echo $json;
1520
  exit;
1521
  }
1522
+ add_action('wp_ajax_worker_plugin','sfsi_plus_worker_plugin');
1523
 
1524
+ function sfsi_plus_worker_plugin(){
1525
+ if ( !wp_verify_nonce( $_POST['nonce'], "plus_worker_plugin")) {
1526
+ echo json_encode(array("wrong_nonce")); exit;
1527
+ }
1528
+ if(!current_user_can('manage_options')){ echo json_encode(array('res'=>'not allowed'));die(); }
1529
+
1530
+ ob_start();
1531
+ update_option("sfsi_plus_premium_install_link",$_POST["premium_url"]);
1532
+ update_option("sfsi_plus_premium_install_licence",$_POST["licence"]);
1533
+ update_option("sfsi_plus_install_premium","yes");
1534
+ include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
1535
+ wp_cache_flush();
1536
+ $plugin_slug= "sfsi_worker_premium_installer/sfsi_worker_premium_installer.php";
1537
+ $upgrader = new Plugin_Upgrader();
1538
+ if(sfsi_plus_worker_plugin_installed($plugin_slug)){
1539
+ $installed = true;
1540
+ }else{
1541
+ $installed = $upgrader->install('https://shopify-js-bucket.s3.ap-south-1.amazonaws.com/sfsi_worker_premium_installer-0.0.1.zip');
1542
+ }
1543
+ $activate = activate_plugin($plugin_slug);
1544
+ $data = ob_get_flush();
1545
+ ob_clean();
1546
+ echo json_encode(array("installed"=>$installed,"plugin_info"=>$upgrader->plugin_info(),"html_message"=>$data,"activate"=>$activate));
1547
+ wp_die();
1548
+ }
1549
+ if(!function_exists("sfsi_plus_worker_plugin_installed")){
1550
+ function sfsi_plus_worker_plugin_installed($slug)
1551
+ {
1552
+
1553
+ if (!function_exists('get_plugins')) {
1554
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
1555
+ }
1556
+ $all_plugins = get_plugins();
1557
+ if (!empty($all_plugins[$slug])) {
1558
+ return true;
1559
+ } else {
1560
+ return false;
1561
+ }
1562
+ }
1563
+ }
1564
  ?>
libs/controllers/sfsi_frontpopUp.php CHANGED
@@ -60,7 +60,7 @@ function sfsi_plus_check_PopUp($content = null)
60
  window.addEventListener('sfsi_plus_functions_loaded', function() {
61
  if (typeof sfsi_plus_responsive_toggle == 'function') {
62
  sfsi_plus_responsive_toggle(<?php echo $time_popUp ?>);
63
- console.log('sfsi_plus_responsive_toggle');
64
 
65
  }
66
  })
@@ -84,7 +84,7 @@ function sfsi_plus_check_PopUp($content = null)
84
  window.addEventListener('sfsi_plus_functions_loaded',function() {
85
  if (typeof sfsi_social_pop_up == 'function') {
86
  sfsi_social_pop_up(<?php echo $time_popUp ?>);
87
- console.log('sfsi_social_pop_up');
88
  }
89
  })
90
  </script>
60
  window.addEventListener('sfsi_plus_functions_loaded', function() {
61
  if (typeof sfsi_plus_responsive_toggle == 'function') {
62
  sfsi_plus_responsive_toggle(<?php echo $time_popUp ?>);
63
+ // console.log('sfsi_plus_responsive_toggle');
64
 
65
  }
66
  })
84
  window.addEventListener('sfsi_plus_functions_loaded',function() {
85
  if (typeof sfsi_social_pop_up == 'function') {
86
  sfsi_social_pop_up(<?php echo $time_popUp ?>);
87
+ // console.log('sfsi_social_pop_up');
88
  }
89
  })
90
  </script>
libs/controllers/sfsiocns_OnPosts.php CHANGED
@@ -56,7 +56,7 @@ function sfsi_plus_social_buttons_below($content)
56
  {
57
  $show_count=0;
58
  }
59
- $common_options_check = (($sfsi_section8['sfsi_plus_show_via_widget'] == "yes") || ($sfsi_section8['sfsi_plus_float_on_page'] == "yes") && (isset($sfsi_section8['sfsi_plus_float_page_position'])) || ($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") || ($sfsi_section8['sfsi_plus_place_item_gutenberg'] == "yes"));
60
 
61
  //$txt=(isset($sfsi_section6['sfsi_plus_textBefor_icons']))? $sfsi_section6['sfsi_plus_textBefor_icons'] : "Share this Post with :" ;
62
  $txt=(isset($sfsi_section8['sfsi_plus_textBefor_icons']))? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:" ;
@@ -287,7 +287,7 @@ function sfsi_plus_footer_script()
287
  ($sfsi_section8['sfsi_plus_float_on_page'] == "yes") ||
288
  (isset($sfsi_section8['sfsi_plus_float_page_position']) && "yes" == $sfsi_section8['sfsi_plus_float_page_position']) ||
289
  ($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") ||
290
- (isset($sfsi_section8['sfsi_plus_place_item_gutenberg']) && $sfsi_section8['sfsi_plus_place_item_gutenberg'] == "yes") ||
291
  (isset($sfsi_section8['sfsi_plus_show_item_onposts']) && "yes" == $sfsi_section8['sfsi_plus_show_item_onposts'] && (isset($sfsi_section8["sfsi_plus_display_button_type"])) && "normal_button" == $sfsi_section8["sfsi_plus_display_button_type"] )
292
  );
293
  if(
@@ -316,6 +316,41 @@ function sfsi_plus_footer_script()
316
  fjs.parentNode.insertBefore(js, fjs);
317
  }(document, 'script', 'facebook-jssdk'));</script>
318
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
319
  }
320
 
321
  if(
@@ -503,7 +538,7 @@ function sfsi_plus_social_responsive_buttons($content,$option8,$server_side=fals
503
  break;
504
 
505
  }
506
- $icons.="\t\t"."<a ".sfsi_plus_checkNewWindow()." href='".($icon_config['url']==""?$share_url:$icon_config['url'])."' style='".($icon_config['active']=='yes'?($sfsi_plus_responsive_icons['settings']['icon_width_type']==="Fixed icon width"?'display:inline-flex':'display:block'):'display:none').";".$sfsi_plus_anchor_style."' class=".($sfsi_plus_responsive_icons['settings']['icon_width_type']==="Fixed icon width"?'sfsi_plus_responsive_fixed_width':'sfsi_plus_responsive_fluid')." >"."\n";
507
  $icons.="\t\t\t<div class='sfsi_plus_responsive_icon_item_container sfsi_plus_responsive_icon_".strtolower($icon)."_container sfsi_plus_".strtolower($sfsi_plus_responsive_icons['settings']['icon_size'])."_button ".($sfsi_plus_responsive_icons['settings']['style']=="Gradient"?'sfsi_plus_responsive_icon_gradient':'').( " sfsi_plus_".(strtolower($sfsi_plus_responsive_icons['settings']['text_align'])=="centered"?'centered':'left-align')."_icon")."' style='".$sfsi_plus_anchor_div_style." ' >"."\n";
508
  $icons.="\t\t\t\t<img style='max-height: 25px;display:unset;margin:0' src='".SFSI_PLUS_PLUGURL."images/responsive-icon/".$icon.('Follow'===$icon?'.png':'.svg')."'>"."\n";
509
  $icons.="\t\t\t\t<span style='color:#fff' >".($icon_config["text"])."</span>"."\n";
56
  {
57
  $show_count=0;
58
  }
59
+ $common_options_check = (($sfsi_section8['sfsi_plus_show_via_widget'] == "yes") || ($sfsi_section8['sfsi_plus_float_on_page'] == "yes") && (isset($sfsi_section8['sfsi_plus_float_page_position'])) || ($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") || ($sfsi_section8['sfsi_plus_place_item_gutenberg'] == "no"));
60
 
61
  //$txt=(isset($sfsi_section6['sfsi_plus_textBefor_icons']))? $sfsi_section6['sfsi_plus_textBefor_icons'] : "Share this Post with :" ;
62
  $txt=(isset($sfsi_section8['sfsi_plus_textBefor_icons']))? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:" ;
287
  ($sfsi_section8['sfsi_plus_float_on_page'] == "yes") ||
288
  (isset($sfsi_section8['sfsi_plus_float_page_position']) && "yes" == $sfsi_section8['sfsi_plus_float_page_position']) ||
289
  ($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") ||
290
+ (isset($sfsi_section8['sfsi_plus_place_item_gutenberg']) && $sfsi_section8['sfsi_plus_place_item_gutenberg'] == "no") ||
291
  (isset($sfsi_section8['sfsi_plus_show_item_onposts']) && "yes" == $sfsi_section8['sfsi_plus_show_item_onposts'] && (isset($sfsi_section8["sfsi_plus_display_button_type"])) && "normal_button" == $sfsi_section8["sfsi_plus_display_button_type"] )
292
  );
293
  if(
316
  fjs.parentNode.insertBefore(js, fjs);
317
  }(document, 'script', 'facebook-jssdk'));</script>
318
  <?php
319
+ $common_options_check = (
320
+ ($sfsi_section8['sfsi_plus_show_via_widget'] == "yes") ||
321
+ ($sfsi_section8['sfsi_plus_float_on_page'] == "yes") ||
322
+ (isset($sfsi_section8['sfsi_plus_float_page_position']) && "yes" == $sfsi_section8['sfsi_plus_float_page_position']) ||
323
+ ($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") ||
324
+ (isset($sfsi_section8['sfsi_plus_place_item_gutenberg']) && $sfsi_section8['sfsi_plus_place_item_gutenberg'] == "no") ||
325
+ (isset($sfsi_section8['sfsi_plus_show_item_onposts']) && "yes" == $sfsi_section8['sfsi_plus_show_item_onposts'] && (isset($sfsi_section8["sfsi_plus_display_button_type"])) && "normal_button" == $sfsi_section8["sfsi_plus_display_button_type"] )
326
+ );
327
+ if(
328
+ (
329
+ $sfsi_section8['sfsi_plus_rectfb'] == "yes" &&
330
+ $sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
331
+ $sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
332
+ ) ||
333
+ (
334
+ $sfsi_section8['sfsi_plus_rectfbshare'] == "yes" &&
335
+ $sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
336
+ $sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
337
+ ) ||
338
+ ($sfsi_section1['sfsi_plus_facebook_display']=="yes" && ($sfsi_section2['sfsi_plus_facebookShare_option']=="yes" || $sfsi_section2['sfsi_plus_facebookLike_option']=="yes" ) && $common_options_check)
339
+ )
340
+ {?>
341
+ <!--facebook like and share js -->
342
+ <div id="fb-root"></div>
343
+
344
+ <script>
345
+ (function(d, s, id) {
346
+ var js, fjs = d.getElementsByTagName(s)[0];
347
+ if (d.getElementById(id)) return;
348
+ js = d.createElement(s); js.id = id;
349
+ js.src = "//connect.facebook.net/<?php echo $icons_language;?>/sdk.js#xfbml=1&version=v2.5";
350
+ fjs.parentNode.insertBefore(js, fjs);
351
+ }(document, 'script', 'facebook-jssdk'));</script>
352
+ <?php
353
+ }
354
  }
355
 
356
  if(
538
  break;
539
 
540
  }
541
+ $icons.="\t\t"."<a ".sfsi_plus_checkNewWindow()." href='".($icon_config['url']==""?$share_url:do_shortcode($icon_config['url']))."' style='".($icon_config['active']=='yes'?($sfsi_plus_responsive_icons['settings']['icon_width_type']==="Fixed icon width"?'display:inline-flex':'display:block'):'display:none').";".$sfsi_plus_anchor_style."' class=".($sfsi_plus_responsive_icons['settings']['icon_width_type']==="Fixed icon width"?'sfsi_plus_responsive_fixed_width':'sfsi_plus_responsive_fluid')." >"."\n";
542
  $icons.="\t\t\t<div class='sfsi_plus_responsive_icon_item_container sfsi_plus_responsive_icon_".strtolower($icon)."_container sfsi_plus_".strtolower($sfsi_plus_responsive_icons['settings']['icon_size'])."_button ".($sfsi_plus_responsive_icons['settings']['style']=="Gradient"?'sfsi_plus_responsive_icon_gradient':'').( " sfsi_plus_".(strtolower($sfsi_plus_responsive_icons['settings']['text_align'])=="centered"?'centered':'left-align')."_icon")."' style='".$sfsi_plus_anchor_div_style." ' >"."\n";
543
  $icons.="\t\t\t\t<img style='max-height: 25px;display:unset;margin:0' src='".SFSI_PLUS_PLUGURL."images/responsive-icon/".$icon.('Follow'===$icon?'.png':'.svg')."'>"."\n";
544
  $icons.="\t\t\t\t<span style='color:#fff' >".($icon_config["text"])."</span>"."\n";
libs/sfsi_gutenberg_block.php CHANGED
@@ -107,7 +107,7 @@ function sfsi_plus_render_gutenberg_round($args = null, $content = null,$share_u
107
  $instance = array("showf" => 1, "title" => '');
108
  $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
109
  $sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
110
- $sfsi_plus_place_item_gutenberg = isset($sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg'])?$sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg']:'yes';
111
  if($sfsi_plus_place_item_gutenberg == "yes")
112
  {
113
  $return = '';
107
  $instance = array("showf" => 1, "title" => '');
108
  $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
109
  $sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
110
+ $sfsi_plus_place_item_gutenberg = isset($sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg'])?$sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg']:'no';
111
  if($sfsi_plus_place_item_gutenberg == "yes")
112
  {
113
  $return = '';
libs/sfsi_install_uninstall.php CHANGED
@@ -17,7 +17,7 @@ function sfsi_plus_update_plugin()
17
  }
18
 
19
  //Install version
20
- update_option("sfsi_plus_pluginVersion", "3.28");
21
 
22
  if(!get_option('sfsi_plus_serverphpVersionnotification'))
23
  {
@@ -538,7 +538,7 @@ function sfsi_plus_activate_plugin()
538
  'sfsi_plus_twitter_icons_language'=>'Visit_us_en_US',
539
  'sfsi_plus_icons_language'=>'en_US',
540
  'sfsi_plus_icons_ClickPageOpen'=>'yes',
541
- 'sfsi_plus_icons_float'=>'no',
542
  'sfsi_plus_disable_floaticons'=>'no',
543
  'sfsi_plus_disable_viewport'=>'no',
544
  'sfsi_plus_icons_floatPosition'=>'center-right',
@@ -582,7 +582,7 @@ function sfsi_plus_activate_plugin()
582
  add_option('sfsi_plus_section5_options', serialize($options5));
583
 
584
  /* post options */
585
- $options6=array('sfsi_plus_show_Onposts'=>'no',
586
  'sfsi_plus_show_Onbottom'=>'no',
587
  'sfsi_plus_icons_postPositon'=>'source',
588
  'sfsi_plus_icons_alignment'=>'center-right',
@@ -659,7 +659,9 @@ function sfsi_plus_activate_plugin()
659
  'sfsi_plus_recttwtr'=>'yes',
660
  'sfsi_plus_rectpinit'=>'yes',
661
  'sfsi_plus_rectfbshare'=>'yes',
662
- 'sfsi_plus_show_premium_placement_box'=>'yes');
 
 
663
 
664
  add_option('sfsi_plus_section8_options', serialize($options8));
665
 
17
  }
18
 
19
  //Install version
20
+ update_option("sfsi_plus_pluginVersion", "3.29");
21
 
22
  if(!get_option('sfsi_plus_serverphpVersionnotification'))
23
  {
538
  'sfsi_plus_twitter_icons_language'=>'Visit_us_en_US',
539
  'sfsi_plus_icons_language'=>'en_US',
540
  'sfsi_plus_icons_ClickPageOpen'=>'yes',
541
+ 'sfsi_plus_icons_float'=>'yes',
542
  'sfsi_plus_disable_floaticons'=>'no',
543
  'sfsi_plus_disable_viewport'=>'no',
544
  'sfsi_plus_icons_floatPosition'=>'center-right',
582
  add_option('sfsi_plus_section5_options', serialize($options5));
583
 
584
  /* post options */
585
+ $options6=array('sfsi_plus_show_Onposts'=>'yes',
586
  'sfsi_plus_show_Onbottom'=>'no',
587
  'sfsi_plus_icons_postPositon'=>'source',
588
  'sfsi_plus_icons_alignment'=>'center-right',
659
  'sfsi_plus_recttwtr'=>'yes',
660
  'sfsi_plus_rectpinit'=>'yes',
661
  'sfsi_plus_rectfbshare'=>'yes',
662
+ 'sfsi_plus_show_premium_placement_box'=>'yes',
663
+ 'sfsi_plus_place_item_gutenberg'=>'no'
664
+ );
665
 
666
  add_option('sfsi_plus_section8_options', serialize($options8));
667
 
libs/sfsi_plus_subscribe_widget.php CHANGED
@@ -12,7 +12,7 @@ function sfsi_plus_addStyleFunction()
12
  <script>
13
  window.addEventListener("sfsi_plus_functions_loaded",function(){
14
  var body= document.getElementsByTagName('body')[0];
15
- console.log(body);
16
  body.classList.add("sfsi_plus_<?php echo get_option("sfsi_plus_pluginVersion"); ?>");
17
  })
18
  // window.addEventListener('sfsi_plus_functions_loaded',function(e) {
12
  <script>
13
  window.addEventListener("sfsi_plus_functions_loaded",function(){
14
  var body= document.getElementsByTagName('body')[0];
15
+ // console.log(body);
16
  body.classList.add("sfsi_plus_<?php echo get_option("sfsi_plus_pluginVersion"); ?>");
17
  })
18
  // window.addEventListener('sfsi_plus_functions_loaded',function(e) {
libs/sfsi_widget.php CHANGED
@@ -216,6 +216,19 @@ function sfsi_plus_check_visiblity($isFloter=0,$share_url=null,$container_positi
216
  case "bottom-left" :
217
  $position.="position:absolute;left:30px;bottom:0px"; $top="bottom";
218
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
219
  }
220
  if($sfsi_section8['sfsi_plus_float_page_position'] == 'center-right' || $sfsi_section8['sfsi_plus_float_page_position'] == 'center-left')
221
  {
@@ -423,6 +436,10 @@ function sfsi_plus_check_visiblity($isFloter=0,$share_url=null,$container_positi
423
  $styleMargin = "margin-bottom:".$sfsi_section8['sfsi_plus_icons_floatMargin_bottom']."px;margin-right:".$sfsi_section8['sfsi_plus_icons_floatMargin_right']."px;";
424
  }
425
 
 
 
 
 
426
  // $icons_float = '<style >#sfsi_plus_floater { '.$styleMargin.' }</style>';
427
  add_action('wp_footer',function()use($styleMargin){
428
  echo '<script>var css = "#sfsi_plus_floater { '.$styleMargin.' }",
216
  case "bottom-left" :
217
  $position.="position:absolute;left:30px;bottom:0px"; $top="bottom";
218
  break;
219
+ case "center-top" :
220
+ if(is_admin_bar_showing())
221
+ {
222
+ $position .= "left:50%;top:35px;"; $top="35";
223
+ }
224
+ else
225
+ {
226
+ $position .= "left:50%;top:10px;"; $top="10";
227
+ }
228
+ break;
229
+ case "center-bottom" :
230
+ $position .= "left:50%;bottom:0px"; $top="bottom";
231
+ break;
232
  }
233
  if($sfsi_section8['sfsi_plus_float_page_position'] == 'center-right' || $sfsi_section8['sfsi_plus_float_page_position'] == 'center-left')
234
  {
436
  $styleMargin = "margin-bottom:".$sfsi_section8['sfsi_plus_icons_floatMargin_bottom']."px;margin-right:".$sfsi_section8['sfsi_plus_icons_floatMargin_right']."px;";
437
  }
438
 
439
+ if(!isset($styleMargin)){
440
+ $styleMargin = "";
441
+ }
442
+
443
  // $icons_float = '<style >#sfsi_plus_floater { '.$styleMargin.' }</style>';
444
  add_action('wp_footer',function()use($styleMargin){
445
  echo '<script>var css = "#sfsi_plus_floater { '.$styleMargin.' }",
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: socialsharepro, socialtech
3
  Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
4
  Requires at least: 3.0
5
- Tested up to: 5.2.3
6
- Stable tag: 3.2.8
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -15,7 +15,7 @@ This social plugin makes placing social share icons on your site REALLY easy.
15
 
16
  This free plugin has a lot to offer. Even more can be found in the Premium Plugin, please watch this short video:
17
 
18
- [vimeo https://vimeo.com/269140798]
19
 
20
  See [all features of the Premium plugin](https://www.ultimatelysocial.com/usm-premium/).
21
 
@@ -446,12 +446,19 @@ The premium plugin offrs many more social buttons from other social media platfo
446
 
447
 
448
  == Changelog ==
449
- = 3.2.8 =
450
- * Update: Url encoded for location.href
451
- * Update: Restrucutre the section 8 options
452
- * Update: UI improvements
453
- * Update: Shortcode updated
454
 
 
 
 
 
 
 
 
 
 
 
 
 
455
 
456
  = 3.2.7 =
457
  * Update: Feedback system updated.
@@ -933,5 +940,5 @@ The premium plugin offrs many more social buttons from other social media platfo
933
 
934
  == Upgrade Notice ==
935
 
936
- = 3.2.8 =
937
  * Please update
2
  Contributors: socialsharepro, socialtech
3
  Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
4
  Requires at least: 3.0
5
+ Tested up to: 5.3
6
+ Stable tag: 3.2.9
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
15
 
16
  This free plugin has a lot to offer. Even more can be found in the Premium Plugin, please watch this short video:
17
 
18
+ [youtube https://youtu.be/xaZ8m5zSYRg]
19
 
20
  See [all features of the Premium plugin](https://www.ultimatelysocial.com/usm-premium/).
21
 
446
 
447
 
448
  == Changelog ==
 
 
 
 
 
449
 
450
+ = 3.2.9 =
451
+ * Q3 auto opening and opening of Floating and 'before and after posts' open automatically for new installs
452
+ * Popup open error fixed
453
+ * Analyst 5.4
454
+ * Added the waiting imgage on contact
455
+ * Removed console.log
456
+
457
+ = 3.2.8 =
458
+ * Url encoded for location.href
459
+ * Restrucutre the section 8 options
460
+ * UI improvements
461
+ * Shortcode updated
462
 
463
  = 3.2.7 =
464
  * Update: Feedback system updated.
940
 
941
  == Upgrade Notice ==
942
 
943
+ = 3.2.9 =
944
  * Please update
ultimate_social_media_icons.php CHANGED
@@ -7,7 +7,7 @@ Author: social share pro
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
- Version: 3.2.8
11
  License: GPLv2
12
  */
13
 
@@ -75,7 +75,7 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
75
  //register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
76
 
77
  /*Plugin version setup*/
78
- if (!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 3.28) {
79
  add_action("init", "sfsi_plus_update_plugin");
80
  }
81
 
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
+ Version: 3.2.9
11
  License: GPLv2
12
  */
13
 
75
  //register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
76
 
77
  /*Plugin version setup*/
78
+ if (!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 3.29) {
79
  add_action("init", "sfsi_plus_update_plugin");
80
  }
81
 
views/sfsi_chat_on_admin_pannel.php CHANGED
@@ -70,16 +70,17 @@ var sfsi_plus_jivo_init=function(){
70
  s.src = '//code.jivosite.com/script/widget/'+widget_id;
71
  var ss = document.getElementsByTagName('script')[0];
72
  ss.parentNode.insertBefore(s, ss);
 
73
  }
74
  if(d.readyState=='complete'){
75
  l();
76
- console.log('already loaded');
77
  }else{
78
  if(w.attachEvent){
79
  w.attachEvent('onload',l);
80
- console.log('attachEvent');
81
  }else{
82
- console.log('addEventListener');
83
  w.addEventListener('load',l,false);
84
  }
85
  }
@@ -88,22 +89,28 @@ var sfsi_dummy_chat_icon={};
88
  sfsi_dummy_chat_icon.element=document.createElement('div');
89
  sfsi_dummy_chat_icon.element.id="sfsi_dummy_chat_icon";
90
  sfsi_dummy_chat_icon.element.style="position:fixed; bottom:0;right:10px;width:350px;height:74px;cursor:pointer;background-image:url('<?php echo SFSI_PLUS_PLUGURL.'images/Chat_with_us_bar_light_green.png' ?>');background-position: -12.5px -11.5px;background-size: 374px 101px;border-top-left-radius: 8px;border-top-right-radius: 8px;";
 
 
 
91
  function sfsi_plus_open_chat(){
92
  // console.log('window.jivo_api',window.jivo_api);
93
  if(window.jivo_api){
94
  // console.log('window.jivo_api.chatMode',window.jivo_api.chatMode());
95
  if( window.jivo_api.chatMode()==='online'){
 
96
  // console.log('window.jivo_api.showProactiveInvitation',window.jivo_api.showProactiveInvitation('How can I help you?'));
97
  window.jivo_api.open();
 
98
  }else{
99
  jQuery('#jivo-iframe-container').remove();
100
  jQuery('script[src="//code.jivosite.com/script/widget/'+sfsi_plus_jivo_widget_id+'"]').remove();
101
  jQuery('#sfsi_plus_jivo_offline_chat').show();
 
102
  }
103
  jQuery(sfsi_dummy_chat_icon.element).hide();
104
  }else{
105
  sfsi_plus_jivo_init();
106
- console.log('hey');
107
  jQuery(sfsi_dummy_chat_icon.element).hide();
108
  }
109
  // jQuery(sfsi_dummy_chat_icon.element).html("<p style='text-align: center;font-size: 18px;'>Loading...</p>");
@@ -112,11 +119,13 @@ function sfsi_plus_open_chat(){
112
  sfsi_dummy_chat_icon.element.onclick=sfsi_plus_open_chat;
113
  var jivo_onLoadCallback = function(){
114
  if(jivo_api && jivo_api.chatMode()==='online'){
 
115
  jivo_api.showProactiveInvitation('How can I help you?');
116
  }else{
117
  jQuery('#jivo-iframe-container').remove();
118
  jQuery('script[src="//code.jivosite.com/script/widget/'+sfsi_plus_jivo_widget_id+'"]').remove();
119
  jQuery('#sfsi_plus_jivo_offline_chat').show();
 
120
  }
121
  jQuery(sfsi_dummy_chat_icon.element).hide();
122
  };
70
  s.src = '//code.jivosite.com/script/widget/'+widget_id;
71
  var ss = document.getElementsByTagName('script')[0];
72
  ss.parentNode.insertBefore(s, ss);
73
+ SFSI(".sfsi_plus_wait_container").hide();
74
  }
75
  if(d.readyState=='complete'){
76
  l();
77
+ // console.log('already loaded');
78
  }else{
79
  if(w.attachEvent){
80
  w.attachEvent('onload',l);
81
+ // console.log('attachEvent');
82
  }else{
83
+ // console.log('addEventListener');
84
  w.addEventListener('load',l,false);
85
  }
86
  }
89
  sfsi_dummy_chat_icon.element=document.createElement('div');
90
  sfsi_dummy_chat_icon.element.id="sfsi_dummy_chat_icon";
91
  sfsi_dummy_chat_icon.element.style="position:fixed; bottom:0;right:10px;width:350px;height:74px;cursor:pointer;background-image:url('<?php echo SFSI_PLUS_PLUGURL.'images/Chat_with_us_bar_light_green.png' ?>');background-position: -12.5px -11.5px;background-size: 374px 101px;border-top-left-radius: 8px;border-top-right-radius: 8px;";
92
+ sfsi_dummy_chat_icon.element.onclick=function(){
93
+ SFSI(".sfsi_plus_wait_container").show();
94
+ }
95
  function sfsi_plus_open_chat(){
96
  // console.log('window.jivo_api',window.jivo_api);
97
  if(window.jivo_api){
98
  // console.log('window.jivo_api.chatMode',window.jivo_api.chatMode());
99
  if( window.jivo_api.chatMode()==='online'){
100
+
101
  // console.log('window.jivo_api.showProactiveInvitation',window.jivo_api.showProactiveInvitation('How can I help you?'));
102
  window.jivo_api.open();
103
+ jQuery(".sfsi_plus_wait_container").hide();
104
  }else{
105
  jQuery('#jivo-iframe-container').remove();
106
  jQuery('script[src="//code.jivosite.com/script/widget/'+sfsi_plus_jivo_widget_id+'"]').remove();
107
  jQuery('#sfsi_plus_jivo_offline_chat').show();
108
+ jQuery(".sfsi_plus_wait_container").hide()
109
  }
110
  jQuery(sfsi_dummy_chat_icon.element).hide();
111
  }else{
112
  sfsi_plus_jivo_init();
113
+ // console.log('hey');
114
  jQuery(sfsi_dummy_chat_icon.element).hide();
115
  }
116
  // jQuery(sfsi_dummy_chat_icon.element).html("<p style='text-align: center;font-size: 18px;'>Loading...</p>");
119
  sfsi_dummy_chat_icon.element.onclick=sfsi_plus_open_chat;
120
  var jivo_onLoadCallback = function(){
121
  if(jivo_api && jivo_api.chatMode()==='online'){
122
+ jQuery(".sfsi_plus_wait_container").hide();
123
  jivo_api.showProactiveInvitation('How can I help you?');
124
  }else{
125
  jQuery('#jivo-iframe-container').remove();
126
  jQuery('script[src="//code.jivosite.com/script/widget/'+sfsi_plus_jivo_widget_id+'"]').remove();
127
  jQuery('#sfsi_plus_jivo_offline_chat').show();
128
+ jQuery(".sfsi_plus_wait_container").hide();
129
  }
130
  jQuery(sfsi_dummy_chat_icon.element).hide();
131
  };
views/sfsi_option_view8.php CHANGED
@@ -42,6 +42,11 @@ $sfsi_plus_responsive_icons_default = array(
42
  );
43
  $sfsi_plus_responsive_icons = (isset($option8["sfsi_plus_responsive_icons"]) ? $option8["sfsi_plus_responsive_icons"] : $sfsi_plus_responsive_icons_default);
44
 
 
 
 
 
 
45
  /**
46
  * Sanitize, escape and validate values
47
  */
@@ -72,7 +77,7 @@ $option8['sfsi_plus_place_item_manually'] = (isset($option8['sfsi_plus_place_i
72
  : '';
73
  $option8['sfsi_plus_place_item_gutenberg'] = (isset($option8['sfsi_plus_place_item_gutenberg']))
74
  ? sanitize_text_field($option8['sfsi_plus_place_item_gutenberg'])
75
- : 'yes';
76
  $option8['sfsi_plus_display_button_type'] = (isset($option8['sfsi_plus_display_button_type']))
77
  ? sanitize_text_field($option8['sfsi_plus_display_button_type'])
78
  : '';
@@ -113,14 +118,15 @@ $option8['sfsi_plus_rectfbshare'] = (isset($option8['sfsi_plus_rectfbshare']
113
  $option8['sfsi_plus_show_premium_placement_box'] = (isset($option8['sfsi_plus_show_premium_placement_box']))
114
  ? sanitize_text_field($option8['sfsi_plus_show_premium_placement_box'])
115
  : 'yes';
116
- $option8['sfsi_plus_responsive_icons_end_post'] = (isset($option8['sfsi_plus_responsive_icons_end_post']))
117
  ? sanitize_text_field($option8['sfsi_plus_responsive_icons_end_post'])
118
  : '';
119
  ?>
120
  <div class="tab8">
121
- <ul class="sfsiplus_icn_listing8">
 
122
  <!--Second Section-->
123
- <p class="sfsi_premium_feature_note" style="font-size:18px;margin-bottom:15px;">Please select one or multiple placement options:</p>
124
 
125
  <li class="">
126
  <div class="radio_section tb_4_ck cstmfltonpgstck" onclick="sfsiplus_toggleflotpage(this);">
@@ -142,8 +148,8 @@ $option8['sfsi_plus_responsive_icons_end_post'] = (isset($option8['sfsi_plus_
142
  }
143
  ?>
144
  <div class="sfsiplus_tab_3_icns" <?php echo 'style="' . $style . '"'; ?>>
145
- <p style="margin-top:10px"><span class="margin-left:31px">Define the location:</span></p>
146
- <ul class="sfsiplus_tab_3_icns flthmonpg" style="margin-top:10px" >
147
  <li>
148
  <input name="sfsi_plus_float_page_position" <?php echo ($option8['sfsi_plus_float_page_position'] == 'top-left') ? 'checked="true"' : ''; ?> type="radio" value="top-left" class="styled" />
149
  <span class="sfsi_flicnsoptn3 sfsioptntl">
@@ -151,6 +157,13 @@ $option8['sfsi_plus_responsive_icons_end_post'] = (isset($option8['sfsi_plus_
151
  </span>
152
  <label><img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/top_left.png" /></label>
153
  </li>
 
 
 
 
 
 
 
154
  <li>
155
  <input name="sfsi_plus_float_page_position" <?php echo ($option8['sfsi_plus_float_page_position'] == 'top-right') ? 'checked="true"' : ''; ?> type="radio" value="top-right" class="styled" />
156
  <span class="sfsi_flicnsoptn3 sfsioptntr">
@@ -179,6 +192,13 @@ $option8['sfsi_plus_responsive_icons_end_post'] = (isset($option8['sfsi_plus_
179
  </span>
180
  <label><img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/bottom_left.png" /></label>
181
  </li>
 
 
 
 
 
 
 
182
  <li>
183
  <input name="sfsi_plus_float_page_position" <?php echo ($option8['sfsi_plus_float_page_position'] == 'bottom-right') ? 'checked="true"' : ''; ?> type="radio" value="bottom-right" class="styled" />
184
  <span class="sfsi_flicnsoptn3 sfsioptnbr">
@@ -186,7 +206,57 @@ $option8['sfsi_plus_responsive_icons_end_post'] = (isset($option8['sfsi_plus_
186
  </span>
187
  <label><img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/bottom_right.png" /></label>
188
  </li>
189
- </ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  <div style="width: 88%; float: left; margin:25px 0 0 47px">
191
  <h4>
192
  <?php _e('Margin From:', SFSI_PLUS_DOMAIN); ?>
@@ -250,7 +320,7 @@ $option8['sfsi_plus_responsive_icons_end_post'] = (isset($option8['sfsi_plus_
250
  ?>
251
  <label class="sfsiplus_sub-subtitle ckckslctn" <?php echo $label_style; ?>>
252
  <?php _e('Go to the widget area and drag & drop it where you want to have it!', SFSI_PLUS_DOMAIN); ?>
253
- <a href="<?php echo admin_url('widgets.php'); ?>">
254
  <?php _e('Click here', SFSI_PLUS_DOMAIN); ?>
255
  </a>
256
  </label>
@@ -421,7 +491,7 @@ $option8['sfsi_plus_responsive_icons_end_post'] = (isset($option8['sfsi_plus_
421
  </div>
422
  </li>
423
  <?php
424
- if ($option8['sfsi_plus_display_button_type'] == 'normal_button') : $display = "display:block";$sfsi_plus_display_normal_type = "display:block";$sfsi_plus_display_responsive_type = "display:none";
425
  else : $display = "display:none";$sfsi_plus_display_normal_type = "display:none";$sfsi_plus_display_responsive_type = "display:block";
426
  endif;
427
  ?>
42
  );
43
  $sfsi_plus_responsive_icons = (isset($option8["sfsi_plus_responsive_icons"]) ? $option8["sfsi_plus_responsive_icons"] : $sfsi_plus_responsive_icons_default);
44
 
45
+ $analyst_cache = unserialize(get_option("analyst_cache"));
46
+ $sfsi_plus_willshow_analyst_popup =false;
47
+ if(!is_null($analyst_cache) && isset($analyst_cache["plugin_to_install"])){
48
+ $sfsi_plus_willshow_analyst_popup =true;
49
+ }
50
  /**
51
  * Sanitize, escape and validate values
52
  */
77
  : '';
78
  $option8['sfsi_plus_place_item_gutenberg'] = (isset($option8['sfsi_plus_place_item_gutenberg']))
79
  ? sanitize_text_field($option8['sfsi_plus_place_item_gutenberg'])
80
+ : 'no';
81
  $option8['sfsi_plus_display_button_type'] = (isset($option8['sfsi_plus_display_button_type']))
82
  ? sanitize_text_field($option8['sfsi_plus_display_button_type'])
83
  : '';
118
  $option8['sfsi_plus_show_premium_placement_box'] = (isset($option8['sfsi_plus_show_premium_placement_box']))
119
  ? sanitize_text_field($option8['sfsi_plus_show_premium_placement_box'])
120
  : 'yes';
121
+ $option8['sfsi_plus_responsive_icons_end_post'] = (isset($option8['sfsi_plus_responsive_icons_end_post']))
122
  ? sanitize_text_field($option8['sfsi_plus_responsive_icons_end_post'])
123
  : '';
124
  ?>
125
  <div class="tab8">
126
+ <ul class="sfsiplus_icn_listing8" style="margin-top:0">
127
+ <span id="sfsi_plus_analyst_pop" style="display:none" data-status="<?php echo $sfsi_plus_willshow_analyst_popup?"yes":"no"; ?>" ></span>
128
  <!--Second Section-->
129
+ <p class="sfsi_premium_feature_note" style="font-size:18px;margin-bottom:15px;padding-left:9px;padding-top:0!important;">Please select one or multiple placement options:</p>
130
 
131
  <li class="">
132
  <div class="radio_section tb_4_ck cstmfltonpgstck" onclick="sfsiplus_toggleflotpage(this);">
148
  }
149
  ?>
150
  <div class="sfsiplus_tab_3_icns" <?php echo 'style="' . $style . '"'; ?>>
151
+ <p style="margin-top:10px;font-size:16px;"><span class="margin-left:31px">Define the location:</span></p>
152
+ <!-- <ul class="sfsiplus_tab_3_icns flthmonpg" style="margin-top:10px" >
153
  <li>
154
  <input name="sfsi_plus_float_page_position" <?php echo ($option8['sfsi_plus_float_page_position'] == 'top-left') ? 'checked="true"' : ''; ?> type="radio" value="top-left" class="styled" />
155
  <span class="sfsi_flicnsoptn3 sfsioptntl">
157
  </span>
158
  <label><img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/top_left.png" /></label>
159
  </li>
160
+ <li>
161
+ <input name="sfsi_plus_float_page_position" <?php echo ($option8['sfsi_plus_float_page_position'] == 'center-top') ? 'checked="true"' : ''; ?> type="radio" value="center-top" class="styled" />
162
+ <span class="sfsi_flicnsoptn3 sfsioptncl">
163
+ <?php _e('Center top', SFSI_PLUS_DOMAIN); ?>
164
+ </span>
165
+ <label><img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/center_top.png" /></label>
166
+ </li>
167
  <li>
168
  <input name="sfsi_plus_float_page_position" <?php echo ($option8['sfsi_plus_float_page_position'] == 'top-right') ? 'checked="true"' : ''; ?> type="radio" value="top-right" class="styled" />
169
  <span class="sfsi_flicnsoptn3 sfsioptntr">
192
  </span>
193
  <label><img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/bottom_left.png" /></label>
194
  </li>
195
+ <li>
196
+ <input name="sfsi_plus_float_page_position" <?php echo ($option8['sfsi_plus_float_page_position'] == 'center-bottom') ? 'checked="true"' : ''; ?> type="radio" value="center-bottom" class="styled" />
197
+ <span class="sfsi_flicnsoptn3 sfsioptncl">
198
+ <?php _e('Center top', SFSI_PLUS_DOMAIN); ?>
199
+ </span>
200
+ <label><img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/center_bottom.png" /></label>
201
+ </li>
202
  <li>
203
  <input name="sfsi_plus_float_page_position" <?php echo ($option8['sfsi_plus_float_page_position'] == 'bottom-right') ? 'checked="true"' : ''; ?> type="radio" value="bottom-right" class="styled" />
204
  <span class="sfsi_flicnsoptn3 sfsioptnbr">
206
  </span>
207
  <label><img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/bottom_right.png" /></label>
208
  </li>
209
+ </ul> -->
210
+ <ul class="sfsi_tab_3_icns flthmonpg">
211
+ <div class="sfsi_position_divider">
212
+ <li>
213
+ <input name="sfsi_plus_float_page_position" <?php echo ( $option8['sfsi_plus_float_page_position']=='top-left') ? 'checked="true"' : '' ;?> type="radio" value="top-left" class="styled" />
214
+ <span class="sfsi_flicnsoptn3 sfsioptntl">Top left</span>
215
+ <label><img src="<?php echo SFSI_PLUS_PLUGURL;?>images/top_left.png" alt='error'/></label>
216
+ </li>
217
+ <li>
218
+ <input name="sfsi_plus_float_page_position" <?php echo ( $option8['sfsi_plus_float_page_position']=='center-top') ? 'checked="true"' : '' ;?> type="radio" value="center-top" class="styled" />
219
+ <span class="sfsi_flicnsoptn3 sfsioptncl">Center top</span>
220
+ <label class="sfsi_float_position_icon_label"><img src="<?php echo SFSI_PLUS_PLUGURL;?>images/float_position_icon.png" alt='error'/></label>
221
+ </li>
222
+ <li>
223
+ <input name="sfsi_plus_float_page_position" <?php echo ( $option8['sfsi_plus_float_page_position']=='top-right') ? 'checked="true"' : '' ;?> type="radio" value="top-right" class="styled" />
224
+ <span class="sfsi_flicnsoptn3 sfsioptntr">Top right</span>
225
+ <label><img src="<?php echo SFSI_PLUS_PLUGURL;?>images/top_right.png" alt='error' /></label>
226
+ </li>
227
+ </div>
228
+ <div class="sfsi_position_divider">
229
+ <li>
230
+ <input name="sfsi_plus_float_page_position" <?php echo ( $option8['sfsi_plus_float_page_position']=='center-left') ? 'checked="true"' : '' ;?> type="radio" value="center-left" class="styled" />
231
+ <span class="sfsi_flicnsoptn3 sfsioptncl">Center left</span>
232
+ <label><img src="<?php echo SFSI_PLUS_PLUGURL;?>images/center_left.png" alt='error'/></label>
233
+ </li>
234
+ <li></li>
235
+ <li>
236
+ <input name="sfsi_plus_float_page_position" <?php echo ( $option8['sfsi_plus_float_page_position']=='center-right') ? 'checked="true"' : '' ;?> type="radio" value="center-right" class="styled" />
237
+ <span class="sfsi_flicnsoptn3 sfsioptncr">Center right</span>
238
+ <label><img src="<?php echo SFSI_PLUS_PLUGURL;?>images/center_right.png" alt='error'/></label>
239
+ </li>
240
+ </div>
241
+ <div class="sfsi_position_divider">
242
+ <li>
243
+ <input name="sfsi_plus_float_page_position" <?php echo ( $option8['sfsi_plus_float_page_position']=='bottom-left') ? 'checked="true"' : '' ;?> type="radio" value="bottom-left" class="styled" />
244
+ <span class="sfsi_flicnsoptn3 sfsioptnbl">Bottom left</span>
245
+ <label><img src="<?php echo SFSI_PLUS_PLUGURL;?>images/bottom_left.png" alt='error'alt='error'/></label>
246
+ </li>
247
+ <li>
248
+ <input name="sfsi_plus_float_page_position" <?php echo ( $option8['sfsi_plus_float_page_position']=='center-bottom') ? 'checked="true"' : '' ;?> type="radio" value="center-bottom" class="styled" />
249
+ <span class="sfsi_flicnsoptn3 sfsioptncr">Center bottom</span>
250
+ <label class="sfsi_float_position_icon_label sfsi_center_botttom"><img class="sfsi_img_center_bottom" src="<?php echo SFSI_PLUS_PLUGURL;?>images/float_position_icon.png" alt='error'/></label>
251
+ </li>
252
+ <li>
253
+ <input name="sfsi_plus_float_page_position" <?php echo ( $option8['sfsi_plus_float_page_position']=='bottom-right') ? 'checked="true"' : '' ;?> type="radio" value="bottom-right" class="styled" />
254
+ <span class="sfsi_flicnsoptn3 sfsioptnbr">Bottom right</span>
255
+ <label><img src="<?php echo SFSI_PLUS_PLUGURL;?>images/bottom_right.png" alt='error'/></label>
256
+ </li>
257
+ </div>
258
+ </ul>
259
+
260
  <div style="width: 88%; float: left; margin:25px 0 0 47px">
261
  <h4>
262
  <?php _e('Margin From:', SFSI_PLUS_DOMAIN); ?>
320
  ?>
321
  <label class="sfsiplus_sub-subtitle ckckslctn" <?php echo $label_style; ?>>
322
  <?php _e('Go to the widget area and drag & drop it where you want to have it!', SFSI_PLUS_DOMAIN); ?>
323
+ <a href="<?php echo admin_url('widgets.php'); ?>" style="font-size:16px">
324
  <?php _e('Click here', SFSI_PLUS_DOMAIN); ?>
325
  </a>
326
  </label>
491
  </div>
492
  </li>
493
  <?php
494
+ if ($option8['sfsi_plus_display_button_type'] == 'normal_button' || $option8["sfsi_plus_display_button_type"] == "standard_buttons") : $display = "display:block";$sfsi_plus_display_normal_type = "display:block";$sfsi_plus_display_responsive_type = "display:none";
495
  else : $display = "display:none";$sfsi_plus_display_normal_type = "display:none";$sfsi_plus_display_responsive_type = "display:block";
496
  endif;
497
  ?>
views/sfsi_options_view.php CHANGED
@@ -216,9 +216,17 @@
216
  </a>
217
  </p>
218
 
219
-
220
- <!--<p class="bldtxtmsg">
221
- <?php _e('Need top-notch Wordpress development work at a competitive price?', SFSI_PLUS_DOMAIN); ?>
 
 
 
 
 
 
 
 
222
  <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=footer_credit&utm_medium=banner">
223
  <?php _e('Visit us on ultimatelysocial.com', SFSI_PLUS_DOMAIN); ?>
224
  </a>
@@ -263,7 +271,7 @@
263
  if (e !== '["wrong_nonce"]') {
264
  jQuery(".sfsi_plus_notificationBannner").html(e);
265
  } else {
266
- console.log(e);
267
  }
268
  }
269
  });
216
  </a>
217
  </p>
218
 
219
+ <p style="margin-top: 10px;clear: both;display:none">
220
+
221
+ <?php $nonce = wp_create_nonce("plus_worker_plugin"); ?>
222
+ <?php _e('Install Premium Plugin.', SFSI_PLUS_DOMAIN ); ?>
223
+
224
+ <a href="javascript:;" id="sfsi_plus_worker_plugin" title="Save" data-nonce="<?php echo $nonce;?>" data-plugin-list-url="<?php echo admin_url('admin.php?page=sfsi-installer-options'); ?>">
225
+ <?php _e( 'here', SFSI_PLUS_DOMAIN ); ?>
226
+ </a>
227
+ </p>
228
+ <!--<p class="bldtxtmsg">
229
+ <?php _e( 'Need top-notch Wordpress development work at a competitive price?', SFSI_PLUS_DOMAIN ); ?>
230
  <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=footer_credit&utm_medium=banner">
231
  <?php _e('Visit us on ultimatelysocial.com', SFSI_PLUS_DOMAIN); ?>
232
  </a>
271
  if (e !== '["wrong_nonce"]') {
272
  jQuery(".sfsi_plus_notificationBannner").html(e);
273
  } else {
274
+ // console.log(e);
275
  }
276
  }
277
  });
views/sfsi_pop_content.php CHANGED
@@ -797,7 +797,7 @@ $pin_url=($option2['sfsi_plus_pinterest_pageUrl']!='') ? $option2['sfsi_plus_pi
797
  <div class="sfsi_plus_row sfsi_plus_text_center">
798
  <div class="sfsi_plus_col_6" style="text-align: right; vertical-align: middle;">
799
  <div class="sellcodes-quick-purchase" onclick="sfsi_plus_quickpay_container_click(event)" style="margin-right: 15px; padding: 18px 40px !important;cursor:pointer">
800
- <p class="sc-button" data-product-id="XdHlrQnc" data-option-id="ftHaa2zt" data-paymethod="0">
801
  <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/visa.png" />
802
  <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/mastercard.png" />
803
  </p>
@@ -806,7 +806,7 @@ $pin_url=($option2['sfsi_plus_pinterest_pageUrl']!='') ? $option2['sfsi_plus_pi
806
  </div>
807
  <div class="sfsi_plus_col_6" style="text-align: left; vertical-align: middle;">
808
  <div class="sellcodes-quick-purchase" onclick="sfsi_plus_quickpay_container_click(event)" style="margin-left: 0px;cursor:pointer">
809
- <p class="sc-button" data-product-id="XdHlrQnc" data-option-id="ftHaa2zt" data-paymethod="1">
810
  <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/paypal-1.png"/>
811
  </p>
812
  </div>
@@ -833,3 +833,10 @@ $pin_url=($option2['sfsi_plus_pinterest_pageUrl']!='') ? $option2['sfsi_plus_pi
833
  </div>
834
  </div>
835
  </div>
 
 
 
 
 
 
 
797
  <div class="sfsi_plus_row sfsi_plus_text_center">
798
  <div class="sfsi_plus_col_6" style="text-align: right; vertical-align: middle;">
799
  <div class="sellcodes-quick-purchase" onclick="sfsi_plus_quickpay_container_click(event)" style="margin-right: 15px; padding: 18px 40px !important;cursor:pointer">
800
+ <p class="sc-button" data-product-id="XdHlrQnc" data-option-id="ftHaa2zt" data-paymethod="0" data-redirect="1" >
801
  <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/visa.png" />
802
  <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/mastercard.png" />
803
  </p>
806
  </div>
807
  <div class="sfsi_plus_col_6" style="text-align: left; vertical-align: middle;">
808
  <div class="sellcodes-quick-purchase" onclick="sfsi_plus_quickpay_container_click(event)" style="margin-left: 0px;cursor:pointer">
809
+ <p class="sc-button" data-product-id="XdHlrQnc" data-option-id="ftHaa2zt" data-paymethod="1" data-redirect="1" >
810
  <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/paypal-1.png"/>
811
  </p>
812
  </div>
833
  </div>
834
  </div>
835
  </div>
836
+ <div class="pop-overlay read-overlay sfsi_plus_wait_container" style="background:rgba(255,255,255,.6);z-index:9999;overflow-y:auto" >
837
+ <div class="sfsi_pop_up" style="padding-left: 0;padding-right: 0;padding-top:0;width:100%" >
838
+ <div class="sfsi_plus_wait" style="width: 50px;height: 50px;margin: 25% auto;">
839
+ <img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" alt="error" >
840
+ </div>
841
+ </div>
842
+ </div>