WP Live Chat Support - Version 8.0.13

Version Description

  • 2018-06-06 - Medium priority =
  • Fix chat delay not working for first visit and offline
  • Optimize images
  • Mootools compatibility
  • Fix new chat request email notifications when Pro is active
Download this release

Release Info

Developer WP-LiveChat
Plugin Icon 128x128 WP Live Chat Support
Version 8.0.13
Comparing to
See all releases

Code changes from version 8.0.12 to 8.0.13

Files changed (62) hide show
  1. images/48px.png +0 -0
  2. images/48px_n.png +0 -0
  3. images/add-on0.jpg +0 -0
  4. images/add-on1.jpg +0 -0
  5. images/add-on2.jpg +0 -0
  6. images/add-on3.jpg +0 -0
  7. images/add-on4.jpg +0 -0
  8. images/ajax-loader.gif +0 -0
  9. images/bg/cloudy.jpg +0 -0
  10. images/bg/geometry.jpg +0 -0
  11. images/bg/social.jpg +0 -0
  12. images/bg/tech.jpg +0 -0
  13. images/chaticon.png +0 -0
  14. images/chrome_16x16.png +0 -0
  15. images/chrome_32x32.png +0 -0
  16. images/codecabin.png +0 -0
  17. images/firefox_16x16.png +0 -0
  18. images/firefox_32x32.png +0 -0
  19. images/flash.ico +0 -0
  20. images/gif_f.png +0 -0
  21. images/iconCloseRetina.png +0 -0
  22. images/iconRetina.png +0 -0
  23. images/iconmicro.png +0 -0
  24. images/internet-explorer_16x16.png +0 -0
  25. images/internet-explorer_32x32.png +0 -0
  26. images/loader2.gif +0 -0
  27. images/opera_16x16.png +0 -0
  28. images/opera_32x32.png +0 -0
  29. images/performance.png +0 -0
  30. images/plugin1.jpg +0 -0
  31. images/plugin2.jpg +0 -0
  32. images/reporting_sample.jpg +0 -0
  33. images/safari_16x16.png +0 -0
  34. images/safari_32x32.png +0 -0
  35. images/support.png +0 -0
  36. images/themes/newtheme-1.jpg +0 -0
  37. images/themes/newtheme-2.jpg +0 -0
  38. images/themes/theme-1.png +0 -0
  39. images/themes/theme-2.png +0 -0
  40. images/themes/theme-3.png +0 -0
  41. images/themes/theme-4.png +0 -0
  42. images/themes/theme-5.png +0 -0
  43. images/themes/theme-6.png +0 -0
  44. images/trigger_sample.jpg +0 -0
  45. images/trigger_sample_front.jpg +0 -0
  46. images/ui-bg_flat_10_000000_40x100.png +0 -0
  47. images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  48. images/ui-icons_ffffff_256x240.png +0 -0
  49. images/web_16x16.png +0 -0
  50. images/web_32x32.png +0 -0
  51. images/wplc-logo.png +0 -0
  52. images/wplc_notification_icon.png +0 -0
  53. includes/blocks/wplc-inline-chat-box/block.js +1 -1
  54. includes/blocks/wplc-inline-chat-box/wplc_functions.js +6 -6
  55. includes/surveys.php +5 -5
  56. js/wplc_u.js +10 -4
  57. js/wplc_u_admin_chatbox_ui_events.js +2 -2
  58. js/wplc_u_admin_events.js +22 -22
  59. modules/api/wplc-api-functions.php +5 -2
  60. modules/node_server.php +6 -6
  61. readme.txt +6 -0
  62. wp-live-chat-support.php +8 -2
