WP Live Chat Support - Version 4.1.0

Version Description

It is highly recommended that you upgrade to version 4.1.0.

=

Download this release

Release Info

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

Code changes from version 4.0.2 to 4.1.0

ajax.php CHANGED
@@ -19,9 +19,9 @@ ini_set('html_errors', 0);
19
 
20
  require_once( '../../../wp-load.php' );
21
 
22
- function untrailingslashit($string) {
23
- return rtrim($string, '/');
24
- }
25
 
26
 
27
  define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash
@@ -33,6 +33,10 @@ require_once( ABSPATH . WPINC . '/l10n.php' );
33
 
34
  require_once( ABSPATH . WPINC . '/link-template.php' );
35
 
 
 
 
 
36
 
37
 
38
  $plugin_dir = basename(dirname(__FILE__))."/languages/";
@@ -70,7 +74,7 @@ if ($check == 1) {
70
  set_time_limit(120);
71
  //sleep(6);
72
  $i = 1;
73
- while($i <= 90){
74
 
75
  // update chats if they have timed out every 10 seconds
76
  if($i %10 == 0) {
@@ -110,7 +114,7 @@ if ($check == 1) {
110
  set_time_limit(120);
111
  $i = 1;
112
  $array = array();
113
- while($i <= 90){
114
  if(isset($_POST['action_2']) && $_POST['action_2'] == "wplc_long_poll_check_user_opened_chat"){
115
  $chat_status = wplc_return_chat_status($_POST['cid']);
116
  if($chat_status == 3){
@@ -138,16 +142,16 @@ if ($check == 1) {
138
  }
139
  }
140
  if ($_POST['action'] == "wplc_admin_accept_chat") {
141
- wplc_admin_accept_chat($_POST['cid']);
142
  }
143
  if ($_POST['action'] == "wplc_admin_close_chat") {
144
- $chat_id = $_POST['cid'];
145
  wplc_change_chat_status($chat_id,1);
146
  echo 'done';
147
  }
148
  if ($_POST['action'] == "wplc_admin_send_msg") {
149
- $chat_id = $_POST['cid'];
150
- $chat_msg = $_POST['msg'];
151
  $wplc_rec_msg = wplc_record_chat_msg("2",$chat_id,$chat_msg);
152
  if ($wplc_rec_msg) {
153
  echo 'sent';
@@ -166,7 +170,7 @@ if ($check == 1) {
166
  $i = 1;
167
  $array = array("check" => false);
168
 
169
- while($i <= 90){
170
 
171
  if($_POST['cid'] == null){
172
  $user = "user".time();
@@ -256,7 +260,7 @@ if ($check == 1) {
256
  }
257
  }
258
 
259
-
260
  if ($_POST['action'] == "wplc_user_close_chat") {
261
  if($_POST['status'] == 5){
262
  wplc_change_chat_status($_POST['cid'],9);
@@ -267,16 +271,16 @@ if ($check == 1) {
267
 
268
  if ($_POST['action'] == "wplc_user_minimize_chat") {
269
  $chat_id = $_POST['cid'];
270
- wplc_change_chat_status($_POST['cid'],10);
271
  }
272
  if ($_POST['action'] == "wplc_user_maximize_chat") {
273
  $chat_id = $_POST['cid'];
274
- wplc_change_chat_status($_POST['cid'],3);
275
  }
276
 
277
  if ($_POST['action'] == "wplc_user_send_msg") {
278
- $chat_id = $_POST['cid'];
279
- $chat_msg = $_POST['msg'];
280
  $wplc_rec_msg = wplc_record_chat_msg("1",$chat_id,$chat_msg);
281
  if ($wplc_rec_msg) {
282
  echo 'sent';
@@ -287,13 +291,13 @@ if ($check == 1) {
287
  if ($_POST['action'] == "wplc_start_chat") {
288
  if (isset($_POST['cid'])) {
289
  if ($_POST['name'] && $_POST['email']) {
290
- echo wplc_user_initiate_chat($_POST['name'],$_POST['email'],$_POST['cid']); // echo the chat session id
291
  } else {
292
  echo "error2";
293
  }
294
  } else {
295
  if ($_POST['name'] && $_POST['email']) {
296
- echo wplc_user_initiate_chat($_POST['name'],$_POST['email']); // echo the chat session id
297
  } else {
298
  echo "error2";
299
  }
19
 
20
  require_once( '../../../wp-load.php' );
21
 
22
+ //function untrailingslashit($string) {
23
+ // return rtrim($string, '/');
24
+ //}
25
 
26
 
27
  define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash
33
 
34
  require_once( ABSPATH . WPINC . '/link-template.php' );
35
 
36
+ require_once( ABSPATH . WPINC . '/formatting.php' );
37
+
38
+ require_once( ABSPATH . WPINC . '/kses.php' );
39
+
40
 
41
 
42
  $plugin_dir = basename(dirname(__FILE__))."/languages/";
74
  set_time_limit(120);
75
  //sleep(6);
76
  $i = 1;
77
+ while($i <= 28){
78
 
79
  // update chats if they have timed out every 10 seconds
80
  if($i %10 == 0) {
114
  set_time_limit(120);
115
  $i = 1;
116
  $array = array();
117
+ while($i <= 28){
118
  if(isset($_POST['action_2']) && $_POST['action_2'] == "wplc_long_poll_check_user_opened_chat"){
119
  $chat_status = wplc_return_chat_status($_POST['cid']);
120
  if($chat_status == 3){
142
  }
143
  }
144
  if ($_POST['action'] == "wplc_admin_accept_chat") {
145
+ wplc_admin_accept_chat(sanitize_text_field($_POST['cid']));
146
  }
147
  if ($_POST['action'] == "wplc_admin_close_chat") {
148
+ $chat_id = sanitize_text_field($_POST['cid']);
149
  wplc_change_chat_status($chat_id,1);
150
  echo 'done';
151
  }
152
  if ($_POST['action'] == "wplc_admin_send_msg") {
153
+ $chat_id = sanitize_text_field($_POST['cid']);
154
+ $chat_msg = sanitize_text_field($_POST['msg']);
155
  $wplc_rec_msg = wplc_record_chat_msg("2",$chat_id,$chat_msg);
156
  if ($wplc_rec_msg) {
157
  echo 'sent';
170
  $i = 1;
171
  $array = array("check" => false);
172
 
173
+ while($i <= 28){
174
 
175
  if($_POST['cid'] == null){
176
  $user = "user".time();
260
  }
261
  }
262
 
263
+ /* */
264
  if ($_POST['action'] == "wplc_user_close_chat") {
265
  if($_POST['status'] == 5){
266
  wplc_change_chat_status($_POST['cid'],9);
271
 
272
  if ($_POST['action'] == "wplc_user_minimize_chat") {
273
  $chat_id = $_POST['cid'];
274
+ wplc_change_chat_status(sanitize_text_field($_POST['cid']),10);
275
  }
276
  if ($_POST['action'] == "wplc_user_maximize_chat") {
277
  $chat_id = $_POST['cid'];
278
+ wplc_change_chat_status(sanitize_text_field($_POST['cid']),3);
279
  }
280
 
281
  if ($_POST['action'] == "wplc_user_send_msg") {
282
+ $chat_id = sanitize_text_field($_POST['cid']);
283
+ $chat_msg = sanitize_text_field($_POST['msg']);
284
  $wplc_rec_msg = wplc_record_chat_msg("1",$chat_id,$chat_msg);
285
  if ($wplc_rec_msg) {
286
  echo 'sent';
291
  if ($_POST['action'] == "wplc_start_chat") {
292
  if (isset($_POST['cid'])) {
293
  if ($_POST['name'] && $_POST['email']) {
294
+ echo wplc_user_initiate_chat(sanitize_text_field($_POST['name']),sanitize_email($_POST['email']),sanitize_text_field($_POST['cid'])); // echo the chat session id
295
  } else {
296
  echo "error2";
297
  }
298
  } else {
299
  if ($_POST['name'] && $_POST['email']) {
300
+ echo wplc_user_initiate_chat(sanitize_text_field($_POST['name']),sanitize_email($_POST['email'])); // echo the chat session id
301
  } else {
302
  echo "error2";
303
  }
css/wplcstyle.css CHANGED
@@ -56,7 +56,6 @@
56
 
57
  #wp-live-chat {
58
  position: fixed;
59
- bottom: 0;
60
  z-index: 105;
61
  display: block;
62
  background: #fff;
@@ -210,4 +209,97 @@
210
  height: 40px;
211
  }
212
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  #wp-live-chat {
58
  position: fixed;
 
59
  z-index: 105;
60
  display: block;
61
  background: #fff;
209
  height: 40px;
210
  }
211
 
212
+ .wplc_close.wplc_left #wp-live-chat-1{
213
+ -ms-transform: rotate(90deg);
214
+ -moz-transform: rotate(90deg);
215
+ -webkit-transform: rotate(90deg);
216
+ transform: rotate(90deg);
217
+ -ms-transform-origin: left top 0;
218
+ -moz-transform-origin: left top 0;
219
+ -webkit-transform-origin: left top 0;
220
+ transform-origin: left top 0;
221
+ float: left;
222
+ width: 195px;
223
+ position: absolute;
224
+ top: 27px;
225
+ padding-left: 0;
226
+ left: 39px;
227
+ }
228
+ .wplc_left #wp-live-chat-header{
229
+ border-radius: 0px 5px 5px 0;
230
+ }
231
+ .wplc_close.wplc_left #wp-live-chat-header{
232
+ position: absolute;
233
+ top: 0;
234
+ width: 45px;
235
+ bottom: 0;
236
+ right: 0;
237
+ }
238
+ .wplc_open.wplc_left #wp-live-chat-header{
239
+ border-radius: 0px 5px 0px 0;
240
+ }
241
+
242
+ .wplc_close.wplc_left .wp-live-chat-wrapper, .wplc_close.wplc_right .wp-live-chat-wrapper{
243
+ position: relative;
244
+ height: 250px;
245
+ }
246
+ .wplc_left{
247
+ border-radius: 0px 5px 5px 0 !important;
248
+ }
249
+ .wplc_close.wplc_left{
250
+ padding-right: 45px;
251
+ height: 220px;
252
+ }
253
+
254
+ .wplc_left #wplc_chatbox, .wplc_right #wplc_chatbox{
255
+ height: 330px !important;
256
+ width: 240px;
257
+ }
258
+
259
+ .wplc_close.wplc_right #wp-live-chat-1{
260
+ -ms-transform: rotate(-90deg);
261
+ -moz-transform: rotate(-90deg);
262
+ -webkit-transform: rotate(-90deg);
263
+ transform: rotate(-90deg);
264
+ -ms-transform-origin: 0 0 0;
265
+ -moz-transform-origin: 0 0 0;
266
+ -webkit-transform-origin: 0 0 0;
267
+ transform-origin: 0 0 0;
268
+ float: left;
269
+ width: 180px;
270
+ padding:0 !important;
271
+ bottom: 0;
272
+ position: absolute;
273
+ left: 8px;
274
+ }
275
+
276
+ .wplc_close.wplc_right #wp-live-chat-header{
277
+ position: absolute;
278
+ top: 0;
279
+ width: 45px;
280
+ bottom: 0;
281
+ left: 0;
282
+ border-radius: 5px 0px 0px 5px;
283
+ }
284
 
285
+ .wplc_close.wplc_right{
286
+ padding-left: 45px;
287
+ height: 220px;
288
+ border-radius: 5px 0px 0px 5px !important;
289
+ }
290
+ .wplc_open.wplc_right #wp-live-chat-header{
291
+ border-radius: 5px 0px 0px 0;
292
+ }
293
+ .wplc_right{
294
+ border-radius: 5px 0px 0px 5px !important;
295
+ }
296
+ .wplc_close.wplc_left #wp-live-chat-image{
297
+ top: 25px;
298
+ left: 35px;
299
+ }
300
+ .wplc_close.wplc_right #wp-live-chat-image {
301
+ bottom: 18px;
302
+ left: initial;
303
+ right: 38px;
304
+ top: initial;
305
+ }
functions.php CHANGED
@@ -164,12 +164,12 @@ function wplc_list_chats() {
164
 
165
  if ($result->status == 2) {
166
  $url = admin_url( 'admin.php?page=wplivechat-menu&action=ac&cid='.$result->id);
167
- $actions = "<a href=\"".$url."\" class=\"wplc_open_chat\" window-title=\"WP-Live-Chat-".$result->id."\">Accept Chat</a>";
168
  $trstyle = "style='background-color:#FFFBE4; height:30px;'";
169
  }
170
  if ($result->status == 3) {
171
  $url = admin_url( 'admin.php?page=wplivechat-menu&action=ac&cid='.$result->id);
172
- $actions = "<a href=\"".$url."\" class=\"wplc_open_chat\" window-title=\"WP-Live-Chat-".$result->id."\">Open Chat Window</a>";
173
  $trstyle = "style='background-color:#F7FCFE; height:30px;'";
174
  }
175
  if ($wplc_c>1) { $actions = wplc_get_msg(); }
164
 
165
  if ($result->status == 2) {
166
  $url = admin_url( 'admin.php?page=wplivechat-menu&action=ac&cid='.$result->id);
167
+ $actions = "<a href=\"".$url."\" class=\"wplc_open_chat\" window-title=\"WP_Live_Chat_".$result->id."\">Accept Chat</a>";
168
  $trstyle = "style='background-color:#FFFBE4; height:30px;'";
169
  }
170
  if ($result->status == 3) {
171
  $url = admin_url( 'admin.php?page=wplivechat-menu&action=ac&cid='.$result->id);
172
+ $actions = "<a href=\"".$url."\" class=\"wplc_open_chat\" window-title=\"WP_Live_Chat_".$result->id."\">Open Chat Window</a>";
173
  $trstyle = "style='background-color:#F7FCFE; height:30px;'";
174
  }
175
  if ($wplc_c>1) { $actions = wplc_get_msg(); }
includes/settings_page.php CHANGED
@@ -8,7 +8,7 @@
8
  $wplc_settings = get_option("WPLC_SETTINGS");
9
  if ($wplc_settings["wplc_settings_align"]) { $wplc_settings_align[intval($wplc_settings["wplc_settings_align"])] = "SELECTED"; }
10
  if ($wplc_settings["wplc_settings_enabled"]) { $wplc_settings_enabled[intval($wplc_settings["wplc_settings_enabled"])] = "SELECTED"; }
11
- if ($wplc_settings["wplc_settings_fill"]) { $wplc_settings_fill = $wplc_settings["wplc_settings_fill"]; } else { $wplc_settings_fill = "73BE28"; }
12
  if ($wplc_settings["wplc_settings_font"]) { $wplc_settings_font = $wplc_settings["wplc_settings_font"]; } else { $wplc_settings_font = "FFFFFF"; }
13
  if(get_option("WPLC_HIDE_CHAT") == true) { $wplc_hide_chat = "checked"; } else { $wplc_hide_chat = ""; };
14
  ?>
@@ -62,9 +62,20 @@
62
  <select id='wplc_settings_align' name='wplc_settings_align'>
63
  <option value="1" <?php echo $wplc_settings_align[1]?>><?php _e("Bottom left","wplivechat")?></option>
64
  <option value="2" <?php echo $wplc_settings_align[2]?>><?php _e("Bottom right","wplivechat")?></option>
 
 
65
  </select>
66
  </td>
67
- </tr>
 
 
 
 
 
 
 
 
 
68
  <tr>
69
  <!-- Chat Name-->
70
  <td width='200' valign='top'>
8
  $wplc_settings = get_option("WPLC_SETTINGS");
9
  if ($wplc_settings["wplc_settings_align"]) { $wplc_settings_align[intval($wplc_settings["wplc_settings_align"])] = "SELECTED"; }
10
  if ($wplc_settings["wplc_settings_enabled"]) { $wplc_settings_enabled[intval($wplc_settings["wplc_settings_enabled"])] = "SELECTED"; }
11
+ if ($wplc_settings["wplc_settings_fill"]) { $wplc_settings_fill = $wplc_settings["wplc_settings_fill"]; } else { $wplc_settings_fill = "ed832f"; }
12
  if ($wplc_settings["wplc_settings_font"]) { $wplc_settings_font = $wplc_settings["wplc_settings_font"]; } else { $wplc_settings_font = "FFFFFF"; }
13
  if(get_option("WPLC_HIDE_CHAT") == true) { $wplc_hide_chat = "checked"; } else { $wplc_hide_chat = ""; };
14
  ?>
62
  <select id='wplc_settings_align' name='wplc_settings_align'>
63
  <option value="1" <?php echo $wplc_settings_align[1]?>><?php _e("Bottom left","wplivechat")?></option>
64
  <option value="2" <?php echo $wplc_settings_align[2]?>><?php _e("Bottom right","wplivechat")?></option>
65
+ <option value="3" <?php echo $wplc_settings_align[3]?>><?php _e("Left","wplivechat")?></option>
66
+ <option value="4" <?php echo $wplc_settings_align[4]?>><?php _e("Right","wplivechat")?></option>
67
  </select>
68
  </td>
69
+ </tr>
70
+ <tr>
71
+ <td>
72
+ <?php _e("Auto Pop-up","wplivechat") ?>
73
+ </td>
74
+ <td>
75
+ <input type="checkbox" name="wplc_auto_pop_up" value="1" <?php if($wplc_settings['wplc_auto_pop_up'] == 1 ){ echo "checked";} ?>/>
76
+ <p class="description"><small><?php _e("Expand the chat box automatically (prompts the user to enter their name and email address).","wplivechat") ?></small></p>
77
+ </td>
78
+ </tr>
79
  <tr>
80
  <!-- Chat Name-->
81
  <td width='200' valign='top'>
js/wplc_u.js CHANGED
@@ -108,6 +108,9 @@ jQuery(document).ready(function() {
108
  jQuery("#wplc_cid").val(wplc_cid);
109
  if(response['status'] == 3){ // only if not minimized open aswell
110
  open_chat();
 
 
 
111
  }
112
  if(response['data'] != null){ // append messages to chat area
113
  jQuery("#wplc_chatbox").append(response['data']);
@@ -156,14 +159,20 @@ jQuery(document).ready(function() {
156
  } else {
157
  if(wplc_check_hide_cookie != "yes"){
158
  wplc_dc = setTimeout(function (){
159
- jQuery("#wp-live-chat").css({ "display" : "block" });
 
 
 
 
 
 
 
160
  }, window.wplc_delay);
161
  }
162
-
163
  }
164
  wplc_init_chat_box = false;
165
  }
166
-
167
 
168
 
169
 
@@ -185,12 +194,28 @@ jQuery(document).ready(function() {
185
 
186
  /* minimize chat window */
187
  jQuery("#wp-live-chat-minimize").on("click", function() {
188
- if(jQuery("#wp-live-chat").attr("original_pos") === "right"){
 
189
  jQuery("#wp-live-chat").css("left", "");
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  }
191
- jQuery("#wp-live-chat").css(jQuery("#wp-live-chat").attr("original_pos"), "100px");
 
 
192
  jQuery("#wp-live-chat").css("top", "");
193
- jQuery("#wp-live-chat").css("bottom", "0");
194
  jQuery("#wp-live-chat-1").show();
195
  jQuery("#wp-live-chat-1").css('cursor', 'pointer');
196
  jQuery("#wp-live-chat-2").hide();
@@ -199,15 +224,17 @@ jQuery(document).ready(function() {
199
  jQuery("#wp-live-chat-react").hide();
200
  jQuery("#wp-live-chat-minimize").hide();
201
  jQuery.cookie('wplc_minimize', "yes", { expires: 1, path: '/' });
202
- var data = {
203
- action: 'wplc_user_minimize_chat',
204
- security: wplc_nonce,
205
- cid: wplc_cid
206
- };
207
-
208
- jQuery.post(wplc_ajaxurl, data, function(response) {
209
- //console.log(wplc_cid);
210
- });
 
 
211
 
212
  });
213
  /* close chat window */
@@ -235,6 +262,8 @@ jQuery(document).ready(function() {
235
  //open chat window function
236
 
237
  function open_chat(){
 
 
238
  //jQuery("#wp-live-chat-1").hide();
239
  jQuery("#wp-live-chat-react").hide();
240
  jQuery("#wp-live-chat-header").css('cursor', 'all-scroll');
@@ -352,18 +381,24 @@ jQuery(document).ready(function() {
352
 
353
 
354
 
355
-
 
 
 
 
 
 
356
 
357
 
358
  jQuery("#wplc_chatmsg").keyup(function(event){
359
- if(event.keyCode == 13){
360
  jQuery("#wplc_send_msg").trigger("click");
361
  }
362
  });
363
-
364
  jQuery("#wplc_send_msg").on("click", function() {
365
  var wplc_cid = jQuery("#wplc_cid").val();
366
- var wplc_chat = jQuery("#wplc_chatmsg").val();
 
367
  var wplc_name = jQuery("#wplc_name").val();
368
  if (typeof wplc_name == "undefined" || wplc_name == null || wplc_name == "") {
369
  wplc_name = jQuery.cookie('wplc_name');
108
  jQuery("#wplc_cid").val(wplc_cid);
109
  if(response['status'] == 3){ // only if not minimized open aswell
110
  open_chat();
111
+ if(jQuery('#wp-live-chat').hasClass('wplc_left') === true || jQuery('#wp-live-chat').hasClass('wplc_right') === true){
112
+ jQuery('#wp-live-chat').height("400px");
113
+ }
114
  }
115
  if(response['data'] != null){ // append messages to chat area
116
  jQuery("#wplc_chatbox").append(response['data']);
159
  } else {
160
  if(wplc_check_hide_cookie != "yes"){
161
  wplc_dc = setTimeout(function (){
162
+ jQuery("#wp-live-chat").css({ "display" : "block" });
163
+ if(jQuery("#wp-live-chat").attr('wplc-auto-pop-up') == true){
164
+ jQuery("#wp-live-chat-2").css({ "display" : "block" });
165
+ jQuery("#wp-live-chat-minimize").show();
166
+ jQuery("#wp-live-chat-close").show();
167
+ jQuery('#wp-live-chat').removeClass("wplc_close");
168
+ jQuery('#wp-live-chat').addClass("wplc_open");
169
+ }
170
  }, window.wplc_delay);
171
  }
 
172
  }
173
  wplc_init_chat_box = false;
174
  }
175
+
176
 
177
 
178
 
194
 
195
  /* minimize chat window */
196
  jQuery("#wp-live-chat-minimize").on("click", function() {
197
+ jQuery('#wp-live-chat').height("");
198
+ if(jQuery("#wp-live-chat").attr("original_pos") === "bottom_right"){
199
  jQuery("#wp-live-chat").css("left", "");
200
+ jQuery("#wp-live-chat").css("bottom", "0");
201
+ jQuery("#wp-live-chat").css("right", "100px");
202
+ } else if(jQuery("#wp-live-chat").attr("original_pos") === "bottom_right"){
203
+ jQuery("#wp-live-chat").css("left", "");
204
+ jQuery("#wp-live-chat").css("bottom", "0");
205
+ jQuery("#wp-live-chat").css("right", "100px");
206
+ } else if(jQuery("#wp-live-chat").attr("original_pos") === "left"){
207
+ jQuery("#wp-live-chat").css("left", "0");
208
+ jQuery("#wp-live-chat").css("bottom", "100px");
209
+ } else if(jQuery("#wp-live-chat").attr("original_pos") === "right"){
210
+ jQuery("#wp-live-chat").css("left", "");
211
+ jQuery("#wp-live-chat").css("right", "0");
212
+ jQuery("#wp-live-chat").css("bottom", "100px");
213
  }
214
+ jQuery('#wp-live-chat').addClass("wplc_close");
215
+ jQuery('#wp-live-chat').removeClass("wplc_open");
216
+ //jQuery("#wp-live-chat").css(jQuery("#wp-live-chat").attr("original_pos"), "100px");
217
  jQuery("#wp-live-chat").css("top", "");
218
+ wplc_chat_status = jQuery.cookie('wplc_chat_status');
219
  jQuery("#wp-live-chat-1").show();
220
  jQuery("#wp-live-chat-1").css('cursor', 'pointer');
221
  jQuery("#wp-live-chat-2").hide();
224
  jQuery("#wp-live-chat-react").hide();
225
  jQuery("#wp-live-chat-minimize").hide();
226
  jQuery.cookie('wplc_minimize', "yes", { expires: 1, path: '/' });
227
+ if(wplc_chat_status != 5 && wplc_chat_status != 10 && wplc_chat_status != 9 && wplc_chat_status != 8){
228
+ var data = {
229
+ action: 'wplc_user_minimize_chat',
230
+ security: wplc_nonce,
231
+ cid: wplc_cid
232
+ };
233
+
234
+ jQuery.post(wplc_ajaxurl, data, function(response) {
235
+ //console.log(wplc_cid);
236
+ });
237
+ }
238
 
239
  });
240
  /* close chat window */
262
  //open chat window function
263
 
264
  function open_chat(){
265
+ jQuery('#wp-live-chat').removeClass("wplc_close");
266
+ jQuery('#wp-live-chat').addClass("wplc_open");
267
  //jQuery("#wp-live-chat-1").hide();
268
  jQuery("#wp-live-chat-react").hide();
269
  jQuery("#wp-live-chat-header").css('cursor', 'all-scroll');
381
 
382
 
383
 
384
+ function wplc_strip(str) {
385
+ str=str.replace(/<br>/gi, "\n");
386
+ str=str.replace(/<p.*>/gi, "\n");
387
+ str=str.replace(/<a.*href="(.*?)".*>(.*?)<\/a>/gi, " $2 ($1) ");
388
+ str=str.replace(/<(?:.|\s)*?>/g, "");
389
+ return str;
390
+ }
391
 
392
 
393
  jQuery("#wplc_chatmsg").keyup(function(event){
394
+ if(event.keyCode === 13){
395
  jQuery("#wplc_send_msg").trigger("click");
396
  }
397
  });
 
398
  jQuery("#wplc_send_msg").on("click", function() {
399
  var wplc_cid = jQuery("#wplc_cid").val();
400
+ var wplc_chat = wplc_strip(document.getElementById('wplc_chatmsg').value);
401
+
402
  var wplc_name = jQuery("#wplc_name").val();
403
  if (typeof wplc_name == "undefined" || wplc_name == null || wplc_name == "") {
404
  wplc_name = jQuery.cookie('wplc_name');
languages/wplivechat-it_IT.mo ADDED
Binary file
languages/wplivechat-it_IT.po ADDED
@@ -0,0 +1,820 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: wplc\n"
4
+ "POT-Creation-Date: 2014-06-30 15:16+0200\n"
5
+ "PO-Revision-Date: 2014-07-14 15:07+0100\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.7\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
15
+ "live-chat-support\n"
16
+ "X-Poedit-SearchPath-1: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
17
+ "live-chat-support-pro\n"
18
+
19
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/ajax.php:209
20
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/ajax-pro.php:212
21
+ msgid "Admin has closed and ended the chat"
22
+ msgstr "L'Amministratore ha chiuso e si è conclusa la chat"
23
+
24
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/ajax.php:233
25
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/ajax-pro.php:245
26
+ msgid "There is No Answer. Please Try Again Later"
27
+ msgstr "Non vi è alcuna risposta. Riprovare più tardi"
28
+
29
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:145
30
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:23
31
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:100
32
+ msgid "IP"
33
+ msgstr "IP"
34
+
35
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:146
36
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:169
37
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:71
38
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:24
39
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:101
40
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:171
41
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:303
42
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:401
43
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:419
44
+ msgid "Name"
45
+ msgstr "Nome"
46
+
47
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:147
48
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:171
49
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:25
50
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:102
51
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:171
52
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:304
53
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:403
54
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:420
55
+ msgid "Email"
56
+ msgstr "Email"
57
+
58
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:148
59
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:26
60
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:103
61
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:305
62
+ msgid "URL"
63
+ msgstr "URL"
64
+
65
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:149
66
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:27
67
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:104
68
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:306
69
+ msgid "Status"
70
+ msgstr "Stato"
71
+
72
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:150
73
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:28
74
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:105
75
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:307
76
+ msgid "Action"
77
+ msgstr "Azione"
78
+
79
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:156
80
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:111
81
+ msgid "No chat sessions available at the moment"
82
+ msgstr "Nessun sessioni di chat disponibile al momento"
83
+
84
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:393
85
+ msgid "complete"
86
+ msgstr "completa"
87
+
88
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:396
89
+ msgid "pending"
90
+ msgstr "in attesa"
91
+
92
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:399
93
+ msgid "active"
94
+ msgstr "attiva"
95
+
96
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:402
97
+ msgid "deleted"
98
+ msgstr "cancellata"
99
+
100
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:405
101
+ msgid "browsing"
102
+ msgstr "esplorazione"
103
+
104
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:408
105
+ msgid "requesting chat"
106
+ msgstr "richiesta chat"
107
+
108
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:411
109
+ msgid "Chat Ended - User still browsing"
110
+ msgstr "Chat Terminata - L'utente sta ancora navigando"
111
+
112
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:414
113
+ msgid "User is browsing but doesn't want to chat"
114
+ msgstr "L'utente sta navigando, ma non vuole parlare"
115
+
116
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:466
117
+ msgid "Get Pro Add-on to accept more chats"
118
+ msgstr "Prendi la versione Pro per accettare più conversazioni"
119
+
120
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:81
121
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:436
122
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1198
123
+ msgid "Live Chat"
124
+ msgstr "Live Chat"
125
+
126
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:82
127
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1199
128
+ msgid "Settings"
129
+ msgstr "Impostazioni"
130
+
131
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:83
132
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1200
133
+ msgid "History"
134
+ msgstr "Storico"
135
+
136
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:84
137
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:37
138
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1201
139
+ msgid "Feedback"
140
+ msgstr "Feedback"
141
+
142
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:159
143
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:208
144
+ msgid "Questions?"
145
+ msgstr "Questioni?"
146
+
147
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:159
148
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:209
149
+ msgid "Chat with us"
150
+ msgstr "Chatta con noi"
151
+
152
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:173
153
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:215
154
+ msgid "Start Chat"
155
+ msgstr "Inizia Chat"
156
+
157
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:180
158
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:216
159
+ msgid "Connecting you to a sales person. Please be patient."
160
+ msgstr "Collegamento con un nostro operatore. Si prega di essere pazienti."
161
+
162
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:183
163
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:224
164
+ msgid "Reactivating your previous chat..."
165
+ msgstr "Riattivazione precedente conversazione ..."
166
+
167
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:187
168
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:681
169
+ msgid "Press ENTER to send your message"
170
+ msgstr "Premere INVIO per inviare il tuo messaggio"
171
+
172
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:191
173
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:544
174
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:456
175
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:684
176
+ msgid "Send"
177
+ msgstr "Invia"
178
+
179
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:402
180
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:202
181
+ msgid "Dear Pro User"
182
+ msgstr "Caro Utente PRO"
183
+
184
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:403
185
+ msgid "You are using an outdated version of WP Live Chat Support Pro. Please"
186
+ msgstr ""
187
+ "Si sta utilizzando una versione non aggiornata di WP Live Chat Support Pro. "
188
+ "Per favore"
189
+
190
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:403
191
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:213
192
+ msgid "update to at least version"
193
+ msgstr "aggiorna all'ultima versione"
194
+
195
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:403
196
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:213
197
+ msgid "to ensure all functionality is in working order"
198
+ msgstr "al fine di garantire tutte le funzionalità è in ordine"
199
+
200
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:405
201
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:215
202
+ msgid "If you are having difficulty updating the plugin, please contact"
203
+ msgstr ""
204
+ "Se si hanno difficoltà con l'aggiornamento del plug-in, si prega di "
205
+ "contattare"
206
+
207
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:430
208
+ msgid "Experiencing problems with the plugin?"
209
+ msgstr "Problemi con il plugin?"
210
+
211
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:432
212
+ msgid "Review the documentation."
213
+ msgstr "Rivedere la documentazione."
214
+
215
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:433
216
+ msgid "Or ask a question on our"
217
+ msgstr "O fare una domanda sul nostro"
218
+
219
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:455
220
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:562
221
+ msgid "Visitors on site"
222
+ msgstr "I visitatori sul sito"
223
+
224
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:456
225
+ msgid "With the Pro add-on of WP Live Chat Support, you can"
226
+ msgstr "Con la Pro add-on di WP Live Chat Support, è possibile"
227
+
228
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:456
229
+ msgid "see who's online and initiate chats"
230
+ msgstr "vedere chi è online e avviare la chat"
231
+
232
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:456
233
+ msgid "with your online visitors with the click of a button."
234
+ msgstr "con i tuoi visitatori on-line con il clic di un pulsante."
235
+
236
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:456
237
+ msgid "Buy the Pro add-on now for only $29.95 once off. Free Updates FOREVER."
238
+ msgstr ""
239
+ "Acquista la Pro add-on ora solo 29,95 dollari una volta fuori. Aggiornamenti "
240
+ "gratuiti per sempre."
241
+
242
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:456
243
+ msgid "Buy the Pro add-on now for only $29.95 once off. Free Updates Forever."
244
+ msgstr ""
245
+ "Acquista la Pro add-on ora solo 29,95 dollari una volta fuori. Aggiornamenti "
246
+ "gratuiti per sempre."
247
+
248
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:516
249
+ msgid "Previous"
250
+ msgstr "Precedente"
251
+
252
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:516
253
+ msgid "Active"
254
+ msgstr "Attiva"
255
+
256
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:534
257
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:672
258
+ msgid "End chat"
259
+ msgstr "Fine chat"
260
+
261
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:644
262
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:799
263
+ msgid "User has opened the chat window"
264
+ msgstr "L'utente ha aperto la finestra di chat"
265
+
266
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:649
267
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:804
268
+ msgid "User has minimized the chat window"
269
+ msgstr "L'utente ha ridotto al minimo la finestra di chat"
270
+
271
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:654
272
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:809
273
+ msgid "User has maximized the chat window"
274
+ msgstr "L'utente ha massimizzato la finestra di chat"
275
+
276
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:659
277
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:814
278
+ msgid "User has closed and ended the chat"
279
+ msgstr "L'utente ha chiuso e ha terminato la chat"
280
+
281
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:856
282
+ msgid "WP Live Chat History"
283
+ msgstr "Storico WP Live Chat"
284
+
285
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:861
286
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:47
287
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:78
288
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:94
289
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:110
290
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:126
291
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:143
292
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:164
293
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:178
294
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:228
295
+ msgid "Pro Add-on"
296
+ msgstr "Pro Add-on"
297
+
298
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:885
299
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:514
300
+ msgid "Your settings have been saved."
301
+ msgstr "Le impostazioni sono state salvate."
302
+
303
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:900
304
+ msgid "Thank You for your feedback!"
305
+ msgstr "Grazie per le vostre risposte!"
306
+
307
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:904
308
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:917
309
+ msgid "Thank you for your feedback. We will be in touch soon"
310
+ msgstr "Grazie per le vostre risposte. Saremo in contatto presto"
311
+
312
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:921
313
+ msgid "There was a problem sending your feedback. Please log your feedback on "
314
+ msgstr ""
315
+ "C'è stato un problema l'invio del feedback. Effettua il login per il vostro "
316
+ "feedback"
317
+
318
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:7
319
+ msgid "WP Live Chat Support Feedback"
320
+ msgstr "Commento Supporto WP Live Chat"
321
+
322
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:8
323
+ msgid "We'd love to hear your comments and/or suggestions"
324
+ msgstr "Ci piacerebbe sentire i vostri commenti e / o suggerimenti"
325
+
326
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:13
327
+ msgid "Your Name"
328
+ msgstr "Nome"
329
+
330
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:21
331
+ msgid "Your Email"
332
+ msgstr "Email"
333
+
334
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:29
335
+ msgid "Your Website"
336
+ msgstr "Sito Web"
337
+
338
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:48
339
+ msgid "Send Feedback"
340
+ msgstr "Invia Feedback"
341
+
342
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:6
343
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:17
344
+ msgid "WP Live Chat Support Settings"
345
+ msgstr "Impostazioni Supporto WP live Chat"
346
+
347
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:19
348
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:29
349
+ msgid "General Settings"
350
+ msgstr "Impostazioni Generali"
351
+
352
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:20
353
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:30
354
+ msgid "Chat Box"
355
+ msgstr "Box Chat"
356
+
357
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:21
358
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:153
359
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:31
360
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:141
361
+ msgid "Offline Messages"
362
+ msgstr "Messaggi Offline"
363
+
364
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:22
365
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:190
366
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:32
367
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:226
368
+ msgid "Styling"
369
+ msgstr "Stile"
370
+
371
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:23
372
+ msgid "Agents"
373
+ msgstr "Agenti"
374
+
375
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:26
376
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:36
377
+ msgid "Main Settings"
378
+ msgstr "Impostazioni Principali"
379
+
380
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:29
381
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:39
382
+ msgid "Chat enabled"
383
+ msgstr "Chat abilitata"
384
+
385
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:32
386
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:42
387
+ msgid "Yes"
388
+ msgstr "Si"
389
+
390
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:33
391
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:43
392
+ msgid "No"
393
+ msgstr "No"
394
+
395
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:39
396
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:49
397
+ msgid "Hide Chat"
398
+ msgstr "Nascondi Chat"
399
+
400
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:40
401
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:50
402
+ msgid "Hides chat for 24hrs when user clicks X"
403
+ msgstr "Nascondere chat per 24 ore quando l'utente fa clic su X"
404
+
405
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:46
406
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:77
407
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:93
408
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:109
409
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:125
410
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:142
411
+ msgid "available in the"
412
+ msgstr "disponibile"
413
+
414
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:48
415
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:79
416
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:95
417
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:111
418
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:127
419
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:144
420
+ msgid "only"
421
+ msgstr "solo"
422
+
423
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:57
424
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:60
425
+ msgid "Chat Window Settings"
426
+ msgstr "Impostazioni Finestra Chat"
427
+
428
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:60
429
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:63
430
+ msgid "Chat box alignment"
431
+ msgstr "Allineamento Box Chat"
432
+
433
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:63
434
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:66
435
+ msgid "Bottom left"
436
+ msgstr "Basso sinistra"
437
+
438
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:64
439
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:67
440
+ msgid "Bottom right"
441
+ msgstr "Basso Destra"
442
+
443
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:87
444
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:86
445
+ msgid "Picture"
446
+ msgstr "Foto"
447
+
448
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:90
449
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:106
450
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:94
451
+ msgid "Upload Image"
452
+ msgstr "Carica Immagine"
453
+
454
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:103
455
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:103
456
+ msgid "Logo"
457
+ msgstr "Logo"
458
+
459
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:119
460
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:120
461
+ msgid "Chat delay (seconds)"
462
+ msgstr "Ritardo Chat (secondi)"
463
+
464
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:135
465
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:129
466
+ msgid "Chat notifications"
467
+ msgstr "Notifiche Chat"
468
+
469
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:139
470
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:133
471
+ msgid "Alert me via email as soon as someone wants to chat"
472
+ msgstr "Avvisami via e-mail quando qualcuno vuole chattare"
473
+
474
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:157
475
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:145
476
+ msgid "Email Address"
477
+ msgstr "Indirizzo Email"
478
+
479
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:163
480
+ msgid "Get offline messages with the "
481
+ msgstr "Prendi messaggi non in linea con il "
482
+
483
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:172
484
+ msgid "Offline text"
485
+ msgstr "Testo non in linea"
486
+
487
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:177
488
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:227
489
+ msgid "Edit these text fields using the "
490
+ msgstr "Modificare questi campi di testo utilizzando il"
491
+
492
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:193
493
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:229
494
+ msgid "Chat box fill color"
495
+ msgstr "Colore di riempimento Box Chat"
496
+
497
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:199
498
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:235
499
+ msgid "Chat box font color"
500
+ msgstr "Colore Carattere Box Chat"
501
+
502
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:206
503
+ msgid "First section text"
504
+ msgstr "Primo testo sezione"
505
+
506
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:213
507
+ msgid "Second section text"
508
+ msgstr "Secondo testo sezione"
509
+
510
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:222
511
+ msgid "Reactivate chat section text"
512
+ msgstr "Riattivare la chat sezione di testo"
513
+
514
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:239
515
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:294
516
+ msgid "Multiple Agents"
517
+ msgstr "Agenti Multipli"
518
+
519
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:240
520
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:295
521
+ msgid "Get"
522
+ msgstr "Ottenere"
523
+
524
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:240
525
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:295
526
+ msgid "Multiple agent support"
527
+ msgstr "Supporto Agente Multiplo"
528
+
529
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:240
530
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:295
531
+ msgid "for only $39.95"
532
+ msgstr "per soli $39.95"
533
+
534
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:243
535
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:299
536
+ msgid "Save Settings"
537
+ msgstr "Salva Impostazioni"
538
+
539
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:4
540
+ msgid "Welcome to "
541
+ msgstr "Bnvenuto a"
542
+
543
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:15
544
+ msgid "WordPress.org plugin repository "
545
+ msgstr "Repository dei plugin WordPress.org"
546
+
547
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:18
548
+ msgid "Search Term"
549
+ msgstr "Cerca Termine"
550
+
551
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:22
552
+ msgid "Google or other search Engine"
553
+ msgstr "Google o altro motore di ricerca"
554
+
555
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:28
556
+ msgid "Friend recommendation"
557
+ msgstr "Raccomandazione da Amici"
558
+
559
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:34
560
+ msgid "Other"
561
+ msgstr "Altri"
562
+
563
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:38
564
+ msgid "Please Explain"
565
+ msgstr "Si prega di spiegare"
566
+
567
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:47
568
+ msgid "Submit"
569
+ msgstr "Invia"
570
+
571
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:49
572
+ msgid "Skip"
573
+ msgstr "Salta"
574
+
575
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:46
576
+ msgid "Initiate Chat"
577
+ msgstr "Avviare Chat"
578
+
579
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:48
580
+ msgid "You must be a chat agent to initiate chats"
581
+ msgstr "Devi essere un agente di chat per avviare la chat"
582
+
583
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:66
584
+ msgid "No visitors on-line at the moment"
585
+ msgstr "Nessun visitatore on-line al momento"
586
+
587
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:125
588
+ msgid "Accept Chat"
589
+ msgstr "Accettare Chat"
590
+
591
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:128
592
+ msgid "You must be a chat agent to answer chats"
593
+ msgstr "Devi essere un agente di chat per rispondere alla chat"
594
+
595
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:135
596
+ msgid "Open Chat Window"
597
+ msgstr "Apri Chat nella Finestra"
598
+
599
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:138
600
+ msgid "Chat has been answered by another agent"
601
+ msgstr "Chat è stata presa in carico da un altro agente"
602
+
603
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:141
604
+ msgid "Chat has been Accpted By Chat Agent "
605
+ msgstr "Chat è stata accettata dall'agente in Chat"
606
+
607
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:170
608
+ msgid "WP Live Chat Support - Offline Message from"
609
+ msgstr "Supporto WP Live Chat - Messaggio Offline "
610
+
611
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:171
612
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:421
613
+ msgid "Message"
614
+ msgstr "Messaggio"
615
+
616
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:171
617
+ msgid "Via WP Live Chat Support"
618
+ msgstr "Supporto via WP live Chat"
619
+
620
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:225
621
+ msgid "Alert: Someone wants to chat with you on "
622
+ msgstr "Attenzione: Qualcuno vuole chattare con te su"
623
+
624
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:226
625
+ msgid "Someone wants to chat with you on your website"
626
+ msgstr "Qualcuno vuole chattare con te sul tuo sito web"
627
+
628
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:226
629
+ msgid "Log in"
630
+ msgstr "Accedi"
631
+
632
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:203
633
+ msgid ""
634
+ "WP Live Chat Support Pro requires WP Live Chat Support to function. You Can "
635
+ "download the latest copy from"
636
+ msgstr ""
637
+ "WP Live Chat Support Pro richiede WP Live Chat Support per funzionare. È "
638
+ "possibile scaricare l'ultima copia da"
639
+
640
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:212
641
+ msgid "Dear User"
642
+ msgstr "Caro Utente"
643
+
644
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:213
645
+ msgid "You are using an outdated version of WP Live Chat Support Basic. Please"
646
+ msgstr ""
647
+ "Si sta utilizzando una versione non aggiornata del supporto WP Live Chat "
648
+ "Basic. per favore"
649
+
650
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:302
651
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:661
652
+ msgid "Date"
653
+ msgstr "Data"
654
+
655
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:313
656
+ msgid "No chats available at the moment"
657
+ msgstr "Nessun chat disponibile al momento"
658
+
659
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:423
660
+ msgid "Send message"
661
+ msgstr "Invia Messaggio"
662
+
663
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:535
664
+ msgid "Chat sessions"
665
+ msgstr "Sessioni Chat"
666
+
667
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:557
668
+ msgid ""
669
+ "Please note: This window must be open in order to receive new chat "
670
+ "notifications."
671
+ msgstr ""
672
+ "Attenzione: Questa finestra deve essere aperta per ricevere le nuove "
673
+ "notifiche di chat."
674
+
675
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:651
676
+ msgid "Chat with"
677
+ msgstr "Larghezza Chat"
678
+
679
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:658
680
+ msgid "Email address"
681
+ msgstr "Indirizzo Email"
682
+
683
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:659
684
+ msgid "IP Address"
685
+ msgstr "Indirizzo IP"
686
+
687
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:660
688
+ msgid "From URL"
689
+ msgstr "Dall'URL"
690
+
691
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:660
692
+ msgid "open"
693
+ msgstr "apri"
694
+
695
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:667
696
+ msgid "Attempting to open the chat window... Please be patient."
697
+ msgstr ""
698
+ "Il tentativo di aprire la finestra di chat ... Si prega di essere pazienti."
699
+
700
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:735
701
+ msgid "This chat has already been answered. Please close the chat window"
702
+ msgstr ""
703
+ "Hai già risposto a questa chat. Si prega di chiudere la finestra di chat"
704
+
705
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1111
706
+ msgid ""
707
+ "An Unexpected HTTP Error occurred during the API request.</p> <p><a href=\"?"
708
+ "\" onclick=\"document.location.reload(); return false;\">Try again</a>"
709
+ msgstr ""
710
+ "Si è verificato un errore HTTP inaspettato durante la richiesta API. </p> "
711
+ "<p> <a href=\"?\" onclick=\"document.location.reload(); return false;"
712
+ "\">Riprovare</a>"
713
+
714
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1116
715
+ msgid "An unknown error occurred"
716
+ msgstr "Si è verificato un errore sconosciuto"
717
+
718
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1203
719
+ msgid "Error Log"
720
+ msgstr "Log Errori"
721
+
722
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:33
723
+ msgid "Chat Agents"
724
+ msgstr "Chat Agenti "
725
+
726
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:74
727
+ msgid "Name "
728
+ msgstr "Nome"
729
+
730
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:96
731
+ msgid "Remove Image"
732
+ msgstr "Rimuovi Immagine"
733
+
734
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:97
735
+ msgid "Recomended Size 40px x 40px"
736
+ msgstr "Dimensioni consigliato 40px x 40px"
737
+
738
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:111
739
+ msgid "Upload Logo"
740
+ msgstr "Carica Logo"
741
+
742
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:113
743
+ msgid "Remove Logo"
744
+ msgstr "Rimuovi Logo"
745
+
746
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:114
747
+ msgid "Recomended Size 250px x 40px"
748
+ msgstr "Dimensioni consigliato 250px x 40px"
749
+
750
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:123
751
+ msgid "how long it takes for your chat window to pop up"
752
+ msgstr "quanto tempo ci vuole per la vostra finestra di chat di pop up"
753
+
754
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:134
755
+ msgid "(while online only)"
756
+ msgstr "(mentre solo online)"
757
+
758
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:149
759
+ msgid "Email address where offline messages are delivered to"
760
+ msgstr "Indirizzo e-mail cui i messaggi non in linea vengono consegnati al"
761
+
762
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:157
763
+ msgid "Sending Method"
764
+ msgstr "Metodo Spedizione"
765
+
766
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:158
767
+ msgid "WP Mail"
768
+ msgstr "WP Mail"
769
+
770
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:159
771
+ msgid "PHP Mailer"
772
+ msgstr "PHP Mailer"
773
+
774
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:171
775
+ msgid "Host"
776
+ msgstr "Host"
777
+
778
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:179
779
+ msgid "Port"
780
+ msgstr "Port"
781
+
782
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:187
783
+ msgid "Username"
784
+ msgstr "Username"
785
+
786
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:195
787
+ msgid "Password"
788
+ msgstr "Password"
789
+
790
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:204
791
+ msgid "Offline Chat Box Title"
792
+ msgstr "Titolo Box Chat Offline"
793
+
794
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:212
795
+ msgid "Offline Text Fields"
796
+ msgstr "Testo Campi Offline"
797
+
798
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:241
799
+ msgid "First Section Text"
800
+ msgstr "Prima Sezione Testo"
801
+
802
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:250
803
+ msgid "Intro Text"
804
+ msgstr "Testo introduttivo"
805
+
806
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:256
807
+ msgid "Second Section Text"
808
+ msgstr "Seconda Sezione Testo"
809
+
810
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:263
811
+ msgid "Reactivate Chat Section Text"
812
+ msgstr "Riattivare Chat sezione di testo"
813
+
814
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:271
815
+ msgid "User chat welcome"
816
+ msgstr "La chat degli utenti di benvenuto"
817
+
818
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:280
819
+ msgid "Other text"
820
+ msgstr "Altro testo"
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: WP-LiveChat
3
  Donate link: http://www.wp-livechat.com
4
  Tags: live chat, live support, chat plugin, live help, wordpress chat, customer support, chat, live chat plugin, live support plugin, live chat support plugin, chat plugin, support plugin, support, chat software, chat online, visitor chat, chat, free chat, free live chat, customer support, online support, live help, chat widget, customer help
5
  Requires at least: 3.8
6
- Tested up to: 3.9.1
7
  Stable tag: trunk
8
  License: GPLv2
9
 
@@ -79,11 +79,20 @@ Please review the live chat documentation on [our website](http://wp-livechat.co
79
 
80
  == Upgrade Notice ==
81
 
82
- Overhauled Ajax calls to be less resource intensive in version 4. It's recommended to upgrade the WP Live Chat Support Pro Version as well.
83
-
84
 
85
  == Changelog ==
86
 
 
 
 
 
 
 
 
 
 
87
  = 4.0.2 =
88
  * Table creation bug fix
89
  * Small bug fix (warning message)
@@ -203,4 +212,4 @@ Overhauled Ajax calls to be less resource intensive in version 4. It's recommend
203
  * More text fields can be customized
204
 
205
  = 1.0 =
206
- * Launch!
3
  Donate link: http://www.wp-livechat.com
4
  Tags: live chat, live support, chat plugin, live help, wordpress chat, customer support, chat, live chat plugin, live support plugin, live chat support plugin, chat plugin, support plugin, support, chat software, chat online, visitor chat, chat, free chat, free live chat, customer support, online support, live help, chat widget, customer help
5
  Requires at least: 3.8
6
+ Tested up to: 4.0
7
  Stable tag: trunk
8
  License: GPLv2
9
 
79
 
80
  == Upgrade Notice ==
81
 
82
+ = 4.1.0 =
83
+ It is highly recommended that you upgrade to version 4.1.0.
84
 
85
  == Changelog ==
86
 
87
+ = 4.1.0 2014-07-20 =
88
+ * New feature: You can now show the chat box on the left or right
89
+ * Vulnerability fix (JS injections). Thank you Patrik @ www.it-securityguard.com
90
+ * Fixed 403 bug when saving settings
91
+ * Fixed Ajax Time out error (Lowered From 90 to 28)
92
+ * Fixed IE8 bug
93
+ * Added option to auto pop up chat window
94
+ * Added Italian language files. Thanks to Davide
95
+
96
  = 4.0.2 =
97
  * Table creation bug fix
98
  * Small bug fix (warning message)
212
  * More text fields can be customized
213
 
214
  = 1.0 =
215
+ * Launch!
screenshot-1.jpg CHANGED
Binary file
wp-live-chat-support.php CHANGED
@@ -3,11 +3,24 @@
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. No third party connection required!
6
- Version: 4.0.2
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  */
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  error_reporting(E_ERROR);
12
  global $wplc_version;
13
  global $wplc_p_version;
@@ -17,7 +30,7 @@ global $wplc_tblname_chats;
17
  global $wplc_tblname_msgs;
18
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
19
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
20
- $wplc_version = "4.0.2";
21
 
22
 
23
 
@@ -122,75 +135,93 @@ function wplc_draw_user_box() {
122
  }
123
  function wplc_output_box() {
124
 
125
-
126
  $wplc_settings = get_option("WPLC_SETTINGS");
127
  if ($wplc_settings["wplc_settings_enabled"] == 2) { return; }
128
 
129
- if ($wplc_settings["wplc_settings_align"] == 1) { $wplc_box_align = "left:100px;"; } else { $wplc_box_align = "right:100px;"; }
130
- if ($wplc_settings["wplc_settings_fill"]) { $wplc_settings_fill = "#".$wplc_settings["wplc_settings_fill"]; } else { $wplc_settings_fill = "#73BE28"; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  if ($wplc_settings["wplc_settings_font"]) { $wplc_settings_font = "#".$wplc_settings["wplc_settings_font"]; } else { $wplc_settings_font = "#FFFFFF"; }
132
 
133
  $wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
134
  if (!function_exists("wplc_register_pro_version") && $wplc_is_admin_logged_in != 1) {
135
  return "";
136
  }
137
- if($wplc_settings["wplc_settings_align"] == 1){
138
- $original_pos = "left";
139
- } else {
140
- $original_pos = "right";
141
- }
142
 
143
  ?>
144
- <div id="wp-live-chat" style="display:none; <?php echo $wplc_box_align; ?>;" original_pos="<?php echo $original_pos ?>">
145
 
146
 
147
  <?php if (function_exists("wplc_register_pro_version")) {
148
  wplc_pro_output_box();
149
  } else {
150
  ?>
151
- <div id="wp-live-chat-header" style="background-color: <?php echo $wplc_settings_fill; ?> !important; color: <?php echo $wplc_settings_font; ?> !important;">
152
-
153
- <i id="wp-live-chat-minimize" class="fa fa-minus" style="display:none;" ></i>
154
- <i id="wp-live-chat-close" class="fa fa-times" style="display:none;" ></i>
155
-
156
- <div id="wp-live-chat-1" >
157
- <div style="display:block; ">
158
- <strong><?php _e("Questions?", "wplivechat") ?></strong> <?php _e("Chat with us", "wplivechat") ?>
 
 
 
 
159
  </div>
160
  </div>
161
- </div>
162
- <div id="wp-live-chat-2" style="display:none;">
163
 
164
- <div id="wp-live-chat-2-info">
165
- <strong>Start Live Chat</strong>
166
- </div>
167
 
168
- <input type="text" name="wplc_name" id="wplc_name" value="" placeholder="<?php _e("Name","wplivechat"); ?>" />
169
-
170
- <input type="text" name="wplc_email" id="wplc_email" value="" placeholder="<?php _e("Email","wplivechat"); ?>" />
171
-
172
- <input id="wplc_start_chat_btn" type="button" value="<?php _e("Start Chat","wplivechat"); ?>" style="background-color: <?php echo $wplc_settings_fill; ?> !important; color: <?php echo $wplc_settings_font; ?> !important;"/>
173
 
174
-
175
-
176
- </div>
177
-
178
- <div id="wp-live-chat-3" style="display:none;">
179
- <p><?php _e("Connecting you to a sales person. Please be patient.","wplivechat") ?></p>
180
- </div>
181
- <div id="wp-live-chat-react" style="display:none;">
182
- <p><?php _e("Reactivating your previous chat...", "wplivechat") ?></p>
183
- </div>
184
- <div id="wp-live-chat-4" style="display:none;">
185
- <div id="wplc_chatbox"></div>
186
- <p style="text-align:center; font-size:11px;"><?php _e("Press ENTER to send your message", "wplivechat" )?></p>
187
- <p>
188
- <input type="text" name="wplc_chatmsg" id="wplc_chatmsg" value="" />
189
- <input type="hidden" name="wplc_cid" id="wplc_cid" value="" />
190
- <input id="wplc_send_msg" type="button" value="<?php _e("Send","wplivechat"); ?>" style="display:none;" /></p>
191
- </div>
192
-
193
- </div>
 
 
 
 
 
 
 
 
 
 
 
194
  <?php
195
  }
196
  }
@@ -334,14 +365,16 @@ function wplc_admin_javascript() {
334
 
335
  var orig_title = document.getElementsByTagName("title")[0].innerHTML;
336
  wplc_pending_refresh = setInterval(function (){
 
 
337
  document.title = "** CHAT REQUEST **";
338
  wplc_title_alerts1 = setTimeout(function (){ document.title = "__ CHAT Request __"; }, 1000);
339
- wplc_title_alerts2 = setTimeout(function (){ document.title = "** CHAT REQUEST **"; }, 1500);
340
- wplc_title_alerts3 = setTimeout(function (){ document.title = "__ CHAT Request __"; }, 2000);
341
- wplc_title_alerts4 = setTimeout(function (){ document.title = orig_title; }, 2500);
342
 
343
  document.getElementById("wplc_sound").innerHTML="<embed src='<?php echo plugins_url('/ring.wav', __FILE__); ?>' hidden=true autostart=true loop=false>";
344
- }, 3000);
345
  } else {
346
  //console.log("end");
347
  clearInterval(wplc_pending_refresh);
@@ -383,7 +416,11 @@ function wplc_admin_javascript() {
383
  jQuery(document).ready(function() {
384
  jQuery('body').on("click", "a", function (event) {
385
  if(jQuery(this).hasClass('wplc_open_chat')){
386
- event.preventDefault();
 
 
 
 
387
  window.open(jQuery(this).attr("href"), jQuery(this).attr("window-title" ), "width=600,height=600,scrollbars=yes", false);
388
  }
389
  });
@@ -731,9 +768,16 @@ function wplc_return_admin_chat_javascript($cid) {
731
 
732
  });
733
 
 
 
 
 
 
 
 
734
  jQuery("#wplc_admin_send_msg").on("click", function() {
735
  var wplc_cid = jQuery("#wplc_admin_cid").val();
736
- var wplc_chat = jQuery("#wplc_admin_chatmsg").val();
737
  var wplc_name = "a"+"d"+"m"+"i"+"n";
738
  jQuery("#wplc_admin_chatmsg").val('');
739
 
@@ -776,7 +820,7 @@ function wplc_return_admin_chat_javascript($cid) {
776
  function wplc_activate() {
777
  wplc_handle_db();
778
  if (!get_option("WPLC_SETTINGS")) {
779
- add_option('WPLC_SETTINGS',array("wplc_settings_align" => "2", "wplc_settings_enabled" => "1", "wplc_settings_fill" => "73BE28", "wplc_settings_font" => "FFFFFF"));
780
  }
781
  add_option("WPLC_HIDE_CHAT","true");
782
  add_option("WPLC_FIRST_TIME", true);
@@ -887,6 +931,7 @@ function wplc_head_basic() {
887
  $wplc_data['wplc_settings_fill'] = esc_attr($_POST['wplc_settings_fill']);
888
  $wplc_data['wplc_settings_font'] = esc_attr($_POST['wplc_settings_font']);
889
  $wplc_data['wplc_settings_enabled'] = esc_attr($_POST['wplc_settings_enabled']);
 
890
  update_option('WPLC_SETTINGS', $wplc_data);
891
  update_option("WPLC_HIDE_CHAT", $_POST['wplc_hide_chat']);
892
  echo "<div class='updated'>";
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. No third party connection required!
6
+ Version: 4.1.0
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  */
10
 
11
+
12
+ /* 4.1.0
13
+ *
14
+ * New feature: You can now show the chat box on the left or right
15
+ * Vulnerability fix (JS injections). Thank you Patrik @ www.it-securityguard.com
16
+ * Fixed 403 bug when saving settings
17
+ * Fixed Ajax Time out error (Lowered From 90 to 28)
18
+ * Fixed IE8 bug
19
+ * Added option to auto pop up chat window
20
+ * Added Italian language files. Thanks to Davide
21
+ *
22
+ */
23
+
24
  error_reporting(E_ERROR);
25
  global $wplc_version;
26
  global $wplc_p_version;
30
  global $wplc_tblname_msgs;
31
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
32
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
33
+ $wplc_version = "4.1.0";
34
 
35
 
36
 
135
  }
136
  function wplc_output_box() {
137
 
138
+ $wplc_class = "";
139
  $wplc_settings = get_option("WPLC_SETTINGS");
140
  if ($wplc_settings["wplc_settings_enabled"] == 2) { return; }
141
 
142
+ if ($wplc_settings["wplc_settings_align"] == 1) {
143
+ $original_pos = "bottom_left";
144
+ $wplc_box_align = "left:100px; bottom:0px;";
145
+
146
+ } else if ($wplc_settings["wplc_settings_align"] == 2){
147
+ $original_pos = "bottom_right";
148
+ $wplc_box_align = "right:100px; bottom:0px;";
149
+
150
+ } else if($wplc_settings["wplc_settings_align"] == 3){
151
+ $original_pos = "left";
152
+ $wplc_box_align = "left:0; bottom:100px;";
153
+ $wplc_class = "wplc_left";
154
+ } else if($wplc_settings["wplc_settings_align"] == 4){
155
+ $original_pos = "right";
156
+ $wplc_box_align = "right:0; bottom:100px;";
157
+ $wplc_class = "wplc_right";
158
+ }
159
+ if ($wplc_settings["wplc_settings_fill"]) { $wplc_settings_fill = "#".$wplc_settings["wplc_settings_fill"]; } else { $wplc_settings_fill = "#ed832f"; }
160
  if ($wplc_settings["wplc_settings_font"]) { $wplc_settings_font = "#".$wplc_settings["wplc_settings_font"]; } else { $wplc_settings_font = "#FFFFFF"; }
161
 
162
  $wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
163
  if (!function_exists("wplc_register_pro_version") && $wplc_is_admin_logged_in != 1) {
164
  return "";
165
  }
 
 
 
 
 
166
 
167
  ?>
168
+ <div id="wp-live-chat" style="display:none; <?php echo $wplc_box_align; ?>; " class="<?php echo $wplc_class ?> wplc_close" original_pos="<?php echo $original_pos ?>" wplc-auto-pop-up="<?php echo $wplc_settings['wplc_auto_pop_up'] ?>">
169
 
170
 
171
  <?php if (function_exists("wplc_register_pro_version")) {
172
  wplc_pro_output_box();
173
  } else {
174
  ?>
175
+
176
+
177
+ <div class="wp-live-chat-wraper">
178
+ <div id="wp-live-chat-header" style="background-color: <?php echo $wplc_settings_fill; ?> !important; color: <?php echo $wplc_settings_font; ?> !important; ">
179
+
180
+ <i id="wp-live-chat-minimize" class="fa fa-minus" style="display:none;" ></i>
181
+ <i id="wp-live-chat-close" class="fa fa-times" style="display:none;" ></i>
182
+
183
+ <div id="wp-live-chat-1" >
184
+ <div style="display:block; ">
185
+ <strong><?php _e("Questions?", "wplivechat") ?></strong> <?php _e("Chat with us", "wplivechat") ?>
186
+ </div>
187
  </div>
188
  </div>
 
 
189
 
190
+ <div>
 
 
191
 
192
+ <div id="wp-live-chat-2" style="display:none;">
 
 
 
 
193
 
194
+ <div id="wp-live-chat-2-info">
195
+ <strong>Start Live Chat</strong>
196
+ </div>
197
+
198
+ <input type="text" name="wplc_name" id="wplc_name" value="" placeholder="<?php _e("Name","wplivechat"); ?>" />
199
+
200
+ <input type="text" name="wplc_email" id="wplc_email" value="" placeholder="<?php _e("Email","wplivechat"); ?>" />
201
+
202
+ <input id="wplc_start_chat_btn" type="button" value="<?php _e("Start Chat","wplivechat"); ?>" style="background-color: <?php echo $wplc_settings_fill; ?> !important; color: <?php echo $wplc_settings_font; ?> !important;"/>
203
+
204
+
205
+
206
+ </div>
207
+
208
+ <div id="wp-live-chat-3" style="display:none;">
209
+ <p><?php _e("Connecting you to a sales person. Please be patient.","wplivechat") ?></p>
210
+ </div>
211
+ <div id="wp-live-chat-react" style="display:none;">
212
+ <p><?php _e("Reactivating your previous chat...", "wplivechat") ?></p>
213
+ </div>
214
+ <div id="wp-live-chat-4" style="display:none;">
215
+ <div id="wplc_chatbox"></div>
216
+ <p style="text-align:center; font-size:11px;"><?php _e("Press ENTER to send your message", "wplivechat" )?></p>
217
+ <p>
218
+ <input type="text" name="wplc_chatmsg" id="wplc_chatmsg" value="" />
219
+ <input type="hidden" name="wplc_cid" id="wplc_cid" value="" />
220
+ <input id="wplc_send_msg" type="button" value="<?php _e("Send","wplivechat"); ?>" style="display:none;" /></p>
221
+ </div>
222
+ </div>
223
+ </div>
224
+ </div>
225
  <?php
226
  }
227
  }
365
 
366
  var orig_title = document.getElementsByTagName("title")[0].innerHTML;
367
  wplc_pending_refresh = setInterval(function (){
368
+ console.log("chat request");
369
+
370
  document.title = "** CHAT REQUEST **";
371
  wplc_title_alerts1 = setTimeout(function (){ document.title = "__ CHAT Request __"; }, 1000);
372
+ wplc_title_alerts2 = setTimeout(function (){ document.title = "** CHAT REQUEST **"; }, 2000);
373
+ wplc_title_alerts3 = setTimeout(function (){ document.title = "__ CHAT Request __"; }, 3000);
374
+ wplc_title_alerts4 = setTimeout(function (){ document.title = orig_title; }, 4000);
375
 
376
  document.getElementById("wplc_sound").innerHTML="<embed src='<?php echo plugins_url('/ring.wav', __FILE__); ?>' hidden=true autostart=true loop=false>";
377
+ }, 5000);
378
  } else {
379
  //console.log("end");
380
  clearInterval(wplc_pending_refresh);
416
  jQuery(document).ready(function() {
417
  jQuery('body').on("click", "a", function (event) {
418
  if(jQuery(this).hasClass('wplc_open_chat')){
419
+ if(event.preventDefault) {
420
+ event.preventDefault();
421
+ } else {
422
+ event.returnValue = false;
423
+ }
424
  window.open(jQuery(this).attr("href"), jQuery(this).attr("window-title" ), "width=600,height=600,scrollbars=yes", false);
425
  }
426
  });
768
 
769
  });
770
 
771
+ function wplc_strip(str) {
772
+ str=str.replace(/<br>/gi, "\n");
773
+ str=str.replace(/<p.*>/gi, "\n");
774
+ str=str.replace(/<a.*href="(.*?)".*>(.*?)<\/a>/gi, " $2 ($1) ");
775
+ str=str.replace(/<(?:.|\s)*?>/g, "");
776
+ return str;
777
+ }
778
  jQuery("#wplc_admin_send_msg").on("click", function() {
779
  var wplc_cid = jQuery("#wplc_admin_cid").val();
780
+ var wplc_chat = wplc_strip(document.getElementById('wplc_admin_chatmsg').value);
781
  var wplc_name = "a"+"d"+"m"+"i"+"n";
782
  jQuery("#wplc_admin_chatmsg").val('');
783
 
820
  function wplc_activate() {
821
  wplc_handle_db();
822
  if (!get_option("WPLC_SETTINGS")) {
823
+ add_option('WPLC_SETTINGS',array("wplc_settings_align" => "2", "wplc_settings_enabled" => "1", "wplc_settings_fill" => "ed832f", "wplc_settings_font" => "FFFFFF"));
824
  }
825
  add_option("WPLC_HIDE_CHAT","true");
826
  add_option("WPLC_FIRST_TIME", true);
931
  $wplc_data['wplc_settings_fill'] = esc_attr($_POST['wplc_settings_fill']);
932
  $wplc_data['wplc_settings_font'] = esc_attr($_POST['wplc_settings_font']);
933
  $wplc_data['wplc_settings_enabled'] = esc_attr($_POST['wplc_settings_enabled']);
934
+ $wplc_data['wplc_auto_pop_up'] = esc_attr($_POST['wplc_auto_pop_up']);
935
  update_option('WPLC_SETTINGS', $wplc_data);
936
  update_option("WPLC_HIDE_CHAT", $_POST['wplc_hide_chat']);
937
  echo "<div class='updated'>";