images/48px.png CHANGED
Binary file
images/48px_n.png CHANGED
Binary file
images/add-on0.jpg CHANGED
Binary file
images/add-on1.jpg CHANGED
Binary file
images/add-on2.jpg CHANGED
Binary file
images/add-on3.jpg CHANGED
Binary file
images/add-on4.jpg CHANGED
Binary file
images/ajax-loader.gif CHANGED
Binary file
images/bg/cloudy.jpg CHANGED
Binary file
images/bg/geometry.jpg CHANGED
Binary file
images/bg/social.jpg CHANGED
Binary file
images/bg/tech.jpg CHANGED
Binary file
images/chaticon.png CHANGED
Binary file
images/chrome_16x16.png CHANGED
Binary file
images/chrome_32x32.png CHANGED
Binary file
images/codecabin.png CHANGED
Binary file
images/firefox_16x16.png CHANGED
Binary file
images/firefox_32x32.png CHANGED
Binary file
images/flash.ico CHANGED
Binary file
images/gif_f.png CHANGED
Binary file
images/iconCloseRetina.png CHANGED
Binary file
images/iconRetina.png CHANGED
Binary file
images/iconmicro.png CHANGED
Binary file
images/internet-explorer_16x16.png CHANGED
Binary file
images/internet-explorer_32x32.png CHANGED
Binary file
images/loader2.gif CHANGED
Binary file
images/opera_16x16.png CHANGED
Binary file
images/opera_32x32.png CHANGED
Binary file
images/performance.png CHANGED
Binary file
images/plugin1.jpg CHANGED
Binary file
images/plugin2.jpg CHANGED
Binary file
images/reporting_sample.jpg CHANGED
Binary file
images/safari_16x16.png CHANGED
Binary file
images/safari_32x32.png CHANGED
Binary file
images/support.png CHANGED
Binary file
images/themes/newtheme-1.jpg CHANGED
Binary file
images/themes/newtheme-2.jpg CHANGED
Binary file
images/themes/theme-1.png CHANGED
Binary file
images/themes/theme-2.png CHANGED
Binary file
images/themes/theme-3.png CHANGED
Binary file
images/themes/theme-4.png CHANGED
Binary file
images/themes/theme-5.png CHANGED
Binary file
images/themes/theme-6.png CHANGED
Binary file
images/trigger_sample.jpg CHANGED
Binary file
images/trigger_sample_front.jpg CHANGED
Binary file
images/ui-bg_flat_10_000000_40x100.png CHANGED
Binary file
images/ui-bg_glass_65_ffffff_1x400.png CHANGED
Binary file
images/ui-icons_ffffff_256x240.png CHANGED
Binary file
images/web_16x16.png CHANGED
Binary file
images/web_32x32.png CHANGED
Binary file
images/wplc-logo.png CHANGED
Binary file
images/wplc_notification_icon.png CHANGED
Binary file
includes/blocks/wplc-inline-chat-box/block.js CHANGED
@@ -26,7 +26,7 @@
26
  props.setAttributes( { content: newContent } );
27
  }
28
 
29
- $(document).on('change', '.wplc_select_theme', function(){
30
  var id = $(this).val();
31
  onChangeContent( id );
32
  });
26
  props.setAttributes( { content: newContent } );
27
  }
28
 
29
+ jQuery(document).on('change', '.wplc_select_theme', function(){
30
  var id = $(this).val();
31
  onChangeContent( id );
32
  });
includes/blocks/wplc-inline-chat-box/wplc_functions.js CHANGED
@@ -27,13 +27,13 @@ jQuery(document).ready( function($){
27
  });
28
 
29
  function wplc_gutenberg_open_chat_box(button, icon) {
30
- $(button).css('background-image', 'url(' + icon + ')');
31
- $(button).css('transform', 'rotate(90deg)');
32
- $(button).closest('.wplc_gutenberg_preview').find('.wplc_gutenberg_chat_box').show();
33
  }
34
 
35
  function wplc_gutenberg_close_chat_box(button, icon) {
36
- $(button).css('background-image', 'url(' + icon + ')');
37
- $(button).css('transform', 'rotate(0deg)');
38
- $(button).closest('.wplc_gutenberg_preview').find('.wplc_gutenberg_chat_box').hide();
39
  }
27
  });
28
 
29
  function wplc_gutenberg_open_chat_box(button, icon) {
30
+ jQuery(button).css('background-image', 'url(' + icon + ')');
31
+ jQuery(button).css('transform', 'rotate(90deg)');
32
+ jQuery(button).closest('.wplc_gutenberg_preview').find('.wplc_gutenberg_chat_box').show();
33
  }
34
 
35
  function wplc_gutenberg_close_chat_box(button, icon) {
36
+ jQuery(button).css('background-image', 'url(' + icon + ')');
37
+ jQuery(button).css('transform', 'rotate(0deg)');
38
+ jQuery(button).closest('.wplc_gutenberg_preview').find('.wplc_gutenberg_chat_box').hide();
39
  }
includes/surveys.php CHANGED
@@ -120,7 +120,7 @@ function wplc_survey_hook_control_settings_page_more_tabs() {
120
  <?php
121
 
122
  global $wplc_version;
123
- wp_register_script('wplc-lead-form-script', plugins_url('/js/wplc_lead_forms.js', __DIR__),array('jquery'),$wplc_version);
124
  wp_enqueue_script('wplc-lead-form-script');
125
  }
126
 
@@ -192,7 +192,7 @@ function wplc_filter_control_live_chat_box_pre_layer1($content) {
192
  if( isset( $settings['wplc_enable_surveys'] ) && intval($settings['wplc_enable_surveys']) == 1 && !isset($_COOKIE['ns_participated'])){
193
 
194
  if( isset( $settings['survey_display']) && $settings['survey_display'] == '1' ) {
195
- $content .= "<img src='".plugins_url('/images/loader2.gif', __DIR__)."' style='display:block; margin-left:auto; margin-right:auto;' / >";
196
  return $content;
197
  }
198
  }
@@ -284,10 +284,10 @@ function wplc_nimble_load_scripts() {
284
  wp_localize_script( 'nimble-squirrel-user-script', 'ns_clear_div', $clear_div );
285
 
286
 
287
- wp_register_style('wplc-survey-style', plugins_url('/css/wplc-survey-style.css', __DIR__));
288
  wp_enqueue_style('wplc-survey-style');
289
  if( isset( $settings['survey_display']) && $settings['survey_display'] == '1' ) {
290
- wp_register_style('wplc-survey-before-style', plugins_url('/css/wplc-survey-style-before.css', __DIR__));
291
  wp_enqueue_style('wplc-survey-before-style');
292
  }
293
  }
@@ -326,7 +326,7 @@ function wplc_hook_survey_push_js_to_front() {
326
 
327
  global $wplc_version;
328
  $wplc_settings = get_option('WPLC_SETTINGS');
329
- wp_register_script('wplc-survey-script', plugins_url('/js/wplc_surveys.js', __DIR__),array('jquery'),$wplc_version);
330
  wp_enqueue_script('wplc-survey-script');
331
  wp_localize_script( 'wplc-survey-script', 'wplc_end_chat_string', $wplc_settings['wplc_pro_sst1e_survey'] );
332
  wp_localize_script( 'wplc-survey-script', 'wplc_button_string', $wplc_settings['wplc_pro_sst1_survey'] );
120
  <?php
121
 
122
  global $wplc_version;
123
+ wp_register_script('wplc-lead-form-script', plugins_url('../js/wplc_lead_forms.js', __FILE__),array('jquery'),$wplc_version);
124
  wp_enqueue_script('wplc-lead-form-script');
125
  }
126
 
192
  if( isset( $settings['wplc_enable_surveys'] ) && intval($settings['wplc_enable_surveys']) == 1 && !isset($_COOKIE['ns_participated'])){
193
 
194
  if( isset( $settings['survey_display']) && $settings['survey_display'] == '1' ) {
195
+ $content .= "<img src='".plugins_url('../images/loader2.gif', __FILE__)."' style='display:block; margin-left:auto; margin-right:auto;' / >";
196
  return $content;
197
  }
198
  }
284
  wp_localize_script( 'nimble-squirrel-user-script', 'ns_clear_div', $clear_div );
285
 
286
 
287
+ wp_register_style('wplc-survey-style', plugins_url('../css/wplc-survey-style.css', __FILE__));
288
  wp_enqueue_style('wplc-survey-style');
289
  if( isset( $settings['survey_display']) && $settings['survey_display'] == '1' ) {
290
+ wp_register_style('wplc-survey-before-style', plugins_url('../css/wplc-survey-style-before.css', __FILE__));
291
  wp_enqueue_style('wplc-survey-before-style');
292
  }
293
  }
326
 
327
  global $wplc_version;
328
  $wplc_settings = get_option('WPLC_SETTINGS');
329
+ wp_register_script('wplc-survey-script', plugins_url('../js/wplc_surveys.js', __FILE__),array('jquery'),$wplc_version);
330
  wp_enqueue_script('wplc-survey-script');
331
  wp_localize_script( 'wplc-survey-script', 'wplc_end_chat_string', $wplc_settings['wplc_pro_sst1e_survey'] );
332
  wp_localize_script( 'wplc-survey-script', 'wplc_button_string', $wplc_settings['wplc_pro_sst1_survey'] );
js/wplc_u.js CHANGED
@@ -213,7 +213,11 @@ jQuery(document).ready(function() {
213
  //Node and offline
214
  if(typeof wplc_use_node_server !== "undefined" && (wplc_use_node_server === "true" || wplc_use_node_server === true)){
215
 
216
- wplc_cbox_animation();
 
 
 
 
217
  }
218
  }
219
 
@@ -233,9 +237,11 @@ jQuery(document).ready(function() {
233
  if (typeof wplc_preload_images !== "undefined" && typeof wplc_preload_images === "object" ) {
234
  var wplc_i = 0;
235
  for (var key in wplc_preload_images) {
236
- images[wplc_i] = new Image();
237
- images[wplc_i].src = wplc_preload_images[key];
238
- wplc_i++;
 
 
239
  }
240
  }
241
  }
213
  //Node and offline
214
  if(typeof wplc_use_node_server !== "undefined" && (wplc_use_node_server === "true" || wplc_use_node_server === true)){
215
 
216
+ if(wplc_check_hide_cookie != "yes"){
217
+ wplc_dc = setTimeout(function (){
218
+ wplc_cbox_animation();
219
+ }, parseInt(window.wplc_delay));
220
+ }
221
  }
222
  }
223
 
237
  if (typeof wplc_preload_images !== "undefined" && typeof wplc_preload_images === "object" ) {
238
  var wplc_i = 0;
239
  for (var key in wplc_preload_images) {
240
+ if (wplc_preload_images.hasOwnProperty(key)) {
241
+ images[wplc_i] = new Image();
242
+ images[wplc_i].src = wplc_preload_images[key];
243
+ wplc_i++;
244
+ }
245
  }
246
  }
247
  }
js/wplc_u_admin_chatbox_ui_events.js CHANGED
@@ -44,9 +44,9 @@ WPLC_U_Admin_Chatbox_UI_Events.prototype = {
44
  if (this.showDate || this.showTime) {
45
 
46
  if (this.showDate && this.showTime) {
47
- return '<span class="'+ this.CLASSES.POPUP_TIMESTAMP +'">' + $(dateTime).text() + '</span>';
48
  } else {
49
- return '<span class="'+ this.CLASSES.POPUP_TIMESTAMP +' '+ this.CLASSES.ONLY_HOURS +'">' + $(dateTime).text() + '</span>';
50
  }
51
  }
52
  } catch(err) {
44
  if (this.showDate || this.showTime) {
45
 
46
  if (this.showDate && this.showTime) {
47
+ return '<span class="'+ this.CLASSES.POPUP_TIMESTAMP +'">' + jQuery(dateTime).text() + '</span>';
48
  } else {
49
+ return '<span class="'+ this.CLASSES.POPUP_TIMESTAMP +' '+ this.CLASSES.ONLY_HOURS +'">' + jQuery(dateTime).text() + '</span>';
50
  }
51
  }
52
  } catch(err) {
js/wplc_u_admin_events.js CHANGED
@@ -579,24 +579,24 @@ jQuery(document).on("bleeper_dom_ready", function(e) {
579
 
580
  if(typeof wplc_agent_data[e.agentid] !== "undefined" && typeof wplc_agent_data[e.agentid].md5 !== "undefined" && typeof wplc_agent_data[e.agentid].name !== "undefined"){
581
 
582
- var num_age = $(".agent_involved_"+e.chatid).length;
583
  if (num_age > 2) {
584
  var marg_right = num_age * -1.5;
585
- $(".agent_involved_"+e.chatid).addClass('morethan2');
586
  }
587
  else {
588
  var marg_right = 2;
589
- $(".agent_involved_"+e.chatid).removeClass('morethan2');
590
  }
591
  if (marg_right < -12) { marg_right = 12; }
592
 
593
  agent_involved = wplc_agent_data[e.agentid];
594
  agent_involved_email = agent_involved.md5;
595
  agent_involved_name = agent_involved.name;
596
- $(".agent_involved_"+e.chatid).css('margin-right',marg_right+'px');
597
 
598
- if ( ! $( '#agent_grav_'+e.chatid+'_'+e.agentid ).length ) {
599
- $('<img/>', {
600
  'style': 'max-width:inherit; margin-right:'+marg_right+'px',
601
  'id' : 'agent_grav_'+e.chatid+'_'+e.agentid,
602
  'title' : agent_involved_name,
@@ -618,24 +618,24 @@ jQuery(document).on("bleeper_dom_ready", function(e) {
618
 
619
  if(typeof wplc_agent_data[e.agentid] !== "undefined" && typeof wplc_agent_data[e.agentid].md5 !== "undefined" && typeof wplc_agent_data[e.agentid].name !== "undefined"){
620
 
621
- var num_age = $(".agent_involved_"+e.chatid).length;
622
  if (num_age > 2) {
623
- var marg_right = num_age * -1.5;
624
- $(".agent_involved_"+e.chatid).addClass('morethan2');
625
  }
626
  else {
627
- var marg_right = 2;
628
- $(".agent_involved_"+e.chatid).removeClass('morethan2');
629
  }
630
  if (marg_right < -12) { marg_right = 12; }
631
 
632
  agent_involved = wplc_agent_data[e.agentid];
633
  agent_involved_email = agent_involved.md5;
634
  agent_involved_name = agent_involved.name;
635
- $(".agent_involved_"+e.chatid).css('margin-right',marg_right+'px');
636
 
637
- if ( ! $( '#agent_grav_visitor_'+e.chatid+'_'+e.agentid ).length ) {
638
- $('<img/>', {
639
  'style': 'max-width:inherit; margin-right:'+marg_right+'px',
640
  'id' : 'agent_grav_visitor_'+e.chatid+'_'+e.agentid,
641
  'title' : agent_involved_name,
@@ -770,10 +770,10 @@ jQuery(document).on("bleeper_dom_ready", function(e) {
770
  });
771
  }
772
  }
773
- $("#"+e.ndata.chatid).removeClass('active');
774
- $("#"+e.ndata.chatid).addClass('inactive');
775
- $(".bleeper_close_item_"+e.ndata.chatid).show();
776
- $("#vis"+e.ndata.chatid).remove();
777
  }
778
 
779
  });
@@ -838,10 +838,10 @@ jQuery(document).on("bleeper_dom_ready", function(e) {
838
 
839
 
840
 
841
- $(".online_agent_"+t_ag_id+" .online_offline").removeClass('offline');
842
- $(".online_agent_"+t_ag_id+" .online_offline").addClass('online');
843
- $(".online_agent_"+t_ag_id+"").attr('socket',t_ag_sock);
844
- $(".online_agent_"+t_ag_id+"").attr('id',t_ag_cid);
845
 
846
  /**
847
  * Add each agent as an 'involved agent' to the chat ID
579
 
580
  if(typeof wplc_agent_data[e.agentid] !== "undefined" && typeof wplc_agent_data[e.agentid].md5 !== "undefined" && typeof wplc_agent_data[e.agentid].name !== "undefined"){
581
 
582
+ var num_age = jQuery(".agent_involved_"+e.chatid).length;
583
  if (num_age > 2) {
584
  var marg_right = num_age * -1.5;
585
+ jQuery(".agent_involved_"+e.chatid).addClass('morethan2');
586
  }
587
  else {
588
  var marg_right = 2;
589
+ jQuery(".agent_involved_"+e.chatid).removeClass('morethan2');
590
  }
591
  if (marg_right < -12) { marg_right = 12; }
592
 
593
  agent_involved = wplc_agent_data[e.agentid];
594
  agent_involved_email = agent_involved.md5;
595
  agent_involved_name = agent_involved.name;
596
+ jQuery(".agent_involved_"+e.chatid).css('margin-right',marg_right+'px');
597
 
598
+ if ( ! jQuery( '#agent_grav_'+e.chatid+'_'+e.agentid ).length ) {
599
+ jQuery('<img/>', {
600
  'style': 'max-width:inherit; margin-right:'+marg_right+'px',
601
  'id' : 'agent_grav_'+e.chatid+'_'+e.agentid,
602
  'title' : agent_involved_name,
618
 
619
  if(typeof wplc_agent_data[e.agentid] !== "undefined" && typeof wplc_agent_data[e.agentid].md5 !== "undefined" && typeof wplc_agent_data[e.agentid].name !== "undefined"){
620
 
621
+ var num_age = jQuery(".agent_involved_"+e.chatid).length;
622
  if (num_age > 2) {
623
+ var marg_right = num_age * -1.5;
624
+ jQuery(".agent_involved_"+e.chatid).addClass('morethan2');
625
  }
626
  else {
627
+ var marg_right = 2;
628
+ jQuery(".agent_involved_"+e.chatid).removeClass('morethan2');
629
  }
630
  if (marg_right < -12) { marg_right = 12; }
631
 
632
  agent_involved = wplc_agent_data[e.agentid];
633
  agent_involved_email = agent_involved.md5;
634
  agent_involved_name = agent_involved.name;
635
+ jQuery(".agent_involved_"+e.chatid).css('margin-right',marg_right+'px');
636
 
637
+ if ( ! jQuery( '#agent_grav_visitor_'+e.chatid+'_'+e.agentid ).length ) {
638
+ jQuery('<img/>', {
639
  'style': 'max-width:inherit; margin-right:'+marg_right+'px',
640
  'id' : 'agent_grav_visitor_'+e.chatid+'_'+e.agentid,
641
  'title' : agent_involved_name,
770
  });
771
  }
772
  }
773
+ jQuery("#"+e.ndata.chatid).removeClass('active');
774
+ jQuery("#"+e.ndata.chatid).addClass('inactive');
775
+ jQuery(".bleeper_close_item_"+e.ndata.chatid).show();
776
+ jQuery("#vis"+e.ndata.chatid).remove();
777
  }
778
 
779
  });
838
 
839
 
840
 
841
+ jQuery(".online_agent_"+t_ag_id+" .online_offline").removeClass('offline');
842
+ jQuery(".online_agent_"+t_ag_id+" .online_offline").addClass('online');
843
+ jQuery(".online_agent_"+t_ag_id+"").attr('socket',t_ag_sock);
844
+ jQuery(".online_agent_"+t_ag_id+"").attr('id',t_ag_cid);
845
 
846
  /**
847
  * Add each agent as an 'involved agent' to the chat ID
modules/api/wplc-api-functions.php CHANGED
@@ -695,8 +695,11 @@ function wplc_api_call_start_chat( WP_REST_Request $request ){
695
  $cid = $wpdb->insert_id;
696
 
697
  /* Nick: moved from top of function to bottom of function to try speed up the process of accepting the chart - version 7 */
698
- if (function_exists("wplc_list_chats_pro")) { /* check if functions-pro is around */
699
- wplc_pro_notify_via_email();
 
 
 
700
  }
701
 
702
  do_action("wplc_start_chat_hook_after_data_insert", $cid, 2, $request['wplc_name']);
695
  $cid = $wpdb->insert_id;
696
 
697
  /* Nick: moved from top of function to bottom of function to try speed up the process of accepting the chart - version 7 */
698
+ if (function_exists("wplc_pro_notify_via_email")) { /* check if pro is around */
699
+ wplc_pro_notify_via_email( array(
700
+ 'name' => $request['wplc_name'],
701
+ 'email' => $request['wplc_email'],
702
+ ) );
703
  }
704
 
705
  do_action("wplc_start_chat_hook_after_data_insert", $cid, 2, $request['wplc_name']);
modules/node_server.php CHANGED
@@ -382,7 +382,7 @@ add_action('admin_enqueue_scripts', 'wplc_enqueue_dashboard_popup_scripts');
382
  function wplc_enqueue_dashboard_popup_scripts() {
383
  global $wplc_version;
384
  wp_enqueue_script('jquery-ui-draggable');
385
- wp_enqueue_script('wplc-admin-popup', plugin_dir_url(__DIR__) . 'js/wplc_admin_popup.js', array(), $wplc_version);
386
 
387
  wp_button_pointers_load_scripts('toplevel_page_wplivechat-menu');
388
  }
@@ -423,7 +423,7 @@ function wplc_dashboard_display_decide() {
423
  echo '<div class="floating-right-toolbar">';
424
  echo '<label for="user_list_bleeper_control" style="margin-bottom: 0; display:none;"></label>';
425
 
426
- echo '<i id="toolbar-item-open-bleeper" class="fa fa-fw" style="background:url(\''.plugins_url('images/48px.png', dirname(__FILE__)).'\') no-repeat; background-size: cover;"></i>';
427
  echo '</div>';
428
  }
429
 
@@ -502,7 +502,7 @@ function wplc_admin_remote_dashboard_scripts($wplc_settings){
502
  wp_enqueue_script('wplc-admin-js-emoji-bundle');
503
  }
504
 
505
- wp_register_script('md5', plugins_url( 'js/md5.js', __DIR__ ), array("wplc-admin-js-sockets"), false, false);
506
  wp_enqueue_script('md5');
507
 
508
  $dependencies = array();
@@ -688,7 +688,7 @@ function wplc_admin_remote_dashboard_scripts($wplc_settings){
688
 
689
  wp_enqueue_script('wplc-admin-js-agent');
690
 
691
- wp_register_script('wplc-admin-chat-server', plugins_url( 'js/wplc_server.js', __DIR__ ), array("wplc-admin-js-agent", "wplc-admin-js-sockets"), $wplc_version, false); //Added this for async storage calls
692
  wp_enqueue_script('wplc-admin-chat-server');
693
 
694
  wp_localize_script( 'wplc-admin-chat-server', 'wplc_datetime_format', array(
@@ -696,7 +696,7 @@ function wplc_admin_remote_dashboard_scripts($wplc_settings){
696
  'time_format' => get_option( 'time_format' ),
697
  ) );
698
 
699
- wp_register_script('wplc-admin-chat-events', plugins_url( 'js/wplc_u_admin_events.js', __DIR__ ), array("wplc-admin-js-agent", "wplc-admin-js-sockets", "wplc-admin-chat-server"), $wplc_version, false); //Added this for async storage calls
700
  wp_enqueue_script('wplc-admin-chat-events');
701
 
702
  if (isset($wplc_settings['wplc_show_date']) && $wplc_settings["wplc_show_date"] == '1') {
@@ -1190,7 +1190,7 @@ add_action("wplc_admin_remoter_dashboard_scripts_localizer", "wplc_admin_remote_
1190
  function wplc_admin_remote_dashboard_dynamic_translation_handler(){
1191
 
1192
  global $wplc_version;
1193
- wp_register_script('wplc-admin-dynamic-translation', plugins_url( 'js/wplc_admin_dynamic_translations.js', __DIR__ ), array("wplc-admin-js-agent", "wplc-admin-js-sockets", "jquery"), $wplc_version, false); //Added this for async storage calls
1194
 
1195
  $wplc_dynamic_translation_array = array(
1196
  'nifty_bg_holder_text_inner' => __('Connecting...', 'wplivechat'),
382
  function wplc_enqueue_dashboard_popup_scripts() {
383
  global $wplc_version;
384
  wp_enqueue_script('jquery-ui-draggable');
385
+ wp_enqueue_script('wplc-admin-popup', plugins_url('../js/wplc_admin_popup.js', __FILE__ ), array('jquery-ui-draggable'), $wplc_version);
386
 
387
  wp_button_pointers_load_scripts('toplevel_page_wplivechat-menu');
388
  }
423
  echo '<div class="floating-right-toolbar">';
424
  echo '<label for="user_list_bleeper_control" style="margin-bottom: 0; display:none;"></label>';
425
 
426
+ echo '<i id="toolbar-item-open-bleeper" class="fa fa-fw" style="background:url(\''.plugins_url('../images/48px.png', __FILE__).'\') no-repeat; background-size: cover;"></i>';
427
  echo '</div>';
428
  }
429
 
502
  wp_enqueue_script('wplc-admin-js-emoji-bundle');
503
  }
504
 
505
+ wp_register_script('md5', plugins_url( '../js/md5.js', __FILE__ ), array("wplc-admin-js-sockets"), false, false);
506
  wp_enqueue_script('md5');
507
 
508
  $dependencies = array();
688
 
689
  wp_enqueue_script('wplc-admin-js-agent');
690
 
691
+ wp_register_script('wplc-admin-chat-server', plugins_url( '../js/wplc_server.js', __FILE__ ), array("wplc-admin-js-agent", "wplc-admin-js-sockets"), $wplc_version, false); //Added this for async storage calls
692
  wp_enqueue_script('wplc-admin-chat-server');
693
 
694
  wp_localize_script( 'wplc-admin-chat-server', 'wplc_datetime_format', array(
696
  'time_format' => get_option( 'time_format' ),
697
  ) );
698
 
699
+ wp_register_script('wplc-admin-chat-events', plugins_url( '../js/wplc_u_admin_events.js', __FILE__ ), array("wplc-admin-js-agent", "wplc-admin-js-sockets", "wplc-admin-chat-server"), $wplc_version, false); //Added this for async storage calls
700
  wp_enqueue_script('wplc-admin-chat-events');
701
 
702
  if (isset($wplc_settings['wplc_show_date']) && $wplc_settings["wplc_show_date"] == '1') {
1190
  function wplc_admin_remote_dashboard_dynamic_translation_handler(){
1191
 
1192
  global $wplc_version;
1193
+ wp_register_script('wplc-admin-dynamic-translation', plugins_url( '../js/wplc_admin_dynamic_translations.js', __FILE__ ), array("wplc-admin-js-agent", "wplc-admin-js-sockets", "jquery"), $wplc_version, false); //Added this for async storage calls
1194
 
1195
  $wplc_dynamic_translation_array = array(
1196
  'nifty_bg_holder_text_inner' => __('Connecting...', 'wplivechat'),
readme.txt CHANGED
@@ -238,6 +238,12 @@ We have patched the PHPMailer vulnerability. Please update to version 7.0.02.
238
 
239
  == Changelog ==
240
 
 
 
 
 
 
 
241
  = 8.0.12 - 2018-05-29 - High priority =
242
  * Fixed a bug which caused the chat box not to display on some sites
243
  * Fixed minor styling issues
238
 
239
  == Changelog ==
240
 
241
+ = 8.0.13 - 2018-06-06 - Medium priority =
242
+ * Fix chat delay not working for first visit and offline
243
+ * Optimize images
244
+ * Mootools compatibility
245
+ * Fix new chat request email notifications when Pro is active
246
+
247
  = 8.0.12 - 2018-05-29 - High priority =
248
  * Fixed a bug which caused the chat box not to display on some sites
249
  * Fixed minor styling issues
wp-live-chat-support.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Live Chat Support
4
  Plugin URI: http://www.wp-livechat.com
5
  Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP Live Chat Support.
6
- Version: 8.0.12
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  Text Domain: wplivechat
@@ -11,6 +11,12 @@
11
  */
12
 
13
  /**
 
 
 
 
 
 
14
  * 8.0.12 - 2018-05-29 - High priority
15
  * Fixed a bug which caused the chat box not to display on some sites
16
  * Fixed minor styling issues
@@ -639,7 +645,7 @@ global $debug_start;
639
  $wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
640
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
641
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
642
- $wplc_version = "8.0.12";
643
 
644
  define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
645
  define('WPLC_BASIC_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
3
  Plugin Name: WP Live Chat Support
4
  Plugin URI: http://www.wp-livechat.com
5
  Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP Live Chat Support.
6
+ Version: 8.0.13
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  Text Domain: wplivechat
11
  */
12
 
13
  /**
14
+ * 8.0.13 - 2018-06-06 - Medium priority
15
+ * Fix chat delay not working for first visit and offline
16
+ * Optimize images
17
+ * Mootools compatibility
18
+ * Fix new chat request email notifications when Pro is active
19
+ *
20
  * 8.0.12 - 2018-05-29 - High priority
21
  * Fixed a bug which caused the chat box not to display on some sites
22
  * Fixed minor styling issues
645
  $wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
646
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
647
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
648
+ $wplc_version = "8.0.13";
649
 
650
  define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
651
  define('WPLC_BASIC_PLUGIN_URL', plugins_url( '/', __FILE__ ) );