Version Description
-2016-01-26 - Freedom of Speech Update - Medium Priority = * New functionality * Unlimited simultaneous chats now available * Offline messages are now available * Many new filters added * jQuery.cookie updated to version 2.1 * Many of the WP Live Chat Support Pro features have been moved into the free version
Download this release
Release Info
Developer | WP-LiveChat |
Plugin | WP Live Chat Support |
Version | 6.0.00 |
Comparing to | |
See all releases |
Code changes from version 5.0.14 to 6.0.00
- ajax_new.php +8 -20
- css/chat-style.css +64 -0
- css/support-css.css +4 -3
- css/wplcstyle.css +0 -4
- functions.php +1648 -1327
- includes/deprecated.php +432 -0
- includes/settings_page.php +363 -372
- includes/update_control.class.php +177 -0
- includes/welcome_page.php +3 -2
- js/jquery-cookie.js +120 -92
- js/wplc_tabs.js +158 -0
- js/wplc_u.js +151 -55
- js/wplc_u_admin.js +401 -0
- js/wplc_u_admin_chat.js +261 -0
- languages/wplivechat-en_EN.mo +0 -0
- languages/wplivechat-en_EN.po +1126 -879
- readme.txt +13 -5
- wp-live-chat-support.php +1872 -1332
ajax_new.php
CHANGED
@@ -45,7 +45,7 @@ function wplc_init_ajax_callback() {
|
|
45 |
Â
session_write_close();
|
46 |
Â
|
47 |
Â
if ($_POST['action'] == "wplc_get_chat_box") {
|
48 |
-
echo
|
49 |
Â
}
|
50 |
Â
|
51 |
Â
if($_POST['action'] == 'wplc_admin_long_poll'){
|
@@ -71,7 +71,7 @@ function wplc_init_ajax_callback() {
|
|
71 |
Â
}
|
72 |
Â
|
73 |
Â
$pending = wplc_check_pending_chats();
|
74 |
-
$new_chat_data = wplc_list_chats_new();
|
75 |
Â
|
76 |
Â
|
77 |
Â
if ($new_chat_data == "false") { $new_chat_data = false; }
|
@@ -100,24 +100,7 @@ function wplc_init_ajax_callback() {
|
|
100 |
Â
$i = 1;
|
101 |
Â
$array = array();
|
102 |
Â
while($i <= $iterations){
|
103 |
-
|
104 |
-
$chat_status = wplc_return_chat_status(sanitize_text_field($_POST['cid']));
|
105 |
-
if($chat_status == 3){
|
106 |
-
$array['action'] = "wplc_user_open_chat";
|
107 |
-
}
|
108 |
-
} else {
|
109 |
-
$new_chat_status = wplc_return_chat_status(sanitize_text_field($_POST['cid']));
|
110 |
-
if($new_chat_status != $_POST['chat_status']){
|
111 |
-
$array['chat_status'] = $new_chat_status;
|
112 |
-
$array['action'] = "wplc_update_chat_status";
|
113 |
-
}
|
114 |
-
$new_chat_message = wplc_return_admin_chat_messages(sanitize_text_field($_POST['cid']));
|
115 |
-
if($new_chat_message){
|
116 |
-
|
117 |
-
$array['chat_message'] = $new_chat_message;
|
118 |
-
$array['action'] = "wplc_new_chat_message";
|
119 |
-
}
|
120 |
-
}
|
121 |
Â
if($array){
|
122 |
Â
echo json_encode($array);
|
123 |
Â
break;
|
@@ -194,6 +177,8 @@ function wplc_init_ajax_callback() {
|
|
194 |
Â
wplc_update_user_on_page(sanitize_text_field($_POST['cid']), 5, sanitize_text_field($_POST['wplcsession']));
|
195 |
Â
$array['status'] = 5;
|
196 |
Â
$array['check'] = true;
|
Â
|
|
Â
|
|
197 |
Â
} else if($_POST['status'] == 3){
|
198 |
Â
//wplc_update_user_on_page(sanitize_text_field($_POST['cid']), 3);
|
199 |
Â
$messages = wplc_return_user_chat_messages(sanitize_text_field($_POST['cid']));
|
@@ -237,6 +222,7 @@ function wplc_init_ajax_callback() {
|
|
237 |
Â
else if($new_status == 0){ // no answer from admin
|
238 |
Â
$array['data'] = __('There is No Answer. Please Try Again Later', 'wplivechat');
|
239 |
Â
$array['check'] = true;
|
Â
|
|
240 |
Â
}
|
241 |
Â
else if($new_status == 10){ // minimized active chat
|
242 |
Â
$array['check'] = true;
|
@@ -247,6 +233,8 @@ function wplc_init_ajax_callback() {
|
|
247 |
Â
}
|
248 |
Â
}
|
249 |
Â
}
|
Â
|
|
Â
|
|
250 |
Â
}
|
251 |
Â
}
|
252 |
Â
if($array['check'] == true){
|
45 |
Â
session_write_close();
|
46 |
Â
|
47 |
Â
if ($_POST['action'] == "wplc_get_chat_box") {
|
48 |
+
echo wplc_output_box_5100();
|
49 |
Â
}
|
50 |
Â
|
51 |
Â
if($_POST['action'] == 'wplc_admin_long_poll'){
|
71 |
Â
}
|
72 |
Â
|
73 |
Â
$pending = wplc_check_pending_chats();
|
74 |
+
$new_chat_data = wplc_list_chats_new($_POST);
|
75 |
Â
|
76 |
Â
|
77 |
Â
if ($new_chat_data == "false") { $new_chat_data = false; }
|
100 |
Â
$i = 1;
|
101 |
Â
$array = array();
|
102 |
Â
while($i <= $iterations){
|
103 |
+
$array = apply_filters("wplc_filter_admin_long_poll_chat_loop_iteration",$array,$_POST,$i);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
104 |
Â
if($array){
|
105 |
Â
echo json_encode($array);
|
106 |
Â
break;
|
177 |
Â
wplc_update_user_on_page(sanitize_text_field($_POST['cid']), 5, sanitize_text_field($_POST['wplcsession']));
|
178 |
Â
$array['status'] = 5;
|
179 |
Â
$array['check'] = true;
|
180 |
+
|
181 |
+
|
182 |
Â
} else if($_POST['status'] == 3){
|
183 |
Â
//wplc_update_user_on_page(sanitize_text_field($_POST['cid']), 3);
|
184 |
Â
$messages = wplc_return_user_chat_messages(sanitize_text_field($_POST['cid']));
|
222 |
Â
else if($new_status == 0){ // no answer from admin
|
223 |
Â
$array['data'] = __('There is No Answer. Please Try Again Later', 'wplivechat');
|
224 |
Â
$array['check'] = true;
|
225 |
+
@do_action("wplc_hook_missed_chat",array("cid" => $_POST['cid'],"name" => $_POST['wplc_name'],"email" => $_POST['wplc_email']));
|
226 |
Â
}
|
227 |
Â
else if($new_status == 10){ // minimized active chat
|
228 |
Â
$array['check'] = true;
|
233 |
Â
}
|
234 |
Â
}
|
235 |
Â
}
|
236 |
+
$array = apply_filters("wplc_filter_wplc_call_to_server_visitor_new_status_check",$array);
|
237 |
+
|
238 |
Â
}
|
239 |
Â
}
|
240 |
Â
if($array['check'] == true){
|
css/chat-style.css
CHANGED
@@ -551,3 +551,67 @@
|
|
551 |
Â
@media (min-width:961px) { #wplc_admin_chat_holder { width:850px; } #wplc_admin_chat_area_new { width:700px; float:none; display:block; margin: 0 auto; } #wplc_admin_chat_info_new { width:240px; float:none; display:block; margin: 20px auto; } .wplc_headerspan_t { display:none; } .wplc_headerspan_nr { display:block; } .wplc_chat_ul_header { display:block; } .wplc_p_cul { border-bottom:none; } #wplc_admin_chat_area_new li { float:left; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:0; text-align:left; } .wplc_chat_vis_count_box { min-width:110px; } }
|
552 |
Â
@media (min-width:1025px) { #wplc_admin_chat_holder { width:990px; } #wplc_admin_chat_area_new { width:700px; float:left; display:block; margin: 0; } #wplc_admin_chat_info_new { width:140px; float:left; display:block; margin: 0; } .wplc_headerspan_t { display:none; } .wplc_headerspan_nr { display:block; } .wplc_chat_ul_header { display:block; } .wplc_p_cul { border-bottom:none; } #wplc_admin_chat_area_new li { float:left; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:0; text-align:left; } .wplc_chat_vis_count_box { min-width:110px; } }
|
553 |
Â
@media (min-width:1281px) { #wplc_admin_chat_holder { width:990px; } #wplc_admin_chat_area_new { width:750px; float:left; display:block; margin: 0; } #wplc_admin_chat_info_new { width:240px; float:left; display:block; margin: 0; } .wplc_headerspan_t { display:block; } .wplc_headerspan_nr { display:block; } .wplc_chat_ul_header { display:block; } .wplc_p_cul { border-bottom:none; } #wplc_admin_chat_area_new li { float:left; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:0; text-align:left; } .wplc_chat_vis_count_box { min-width:198px; } }
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
551 |
Â
@media (min-width:961px) { #wplc_admin_chat_holder { width:850px; } #wplc_admin_chat_area_new { width:700px; float:none; display:block; margin: 0 auto; } #wplc_admin_chat_info_new { width:240px; float:none; display:block; margin: 20px auto; } .wplc_headerspan_t { display:none; } .wplc_headerspan_nr { display:block; } .wplc_chat_ul_header { display:block; } .wplc_p_cul { border-bottom:none; } #wplc_admin_chat_area_new li { float:left; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:0; text-align:left; } .wplc_chat_vis_count_box { min-width:110px; } }
|
552 |
Â
@media (min-width:1025px) { #wplc_admin_chat_holder { width:990px; } #wplc_admin_chat_area_new { width:700px; float:left; display:block; margin: 0; } #wplc_admin_chat_info_new { width:140px; float:left; display:block; margin: 0; } .wplc_headerspan_t { display:none; } .wplc_headerspan_nr { display:block; } .wplc_chat_ul_header { display:block; } .wplc_p_cul { border-bottom:none; } #wplc_admin_chat_area_new li { float:left; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:0; text-align:left; } .wplc_chat_vis_count_box { min-width:110px; } }
|
553 |
Â
@media (min-width:1281px) { #wplc_admin_chat_holder { width:990px; } #wplc_admin_chat_area_new { width:750px; float:left; display:block; margin: 0; } #wplc_admin_chat_info_new { width:240px; float:left; display:block; margin: 0; } .wplc_headerspan_t { display:block; } .wplc_headerspan_nr { display:block; } .wplc_chat_ul_header { display:block; } .wplc_p_cul { border-bottom:none; } #wplc_admin_chat_area_new li { float:left; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:0; text-align:left; } .wplc_chat_vis_count_box { min-width:198px; } }
|
554 |
+
|
555 |
+
.wplc_add_on_button_chat {
|
556 |
+
float:left; margin-right: 10px;
|
557 |
+
}
|
558 |
+
|
559 |
+
|
560 |
+
.wplc_agent_container ul {
|
561 |
+
display:block;
|
562 |
+
overflow:auto;
|
563 |
+
}
|
564 |
+
.wplc_agent_container li{
|
565 |
+
display: block;
|
566 |
+
float: left;
|
567 |
+
text-align: center;
|
568 |
+
border: 1px solid #CCC;
|
569 |
+
width:150px;
|
570 |
+
height:310px;
|
571 |
+
padding: 10px;
|
572 |
+
border-radius: 5px;
|
573 |
+
margin: 10px;
|
574 |
+
box-shadow: 2px 2px 2px #CCC;
|
575 |
+
overflow: auto;
|
576 |
+
|
577 |
+
}
|
578 |
+
.wplc_agent_container img{
|
579 |
+
border-radius: 100px;
|
580 |
+
}
|
581 |
+
.wplc_agent_container h3 {
|
582 |
+
font: bold 12px/16px Arial;
|
583 |
+
padding: 0 0 0 0px;
|
584 |
+
color: #C2BBBE;
|
585 |
+
display: block;
|
586 |
+
height:40px;
|
587 |
+
text-transform: uppercase;
|
588 |
+
}
|
589 |
+
.wplc_agent_container small { word-wrap: break-word; display:block; height:50px; }
|
590 |
+
.wplc_agent_container select { width: 120px; }
|
591 |
+
|
592 |
+
|
593 |
+
|
594 |
+
#wplc_star_rating{
|
595 |
+
text-align: center;
|
596 |
+
padding: 10px;
|
597 |
+
}
|
598 |
+
.relevant_extension p {
|
599 |
+
margin-top:2px;
|
600 |
+
}
|
601 |
+
.relevant_extension h3 {
|
602 |
+
margin-bottom:2px;
|
603 |
+
}
|
604 |
+
.relevant_extension {
|
605 |
+
width: 30% !important;
|
606 |
+
height: 105px !important;
|
607 |
+
opacity:0.5;
|
608 |
+
}
|
609 |
+
.relevant_extension:hover {
|
610 |
+
opacity:1.0;
|
611 |
+
}
|
612 |
+
|
613 |
+
.relevant_extension .button-secondary {
|
614 |
+
right:10px !important;
|
615 |
+
left: initial !important;
|
616 |
+
|
617 |
+
}
|
css/support-css.css
CHANGED
@@ -10,6 +10,7 @@
|
|
10 |
Â
overflow:auto;
|
11 |
Â
margin:0.25%;
|
12 |
Â
padding:0.2%;
|
Â
|
|
13 |
Â
min-height:420px;
|
14 |
Â
}
|
15 |
Â
.wplc_row_col h2 {
|
@@ -23,12 +24,12 @@
|
|
23 |
Â
}
|
24 |
Â
@media only screen and (min-width:480px) {
|
25 |
Â
.wplc_row_col {
|
26 |
-
width:
|
27 |
Â
float:left;
|
28 |
Â
display:block;
|
29 |
Â
overflow:auto;
|
30 |
-
margin:
|
31 |
-
padding:
|
32 |
Â
min-height:420px;
|
33 |
Â
}
|
34 |
Â
}
|
10 |
Â
overflow:auto;
|
11 |
Â
margin:0.25%;
|
12 |
Â
padding:0.2%;
|
13 |
+
|
14 |
Â
min-height:420px;
|
15 |
Â
}
|
16 |
Â
.wplc_row_col h2 {
|
24 |
Â
}
|
25 |
Â
@media only screen and (min-width:480px) {
|
26 |
Â
.wplc_row_col {
|
27 |
+
width:28%;
|
28 |
Â
float:left;
|
29 |
Â
display:block;
|
30 |
Â
overflow:auto;
|
31 |
+
margin:1%;
|
32 |
+
padding:1%;
|
33 |
Â
min-height:420px;
|
34 |
Â
}
|
35 |
Â
}
|
css/wplcstyle.css
CHANGED
@@ -345,7 +345,3 @@
|
|
345 |
Â
|
346 |
Â
/* MOVE TO CHAT EXPERIENCE PLUGIN */
|
347 |
Â
|
348 |
-
#wplc_star_rating{
|
349 |
-
text-align: center;
|
350 |
-
padding: 10px;
|
351 |
-
}
|
345 |
Â
|
346 |
Â
/* MOVE TO CHAT EXPERIENCE PLUGIN */
|
347 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
functions.php
CHANGED
@@ -1,1327 +1,1648 @@
|
|
1 |
-
<?php
|
2 |
-
$wplc_basic_plugin_url = get_option('siteurl')."/wp-content/plugins/wp-live-chat-support/";
|
3 |
-
|
4 |
-
function wplc_log_user_on_page($name,$email,$session) {
|
5 |
-
global $wpdb;
|
6 |
-
global $wplc_tblname_chats;
|
7 |
-
|
8 |
-
$wplc_settings = get_option('WPLC_SETTINGS');
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
)
|
15 |
-
|
16 |
-
|
17 |
-
'
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
'
|
49 |
-
'
|
50 |
-
'
|
51 |
-
'
|
52 |
-
'
|
53 |
-
'
|
54 |
-
|
55 |
-
|
56 |
-
'
|
57 |
-
|
58 |
-
|
59 |
-
'%s',
|
60 |
-
'%s',
|
61 |
-
'%s',
|
62 |
-
'%s',
|
63 |
-
'%s',
|
64 |
-
'%s'
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
$lastid
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
//
|
96 |
-
//
|
97 |
-
//
|
98 |
-
//
|
99 |
-
// `
|
100 |
-
// `
|
101 |
-
//
|
102 |
-
//
|
103 |
-
//
|
104 |
-
//
|
105 |
-
//
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
'
|
114 |
-
'
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
'%
|
122 |
-
'%s'
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
$
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
'
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
}
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
$
|
289 |
-
|
290 |
-
$
|
291 |
-
}
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
<
|
316 |
-
</div>
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
</
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
$
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
//
|
365 |
-
if($
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
$
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
$
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
$
|
455 |
-
|
456 |
-
$
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
$
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
$data_array[$result->id]['
|
485 |
-
$data_array[$result->id]['
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
$data_array[$result->id]['data']['
|
495 |
-
$
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
$
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
"
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
if(
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
);
|
610 |
-
|
611 |
-
|
612 |
-
}
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
if(
|
655 |
-
$
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
if($
|
668 |
-
$
|
669 |
-
} else {
|
670 |
-
$
|
671 |
-
}
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
//
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
$
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
"
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
if(
|
777 |
-
$
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
} else {
|
785 |
-
$
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
}
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
global $
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
)
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
}
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
if
|
887 |
-
return __("
|
888 |
-
}
|
889 |
-
if
|
890 |
-
return __("
|
891 |
-
}
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
//
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
'
|
1026 |
-
|
1027 |
-
'
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
$
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
}
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
$
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
}
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
}
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
$wplc_basic_plugin_url = get_option('siteurl')."/wp-content/plugins/wp-live-chat-support/";
|
3 |
+
|
4 |
+
function wplc_log_user_on_page($name,$email,$session) {
|
5 |
+
global $wpdb;
|
6 |
+
global $wplc_tblname_chats;
|
7 |
+
|
8 |
+
$wplc_settings = get_option('WPLC_SETTINGS');
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
if(isset($wplc_settings['wplc_record_ip_address']) && $wplc_settings['wplc_record_ip_address'] == 1){
|
13 |
+
|
14 |
+
if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARTDED_FOR'] != '') {
|
15 |
+
$ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
16 |
+
} else {
|
17 |
+
$ip_address = $_SERVER['REMOTE_ADDR'];
|
18 |
+
}
|
19 |
+
|
20 |
+
$user_data = array(
|
21 |
+
'ip' => $ip_address,
|
22 |
+
'user_agent' => $_SERVER['HTTP_USER_AGENT']
|
23 |
+
);
|
24 |
+
} else {
|
25 |
+
$user_data = array(
|
26 |
+
'ip' => "",
|
27 |
+
'user_agent' => $_SERVER['HTTP_USER_AGENT']
|
28 |
+
);
|
29 |
+
}
|
30 |
+
|
31 |
+
|
32 |
+
/* user types
|
33 |
+
* 1 = new
|
34 |
+
* 2 = returning
|
35 |
+
* 3 = timed out
|
36 |
+
*/
|
37 |
+
|
38 |
+
$other = array(
|
39 |
+
"user_type" => 1
|
40 |
+
);
|
41 |
+
|
42 |
+
$wpdb->insert(
|
43 |
+
$wplc_tblname_chats,
|
44 |
+
array(
|
45 |
+
'status' => '5',
|
46 |
+
'timestamp' => current_time('mysql'),
|
47 |
+
'name' => $name,
|
48 |
+
'email' => $email,
|
49 |
+
'session' => $session,
|
50 |
+
'ip' => maybe_serialize($user_data),
|
51 |
+
'url' => $_SERVER['HTTP_REFERER'],
|
52 |
+
'last_active_timestamp' => current_time('mysql'),
|
53 |
+
'other' => maybe_serialize($other),
|
54 |
+
),
|
55 |
+
array(
|
56 |
+
'%s',
|
57 |
+
'%s',
|
58 |
+
'%s',
|
59 |
+
'%s',
|
60 |
+
'%s',
|
61 |
+
'%s',
|
62 |
+
'%s',
|
63 |
+
'%s',
|
64 |
+
'%s'
|
65 |
+
)
|
66 |
+
);
|
67 |
+
|
68 |
+
$lastid = $wpdb->insert_id;
|
69 |
+
|
70 |
+
|
71 |
+
return $lastid;
|
72 |
+
|
73 |
+
}
|
74 |
+
function wplc_update_user_on_page($cid, $status = 5,$session) {
|
75 |
+
|
76 |
+
global $wpdb;
|
77 |
+
global $wplc_tblname_chats;
|
78 |
+
$wplc_settings = get_option('WPLC_SETTINGS');
|
79 |
+
|
80 |
+
if(isset($wplc_settings['wplc_record_ip_address']) && $wplc_settings['wplc_record_ip_address'] == 1){
|
81 |
+
$user_data = array(
|
82 |
+
'ip' => $_SERVER['REMOTE_ADDR'],
|
83 |
+
'user_agent' => $_SERVER['HTTP_USER_AGENT']
|
84 |
+
);
|
85 |
+
} else {
|
86 |
+
$user_data = array(
|
87 |
+
'ip' => "",
|
88 |
+
'user_agent' => $_SERVER['HTTP_USER_AGENT']
|
89 |
+
);
|
90 |
+
}
|
91 |
+
|
92 |
+
// $query =
|
93 |
+
// "
|
94 |
+
// UPDATE $wplc_tblname_chats
|
95 |
+
// SET
|
96 |
+
// `url` = '".$_SERVER['HTTP_REFERER']."',
|
97 |
+
// `last_active_timestamp` = '".date("Y-m-d H:i:s")."',
|
98 |
+
// `ip` = '".maybe_serialize($user_data)."',
|
99 |
+
// `status` = '$status',
|
100 |
+
// `session` = '$session'
|
101 |
+
//
|
102 |
+
// WHERE `id` = '$cid'
|
103 |
+
// LIMIT 1
|
104 |
+
// ";
|
105 |
+
// $results = $wpdb->query($query);
|
106 |
+
|
107 |
+
$query = $wpdb->update(
|
108 |
+
$wplc_tblname_chats,
|
109 |
+
array(
|
110 |
+
'url' => $_SERVER['HTTP_REFERER'],
|
111 |
+
'last_active_timestamp' => current_time('mysql'),
|
112 |
+
'ip' => maybe_serialize($user_data),
|
113 |
+
'status' => $status,
|
114 |
+
'session' => $session,
|
115 |
+
),
|
116 |
+
array('id' => $cid),
|
117 |
+
array(
|
118 |
+
'%s',
|
119 |
+
'%s',
|
120 |
+
'%s',
|
121 |
+
'%d',
|
122 |
+
'%s'
|
123 |
+
),
|
124 |
+
array('%d')
|
125 |
+
);
|
126 |
+
|
127 |
+
|
128 |
+
return $query;
|
129 |
+
|
130 |
+
|
131 |
+
}
|
132 |
+
|
133 |
+
|
134 |
+
|
135 |
+
function wplc_record_chat_msg($from,$cid,$msg) {
|
136 |
+
global $wpdb;
|
137 |
+
global $wplc_tblname_msgs;
|
138 |
+
|
139 |
+
if ($from == "2") {
|
140 |
+
if (current_user_can("wplc_ma_agent") || current_user_can("manage_options")) { } else { return "security issue"; }
|
141 |
+
}
|
142 |
+
|
143 |
+
if ($from == "1") {
|
144 |
+
$fromname = wplc_return_chat_name(sanitize_text_field($cid));
|
145 |
+
//$fromemail = wplc_return_chat_email($cid);
|
146 |
+
$orig = '2';
|
147 |
+
}
|
148 |
+
else {
|
149 |
+
$fromname = "admin";
|
150 |
+
//$fromemail = "SET email";
|
151 |
+
$orig = '1';
|
152 |
+
}
|
153 |
+
|
154 |
+
$msg = apply_filters("wplc_filter_message_control",$msg);
|
155 |
+
|
156 |
+
$wpdb->insert(
|
157 |
+
$wplc_tblname_msgs,
|
158 |
+
array(
|
159 |
+
'chat_sess_id' => $cid,
|
160 |
+
'timestamp' => current_time('mysql'),
|
161 |
+
'msgfrom' => $fromname,
|
162 |
+
'msg' => $msg,
|
163 |
+
'status' => 0,
|
164 |
+
'originates' => $orig
|
165 |
+
),
|
166 |
+
array(
|
167 |
+
'%s',
|
168 |
+
'%s',
|
169 |
+
'%s',
|
170 |
+
'%s',
|
171 |
+
'%d',
|
172 |
+
'%s'
|
173 |
+
)
|
174 |
+
);
|
175 |
+
|
176 |
+
wplc_update_active_timestamp(sanitize_text_field($cid));
|
177 |
+
wplc_change_chat_status(sanitize_text_field($cid),3);
|
178 |
+
|
179 |
+
return true;
|
180 |
+
|
181 |
+
}
|
182 |
+
|
183 |
+
function wplc_update_active_timestamp($cid) {
|
184 |
+
global $wpdb;
|
185 |
+
global $wplc_tblname_chats;
|
186 |
+
// $results = $wpdb->get_results(
|
187 |
+
// "
|
188 |
+
// UPDATE $wplc_tblname_chats
|
189 |
+
// SET `last_active_timestamp` = '".date("Y-m-d H:i:s")."'
|
190 |
+
// WHERE `id` = '$cid'
|
191 |
+
// LIMIT 1
|
192 |
+
// "
|
193 |
+
// );
|
194 |
+
$wpdb->update(
|
195 |
+
$wplc_tblname_chats,
|
196 |
+
array(
|
197 |
+
'last_active_timestamp' => current_time('mysql')
|
198 |
+
),
|
199 |
+
array('id' => $cid),
|
200 |
+
array('%s'),
|
201 |
+
array('%d')
|
202 |
+
);
|
203 |
+
|
204 |
+
wplc_change_chat_status(sanitize_text_field($cid),3);
|
205 |
+
return true;
|
206 |
+
|
207 |
+
}
|
208 |
+
|
209 |
+
function wplc_return_chat_name($cid) {
|
210 |
+
global $wpdb;
|
211 |
+
global $wplc_tblname_chats;
|
212 |
+
$results = $wpdb->get_results(
|
213 |
+
"
|
214 |
+
SELECT *
|
215 |
+
FROM $wplc_tblname_chats
|
216 |
+
WHERE `id` = '$cid'
|
217 |
+
"
|
218 |
+
);
|
219 |
+
foreach ($results as $result) {
|
220 |
+
return $result->name;
|
221 |
+
}
|
222 |
+
|
223 |
+
}
|
224 |
+
function wplc_return_chat_email($cid) {
|
225 |
+
global $wpdb;
|
226 |
+
global $wplc_tblname_chats;
|
227 |
+
$results = $wpdb->get_results(
|
228 |
+
"
|
229 |
+
SELECT *
|
230 |
+
FROM $wplc_tblname_chats
|
231 |
+
WHERE `id` = '$cid'
|
232 |
+
"
|
233 |
+
);
|
234 |
+
foreach ($results as $result) {
|
235 |
+
return $result->email;
|
236 |
+
}
|
237 |
+
|
238 |
+
}
|
239 |
+
function wplc_list_chats() {
|
240 |
+
|
241 |
+
global $wpdb;
|
242 |
+
global $wplc_tblname_chats;
|
243 |
+
$status = 3;
|
244 |
+
$wplc_c = 0;
|
245 |
+
$results = $wpdb->get_results(
|
246 |
+
"
|
247 |
+
SELECT *
|
248 |
+
FROM $wplc_tblname_chats
|
249 |
+
WHERE `status` = 3 OR `status` = 2 OR `status` = 10
|
250 |
+
ORDER BY `timestamp` ASC
|
251 |
+
|
252 |
+
"
|
253 |
+
);
|
254 |
+
|
255 |
+
$table = "<div class='wplc_chats_container'>";
|
256 |
+
|
257 |
+
if (!$results) {
|
258 |
+
$table.= "<p>".__("No chat sessions available at the moment","wplivechat")."</p>";
|
259 |
+
} else {
|
260 |
+
$table .= "<h2>".__('Active Chats', 'wplivechat')."</h2>";
|
261 |
+
|
262 |
+
foreach ($results as $result) {
|
263 |
+
unset($trstyle);
|
264 |
+
unset($actions);
|
265 |
+
$wplc_c++;
|
266 |
+
|
267 |
+
|
268 |
+
global $wplc_basic_plugin_url;
|
269 |
+
$user_data = maybe_unserialize($result->ip);
|
270 |
+
$user_ip = $user_data['ip'];
|
271 |
+
$browser = wplc_return_browser_string($user_data['user_agent']);
|
272 |
+
$browser_image = wplc_return_browser_image($browser,"16");
|
273 |
+
|
274 |
+
if($user_ip == ""){
|
275 |
+
$user_ip = __('IP Address not recorded', 'wplivechat');
|
276 |
+
} else {
|
277 |
+
$user_ip = "<a href='http://www.ip-adress.com/ip_tracer/" . $user_ip . "' title='".__('Whois for' ,'wplivechat')." ".$user_ip."'>".$user_ip."</a>";
|
278 |
+
}
|
279 |
+
|
280 |
+
if ($result->status == 2) {
|
281 |
+
$url = admin_url( 'admin.php?page=wplivechat-menu&action=ac&cid='.$result->id);
|
282 |
+
$actions = "<a href=\"".$url."\" class=\"wplc_open_chat button button-primary\" window-title=\"WP_Live_Chat_".$result->id."\">".__("Accept Chat","wplivechat")."</a>";
|
283 |
+
$trstyle = "style='background-color:#FFFBE4; height:30px;'";
|
284 |
+
$icon = "<i class=\"fa fa-phone wplc_pending\" title='".__('Incoming Chat', 'wplivechat')."' alt='".__('Incoming Chat', 'wplivechat')."'></i><div class='wplc_icon_message'>".__('You have an incoming chat.', 'wplivechat')."</div>";
|
285 |
+
}
|
286 |
+
if ($result->status == 3) {
|
287 |
+
$url = admin_url( 'admin.php?page=wplivechat-menu&action=ac&cid='.$result->id);
|
288 |
+
$actions = "<a href=\"".$url."\" class=\"wplc_open_chat button button-primary\" window-title=\"WP_Live_Chat_".$result->id."\">".__("Open Chat Window","wplivechat")."</a>";
|
289 |
+
$trstyle = "style='background-color:#F7FCFE; height:30px;'";
|
290 |
+
$icon = "<i class=\"fa fa-check-circle wplc_active\" title='".__('Chat Active', 'wplivechat')."' alt='".__('Chat Active', 'wplivechat')."'></i><div class='wplc_icon_message'>".__('This chat is active', 'wplivechat')."</div>";
|
291 |
+
}
|
292 |
+
|
293 |
+
|
294 |
+
/* if ($wplc_c>1) { $actions = wplc_get_msg(); } */
|
295 |
+
|
296 |
+
$trstyle = "";
|
297 |
+
|
298 |
+
$table .= "
|
299 |
+
<div class='wplc_single_chat' id='record_".$result->id."' $trstyle>
|
300 |
+
<div class='wplc_chat_section section_1'>
|
301 |
+
<div class='wplc_user_image' id='chat_image_".$result->id."'>
|
302 |
+
<img src=\"//www.gravatar.com/avatar/".md5($result->email)."?s=60&d=mm\" />
|
303 |
+
</div>
|
304 |
+
<div class='wplc_user_meta_data'>
|
305 |
+
<div class='wplc_user_name' id='chat_name_".$result->id."'>
|
306 |
+
<h3>".$result->name.$icon."</h3>
|
307 |
+
<a href='mailto:".$result->email."' target='_BLANK'>".$result->email."</a>
|
308 |
+
</div>
|
309 |
+
</div>
|
310 |
+
</div>
|
311 |
+
<div class='wplc_chat_section section_2'>
|
312 |
+
<div class='admin_visitor_advanced_info'>
|
313 |
+
<strong>" . __("Site Info", "wplivechat") . "</strong>
|
314 |
+
<hr />
|
315 |
+
<span class='part1'>" . __("Chat initiated on:", "wplivechat") . "</span> <span class='part2'> <a href='".$result->url."' target='_BLANK'>" . $result->url . "</a></span>
|
316 |
+
</div>
|
317 |
+
|
318 |
+
<div class='admin_visitor_advanced_info'>
|
319 |
+
<strong>" . __("Advanced Info", "wplivechat") . "</strong>
|
320 |
+
<hr />
|
321 |
+
<span class='part1'>" . __("Browser:", "wplivechat") . "</span><span class='part2'> $browser <img src='" . $wplc_basic_plugin_url . "/images/$browser_image' alt='$browser' title='$browser' /><br />
|
322 |
+
<span class='part1'>" . __("IP Address:", "wplivechat") . "</span><span class='part2'> ".$user_ip."
|
323 |
+
</div>
|
324 |
+
</div>
|
325 |
+
<div class='wplc_chat_section section_3'>
|
326 |
+
<div class='wplc_agent_actions'>
|
327 |
+
$actions
|
328 |
+
</div>
|
329 |
+
</div>
|
330 |
+
</div>
|
331 |
+
";
|
332 |
+
}
|
333 |
+
}
|
334 |
+
$table .= "</div>";
|
335 |
+
|
336 |
+
return $table;
|
337 |
+
}
|
338 |
+
|
339 |
+
function wplc_time_ago($time_ago)
|
340 |
+
{
|
341 |
+
$time_ago = strtotime($time_ago);
|
342 |
+
$cur_time = current_time('timestamp');
|
343 |
+
$time_elapsed = $cur_time - $time_ago;
|
344 |
+
$seconds = $time_elapsed ;
|
345 |
+
$minutes = round($time_elapsed / 60 );
|
346 |
+
$hours = round($time_elapsed / 3600);
|
347 |
+
$days = round($time_elapsed / 86400 );
|
348 |
+
$weeks = round($time_elapsed / 604800);
|
349 |
+
$months = round($time_elapsed / 2600640 );
|
350 |
+
$years = round($time_elapsed / 31207680 );
|
351 |
+
// Seconds
|
352 |
+
if($seconds <= 60){
|
353 |
+
return "0 min";
|
354 |
+
}
|
355 |
+
//Minutes
|
356 |
+
else if($minutes <=60){
|
357 |
+
if($minutes==1){
|
358 |
+
return "1 min";
|
359 |
+
}
|
360 |
+
else{
|
361 |
+
return "$minutes min";
|
362 |
+
}
|
363 |
+
}
|
364 |
+
//Hours
|
365 |
+
else if($hours <=24){
|
366 |
+
if($hours==1){
|
367 |
+
return "1 hr";
|
368 |
+
}else{
|
369 |
+
return "$hours hrs";
|
370 |
+
}
|
371 |
+
}
|
372 |
+
//Days
|
373 |
+
else if($days <= 7){
|
374 |
+
if($days==1){
|
375 |
+
return "1 day";
|
376 |
+
}else{
|
377 |
+
return "$days days";
|
378 |
+
}
|
379 |
+
}
|
380 |
+
//Weeks
|
381 |
+
else if($weeks <= 4.3){
|
382 |
+
if($weeks==1){
|
383 |
+
return "1 week";
|
384 |
+
}else{
|
385 |
+
return "$weeks weeks";
|
386 |
+
}
|
387 |
+
}
|
388 |
+
//Months
|
389 |
+
else if($months <=12){
|
390 |
+
if($months==1){
|
391 |
+
return "1 month";
|
392 |
+
}else{
|
393 |
+
return "$months months";
|
394 |
+
}
|
395 |
+
}
|
396 |
+
//Years
|
397 |
+
else{
|
398 |
+
if($years==1){
|
399 |
+
return "1 year";
|
400 |
+
}else{
|
401 |
+
return "$years years";
|
402 |
+
}
|
403 |
+
}
|
404 |
+
}
|
405 |
+
|
406 |
+
add_filter("wplc_filter_list_chats_actions","wplc_filter_control_list_chats_actions",15,3);
|
407 |
+
function wplc_filter_control_list_chats_actions($actions,$result,$post_data) {
|
408 |
+
$aid = apply_filters("wplc_filter_aid_in_action","");
|
409 |
+
if (intval($result->status) == 2) {
|
410 |
+
$url_params = "&action=ac&cid=".$result->id.$aid;
|
411 |
+
$url = admin_url( 'admin.php?page=wplivechat-menu'.$url_params);
|
412 |
+
$actions = "<a href=\"".$url."\" class=\"wplc_open_chat button button-primary\" window-title=\"WP_Live_Chat_".$result->id."\">".__("Accept Chat","wplivechat")."</a>";
|
413 |
+
}
|
414 |
+
else if (intval($result->status) == 3) {
|
415 |
+
$url_params = "&action=ac&cid=".$result->id.$aid;
|
416 |
+
$url = admin_url( 'admin.php?page=wplivechat-menu'.$url_params);
|
417 |
+
$actions = "<a href=\"".$url."\" class=\"wplc_open_chat button button-primary\" window-title=\"WP_Live_Chat_".$result->id."\">".__("Open Chat","wplivechat")."</a>";
|
418 |
+
}
|
419 |
+
|
420 |
+
|
421 |
+
return $actions;
|
422 |
+
}
|
423 |
+
|
424 |
+
function wplc_list_chats_new($post_data) {
|
425 |
+
|
426 |
+
global $wpdb;
|
427 |
+
global $wplc_tblname_chats;
|
428 |
+
$status = 3;
|
429 |
+
$wplc_c = 0;
|
430 |
+
$results = $wpdb->get_results("SELECT * FROM $wplc_tblname_chats WHERE `status` = 3 OR `status` = 2 OR `status` = 10 OR `status` = 5 or `status` = 8 or `status` = 9 ORDER BY `timestamp` ASC");
|
431 |
+
$data_array = array();
|
432 |
+
$id_list = array();
|
433 |
+
|
434 |
+
|
435 |
+
if (!$results) {
|
436 |
+
$data_array = false;
|
437 |
+
} else {
|
438 |
+
|
439 |
+
|
440 |
+
foreach ($results as $result) {
|
441 |
+
unset($trstyle);
|
442 |
+
unset($actions);
|
443 |
+
|
444 |
+
|
445 |
+
|
446 |
+
|
447 |
+
global $wplc_basic_plugin_url;
|
448 |
+
$user_data = maybe_unserialize($result->ip);
|
449 |
+
$user_ip = $user_data['ip'];
|
450 |
+
$browser = wplc_return_browser_string($user_data['user_agent']);
|
451 |
+
$browser_image = wplc_return_browser_image($browser,"16");
|
452 |
+
|
453 |
+
if($user_ip == ""){
|
454 |
+
$user_ip = __('IP Address not recorded', 'wplivechat');
|
455 |
+
} else {
|
456 |
+
$user_ip = "<a href='http://www.ip-adress.com/ip_tracer/" . $user_ip . "' title='".__('Whois for' ,'wplivechat')." ".$user_ip."'>".$user_ip."</a>";
|
457 |
+
}
|
458 |
+
|
459 |
+
|
460 |
+
$actions = apply_filters("wplc_filter_list_chats_actions","",$result,$post_data);
|
461 |
+
|
462 |
+
|
463 |
+
|
464 |
+
|
465 |
+
|
466 |
+
|
467 |
+
$trstyle = "";
|
468 |
+
|
469 |
+
$id_list[intval($result->id)] = true;
|
470 |
+
|
471 |
+
$data_array[$result->id]['name'] = $result->name;
|
472 |
+
$data_array[$result->id]['email'] = $result->email;
|
473 |
+
|
474 |
+
$data_array[$result->id]['status'] = $result->status;
|
475 |
+
$data_array[$result->id]['action'] = $actions;
|
476 |
+
$data_array[$result->id]['timestamp'] = wplc_time_ago($result->timestamp);
|
477 |
+
|
478 |
+
if ((current_time('timestamp') - strtotime($result->timestamp)) < 3600) {
|
479 |
+
$data_array[$result->id]['type'] = __("New","wplivechat");
|
480 |
+
} else {
|
481 |
+
$data_array[$result->id]['type'] = __("Returning","wplivechat");
|
482 |
+
}
|
483 |
+
|
484 |
+
$data_array[$result->id]['image'] = "<img src=\"//www.gravatar.com/avatar/".md5($result->email)."?s=20&d=mm\" />";
|
485 |
+
$data_array[$result->id]['data']['browsing'] = $result->url;
|
486 |
+
$path = parse_url($result->url, PHP_URL_PATH);
|
487 |
+
|
488 |
+
if (strlen($path) > 20) {
|
489 |
+
$data_array[$result->id]['data']['browsing_nice_url'] = substr($path,0,20).'...';
|
490 |
+
} else {
|
491 |
+
$data_array[$result->id]['data']['browsing_nice_url'] = $path;
|
492 |
+
}
|
493 |
+
|
494 |
+
$data_array[$result->id]['data']['browser'] = "<img src='" . $wplc_basic_plugin_url . "/images/$browser_image' alt='$browser' title='$browser' /> ";
|
495 |
+
$data_array[$result->id]['data']['ip'] = $user_ip;
|
496 |
+
}
|
497 |
+
$data_array['ids'] = $id_list;
|
498 |
+
}
|
499 |
+
|
500 |
+
return json_encode($data_array);
|
501 |
+
}
|
502 |
+
|
503 |
+
|
504 |
+
|
505 |
+
function wplc_return_user_chat_messages($cid) {
|
506 |
+
global $wpdb;
|
507 |
+
global $wplc_tblname_msgs;
|
508 |
+
|
509 |
+
$wplc_settings = get_option("WPLC_SETTINGS");
|
510 |
+
|
511 |
+
if(isset($wplc_settings['wplc_display_name']) && $wplc_settings['wplc_display_name'] == 1){ $display_name = 1; } else { $display_name = 0; }
|
512 |
+
|
513 |
+
|
514 |
+
$results = $wpdb->get_results(
|
515 |
+
"
|
516 |
+
SELECT *
|
517 |
+
FROM $wplc_tblname_msgs
|
518 |
+
WHERE `chat_sess_id` = '$cid' AND `status` = '0' AND `originates` = '1'
|
519 |
+
ORDER BY `timestamp` ASC
|
520 |
+
|
521 |
+
"
|
522 |
+
);
|
523 |
+
$msg_hist = "";
|
524 |
+
foreach ($results as $result) {
|
525 |
+
$id = $result->id;
|
526 |
+
$from = $result->msgfrom;
|
527 |
+
|
528 |
+
$msg = $result->msg;
|
529 |
+
//$timestamp = strtotime($result->timestamp);
|
530 |
+
//$timeshow = date("H:i",$timestamp);
|
531 |
+
if($result->originates == 1){
|
532 |
+
$class = "wplc-admin-message";
|
533 |
+
if(function_exists("wplc_pro_get_admin_picture")){
|
534 |
+
$src = wplc_pro_get_admin_picture();
|
535 |
+
if($src){
|
536 |
+
$image = "<img src=".$src." width='20px' id='wp-live-chat-2-img'/>";
|
537 |
+
} else {
|
538 |
+
$image = "";
|
539 |
+
}
|
540 |
+
} else {
|
541 |
+
$image = "";
|
542 |
+
}
|
543 |
+
} else {
|
544 |
+
$class = "wplc-user-message";
|
545 |
+
|
546 |
+
if(isset($_COOKIE['wplc_email']) && $_COOKIE['wplc_email'] != ""){ $wplc_user_gravatar = md5(strtolower(trim(sanitize_text_field($_COOKIE['wplc_email'])))); } else { $wplc_user_gravatar = ""; }
|
547 |
+
|
548 |
+
if($wplc_user_gravatar != ""){
|
549 |
+
$image = "<img src='//www.gravatar.com/avatar/$wplc_user_gravatar?s=20' />";
|
550 |
+
} else {
|
551 |
+
$image = "";
|
552 |
+
}
|
553 |
+
}
|
554 |
+
|
555 |
+
if(function_exists('wplc_decrypt_msg')){
|
556 |
+
$msg = wplc_decrypt_msg($msg);
|
557 |
+
}
|
558 |
+
$msg = apply_filters("wplc_filter_message_control_out",$msg);
|
559 |
+
|
560 |
+
|
561 |
+
if($display_name){
|
562 |
+
$msg_hist .= "<span class='wplc-admin-message'>$image <strong>$from</strong>: $msg</span><br /><div class='wplc-clear-float-message'></div>";
|
563 |
+
} else {
|
564 |
+
$msg_hist .= "<span class='wplc-admin-message'>$msg</span><div class='wplc-clear-float-message'></div>";
|
565 |
+
}
|
566 |
+
|
567 |
+
|
568 |
+
|
569 |
+
|
570 |
+
}
|
571 |
+
|
572 |
+
return $msg_hist;
|
573 |
+
|
574 |
+
|
575 |
+
}
|
576 |
+
|
577 |
+
|
578 |
+
function wplc_change_chat_status($id,$status) {
|
579 |
+
global $wpdb;
|
580 |
+
global $wplc_tblname_chats;
|
581 |
+
$results = $wpdb->get_results(
|
582 |
+
"
|
583 |
+
UPDATE $wplc_tblname_chats
|
584 |
+
SET `status` = '$status'
|
585 |
+
WHERE `id` = '$id'
|
586 |
+
LIMIT 1
|
587 |
+
"
|
588 |
+
);
|
589 |
+
$wpdb->update(
|
590 |
+
$wplc_tblname_chats,
|
591 |
+
array(
|
592 |
+
'status' => $status
|
593 |
+
),
|
594 |
+
array('id' => $id),
|
595 |
+
array('%d'),
|
596 |
+
array('%d')
|
597 |
+
);
|
598 |
+
return true;
|
599 |
+
|
600 |
+
}
|
601 |
+
|
602 |
+
//come back here
|
603 |
+
function wplc_return_chat_messages($cid,$transcript = false,$html = true) {
|
604 |
+
global $wpdb;
|
605 |
+
global $wplc_tblname_msgs;
|
606 |
+
|
607 |
+
$wplc_settings = get_option("WPLC_SETTINGS");
|
608 |
+
|
609 |
+
if(isset($wplc_settings['wplc_display_name']) && $wplc_settings['wplc_display_name'] == 1){ $display_name = 1; } else { $display_name = 0; }
|
610 |
+
|
611 |
+
$results = wplc_get_chat_messages($cid);
|
612 |
+
if (!$results) { return; }
|
613 |
+
|
614 |
+
|
615 |
+
$msg_hist = "";
|
616 |
+
$previous_time = "";
|
617 |
+
$previous_timestamp = 0;
|
618 |
+
foreach ($results as $result) {
|
619 |
+
$from = $result->msgfrom;
|
620 |
+
$msg = stripslashes($result->msg);
|
621 |
+
$timestamp = strtotime($result->timestamp);
|
622 |
+
|
623 |
+
$time_diff = $timestamp - $previous_timestamp;
|
624 |
+
if ($time_diff > 60) { $show_time = true; } else { $show_time = false; }
|
625 |
+
// $date = new DateTime($timestamp);
|
626 |
+
$timeshow = date('l, F d Y h:i A',$timestamp);
|
627 |
+
|
628 |
+
if (!$transcript) { if ($previous_time == $timeshow || !$show_time) { $timeshow = ""; } }
|
629 |
+
$previous_time = $timeshow;
|
630 |
+
$previous_timestamp = $timestamp;
|
631 |
+
|
632 |
+
|
633 |
+
$image = "";
|
634 |
+
if($result->originates == 1){
|
635 |
+
$class = "wplc-admin-message";
|
636 |
+
if(function_exists("wplc_pro_get_admin_picture")){
|
637 |
+
$src = wplc_pro_get_admin_picture();
|
638 |
+
if($src){
|
639 |
+
$image = "<img src=".$src." width='20px' id='wp-live-chat-2-img'/>";
|
640 |
+
}
|
641 |
+
}
|
642 |
+
} else {
|
643 |
+
$class = "wplc-user-message";
|
644 |
+
|
645 |
+
if(isset($_COOKIE['wplc_email']) && $_COOKIE['wplc_email'] != ""){ $wplc_user_gravatar = md5(strtolower(trim(sanitize_text_field($_COOKIE['wplc_email'])))); } else { $wplc_user_gravatar = ""; }
|
646 |
+
|
647 |
+
if($wplc_user_gravatar != ""){
|
648 |
+
$image = "<img src='//www.gravatar.com/avatar/$wplc_user_gravatar?s=20' />";
|
649 |
+
} else {
|
650 |
+
$image = "";
|
651 |
+
}
|
652 |
+
}
|
653 |
+
|
654 |
+
if(function_exists('wplc_decrypt_msg')){
|
655 |
+
$msg = wplc_decrypt_msg($msg);
|
656 |
+
}
|
657 |
+
|
658 |
+
$msg = apply_filters("wplc_filter_message_control_out",$msg);
|
659 |
+
|
660 |
+
if($display_name){
|
661 |
+
if ($html) {
|
662 |
+
$msg_hist .= "<span class='chat_time'>$timeshow</span> <span class='$class'>$image <strong>$from</strong>: $msg</span><br /><div class='wplc-clear-float-message'></div>";
|
663 |
+
} else {
|
664 |
+
$msg_hist .= "($timeshow) $from: $msg\r\n";
|
665 |
+
}
|
666 |
+
} else {
|
667 |
+
if ($html) {
|
668 |
+
$msg_hist .= "<span class='chat_time'>$timeshow</span> <span class='$class'>$msg</span><br /><div class='wplc-clear-float-message'></div>";
|
669 |
+
} else {
|
670 |
+
$msg_hist .= "($timeshow) $from: $msg\r\n";
|
671 |
+
}
|
672 |
+
|
673 |
+
}
|
674 |
+
|
675 |
+
}
|
676 |
+
return $msg_hist;
|
677 |
+
|
678 |
+
|
679 |
+
}
|
680 |
+
|
681 |
+
|
682 |
+
function wplc_mark_as_read_user_chat_messages($cid) {
|
683 |
+
global $wpdb;
|
684 |
+
global $wplc_tblname_msgs;
|
685 |
+
$results = $wpdb->get_results(
|
686 |
+
"
|
687 |
+
SELECT *
|
688 |
+
FROM $wplc_tblname_msgs
|
689 |
+
WHERE `chat_sess_id` = '$cid' AND `status` = '0' AND `originates` = '1'
|
690 |
+
ORDER BY `timestamp` DESC
|
691 |
+
|
692 |
+
"
|
693 |
+
);
|
694 |
+
|
695 |
+
|
696 |
+
foreach ($results as $result) {
|
697 |
+
$id = $result->id;
|
698 |
+
// $check = $wpdb->query(
|
699 |
+
// "
|
700 |
+
// UPDATE $wplc_tblname_msgs
|
701 |
+
// SET `status` = 1
|
702 |
+
// WHERE `id` = '$id'
|
703 |
+
// LIMIT 1
|
704 |
+
//
|
705 |
+
// "
|
706 |
+
// );
|
707 |
+
|
708 |
+
$wpdb->update(
|
709 |
+
$wplc_tblname_msgs,
|
710 |
+
array(
|
711 |
+
'status' => 1
|
712 |
+
),
|
713 |
+
array('id' => $id),
|
714 |
+
array('%d'),
|
715 |
+
array('%d')
|
716 |
+
);
|
717 |
+
|
718 |
+
|
719 |
+
}
|
720 |
+
return "ok";
|
721 |
+
|
722 |
+
|
723 |
+
}
|
724 |
+
//here
|
725 |
+
function wplc_return_admin_chat_messages($cid) {
|
726 |
+
|
727 |
+
if (current_user_can("wplc_ma_agent") || current_user_can("manage_options")) {
|
728 |
+
$wplc_settings = get_option("WPLC_SETTINGS");
|
729 |
+
|
730 |
+
|
731 |
+
if(isset($wplc_settings['wplc_display_name']) && $wplc_settings['wplc_display_name'] == 1){ $display_name = 1; } else { $display_name = 0; }
|
732 |
+
|
733 |
+
global $wpdb;
|
734 |
+
global $wplc_tblname_msgs;
|
735 |
+
|
736 |
+
$results = $wpdb->get_results(
|
737 |
+
"
|
738 |
+
SELECT *
|
739 |
+
FROM $wplc_tblname_msgs
|
740 |
+
WHERE `chat_sess_id` = '$cid' AND `status` = '0' AND `originates` = '2'
|
741 |
+
ORDER BY `timestamp` ASC
|
742 |
+
|
743 |
+
"
|
744 |
+
);
|
745 |
+
|
746 |
+
$msg_hist = "";
|
747 |
+
foreach ($results as $result) {
|
748 |
+
|
749 |
+
$id = $result->id;
|
750 |
+
$from = $result->msgfrom;
|
751 |
+
wplc_mark_as_read_admin_chat_messages($id);
|
752 |
+
$msg = $result->msg;
|
753 |
+
//$timestamp = strtotime($result->timestamp);
|
754 |
+
//$timeshow = date("H:i",$timestamp);
|
755 |
+
$image = "";
|
756 |
+
if($result->originates == 1){
|
757 |
+
$class = "wplc-admin-message";
|
758 |
+
if(function_exists("wplc_pro_get_admin_picture")){
|
759 |
+
$src = wplc_pro_get_admin_picture();
|
760 |
+
if($src){
|
761 |
+
$image = "<img src=".$src." width='20px' id='wp-live-chat-2-img'/>";
|
762 |
+
}
|
763 |
+
}
|
764 |
+
} else {
|
765 |
+
$class = "wplc-user-message";
|
766 |
+
|
767 |
+
if(isset($_COOKIE['wplc_email']) && $_COOKIE['wplc_email'] != ""){ $wplc_user_gravatar = md5(strtolower(trim($_COOKIE['wplc_email']))); } else { $wplc_user_gravatar = ""; }
|
768 |
+
|
769 |
+
if($wplc_user_gravatar != ""){
|
770 |
+
$image = "<img src='//www.gravatar.com/avatar/$wplc_user_gravatar?s=20' />";
|
771 |
+
} else {
|
772 |
+
$image = "";
|
773 |
+
}
|
774 |
+
}
|
775 |
+
|
776 |
+
if(function_exists('wplc_decrypt_msg')){
|
777 |
+
$msg = wplc_decrypt_msg($msg);
|
778 |
+
}
|
779 |
+
|
780 |
+
$msg = apply_filters("wplc_filter_message_control_out",$msg);
|
781 |
+
|
782 |
+
if($display_name){
|
783 |
+
$msg_hist .= "<span class='wplc-user-message'>".$image."<strong>$from</strong>: $msg</span><br /><div class='wplc-clear-float-message'></div>";
|
784 |
+
} else {
|
785 |
+
$msg_hist .= "<span class='wplc-user-message'>$msg</span><br /><div class='wplc-clear-float-message'></div>";
|
786 |
+
}
|
787 |
+
}
|
788 |
+
|
789 |
+
|
790 |
+
|
791 |
+
return $msg_hist;
|
792 |
+
} else {
|
793 |
+
return "security issue";
|
794 |
+
}
|
795 |
+
|
796 |
+
|
797 |
+
}
|
798 |
+
function wplc_mark_as_read_admin_chat_messages($mid) {
|
799 |
+
if (current_user_can("wplc_ma_agent") || current_user_can("manage_options")) {
|
800 |
+
|
801 |
+
|
802 |
+
global $wpdb;
|
803 |
+
global $wplc_tblname_msgs;
|
804 |
+
|
805 |
+
// $check = $wpdb->query(
|
806 |
+
// "
|
807 |
+
// UPDATE $wplc_tblname_msgs
|
808 |
+
// SET `status` = 1
|
809 |
+
// WHERE `id` = '$mid'
|
810 |
+
// LIMIT 1
|
811 |
+
//
|
812 |
+
// "
|
813 |
+
// );
|
814 |
+
|
815 |
+
$wpdb->update(
|
816 |
+
$wplc_tblname_msgs,
|
817 |
+
array(
|
818 |
+
'status' => 1
|
819 |
+
),
|
820 |
+
array('id' => $mid),
|
821 |
+
array('%d'),
|
822 |
+
array('%d')
|
823 |
+
);
|
824 |
+
|
825 |
+
} else { return "security issue"; }
|
826 |
+
|
827 |
+
|
828 |
+
}
|
829 |
+
|
830 |
+
|
831 |
+
|
832 |
+
|
833 |
+
|
834 |
+
function wplc_return_chat_session_variable($cid) {
|
835 |
+
global $wpdb;
|
836 |
+
global $wplc_tblname_chats;
|
837 |
+
$results = $wpdb->get_results(
|
838 |
+
"
|
839 |
+
SELECT *
|
840 |
+
FROM $wplc_tblname_chats
|
841 |
+
WHERE `id` = '$cid'
|
842 |
+
"
|
843 |
+
);
|
844 |
+
foreach ($results as $result) {
|
845 |
+
return $result->session;
|
846 |
+
}
|
847 |
+
}
|
848 |
+
|
849 |
+
|
850 |
+
|
851 |
+
function wplc_return_chat_status($cid) {
|
852 |
+
global $wpdb;
|
853 |
+
global $wplc_tblname_chats;
|
854 |
+
$results = $wpdb->get_results(
|
855 |
+
"
|
856 |
+
SELECT *
|
857 |
+
FROM $wplc_tblname_chats
|
858 |
+
WHERE `id` = '$cid'
|
859 |
+
"
|
860 |
+
);
|
861 |
+
foreach ($results as $result) {
|
862 |
+
return $result->status;
|
863 |
+
}
|
864 |
+
}
|
865 |
+
|
866 |
+
|
867 |
+
function wplc_return_status($status) {
|
868 |
+
if ($status == 1) {
|
869 |
+
return __("complete","wplivechat");
|
870 |
+
}
|
871 |
+
if ($status == 2) {
|
872 |
+
return __("pending", "wplivechat");
|
873 |
+
}
|
874 |
+
if ($status == 3) {
|
875 |
+
return __("active", "wplivechat");
|
876 |
+
}
|
877 |
+
if ($status == 4) {
|
878 |
+
return __("deleted", "wplivechat");
|
879 |
+
}
|
880 |
+
if ($status == 5) {
|
881 |
+
return __("browsing", "wplivechat");
|
882 |
+
}
|
883 |
+
if ($status == 6) {
|
884 |
+
return __("requesting chat", "wplivechat");
|
885 |
+
}
|
886 |
+
if($status == 8){
|
887 |
+
return __("Chat Ended - User still browsing", "wplivechat");
|
888 |
+
}
|
889 |
+
if($status == 9){
|
890 |
+
return __("User is browsing but doesn't want to chat", "wplivechat");
|
891 |
+
}
|
892 |
+
|
893 |
+
}
|
894 |
+
|
895 |
+
add_filter("wplc_filter_mail_body","wplc_filter_control_mail_body",10,2);
|
896 |
+
function wplc_filter_control_mail_body($header,$msg) {
|
897 |
+
$body = '
|
898 |
+
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
|
899 |
+
<html>
|
900 |
+
|
901 |
+
<body>
|
902 |
+
|
903 |
+
|
904 |
+
|
905 |
+
<table id="" border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #ec822c;">
|
906 |
+
<tbody>
|
907 |
+
<tr>
|
908 |
+
<td width="100%" style="padding: 30px 20px 100px 20px;">
|
909 |
+
<table align="center" cellpadding="0" cellspacing="0" class="" width="100%" style="border-collapse: separate; max-width:600px;">
|
910 |
+
<tbody>
|
911 |
+
<tr>
|
912 |
+
<td style="text-align: center; padding-bottom: 20px;">
|
913 |
+
|
914 |
+
<p>'.$header.'</p>
|
915 |
+
</td>
|
916 |
+
</tr>
|
917 |
+
</tbody>
|
918 |
+
</table>
|
919 |
+
|
920 |
+
<table id="" align="center" cellpadding="0" cellspacing="0" class="" width="100%" style="border-collapse: separate; max-width: 600px; font-family: Georgia, serif; font-size: 12px; color: rgb(51, 62, 72); border: 0px solid rgb(255, 255, 255); border-radius: 10px; background-color: rgb(255, 255, 255);">
|
921 |
+
<tbody>
|
922 |
+
<tr>
|
923 |
+
<td class="sortable-list ui-sortable" style="padding:20px; text-align:center;">
|
924 |
+
'.nl2br($msg).'
|
925 |
+
</td>
|
926 |
+
</tr>
|
927 |
+
</tbody>
|
928 |
+
</table>
|
929 |
+
|
930 |
+
<table align="center" cellpadding="0" cellspacing="0" class="" width="100%" style="border-collapse: separate; max-width:100%;">
|
931 |
+
<tbody>
|
932 |
+
<tr>
|
933 |
+
<td style="padding:20px;">
|
934 |
+
<table border="0" cellpadding="0" cellspacing="0" class="" width="100%">
|
935 |
+
<tbody>
|
936 |
+
<tr>
|
937 |
+
<td id="" align="center">
|
938 |
+
<p>'.get_option('siteurl').'</p>
|
939 |
+
</td>
|
940 |
+
</tr>
|
941 |
+
</tbody>
|
942 |
+
</table>
|
943 |
+
</td>
|
944 |
+
</tr>
|
945 |
+
</tbody>
|
946 |
+
</table>
|
947 |
+
</td>
|
948 |
+
</tr>
|
949 |
+
</tbody>
|
950 |
+
</table>
|
951 |
+
|
952 |
+
|
953 |
+
|
954 |
+
</div>
|
955 |
+
</body>
|
956 |
+
</html>
|
957 |
+
';
|
958 |
+
return $body;
|
959 |
+
}
|
960 |
+
|
961 |
+
|
962 |
+
/**
|
963 |
+
* Send an email to the admin based on the settings in the settings page
|
964 |
+
* @param string $reply_to email of the user
|
965 |
+
* @param string $reply_to_name name of the user
|
966 |
+
* @param string $subject subject
|
967 |
+
* @param string $msg message being emailed
|
968 |
+
* @return void
|
969 |
+
* @since 5.1.00
|
970 |
+
*/
|
971 |
+
function wplcmail($reply_to,$reply_to_name,$subject,$msg) {
|
972 |
+
|
973 |
+
$wplc_pro_settings = get_option("WPLC_PRO_SETTINGS");
|
974 |
+
|
975 |
+
if(isset($wplc_pro_settings['wplc_pro_chat_email_address'])){
|
976 |
+
$email_address = $wplc_pro_settings['wplc_pro_chat_email_address'];
|
977 |
+
} else {
|
978 |
+
$email_address = get_option('admin_email');
|
979 |
+
}
|
980 |
+
|
981 |
+
$email_address = explode(',', $email_address);
|
982 |
+
|
983 |
+
if(get_option("wplc_mail_type") == "wp_mail" || !get_option('wplc_mail_type')){
|
984 |
+
$headers[] = 'Content-type: text/html';
|
985 |
+
$headers[] = 'Reply-To: '.$reply_to_name.'<'.$reply_to.'>';
|
986 |
+
if($email_address){
|
987 |
+
foreach($email_address as $email){
|
988 |
+
/* Send offline message to each email address */
|
989 |
+
$overbody = apply_filters("wplc_filter_mail_body",$subject,$msg);
|
990 |
+
if (!wp_mail($email, $subject, $overbody, $headers)) {
|
991 |
+
$handle = fopen("wp_livechat_error_log.txt", 'a');
|
992 |
+
$error = date("Y-m-d H:i:s") . " WP-Mail Failed to send \n";
|
993 |
+
@fwrite($handle, $error);
|
994 |
+
}
|
995 |
+
}
|
996 |
+
}
|
997 |
+
// $to = $wplc_pro_settings['wplc_pro_chat_email_address'];
|
998 |
+
return;
|
999 |
+
} else {
|
1000 |
+
|
1001 |
+
require 'phpmailer/PHPMailerAutoload.php';
|
1002 |
+
$wplc_pro_settings = get_option("WPLC_PRO_SETTINGS");
|
1003 |
+
$host = get_option('wplc_mail_host');
|
1004 |
+
$port = get_option('wplc_mail_port');
|
1005 |
+
$username = get_option("wplc_mail_username");
|
1006 |
+
$password = get_option("wplc_mail_password");
|
1007 |
+
if($host && $port && $username && $password){
|
1008 |
+
//Create a new PHPMailer instance
|
1009 |
+
$mail = new PHPMailer();
|
1010 |
+
//Tell PHPMailer to use SMTP
|
1011 |
+
$mail->isSMTP();
|
1012 |
+
//Enable SMTP debugging
|
1013 |
+
// 0 = off (for production use)
|
1014 |
+
// 1 = client messages
|
1015 |
+
// 2 = client and server messages
|
1016 |
+
$mail->SMTPDebug = 0;
|
1017 |
+
//Ask for HTML-friendly debug output
|
1018 |
+
$mail->Debugoutput = 'html';
|
1019 |
+
//Set the hostname of the mail server
|
1020 |
+
$mail->Host = $host;
|
1021 |
+
//Set the SMTP port number - likely to be 25, 26, 465 or 587
|
1022 |
+
$mail->Port = $port;
|
1023 |
+
//Set the encryption system to use - ssl (deprecated) or tls
|
1024 |
+
if($port == "587"){
|
1025 |
+
$mail->SMTPSecure = 'tls';
|
1026 |
+
} else if($port == "465"){
|
1027 |
+
$mail->SMTPSecure = 'ssl';
|
1028 |
+
}
|
1029 |
+
//Whether to use SMTP authentication
|
1030 |
+
$mail->SMTPAuth = true;
|
1031 |
+
//Username to use for SMTP authentication
|
1032 |
+
$mail->Username = $username;
|
1033 |
+
//Password to use for SMTP authentication
|
1034 |
+
$mail->Password = $password;
|
1035 |
+
//Set who the message is to be sent from
|
1036 |
+
$mail->setFrom($reply_to, $reply_to_name);
|
1037 |
+
//Set who the message is to be sent to
|
1038 |
+
$mail->addAddress($wplc_pro_settings['wplc_pro_chat_email_address']);
|
1039 |
+
//Set the subject line
|
1040 |
+
$mail->Subject = $subject;
|
1041 |
+
//Read an HTML message body from an external file, convert referenced images to embedded,
|
1042 |
+
//convert HTML into a basic plain-text alternative body
|
1043 |
+
$body = apply_filters("wplc_filter_mail_body",$subject,$msg);
|
1044 |
+
$mail->msgHTML($body);
|
1045 |
+
//Replace the plain text body with one created manually
|
1046 |
+
$mail->AltBody = $msg;
|
1047 |
+
|
1048 |
+
|
1049 |
+
//send the message, check for errors
|
1050 |
+
if (!$mail->send()) {
|
1051 |
+
$handle = fopen("wp_livechat_error_log.txt", 'a');
|
1052 |
+
$error = date("Y-m-d H:i:s")." ".$mail->ErrorInfo." \n";
|
1053 |
+
@fwrite($handle, $error);
|
1054 |
+
}
|
1055 |
+
return;
|
1056 |
+
}
|
1057 |
+
}
|
1058 |
+
}
|
1059 |
+
/**
|
1060 |
+
* Sends offline messages to the admin (normally via ajax)
|
1061 |
+
* @param string $name Name of the user
|
1062 |
+
* @param string $email Email of the user
|
1063 |
+
* @param string $msg The message being sent to the admin
|
1064 |
+
* @param int $cid Chat ID
|
1065 |
+
* @return void
|
1066 |
+
*/
|
1067 |
+
function wplc_send_offline_msg($name,$email,$msg,$cid) {
|
1068 |
+
$subject = __("WP Live Chat Support - Offline Message from ", "wplivechat")."$name";
|
1069 |
+
$msg = __("Name", "wplivechat").": $name \n".
|
1070 |
+
__("Email", "wplivechat").": $email\n".
|
1071 |
+
__("Message", "wplivechat").": $msg\n\n".
|
1072 |
+
__("Via WP Live Chat Support", "wplivechat");
|
1073 |
+
wplcmail($email,$name, $subject, $msg);
|
1074 |
+
return;
|
1075 |
+
}
|
1076 |
+
|
1077 |
+
|
1078 |
+
/**
|
1079 |
+
* Saves offline messages to the database
|
1080 |
+
* @param string $name User name
|
1081 |
+
* @param string $email User email
|
1082 |
+
* @param string $message Message being saved
|
1083 |
+
* @return Void
|
1084 |
+
* @since 5.1.00
|
1085 |
+
*/
|
1086 |
+
function wplc_store_offline_message($name, $email, $message){
|
1087 |
+
global $wpdb;
|
1088 |
+
global $wplc_tblname_offline_msgs;
|
1089 |
+
|
1090 |
+
$wplc_settings = get_option('WPLC_SETTINGS');
|
1091 |
+
|
1092 |
+
if(isset($wplc_settings['wplc_record_ip_address']) && $wplc_settings['wplc_record_ip_address'] == 1){
|
1093 |
+
if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARTDED_FOR'] != '') {
|
1094 |
+
$ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
1095 |
+
} else {
|
1096 |
+
$ip_address = $_SERVER['REMOTE_ADDR'];
|
1097 |
+
}
|
1098 |
+
$offline_ip_address = $ip_address;
|
1099 |
+
} else {
|
1100 |
+
$offline_ip_address = "";
|
1101 |
+
}
|
1102 |
+
|
1103 |
+
|
1104 |
+
$ins_array = array(
|
1105 |
+
'timestamp' => current_time('mysql'),
|
1106 |
+
'name' => $name,
|
1107 |
+
'email' => $email,
|
1108 |
+
'message' => $message,
|
1109 |
+
'ip' => $offline_ip_address,
|
1110 |
+
'user_agent' => $_SERVER['HTTP_USER_AGENT']
|
1111 |
+
);
|
1112 |
+
|
1113 |
+
$rows_affected = $wpdb->insert( $wplc_tblname_offline_msgs, $ins_array );
|
1114 |
+
return;
|
1115 |
+
}
|
1116 |
+
|
1117 |
+
|
1118 |
+
function wplc_user_initiate_chat($name,$email,$cid = null,$session) {
|
1119 |
+
|
1120 |
+
global $wpdb;
|
1121 |
+
global $wplc_tblname_chats;
|
1122 |
+
do_action("wplc_hook_initiate_chat",array("cid" => $cid, "name" => $name, "email" => $email));
|
1123 |
+
|
1124 |
+
if (function_exists("wplc_list_chats_pro")) { /* check if functions-pro is around */
|
1125 |
+
wplc_pro_notify_via_email();
|
1126 |
+
}
|
1127 |
+
|
1128 |
+
$wplc_settings = get_option('WPLC_SETTINGS');
|
1129 |
+
|
1130 |
+
if(isset($wplc_settings['wplc_record_ip_address']) && $wplc_settings['wplc_record_ip_address'] == 1){
|
1131 |
+
if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARTDED_FOR'] != '') {
|
1132 |
+
$ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
1133 |
+
} else {
|
1134 |
+
$ip_address = $_SERVER['REMOTE_ADDR'];
|
1135 |
+
}
|
1136 |
+
$user_data = array(
|
1137 |
+
'ip' => $ip_address,
|
1138 |
+
'user_agent' => $_SERVER['HTTP_USER_AGENT']
|
1139 |
+
);
|
1140 |
+
$wplc_ce_ip = $ip_address;
|
1141 |
+
} else {
|
1142 |
+
$user_data = array(
|
1143 |
+
'ip' => "",
|
1144 |
+
'user_agent' => $_SERVER['HTTP_USER_AGENT']
|
1145 |
+
);
|
1146 |
+
$wplc_ce_ip = null;
|
1147 |
+
}
|
1148 |
+
|
1149 |
+
if(function_exists('wplc_ce_activate')){
|
1150 |
+
/* Log the chat for statistical purposes as well */
|
1151 |
+
if(function_exists('wplc_ce_record_initial_chat')){
|
1152 |
+
wplc_ce_record_initial_chat($name, $email, $cid, $wplc_ce_ip, $_SERVER['HTTP_REFERER']);
|
1153 |
+
}
|
1154 |
+
}
|
1155 |
+
|
1156 |
+
if ($cid != null) { /* change from a visitor to a chat */
|
1157 |
+
|
1158 |
+
|
1159 |
+
$wpdb->update(
|
1160 |
+
$wplc_tblname_chats,
|
1161 |
+
array(
|
1162 |
+
'status' => 2,
|
1163 |
+
'timestamp' => current_time('mysql'),
|
1164 |
+
'name' => $name,
|
1165 |
+
'email' => $email,
|
1166 |
+
'session' => $session,
|
1167 |
+
'ip' => maybe_serialize($user_data),
|
1168 |
+
'url' => $_SERVER['HTTP_REFERER'],
|
1169 |
+
'last_active_timestamp' => current_time('mysql')
|
1170 |
+
),
|
1171 |
+
array('id' => $cid),
|
1172 |
+
array(
|
1173 |
+
'%d',
|
1174 |
+
'%s',
|
1175 |
+
'%s',
|
1176 |
+
'%s',
|
1177 |
+
'%s',
|
1178 |
+
'%s',
|
1179 |
+
'%s',
|
1180 |
+
'%s'
|
1181 |
+
),
|
1182 |
+
array('%d')
|
1183 |
+
);
|
1184 |
+
|
1185 |
+
return $cid;
|
1186 |
+
}
|
1187 |
+
else {
|
1188 |
+
|
1189 |
+
|
1190 |
+
$wpdb->insert(
|
1191 |
+
$wplc_tblname_chats,
|
1192 |
+
array(
|
1193 |
+
'status' => '2',
|
1194 |
+
'timestamp' => current_time('mysql'),
|
1195 |
+
'name' => $name,
|
1196 |
+
'email' => $email,
|
1197 |
+
'session' => $session,
|
1198 |
+
'ip' => maybe_serialize($user_data),
|
1199 |
+
'url' => $_SERVER['HTTP_REFERER'],
|
1200 |
+
'last_active_timestamp' => current_time('mysql')
|
1201 |
+
),
|
1202 |
+
array(
|
1203 |
+
'%s',
|
1204 |
+
'%s',
|
1205 |
+
'%s',
|
1206 |
+
'%s',
|
1207 |
+
'%s',
|
1208 |
+
'%s',
|
1209 |
+
'%s',
|
1210 |
+
'%s'
|
1211 |
+
)
|
1212 |
+
);
|
1213 |
+
|
1214 |
+
|
1215 |
+
$lastid = $wpdb->insert_id;
|
1216 |
+
return $lastid;
|
1217 |
+
}
|
1218 |
+
|
1219 |
+
}
|
1220 |
+
|
1221 |
+
|
1222 |
+
|
1223 |
+
function wplc_get_msg() {
|
1224 |
+
return "<a href=\"javascript:void(0);\" class=\"wplc_second_chat_request button button-primary\" style='cursor:not-allowed' title=\"".__("Get Pro Add-on to accept more chats","wplivechat")."\" target=\"_BLANK\">".__("Accept Chat","wplivechat")."</a>";
|
1225 |
+
}
|
1226 |
+
function wplc_update_chat_statuses() {
|
1227 |
+
|
1228 |
+
global $wpdb;
|
1229 |
+
global $wplc_tblname_chats;
|
1230 |
+
$results = $wpdb->get_results(
|
1231 |
+
"
|
1232 |
+
SELECT *
|
1233 |
+
FROM $wplc_tblname_chats
|
1234 |
+
WHERE `status` = '2' OR `status` = '3' OR `status` = '5' or `status` = '8' or `status` = '9' or `status` = '10'
|
1235 |
+
"
|
1236 |
+
);
|
1237 |
+
foreach ($results as $result) {
|
1238 |
+
$id = $result->id;
|
1239 |
+
$timestamp = strtotime($result->last_active_timestamp);
|
1240 |
+
$datenow = current_time('timestamp');
|
1241 |
+
$difference = $datenow - $timestamp;
|
1242 |
+
|
1243 |
+
if (intval($result->status) == 2) {
|
1244 |
+
if ($difference >= 60) { // 1 minute max
|
1245 |
+
wplc_change_chat_status($id,0);
|
1246 |
+
}
|
1247 |
+
}
|
1248 |
+
else if (intval($result->status) == 3) {
|
1249 |
+
if ($difference >= 300) { // 30 seconds
|
1250 |
+
wplc_change_chat_status($id,1);
|
1251 |
+
}
|
1252 |
+
}
|
1253 |
+
else if (intval($result->status) == 5) {
|
1254 |
+
if ($difference >= 120) { // 2 minute timeout
|
1255 |
+
wplc_change_chat_status($id,7); // 7 - timedout
|
1256 |
+
}
|
1257 |
+
} else if(intval($result->status) == 8){ // chat is complete but user is still browsing
|
1258 |
+
if ($difference >= 45) { // 30 seconds
|
1259 |
+
wplc_change_chat_status($id,1); // 1 - chat is now complete
|
1260 |
+
}
|
1261 |
+
} else if(intval($result->status) == 9 || $result->status == 10){
|
1262 |
+
if ($difference >= 120) { // 120 seconds
|
1263 |
+
wplc_change_chat_status($id,7); // 7 - timedout
|
1264 |
+
}
|
1265 |
+
}
|
1266 |
+
}
|
1267 |
+
}
|
1268 |
+
function wplc_check_pending_chats(){
|
1269 |
+
global $wpdb;
|
1270 |
+
global $wplc_tblname_chats;
|
1271 |
+
$sql = "SELECT * FROM `$wplc_tblname_chats` WHERE `status` = 2";
|
1272 |
+
$wpdb->query($sql);
|
1273 |
+
if($wpdb->num_rows){
|
1274 |
+
return true;
|
1275 |
+
} else {
|
1276 |
+
return false;
|
1277 |
+
}
|
1278 |
+
}
|
1279 |
+
function wplc_get_active_and_pending_chats(){
|
1280 |
+
global $wpdb;
|
1281 |
+
global $wplc_tblname_chats;
|
1282 |
+
$sql = "SELECT * FROM `$wplc_tblname_chats` WHERE `status` = 2 OR `status` = 3 ORDER BY `status`";
|
1283 |
+
$results = $wpdb->get_results($sql);
|
1284 |
+
if($results){
|
1285 |
+
return $results;
|
1286 |
+
} else {
|
1287 |
+
return false;
|
1288 |
+
}
|
1289 |
+
}
|
1290 |
+
function wplc_convert_array_to_string($array){
|
1291 |
+
$string = "";
|
1292 |
+
if($array){
|
1293 |
+
foreach($array as $value){
|
1294 |
+
$string.= $value->id." ;";
|
1295 |
+
}
|
1296 |
+
} else {
|
1297 |
+
$string = false;
|
1298 |
+
}
|
1299 |
+
return $string;
|
1300 |
+
}
|
1301 |
+
|
1302 |
+
function wplc_return_browser_image($string,$size) {
|
1303 |
+
switch($string) {
|
1304 |
+
|
1305 |
+
case "Internet Explorer":
|
1306 |
+
return "web_".$size."x".$size.".png";
|
1307 |
+
break;
|
1308 |
+
case "Mozilla Firefox":
|
1309 |
+
return "firefox_".$size."x".$size.".png";
|
1310 |
+
break;
|
1311 |
+
case "Opera":
|
1312 |
+
return "opera_".$size."x".$size.".png";
|
1313 |
+
break;
|
1314 |
+
case "Google Chrome":
|
1315 |
+
return "chrome_".$size."x".$size.".png";
|
1316 |
+
break;
|
1317 |
+
case "Safari":
|
1318 |
+
return "safari_".$size."x".$size.".png";
|
1319 |
+
break;
|
1320 |
+
case "Other browser":
|
1321 |
+
return "web_".$size."x".$size.".png";
|
1322 |
+
break;
|
1323 |
+
default:
|
1324 |
+
return "web_".$size."x".$size.".png";
|
1325 |
+
break;
|
1326 |
+
}
|
1327 |
+
|
1328 |
+
|
1329 |
+
}
|
1330 |
+
function wplc_return_browser_string($user_agent) {
|
1331 |
+
if(strpos($user_agent, 'MSIE') !== FALSE)
|
1332 |
+
return 'Internet explorer';
|
1333 |
+
elseif(strpos($user_agent, 'Trident') !== FALSE) //For Supporting IE 11
|
1334 |
+
return 'Internet explorer';
|
1335 |
+
elseif(strpos($user_agent, 'Firefox') !== FALSE)
|
1336 |
+
return 'Mozilla Firefox';
|
1337 |
+
elseif(strpos($user_agent, 'Chrome') !== FALSE)
|
1338 |
+
return 'Google Chrome';
|
1339 |
+
elseif(strpos($user_agent, 'Opera Mini') !== FALSE)
|
1340 |
+
return "Opera";
|
1341 |
+
elseif(strpos($user_agent, 'Opera') !== FALSE)
|
1342 |
+
return "Opera";
|
1343 |
+
elseif(strpos($user_agent, 'Safari') !== FALSE)
|
1344 |
+
return "Safari";
|
1345 |
+
else
|
1346 |
+
return 'Other browser';
|
1347 |
+
}
|
1348 |
+
|
1349 |
+
function wplc_error_directory() {
|
1350 |
+
$upload_dir = wp_upload_dir();
|
1351 |
+
|
1352 |
+
if (is_multisite()) {
|
1353 |
+
if (!file_exists($upload_dir['basedir'].'/wp-live-chat-support')) {
|
1354 |
+
wp_mkdir_p($upload_dir['basedir'].'/wp-live-chat-support');
|
1355 |
+
$content = "Error log created";
|
1356 |
+
$fp = @fopen($upload_dir['basedir'].'/wp-live-chat-support'."/error_log.txt","w+");
|
1357 |
+
@fwrite($fp,$content);
|
1358 |
+
}
|
1359 |
+
} else {
|
1360 |
+
if (!file_exists(ABSPATH.'wp-content/uploads/wp-live-chat-support')) {
|
1361 |
+
wp_mkdir_p(ABSPATH.'wp-content/uploads/wp-live-chat-support');
|
1362 |
+
$content = "Error log created";
|
1363 |
+
$fp = @fopen(ABSPATH.'wp-content/uploads/wp-live-chat-support'."/error_log.txt","w+");
|
1364 |
+
@fwrite($fp,$content);
|
1365 |
+
}
|
1366 |
+
|
1367 |
+
}
|
1368 |
+
return true;
|
1369 |
+
|
1370 |
+
}
|
1371 |
+
|
1372 |
+
function wplc_error_log($error) {
|
1373 |
+
|
1374 |
+
$content = "\r\n[".date("Y-m-d")."] [".date("H:i:s")."]".$error;
|
1375 |
+
$fp = @fopen(ABSPATH.'/wp-content/uploads/wp-live-chat-support'."/error_log.txt","a+");
|
1376 |
+
@fwrite($fp,$content);
|
1377 |
+
@fclose($fp);
|
1378 |
+
|
1379 |
+
|
1380 |
+
}
|
1381 |
+
function Memory_Usage($decimals = 2)
|
1382 |
+
{
|
1383 |
+
$result = 0;
|
1384 |
+
|
1385 |
+
if (function_exists('memory_get_usage'))
|
1386 |
+
{
|
1387 |
+
$result = memory_get_usage() / 1024;
|
1388 |
+
}
|
1389 |
+
|
1390 |
+
else
|
1391 |
+
{
|
1392 |
+
if (function_exists('exec'))
|
1393 |
+
{
|
1394 |
+
$output = array();
|
1395 |
+
|
1396 |
+
if (substr(strtoupper(PHP_OS), 0, 3) == 'WIN')
|
1397 |
+
{
|
1398 |
+
exec('tasklist /FI "PID eq ' . getmypid() . '" /FO LIST', $output);
|
1399 |
+
|
1400 |
+
$result = preg_replace('/[\D]/', '', $output[5]);
|
1401 |
+
}
|
1402 |
+
|
1403 |
+
else
|
1404 |
+
{
|
1405 |
+
exec('ps -eo%mem,rss,pid | grep ' . getmypid(), $output);
|
1406 |
+
|
1407 |
+
$output = explode(' ', $output[0]);
|
1408 |
+
|
1409 |
+
$result = $output[1];
|
1410 |
+
}
|
1411 |
+
}
|
1412 |
+
}
|
1413 |
+
|
1414 |
+
return number_format(intval($result) / 1024, $decimals, '.', '')." mb";
|
1415 |
+
}
|
1416 |
+
function wplc_get_memory_usage() {
|
1417 |
+
$size = memory_get_usage(true);
|
1418 |
+
$unit=array('b','kb','mb','gb','tb','pb');
|
1419 |
+
return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i];
|
1420 |
+
|
1421 |
+
}
|
1422 |
+
function wplc_record_mem() {
|
1423 |
+
$data = array(
|
1424 |
+
'date' => current_time('mysql'),
|
1425 |
+
'php_mem' => wplc_get_memory_usage()
|
1426 |
+
);
|
1427 |
+
$fp = @fopen(ABSPATH.'/wp-content/uploads/wp-live-chat-support'."/mem_usag.csv","a+");
|
1428 |
+
fputcsv($fp, $data);
|
1429 |
+
fclose($fp);
|
1430 |
+
}
|
1431 |
+
|
1432 |
+
function wplc_admin_display_missed_chats() {
|
1433 |
+
|
1434 |
+
global $wpdb;
|
1435 |
+
global $wplc_tblname_chats;
|
1436 |
+
|
1437 |
+
echo "
|
1438 |
+
<table class=\"wp-list-table widefat fixed \" cellspacing=\"0\">
|
1439 |
+
<thead>
|
1440 |
+
<tr>
|
1441 |
+
<th class='manage-column column-id'><span>" . __("Date", "wplivechat") . "</span></th>
|
1442 |
+
<th scope='col' id='wplc_name_colum' class='manage-column column-id'><span>" . __("Name", "wplivechat") . "</span></th>
|
1443 |
+
<th scope='col' id='wplc_email_colum' class='manage-column column-id'>" . __("Email", "wplivechat") . "</th>
|
1444 |
+
<th scope='col' id='wplc_url_colum' class='manage-column column-id'>" . __("URL", "wplivechat") . "</th>
|
1445 |
+
</tr>
|
1446 |
+
</thead>
|
1447 |
+
<tbody id=\"the-list\" class='list:wp_list_text_link'>";
|
1448 |
+
|
1449 |
+
if (function_exists("wplc_register_pro_version")) {
|
1450 |
+
$sql = "
|
1451 |
+
SELECT *
|
1452 |
+
FROM $wplc_tblname_chats
|
1453 |
+
WHERE (`status` = 7
|
1454 |
+
OR `agent_id` = 0)
|
1455 |
+
AND `email` != 'no email set'
|
1456 |
+
ORDER BY `timestamp` DESC
|
1457 |
+
";
|
1458 |
+
} else {
|
1459 |
+
$sql = "
|
1460 |
+
SELECT *
|
1461 |
+
FROM $wplc_tblname_chats
|
1462 |
+
WHERE `status` = 7
|
1463 |
+
AND `email` != 'no email set'
|
1464 |
+
ORDER BY `timestamp` DESC
|
1465 |
+
";
|
1466 |
+
}
|
1467 |
+
|
1468 |
+
$results = $wpdb->get_results($sql);
|
1469 |
+
|
1470 |
+
if (!$results) {
|
1471 |
+
echo "<tr><td></td><td>" . __("You have not missed any chat requests.", "wplivechat") . "</td></tr>";
|
1472 |
+
} else {
|
1473 |
+
foreach ($results as $result) {
|
1474 |
+
echo "<tr id=\"record_" . $result->id . "\">";
|
1475 |
+
echo "<td class='chat_id column-chat_d'>" . $result->timestamp . "</td>";
|
1476 |
+
echo "<td class='chat_name column_chat_name' id='chat_name_" . $result->id . "'><img src=\"//www.gravatar.com/avatar/" . md5($result->email) . "?s=30\" /> " . $result->name . "</td>";
|
1477 |
+
echo "<td class='chat_email column_chat_email' id='chat_email_" . $result->id . "'><a href='mailto:" . $result->email . "' title='Email " . ".$result->email." . "'>" . $result->email . "</a></td>";
|
1478 |
+
echo "<td class='chat_name column_chat_url' id='chat_url_" . $result->id . "'>" . $result->url . "</td>";
|
1479 |
+
echo "</tr>";
|
1480 |
+
}
|
1481 |
+
}
|
1482 |
+
|
1483 |
+
echo "
|
1484 |
+
</tbody>
|
1485 |
+
</table>";
|
1486 |
+
}
|
1487 |
+
|
1488 |
+
|
1489 |
+
/**
|
1490 |
+
* Compares the users IP address to the list in the banned IPs in the settings page
|
1491 |
+
* @return BOOL
|
1492 |
+
*/
|
1493 |
+
function wplc_is_user_banned_basic(){
|
1494 |
+
$banned_ip = get_option('WPLC_BANNED_IP_ADDRESSES');
|
1495 |
+
if($banned_ip){
|
1496 |
+
$banned_ip = maybe_unserialize($banned_ip);
|
1497 |
+
$banned = 0;
|
1498 |
+
foreach($banned_ip as $ip){
|
1499 |
+
|
1500 |
+
if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARTDED_FOR'] != '') {
|
1501 |
+
$ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
1502 |
+
} else {
|
1503 |
+
$ip_address = $_SERVER['REMOTE_ADDR'];
|
1504 |
+
}
|
1505 |
+
|
1506 |
+
if(isset($ip_address)){
|
1507 |
+
if($ip == $ip_address){
|
1508 |
+
$banned++;
|
1509 |
+
}
|
1510 |
+
} else {
|
1511 |
+
$banned = 0;
|
1512 |
+
}
|
1513 |
+
}
|
1514 |
+
} else {
|
1515 |
+
$banned = 0;
|
1516 |
+
}
|
1517 |
+
return $banned;
|
1518 |
+
}
|
1519 |
+
|
1520 |
+
|
1521 |
+
|
1522 |
+
|
1523 |
+
function wplc_return_animations_basic(){
|
1524 |
+
|
1525 |
+
$wplc_settings = get_option("WPLC_SETTINGS");
|
1526 |
+
|
1527 |
+
if ($wplc_settings["wplc_settings_align"] == 1) {
|
1528 |
+
$original_pos = "bottom_left";
|
1529 |
+
//$wplc_box_align = "left:100px; bottom:0px;";
|
1530 |
+
$wplc_box_align = "bottom:0px;";
|
1531 |
+
} else if ($wplc_settings["wplc_settings_align"] == 2) {
|
1532 |
+
$original_pos = "bottom_right";
|
1533 |
+
//$wplc_box_align = "right:100px; bottom:0px;";
|
1534 |
+
$wplc_box_align = "bottom:0px;";
|
1535 |
+
} else if ($wplc_settings["wplc_settings_align"] == 3) {
|
1536 |
+
$original_pos = "left";
|
1537 |
+
// $wplc_box_align = "left:0; bottom:100px;";
|
1538 |
+
$wplc_box_align = " bottom:100px;";
|
1539 |
+
$wplc_class = "wplc_left";
|
1540 |
+
} else if ($wplc_settings["wplc_settings_align"] == 4) {
|
1541 |
+
$original_pos = "right";
|
1542 |
+
// $wplc_box_align = "right:0; bottom:100px;";
|
1543 |
+
$wplc_box_align = "bottom:100px;";
|
1544 |
+
$wplc_class = "wplc_right";
|
1545 |
+
}
|
1546 |
+
|
1547 |
+
$animation_data = array();
|
1548 |
+
|
1549 |
+
if(isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-1'){
|
1550 |
+
|
1551 |
+
if($original_pos == 'bottom_right'){
|
1552 |
+
$wplc_starting_point = 'margin-bottom: -350px; right: 100px;';
|
1553 |
+
$wplc_animation = 'animation-1';
|
1554 |
+
} else if ($original_pos == 'bottom_left'){
|
1555 |
+
$wplc_starting_point = 'margin-bottom: -350px; left: 100px;';
|
1556 |
+
$wplc_animation = 'animation-1';
|
1557 |
+
} else if ($original_pos == 'left'){
|
1558 |
+
$wplc_starting_point = 'margin-bottom: -350px; left: 0px;';
|
1559 |
+
$wplc_box_align = "left:0; bottom:100px;";
|
1560 |
+
$wplc_animation = 'animation-1';
|
1561 |
+
} else if ($original_pos == 'right'){
|
1562 |
+
$wplc_starting_point = 'margin-bottom: -350px; right: 0px;';
|
1563 |
+
$wplc_animation = 'animation-1';
|
1564 |
+
$wplc_box_align = "right:0; bottom:100px;";
|
1565 |
+
}
|
1566 |
+
|
1567 |
+
$animation_data['animation'] = $wplc_animation;
|
1568 |
+
$animation_data['starting_point'] = $wplc_starting_point;
|
1569 |
+
$animation_data['box_align'] = $wplc_box_align;
|
1570 |
+
|
1571 |
+
} else if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-2'){
|
1572 |
+
|
1573 |
+
if($original_pos == 'bottom_right'){
|
1574 |
+
$wplc_starting_point = 'margin-bottom: 0px; right: -300px;';
|
1575 |
+
$wplc_animation = 'animation-2-br';
|
1576 |
+
} else if ($original_pos == 'bottom_left'){
|
1577 |
+
$wplc_starting_point = 'margin-bottom: 0px; left: -300px;';
|
1578 |
+
$wplc_animation = 'animation-2-bl';
|
1579 |
+
} else if ($original_pos == 'left'){
|
1580 |
+
$wplc_starting_point = 'margin-bottom: 0px; left: -999px;';
|
1581 |
+
$wplc_animation = 'animation-2-l';
|
1582 |
+
} else if ($original_pos == 'right'){
|
1583 |
+
$wplc_starting_point = 'margin-bottom: 0px; right: -999px;';
|
1584 |
+
$wplc_animation = 'animation-2-r';
|
1585 |
+
}
|
1586 |
+
|
1587 |
+
$animation_data['animation'] = $wplc_animation;
|
1588 |
+
$animation_data['starting_point'] = $wplc_starting_point;
|
1589 |
+
$animation_data['box_align'] = $wplc_box_align;
|
1590 |
+
|
1591 |
+
} else if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-3'){
|
1592 |
+
|
1593 |
+
$wplc_animation = 'animation-3';
|
1594 |
+
|
1595 |
+
if($original_pos == 'bottom_right'){
|
1596 |
+
$wplc_starting_point = 'margin-bottom: 0; right: 100px; display: none;';
|
1597 |
+
} else if ($original_pos == 'bottom_left'){
|
1598 |
+
$wplc_starting_point = 'margin-bottom: 0px; left: 100px; display: none;';
|
1599 |
+
} else if ($original_pos == 'left'){
|
1600 |
+
$wplc_starting_point = 'margin-bottom: 100px; left: 0px; display: none;';
|
1601 |
+
} else if ($original_pos == 'right'){
|
1602 |
+
$wplc_starting_point = 'margin-bottom: 100px; right: 0px; display: none;';
|
1603 |
+
}
|
1604 |
+
|
1605 |
+
$animation_data['animation'] = $wplc_animation;
|
1606 |
+
$animation_data['starting_point'] = $wplc_starting_point;
|
1607 |
+
$animation_data['box_align'] = $wplc_box_align;
|
1608 |
+
|
1609 |
+
} else if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-4'){
|
1610 |
+
// Dont use an animation
|
1611 |
+
|
1612 |
+
$wplc_animation = "animation-4";
|
1613 |
+
|
1614 |
+
if($original_pos == 'bottom_right'){
|
1615 |
+
$wplc_starting_point = 'margin-bottom: 0; right: 100px; display: none;';
|
1616 |
+
} else if ($original_pos == 'bottom_left'){
|
1617 |
+
$wplc_starting_point = 'margin-bottom: 0px; left: 100px; display: none;';
|
1618 |
+
} else if ($original_pos == 'left'){
|
1619 |
+
$wplc_starting_point = 'margin-bottom: 100px; left: 0px; display: none;';
|
1620 |
+
} else if ($original_pos == 'right'){
|
1621 |
+
$wplc_starting_point = 'margin-bottom: 100px; right: 0px; display: none;';
|
1622 |
+
}
|
1623 |
+
|
1624 |
+
$animation_data['animation'] = $wplc_animation;
|
1625 |
+
$animation_data['starting_point'] = $wplc_starting_point;
|
1626 |
+
$animation_data['box_align'] = $wplc_box_align;
|
1627 |
+
|
1628 |
+
} else {
|
1629 |
+
|
1630 |
+
if($original_pos == 'bottom_right'){
|
1631 |
+
$wplc_starting_point = 'margin-bottom: 0; right: 100px; display: none;';
|
1632 |
+
} else if ($original_pos == 'bottom_left'){
|
1633 |
+
$wplc_starting_point = 'margin-bottom: 0px; left: 100px; display: none;';
|
1634 |
+
} else if ($original_pos == 'left'){
|
1635 |
+
$wplc_starting_point = 'margin-bottom: 100px; left: 0px; display: none;';
|
1636 |
+
} else if ($original_pos == 'right'){
|
1637 |
+
$wplc_starting_point = 'margin-bottom: 100px; right: 0px; display: none;';
|
1638 |
+
}
|
1639 |
+
|
1640 |
+
$wplc_animation = 'none';
|
1641 |
+
|
1642 |
+
$animation_data['animation'] = $wplc_animation;
|
1643 |
+
$animation_data['starting_point'] = $wplc_starting_point;
|
1644 |
+
$animation_data['box_align'] = $wplc_box_align;
|
1645 |
+
}
|
1646 |
+
|
1647 |
+
return $animation_data;
|
1648 |
+
}
|
includes/deprecated.php
ADDED
@@ -0,0 +1,432 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/* will soon become deprecated */
|
3 |
+
function wplc_output_box_ajax() {
|
4 |
+
|
5 |
+
if(function_exists('wplc_display_chat_contents')){
|
6 |
+
$display_contents = wplc_display_chat_contents();
|
7 |
+
} else {
|
8 |
+
$display_contents = 1;
|
9 |
+
}
|
10 |
+
|
11 |
+
if(function_exists('wplc_is_user_banned')){
|
12 |
+
$user_banned = wplc_is_user_banned();
|
13 |
+
} else if (function_exists('wplc_is_user_banned')){
|
14 |
+
$user_banned = wplc_is_user_banned_basic();
|
15 |
+
} else {
|
16 |
+
$user_banned = 0;
|
17 |
+
}
|
18 |
+
if($display_contents && $user_banned == 0){
|
19 |
+
|
20 |
+
|
21 |
+
/* do not show if pro is outdated */
|
22 |
+
global $wplc_pro_version;
|
23 |
+
if (isset($wplc_pro_version)) {
|
24 |
+
$float_version = floatval($wplc_pro_version);
|
25 |
+
if ($float_version < 4 || $wplc_pro_version == "4.1.0" || $wplc_pro_version == "4.1.1") {
|
26 |
+
return "";
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
if (function_exists("wplc_register_pro_version")) {
|
31 |
+
$wplc_settings = get_option("WPLC_SETTINGS");
|
32 |
+
if (!class_exists('Mobile_Detect')) {
|
33 |
+
require_once (plugin_dir_path(__FILE__) . 'Mobile_Detect.php');
|
34 |
+
}
|
35 |
+
$wplc_detect_device = new Mobile_Detect;
|
36 |
+
$wplc_is_mobile = $wplc_detect_device->isMobile();
|
37 |
+
if ($wplc_is_mobile && !isset($wplc_settings['wplc_enabled_on_mobile']) && $wplc_settings['wplc_enabled_on_mobile'] != 1) {
|
38 |
+
return "";
|
39 |
+
}
|
40 |
+
if (function_exists('wplc_hide_chat_when_offline')) {
|
41 |
+
$wplc_hide_chat = wplc_hide_chat_when_offline();
|
42 |
+
if (!$wplc_hide_chat) {
|
43 |
+
$draw_box = true;
|
44 |
+
}
|
45 |
+
} else {
|
46 |
+
$draw_box = true;
|
47 |
+
}
|
48 |
+
} else {
|
49 |
+
$draw_box = true;
|
50 |
+
}
|
51 |
+
}
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
if ($draw_box) {
|
56 |
+
$wplc_class = "";
|
57 |
+
$ret_msg = "";
|
58 |
+
$wplc_settings = get_option("WPLC_SETTINGS");
|
59 |
+
|
60 |
+
if ($wplc_settings["wplc_settings_enabled"] == 2) {
|
61 |
+
return;
|
62 |
+
}
|
63 |
+
|
64 |
+
if ($wplc_settings["wplc_settings_align"] == 1) {
|
65 |
+
$original_pos = "bottom_left";
|
66 |
+
//$wplc_box_align = "left:100px; bottom:0px;";
|
67 |
+
$wplc_box_align = "bottom:0px;";
|
68 |
+
} else if ($wplc_settings["wplc_settings_align"] == 2) {
|
69 |
+
$original_pos = "bottom_right";
|
70 |
+
//$wplc_box_align = "right:100px; bottom:0px;";
|
71 |
+
$wplc_box_align = "bottom:0px;";
|
72 |
+
} else if ($wplc_settings["wplc_settings_align"] == 3) {
|
73 |
+
$original_pos = "left";
|
74 |
+
// $wplc_box_align = "left:0; bottom:100px;";
|
75 |
+
$wplc_box_align = " bottom:100px;";
|
76 |
+
$wplc_class = "wplc_left";
|
77 |
+
} else if ($wplc_settings["wplc_settings_align"] == 4) {
|
78 |
+
$original_pos = "right";
|
79 |
+
// $wplc_box_align = "right:0; bottom:100px;";
|
80 |
+
$wplc_box_align = "bottom:100px;";
|
81 |
+
$wplc_class = "wplc_right";
|
82 |
+
}
|
83 |
+
|
84 |
+
if ($wplc_settings["wplc_settings_fill"]) {
|
85 |
+
$wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"];
|
86 |
+
} else {
|
87 |
+
$wplc_settings_fill = "#ed832f";
|
88 |
+
}
|
89 |
+
if ($wplc_settings["wplc_settings_font"]) {
|
90 |
+
$wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"];
|
91 |
+
} else {
|
92 |
+
$wplc_settings_font = "#FFFFFF";
|
93 |
+
}
|
94 |
+
|
95 |
+
$wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
|
96 |
+
if (!function_exists("wplc_register_pro_version") && $wplc_is_admin_logged_in != 1) {
|
97 |
+
$ret_msg = "";
|
98 |
+
}
|
99 |
+
|
100 |
+
if(function_exists('wplc_pro_activate')){
|
101 |
+
if(function_exists('wplc_return_animations')){
|
102 |
+
|
103 |
+
$animations = wplc_return_animations();
|
104 |
+
|
105 |
+
isset($animations['animation']) ? $wplc_animation = $animations['animation'] : $wplc_animation = 'animation-4';
|
106 |
+
isset($animations['starting_point']) ? $wplc_starting_point = $animations['starting_point'] : $wplc_starting_point = 'display: none;';
|
107 |
+
isset($animations['box_align']) ? $wplc_box_align = $animations['box_align'] : $wplc_box_align = '';
|
108 |
+
|
109 |
+
} else {
|
110 |
+
|
111 |
+
}
|
112 |
+
} else {
|
113 |
+
|
114 |
+
$wplc_starting_point = '';
|
115 |
+
$wplc_animation = '';
|
116 |
+
|
117 |
+
if ($wplc_settings["wplc_settings_align"] == 1) {
|
118 |
+
$original_pos = "bottom_left";
|
119 |
+
$wplc_box_align = "left:100px; bottom:0px;";
|
120 |
+
} else if ($wplc_settings["wplc_settings_align"] == 2) {
|
121 |
+
$original_pos = "bottom_right";
|
122 |
+
$wplc_box_align = "right:100px; bottom:0px;";
|
123 |
+
} else if ($wplc_settings["wplc_settings_align"] == 3) {
|
124 |
+
$original_pos = "left";
|
125 |
+
$wplc_box_align = "left:0; bottom:100px;";
|
126 |
+
$wplc_class = "wplc_left";
|
127 |
+
} else if ($wplc_settings["wplc_settings_align"] == 4) {
|
128 |
+
$original_pos = "right";
|
129 |
+
$wplc_box_align = "right:0; bottom:100px;";
|
130 |
+
$wplc_class = "wplc_right";
|
131 |
+
}
|
132 |
+
|
133 |
+
}
|
134 |
+
|
135 |
+
if (isset($wplc_settings['wplc_auto_pop_up'])) { $wplc_auto_popup = $wplc_settings['wplc_auto_pop_up']; } else { $wplc_auto_popup = "" ;}
|
136 |
+
$ret_msg .= "<div id=\"wp-live-chat\" wplc_animation=\"".$wplc_animation."\" style=\"".$wplc_starting_point." ".$wplc_box_align.";\" class=\"".$wplc_class." wplc_close\" original_pos=\"".$original_pos."\" wplc-auto-pop-up=\"". $wplc_auto_popup."\" > ";
|
137 |
+
|
138 |
+
if (function_exists("wplc_pro_output_box_ajax")) {
|
139 |
+
$ret_msg .= wplc_pro_output_box_ajax();
|
140 |
+
} else {
|
141 |
+
|
142 |
+
$ret_msg .= "<div class=\"wp-live-chat-wraper\">";
|
143 |
+
$ret_msg .= "<div id=\"wp-live-chat-header\" style=\"background-color: ".$wplc_settings_fill." !important; color: ".$wplc_settings_font." !important; \">";
|
144 |
+
$ret_msg .= "<i id=\"wp-live-chat-minimize\" class=\"fa fa-minus\" style=\"display:none;\" ></i>";
|
145 |
+
|
146 |
+
$ret_msg .= "<i id=\"wp-live-chat-close\" class=\"fa fa-times\" style=\"display:none;\" ></i>";
|
147 |
+
|
148 |
+
$ret_msg .= " <div id=\"wp-live-chat-1\" >";
|
149 |
+
$ret_msg .= "<div style=\"display:block; \">";
|
150 |
+
$ret_msg .= "<strong>".__("Questions?", "wplivechat")."</strong> ".__("Chat with us", "wplivechat");
|
151 |
+
$ret_msg .= "</div>";
|
152 |
+
$ret_msg .= "</div>";
|
153 |
+
$ret_msg .= "</div>";
|
154 |
+
|
155 |
+
$ret_msg .= "<div id=\"wp-live-chat-2\" style=\"display:none;\">";
|
156 |
+
$ret_msg .= "<div id=\"wp-live-chat-2-info\">";
|
157 |
+
$ret_msg .= "<strong>".__('Start Live Chat', 'wplivechat')."</strong>";
|
158 |
+
$ret_msg .= "</div>";
|
159 |
+
|
160 |
+
if (isset($wplc_settings['wplc_loggedin_user_info']) && $wplc_settings['wplc_loggedin_user_info'] == 1) {
|
161 |
+
$wplc_use_loggedin_user_details = 1;
|
162 |
+
} else {
|
163 |
+
$wplc_use_loggedin_user_details = 0;
|
164 |
+
}
|
165 |
+
|
166 |
+
$wplc_loggedin_user_name = "";
|
167 |
+
$wplc_loggedin_user_email = "";
|
168 |
+
|
169 |
+
if ($wplc_use_loggedin_user_details == 1) {
|
170 |
+
global $current_user;
|
171 |
+
|
172 |
+
if ($current_user->data != null) {
|
173 |
+
//Logged in. Get name and email
|
174 |
+
$wplc_loggedin_user_name = $current_user->user_nicename;
|
175 |
+
$wplc_loggedin_user_email = $current_user->user_email;
|
176 |
+
}
|
177 |
+
} else {
|
178 |
+
$wplc_loggedin_user_name = '';
|
179 |
+
$wplc_loggedin_user_email = '';
|
180 |
+
}
|
181 |
+
|
182 |
+
if (isset($wplc_settings['wplc_require_user_info']) && $wplc_settings['wplc_require_user_info'] == 1) {
|
183 |
+
$wplc_ask_user_details = 1;
|
184 |
+
} else {
|
185 |
+
$wplc_ask_user_details = 0;
|
186 |
+
}
|
187 |
+
|
188 |
+
if ($wplc_ask_user_details == 1) {
|
189 |
+
//Ask the user to enter name and email
|
190 |
+
|
191 |
+
$ret_msg .= "<input type=\"text\" name=\"wplc_name\" id=\"wplc_name\" value='".$wplc_loggedin_user_name."' placeholder=\"".__("Name", "wplivechat")."\" />";
|
192 |
+
$ret_msg .= "<input type=\"text\" name=\"wplc_email\" id=\"wplc_email\" wplc_hide=\"0\" value=\"".$wplc_loggedin_user_email."\" placeholder=\"".__("Email", "wplivechat")."\" />";
|
193 |
+
} else {
|
194 |
+
//Dont ask the user
|
195 |
+
$ret_msg .= "<div style=\"padding: 7px; text-align: center;\">";
|
196 |
+
if (isset($wplc_settings['wplc_user_alternative_text'])) {
|
197 |
+
$ret_msg .= stripslashes($wplc_settings['wplc_user_alternative_text']);
|
198 |
+
}
|
199 |
+
$ret_msg .= '</div>';
|
200 |
+
|
201 |
+
$wplc_random_user_number = rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9);
|
202 |
+
//$wplc_loggedin_user_email = $wplc_random_user_number."@".$wplc_random_user_number.".com";
|
203 |
+
if ($wplc_loggedin_user_name != '') { $wplc_lin = $wplc_loggedin_user_name; } else { $wplc_lin = 'user' . $wplc_random_user_number; }
|
204 |
+
if ($wplc_loggedin_user_email != '' && $wplc_loggedin_user_email != null) { $wplc_lie = $wplc_loggedin_user_email; } else { $wplc_lie = $wplc_random_user_number . '@' . $wplc_random_user_number . '.com'; }
|
205 |
+
$ret_msg .= "<input type=\"hidden\" name=\"wplc_name\" id=\"wplc_name\" value=\"".$wplc_lin."\" />";
|
206 |
+
$ret_msg .= "<input type=\"hidden\" name=\"wplc_email\" id=\"wplc_email\" wplc_hide=\"1\" value=\"".$wplc_lie."\" />";
|
207 |
+
}
|
208 |
+
|
209 |
+
$ret_msg .= "<input id=\"wplc_start_chat_btn\" type=\"button\" value=\"".__("Start Chat", "wplivechat")."\" style=\"background-color: ".$wplc_settings_fill." !important; color: ".$wplc_settings_font." !important;\"/>";
|
210 |
+
$ret_msg .= "</div>";
|
211 |
+
$ret_msg .= "<div id=\"wp-live-chat-3\" style=\"display:none;\">";
|
212 |
+
$ret_msg .= "<p>".__("Connecting you to a sales person. Please be patient.", "wplivechat")."</p>";
|
213 |
+
$ret_msg .= "</div>";
|
214 |
+
$ret_msg .= "<div id=\"wp-live-chat-react\" style=\"display:none;\">";
|
215 |
+
$ret_msg .= "<p>".__("Reactivating your previous chat...", "wplivechat")."</p>";
|
216 |
+
$ret_msg .= "</div>";
|
217 |
+
$ret_msg .= "<div id=\"wp-live-chat-4\" style=\"display:none;\">";
|
218 |
+
$ret_msg .= "<div id=\"wplc_sound_update\" style=\"height:0; width:0; display:none; border:0;\"></div>";
|
219 |
+
$ret_msg .= "<div id=\"wplc_chatbox\"></div>";
|
220 |
+
$ret_msg .= "<p style=\"text-align:center; font-size:11px;\">".__("Press ENTER to send your message", "wplivechat")."</p>";
|
221 |
+
$ret_msg .= "<p>";
|
222 |
+
$ret_msg .= "<input type=\"text\" name=\"wplc_chatmsg\" id=\"wplc_chatmsg\" value=\"\" />";
|
223 |
+
$ret_msg .= "<input type=\"hidden\" name=\"wplc_cid\" id=\"wplc_cid\" value=\"\" />";
|
224 |
+
$ret_msg .= "<input id=\"wplc_send_msg\" type=\"button\" value=\"".__("Send", "wplivechat")."\" style=\"display:none;\" />";
|
225 |
+
$ret_msg .= "</p>";
|
226 |
+
$ret_msg .= "</div>";
|
227 |
+
$ret_msg .= "</div>";
|
228 |
+
}
|
229 |
+
$ret_msg .= "</div>";
|
230 |
+
return json_encode($ret_msg);
|
231 |
+
} else {
|
232 |
+
return "";
|
233 |
+
}
|
234 |
+
|
235 |
+
|
236 |
+
}
|
237 |
+
|
238 |
+
|
239 |
+
|
240 |
+
function wplc_draw_user_box() {
|
241 |
+
|
242 |
+
|
243 |
+
if(function_exists('wplc_display_chat_contents')){
|
244 |
+
if(wplc_display_chat_contents() >= 1){
|
245 |
+
wplc_output_box();
|
246 |
+
}
|
247 |
+
} else {
|
248 |
+
wplc_output_box();
|
249 |
+
}
|
250 |
+
|
251 |
+
}
|
252 |
+
|
253 |
+
|
254 |
+
function wplc_output_box() {
|
255 |
+
$wplc_class = "";
|
256 |
+
$wplc_settings = get_option("WPLC_SETTINGS");
|
257 |
+
|
258 |
+
if ($wplc_settings["wplc_settings_enabled"] == 2) {
|
259 |
+
return;
|
260 |
+
}
|
261 |
+
|
262 |
+
if ($wplc_settings["wplc_settings_align"] == 1) {
|
263 |
+
$original_pos = "bottom_left";
|
264 |
+
//$wplc_box_align = "left:100px; bottom:0px;";
|
265 |
+
$wplc_box_align = "bottom:0px;";
|
266 |
+
} else if ($wplc_settings["wplc_settings_align"] == 2) {
|
267 |
+
$original_pos = "bottom_right";
|
268 |
+
//$wplc_box_align = "right:100px; bottom:0px;";
|
269 |
+
$wplc_box_align = "bottom:0px;";
|
270 |
+
} else if ($wplc_settings["wplc_settings_align"] == 3) {
|
271 |
+
$original_pos = "left";
|
272 |
+
// $wplc_box_align = "left:0; bottom:100px;";
|
273 |
+
$wplc_box_align = " bottom:100px;";
|
274 |
+
$wplc_class = "wplc_left";
|
275 |
+
} else if ($wplc_settings["wplc_settings_align"] == 4) {
|
276 |
+
$original_pos = "right";
|
277 |
+
// $wplc_box_align = "right:0; bottom:100px;";
|
278 |
+
$wplc_box_align = "bottom:100px;";
|
279 |
+
$wplc_class = "wplc_right";
|
280 |
+
}
|
281 |
+
|
282 |
+
if ($wplc_settings["wplc_settings_fill"]) {
|
283 |
+
$wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"];
|
284 |
+
} else {
|
285 |
+
$wplc_settings_fill = "#ed832f";
|
286 |
+
}
|
287 |
+
if ($wplc_settings["wplc_settings_font"]) {
|
288 |
+
$wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"];
|
289 |
+
} else {
|
290 |
+
$wplc_settings_font = "#FFFFFF";
|
291 |
+
}
|
292 |
+
|
293 |
+
$wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
|
294 |
+
if (!function_exists("wplc_register_pro_version") && $wplc_is_admin_logged_in != 1) {
|
295 |
+
return "";
|
296 |
+
}
|
297 |
+
|
298 |
+
if(function_exists('wplc_pro_activate')){
|
299 |
+
if(function_exists('wplc_return_animations')){
|
300 |
+
|
301 |
+
$animations = wplc_return_animations();
|
302 |
+
|
303 |
+
isset($animations['animation']) ? $wplc_animation = $animations['animation'] : $wplc_animation = 'animation-4';
|
304 |
+
isset($animations['starting_point']) ? $wplc_starting_point = $animations['starting_point'] : $wplc_starting_point = 'display: none;';
|
305 |
+
isset($animations['box_align']) ? $wplc_box_align = $animations['box_align'] : $wplc_box_align = '';
|
306 |
+
|
307 |
+
} else {
|
308 |
+
|
309 |
+
}
|
310 |
+
} else {
|
311 |
+
|
312 |
+
$wplc_starting_point = '';
|
313 |
+
$wplc_animation = '';
|
314 |
+
|
315 |
+
if ($wplc_settings["wplc_settings_align"] == 1) {
|
316 |
+
$original_pos = "bottom_left";
|
317 |
+
$wplc_box_align = "left:100px; bottom:0px;";
|
318 |
+
} else if ($wplc_settings["wplc_settings_align"] == 2) {
|
319 |
+
$original_pos = "bottom_right";
|
320 |
+
$wplc_box_align = "right:100px; bottom:0px;";
|
321 |
+
} else if ($wplc_settings["wplc_settings_align"] == 3) {
|
322 |
+
$original_pos = "left";
|
323 |
+
$wplc_box_align = "left:0; bottom:100px;";
|
324 |
+
$wplc_class = "wplc_left";
|
325 |
+
} else if ($wplc_settings["wplc_settings_align"] == 4) {
|
326 |
+
$original_pos = "right";
|
327 |
+
$wplc_box_align = "right:0; bottom:100px;";
|
328 |
+
$wplc_class = "wplc_right";
|
329 |
+
}
|
330 |
+
|
331 |
+
}
|
332 |
+
/* here */
|
333 |
+
?>
|
334 |
+
<div id="wp-live-chat" wplc_animation='<?php echo $wplc_animation; ?>' style="<?php echo $wplc_starting_point." ".$wplc_box_align; ?>; " class="<?php echo $wplc_class; ?> wplc_close" original_pos="<?php echo $original_pos; ?>" wplc-auto-pop-up="<?php if (isset($wplc_settings['wplc_auto_pop_up'])) { echo $wplc_settings['wplc_auto_pop_up']; } ?>" >
|
335 |
+
<?php
|
336 |
+
if (function_exists("wplc_register_pro_version")) {
|
337 |
+
wplc_pro_output_box();
|
338 |
+
} else {
|
339 |
+
?>
|
340 |
+
<div class="wp-live-chat-wraper">
|
341 |
+
<div id="wp-live-chat-header" style="background-color: <?php echo $wplc_settings_fill; ?> !important; color: <?php echo $wplc_settings_font; ?> !important; ">
|
342 |
+
<i id="wp-live-chat-minimize" class="fa fa-minus" style="display:none;" ></i>
|
343 |
+
<i id="wp-live-chat-close" class="fa fa-times" style="display:none;" ></i>
|
344 |
+
|
345 |
+
<div id="wp-live-chat-1" >
|
346 |
+
<div style="display:block; ">
|
347 |
+
<strong><?php _e("Questions?", "wplivechat") ?></strong> <?php _e("Chat with us", "wplivechat") ?>
|
348 |
+
</div>
|
349 |
+
</div>
|
350 |
+
</div>
|
351 |
+
|
352 |
+
<div id="wp-live-chat-2" style="display:none;">
|
353 |
+
<div id="wp-live-chat-2-info">
|
354 |
+
<strong><?php _e('Start Live Chat', 'wplivechat'); ?></strong>
|
355 |
+
</div>
|
356 |
+
<?php
|
357 |
+
$wplc_settings = get_option("WPLC_SETTINGS");
|
358 |
+
|
359 |
+
if (isset($wplc_settings['wplc_loggedin_user_info']) && $wplc_settings['wplc_loggedin_user_info'] == 1) {
|
360 |
+
$wplc_use_loggedin_user_details = 1;
|
361 |
+
} else {
|
362 |
+
$wplc_use_loggedin_user_details = 0;
|
363 |
+
}
|
364 |
+
|
365 |
+
$wplc_loggedin_user_name = "";
|
366 |
+
$wplc_loggedin_user_email = "";
|
367 |
+
|
368 |
+
if ($wplc_use_loggedin_user_details == 1) {
|
369 |
+
global $current_user;
|
370 |
+
|
371 |
+
if ($current_user->data != null) {
|
372 |
+
//Logged in. Get name and email
|
373 |
+
$wplc_loggedin_user_name = $current_user->user_nicename;
|
374 |
+
$wplc_loggedin_user_email = $current_user->user_email;
|
375 |
+
}
|
376 |
+
} else {
|
377 |
+
$wplc_loggedin_user_name = '';
|
378 |
+
$wplc_loggedin_user_email = '';
|
379 |
+
}
|
380 |
+
|
381 |
+
if (isset($wplc_settings['wplc_require_user_info']) && $wplc_settings['wplc_require_user_info'] == 1) {
|
382 |
+
$wplc_ask_user_details = 1;
|
383 |
+
} else {
|
384 |
+
$wplc_ask_user_details = 0;
|
385 |
+
}
|
386 |
+
|
387 |
+
if ($wplc_ask_user_details == 1) {
|
388 |
+
//Ask the user to enter name and email
|
389 |
+
?>
|
390 |
+
<input type="text" name="wplc_name" id="wplc_name" value="<?php echo $wplc_loggedin_user_name; ?>" placeholder="<?php _e("Name", "wplivechat"); ?>" />
|
391 |
+
<input type="text" name="wplc_email" id="wplc_email" wplc_hide="0" value="<?php echo $wplc_loggedin_user_email; ?>" placeholder="<?php _e("Email", "wplivechat"); ?>" />
|
392 |
+
<?php
|
393 |
+
} else {
|
394 |
+
//Dont ask the user
|
395 |
+
echo '<div style="padding: 7px; text-align: center;">';
|
396 |
+
if (isset($wplc_settings['wplc_user_alternative_text'])) {
|
397 |
+
echo stripslashes($wplc_settings['wplc_user_alternative_text']);
|
398 |
+
}
|
399 |
+
echo '</div>';
|
400 |
+
|
401 |
+
$wplc_random_user_number = rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9);
|
402 |
+
//$wplc_loggedin_user_email = $wplc_random_user_number."@".$wplc_random_user_number.".com";
|
403 |
+
?>
|
404 |
+
<input type="hidden" name="wplc_name" id="wplc_name" value="<?php if ($wplc_loggedin_user_name != '') { echo $wplc_loggedin_user_name; } else { echo 'user' . $wplc_random_user_number; } ?>" />
|
405 |
+
<input type="hidden" name="wplc_email" id="wplc_email" wplc_hide="1" value="<?php if ($wplc_loggedin_user_email != '' && $wplc_loggedin_user_email != null) { echo $wplc_loggedin_user_email; } else { echo $wplc_random_user_number . '@' . $wplc_random_user_number . '.com'; } ?>" />
|
406 |
+
<?php
|
407 |
+
}
|
408 |
+
?>
|
409 |
+
<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;"/>
|
410 |
+
</div>
|
411 |
+
<div id="wp-live-chat-3" style="display:none;">
|
412 |
+
<p><?php _e("Connecting you to a sales person. Please be patient.", "wplivechat") ?></p>
|
413 |
+
</div>
|
414 |
+
<div id="wp-live-chat-react" style="display:none;">
|
415 |
+
<p><?php _e("Reactivating your previous chat...", "wplivechat") ?></p>
|
416 |
+
</div>
|
417 |
+
<div id="wp-live-chat-4" style="display:none;">
|
418 |
+
<div id="wplc_sound_update" style='height:0; width:0; display:none; border:0;'></div>
|
419 |
+
<div id="wplc_chatbox"></div>
|
420 |
+
<p style="text-align:center; font-size:11px;"><?php _e("Press ENTER to send your message", "wplivechat") ?></p>
|
421 |
+
<p>
|
422 |
+
<input type="text" name="wplc_chatmsg" id="wplc_chatmsg" value="" />
|
423 |
+
<input type="hidden" name="wplc_cid" id="wplc_cid" value="" />
|
424 |
+
<input id="wplc_send_msg" type="button" value="<?php _e("Send", "wplivechat"); ?>" style="display:none;" />
|
425 |
+
</p>
|
426 |
+
</div>
|
427 |
+
</div>
|
428 |
+
<?php } ?>
|
429 |
+
</div>
|
430 |
+
<?php
|
431 |
+
|
432 |
+
}
|
includes/settings_page.php
CHANGED
@@ -1,4 +1,13 @@
|
|
1 |
Â
<?php wplc_stats("settings"); ?>
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2 |
Â
<div class="wrap">
|
3 |
Â
<style>
|
4 |
Â
.wplc_light_grey{
|
@@ -11,6 +20,9 @@
|
|
11 |
Â
<h2><?php _e("WP Live Chat Support Settings","wplivechat")?></h2>
|
12 |
Â
<?php
|
13 |
Â
$wplc_settings = get_option("WPLC_SETTINGS");
|
Â
|
|
Â
|
|
Â
|
|
14 |
Â
if ($wplc_settings["wplc_settings_align"]) { $wplc_settings_align[intval($wplc_settings["wplc_settings_align"])] = "SELECTED"; }
|
15 |
Â
if ($wplc_settings["wplc_settings_enabled"]) { $wplc_settings_enabled[intval($wplc_settings["wplc_settings_enabled"])] = "SELECTED"; }
|
16 |
Â
if ($wplc_settings["wplc_settings_fill"]) { $wplc_settings_fill = $wplc_settings["wplc_settings_fill"]; } else { $wplc_settings_fill = "ed832f"; }
|
@@ -22,13 +34,47 @@
|
|
22 |
Â
|
23 |
Â
<div id="wplc_tabs">
|
24 |
Â
<ul>
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
32 |
Â
</ul>
|
33 |
Â
<div id="tabs-1">
|
34 |
Â
<h3><?php _e("Main Settings",'wplivechat')?></h3>
|
@@ -42,35 +88,15 @@
|
|
42 |
Â
</select>
|
43 |
Â
</td>
|
44 |
Â
</tr>
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
<
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
</i>
|
55 |
-
</small>
|
56 |
-
</td>
|
57 |
-
</tr>
|
58 |
-
<tr>
|
59 |
-
<td width='200' valign='top'>
|
60 |
-
<?php _e("Hide Chat","wplivechat")?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Hides chat for 24hrs when user clicks X", "wplivechat") ?>"></i>
|
61 |
-
</td>
|
62 |
-
<td valign='top'>
|
63 |
-
<input type="checkbox" value="true" readonly disabled/>
|
64 |
-
<small>
|
65 |
-
<i>
|
66 |
-
<?php _e("available in the","wplivechat")?>
|
67 |
-
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=name" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
|
68 |
-
|
69 |
-
</i>
|
70 |
-
</small>
|
71 |
-
</td>
|
72 |
-
</tr>
|
73 |
-
<tr>
|
74 |
Â
<td width='200' valign='top'>
|
75 |
Â
<?php _e("Require Name And Email","wplivechat")?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Users will have to enter their Name and Email Address when starting a chat", "wplivechat") ?>"></i>
|
76 |
Â
</td>
|
@@ -118,37 +144,6 @@
|
|
118 |
Â
<input type="checkbox" value="1" name="wplc_enable_msg_sound" <?php if(isset($wplc_settings['wplc_enable_msg_sound']) && $wplc_settings['wplc_enable_msg_sound'] == 1 ) { echo "checked"; } ?> />
|
119 |
Â
</td>
|
120 |
Â
</tr>
|
121 |
-
<tr>
|
122 |
-
<td width='200' valign='top'>
|
123 |
-
<?php _e("Include chat window on the following pages","wplivechat"); ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Show the chat window on the following pages. Leave blank to show on all. (Use comma-separated Page ID's)", "wplivechat") ?>"></i>
|
124 |
-
</td>
|
125 |
-
<td valign='top'>
|
126 |
-
<input type="text" readonly="readonly" />
|
127 |
-
<small>
|
128 |
-
<i>
|
129 |
-
<?php _e("available in the","wplivechat")?>
|
130 |
-
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=include_pages" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
|
131 |
-
<?php _e("only","wplivechat")?>
|
132 |
-
</i>
|
133 |
-
</small>
|
134 |
-
</td>
|
135 |
-
</tr>
|
136 |
-
<tr>
|
137 |
-
<td width='200' valign='top'>
|
138 |
-
<?php _e("Exclude chat window on the following pages","wplivechat"); ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Do not show the chat window on the following pages. Leave blank to show on all. (Use comma-separated Page ID's)", "wplivechat") ?>"></i>
|
139 |
-
</td>
|
140 |
-
<td valign='top'>
|
141 |
-
<input type="text" readonly="readonly"/>
|
142 |
-
<small>
|
143 |
-
<i>
|
144 |
-
<?php _e("available in the","wplivechat")?>
|
145 |
-
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=exclude_pages" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
|
146 |
-
<?php _e("only","wplivechat")?>
|
147 |
-
</i>
|
148 |
-
</small>
|
149 |
-
</td>
|
150 |
-
</tr>
|
151 |
-
|
152 |
Â
|
153 |
Â
|
154 |
Â
</table>
|
@@ -158,7 +153,7 @@
|
|
158 |
Â
<h3><?php _e("Chat Window Settings",'wplivechat')?></h3>
|
159 |
Â
<table class='form-table' width='700'>
|
160 |
Â
<tr>
|
161 |
-
<td width='
|
162 |
Â
<td>
|
163 |
Â
<select id='wplc_settings_align' name='wplc_settings_align'>
|
164 |
Â
<option value="1" <?php if (isset($wplc_settings_align[1])) { echo $wplc_settings_align[1]; } ?>><?php _e("Bottom left","wplivechat"); ?></option>
|
@@ -177,86 +172,7 @@
|
|
177 |
Â
</td>
|
178 |
Â
</tr>
|
179 |
Â
<tr>
|
180 |
-
|
181 |
-
<td width='200' valign='top'>
|
182 |
-
<?php _e("Name","wplivechat")?>:
|
183 |
-
</td>
|
184 |
-
<td>
|
185 |
-
<input type='text' size='50' maxlength='50' disabled readonly value='admin' />
|
186 |
-
<small>
|
187 |
-
<i>
|
188 |
-
<?php _e("available in the","wplivechat")?>
|
189 |
-
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=name" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
|
190 |
-
<?php _e("only","wplivechat")?>
|
191 |
-
</i>
|
192 |
-
</small>
|
193 |
-
</td>
|
194 |
-
</tr>
|
195 |
-
<!-- Chat Pic-->
|
196 |
-
<tr>
|
197 |
-
<td width='200' valign='top'>
|
198 |
-
<?php _e("Picture","wplivechat")?>:
|
199 |
-
</td>
|
200 |
-
<td>
|
201 |
-
<input id="wplc_pro_pic_button" type="button" value="<?php _e("Upload Image","wplivechat")?>" readonly disabled />
|
202 |
-
<small>
|
203 |
-
<i>
|
204 |
-
<?php _e("available in the","wplivechat")?>
|
205 |
-
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=pic" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
|
206 |
-
<?php _e("only","wplivechat")?>
|
207 |
-
</i>
|
208 |
-
</small>
|
209 |
-
</td>
|
210 |
-
</tr>
|
211 |
-
<!-- Chat Logo-->
|
212 |
-
<tr>
|
213 |
-
<td width='200' valign='top'>
|
214 |
-
<?php _e("Logo","wplivechat")?>:
|
215 |
-
</td>
|
216 |
-
<td>
|
217 |
-
<input id="wplc_pro_logo_button" type="button" value="<?php _e("Upload Image","wplivechat")?>" readonly disabled />
|
218 |
-
<small>
|
219 |
-
<i>
|
220 |
-
<?php _e("available in the","wplivechat")?>
|
221 |
-
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=pic" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
|
222 |
-
<?php _e("only","wplivechat")?>
|
223 |
-
</i>
|
224 |
-
</small>
|
225 |
-
</td>
|
226 |
-
</tr>
|
227 |
-
<!-- Chat Delay-->
|
228 |
-
<tr>
|
229 |
-
<td width='200' valign='top'>
|
230 |
-
<?php _e("Chat delay (seconds)","wplivechat")?>:
|
231 |
-
</td>
|
232 |
-
<td>
|
233 |
-
<input type='text' size='50' maxlength='50' disabled readonly value='10' />
|
234 |
-
<small>
|
235 |
-
<i>
|
236 |
-
<?php _e("available in the","wplivechat")?>
|
237 |
-
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=delay" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
|
238 |
-
<?php _e("only","wplivechat")?>
|
239 |
-
</i>
|
240 |
-
</small>
|
241 |
-
</td>
|
242 |
-
</tr>
|
243 |
-
<!-- Chat Notification if want to chat-->
|
244 |
-
<tr>
|
245 |
-
<td width='200' valign='top'>
|
246 |
-
<?php _e("Chat notifications", "wplivechat") ?>:
|
247 |
-
</td>
|
248 |
-
<td>
|
249 |
-
<input id='wplc_pro_chat_notification' name='wplc_pro_chat_notification' type='checkbox' value='yes' disabled="disabled" readonly/>
|
250 |
-
<?php _e("Alert me via email as soon as someone wants to chat", "wplivechat") ?>
|
251 |
-
<small>
|
252 |
-
<i>
|
253 |
-
<?php _e("available in the", "wplivechat") ?>
|
254 |
-
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=alert" title="<?php _e("Pro Add-on", "wplivechat") ?>" target="_BLANK"><?php _e("Pro Add-on", "wplivechat") ?></a>
|
255 |
-
<?php _e("only", "wplivechat") ?>
|
256 |
-
</i>
|
257 |
-
</small>
|
258 |
-
</td>
|
259 |
-
</tr>
|
260 |
Â
<tr>
|
261 |
Â
<td>
|
262 |
Â
<?php _e("Display name and avatar in chat", "wplivechat") ?> <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Display the agent and user name above each message in the chat window.", "wplivechat") ?>"></i>
|
@@ -280,82 +196,222 @@
|
|
280 |
Â
</td>
|
281 |
Â
</tr>
|
282 |
Â
</table>
|
Â
|
|
283 |
Â
|
284 |
Â
</div>
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
</
|
299 |
-
</
|
300 |
-
<
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
328 |
Â
|
329 |
Â
|
330 |
Â
<div id="tabs-4">
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
340 |
Â
<h3><?php _e("Styling",'wplivechat')?></h3>
|
341 |
Â
<table class='form-table' width='700'>
|
342 |
Â
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
354 |
Â
</div>
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
359 |
Â
<tr>
|
360 |
Â
<td width='200' valign='top'><?php _e("Chat box fill color","wplivechat")?>:</td>
|
361 |
Â
<td>
|
@@ -368,38 +424,55 @@
|
|
368 |
Â
<input id="wplc_settings_font" name="wplc_settings_font" type="text" class="color" value="<?php echo $wplc_settings_font;?>" />
|
369 |
Â
</td>
|
370 |
Â
</tr>
|
371 |
-
<tr style='height:30px;'><td></td><td></td></tr>
|
372 |
-
<tr>
|
373 |
-
<td width='200' valign='top'><?php _e("First section text","wplivechat")?>:</td>
|
374 |
-
<td>
|
375 |
-
<input type='text' size='50' maxlength='50' class='regular-text' readonly value='<?php _e("Questions?","wplivechat") ?>' /> <br />
|
376 |
-
<input type='text' size='50' maxlength='50' class='regular-text' readonly value='<?php _e("Chat with us","wplivechat") ?>' /> <br />
|
377 |
-
</td>
|
378 |
-
</tr>
|
379 |
-
<tr>
|
380 |
-
<td width='200' valign='top'><?php _e("Second section text","wplivechat") ?>:</td>
|
381 |
-
<td>
|
382 |
-
<input type='text' size='50' maxlength='50' class='regular-text' readonly value='<?php _e("Start Chat","wplivechat") ?>' /> <br />
|
383 |
-
<input type='text' size='50' maxlength='50' class='regular-text' readonly value='<?php _e("Connecting you to a sales person. Please be patient.", "wplivechat") ?>' /> <br />
|
384 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
385 |
Â
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
399 |
Â
|
400 |
Â
|
401 |
-
|
402 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
403 |
Â
<style>
|
404 |
Â
.wplc_animation_block div{
|
405 |
Â
display: inline-block;
|
@@ -424,124 +497,56 @@
|
|
424 |
Â
box-shadow: 2px 2px 2px #CCC;
|
425 |
Â
}
|
426 |
Â
</style>
|
427 |
-
|
428 |
-
|
429 |
-
<label for=""><?php _e('Choose an animation. Only available in the', 'sola_t'); ?></label>
|
430 |
-
<a href="http://wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=animations" target="_BLANK"><?php _e("Pro", "wplivechat") ?></a>
|
431 |
-
</td>
|
432 |
Â
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
454 |
Â
</table>
|
455 |
Â
</div>
|
456 |
Â
<div id="tabs-5">
|
457 |
Â
|
458 |
Â
|
459 |
-
|
460 |
-
.wplc_agent_container ul {
|
461 |
-
display:block;
|
462 |
-
overflow:auto;
|
463 |
-
}
|
464 |
-
.wplc_agent_container li{
|
465 |
-
display: block;
|
466 |
-
float: left;
|
467 |
-
text-align: center;
|
468 |
-
border: 1px solid #CCC;
|
469 |
-
width:150px;
|
470 |
-
height:310px;
|
471 |
-
padding: 10px;
|
472 |
-
border-radius: 5px;
|
473 |
-
margin: 10px;
|
474 |
-
box-shadow: 2px 2px 2px #CCC;
|
475 |
-
overflow: auto;
|
476 |
-
|
477 |
-
}
|
478 |
-
.wplc_agent_container img{
|
479 |
-
border-radius: 100px;
|
480 |
-
}
|
481 |
-
.wplc_agent_container h3 {
|
482 |
-
font: bold 12px/16px Arial;
|
483 |
-
padding: 0 0 0 0px;
|
484 |
-
color: #C2BBBE;
|
485 |
-
display: block;
|
486 |
-
height:40px;
|
487 |
-
text-transform: uppercase;
|
488 |
-
}
|
489 |
-
.wplc_agent_container small { word-wrap: break-word; display:block; height:50px; }
|
490 |
-
.wplc_agent_container select { width: 120px; }
|
491 |
-
#wplc_add_agent { cursor: not-allowed;}
|
492 |
-
</style>
|
493 |
-
<h3><?php _e('Current Users that are Chat Agents', 'wplivechat'); ?></h3>
|
494 |
-
<?php
|
495 |
-
$wplc_agents = "<div class='wplc_agent_container'><ul>";
|
496 |
-
$user = wp_get_current_user();
|
497 |
-
$wplc_agents .= "<li id=\"wplc_agent_li_".$user->ID."\">";
|
498 |
-
$wplc_agents .= "<p><img src=\"//www.gravatar.com/avatar/" . md5($user->user_email) . "?s=80&d=mm\" /></p>";
|
499 |
-
$check = get_user_meta($user->ID,"wplc_chat_agent_online");
|
500 |
-
if ($check) {
|
501 |
-
$wplc_agents .= "<span class='wplc_status_box wplc_type_returning'>".__("Online","wplivechat")."</span>";
|
502 |
-
}
|
503 |
-
$wplc_agents .= "<h3>" . $user->display_name . "</h3>";
|
504 |
-
|
505 |
-
$wplc_agents .= "<small>" . $user->user_email . "</small>";
|
506 |
-
|
507 |
-
$wplc_agents .= "</li>";
|
508 |
-
echo $wplc_agents;
|
509 |
-
?>
|
510 |
-
<li style='width:150px;' id='wplc_add_new_agent_box'>
|
511 |
-
<p><i class='fa fa-plus-circle fa-4x' style='color:#ccc;' ></i></p>
|
512 |
-
<h3><?php _e("Add New Agent","wplivechat"); ?></h3>
|
513 |
-
<select id='wplc_agent_select'>
|
514 |
-
<option value=''><?php _e("Select","wplivechat"); ?></option>
|
515 |
-
|
516 |
-
<?php
|
517 |
-
$blogusers = get_users( array( 'role' => 'administrator', 'fields' => array( 'display_name','id','user_email' ) ) );
|
518 |
-
// Array of stdClass objects.
|
519 |
-
foreach ( $blogusers as $user ) {
|
520 |
-
$is_agent = get_user_meta(esc_html( $user->ID ), 'wplc_ma_agent', true);
|
521 |
-
if(!$is_agent){ echo '<option id="wplc_selected_agent_'. esc_html( $user->ID ) .'" value="' . esc_html( $user->ID ) . '">' . esc_html( $user->display_name ) . ' ('.__('Administrator','wplivechat').')</option>'; }
|
522 |
-
}
|
523 |
-
$blogusers = get_users( array( 'role' => 'editor', 'fields' => array( 'display_name','id','user_email' ) ) );
|
524 |
-
// Array of stdClass objects.
|
525 |
-
foreach ( $blogusers as $user ) {
|
526 |
-
$is_agent = get_user_meta(esc_html( $user->ID ), 'wplc_ma_agent', true);
|
527 |
-
if(!$is_agent){ echo '<option id="wplc_selected_agent_'. esc_html( $user->ID ) .'" value="' . esc_html( $user->ID ) . '">' . esc_html( $user->display_name ) . ' ('.__('Editor','wplivechat').')</option>'; }
|
528 |
-
}
|
529 |
-
$blogusers = get_users( array( 'role' => 'author', 'fields' => array( 'display_name','id','user_email' ) ) );
|
530 |
-
// Array of stdClass objects.
|
531 |
-
foreach ( $blogusers as $user ) {
|
532 |
-
$is_agent = get_user_meta(esc_html( $user->ID ), 'wplc_ma_agent', true);
|
533 |
-
if(!$is_agent){ echo '<option id="wplc_selected_agent_'. esc_html( $user->ID ) .'" value="' . esc_html( $user->ID ) . '">' . esc_html( $user->display_name ) . ' ('.__('Author','wplivechat').')</option>'; }
|
534 |
-
}
|
535 |
-
?>
|
536 |
-
</select>
|
537 |
-
<p><button class='button button-secondary' id='wplc_add_agent' disabled style=><?php _e("Add Agent","wplivechat"); ?></button></p>
|
538 |
-
<p style='font-size:0.8em'><?php _e("Add as many agents as you need with the ","wplivechat") ?> <a href="http://wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=multipleAgents" target="_BLANK"><?php _e("Pro version.", "wplivechat") ?></a></p>
|
539 |
-
</li>
|
540 |
-
</ul>
|
541 |
-
</div>
|
542 |
-
|
543 |
-
<hr/>
|
544 |
-
|
545 |
Â
|
546 |
Â
|
547 |
Â
</div>
|
@@ -560,23 +565,9 @@ echo $wplc_agents;
|
|
560 |
Â
?></textarea>
|
561 |
Â
<p class="description"><?php _e('Blocking a user\'s IP Address here will hide the chat window from them, preventing them from chatting with you. Each IP Address must be on a new line', 'wplivechat'); ?></p>
|
562 |
Â
</div>
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
<tr>
|
567 |
-
<td width='200' valign='top'><?php _e("Enable Encryption", "wplivechat") ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e('All messages will be encrypted when being sent to and from the user and agent.', 'wplivechat'); ?>"></i></td>
|
568 |
-
<td>
|
569 |
-
<input type="checkbox" disabled readonly/>
|
570 |
-
<small>
|
571 |
-
<i> <?php _e("Encrypt your chat messages in the ","wplivechat")?>
|
572 |
-
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=encryption" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
|
573 |
-
</i>
|
574 |
-
</small>
|
575 |
-
</td>
|
576 |
-
</tr>
|
577 |
-
|
578 |
-
</table>
|
579 |
-
</div>
|
580 |
Â
</div>
|
581 |
Â
<p class='submit'><input type='submit' name='wplc_save_settings' class='button-primary' value='<?php _e("Save Settings","wplivechat")?>' /></p>
|
582 |
Â
</form>
|
1 |
Â
<?php wplc_stats("settings"); ?>
|
2 |
+
|
3 |
+
<?php
|
4 |
+
if (get_option("WPLC_HIDE_CHAT") == true) {
|
5 |
+
$wplc_hide_chat = "checked";
|
6 |
+
} else {
|
7 |
+
$wplc_hide_chat = "";
|
8 |
+
};
|
9 |
+
|
10 |
+
?>
|
11 |
Â
<div class="wrap">
|
12 |
Â
<style>
|
13 |
Â
.wplc_light_grey{
|
20 |
Â
<h2><?php _e("WP Live Chat Support Settings","wplivechat")?></h2>
|
21 |
Â
<?php
|
22 |
Â
$wplc_settings = get_option("WPLC_SETTINGS");
|
23 |
+
|
24 |
+
$wplc_mail_type = get_option("wplc_mail_type");
|
25 |
+
if (!isset($wplc_mail_type) || $wplc_mail_type == "" || !$wplc_mail_type) { $wplc_mail_type = "wp_mail"; }
|
26 |
Â
if ($wplc_settings["wplc_settings_align"]) { $wplc_settings_align[intval($wplc_settings["wplc_settings_align"])] = "SELECTED"; }
|
27 |
Â
if ($wplc_settings["wplc_settings_enabled"]) { $wplc_settings_enabled[intval($wplc_settings["wplc_settings_enabled"])] = "SELECTED"; }
|
28 |
Â
if ($wplc_settings["wplc_settings_fill"]) { $wplc_settings_fill = $wplc_settings["wplc_settings_fill"]; } else { $wplc_settings_fill = "ed832f"; }
|
34 |
Â
|
35 |
Â
<div id="wplc_tabs">
|
36 |
Â
<ul>
|
37 |
+
<?php
|
38 |
+
$tab_array = array(
|
39 |
+
0 => array(
|
40 |
+
"href" => "#tabs-1",
|
41 |
+
"icon" => 'fa fa-gear',
|
42 |
+
"label" => __("General Settings","wplivechat")
|
43 |
+
),
|
44 |
+
1 => array(
|
45 |
+
"href" => "#tabs-2",
|
46 |
+
"icon" => 'fa fa-envelope',
|
47 |
+
"label" => __("Chat Box","wplivechat")
|
48 |
+
),
|
49 |
+
2 => array(
|
50 |
+
"href" => "#tabs-3",
|
51 |
+
"icon" => 'fa fa-book',
|
52 |
+
"label" => __("Offline Messages","wplivechat")
|
53 |
+
),
|
54 |
+
3 => array(
|
55 |
+
"href" => "#tabs-4",
|
56 |
+
"icon" => 'fa fa-pencil',
|
57 |
+
"label" => __("Styling","wplivechat")
|
58 |
+
),
|
59 |
+
4 => array(
|
60 |
+
"href" => "#tabs-5",
|
61 |
+
"icon" => 'fa fa-users',
|
62 |
+
"label" => __("Agents","wplivechat")
|
63 |
+
),
|
64 |
+
5 => array(
|
65 |
+
"href" => "#tabs-7",
|
66 |
+
"icon" => 'fa fa-gavel',
|
67 |
+
"label" => __("Blocked Visitors","wplivechat")
|
68 |
+
)
|
69 |
+
);
|
70 |
+
$tabs_top = apply_filters("wplc_filter_setting_tabs",$tab_array);
|
71 |
+
|
72 |
+
foreach ($tabs_top as $tab) {
|
73 |
+
echo "<li><a href=\"".$tab['href']."\"><i class=\"".$tab['icon']."\"></i> ".$tab['label']."</a></li>";
|
74 |
+
}
|
75 |
+
|
76 |
+
?>
|
77 |
+
|
78 |
Â
</ul>
|
79 |
Â
<div id="tabs-1">
|
80 |
Â
<h3><?php _e("Main Settings",'wplivechat')?></h3>
|
88 |
Â
</select>
|
89 |
Â
</td>
|
90 |
Â
</tr>
|
91 |
+
<tr>
|
92 |
+
<td width='400' valign='top'>
|
93 |
+
<?php _e("Hide Chat", "wplivechat") ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Hides chat for 24hrs when user clicks X", "wplivechat") ?>"></i>
|
94 |
+
</td>
|
95 |
+
<td valign='top'>
|
96 |
+
<input type="checkbox" name="wplc_hide_chat" value="true" <?php echo $wplc_hide_chat ?>/>
|
97 |
+
</td>
|
98 |
+
</tr>
|
99 |
+
<tr>
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
100 |
Â
<td width='200' valign='top'>
|
101 |
Â
<?php _e("Require Name And Email","wplivechat")?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Users will have to enter their Name and Email Address when starting a chat", "wplivechat") ?>"></i>
|
102 |
Â
</td>
|
144 |
Â
<input type="checkbox" value="1" name="wplc_enable_msg_sound" <?php if(isset($wplc_settings['wplc_enable_msg_sound']) && $wplc_settings['wplc_enable_msg_sound'] == 1 ) { echo "checked"; } ?> />
|
145 |
Â
</td>
|
146 |
Â
</tr>
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
147 |
Â
|
148 |
Â
|
149 |
Â
</table>
|
153 |
Â
<h3><?php _e("Chat Window Settings",'wplivechat')?></h3>
|
154 |
Â
<table class='form-table' width='700'>
|
155 |
Â
<tr>
|
156 |
+
<td width='420' valign='top'><?php _e("Chat box alignment","wplivechat")?>:</td>
|
157 |
Â
<td>
|
158 |
Â
<select id='wplc_settings_align' name='wplc_settings_align'>
|
159 |
Â
<option value="1" <?php if (isset($wplc_settings_align[1])) { echo $wplc_settings_align[1]; } ?>><?php _e("Bottom left","wplivechat"); ?></option>
|
172 |
Â
</td>
|
173 |
Â
</tr>
|
174 |
Â
<tr>
|
175 |
+
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
176 |
Â
<tr>
|
177 |
Â
<td>
|
178 |
Â
<?php _e("Display name and avatar in chat", "wplivechat") ?> <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Display the agent and user name above each message in the chat window.", "wplivechat") ?>"></i>
|
196 |
Â
</td>
|
197 |
Â
</tr>
|
198 |
Â
</table>
|
199 |
+
<?php do_action('wplc_hook_admin_settings_chat_box_settings_after'); ?>
|
200 |
Â
|
201 |
Â
</div>
|
202 |
+
<div id="tabs-3">
|
203 |
+
<h3><?php _e("Offline Messages", 'wplivechat') ?></h3>
|
204 |
+
<table class='form-table' width='100%'>
|
205 |
+
<tr>
|
206 |
+
<td>
|
207 |
+
<?php _e("Do not allow users to send offline messages", "wplivechat") ?> <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("The chat window will be hidden when it is offline. Users will not be able to send offline messages to you", "wplivechat") ?>"></i>
|
208 |
+
</td>
|
209 |
+
<td>
|
210 |
+
<input type="checkbox" name="wplc_hide_when_offline" value="1" <?php
|
211 |
+
if (isset($wplc_settings['wplc_hide_when_offline']) && $wplc_settings['wplc_hide_when_offline'] == 1) {
|
212 |
+
echo "checked";
|
213 |
+
}
|
214 |
+
?>/>
|
215 |
+
</td>
|
216 |
+
</tr>
|
217 |
+
<tr>
|
218 |
+
<td width='400' valign='top'>
|
219 |
+
<?php _e("Email Address", "wplivechat") ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Email address where offline messages are delivered to. Use comma separated email addresses to send to more than one email address", "wplivechat") ?>"></i>
|
220 |
+
</td>
|
221 |
+
<td>
|
222 |
+
<input id="wplc_pro_chat_email_address" name="wplc_pro_chat_email_address" class="regular-text" type="text" value="<?php if (isset($wplc_settings['wplc_pro_chat_email_address'])) {
|
223 |
+
echo $wplc_settings['wplc_pro_chat_email_address']; } ?>" />
|
224 |
+
</td>
|
225 |
+
</tr>
|
226 |
+
|
227 |
+
</table>
|
228 |
+
<hr/>
|
229 |
+
<table >
|
230 |
+
<tr>
|
231 |
+
<td width="400"><?php _e("Sending Method", "wplivechat") ?></td>
|
232 |
+
<td width="400" style="text-align: center;"><?php _e("WP Mail", "wplivechat") ?></td>
|
233 |
+
<td width="400" style="text-align: center;"><?php _e("PHP Mailer", "wplivechat") ?></td>
|
234 |
+
</tr>
|
235 |
+
<tr>
|
236 |
+
<td></td>
|
237 |
+
<td style="text-align: center;"><input class="wplc_mail_type_radio" type="radio" value="wp_mail" name="wplc_mail_type" <?php if ($wplc_mail_type == "wp_mail") {
|
238 |
+
echo "checked";
|
239 |
+
} ?>></td>
|
240 |
+
<td style="text-align: center;"><input id="wpcl_mail_type_php" class="wplc_mail_type_radio" type="radio" value="php_mailer" name="wplc_mail_type" <?php if ($wplc_mail_type == "php_mailer") {
|
241 |
+
echo "checked";
|
242 |
+
} ?>></td>
|
243 |
+
</tr>
|
244 |
+
</table>
|
245 |
+
<hr/>
|
246 |
+
<table id="wplc_smtp_details" class='form-table' width='100%'>
|
247 |
+
<tr>
|
248 |
+
<td width="400" valign="top">
|
249 |
+
<?php _e("Host", "wplivechat") ?>:
|
250 |
+
</td>
|
251 |
+
<td>
|
252 |
+
<input id="wplc_mail_host" name="wplc_mail_host" type="text" class="regular-text" value="<?php echo get_option("wplc_mail_host") ?>" placeholder="smtp.example.com" />
|
253 |
+
</td>
|
254 |
+
</tr>
|
255 |
+
<tr>
|
256 |
+
<td>
|
257 |
+
<?php _e("Port", "wplivechat") ?>:
|
258 |
+
</td>
|
259 |
+
<td>
|
260 |
+
<input id="wplc_mail_port" name="wplc_mail_port" type="text" class="regular-text" value="<?php echo get_option("wplc_mail_port") ?>" placeholder="25" />
|
261 |
+
</td>
|
262 |
+
</tr>
|
263 |
+
<tr>
|
264 |
+
<td>
|
265 |
+
<?php _e("Username", "wplivechat") ?>:
|
266 |
+
</td>
|
267 |
+
<td>
|
268 |
+
<input id="wplc_mail_username" name="wplc_mail_username" type="text" class="regular-text" value="<?php echo get_option("wplc_mail_username") ?>" placeholder="me@example.com" />
|
269 |
+
</td>
|
270 |
+
</tr>
|
271 |
+
<tr>
|
272 |
+
<td>
|
273 |
+
<?php _e("Password", "wplivechat") ?>:
|
274 |
+
</td>
|
275 |
+
<td>
|
276 |
+
<input id="wplc_mail_password" name="wplc_mail_password" type="password" class="regular-text" value="<?php echo get_option("wplc_mail_password") ?>" placeholder="Password" />
|
277 |
+
</td>
|
278 |
+
</tr>
|
279 |
+
</table>
|
280 |
+
<table class='form-table' width='100%'>
|
281 |
+
<tr>
|
282 |
+
<td width="400" valign="top"><?php _e("Offline Chat Box Title", "wplivechat") ?>:</td>
|
283 |
+
<td>
|
284 |
+
<input id="wplc_pro_na" name="wplc_pro_na" type="text" size="50" maxlength="50" class="regular-text" value="<?php if (isset($wplc_settings['wplc_pro_na'])) { echo stripslashes($wplc_settings['wplc_pro_na']); } ?>" /> <br />
|
285 |
+
|
286 |
+
|
287 |
+
</td>
|
288 |
+
</tr>
|
289 |
+
<tr>
|
290 |
+
<td width="400" valign="top"><?php _e("Offline Text Fields", "wplivechat") ?>:</td>
|
291 |
+
<td>
|
292 |
+
<input id="wplc_pro_offline1" name="wplc_pro_offline1" type="text" size="50" maxlength="150" class="regular-text" value="<?php if (isset($wplc_settings['wplc_pro_offline1'])) { echo stripslashes($wplc_settings['wplc_pro_offline1']); } ?>" /> <br />
|
293 |
+
<input id="wplc_pro_offline2" name="wplc_pro_offline2" type="text" size="50" maxlength="50" class="regular-text" value="<?php if (isset($wplc_settings['wplc_pro_offline2'])) { echo stripslashes($wplc_settings['wplc_pro_offline2']); } ?>" /> <br />
|
294 |
+
<input id="wplc_pro_offline3" name="wplc_pro_offline3" type="text" size="50" maxlength="150" class="regular-text" value="<?php if (isset($wplc_settings['wplc_pro_offline3'])) { echo stripslashes($wplc_settings['wplc_pro_offline3']); } ?>" /> <br />
|
295 |
+
|
296 |
+
|
297 |
+
</td>
|
298 |
+
</tr>
|
299 |
+
</table>
|
300 |
+
|
301 |
+
</div>
|
302 |
+
|
303 |
Â
|
304 |
Â
|
305 |
Â
<div id="tabs-4">
|
306 |
+
<style>
|
307 |
+
.wplc_theme_block img{
|
308 |
+
border: 1px solid #CCC;
|
309 |
+
border-radius: 5px;
|
310 |
+
padding: 5px;
|
311 |
+
margin: 5px;
|
312 |
+
}
|
313 |
+
.wplc_theme_single{
|
314 |
+
width: 162px;
|
315 |
+
height: 162px;
|
316 |
+
text-align: center;
|
317 |
+
display: inline-block;
|
318 |
+
vertical-align: top;
|
319 |
+
margin: 5px;
|
320 |
+
}
|
321 |
+
.wplc_animation_block div{
|
322 |
+
display: inline-block;
|
323 |
+
width: 150px;
|
324 |
+
height: 150px;
|
325 |
+
border: 1px solid #CCC;
|
326 |
+
border-radius: 5px;
|
327 |
+
text-align: center;
|
328 |
+
margin: 10px;
|
329 |
+
}
|
330 |
+
.wplc_animation_block i{
|
331 |
+
font-size: 3em;
|
332 |
+
line-height: 150px;
|
333 |
+
}
|
334 |
+
.wplc_animation_block .wplc_red{
|
335 |
+
color: #E31230;
|
336 |
+
}
|
337 |
+
.wplc_animation_block .wplc_orange{
|
338 |
+
color: #EB832C;
|
339 |
+
}
|
340 |
+
.wplc_animation_active, .wplc_theme_active{
|
341 |
+
box-shadow: 2px 2px 2px #666666;
|
342 |
+
}
|
343 |
+
</style>
|
344 |
Â
<h3><?php _e("Styling",'wplivechat')?></h3>
|
345 |
Â
<table class='form-table' width='700'>
|
346 |
Â
|
347 |
+
<tr style='margin-bottom: 10px;'>
|
348 |
+
<td><label for=""><?php _e('Choose a theme', 'sola_t'); ?></label></td>
|
349 |
+
<td>
|
350 |
+
<div class='wplc_theme_block'>
|
351 |
+
<div class='wplc_theme_image' id=''>
|
352 |
+
<div class='wplc_theme_single'>
|
353 |
+
<img src='<?php echo WPLC_BASIC_PLUGIN_URL.'images/themes/theme-1.png'; ?>' title="<?php _e('Theme 1', 'wplivechat'); ?>" alt="<?php _e('Theme 1', 'wplivechat'); ?>" class='<?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-1') {
|
354 |
+
echo 'wplc_theme_active';
|
355 |
+
} ?>' id='wplc_theme_1'/>
|
356 |
+
<?php _e('Theme 1', 'wplivechat'); ?>
|
357 |
+
</div>
|
358 |
+
<div class='wplc_theme_single'>
|
359 |
+
<img src='<?php echo WPLC_BASIC_PLUGIN_URL.'images/themes/theme-2.png'; ?>' title="<?php _e('Theme 2', 'wplivechat'); ?>" alt="<?php _e('Theme 2', 'wplivechat'); ?>" class='<?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-2') {
|
360 |
+
echo 'wplc_theme_active';
|
361 |
+
} ?>' id='wplc_theme_2'/>
|
362 |
+
<?php _e('Theme 2', 'wplivechat'); ?>
|
363 |
+
</div>
|
364 |
+
<div class='wplc_theme_single'>
|
365 |
+
<img src='<?php echo WPLC_BASIC_PLUGIN_URL.'images/themes/theme-3.png'; ?>' title="<?php _e('Theme 3', 'wplivechat'); ?>" alt="<?php _e('Theme 3', 'wplivechat'); ?>" class='<?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-3') {
|
366 |
+
echo 'wplc_theme_active';
|
367 |
+
} ?>' id='wplc_theme_3'/>
|
368 |
+
<?php _e('Theme 3', 'wplivechat'); ?>
|
369 |
+
</div>
|
370 |
+
<div class='wplc_theme_single'>
|
371 |
+
<img src='<?php echo WPLC_BASIC_PLUGIN_URL.'images/themes/theme-4.png'; ?>' title="<?php _e('Theme 4', 'wplivechat'); ?>" alt="<?php _e('Theme 4', 'wplivechat'); ?>" class='<?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-4') {
|
372 |
+
echo 'wplc_theme_active';
|
373 |
+
} ?>' id='wplc_theme_4'/>
|
374 |
+
<?php _e('Theme 4', 'wplivechat'); ?>
|
375 |
+
</div>
|
376 |
+
<div class='wplc_theme_single'>
|
377 |
+
<img src='<?php echo WPLC_BASIC_PLUGIN_URL.'images/themes/theme-5.png'; ?>' title="<?php _e('Theme 5', 'wplivechat'); ?>" alt="<?php _e('Theme 5', 'wplivechat'); ?>" class='<?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-4') {
|
378 |
+
echo 'wplc_theme_active';
|
379 |
+
} ?>' id='wplc_theme_5'/>
|
380 |
+
<?php _e('Theme 5', 'wplivechat'); ?>
|
381 |
+
</div>
|
382 |
+
<div class='wplc_theme_single'>
|
383 |
+
<img src='<?php echo WPLC_BASIC_PLUGIN_URL.'images/themes/theme-6.png'; ?>' title="<?php _e('Theme 6', 'wplivechat'); ?>" alt="<?php _e('Theme 6', 'wplivechat'); ?>" class='<?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-5') {
|
384 |
+
echo 'wplc_theme_active';
|
385 |
+
} ?>' id='wplc_theme_6'/>
|
386 |
+
<?php _e('Custom. Enter Colour Values Below', 'wplivechat'); ?>
|
387 |
+
</div>
|
388 |
+
</div>
|
389 |
Â
</div>
|
390 |
+
<input type="radio" name="wplc_theme" value="theme-1" class="wplc_hide_input" id="wplc_rb_theme_1" <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-1') {
|
391 |
+
echo 'checked';
|
392 |
+
} ?>/>
|
393 |
+
<input type="radio" name="wplc_theme" value="theme-2" class="wplc_hide_input" id="wplc_rb_theme_2" <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-2') {
|
394 |
+
echo 'checked';
|
395 |
+
} ?>/>
|
396 |
+
<input type="radio" name="wplc_theme" value="theme-3" class="wplc_hide_input" id="wplc_rb_theme_3" <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-3') {
|
397 |
+
echo 'checked';
|
398 |
+
} ?>/>
|
399 |
+
<input type="radio" name="wplc_theme" value="theme-4" class="wplc_hide_input" id="wplc_rb_theme_4" <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-4') {
|
400 |
+
echo 'checked';
|
401 |
+
} ?>/>
|
402 |
+
<input type="radio" name="wplc_theme" value="theme-5" class="wplc_hide_input" id="wplc_rb_theme_5" <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-5') {
|
403 |
+
echo 'checked';
|
404 |
+
} ?>/>
|
405 |
+
<input type="radio" name="wplc_theme" value="theme-6" class="wplc_hide_input" id="wplc_rb_theme_6" <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-6') {
|
406 |
+
echo 'checked';
|
407 |
+
} ?>/>
|
408 |
+
|
409 |
+
</td>
|
410 |
+
</tr>
|
411 |
+
<tr height="30">
|
412 |
+
<td> </td>
|
413 |
+
<td> </td>
|
414 |
+
</tr>
|
415 |
Â
<tr>
|
416 |
Â
<td width='200' valign='top'><?php _e("Chat box fill color","wplivechat")?>:</td>
|
417 |
Â
<td>
|
424 |
Â
<input id="wplc_settings_font" name="wplc_settings_font" type="text" class="color" value="<?php echo $wplc_settings_font;?>" />
|
425 |
Â
</td>
|
426 |
Â
</tr>
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
427 |
Â
|
428 |
+
<tr>
|
429 |
+
<td width="200" valign="top"><?php _e("I'm using a localization plugin", "wplivechat") ?></td>
|
430 |
+
<td>
|
431 |
+
<input type="checkbox" name="wplc_using_localization_plugin" id="wplc_using_localization_plugin" value="1" <?php if (isset($wplc_settings['wplc_using_localization_plugin']) && $wplc_settings['wplc_using_localization_plugin'] == 1) { echo 'checked'; } ?>/>
|
432 |
+
</td>
|
433 |
+
</tr>
|
434 |
Â
|
435 |
+
<tr style='height:30px;'><td></td><td></td></tr>
|
436 |
+
<tr class="wplc_localization_strings">
|
437 |
+
<td width="200" valign="top"><?php _e("First Section Text", "wplivechat") ?>:</td>
|
438 |
+
<td>
|
439 |
+
<input id="wplc_pro_fst1" name="wplc_pro_fst1" type="text" size="50" maxlength="50" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_pro_fst1']) ?>" /> <br />
|
440 |
+
<input id="wplc_pro_fst2" name="wplc_pro_fst2" type="text" size="50" maxlength="50" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_pro_fst2']) ?>" /> <br />
|
441 |
+
</td>
|
442 |
+
</tr>
|
443 |
+
<tr class="wplc_localization_strings">
|
444 |
+
<td width="200" valign="top"><?php _e("Intro Text", "wplivechat") ?>:</td>
|
445 |
+
<td>
|
446 |
+
<input id="wplc_pro_intro" name="wplc_pro_intro" type="text" size="50" maxlength="150" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_pro_intro']) ?>" /> <br />
|
447 |
+
</td>
|
448 |
+
</tr>
|
449 |
+
<tr class="wplc_localization_strings">
|
450 |
+
<td width="200" valign="top"><?php _e("Second Section Text", "wplivechat") ?>:</td>
|
451 |
+
<td>
|
452 |
+
<input id="wplc_pro_sst1" name="wplc_pro_sst1" type="text" size="50" maxlength="30" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_pro_sst1']) ?>" /> <br />
|
453 |
+
<input id="wplc_pro_sst2" name="wplc_pro_sst2" type="text" size="50" maxlength="70" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_pro_sst2']) ?>" /> <br />
|
454 |
+
</td>
|
455 |
+
</tr>
|
456 |
+
<tr class="wplc_localization_strings">
|
457 |
+
<td width="200" valign="top"><?php _e("Reactivate Chat Section Text", "wplivechat") ?>:</td>
|
458 |
+
<td>
|
459 |
+
<input id="wplc_pro_tst1" name="wplc_pro_tst1" type="text" size="50" maxlength="50" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_pro_tst1']) ?>" /> <br />
|
460 |
Â
|
461 |
Â
|
462 |
+
</td>
|
463 |
+
</tr>
|
464 |
+
<tr class="wplc_localization_strings">
|
465 |
+
<td width="200" valign="top"><?php _e("User chat welcome", "wplivechat") ?>:</td>
|
466 |
+
<td>
|
467 |
+
<input id="wplc_user_welcome_chat" name="wplc_user_welcome_chat" type="text" size="50" maxlength="150" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_user_welcome_chat']) ?>" /> <br />
|
468 |
+
</td>
|
469 |
+
</tr>
|
470 |
+
<tr class="wplc_localization_strings">
|
471 |
+
<td width="200" valign="top"><?php _e("Other text", "wplivechat") ?>:</td>
|
472 |
+
<td>
|
473 |
+
<input id="wplc_user_enter" name="wplc_user_enter" type="text" size="50" maxlength="150" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_user_enter']) ?>" /> <?php _e('This text is shown above the user chat input field', 'wplivechat'); ?><br />
|
474 |
+
</td>
|
475 |
+
</tr>
|
476 |
Â
<style>
|
477 |
Â
.wplc_animation_block div{
|
478 |
Â
display: inline-block;
|
497 |
Â
box-shadow: 2px 2px 2px #CCC;
|
498 |
Â
}
|
499 |
Â
</style>
|
500 |
+
<tr>
|
501 |
+
<th><label for=""><?php _e('Choose an animation', 'sola_t'); ?></label></th>
|
Â
|
|
Â
|
|
Â
|
|
502 |
Â
|
503 |
+
<td>
|
504 |
+
<div class='wplc_animation_block'>
|
505 |
+
<div class='wplc_animation_image <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-1') {
|
506 |
+
echo 'wplc_animation_active';
|
507 |
+
} ?>' id='wplc_animation_1'>
|
508 |
+
<i class="fa fa-arrow-circle-up wplc_orange"></i>
|
509 |
+
<p><?php _e('Slide Up', 'wplivechat'); ?></p>
|
510 |
+
</div>
|
511 |
+
<div class='wplc_animation_image <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-2') {
|
512 |
+
echo 'wplc_animation_active';
|
513 |
+
} ?>' id='wplc_animation_2'>
|
514 |
+
<i class="fa fa-arrows-h wplc_red"></i>
|
515 |
+
<p><?php _e('Slide From The Side', 'wplivechat'); ?></p>
|
516 |
+
</div>
|
517 |
+
<div class='wplc_animation_image <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-3') {
|
518 |
+
echo 'wplc_animation_active';
|
519 |
+
} ?>' id='wplc_animation_3'>
|
520 |
+
<i class="fa fa-arrows-alt wplc_orange"></i>
|
521 |
+
<p><?php _e('Fade In', 'wplivechat'); ?></p>
|
522 |
+
</div>
|
523 |
+
<div class='wplc_animation_image <?php if ((isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-4') || !isset($wplc_settings['wplc_animation'])) {
|
524 |
+
echo 'wplc_animation_active';
|
525 |
+
} ?>' id='wplc_animation_4'>
|
526 |
+
<i class="fa fa-thumb-tack wplc_red"></i>
|
527 |
+
<p><?php _e('No Animation', 'wplivechat'); ?></p>
|
528 |
+
</div>
|
529 |
+
</div>
|
530 |
+
<input type="radio" name="wplc_animation" value="animation-1" class="wplc_hide_input" id="wplc_rb_animation_1" class='wplc_hide_input' <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-1') {
|
531 |
+
echo 'checked';
|
532 |
+
} ?>/>
|
533 |
+
<input type="radio" name="wplc_animation" value="animation-2" class="wplc_hide_input" id="wplc_rb_animation_2" class='wplc_hide_input' <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-2') {
|
534 |
+
echo 'checked';
|
535 |
+
} ?>/>
|
536 |
+
<input type="radio" name="wplc_animation" value="animation-3" class="wplc_hide_input" id="wplc_rb_animation_3" class='wplc_hide_input' <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-3') {
|
537 |
+
echo 'checked';
|
538 |
+
} ?>/>
|
539 |
+
<input type="radio" name="wplc_animation" value="animation-4" class="wplc_hide_input" id="wplc_rb_animation_4" class='wplc_hide_input' <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-4') {
|
540 |
+
echo 'checked';
|
541 |
+
} ?>/>
|
542 |
+
</td>
|
543 |
+
</tr>
|
544 |
Â
</table>
|
545 |
Â
</div>
|
546 |
Â
<div id="tabs-5">
|
547 |
Â
|
548 |
Â
|
549 |
+
<?php do_action("wplc_hook_agents_settings"); ?>
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
550 |
Â
|
551 |
Â
|
552 |
Â
</div>
|
565 |
Â
?></textarea>
|
566 |
Â
<p class="description"><?php _e('Blocking a user\'s IP Address here will hide the chat window from them, preventing them from chatting with you. Each IP Address must be on a new line', 'wplivechat'); ?></p>
|
567 |
Â
</div>
|
568 |
+
|
569 |
+
<?php do_action("wplc_hook_settings_page_more_tabs"); ?>
|
570 |
+
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
571 |
Â
</div>
|
572 |
Â
<p class='submit'><input type='submit' name='wplc_save_settings' class='button-primary' value='<?php _e("Save Settings","wplivechat")?>' /></p>
|
573 |
Â
</form>
|
includes/update_control.class.php
ADDED
@@ -0,0 +1,177 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
final class wplc_update_control {
|
4 |
+
|
5 |
+
private static $instance;
|
6 |
+
private $wplc_api_url;
|
7 |
+
private $wplc_api_slug;
|
8 |
+
private $wplc_api_key;
|
9 |
+
private $wplc_extension_string;
|
10 |
+
private $wplc_option;
|
11 |
+
private $wplc_button;
|
12 |
+
private $wplc_form_name;
|
13 |
+
private $wplc_option_is_valid;
|
14 |
+
|
15 |
+
|
16 |
+
public function set_slug($slug) {
|
17 |
+
$this->wplc_api_slug = $slug;
|
18 |
+
$this->wplc_option = $slug."_key";
|
19 |
+
$this->wplc_option_is_valid = $slug."_isvalid";
|
20 |
+
$this->wplc_button = $slug."_button";
|
21 |
+
$this->wplc_form_name = $slug."_form";
|
22 |
+
}
|
23 |
+
|
24 |
+
public function set_api($api) {
|
25 |
+
$this->wplc_api_key = $api;
|
26 |
+
}
|
27 |
+
public function set_path($path) {
|
28 |
+
$this->wplc_path = $path;
|
29 |
+
}
|
30 |
+
public function set_title($title) {
|
31 |
+
$this->wplc_title = $title;
|
32 |
+
}
|
33 |
+
public function __clone() {
|
34 |
+
// Cloning instances of the class is forbidden
|
35 |
+
exit();
|
36 |
+
}
|
37 |
+
public function __wakeup() {
|
38 |
+
// Unserializing instances of the class is forbidden
|
39 |
+
exit();
|
40 |
+
}
|
41 |
+
|
42 |
+
public function activate() {
|
43 |
+
$this->wplc_extension_string = $this->wplc_title;
|
44 |
+
$this->wplc_api_url = 'http://ccplugins.co/api-control/';
|
45 |
+
|
46 |
+
|
47 |
+
add_filter('pre_set_site_transient_update_plugins', array( $this, 'wplc_check_for_plugin_update' ));
|
48 |
+
add_filter('plugins_api', array( $this, 'wplc_plugin_api_call' ), 10, 3);
|
49 |
+
add_filter("wplc_filter_api_page",array( $this, "wplc_filter_control_api_page" ),10,1);
|
50 |
+
add_action("admin_init",array( $this, "wplc_save_api" ));
|
51 |
+
add_action("after_plugin_row_{$this->wplc_path}", array( $this, "wplc_plugin_row" ), 10, 3 );
|
52 |
+
}
|
53 |
+
|
54 |
+
public function wplc_check_for_plugin_update($checked_data) {
|
55 |
+
global $wp_version;
|
56 |
+
|
57 |
+
//Comment out these two lines during testing.
|
58 |
+
if (empty($checked_data->checked))
|
59 |
+
return $checked_data;
|
60 |
+
|
61 |
+
$args = array(
|
62 |
+
'slug' => $this->wplc_api_slug,
|
63 |
+
'version' => $checked_data->checked[$this->wplc_api_slug . '/' . $this->wplc_api_slug . '.php'],
|
64 |
+
);
|
65 |
+
$request_string = array(
|
66 |
+
'body' => array(
|
67 |
+
'action' => 'basic_check',
|
68 |
+
'request' => serialize($args),
|
69 |
+
'api_key' => get_option($this->wplc_option),
|
70 |
+
'd' => get_option('siteurl'),
|
71 |
+
'ip' => $_SERVER['SERVER_ADDR']
|
72 |
+
),
|
73 |
+
'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo('url')
|
74 |
+
);
|
75 |
+
|
76 |
+
// Start checking for an update
|
77 |
+
$raw_response = wp_remote_post($this->wplc_api_url, $request_string);
|
78 |
+
|
79 |
+
|
80 |
+
if (!is_wp_error($raw_response) && ($raw_response['response']['code'] == 200))
|
81 |
+
$response = unserialize($raw_response['body']);
|
82 |
+
|
83 |
+
if (is_object($response) && !empty($response)) // Feed the update data into WP updater
|
84 |
+
$checked_data->response[$this->wplc_api_slug . '/' . $this->wplc_api_slug . '.php'] = $response;
|
85 |
+
|
86 |
+
return $checked_data;
|
87 |
+
}
|
88 |
+
|
89 |
+
public function wplc_plugin_api_call($def, $action, $args) {
|
90 |
+
|
91 |
+
global $wp_version;
|
92 |
+
|
93 |
+
if (!isset($args->slug) || ($args->slug != $this->wplc_api_slug))
|
94 |
+
return false;
|
95 |
+
|
96 |
+
// Get the current version
|
97 |
+
$plugin_info = get_site_transient('update_plugins');
|
98 |
+
$current_version = $plugin_info->checked[$this->wplc_api_slug . '/' . $this->wplc_api_slug . '.php'];
|
99 |
+
$args->version = $current_version;
|
100 |
+
|
101 |
+
$request_string = array(
|
102 |
+
'body' => array(
|
103 |
+
'action' => $action,
|
104 |
+
'request' => serialize($args),
|
105 |
+
'api_key' => get_option($this->wplc_option),
|
106 |
+
'd' => get_option('siteurl'),
|
107 |
+
'ip' => $_SERVER['SERVER_ADDR']
|
108 |
+
),
|
109 |
+
'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo('url')
|
110 |
+
);
|
111 |
+
|
112 |
+
$request = wp_remote_post($this->wplc_api_url, $request_string);
|
113 |
+
|
114 |
+
if (is_wp_error($request)) {
|
115 |
+
$res = new WP_Error('plugins_api_failed', __('An Unexpected HTTP Error occurred during the API request.</p> <p><a href="?" onclick="document.location.reload(); return false;">Try again</a>'), $request->get_error_message());
|
116 |
+
} else {
|
117 |
+
$res = unserialize($request['body']);
|
118 |
+
|
119 |
+
if ($res === false)
|
120 |
+
$res = new WP_Error('plugins_api_failed', __('An unknown error occurred'), $request['body']);
|
121 |
+
}
|
122 |
+
|
123 |
+
return $res;
|
124 |
+
}
|
125 |
+
|
126 |
+
public function wplc_filter_control_api_page($page_content) {
|
127 |
+
$args = array(
|
128 |
+
'slug' => $this->wplc_api_slug,
|
129 |
+
);
|
130 |
+
$data_array = array(
|
131 |
+
'method' => 'POST',
|
132 |
+
'body' => array(
|
133 |
+
'action' => 'api_validation',
|
134 |
+
'd' => get_option('siteurl'),
|
135 |
+
'request' => serialize($args),
|
136 |
+
'api_key' => get_option($this->wplc_option)
|
137 |
+
));
|
138 |
+
$response = wp_remote_post($this->wplc_api_url, $data_array);
|
139 |
+
if (is_array($response)) {
|
140 |
+
if ( $response['response']['code'] == "200" ) {
|
141 |
+
$data = $response['body'];
|
142 |
+
$data = unserialize($data);
|
143 |
+
} else {
|
144 |
+
$data = array("message"=>"Unable to contact the host server at this point. Please try again later.");
|
145 |
+
}
|
146 |
+
} else {
|
147 |
+
$data = array("message"=>"Unable to contact the host server at this point. Please try again later.");
|
148 |
+
}
|
149 |
+
$data_array = array(
|
150 |
+
"data" => $data,
|
151 |
+
"string" => $this->wplc_extension_string,
|
152 |
+
"form_name" => $this->wplc_form_name,
|
153 |
+
"option_name" => $this->wplc_option,
|
154 |
+
"button" => $this->wplc_button,
|
155 |
+
"is_valid" => $this->wplc_option_is_valid
|
156 |
+
|
157 |
+
);
|
158 |
+
if (function_exists("wplc_build_api_check")) { return wplc_build_api_check($page_content,$data_array); }
|
159 |
+
return $page_content;
|
160 |
+
|
161 |
+
}
|
162 |
+
|
163 |
+
public function wplc_save_api() {
|
164 |
+
|
165 |
+
if(isset($_POST[$this->wplc_button])){
|
166 |
+
if(isset($_POST[$this->wplc_option])){
|
167 |
+
update_option($this->wplc_option, sanitize_text_field($_POST[$this->wplc_option]));
|
168 |
+
}
|
169 |
+
}
|
170 |
+
}
|
171 |
+
public function wplc_plugin_row( $plugin_file, $plugin_data, $status ) {
|
172 |
+
if (!get_option($this->wplc_option_is_valid)) {
|
173 |
+
if (function_exists("wplc_plugin_row_invalid_api")) { wplc_plugin_row_invalid_api(); }
|
174 |
+
}
|
175 |
+
}
|
176 |
+
|
177 |
+
}
|
includes/welcome_page.php
CHANGED
@@ -3,9 +3,10 @@
|
|
3 |
Â
<h1 style="font-weight: 300; font-size: 50px; line-height: 50px;">
|
4 |
Â
<?php _e("Welcome to ",'wplivechat'); ?>
|
5 |
Â
<strong style='color: #ec822c;'>WP Live Chat Support</strong>
|
6 |
-
<small><?php _e('Version
|
7 |
Â
</h1>
|
8 |
-
<div
|
Â
|
|
9 |
Â
|
10 |
Â
<h2 style="font-size: 25px;"><?php _e('How did you find us?', 'wplivechat'); ?></h2>
|
11 |
Â
<form method="post" name="wplc_find_us_form" style="font-size: 16px;">
|
3 |
Â
<h1 style="font-weight: 300; font-size: 50px; line-height: 50px;">
|
4 |
Â
<?php _e("Welcome to ",'wplivechat'); ?>
|
5 |
Â
<strong style='color: #ec822c;'>WP Live Chat Support</strong>
|
6 |
+
<small><?php _e('Version 6', 'wplivechat'); ?></small>
|
7 |
Â
</h1>
|
8 |
+
<div style="margin: 0;"><h2><?php _e('The most popular live chat plugin!', 'wplivechat'); ?></h2></div>
|
9 |
+
<hr />
|
10 |
Â
|
11 |
Â
<h2 style="font-size: 25px;"><?php _e('How did you find us?', 'wplivechat'); ?></h2>
|
12 |
Â
<form method="post" name="wplc_find_us_form" style="font-size: 16px;">
|
js/jquery-cookie.js
CHANGED
@@ -1,117 +1,145 @@
|
|
1 |
Â
/*!
|
2 |
-
*
|
3 |
-
* https://github.com/
|
4 |
Â
*
|
5 |
-
* Copyright 2006,
|
6 |
Â
* Released under the MIT license
|
7 |
Â
*/
|
8 |
Â
(function (factory) {
|
9 |
Â
if (typeof define === 'function' && define.amd) {
|
10 |
-
|
11 |
-
define(['jquery'], factory);
|
12 |
Â
} else if (typeof exports === 'object') {
|
13 |
-
|
14 |
-
factory(require('jquery'));
|
15 |
Â
} else {
|
16 |
-
|
17 |
-
factory(
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
18 |
Â
}
|
19 |
-
}(function (
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
return config.raw ? s : decodeURIComponent(s);
|
29 |
-
}
|
30 |
-
|
31 |
-
function stringifyCookieValue(value) {
|
32 |
-
return encode(config.json ? JSON.stringify(value) : String(value));
|
33 |
-
}
|
34 |
-
|
35 |
-
function parseCookieValue(s) {
|
36 |
-
if (s.indexOf('"') === 0) {
|
37 |
-
// This is a quoted cookie as according to RFC2068, unescape...
|
38 |
-
s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
|
39 |
Â
}
|
40 |
-
|
41 |
-
try {
|
42 |
-
// Replace server-side written pluses with spaces.
|
43 |
-
// If we can't decode the cookie, ignore it, it's unusable.
|
44 |
-
// If we can't parse the cookie, ignore it, it's unusable.
|
45 |
-
s = decodeURIComponent(s.replace(pluses, ' '));
|
46 |
-
return config.json ? JSON.parse(s) : s;
|
47 |
-
} catch(e) {}
|
48 |
-
}
|
49 |
-
|
50 |
-
function read(s, converter) {
|
51 |
-
var value = config.raw ? s : parseCookieValue(s);
|
52 |
-
return $.isFunction(converter) ? converter(value) : value;
|
53 |
Â
}
|
54 |
Â
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
65 |
Â
}
|
66 |
Â
|
67 |
-
|
68 |
-
encode(key), '=', stringifyCookieValue(value),
|
69 |
-
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
|
70 |
-
options.path ? '; path=' + options.path : '',
|
71 |
-
options.domain ? '; domain=' + options.domain : '',
|
72 |
-
options.secure ? '; secure' : ''
|
73 |
-
].join(''));
|
74 |
-
}
|
75 |
-
|
76 |
-
// Read
|
77 |
-
|
78 |
-
var result = key ? undefined : {};
|
79 |
Â
|
80 |
-
|
81 |
-
|
82 |
-
// calling $.cookie().
|
83 |
-
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
84 |
-
|
85 |
-
for (var i = 0, l = cookies.length; i < l; i++) {
|
86 |
-
var parts = cookies[i].split('=');
|
87 |
-
var name = decode(parts.shift());
|
88 |
-
var cookie = parts.join('=');
|
89 |
-
|
90 |
-
if (key && key === name) {
|
91 |
-
// If second argument (value) is a function it's a converter...
|
92 |
-
result = read(cookie, value);
|
93 |
-
break;
|
94 |
Â
}
|
95 |
Â
|
96 |
-
//
|
97 |
-
|
98 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
99 |
Â
}
|
Â
|
|
Â
|
|
100 |
Â
}
|
101 |
Â
|
102 |
-
|
103 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
104 |
Â
|
105 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
106 |
Â
|
107 |
-
|
108 |
-
if ($.cookie(key) === undefined) {
|
109 |
-
return false;
|
110 |
-
}
|
111 |
Â
|
112 |
-
|
113 |
-
|
114 |
-
return !$.cookie(key);
|
115 |
-
};
|
116 |
Â
|
Â
|
|
117 |
Â
}));
|
1 |
Â
/*!
|
2 |
+
* JavaScript Cookie v2.1.0
|
3 |
+
* https://github.com/js-cookie/js-cookie
|
4 |
Â
*
|
5 |
+
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
6 |
Â
* Released under the MIT license
|
7 |
Â
*/
|
8 |
Â
(function (factory) {
|
9 |
Â
if (typeof define === 'function' && define.amd) {
|
10 |
+
define(factory);
|
Â
|
|
11 |
Â
} else if (typeof exports === 'object') {
|
12 |
+
module.exports = factory();
|
Â
|
|
13 |
Â
} else {
|
14 |
+
var _OldCookies = window.Cookies;
|
15 |
+
var api = window.Cookies = factory();
|
16 |
+
api.noConflict = function () {
|
17 |
+
window.Cookies = _OldCookies;
|
18 |
+
return api;
|
19 |
+
};
|
20 |
Â
}
|
21 |
+
}(function () {
|
22 |
+
function extend () {
|
23 |
+
var i = 0;
|
24 |
+
var result = {};
|
25 |
+
for (; i < arguments.length; i++) {
|
26 |
+
var attributes = arguments[ i ];
|
27 |
+
for (var key in attributes) {
|
28 |
+
result[key] = attributes[key];
|
29 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
30 |
Â
}
|
31 |
+
return result;
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
32 |
Â
}
|
33 |
Â
|
34 |
+
function init (converter) {
|
35 |
+
function api (key, value, attributes) {
|
36 |
+
var result;
|
37 |
+
|
38 |
+
// Write
|
39 |
+
|
40 |
+
if (arguments.length > 1) {
|
41 |
+
attributes = extend({
|
42 |
+
path: '/'
|
43 |
+
}, api.defaults, attributes);
|
44 |
+
|
45 |
+
if (typeof attributes.expires === 'number') {
|
46 |
+
var expires = new Date();
|
47 |
+
expires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5);
|
48 |
+
attributes.expires = expires;
|
49 |
+
}
|
50 |
+
|
51 |
+
try {
|
52 |
+
result = JSON.stringify(value);
|
53 |
+
if (/^[\{\[]/.test(result)) {
|
54 |
+
value = result;
|
55 |
+
}
|
56 |
+
} catch (e) {}
|
57 |
+
|
58 |
+
if (!converter.write) {
|
59 |
+
value = encodeURIComponent(String(value))
|
60 |
+
.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
|
61 |
+
} else {
|
62 |
+
value = converter.write(value, key);
|
63 |
+
}
|
64 |
+
|
65 |
+
key = encodeURIComponent(String(key));
|
66 |
+
key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);
|
67 |
+
key = key.replace(/[\(\)]/g, escape);
|
68 |
+
|
69 |
+
return (document.cookie = [
|
70 |
+
key, '=', value,
|
71 |
+
attributes.expires && '; expires=' + attributes.expires.toUTCString(), // use expires attribute, max-age is not supported by IE
|
72 |
+
attributes.path && '; path=' + attributes.path,
|
73 |
+
attributes.domain && '; domain=' + attributes.domain,
|
74 |
+
attributes.secure ? '; secure' : ''
|
75 |
+
].join(''));
|
76 |
Â
}
|
77 |
Â
|
78 |
+
// Read
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
79 |
Â
|
80 |
+
if (!key) {
|
81 |
+
result = {};
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
82 |
Â
}
|
83 |
Â
|
84 |
+
// To prevent the for loop in the first place assign an empty array
|
85 |
+
// in case there are no cookies at all. Also prevents odd result when
|
86 |
+
// calling "get()"
|
87 |
+
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
88 |
+
var rdecode = /(%[0-9A-Z]{2})+/g;
|
89 |
+
var i = 0;
|
90 |
+
|
91 |
+
for (; i < cookies.length; i++) {
|
92 |
+
var parts = cookies[i].split('=');
|
93 |
+
var name = parts[0].replace(rdecode, decodeURIComponent);
|
94 |
+
var cookie = parts.slice(1).join('=');
|
95 |
+
|
96 |
+
if (cookie.charAt(0) === '"') {
|
97 |
+
cookie = cookie.slice(1, -1);
|
98 |
+
}
|
99 |
+
|
100 |
+
try {
|
101 |
+
cookie = converter.read ?
|
102 |
+
converter.read(cookie, name) : converter(cookie, name) ||
|
103 |
+
cookie.replace(rdecode, decodeURIComponent);
|
104 |
+
|
105 |
+
if (this.json) {
|
106 |
+
try {
|
107 |
+
cookie = JSON.parse(cookie);
|
108 |
+
} catch (e) {}
|
109 |
+
}
|
110 |
+
|
111 |
+
if (key === name) {
|
112 |
+
result = cookie;
|
113 |
+
break;
|
114 |
+
}
|
115 |
+
|
116 |
+
if (!key) {
|
117 |
+
result[name] = cookie;
|
118 |
+
}
|
119 |
+
} catch (e) {}
|
120 |
Â
}
|
121 |
+
|
122 |
+
return result;
|
123 |
Â
}
|
124 |
Â
|
125 |
+
api.get = api.set = api;
|
126 |
+
api.getJSON = function () {
|
127 |
+
return api.apply({
|
128 |
+
json: true
|
129 |
+
}, [].slice.call(arguments));
|
130 |
+
};
|
131 |
+
api.defaults = {};
|
132 |
Â
|
133 |
+
api.remove = function (key, attributes) {
|
134 |
+
api(key, '', extend(attributes, {
|
135 |
+
expires: -1
|
136 |
+
}));
|
137 |
+
};
|
138 |
Â
|
139 |
+
api.withConverter = init;
|
Â
|
|
Â
|
|
Â
|
|
140 |
Â
|
141 |
+
return api;
|
142 |
+
}
|
Â
|
|
Â
|
|
143 |
Â
|
144 |
+
return init(function () {});
|
145 |
Â
}));
|
js/wplc_tabs.js
CHANGED
@@ -1,5 +1,163 @@
|
|
1 |
Â
jQuery("document").ready(function() {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2 |
Â
jQuery("#wplc_tabs").tabs();
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3 |
Â
|
4 |
Â
|
5 |
Â
|
1 |
Â
jQuery("document").ready(function() {
|
2 |
+
|
3 |
+
if(jQuery("input[type=radio][name='wplc_mail_type']:checked").val() === "php_mailer"){
|
4 |
+
jQuery("#wplc_smtp_details").show();
|
5 |
+
} else {
|
6 |
+
jQuery("#wplc_smtp_details").hide();
|
7 |
+
}
|
8 |
+
|
9 |
+
jQuery('.wplc_mail_type_radio').click(
|
10 |
+
function(e){
|
11 |
+
if (jQuery(this).is(':checked') && jQuery(this).val() === "php_mailer"){
|
12 |
+
jQuery("#wplc_smtp_details").show();
|
13 |
+
} else {
|
14 |
+
jQuery("#wplc_smtp_details").hide();
|
15 |
+
}
|
16 |
+
});
|
17 |
+
|
18 |
Â
jQuery("#wplc_tabs").tabs();
|
19 |
+
|
20 |
+
|
21 |
+
jQuery(".wplc_hide_input").hide();
|
22 |
+
|
23 |
+
jQuery("#wplc_animation_1").click(function() {
|
24 |
+
jQuery("#wplc_rb_animation_1").attr('checked', true);
|
25 |
+
jQuery("#wplc_rb_animation_2").attr('checked', false);
|
26 |
+
jQuery("#wplc_rb_animation_3").attr('checked', false);
|
27 |
+
jQuery("#wplc_rb_animation_4").attr('checked', false);
|
28 |
+
jQuery("#wplc_animation_1").addClass("wplc_animation_active");
|
29 |
+
jQuery("#wplc_animation_2").removeClass("wplc_animation_active");
|
30 |
+
jQuery("#wplc_animation_3").removeClass("wplc_animation_active");
|
31 |
+
jQuery("#wplc_animation_4").removeClass("wplc_animation_active");
|
32 |
+
});
|
33 |
+
|
34 |
+
jQuery("#wplc_animation_2").click(function() {
|
35 |
+
jQuery("#wplc_rb_animation_1").attr('checked', false);
|
36 |
+
jQuery("#wplc_rb_animation_2").attr('checked', true);
|
37 |
+
jQuery("#wplc_rb_animation_3").attr('checked', false);
|
38 |
+
jQuery("#wplc_rb_animation_4").attr('checked', false);
|
39 |
+
jQuery("#wplc_animation_1").removeClass("wplc_animation_active");
|
40 |
+
jQuery("#wplc_animation_2").addClass("wplc_animation_active");
|
41 |
+
jQuery("#wplc_animation_3").removeClass("wplc_animation_active");
|
42 |
+
jQuery("#wplc_animation_4").removeClass("wplc_animation_active");
|
43 |
+
});
|
44 |
+
|
45 |
+
jQuery("#wplc_animation_3").click(function() {
|
46 |
+
jQuery("#wplc_rb_animation_1").attr('checked', false);
|
47 |
+
jQuery("#wplc_rb_animation_2").attr('checked', false);
|
48 |
+
jQuery("#wplc_rb_animation_3").attr('checked', true);
|
49 |
+
jQuery("#wplc_rb_animation_4").attr('checked', false);
|
50 |
+
jQuery("#wplc_animation_1").removeClass("wplc_animation_active");
|
51 |
+
jQuery("#wplc_animation_2").removeClass("wplc_animation_active");
|
52 |
+
jQuery("#wplc_animation_3").addClass("wplc_animation_active");
|
53 |
+
jQuery("#wplc_animation_4").removeClass("wplc_animation_active");
|
54 |
+
});
|
55 |
+
|
56 |
+
jQuery("#wplc_animation_4").click(function() {
|
57 |
+
jQuery("#wplc_rb_animation_1").attr('checked', false);
|
58 |
+
jQuery("#wplc_rb_animation_2").attr('checked', false);
|
59 |
+
jQuery("#wplc_rb_animation_3").attr('checked', false);
|
60 |
+
jQuery("#wplc_rb_animation_4").attr('checked', true);
|
61 |
+
jQuery("#wplc_animation_1").removeClass("wplc_animation_active");
|
62 |
+
jQuery("#wplc_animation_2").removeClass("wplc_animation_active");
|
63 |
+
jQuery("#wplc_animation_3").removeClass("wplc_animation_active");
|
64 |
+
jQuery("#wplc_animation_4").addClass("wplc_animation_active");
|
65 |
+
});
|
66 |
+
|
67 |
+
|
68 |
+
/* Themes */
|
69 |
+
|
70 |
+
jQuery("#wplc_theme_1").click(function() {
|
71 |
+
jQuery("#wplc_rb_theme_1").attr('checked', true);
|
72 |
+
jQuery("#wplc_rb_theme_2").attr('checked', false);
|
73 |
+
jQuery("#wplc_rb_theme_3").attr('checked', false);
|
74 |
+
jQuery("#wplc_rb_theme_4").attr('checked', false);
|
75 |
+
jQuery("#wplc_rb_theme_5").attr('checked', false);
|
76 |
+
jQuery("#wplc_rb_theme_6").attr('checked', false);
|
77 |
+
jQuery("#wplc_theme_1").addClass("wplc_theme_active");
|
78 |
+
jQuery("#wplc_theme_2").removeClass("wplc_theme_active");
|
79 |
+
jQuery("#wplc_theme_3").removeClass("wplc_theme_active");
|
80 |
+
jQuery("#wplc_theme_4").removeClass("wplc_theme_active");
|
81 |
+
jQuery("#wplc_theme_5").removeClass("wplc_theme_active");
|
82 |
+
jQuery("#wplc_theme_6").removeClass("wplc_theme_active");
|
83 |
+
});
|
84 |
+
|
85 |
+
jQuery("#wplc_theme_2").click(function() {
|
86 |
+
jQuery("#wplc_rb_theme_1").attr('checked', false);
|
87 |
+
jQuery("#wplc_rb_theme_2").attr('checked', true);
|
88 |
+
jQuery("#wplc_rb_theme_3").attr('checked', false);
|
89 |
+
jQuery("#wplc_rb_theme_4").attr('checked', false);
|
90 |
+
jQuery("#wplc_rb_theme_5").attr('checked', false);
|
91 |
+
jQuery("#wplc_rb_theme_6").attr('checked', false);
|
92 |
+
jQuery("#wplc_theme_1").removeClass("wplc_theme_active");
|
93 |
+
jQuery("#wplc_theme_2").addClass("wplc_theme_active");
|
94 |
+
jQuery("#wplc_theme_3").removeClass("wplc_theme_active");
|
95 |
+
jQuery("#wplc_theme_4").removeClass("wplc_theme_active");
|
96 |
+
jQuery("#wplc_theme_5").removeClass("wplc_theme_active");
|
97 |
+
jQuery("#wplc_theme_6").removeClass("wplc_theme_active");
|
98 |
+
});
|
99 |
+
|
100 |
+
jQuery("#wplc_theme_3").click(function() {
|
101 |
+
jQuery("#wplc_rb_theme_1").attr('checked', false);
|
102 |
+
jQuery("#wplc_rb_theme_2").attr('checked', false);
|
103 |
+
jQuery("#wplc_rb_theme_3").attr('checked', true);
|
104 |
+
jQuery("#wplc_rb_theme_4").attr('checked', false);
|
105 |
+
jQuery("#wplc_rb_theme_5").attr('checked', false);
|
106 |
+
jQuery("#wplc_rb_theme_6").attr('checked', false);
|
107 |
+
jQuery("#wplc_theme_1").removeClass("wplc_theme_active");
|
108 |
+
jQuery("#wplc_theme_2").removeClass("wplc_theme_active");
|
109 |
+
jQuery("#wplc_theme_3").addClass("wplc_theme_active");
|
110 |
+
jQuery("#wplc_theme_4").removeClass("wplc_theme_active");
|
111 |
+
jQuery("#wplc_theme_5").removeClass("wplc_theme_active");
|
112 |
+
jQuery("#wplc_theme_6").removeClass("wplc_theme_active");
|
113 |
+
});
|
114 |
+
|
115 |
+
jQuery("#wplc_theme_4").click(function() {
|
116 |
+
jQuery("#wplc_rb_theme_1").attr('checked', false);
|
117 |
+
jQuery("#wplc_rb_theme_2").attr('checked', false);
|
118 |
+
jQuery("#wplc_rb_theme_3").attr('checked', false);
|
119 |
+
jQuery("#wplc_rb_theme_4").attr('checked', true);
|
120 |
+
jQuery("#wplc_rb_theme_5").attr('checked', false);
|
121 |
+
jQuery("#wplc_rb_theme_6").attr('checked', false);
|
122 |
+
jQuery("#wplc_theme_1").removeClass("wplc_theme_active");
|
123 |
+
jQuery("#wplc_theme_2").removeClass("wplc_theme_active");
|
124 |
+
jQuery("#wplc_theme_3").removeClass("wplc_theme_active");
|
125 |
+
jQuery("#wplc_theme_4").addClass("wplc_theme_active");
|
126 |
+
jQuery("#wplc_theme_5").removeClass("wplc_theme_active");
|
127 |
+
jQuery("#wplc_theme_6").removeClass("wplc_theme_active");
|
128 |
+
});
|
129 |
+
|
130 |
+
jQuery("#wplc_theme_5").click(function() {
|
131 |
+
jQuery("#wplc_rb_theme_1").attr('checked', false);
|
132 |
+
jQuery("#wplc_rb_theme_2").attr('checked', false);
|
133 |
+
jQuery("#wplc_rb_theme_3").attr('checked', false);
|
134 |
+
jQuery("#wplc_rb_theme_4").attr('checked', false);
|
135 |
+
jQuery("#wplc_rb_theme_5").attr('checked', true);
|
136 |
+
jQuery("#wplc_rb_theme_6").attr('checked', false);
|
137 |
+
jQuery("#wplc_theme_1").removeClass("wplc_theme_active");
|
138 |
+
jQuery("#wplc_theme_2").removeClass("wplc_theme_active");
|
139 |
+
jQuery("#wplc_theme_3").removeClass("wplc_theme_active");
|
140 |
+
jQuery("#wplc_theme_4").removeClass("wplc_theme_active");
|
141 |
+
jQuery("#wplc_theme_5").addClass("wplc_theme_active");
|
142 |
+
jQuery("#wplc_theme_6").removeClass("wplc_theme_active");
|
143 |
+
});
|
144 |
+
|
145 |
+
jQuery("#wplc_theme_6").click(function() {
|
146 |
+
jQuery("#wplc_rb_theme_1").attr('checked', false);
|
147 |
+
jQuery("#wplc_rb_theme_2").attr('checked', false);
|
148 |
+
jQuery("#wplc_rb_theme_3").attr('checked', false);
|
149 |
+
jQuery("#wplc_rb_theme_4").attr('checked', false);
|
150 |
+
jQuery("#wplc_rb_theme_5").attr('checked', false);
|
151 |
+
jQuery("#wplc_rb_theme_6").attr('checked', true);
|
152 |
+
jQuery("#wplc_theme_1").removeClass("wplc_theme_active");
|
153 |
+
jQuery("#wplc_theme_2").removeClass("wplc_theme_active");
|
154 |
+
jQuery("#wplc_theme_3").removeClass("wplc_theme_active");
|
155 |
+
jQuery("#wplc_theme_4").removeClass("wplc_theme_active");
|
156 |
+
jQuery("#wplc_theme_5").removeClass("wplc_theme_active");
|
157 |
+
jQuery("#wplc_theme_6").addClass("wplc_theme_active");
|
158 |
+
});
|
159 |
+
|
160 |
+
|
161 |
Â
|
162 |
Â
|
163 |
Â
|
js/wplc_u.js
CHANGED
@@ -25,25 +25,23 @@ jQuery(document).ready(function() {
|
|
25 |
Â
var wplc_init_chat_box_check = true;
|
26 |
Â
var wplc_cid = null;
|
27 |
Â
|
28 |
-
wplc_cid =
|
29 |
Â
|
30 |
Â
if(typeof wplc_cid === 'undefined'){
|
31 |
Â
wplc_cid = null;
|
32 |
Â
} else {
|
33 |
-
wplc_cid =
|
34 |
Â
}
|
35 |
Â
|
36 |
-
wplc_check_hide_cookie =
|
37 |
-
wplc_check_minimize_cookie =
|
38 |
-
wplc_chat_status =
|
39 |
-
wplc_cookie_name =
|
40 |
-
wplc_cookie_email =
|
41 |
Â
// Always start on 5 - ajax will then return chat status if active
|
42 |
-
|
43 |
Â
wplc_chat_status = 5;
|
44 |
Â
|
45 |
-
// var wplc_details = 1;
|
46 |
-
// console.log(wplc_details);
|
47 |
Â
|
48 |
Â
var wplc_run = true;
|
49 |
Â
|
@@ -53,7 +51,7 @@ jQuery(document).ready(function() {
|
|
53 |
Â
security: wplc_nonce
|
54 |
Â
};
|
55 |
Â
jQuery.ajax({
|
56 |
-
url:
|
57 |
Â
data:data,
|
58 |
Â
type:"POST",
|
59 |
Â
success: function(response) {
|
@@ -73,10 +71,11 @@ jQuery(document).ready(function() {
|
|
73 |
Â
wplc_email: wplc_cookie_email,
|
74 |
Â
status:wplc_chat_status,
|
75 |
Â
wplcsession:wplc_session_variable,
|
Â
|
|
76 |
Â
};
|
77 |
Â
// ajax long polling function
|
78 |
Â
wplc_call_to_server_chat(data);
|
79 |
-
if(wplc_cid !== null && wplc_init_chat_box_check == true){
|
80 |
Â
wplc_init_chat_box(wplc_cid,wplc_chat_status);
|
81 |
Â
}
|
82 |
Â
|
@@ -97,19 +96,20 @@ jQuery(document).ready(function() {
|
|
97 |
Â
success: function(response) {
|
98 |
Â
|
99 |
Â
if(response){
|
Â
|
|
100 |
Â
response = JSON.parse(response);
|
101 |
Â
data['wplc_name'] = response['wplc_name'];
|
102 |
Â
data['wplc_email'] = response['wplc_email'];
|
103 |
Â
data['action_2'] = "";
|
104 |
Â
data['cid'] = response['cid'];
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
Â
|
109 |
Â
wplc_cid = jQuery.trim(response['cid']);
|
110 |
Â
wplc_chat_status = response['status'];
|
111 |
-
|
112 |
-
|
113 |
Â
// handle response
|
114 |
Â
if(data['status'] == response['status']){
|
115 |
Â
if(data['status'] == 5 && wplc_init_chat_box_check == true){ // open chat box on load
|
@@ -128,31 +128,35 @@ jQuery(document).ready(function() {
|
|
128 |
Â
} else {
|
129 |
Â
|
130 |
Â
data['status'] = wplc_chat_status;
|
131 |
-
|
132 |
Â
if(response['status'] == 0){ // no answer from admin
|
133 |
Â
jQuery("#wp-live-chat-3").hide();
|
134 |
Â
jQuery("#wp-live-chat-react").show().empty().append("<center>"+response['data']+"</center>");
|
135 |
Â
}
|
136 |
Â
else if(response['status'] == 8){ // chat has been ended by admin
|
137 |
Â
wplc_run = false;
|
138 |
-
|
139 |
-
jQuery('#wplc_chatbox').scrollTop(height);
|
140 |
Â
jQuery("#wp-live-chat-minimize").hide();
|
141 |
Â
document.getElementById('wplc_chatmsg').disabled = true;
|
142 |
Â
jQuery("#wplc_chatbox").append("<em>"+response['data']+"</em><br />");
|
143 |
-
|
Â
|
|
144 |
Â
else if(parseInt(response['status']) == 11){ /* use moved on to another page (perhaps in another tab so close this instance */
|
145 |
Â
jQuery("#wp-live-chat").css({ "display" : "none" });
|
146 |
Â
wplc_run = false;
|
147 |
Â
}
|
148 |
-
else if(response['status'] == 3 || response['status'] == 10){ // re-initialize chat
|
149 |
Â
jQuery("#wplc_cid").val(wplc_cid);
|
150 |
-
if(response['status'] == 3){ // only if not minimized open aswell
|
151 |
Â
open_chat();
|
152 |
Â
if(jQuery('#wp-live-chat').hasClass('wplc_left') === true || jQuery('#wp-live-chat').hasClass('wplc_right') === true){
|
153 |
Â
jQuery('#wp-live-chat').height("400px");
|
154 |
Â
}
|
155 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
156 |
Â
if(response['data'] != null){ // append messages to chat area
|
157 |
Â
jQuery("#wplc_chatbox").append(response['data']);
|
158 |
Â
if(response['data']){
|
@@ -198,21 +202,69 @@ jQuery(document).ready(function() {
|
|
198 |
Â
};
|
199 |
Â
|
200 |
Â
function wplc_init_chat_box(cid, status){
|
201 |
-
|
202 |
Â
if(wplc_chat_status == 9 && wplc_check_hide_cookie == "yes"){
|
203 |
Â
|
204 |
Â
} else {
|
205 |
Â
if(wplc_check_hide_cookie != "yes"){
|
206 |
Â
wplc_dc = setTimeout(function (){
|
207 |
-
|
208 |
-
|
209 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
210 |
Â
jQuery("#wp-live-chat-minimize").show();
|
211 |
Â
jQuery("#wp-live-chat-close").show();
|
212 |
Â
jQuery('#wp-live-chat').removeClass("wplc_close");
|
213 |
-
jQuery('#wp-live-chat').addClass("wplc_open")
|
214 |
Â
}
|
215 |
-
}, window.wplc_delay);
|
216 |
Â
}
|
217 |
Â
}
|
218 |
Â
wplc_init_chat_box = false;
|
@@ -297,7 +349,7 @@ jQuery(document).ready(function() {
|
|
297 |
Â
jQuery('#wp-live-chat').removeClass("wplc_open");
|
298 |
Â
//jQuery("#wp-live-chat").css(jQuery("#wp-live-chat").attr("original_pos"), "100px");
|
299 |
Â
jQuery("#wp-live-chat").css("top", "");
|
300 |
-
wplc_chat_status =
|
301 |
Â
jQuery("#wp-live-chat-1").show();
|
302 |
Â
jQuery("#wp-live-chat-1").css('cursor', 'pointer');
|
303 |
Â
jQuery("#wp-live-chat-2").hide();
|
@@ -305,7 +357,7 @@ jQuery(document).ready(function() {
|
|
305 |
Â
jQuery("#wp-live-chat-4").hide();
|
306 |
Â
jQuery("#wp-live-chat-react").hide();
|
307 |
Â
jQuery("#wp-live-chat-minimize").hide();
|
308 |
-
|
309 |
Â
if(wplc_chat_status != 5 && wplc_chat_status != 10 && wplc_chat_status != 9 && wplc_chat_status != 8){
|
310 |
Â
var data = {
|
311 |
Â
action: 'wplc_user_minimize_chat',
|
@@ -314,7 +366,7 @@ jQuery(document).ready(function() {
|
|
314 |
Â
};
|
315 |
Â
|
316 |
Â
jQuery.post(wplc_ajaxurl, data, function(response) {
|
317 |
-
|
318 |
Â
});
|
319 |
Â
}
|
320 |
Â
|
@@ -329,10 +381,12 @@ jQuery(document).ready(function() {
|
|
329 |
Â
jQuery("#wp-live-chat-4").hide();
|
330 |
Â
jQuery("#wp-live-chat-react").hide();
|
331 |
Â
jQuery("#wp-live-chat-minimize").hide();
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
Â
|
|
Â
|
|
336 |
Â
var data = {
|
337 |
Â
action: 'wplc_user_close_chat',
|
338 |
Â
security: wplc_nonce,
|
@@ -340,7 +394,7 @@ jQuery(document).ready(function() {
|
|
340 |
Â
status: wplc_chat_status
|
341 |
Â
};
|
342 |
Â
jQuery.post(wplc_ajaxurl, data, function(response) {
|
343 |
-
|
344 |
Â
|
345 |
Â
});
|
346 |
Â
});
|
@@ -353,7 +407,7 @@ jQuery(document).ready(function() {
|
|
353 |
Â
jQuery("#wp-live-chat-react").hide();
|
354 |
Â
jQuery("#wp-live-chat-header").css('cursor', 'all-scroll');
|
355 |
Â
jQuery("#wp-live-chat-1").css('cursor', 'all-scroll');
|
356 |
-
|
357 |
Â
jQuery("#wp-live-chat-minimize").show();
|
358 |
Â
jQuery("#wp-live-chat-close").show();
|
359 |
Â
jQuery(function() {
|
@@ -366,13 +420,13 @@ jQuery(document).ready(function() {
|
|
366 |
Â
});
|
367 |
Â
});
|
368 |
Â
|
369 |
-
wplc_chat_status =
|
370 |
-
if (wplc_chat_status == 3
|
371 |
Â
jQuery("#wp-live-chat-4").show();
|
372 |
Â
jQuery("#wplc_chatmsg").focus();
|
373 |
Â
jQuery("#wp-live-chat-2").hide();
|
374 |
Â
jQuery("#wp-live-chat-3").hide();
|
375 |
-
|
376 |
Â
|
377 |
Â
var data = {
|
378 |
Â
action: 'wplc_user_maximize_chat',
|
@@ -384,15 +438,18 @@ jQuery(document).ready(function() {
|
|
384 |
Â
//log("user maximized chat success");
|
385 |
Â
});
|
386 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
387 |
Â
|
388 |
Â
else if (wplc_chat_status == 5 || wplc_chat_status == 9 || wplc_chat_status == 8){
|
389 |
Â
|
390 |
Â
if(jQuery("#wp-live-chat-2").is(":visible") === false && jQuery("#wp-live-chat-4").is(":visible") === false){
|
391 |
Â
jQuery("#wp-live-chat-2").show();
|
392 |
-
var wplc_visitor_name =
|
393 |
-
if(
|
394 |
-
jQuery("#wplc_name").val(
|
395 |
-
jQuery("#wplc_email").val(
|
396 |
Â
}
|
397 |
Â
}
|
398 |
Â
}
|
@@ -440,7 +497,7 @@ jQuery(document).ready(function() {
|
|
440 |
Â
var date = new Date();
|
441 |
Â
date.setTime(date.getTime() + (2 * 60 * 1000));
|
442 |
Â
|
443 |
-
wplc_cid =
|
444 |
Â
|
445 |
Â
if (typeof wplc_cid !== "undefined" && wplc_cid !== null) { // we've already recorded a cookie for this person
|
446 |
Â
var data = {
|
@@ -449,7 +506,8 @@ jQuery(document).ready(function() {
|
|
449 |
Â
name: wplc_name,
|
450 |
Â
email: wplc_email,
|
451 |
Â
cid: wplc_cid,
|
452 |
-
wplcsession: wplc_session_variable
|
Â
|
|
453 |
Â
};
|
454 |
Â
} else { // no cookie recorded yet for this visitor
|
455 |
Â
var data = {
|
@@ -457,20 +515,57 @@ jQuery(document).ready(function() {
|
|
457 |
Â
security: wplc_nonce,
|
458 |
Â
name: wplc_name,
|
459 |
Â
email: wplc_email,
|
460 |
-
wplcsession: wplc_session_variable
|
Â
|
|
461 |
Â
};
|
462 |
Â
}
|
463 |
Â
//changed ajax url so wp_mail function will work and not stop plugin from alerting admin there is a pending chat
|
464 |
Â
jQuery.post(wplc_ajaxurl, data, function(response) {
|
465 |
-
|
Â
|
|
Â
|
|
Â
|
|
466 |
Â
|
467 |
-
jQuery.cookie('wplc_name', wplc_name, { path: '/' } );
|
468 |
-
jQuery.cookie('wplc_email', wplc_email, { path: '/' } );
|
469 |
-
//console.log("wplc_start_chat");
|
470 |
Â
wplc_cid = jQuery.trim(response);
|
471 |
Â
});
|
472 |
Â
});
|
473 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
474 |
Â
|
475 |
Â
|
476 |
Â
function wplc_strip(str) {
|
@@ -500,7 +595,7 @@ jQuery(document).ready(function() {
|
|
500 |
Â
|
501 |
Â
var wplc_name = jQuery("#wplc_name").val();
|
502 |
Â
if (typeof wplc_name == "undefined" || wplc_name == null || wplc_name == "") {
|
503 |
-
wplc_name =
|
504 |
Â
}
|
505 |
Â
jQuery("#wplc_chatmsg").val('');
|
506 |
Â
|
@@ -517,10 +612,11 @@ jQuery(document).ready(function() {
|
|
517 |
Â
action: 'wplc_user_send_msg',
|
518 |
Â
security: wplc_nonce,
|
519 |
Â
cid: wplc_cid,
|
520 |
-
msg: wplc_chat
|
Â
|
|
521 |
Â
};
|
522 |
Â
jQuery.post(wplc_ajaxurl, data, function(response) {
|
523 |
-
|
524 |
Â
});
|
525 |
Â
|
526 |
Â
});
|
25 |
Â
var wplc_init_chat_box_check = true;
|
26 |
Â
var wplc_cid = null;
|
27 |
Â
|
28 |
+
wplc_cid = Cookies.get('wplc_cid');
|
29 |
Â
|
30 |
Â
if(typeof wplc_cid === 'undefined'){
|
31 |
Â
wplc_cid = null;
|
32 |
Â
} else {
|
33 |
+
wplc_cid = Cookies.get('wplc_cid');
|
34 |
Â
}
|
35 |
Â
|
36 |
+
wplc_check_hide_cookie = Cookies.get('wplc_hide');
|
37 |
+
wplc_check_minimize_cookie = Cookies.get('wplc_minimize');
|
38 |
+
wplc_chat_status = Cookies.get('wplc_chat_status');
|
39 |
+
wplc_cookie_name = Cookies.get('wplc_name');
|
40 |
+
wplc_cookie_email = Cookies.get('wplc_email');
|
41 |
Â
// Always start on 5 - ajax will then return chat status if active
|
42 |
+
Cookies.set('wplc_chat_status', 5, { expires: 1, path: '/' });
|
43 |
Â
wplc_chat_status = 5;
|
44 |
Â
|
Â
|
|
Â
|
|
45 |
Â
|
46 |
Â
var wplc_run = true;
|
47 |
Â
|
51 |
Â
security: wplc_nonce
|
52 |
Â
};
|
53 |
Â
jQuery.ajax({
|
54 |
+
url: wplc_ajaxurl_site,
|
55 |
Â
data:data,
|
56 |
Â
type:"POST",
|
57 |
Â
success: function(response) {
|
71 |
Â
wplc_email: wplc_cookie_email,
|
72 |
Â
status:wplc_chat_status,
|
73 |
Â
wplcsession:wplc_session_variable,
|
74 |
+
wplc_extra_data:wplc_extra_data
|
75 |
Â
};
|
76 |
Â
// ajax long polling function
|
77 |
Â
wplc_call_to_server_chat(data);
|
78 |
+
if(wplc_cid !== null && wplc_init_chat_box_check == true && wplc_init_chat_box !== false){
|
79 |
Â
wplc_init_chat_box(wplc_cid,wplc_chat_status);
|
80 |
Â
}
|
81 |
Â
|
96 |
Â
success: function(response) {
|
97 |
Â
|
98 |
Â
if(response){
|
99 |
+
|
100 |
Â
response = JSON.parse(response);
|
101 |
Â
data['wplc_name'] = response['wplc_name'];
|
102 |
Â
data['wplc_email'] = response['wplc_email'];
|
103 |
Â
data['action_2'] = "";
|
104 |
Â
data['cid'] = response['cid'];
|
105 |
+
Cookies.set('wplc_cid', response['cid'], { expires: 1, path: '/' });
|
106 |
+
Cookies.set('wplc_name', response['wplc_name'], { expires: 1, path: '/' });
|
107 |
+
Cookies.set('wplc_email', response['wplc_email'], { expires: 1, path: '/' });
|
108 |
Â
|
109 |
Â
wplc_cid = jQuery.trim(response['cid']);
|
110 |
Â
wplc_chat_status = response['status'];
|
111 |
+
Cookies.set('wplc_chat_status', null, { path: '/' });
|
112 |
+
Cookies.set('wplc_chat_status', wplc_chat_status, { expires: 1, path: '/' });
|
113 |
Â
// handle response
|
114 |
Â
if(data['status'] == response['status']){
|
115 |
Â
if(data['status'] == 5 && wplc_init_chat_box_check == true){ // open chat box on load
|
128 |
Â
} else {
|
129 |
Â
|
130 |
Â
data['status'] = wplc_chat_status;
|
131 |
+
Cookies.set('wplc_chat_status', wplc_chat_status, { expires: 1, path: '/' });
|
132 |
Â
if(response['status'] == 0){ // no answer from admin
|
133 |
Â
jQuery("#wp-live-chat-3").hide();
|
134 |
Â
jQuery("#wp-live-chat-react").show().empty().append("<center>"+response['data']+"</center>");
|
135 |
Â
}
|
136 |
Â
else if(response['status'] == 8){ // chat has been ended by admin
|
137 |
Â
wplc_run = false;
|
138 |
+
|
Â
|
|
139 |
Â
jQuery("#wp-live-chat-minimize").hide();
|
140 |
Â
document.getElementById('wplc_chatmsg').disabled = true;
|
141 |
Â
jQuery("#wplc_chatbox").append("<em>"+response['data']+"</em><br />");
|
142 |
+
var height = jQuery('#wplc_chatbox')[0].scrollHeight;
|
143 |
+
jQuery('#wplc_chatbox').scrollTop(height); }
|
144 |
Â
else if(parseInt(response['status']) == 11){ /* use moved on to another page (perhaps in another tab so close this instance */
|
145 |
Â
jQuery("#wp-live-chat").css({ "display" : "none" });
|
146 |
Â
wplc_run = false;
|
147 |
Â
}
|
148 |
+
else if(parseInt(response['status']) == 3 || parseInt(response['status']) == 10){ // re-initialize chat
|
149 |
Â
jQuery("#wplc_cid").val(wplc_cid);
|
150 |
+
if(parseInt(response['status']) == 3) { // only if not minimized open aswell
|
151 |
Â
open_chat();
|
152 |
Â
if(jQuery('#wp-live-chat').hasClass('wplc_left') === true || jQuery('#wp-live-chat').hasClass('wplc_right') === true){
|
153 |
Â
jQuery('#wp-live-chat').height("400px");
|
154 |
Â
}
|
155 |
Â
}
|
156 |
+
if(parseInt(response['status']) == 10) { // only if not minimized open aswell
|
157 |
+
open_chat();
|
158 |
+
|
159 |
+
}
|
160 |
Â
if(response['data'] != null){ // append messages to chat area
|
161 |
Â
jQuery("#wplc_chatbox").append(response['data']);
|
162 |
Â
if(response['data']){
|
202 |
Â
};
|
203 |
Â
|
204 |
Â
function wplc_init_chat_box(cid, status){
|
Â
|
|
205 |
Â
if(wplc_chat_status == 9 && wplc_check_hide_cookie == "yes"){
|
206 |
Â
|
207 |
Â
} else {
|
208 |
Â
if(wplc_check_hide_cookie != "yes"){
|
209 |
Â
wplc_dc = setTimeout(function (){
|
210 |
+
/*
|
211 |
+
* 1- Slide Up
|
212 |
+
* 2- Slide Across (Left/Right)
|
213 |
+
* 3- Slide Down
|
214 |
+
* 4- Fade In
|
215 |
+
*/
|
216 |
+
|
217 |
+
var wplc_window_id = jQuery("#wp-live-chat");
|
218 |
+
|
219 |
+
var wplc_theme_chosen = jQuery(wplc_window_id).attr('wplc_animation');
|
220 |
+
|
221 |
+
switch(wplc_theme_chosen){
|
222 |
+
case 'none':
|
223 |
+
jQuery(wplc_window_id).css('display', 'block');
|
224 |
+
break;
|
225 |
+
case 'animation-1':
|
226 |
+
// Slide Up
|
227 |
+
jQuery(wplc_window_id).animate({'marginBottom' : '0px'}, 1000);
|
228 |
+
break;
|
229 |
+
case 'animation-2-bl':
|
230 |
+
// Slide Accross from left
|
231 |
+
jQuery(wplc_window_id).animate({'left' : '100px'}, 1000);
|
232 |
+
break;
|
233 |
+
case 'animation-2-br':
|
234 |
+
// Slide Accross from right
|
235 |
+
jQuery(wplc_window_id).animate({'right' : '100px'}, 1000);
|
236 |
+
break;
|
237 |
+
case 'animation-2-l':
|
238 |
+
// Slide Accross from left
|
239 |
+
jQuery(wplc_window_id).animate({"left" : '0px'}, 1000);
|
240 |
+
break;
|
241 |
+
case 'animation-2-r':
|
242 |
+
// Slide Accross from right
|
243 |
+
jQuery(wplc_window_id).animate({'right' : '0px'}, 1000);
|
244 |
+
break;
|
245 |
+
case 'animation-3':
|
246 |
+
// Fade In
|
247 |
+
jQuery(wplc_window_id).fadeIn('slow');
|
248 |
+
case 'animation-4':
|
249 |
+
jQuery(wplc_window_id).css('display', 'block');
|
250 |
+
break;
|
251 |
+
default:
|
252 |
+
jQuery(wplc_window_id).css('display', 'block');
|
253 |
+
break;
|
254 |
+
}
|
255 |
+
|
256 |
+
//jQuery("#wp-live-chat").css({ "display" : "block" });
|
257 |
+
if(jQuery("#wp-live-chat").attr('wplc-auto-pop-up') === "1"){
|
258 |
+
|
259 |
+
open_chat();
|
260 |
+
|
261 |
+
/*jQuery("#wp-live-chat-2").css({ "display" : "block" });
|
262 |
Â
jQuery("#wp-live-chat-minimize").show();
|
263 |
Â
jQuery("#wp-live-chat-close").show();
|
264 |
Â
jQuery('#wp-live-chat').removeClass("wplc_close");
|
265 |
+
jQuery('#wp-live-chat').addClass("wplc_open");*/
|
266 |
Â
}
|
267 |
+
}, parseInt(window.wplc_delay));
|
268 |
Â
}
|
269 |
Â
}
|
270 |
Â
wplc_init_chat_box = false;
|
349 |
Â
jQuery('#wp-live-chat').removeClass("wplc_open");
|
350 |
Â
//jQuery("#wp-live-chat").css(jQuery("#wp-live-chat").attr("original_pos"), "100px");
|
351 |
Â
jQuery("#wp-live-chat").css("top", "");
|
352 |
+
wplc_chat_status = Cookies.get('wplc_chat_status');
|
353 |
Â
jQuery("#wp-live-chat-1").show();
|
354 |
Â
jQuery("#wp-live-chat-1").css('cursor', 'pointer');
|
355 |
Â
jQuery("#wp-live-chat-2").hide();
|
357 |
Â
jQuery("#wp-live-chat-4").hide();
|
358 |
Â
jQuery("#wp-live-chat-react").hide();
|
359 |
Â
jQuery("#wp-live-chat-minimize").hide();
|
360 |
+
Cookies.set('wplc_minimize', "yes", { expires: 1, path: '/' });
|
361 |
Â
if(wplc_chat_status != 5 && wplc_chat_status != 10 && wplc_chat_status != 9 && wplc_chat_status != 8){
|
362 |
Â
var data = {
|
363 |
Â
action: 'wplc_user_minimize_chat',
|
366 |
Â
};
|
367 |
Â
|
368 |
Â
jQuery.post(wplc_ajaxurl, data, function(response) {
|
369 |
+
|
370 |
Â
});
|
371 |
Â
}
|
372 |
Â
|
381 |
Â
jQuery("#wp-live-chat-4").hide();
|
382 |
Â
jQuery("#wp-live-chat-react").hide();
|
383 |
Â
jQuery("#wp-live-chat-minimize").hide();
|
384 |
+
if (typeof wplc_hide_chat !== "undefined" && wplc_hide_chat !== "" && wplc_hide_chat !== null) { Cookies.set('wplc_hide', wplc_hide_chat , { expires: 1, path: '/' }); } else {
|
385 |
+
var wplc_expire_date = new Date();
|
386 |
+
var minutes = 2;
|
387 |
+
wplc_expire_date.setTime(wplc_expire_date.getTime() + (minutes * 60 * 1000));
|
388 |
+
Cookies.set('wplc_hide', "yes" , { expires: wplc_expire_date , path: '/' });
|
389 |
+
}
|
390 |
Â
var data = {
|
391 |
Â
action: 'wplc_user_close_chat',
|
392 |
Â
security: wplc_nonce,
|
394 |
Â
status: wplc_chat_status
|
395 |
Â
};
|
396 |
Â
jQuery.post(wplc_ajaxurl, data, function(response) {
|
397 |
+
|
398 |
Â
|
399 |
Â
});
|
400 |
Â
});
|
407 |
Â
jQuery("#wp-live-chat-react").hide();
|
408 |
Â
jQuery("#wp-live-chat-header").css('cursor', 'all-scroll');
|
409 |
Â
jQuery("#wp-live-chat-1").css('cursor', 'all-scroll');
|
410 |
+
Cookies.set('wplc_hide', "", { expires: 1, path: '/' });
|
411 |
Â
jQuery("#wp-live-chat-minimize").show();
|
412 |
Â
jQuery("#wp-live-chat-close").show();
|
413 |
Â
jQuery(function() {
|
420 |
Â
});
|
421 |
Â
});
|
422 |
Â
|
423 |
+
wplc_chat_status = Cookies.get('wplc_chat_status');
|
424 |
+
if (parseInt(wplc_chat_status) == 3) {
|
425 |
Â
jQuery("#wp-live-chat-4").show();
|
426 |
Â
jQuery("#wplc_chatmsg").focus();
|
427 |
Â
jQuery("#wp-live-chat-2").hide();
|
428 |
Â
jQuery("#wp-live-chat-3").hide();
|
429 |
+
Cookies.set('wplc_minimize', "", { expires: 1, path: '/' });
|
430 |
Â
|
431 |
Â
var data = {
|
432 |
Â
action: 'wplc_user_maximize_chat',
|
438 |
Â
//log("user maximized chat success");
|
439 |
Â
});
|
440 |
Â
}
|
441 |
+
else if (parseInt(wplc_chat_status) == 10) {
|
442 |
+
jQuery("#wp-live-chat-minimize").trigger("click");
|
443 |
+
}
|
444 |
Â
|
445 |
Â
else if (wplc_chat_status == 5 || wplc_chat_status == 9 || wplc_chat_status == 8){
|
446 |
Â
|
447 |
Â
if(jQuery("#wp-live-chat-2").is(":visible") === false && jQuery("#wp-live-chat-4").is(":visible") === false){
|
448 |
Â
jQuery("#wp-live-chat-2").show();
|
449 |
+
var wplc_visitor_name = Cookies.get('wplc_name');
|
450 |
+
if(Cookies.get('wplc_email') !== "no email set" && wplc_visitor_name.indexOf("user") >= 0){
|
451 |
+
jQuery("#wplc_name").val(Cookies.get('wplc_name'));
|
452 |
+
jQuery("#wplc_email").val(Cookies.get('wplc_email'));
|
453 |
Â
}
|
454 |
Â
}
|
455 |
Â
}
|
497 |
Â
var date = new Date();
|
498 |
Â
date.setTime(date.getTime() + (2 * 60 * 1000));
|
499 |
Â
|
500 |
+
wplc_cid = Cookies.get('wplc_cid');
|
501 |
Â
|
502 |
Â
if (typeof wplc_cid !== "undefined" && wplc_cid !== null) { // we've already recorded a cookie for this person
|
503 |
Â
var data = {
|
506 |
Â
name: wplc_name,
|
507 |
Â
email: wplc_email,
|
508 |
Â
cid: wplc_cid,
|
509 |
+
wplcsession: wplc_session_variable,
|
510 |
+
wplc_extra_data:wplc_extra_data
|
511 |
Â
};
|
512 |
Â
} else { // no cookie recorded yet for this visitor
|
513 |
Â
var data = {
|
515 |
Â
security: wplc_nonce,
|
516 |
Â
name: wplc_name,
|
517 |
Â
email: wplc_email,
|
518 |
+
wplcsession: wplc_session_variable,
|
519 |
+
wplc_extra_data:wplc_extra_data
|
520 |
Â
};
|
521 |
Â
}
|
522 |
Â
//changed ajax url so wp_mail function will work and not stop plugin from alerting admin there is a pending chat
|
523 |
Â
jQuery.post(wplc_ajaxurl, data, function(response) {
|
524 |
+
Cookies.set('wplc_chat_status', 2, { expires: date, path: '/' });
|
525 |
+
|
526 |
+
Cookies.set('wplc_name', wplc_name, { path: '/' } );
|
527 |
+
Cookies.set('wplc_email', wplc_email, { path: '/' } );
|
528 |
Â
|
Â
|
|
Â
|
|
Â
|
|
529 |
Â
wplc_cid = jQuery.trim(response);
|
530 |
Â
});
|
531 |
Â
});
|
532 |
Â
|
533 |
+
|
534 |
+
jQuery("body").on("click", "#wplc_na_msg_btn", function() {
|
535 |
+
var wplc_name = jQuery("#wplc_name").val();
|
536 |
+
var wplc_email = jQuery("#wplc_email").val();
|
537 |
+
var wplc_msg = jQuery("#wplc_message").val();
|
538 |
+
var wplc_domain = jQuery("#wplc_domain_offline").val();
|
539 |
+
var ip_address = jQuery("#wplc_ip_address").val();
|
540 |
+
|
541 |
+
if (wplc_name.length <= 0) { alert("Please enter your name"); return false; }
|
542 |
+
if (wplc_email.length <= 0) { alert("Please enter your email address"); return false; }
|
543 |
+
var testEmail = /^[A-Z0-9._%+-]+@([A-Z0-9-]+\.)+[A-Z]{2,4}$/i;
|
544 |
+
if (!testEmail.test(wplc_email)){
|
545 |
+
alert("Please Enter a Valid Email Address"); return false;
|
546 |
+
}
|
547 |
+
if (wplc_msg.length <= 0) { alert("Please enter a message"); return false; }
|
548 |
+
jQuery("#wp-live-chat-2-info").hide();
|
549 |
+
jQuery("#wplc_message_div").html(wplc_offline_msg);
|
550 |
+
|
551 |
+
wplc_cid = Cookies.get('wplc_cid');
|
552 |
+
|
553 |
+
var data = {
|
554 |
+
action: 'wplc_user_send_offline_message',
|
555 |
+
security: wplc_nonce,
|
556 |
+
cid: wplc_cid,
|
557 |
+
name: wplc_name,
|
558 |
+
email: wplc_email,
|
559 |
+
msg: wplc_msg,
|
560 |
+
ip: ip_address,
|
561 |
+
domain: wplc_domain,
|
562 |
+
wplc_extra_data:wplc_extra_data
|
563 |
+
};
|
564 |
+
|
565 |
+
jQuery.post(wplc_ajaxurl, data, function(response) {
|
566 |
+
jQuery("#wplc_message_div").html(wplc_offline_msg3);
|
567 |
+
});
|
568 |
+
});
|
569 |
Â
|
570 |
Â
|
571 |
Â
function wplc_strip(str) {
|
595 |
Â
|
596 |
Â
var wplc_name = jQuery("#wplc_name").val();
|
597 |
Â
if (typeof wplc_name == "undefined" || wplc_name == null || wplc_name == "") {
|
598 |
+
wplc_name = Cookies.get('wplc_name');
|
599 |
Â
}
|
600 |
Â
jQuery("#wplc_chatmsg").val('');
|
601 |
Â
|
612 |
Â
action: 'wplc_user_send_msg',
|
613 |
Â
security: wplc_nonce,
|
614 |
Â
cid: wplc_cid,
|
615 |
+
msg: wplc_chat,
|
616 |
+
wplc_extra_data:wplc_extra_data
|
617 |
Â
};
|
618 |
Â
jQuery.post(wplc_ajaxurl, data, function(response) {
|
619 |
+
|
620 |
Â
});
|
621 |
Â
|
622 |
Â
});
|
js/wplc_u_admin.js
ADDED
@@ -0,0 +1,401 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
var wplc_ajaxurl = wplc_ajaxurl;
|
2 |
+
var data = {
|
3 |
+
action: 'wplc_admin_long_poll',
|
4 |
+
security: wplc_ajax_nonce,
|
5 |
+
wplc_list_visitors_data: false,
|
6 |
+
wplc_update_admin_chat_table: false,
|
7 |
+
wplc_extra_data: wplc_extra_data
|
8 |
+
};
|
9 |
+
var wplc_pending_refresh = null;
|
10 |
+
var current_chat_ids = new Object();
|
11 |
+
var chat_count = 0;
|
12 |
+
var wplc_run = true;
|
13 |
+
var ringer_cnt = 0;
|
14 |
+
var orig_title = document.getElementsByTagName("title")[0].innerHTML;
|
15 |
+
|
16 |
+
var wplc_notification_icon_url = wplc_notification_icon;
|
17 |
+
|
18 |
+
Object.size = function(obj) {
|
19 |
+
var size = 0, key;
|
20 |
+
for (key in obj) {
|
21 |
+
if (obj.hasOwnProperty(key)) size++;
|
22 |
+
}
|
23 |
+
return size;
|
24 |
+
};
|
25 |
+
function wplc_notify_agent() {
|
26 |
+
|
27 |
+
|
28 |
+
if (typeof wplc_wav_file !== 'undefined') {
|
29 |
+
new Audio(wplc_wav_file).play()
|
30 |
+
}
|
31 |
+
|
32 |
+
|
33 |
+
if (ringer_cnt <= 0) {
|
34 |
+
wplc_desktop_notification();
|
35 |
+
}
|
36 |
+
ringer_cnt++;
|
37 |
+
|
38 |
+
if (ringer_cnt > 1) {
|
39 |
+
clearInterval(wplc_pending_refresh);
|
40 |
+
wplc_title_alerts4 = setTimeout(function () {
|
41 |
+
document.title = orig_title;
|
42 |
+
}, 4000);
|
43 |
+
return;
|
44 |
+
}
|
45 |
+
|
46 |
+
document.title = "** CHAT REQUEST **";
|
47 |
+
wplc_title_alerts2 = setTimeout(function () {
|
48 |
+
document.title = "** CHAT REQUEST **";
|
49 |
+
}, 2000);
|
50 |
+
wplc_title_alerts4 = setTimeout(function () {
|
51 |
+
document.title = orig_title;
|
52 |
+
}, 4000);
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
|
57 |
+
|
58 |
+
}
|
59 |
+
function wplc_call_to_server(data) {
|
60 |
+
|
61 |
+
|
62 |
+
jQuery.ajax({
|
63 |
+
url: wplc_ajaxurl,
|
64 |
+
data: data,
|
65 |
+
type: "POST",
|
66 |
+
success: function (response) {
|
67 |
+
|
68 |
+
//Update your dashboard gauge
|
69 |
+
if (response) {
|
70 |
+
response = JSON.parse(response);
|
71 |
+
data["wplc_update_admin_chat_table"] = response['wplc_update_admin_chat_table'];
|
72 |
+
if (response['action'] === "wplc_update_chat_list") {
|
73 |
+
wplc_handle_chat_output(response['wplc_update_admin_chat_table']);
|
74 |
+
if (response['pending'] === true) {
|
75 |
+
|
76 |
+
wplc_notify_agent();
|
77 |
+
wplc_pending_refresh = setInterval(function () {
|
78 |
+
|
79 |
+
wplc_notify_agent();
|
80 |
+
}, 5000);
|
81 |
+
} else {
|
82 |
+
clearInterval(wplc_pending_refresh);
|
83 |
+
ringer_cnt = 0;
|
84 |
+
}
|
85 |
+
}
|
86 |
+
if (response['action'] === "wplc_update_admin_chat") {
|
87 |
+
jQuery("#wplc_admin_chat_area").html(response['wplc_update_admin_chat_table']);
|
88 |
+
if (response['pending'] === true) {
|
89 |
+
|
90 |
+
var orig_title = document.getElementsByTagName("title")[0].innerHTML;
|
91 |
+
var ringer_cnt = 0;
|
92 |
+
wplc_pending_refresh = setInterval(function () {
|
93 |
+
|
94 |
+
if (ringer_cnt <= 0) {
|
95 |
+
wplc_desktop_notification();
|
96 |
+
}
|
97 |
+
|
98 |
+
ringer_cnt++;
|
99 |
+
|
100 |
+
if (ringer_cnt > 1) {
|
101 |
+
clearInterval(wplc_pending_refresh);
|
102 |
+
wplc_title_alerts4 = setTimeout(function () {
|
103 |
+
document.title = orig_title;
|
104 |
+
}, 4000);
|
105 |
+
return;
|
106 |
+
}
|
107 |
+
|
108 |
+
document.title = "** CHAT REQUEST **";
|
109 |
+
wplc_title_alerts2 = setTimeout(function () {
|
110 |
+
document.title = "** CHAT REQUEST **";
|
111 |
+
}, 2000);
|
112 |
+
wplc_title_alerts4 = setTimeout(function () {
|
113 |
+
document.title = orig_title;
|
114 |
+
}, 4000);
|
115 |
+
|
116 |
+
|
117 |
+
//document.getElementById("wplc_sound").innerHTML = "<embed src='"+ +"' hidden=true autostart=true loop=false>";
|
118 |
+
|
119 |
+
}, 5000);
|
120 |
+
} else {
|
121 |
+
clearInterval(wplc_pending_refresh);
|
122 |
+
}
|
123 |
+
}
|
124 |
+
|
125 |
+
}
|
126 |
+
},
|
127 |
+
error: function (jqXHR, exception) {
|
128 |
+
if (jqXHR.status == 404) {
|
129 |
+
if( window.console ) { console.log('Requested page not found. [404]'); }
|
130 |
+
wplc_run = false;
|
131 |
+
} else if (jqXHR.status == 500) {
|
132 |
+
if( window.console ) { console.log('Internal Server Error [500].'); }
|
133 |
+
wplc_run = false;
|
134 |
+
} else if (exception === 'parsererror') {
|
135 |
+
if( window.console ) { console.log('Requested JSON parse failed.'); }
|
136 |
+
wplc_run = false;
|
137 |
+
} else if (exception === 'abort') {
|
138 |
+
if( window.console ) { console.log('Ajax request aborted.'); }
|
139 |
+
wplc_run = false;
|
140 |
+
} else {
|
141 |
+
if( window.console ) { console.log('Uncaught Error.\n' + jqXHR.responseText); }
|
142 |
+
wplc_run = false;
|
143 |
+
}
|
144 |
+
},
|
145 |
+
complete: function (response) {
|
146 |
+
//console.log(wplc_run);
|
147 |
+
if (wplc_run) {
|
148 |
+
setTimeout(function () {
|
149 |
+
wplc_call_to_server(data);
|
150 |
+
}, 1500);
|
151 |
+
}
|
152 |
+
},
|
153 |
+
timeout: 120000
|
154 |
+
});
|
155 |
+
};
|
156 |
+
|
157 |
+
|
158 |
+
function wplc_handle_chat_output(response) {
|
159 |
+
var obj = jQuery.parseJSON(response);
|
160 |
+
if (obj === false || obj === null) {
|
161 |
+
jQuery("#wplc_chat_ul").html("");
|
162 |
+
current_chat_ids = {};
|
163 |
+
wplc_handle_count_change(0);
|
164 |
+
|
165 |
+
} else {
|
166 |
+
var size = Object.size(current_chat_ids);
|
167 |
+
wplc_handle_count_change(size);
|
168 |
+
if (size < 1) {
|
169 |
+
/* no prior visitor information, update without any checks */
|
170 |
+
current_chat_ids = obj["ids"];
|
171 |
+
wplc_update_chat_list(false,obj);
|
172 |
+
} else {
|
173 |
+
/* we have had visitor information prior to this call, update systematically */
|
174 |
+
if (obj === null) {
|
175 |
+
jQuery("#wplc_chat_ul").html("");
|
176 |
+
} else {
|
177 |
+
current_chat_ids = obj["ids"];
|
178 |
+
wplc_update_chat_list(true,obj);
|
179 |
+
}
|
180 |
+
}
|
181 |
+
|
182 |
+
|
183 |
+
}
|
184 |
+
var size = Object.size(current_chat_ids);
|
185 |
+
wplc_handle_count_change(size);
|
186 |
+
|
187 |
+
|
188 |
+
|
189 |
+
}
|
190 |
+
function wplc_handle_count_change(qty) {
|
191 |
+
if (qty > chat_count) {
|
192 |
+
jQuery(".wplc_chat_vis_count_box").animate({backgroundColor: '#B3D24B'}, 300);
|
193 |
+
jQuery(".wplc_vis_online").html(qty);
|
194 |
+
jQuery(".wplc_chat_vis_count_box").animate({backgroundColor: 'white'}, 200);
|
195 |
+
} else if (qty === chat_count) {
|
196 |
+
jQuery(".wplc_vis_online").html(qty);
|
197 |
+
} else {
|
198 |
+
jQuery(".wplc_chat_vis_count_box").animate({backgroundColor: '#E1734A'}, 300);
|
199 |
+
jQuery(".wplc_vis_online").html(qty);
|
200 |
+
jQuery(".wplc_chat_vis_count_box").animate({backgroundColor: 'white'}, 200);
|
201 |
+
}
|
202 |
+
chat_count = qty;
|
203 |
+
|
204 |
+
}
|
205 |
+
|
206 |
+
|
207 |
+
function wplc_get_status_name(status) {
|
208 |
+
if (status === 1) {
|
209 |
+
return "<span class='wplc_status_box wplc_status_"+status+"'>complete</span>";
|
210 |
+
}
|
211 |
+
if (status === 2) {
|
212 |
+
return "<span class='wplc_status_box wplc_status_"+status+"'>pending</span>";
|
213 |
+
}
|
214 |
+
if (status === 3) {
|
215 |
+
return "<span class='wplc_status_box wplc_status_"+status+"'>active</span>";
|
216 |
+
}
|
217 |
+
if (status === 4) {
|
218 |
+
return "<span class='wplc_status_box wplc_status_"+status+"'>deleted</span>";
|
219 |
+
}
|
220 |
+
if (status === 5) {
|
221 |
+
return "<span class='wplc_status_box wplc_status_"+status+"'>browsing</span>";
|
222 |
+
}
|
223 |
+
if (status === 6) {
|
224 |
+
return "<span class='wplc_status_box wplc_status_"+status+"'>requesting chat</span>";
|
225 |
+
}
|
226 |
+
if (status === 8){
|
227 |
+
return "<span class='wplc_status_box wplc_status_"+status+"'>chat ended</span></span>";
|
228 |
+
}
|
229 |
+
if (status === 9){
|
230 |
+
return "<span class='wplc_status_box wplc_status_"+status+"'>chat closed</span>";
|
231 |
+
}
|
232 |
+
if (status === 10){
|
233 |
+
return "<span class='wplc_status_box wplc_status_8'>minimized</span>";
|
234 |
+
}
|
235 |
+
}
|
236 |
+
function wplc_get_type_box(type) {
|
237 |
+
if (type === "New") {
|
238 |
+
return "<span class='wplc_status_box wplc_type_new'>New</span>";
|
239 |
+
}
|
240 |
+
if (type === "Returning") {
|
241 |
+
return "<span class='wplc_status_box wplc_type_returning'>Returning</span>";
|
242 |
+
}
|
243 |
+
}
|
244 |
+
|
245 |
+
function wplc_create_chat_ul_element_after_eating_vindaloo(obj,key) {
|
246 |
+
|
247 |
+
var v_img = obj[key]['image'];
|
248 |
+
var v_name = obj[key]['name'];
|
249 |
+
var v_email = obj[key]['email'];
|
250 |
+
var v_browser = obj[key]['data']['browser'];
|
251 |
+
var v_browsing = obj[key]['data']['browsing_nice_url'];
|
252 |
+
var v_browsing_url = obj[key]['data']['browsing'];
|
253 |
+
var v_status = obj[key]['status'];
|
254 |
+
var v_time = obj[key]['timestamp'];
|
255 |
+
var v_type = obj[key]['type'];
|
256 |
+
var v_action = obj[key]['action'];
|
257 |
+
var v_status_string = wplc_get_status_name(parseInt(v_status));
|
258 |
+
var v_ip_address = obj[key]['data']['ip'];
|
259 |
+
|
260 |
+
var v_vis_html = "<span class='wplc_headerspan_v'>"+v_name+"</span>";
|
261 |
+
var v_nr_html = "<span class='wplc_headerspan_nr'><span class='browser-tag'>"+v_browser+"</span> "+wplc_get_type_box(v_type)+"</span>";
|
262 |
+
var v_time_html = "<span class='wplc_headerspan_t'><span class='wplc_status_box wplc_status_1'>"+v_time+"</span></span>";
|
263 |
+
var v_nr_data = "<span class='wplc_headerspan_d'><span class='wplc-sub-item-header'>Page:</span> <a href='"+v_browsing_url+"' target='_BLANK'>"+v_browsing+"</a><br /><span class='wplc-sub-item-header'>Email:</span> <a href='mailto:"+v_email+"' target='_BLANK' class='wplc-sub-item-email-string'>"+v_email+"</a><br/><span class='wplc-sub-item-header'>IP: </span>"+v_ip_address+"</span>";
|
264 |
+
var v_nr_status_html = "<span class='wplc_headerspan_s'>"+v_status_string+"</span>";
|
265 |
+
var v_nr_action_html = "<span class='wplc_headerspan_a 1'>"+v_action+"</span>";
|
266 |
+
|
267 |
+
var wplc_v_html = "\
|
268 |
+
<ul id='wplc_p_ul_"+key+"' class='wplc_p_cul' cid='"+key+"'>\n\
|
269 |
+
<li>"+v_vis_html+"</li>\n\
|
270 |
+
<li>"+v_time_html+"</li>\n\
|
271 |
+
<li>"+v_nr_html+"</li>\n\
|
272 |
+
<li>"+v_nr_data+"</li>\n\
|
273 |
+
<li>"+v_nr_status_html+"</li>\n\
|
274 |
+
<li>"+v_nr_action_html+"</li>\n\
|
275 |
+
<ul>";
|
276 |
+
return wplc_v_html;
|
277 |
+
|
278 |
+
|
279 |
+
}
|
280 |
+
|
281 |
+
function wplc_update_chat_list(update,obj) {
|
282 |
+
|
283 |
+
/* first compare existing elements with the elements on the page */
|
284 |
+
if (update === false) {
|
285 |
+
jQuery( ".wplc_chat_ul" ).html("");
|
286 |
+
|
287 |
+
for (var key in obj) {
|
288 |
+
if (obj.hasOwnProperty(key) && key !== "ids") {
|
289 |
+
wplc_v_html = wplc_create_chat_ul_element_after_eating_vindaloo(obj,key);
|
290 |
+
jQuery( "#wplc_chat_ul" ).append(wplc_v_html).hide().fadeIn(2000);
|
291 |
+
|
292 |
+
}
|
293 |
+
}
|
294 |
+
current_chat_ids = obj["ids"];
|
295 |
+
|
296 |
+
} else {
|
297 |
+
|
298 |
+
for (var key in current_chat_ids) {
|
299 |
+
current_id = key;
|
300 |
+
if (document.getElementById("wplc_p_ul_"+current_id) !== null) {
|
301 |
+
/* element is already there */
|
302 |
+
/* update element */
|
303 |
+
if (typeof obj[current_id] !== "undefined") { /* if this check isnt here, it will throw an error. This check is here incase the item has been deleted. If it has, it will be handled futher down */
|
304 |
+
jQuery("#wplc_p_ul_"+current_id).remove();
|
305 |
+
wplc_v_html = wplc_create_chat_ul_element_after_eating_vindaloo(obj,current_id);
|
306 |
+
jQuery( "#wplc_chat_ul" ).append(wplc_v_html);
|
307 |
+
//jQuery( ".wplc_chats_container" ).append(obj[current_id]['content']);
|
308 |
+
}
|
309 |
+
|
310 |
+
|
311 |
+
} else {
|
312 |
+
jQuery("#nifty_c_none").hide();
|
313 |
+
/* new element to be created */
|
314 |
+
if (typeof obj[current_id] !== "undefined") { /* if this check isnt here, it will throw an error. This check is here incase the item has been deleted. If it has, it will be handled futher down */
|
315 |
+
|
316 |
+
wplc_v_html = wplc_create_chat_ul_element_after_eating_vindaloo(obj,current_id);
|
317 |
+
jQuery( "#wplc_chat_ul" ).append(wplc_v_html);
|
318 |
+
|
319 |
+
jQuery("#wplc_p_ul_"+current_id).hide().fadeIn(2000);
|
320 |
+
|
321 |
+
}
|
322 |
+
}
|
323 |
+
|
324 |
+
|
325 |
+
}
|
326 |
+
|
327 |
+
}
|
328 |
+
|
329 |
+
/* compare new elements to old elements and delete where neccessary */
|
330 |
+
|
331 |
+
|
332 |
+
jQuery(".wplc_p_cul").each(function(n, i) {
|
333 |
+
var cid = jQuery(this).attr("cid");
|
334 |
+
if (typeof cid !== "undefined") {
|
335 |
+
if (typeof current_chat_ids[cid] !== "undefined") { /* element still there dont delete */ }
|
336 |
+
else {
|
337 |
+
jQuery("#wplc_p_ul_"+cid).fadeOut(2000).delay(2000).remove();
|
338 |
+
|
339 |
+
}
|
340 |
+
var size = Object.size(current_chat_ids);
|
341 |
+
wplc_handle_count_change(size);
|
342 |
+
}
|
343 |
+
// do something with it
|
344 |
+
});
|
345 |
+
if(jQuery('.wplc_p_cul').length < 1) {
|
346 |
+
wplc_handle_count_change(0);
|
347 |
+
current_chat_ids = {};
|
348 |
+
}
|
349 |
+
|
350 |
+
|
351 |
+
|
352 |
+
|
353 |
+
|
354 |
+
}
|
355 |
+
|
356 |
+
|
357 |
+
jQuery(document).ready(function () {
|
358 |
+
jQuery('body').on("click", "a", function (event) {
|
359 |
+
if (jQuery(this).hasClass('wplc_open_chat')) {
|
360 |
+
if (event.preventDefault) {
|
361 |
+
event.preventDefault();
|
362 |
+
} else {
|
363 |
+
event.returnValue = false;
|
364 |
+
}
|
365 |
+
window.open(jQuery(this).attr("href"), jQuery(this).attr("window-title"), "width=800,height=600,scrollbars=yes", false);
|
366 |
+
}
|
367 |
+
});
|
368 |
+
|
369 |
+
jQuery('body').on("click", "#wplc_close_ftt", function (event) {
|
370 |
+
jQuery("#wplcftt").fadeOut(1000);
|
371 |
+
var data = {
|
372 |
+
action: 'wplc_hide_ftt',
|
373 |
+
security: wplc_ajax_nonce,
|
374 |
+
};
|
375 |
+
jQuery.ajax({
|
376 |
+
url: wplc_ajaxurl,
|
377 |
+
data: data,
|
378 |
+
type: "POST",
|
379 |
+
success: function (response) {
|
380 |
+
|
381 |
+
}
|
382 |
+
});
|
383 |
+
|
384 |
+
|
385 |
+
|
386 |
+
|
387 |
+
|
388 |
+
|
389 |
+
|
390 |
+
|
391 |
+
|
392 |
+
|
393 |
+
|
394 |
+
|
395 |
+
|
396 |
+
|
397 |
+
|
398 |
+
});
|
399 |
+
|
400 |
+
wplc_call_to_server(data);
|
401 |
+
});
|
js/wplc_u_admin_chat.js
ADDED
@@ -0,0 +1,261 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
var wplc_ajaxurl = wplc_ajaxurl;
|
2 |
+
var chat_status = 3;
|
3 |
+
var cid = wplc_cid;
|
4 |
+
|
5 |
+
if (typeof wplc_action2 !== "undefined" && wplc_action2 !== "") {
|
6 |
+
|
7 |
+
var data = {
|
8 |
+
action: 'wplc_admin_long_poll_chat',
|
9 |
+
security: wplc_ajax_nonce,
|
10 |
+
cid: cid,
|
11 |
+
chat_status: chat_status,
|
12 |
+
action_2: wplc_action2,
|
13 |
+
wplc_extra_data: wplc_extra_data
|
14 |
+
};
|
15 |
+
} else {
|
16 |
+
var data = {
|
17 |
+
action: 'wplc_admin_long_poll_chat',
|
18 |
+
security: wplc_ajax_nonce,
|
19 |
+
cid: cid,
|
20 |
+
chat_status: chat_status,
|
21 |
+
wplc_extra_data: wplc_extra_data
|
22 |
+
};
|
23 |
+
|
24 |
+
}
|
25 |
+
var wplc_run = true;
|
26 |
+
var wplc_had_error = false;
|
27 |
+
var wplc_display_name = wplc_name;
|
28 |
+
var wplc_enable_ding = wplc_enable_ding;
|
29 |
+
var wplc_user_email_address = wplc_user_email;
|
30 |
+
|
31 |
+
function wplc_call_to_server_admin_chat(data) {
|
32 |
+
jQuery.ajax({
|
33 |
+
url: wplc_ajaxurl,
|
34 |
+
data: data,
|
35 |
+
security: wplc_ajax_nonce,
|
36 |
+
type: "POST",
|
37 |
+
success: function (response) {
|
38 |
+
if (response) {
|
39 |
+
|
40 |
+
response = JSON.parse(response);
|
41 |
+
|
42 |
+
if (response['action'] === "wplc_ma_agant_already_answered") {
|
43 |
+
jQuery(".end_chat_div").empty();
|
44 |
+
jQuery('#admin_chat_box').empty().append("<h2>This chat has already been answered. Please close the chat window</h2>");
|
45 |
+
wplc_run = false;
|
46 |
+
}
|
47 |
+
|
48 |
+
if (response['action'] === "wplc_update_chat_status") {
|
49 |
+
data['chat_status'] = response['chat_status'];
|
50 |
+
wplc_display_chat_status_update(response['chat_status'], cid);
|
51 |
+
}
|
52 |
+
if (response['action'] === "wplc_new_chat_message") {
|
53 |
+
current_len = jQuery("#admin_chat_box_area_" + cid).html().length;
|
54 |
+
jQuery("#admin_chat_box_area_" + cid).append(response['chat_message']);
|
55 |
+
new_length = jQuery("#admin_chat_box_area_" + cid).html().length;
|
56 |
+
if (current_len < new_length) {
|
57 |
+
if (typeof wplc_enable_ding !== 'undefined' && wplc_enable_ding === "1") {
|
58 |
+
new Audio(wplc_ding_file).play()
|
59 |
+
}
|
60 |
+
}
|
61 |
+
var height = jQuery('#admin_chat_box_area_' + cid)[0].scrollHeight;
|
62 |
+
jQuery('#admin_chat_box_area_' + cid).scrollTop(height);
|
63 |
+
}
|
64 |
+
if (response['action'] === "wplc_user_open_chat") {
|
65 |
+
data['action_2'] = "";
|
66 |
+
window.location.replace(wplc_url);
|
67 |
+
}
|
68 |
+
|
69 |
+
}
|
70 |
+
},
|
71 |
+
error: function (jqXHR, exception) {
|
72 |
+
if (jqXHR.status == 404) {
|
73 |
+
if (window.console) { console.log('Requested page not found. [404]'); }
|
74 |
+
wplc_run = false;
|
75 |
+
} else if (jqXHR.status == 500) {
|
76 |
+
if (window.console) { console.log('Internal Server Error [500].'); }
|
77 |
+
wplc_run = true;
|
78 |
+
wplc_had_error = true;
|
79 |
+
setTimeout(function () {
|
80 |
+
wplc_call_to_server_admin_chat(data);
|
81 |
+
}, 10000);
|
82 |
+
} else if (exception === 'parsererror') {
|
83 |
+
if (window.console) { console.log('Requested JSON parse failed.'); }
|
84 |
+
wplc_run = false;
|
85 |
+
} else if (exception === 'abort') {
|
86 |
+
if (window.console) { console.log('Ajax request aborted.'); }
|
87 |
+
wplc_run = false;
|
88 |
+
} else {
|
89 |
+
if (window.console) { console.log('Uncaught Error.\n' + jqXHR.responseText); }
|
90 |
+
wplc_run = true;
|
91 |
+
wplc_had_error = true;
|
92 |
+
setTimeout(function () {
|
93 |
+
wplc_call_to_server_admin_chat(data);
|
94 |
+
}, 10000);
|
95 |
+
}
|
96 |
+
},
|
97 |
+
complete: function (response) {
|
98 |
+
//console.log(wplc_run);
|
99 |
+
if (wplc_run && !wplc_had_error) {
|
100 |
+
setTimeout(function () {
|
101 |
+
wplc_call_to_server_admin_chat(data);
|
102 |
+
}, 1500);
|
103 |
+
}
|
104 |
+
},
|
105 |
+
timeout: 120000
|
106 |
+
|
107 |
+
});
|
108 |
+
};
|
109 |
+
|
110 |
+
function wplc_display_chat_status_update(new_chat_status, cid) {
|
111 |
+
if (new_chat_status === "0") {
|
112 |
+
} else {
|
113 |
+
if (chat_status !== new_chat_status) {
|
114 |
+
previous_chat_status = chat_status;
|
115 |
+
//console.log("previous chat status: "+previous_chat_status);
|
116 |
+
chat_status = new_chat_status;
|
117 |
+
//console.log("chat status: "+chat_status);
|
118 |
+
|
119 |
+
if ((previous_chat_status === "2" && chat_status === "3") || (previous_chat_status === "5" && chat_status === "3")) {
|
120 |
+
jQuery("#admin_chat_box_area_" + cid).append("<em>"+wplc_string1+"</em><br />");
|
121 |
+
var height = jQuery('#admin_chat_box_area_' + cid)[0].scrollHeight;
|
122 |
+
jQuery('#admin_chat_box_area_' + cid).scrollTop(height);
|
123 |
+
|
124 |
+
} else if (chat_status == "10" && previous_chat_status == "3") {
|
125 |
+
jQuery("#admin_chat_box_area_" + cid).append("<em>"+wplc_string2+"</em><br />");
|
126 |
+
var height = jQuery('#admin_chat_box_area_' + cid)[0].scrollHeight;
|
127 |
+
jQuery('#admin_chat_box_area_' + cid).scrollTop(height);
|
128 |
+
}
|
129 |
+
else if (chat_status === "3" && previous_chat_status === "10") {
|
130 |
+
jQuery("#admin_chat_box_area_" + cid).append("<em>"+wplc_string3+"</em><br />");
|
131 |
+
var height = jQuery('#admin_chat_box_area_' + cid)[0].scrollHeight;
|
132 |
+
jQuery('#admin_chat_box_area_' + cid).scrollTop(height);
|
133 |
+
}
|
134 |
+
else if (chat_status === "1" || chat_status === "8") {
|
135 |
+
wplc_run = false;
|
136 |
+
jQuery("#admin_chat_box_area_" + cid).append("<em>"+wplc_string4+"</em><br />");
|
137 |
+
var height = jQuery('#admin_chat_box_area_' + cid)[0].scrollHeight;
|
138 |
+
jQuery('#admin_chat_box_area_' + cid).scrollTop(height);
|
139 |
+
document.getElementById('wplc_admin_chatmsg').disabled = true;
|
140 |
+
}
|
141 |
+
}
|
142 |
+
}
|
143 |
+
}
|
144 |
+
|
145 |
+
|
146 |
+
|
147 |
+
jQuery(document).ready(function () {
|
148 |
+
|
149 |
+
var wplc_image = admin_pic;
|
150 |
+
|
151 |
+
|
152 |
+
|
153 |
+
jQuery("#wplc_admin_chatmsg").focus();
|
154 |
+
|
155 |
+
|
156 |
+
wplc_call_to_server_admin_chat(data);
|
157 |
+
|
158 |
+
if (typeof wplc_action2 !== "undefined" && wplc_action2 !== "") { return; }
|
159 |
+
|
160 |
+
if (jQuery('#wplc_admin_cid').length) {
|
161 |
+
var wplc_cid = jQuery("#wplc_admin_cid").val();
|
162 |
+
var height = jQuery('#admin_chat_box_area_' + wplc_cid)[0].scrollHeight;
|
163 |
+
jQuery('#admin_chat_box_area_' + wplc_cid).scrollTop(height);
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
|
168 |
+
jQuery(".wplc_admin_accept").on("click", function () {
|
169 |
+
wplc_title_alerts3 = setTimeout(function () {
|
170 |
+
document.title = "WP Live Chat Support";
|
171 |
+
}, 2500);
|
172 |
+
var cid = jQuery(this).attr("cid");
|
173 |
+
|
174 |
+
var data = {
|
175 |
+
action: 'wplc_admin_accept_chat',
|
176 |
+
cid: cid,
|
177 |
+
security: wplc_ajax_nonce
|
178 |
+
};
|
179 |
+
jQuery.post(wplc_ajaxurl, data, function (response) {
|
180 |
+
//console.log("wplc_admin_accept_chat");
|
181 |
+
wplc_refresh_chat_boxes[cid] = setInterval(function () {
|
182 |
+
wpcl_admin_update_chat_box(cid);
|
183 |
+
}, 3000);
|
184 |
+
jQuery("#admin_chat_box_" + cid).show();
|
185 |
+
});
|
186 |
+
});
|
187 |
+
|
188 |
+
jQuery("#wplc_admin_chatmsg").keyup(function (event) {
|
189 |
+
if (event.keyCode == 13) {
|
190 |
+
jQuery("#wplc_admin_send_msg").click();
|
191 |
+
}
|
192 |
+
});
|
193 |
+
|
194 |
+
jQuery("#wplc_admin_close_chat").on("click", function () {
|
195 |
+
var wplc_cid = jQuery("#wplc_admin_cid").val();
|
196 |
+
var data = {
|
197 |
+
action: 'wplc_admin_close_chat',
|
198 |
+
security: wplc_ajax_nonce,
|
199 |
+
cid: wplc_cid,
|
200 |
+
wplc_extra_data: wplc_extra_data
|
201 |
+
|
202 |
+
};
|
203 |
+
jQuery.post(wplc_ajaxurl, data, function (response) {
|
204 |
+
//console.log("wplc_admin_close_chat");
|
205 |
+
|
206 |
+
window.close();
|
207 |
+
});
|
208 |
+
|
209 |
+
});
|
210 |
+
|
211 |
+
function wplc_strip(str) {
|
212 |
+
str=str.replace(/<br>/gi, "\n");
|
213 |
+
str=str.replace(/<p.*>/gi, "\n");
|
214 |
+
str=str.replace(/<a.*href="(.*?)".*>(.*?)<\/a>/gi, " $2 ($1) ");
|
215 |
+
str=str.replace(/<(?:.|\s)*?>/g, "");
|
216 |
+
|
217 |
+
str=str.replace('iframe', "");
|
218 |
+
str=str.replace('src', "");
|
219 |
+
str=str.replace('href', "");
|
220 |
+
str=str.replace('<', "");
|
221 |
+
str=str.replace('>', "");
|
222 |
+
|
223 |
+
return str;
|
224 |
+
}
|
225 |
+
|
226 |
+
jQuery("#wplc_admin_send_msg").on("click", function () {
|
227 |
+
var wplc_cid = jQuery("#wplc_admin_cid").val();
|
228 |
+
var wplc_chat = wplc_strip(document.getElementById('wplc_admin_chatmsg').value);
|
229 |
+
var wplc_name = "a" + "d" + "m" + "i" + "n";
|
230 |
+
jQuery("#wplc_admin_chatmsg").val('');
|
231 |
+
|
232 |
+
if (wplc_display_name == 'display') {
|
233 |
+
jQuery("#admin_chat_box_area_" + wplc_cid).append("<span class='wplc-admin-message'>" + wplc_image + " <strong>" + wplc_name + "</strong>:<hr/ style='margin-bottom: 0px;'>" + wplc_chat + "</span><br /><div class='wplc-clear-float-message'></div>");
|
234 |
+
} else {
|
235 |
+
jQuery("#admin_chat_box_area_" + wplc_cid).append("<span class='wplc-admin-message'>" + wplc_chat + "</span><br /><div class='wplc-clear-float-message'></div>");
|
236 |
+
}
|
237 |
+
var height = jQuery('#admin_chat_box_area_' + wplc_cid)[0].scrollHeight;
|
238 |
+
jQuery('#admin_chat_box_area_' + wplc_cid).scrollTop(height);
|
239 |
+
|
240 |
+
|
241 |
+
var data = {
|
242 |
+
action: 'wplc_admin_send_msg',
|
243 |
+
security: wplc_ajax_nonce,
|
244 |
+
cid: wplc_cid,
|
245 |
+
msg: wplc_chat,
|
246 |
+
wplc_extra_data:wplc_extra_data
|
247 |
+
};
|
248 |
+
jQuery.post(wplc_ajaxurl, data, function (response) {
|
249 |
+
|
250 |
+
});
|
251 |
+
|
252 |
+
|
253 |
+
});
|
254 |
+
|
255 |
+
|
256 |
+
|
257 |
+
|
258 |
+
|
259 |
+
|
260 |
+
|
261 |
+
});
|
languages/wplivechat-en_EN.mo
CHANGED
Binary file
|
languages/wplivechat-en_EN.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
Â
msgid ""
|
2 |
Â
msgstr ""
|
3 |
Â
"Project-Id-Version: wplivechat\n"
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
6 |
Â
"Last-Translator: \n"
|
7 |
Â
"Language-Team: \n"
|
8 |
Â
"Language: en\n"
|
@@ -16,330 +16,705 @@ msgstr ""
|
|
16 |
Â
"live-chat-support\n"
|
17 |
Â
"X-Poedit-SearchPath-1: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
|
18 |
Â
"live-chat-support-pro\n"
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
19 |
Â
|
20 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/ajax-pro.php:
|
21 |
Â
msgid "Guest"
|
22 |
Â
msgstr ""
|
23 |
Â
|
24 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/ajax-pro.php:
|
25 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/ajax_new.php:
|
26 |
Â
msgid "Admin has closed and ended the chat"
|
27 |
Â
msgstr ""
|
28 |
Â
|
29 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/ajax-pro.php:
|
30 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/ajax_new.php:
|
31 |
Â
msgid "There is No Answer. Please Try Again Later"
|
32 |
Â
msgstr ""
|
33 |
Â
|
34 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
35 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
36 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
37 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
38 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
39 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
40 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
41 |
Â
msgid "IP Address not recorded"
|
42 |
Â
msgstr ""
|
43 |
Â
|
44 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
45 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
46 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
47 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
48 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
49 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
50 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
51 |
Â
msgid "Whois for"
|
52 |
Â
msgstr ""
|
53 |
Â
|
54 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
55 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
56 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
57 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
58 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
59 |
Â
msgid "Accept Chat"
|
60 |
Â
msgstr ""
|
61 |
Â
|
62 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
63 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
64 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
65 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:455
|
66 |
Â
msgid "Incoming Chat"
|
67 |
Â
msgstr ""
|
68 |
Â
|
69 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
70 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
71 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
72 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:455
|
73 |
Â
msgid "You have an incoming chat."
|
74 |
Â
msgstr ""
|
75 |
Â
|
76 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
77 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
78 |
Â
msgid "Open Chat"
|
79 |
Â
msgstr ""
|
80 |
Â
|
81 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
82 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
83 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
84 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:464
|
85 |
Â
msgid "Chat Active"
|
86 |
Â
msgstr ""
|
87 |
Â
|
88 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
89 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
90 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
91 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:464
|
92 |
Â
msgid "This chat is active"
|
93 |
Â
msgstr ""
|
94 |
Â
|
95 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
96 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
97 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:467
|
98 |
-
msgid "Initiate Chat"
|
99 |
-
msgstr ""
|
100 |
-
|
101 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:72
|
102 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:158
|
103 |
Â
msgid "You must be a chat agent to initiate chats"
|
104 |
Â
msgstr ""
|
105 |
Â
|
106 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
107 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
108 |
Â
msgid "New"
|
109 |
Â
msgstr ""
|
110 |
Â
|
111 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
112 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
113 |
Â
msgid "Returning"
|
114 |
Â
msgstr ""
|
115 |
Â
|
116 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
117 |
Â
msgid "Visitors on site"
|
118 |
Â
msgstr ""
|
119 |
Â
|
120 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
121 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
122 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
123 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
124 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
125 |
Â
msgid "Site Info"
|
126 |
Â
msgstr ""
|
127 |
Â
|
128 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
129 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
130 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
131 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
132 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
133 |
Â
msgid "Chat initiated on:"
|
134 |
Â
msgstr ""
|
135 |
Â
|
136 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
137 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
138 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
139 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
140 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
141 |
Â
msgid "Advanced Info"
|
142 |
Â
msgstr ""
|
143 |
Â
|
144 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
145 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
146 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
147 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
148 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
149 |
Â
msgid "Browser:"
|
150 |
Â
msgstr ""
|
151 |
Â
|
152 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
153 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
154 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
155 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
156 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
157 |
Â
msgid "IP Address:"
|
158 |
Â
msgstr ""
|
159 |
Â
|
160 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
161 |
Â
msgid "No visitors on-line at the moment"
|
162 |
Â
msgstr ""
|
163 |
Â
|
164 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
165 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
166 |
Â
msgid "No chat sessions available at the moment"
|
167 |
Â
msgstr ""
|
168 |
Â
|
169 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
170 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
171 |
Â
msgid "Active Chats"
|
172 |
Â
msgstr ""
|
173 |
Â
|
174 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
175 |
Â
msgid "You must be a chat agent to answer chats"
|
176 |
Â
msgstr ""
|
177 |
Â
|
178 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
179 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
180 |
Â
msgid "Open Chat Window"
|
181 |
Â
msgstr ""
|
182 |
Â
|
183 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
184 |
Â
msgid "Chat has been answered by another agent"
|
185 |
Â
msgstr ""
|
186 |
Â
|
187 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
188 |
Â
msgid "Chat answered by another agent"
|
189 |
Â
msgstr ""
|
190 |
Â
|
191 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
Â
|
|
192 |
Â
msgid "WP Live Chat Support - Offline Message from "
|
193 |
Â
msgstr ""
|
194 |
Â
|
195 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
196 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
197 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
198 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
199 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
200 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
201 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
202 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
203 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/
|
204 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/
|
205 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
206 |
Â
msgid "Name"
|
207 |
Â
msgstr ""
|
208 |
Â
|
209 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
210 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
211 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
212 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
213 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
214 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
215 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
216 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
217 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/
|
218 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
219 |
Â
msgid "Email"
|
220 |
Â
msgstr ""
|
221 |
Â
|
222 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
223 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
224 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
225 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
226 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
227 |
Â
msgid "Message"
|
228 |
Â
msgstr ""
|
229 |
Â
|
230 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
Â
|
|
231 |
Â
msgid "Via WP Live Chat Support"
|
232 |
Â
msgstr ""
|
233 |
Â
|
234 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
235 |
Â
msgid "Alert: Someone wants to chat with you on "
|
236 |
Â
msgstr ""
|
237 |
Â
|
238 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
239 |
Â
msgid "Someone wants to chat with you on your website"
|
240 |
Â
msgstr ""
|
241 |
Â
|
242 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
243 |
Â
msgid "Log in"
|
244 |
Â
msgstr ""
|
245 |
Â
|
246 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
247 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/
|
248 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:636
|
253 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:652
|
254 |
-
msgid "Make this user a chat agent"
|
255 |
-
msgstr ""
|
256 |
-
|
257 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:666
|
258 |
-
msgid "Your user role does not allow you to make yourself a chat agent."
|
259 |
-
msgstr ""
|
260 |
-
|
261 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:667
|
262 |
-
msgid "Please contact the administrator of this website to change this."
|
263 |
-
msgstr ""
|
264 |
-
|
265 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:752
|
266 |
-
msgid "Chat Agent Online"
|
267 |
-
msgstr ""
|
268 |
-
|
269 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:754
|
270 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:759
|
271 |
-
msgid "Chat Agents Online"
|
272 |
-
msgstr ""
|
273 |
-
|
274 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:850
|
275 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:733
|
276 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:1253
|
277 |
Â
msgid "Date"
|
278 |
Â
msgstr ""
|
279 |
Â
|
280 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
Â
|
|
281 |
Â
msgid "You have not received any offline messages."
|
282 |
Â
msgstr ""
|
283 |
Â
|
284 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
285 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:788
|
286 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:523
|
287 |
-
msgid "Administrator"
|
288 |
-
msgstr ""
|
289 |
-
|
290 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1181
|
291 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:794
|
292 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:529
|
293 |
-
msgid "Editor"
|
294 |
-
msgstr ""
|
295 |
-
|
296 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1182
|
297 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:800
|
298 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:535
|
299 |
-
msgid "Author"
|
300 |
-
msgstr ""
|
301 |
-
|
302 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1183
|
303 |
Â
msgid "Contributor"
|
304 |
Â
msgstr ""
|
305 |
Â
|
306 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
307 |
Â
msgid "Subscriber"
|
308 |
Â
msgstr ""
|
309 |
Â
|
310 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
Â
|
|
311 |
Â
msgid "Chat ID"
|
312 |
Â
msgstr ""
|
313 |
Â
|
314 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
Â
|
|
315 |
Â
msgid "From"
|
316 |
Â
msgstr ""
|
317 |
Â
|
318 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
Â
|
|
319 |
Â
msgid "Timestamp"
|
320 |
Â
msgstr ""
|
321 |
Â
|
322 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
Â
|
|
323 |
Â
msgid "Origin"
|
324 |
Â
msgstr ""
|
325 |
Â
|
326 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
Â
|
|
327 |
Â
msgid "user"
|
328 |
Â
msgstr ""
|
329 |
Â
|
330 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:
|
Â
|
|
331 |
Â
msgid "agent"
|
332 |
Â
msgstr ""
|
333 |
Â
|
334 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:48
|
335 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
336 |
Â
msgid "WP Live Chat Support Settings"
|
337 |
Â
msgstr ""
|
338 |
Â
|
339 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:71
|
340 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
341 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
342 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
343 |
Â
msgid "Dear Pro User"
|
344 |
Â
msgstr ""
|
345 |
Â
|
@@ -370,27 +745,29 @@ msgid ""
|
|
370 |
Â
msgstr ""
|
371 |
Â
|
372 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:83
|
373 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
374 |
Â
msgid "General Settings"
|
375 |
Â
msgstr ""
|
376 |
Â
|
377 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:84
|
378 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
379 |
Â
msgid "Chat Box"
|
380 |
Â
msgstr ""
|
381 |
Â
|
382 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:85
|
383 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:383
|
384 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
385 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
386 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
Â
|
|
Â
|
|
387 |
Â
msgid "Offline Messages"
|
388 |
Â
msgstr ""
|
389 |
Â
|
390 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:86
|
391 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:485
|
392 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
393 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
394 |
Â
msgid "Styling"
|
395 |
Â
msgstr ""
|
396 |
Â
|
@@ -399,7 +776,7 @@ msgid "Chat Agents"
|
|
399 |
Â
msgstr ""
|
400 |
Â
|
401 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:88
|
402 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
403 |
Â
msgid "Blocked Visitors"
|
404 |
Â
msgstr ""
|
405 |
Â
|
@@ -409,13 +786,8 @@ msgstr ""
|
|
409 |
Â
msgid "Chat Experience Ratings"
|
410 |
Â
msgstr ""
|
411 |
Â
|
412 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:90
|
413 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:31
|
414 |
-
msgid "Encryption"
|
415 |
-
msgstr ""
|
416 |
-
|
417 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:93
|
418 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
419 |
Â
msgid "Main Settings"
|
420 |
Â
msgstr ""
|
421 |
Â
|
@@ -423,15 +795,12 @@ msgstr ""
|
|
423 |
Â
msgid "Find out more."
|
424 |
Â
msgstr ""
|
425 |
Â
|
426 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:98
|
427 |
-
msgid "Cloud Server"
|
428 |
-
msgstr ""
|
429 |
-
|
430 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:103
|
431 |
Â
msgid "Use our server to host your chat server."
|
432 |
Â
msgstr ""
|
433 |
Â
|
434 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:107
|
Â
|
|
435 |
Â
msgid "API Key"
|
436 |
Â
msgstr ""
|
437 |
Â
|
@@ -455,131 +824,97 @@ msgid ""
|
|
455 |
Â
msgstr ""
|
456 |
Â
|
457 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:130
|
458 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
459 |
Â
msgid "Chat enabled"
|
460 |
Â
msgstr ""
|
461 |
Â
|
462 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:135
|
463 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
464 |
Â
msgid "Yes"
|
465 |
Â
msgstr ""
|
466 |
Â
|
467 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:138
|
468 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
469 |
Â
msgid "No"
|
470 |
Â
msgstr ""
|
471 |
Â
|
472 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:144
|
473 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:46
|
474 |
-
msgid "Choose when I want to be online"
|
475 |
-
msgstr ""
|
476 |
-
|
477 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:144
|
478 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:46
|
479 |
-
msgid ""
|
480 |
-
"Checking this will allow you to change your status to Online or Offline on "
|
481 |
-
"the Live Chat page."
|
482 |
-
msgstr ""
|
483 |
-
|
484 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:154
|
485 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
486 |
Â
msgid "Hide Chat"
|
487 |
Â
msgstr ""
|
488 |
Â
|
489 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:154
|
490 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
491 |
Â
msgid "Hides chat for 24hrs when user clicks X"
|
492 |
Â
msgstr ""
|
493 |
Â
|
494 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:162
|
495 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
496 |
Â
msgid "Require Name And Email"
|
497 |
Â
msgstr ""
|
498 |
Â
|
499 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:162
|
500 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
501 |
Â
msgid ""
|
502 |
Â
"Users will have to enter their Name and Email Address when starting a chat"
|
503 |
Â
msgstr ""
|
504 |
Â
|
505 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:172
|
506 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
507 |
Â
msgid "Input Field Replacement Text"
|
508 |
Â
msgstr ""
|
509 |
Â
|
510 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:172
|
511 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
512 |
Â
msgid "This is the text that will show in place of the Name And Email fields"
|
513 |
Â
msgstr ""
|
514 |
Â
|
515 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:182
|
516 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
517 |
Â
msgid "Use Logged In User Details"
|
518 |
Â
msgstr ""
|
519 |
Â
|
520 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:182
|
521 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
522 |
Â
msgid ""
|
523 |
Â
"A user's Name and Email Address will be used by default if they are logged "
|
524 |
Â
"in."
|
525 |
Â
msgstr ""
|
526 |
Â
|
527 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:193
|
528 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
529 |
Â
msgid "Enable On Mobile Devices"
|
530 |
Â
msgstr ""
|
531 |
Â
|
532 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:193
|
533 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
534 |
Â
msgid ""
|
535 |
Â
"Disabling this will mean that the Chat Box will not be displayed on mobile "
|
536 |
Â
"devices. (Smartphones and Tablets)"
|
537 |
Â
msgstr ""
|
538 |
Â
|
539 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:203
|
540 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
541 |
Â
msgid "Record a visitor's IP Address"
|
542 |
Â
msgstr ""
|
543 |
Â
|
544 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:203
|
545 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
546 |
Â
msgid "Disable this to enable anonymity for your visitors"
|
547 |
Â
msgstr ""
|
548 |
Â
|
549 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:213
|
550 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
551 |
Â
msgid "Play a sound when a new message is received"
|
552 |
Â
msgstr ""
|
553 |
Â
|
554 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:213
|
555 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
556 |
Â
msgid ""
|
557 |
Â
"Disable this to mute the sound that is played when a new chat message is "
|
558 |
Â
"received"
|
559 |
Â
msgstr ""
|
560 |
Â
|
561 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:222
|
562 |
-
msgid "Include chat window on the following pages:"
|
563 |
-
msgstr ""
|
564 |
-
|
565 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:222
|
566 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:125
|
567 |
-
msgid ""
|
568 |
-
"Show the chat window on the following pages. Leave blank to show on all. "
|
569 |
-
"(Use comma-separated Page ID's)"
|
570 |
-
msgstr ""
|
571 |
-
|
572 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:232
|
573 |
-
msgid "Exclude chat window on the following pages:"
|
574 |
-
msgstr ""
|
575 |
-
|
576 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:232
|
577 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:140
|
578 |
-
msgid ""
|
579 |
-
"Do not show the chat window on the following pages. Leave blank to show on "
|
580 |
-
"all. (Use comma-separated Page ID's)"
|
581 |
-
msgstr ""
|
582 |
-
|
583 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:242
|
584 |
Â
msgid "Allow any user to make themselves a chat agent"
|
585 |
Â
msgstr ""
|
@@ -591,234 +926,200 @@ msgid ""
|
|
591 |
Â
msgstr ""
|
592 |
Â
|
593 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:255
|
594 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
595 |
Â
msgid "Chat Window Settings"
|
596 |
Â
msgstr ""
|
597 |
Â
|
598 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:258
|
599 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
600 |
Â
msgid "Chat box alignment"
|
601 |
Â
msgstr ""
|
602 |
Â
|
603 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:263
|
604 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
605 |
Â
msgid "Bottom left"
|
606 |
Â
msgstr ""
|
607 |
Â
|
608 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:266
|
609 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
610 |
Â
msgid "Bottom right"
|
611 |
Â
msgstr ""
|
612 |
Â
|
613 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:269
|
614 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
615 |
Â
msgid "Left"
|
616 |
Â
msgstr ""
|
617 |
Â
|
618 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:272
|
619 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
620 |
Â
msgid "Right"
|
621 |
Â
msgstr ""
|
622 |
Â
|
623 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:278
|
624 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
625 |
Â
msgid "Auto Pop-up"
|
626 |
Â
msgstr ""
|
627 |
Â
|
628 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:278
|
629 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
630 |
Â
msgid ""
|
631 |
Â
"Expand the chat box automatically (prompts the user to enter their name and "
|
632 |
Â
"email address)."
|
633 |
Â
msgstr ""
|
634 |
Â
|
635 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:289
|
636 |
-
msgid "Name "
|
637 |
-
msgstr ""
|
638 |
-
|
639 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:303
|
640 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:200
|
641 |
-
msgid "Picture"
|
642 |
-
msgstr ""
|
643 |
-
|
644 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:311
|
645 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:203
|
646 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:219
|
647 |
-
msgid "Upload Image"
|
648 |
-
msgstr ""
|
649 |
-
|
650 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:313
|
651 |
-
msgid "Remove Image"
|
652 |
-
msgstr ""
|
653 |
-
|
654 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:314
|
655 |
-
msgid "Recomended Size 40px x 40px"
|
656 |
-
msgstr ""
|
657 |
-
|
658 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:320
|
659 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:216
|
660 |
-
msgid "Logo"
|
661 |
-
msgstr ""
|
662 |
-
|
663 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:328
|
664 |
-
msgid "Upload Logo"
|
665 |
-
msgstr ""
|
666 |
-
|
667 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:330
|
668 |
-
msgid "Remove Logo"
|
669 |
-
msgstr ""
|
670 |
-
|
671 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:331
|
672 |
-
msgid "Recomended Size 250px x 40px"
|
673 |
-
msgstr ""
|
674 |
-
|
675 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:337
|
676 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:232
|
677 |
-
msgid "Chat delay (seconds)"
|
678 |
-
msgstr ""
|
679 |
-
|
680 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:337
|
681 |
-
msgid "How long it takes for your chat window to pop up"
|
682 |
-
msgstr ""
|
683 |
-
|
684 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:346
|
685 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:248
|
686 |
-
msgid "Chat notifications"
|
687 |
-
msgstr ""
|
688 |
-
|
689 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:346
|
690 |
-
msgid "Alert me via email as soon as someone wants to chat (while online only)"
|
691 |
-
msgstr ""
|
692 |
-
|
693 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:356
|
694 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
695 |
Â
msgid "Display name and avatar in chat"
|
696 |
Â
msgstr ""
|
697 |
Â
|
698 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:356
|
699 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
700 |
Â
msgid "Display the agent and user name above each message in the chat window."
|
701 |
Â
msgstr ""
|
702 |
Â
|
703 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:368
|
704 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
705 |
Â
msgid "Only show the chat window to users that are logged in"
|
706 |
Â
msgstr ""
|
707 |
Â
|
708 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:368
|
709 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
710 |
Â
msgid ""
|
711 |
Â
"By checking this, only users that are logged in will be able to chat with "
|
712 |
Â
"you."
|
713 |
Â
msgstr ""
|
714 |
Â
|
715 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:387
|
716 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
717 |
Â
msgid "Do not allow users to send offline messages"
|
718 |
Â
msgstr ""
|
719 |
Â
|
720 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:387
|
721 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
722 |
Â
msgid ""
|
723 |
Â
"The chat window will be hidden when it is offline. Users will not be able to "
|
724 |
Â
"send offline messages to you"
|
725 |
Â
msgstr ""
|
726 |
Â
|
727 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:399
|
728 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
729 |
Â
msgid "Email Address"
|
730 |
Â
msgstr ""
|
731 |
Â
|
732 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:399
|
Â
|
|
733 |
Â
msgid ""
|
734 |
Â
"Email address where offline messages are delivered to. Use comma separated "
|
735 |
Â
"email addresses to send to more than one email address"
|
736 |
Â
msgstr ""
|
737 |
Â
|
738 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:412
|
Â
|
|
739 |
Â
msgid "Sending Method"
|
740 |
Â
msgstr ""
|
741 |
Â
|
742 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:413
|
Â
|
|
743 |
Â
msgid "WP Mail"
|
744 |
Â
msgstr ""
|
745 |
Â
|
746 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:414
|
Â
|
|
747 |
Â
msgid "PHP Mailer"
|
748 |
Â
msgstr ""
|
749 |
Â
|
750 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:430
|
Â
|
|
751 |
Â
msgid "Host"
|
752 |
Â
msgstr ""
|
753 |
Â
|
754 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:438
|
Â
|
|
755 |
Â
msgid "Port"
|
756 |
Â
msgstr ""
|
757 |
Â
|
758 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:446
|
Â
|
|
759 |
Â
msgid "Username"
|
760 |
Â
msgstr ""
|
761 |
Â
|
762 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:454
|
Â
|
|
763 |
Â
msgid "Password"
|
764 |
Â
msgstr ""
|
765 |
Â
|
766 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:463
|
Â
|
|
767 |
Â
msgid "Offline Chat Box Title"
|
768 |
Â
msgstr ""
|
769 |
Â
|
770 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:471
|
Â
|
|
771 |
Â
msgid "Offline Text Fields"
|
772 |
Â
msgstr ""
|
773 |
Â
|
774 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:504
|
Â
|
|
775 |
Â
msgid "Choose a theme"
|
776 |
Â
msgstr ""
|
777 |
Â
|
778 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:509
|
779 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:512
|
Â
|
|
Â
|
|
780 |
Â
msgid "Theme 1"
|
781 |
Â
msgstr ""
|
782 |
Â
|
783 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:515
|
784 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:518
|
Â
|
|
Â
|
|
785 |
Â
msgid "Theme 2"
|
786 |
Â
msgstr ""
|
787 |
Â
|
788 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:521
|
789 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:524
|
Â
|
|
Â
|
|
790 |
Â
msgid "Theme 3"
|
791 |
Â
msgstr ""
|
792 |
Â
|
793 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:527
|
794 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:530
|
Â
|
|
Â
|
|
795 |
Â
msgid "Theme 4"
|
796 |
Â
msgstr ""
|
797 |
Â
|
798 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:533
|
799 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:536
|
Â
|
|
Â
|
|
800 |
Â
msgid "Theme 5"
|
801 |
Â
msgstr ""
|
802 |
Â
|
803 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:539
|
Â
|
|
804 |
Â
msgid "Theme 6"
|
805 |
Â
msgstr ""
|
806 |
Â
|
807 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:542
|
Â
|
|
808 |
Â
msgid "Custom. Enter Colour Values Below"
|
809 |
Â
msgstr ""
|
810 |
Â
|
811 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:568
|
812 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
813 |
Â
msgid "Chat box fill color"
|
814 |
Â
msgstr ""
|
815 |
Â
|
816 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:574
|
817 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
818 |
Â
msgid "Chat box font color"
|
819 |
Â
msgstr ""
|
820 |
Â
|
821 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:581
|
Â
|
|
822 |
Â
msgid "I'm using a localization plugin"
|
823 |
Â
msgstr ""
|
824 |
Â
|
@@ -835,30 +1136,37 @@ msgid ""
|
|
835 |
Â
msgstr ""
|
836 |
Â
|
837 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:594
|
Â
|
|
838 |
Â
msgid "First Section Text"
|
839 |
Â
msgstr ""
|
840 |
Â
|
841 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:601
|
Â
|
|
842 |
Â
msgid "Intro Text"
|
843 |
Â
msgstr ""
|
844 |
Â
|
845 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:607
|
Â
|
|
846 |
Â
msgid "Second Section Text"
|
847 |
Â
msgstr ""
|
848 |
Â
|
849 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:614
|
Â
|
|
850 |
Â
msgid "Reactivate Chat Section Text"
|
851 |
Â
msgstr ""
|
852 |
Â
|
853 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:622
|
Â
|
|
854 |
Â
msgid "User chat welcome"
|
855 |
Â
msgstr ""
|
856 |
Â
|
857 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:628
|
Â
|
|
858 |
Â
msgid "Other text"
|
859 |
Â
msgstr ""
|
860 |
Â
|
861 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:630
|
Â
|
|
862 |
Â
msgid "This text is shown above the user chat input field"
|
863 |
Â
msgstr ""
|
864 |
Â
|
@@ -869,85 +1177,42 @@ msgid ""
|
|
869 |
Â
msgstr ""
|
870 |
Â
|
871 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:666
|
Â
|
|
872 |
Â
msgid "Choose an animation"
|
873 |
Â
msgstr ""
|
874 |
Â
|
875 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:674
|
876 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
877 |
Â
msgid "Slide Up"
|
878 |
Â
msgstr ""
|
879 |
Â
|
880 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:680
|
881 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
882 |
-
msgid "Slide From The Side"
|
883 |
-
msgstr ""
|
884 |
-
|
885 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:686
|
886 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:447
|
887 |
-
msgid "Fade In"
|
888 |
-
msgstr ""
|
889 |
-
|
890 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:692
|
891 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:451
|
892 |
-
msgid "No Animation"
|
893 |
-
msgstr ""
|
894 |
-
|
895 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:750
|
896 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:495
|
897 |
-
msgid "Current Users that are Chat Agents"
|
898 |
-
msgstr ""
|
899 |
-
|
900 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:761
|
901 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:503
|
902 |
-
msgid "Online"
|
903 |
-
msgstr ""
|
904 |
-
|
905 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:771
|
906 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:679
|
907 |
-
msgid "Remove"
|
908 |
-
msgstr ""
|
909 |
-
|
910 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:780
|
911 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:514
|
912 |
-
msgid "Add New Agent"
|
913 |
-
msgstr ""
|
914 |
-
|
915 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:782
|
916 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2805
|
917 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:516
|
918 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1948
|
919 |
-
msgid "Select"
|
920 |
-
msgstr ""
|
921 |
-
|
922 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:804
|
923 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:539
|
924 |
-
msgid "Add Agent"
|
925 |
-
msgstr ""
|
926 |
-
|
927 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:810
|
928 |
-
msgid ""
|
929 |
-
"Should you wish to add a user that has a role less than 'Author', please go "
|
930 |
-
"to the <a href='./users.php'>Users</a> page, select the relevant user, click "
|
931 |
-
"Edit and scroll to the bottom of the page and enable the 'Chat Agent' "
|
932 |
-
"checkbox."
|
933 |
Â
msgstr ""
|
934 |
Â
|
935 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:
|
936 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
937 |
Â
msgstr ""
|
938 |
Â
|
939 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:815
|
940 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
941 |
Â
msgid "Blocked Visitors - Based on IP Address"
|
942 |
Â
msgstr ""
|
943 |
Â
|
944 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:816
|
945 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
946 |
Â
msgid "Enter each IP Address you would like to block on a new line"
|
947 |
Â
msgstr ""
|
948 |
Â
|
949 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:827
|
950 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
951 |
Â
msgid ""
|
952 |
Â
"Blocking a user's IP Address here will hide the chat window from them, "
|
953 |
Â
"preventing them from chatting with you. Each IP Address must be on a new line"
|
@@ -958,511 +1223,507 @@ msgid ""
|
|
958 |
Â
"are only available in the WP Live Chat Support Chat Experience Ratings add-on"
|
959 |
Â
msgstr ""
|
960 |
Â
|
961 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:840
|
962 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:566
|
963 |
-
msgid "Chat Encryption"
|
964 |
-
msgstr ""
|
965 |
-
|
966 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:843
|
967 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:569
|
968 |
-
msgid "Enable Encryption"
|
969 |
-
msgstr ""
|
970 |
-
|
971 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:843
|
972 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:569
|
973 |
-
msgid ""
|
974 |
-
"All messages will be encrypted when being sent to and from the user and "
|
975 |
-
"agent."
|
976 |
-
msgstr ""
|
977 |
-
|
978 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:851
|
979 |
-
msgid ""
|
980 |
-
"Once enabled, all messages sent will be encrypted. This cannot be undone."
|
981 |
-
msgstr ""
|
982 |
-
|
983 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:857
|
984 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
985 |
Â
msgid "Save Settings"
|
986 |
Â
msgstr ""
|
987 |
Â
|
988 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
989 |
Â
msgid "Dear User"
|
990 |
Â
msgstr ""
|
991 |
Â
|
992 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
993 |
Â
msgid "You are using an outdated version of WP Live Chat Support Basic. Please"
|
994 |
Â
msgstr ""
|
995 |
Â
|
996 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
997 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
998 |
Â
msgid "update to at least version"
|
999 |
Â
msgstr ""
|
1000 |
Â
|
1001 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1002 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1003 |
Â
msgid "to ensure all functionality is in working order"
|
1004 |
Â
msgstr ""
|
1005 |
Â
|
1006 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1007 |
Â
msgid ""
|
1008 |
Â
"You're live chat box on your website has been temporarily disabled until the "
|
1009 |
Â
"basic plugin has been updated. This is to ensure a smooth and hassle-free "
|
1010 |
Â
"user experience for both yourself and your visitors."
|
1011 |
Â
msgstr ""
|
1012 |
Â
|
1013 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1014 |
Â
msgid ""
|
1015 |
Â
"You can update your plugin <a href='./update-core.php'>here</a> or <a "
|
1016 |
Â
"href='./plugins.php'>here</a>."
|
1017 |
Â
msgstr ""
|
1018 |
Â
|
1019 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1020 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1021 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1022 |
Â
msgid "If you are having difficulty updating the plugin, please contact"
|
1023 |
Â
msgstr ""
|
1024 |
Â
|
1025 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1026 |
Â
msgid ""
|
1027 |
Â
"WP Live Chat Support Pro requires WP Live Chat Support to function. You can "
|
1028 |
Â
"download the latest copy from"
|
1029 |
Â
msgstr ""
|
1030 |
Â
|
1031 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support
|
1036 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support
|
1037 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support
|
1038 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:377
|
1039 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:781
|
1040 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:962
|
1041 |
Â
msgid "Questions?"
|
1042 |
Â
msgstr ""
|
1043 |
Â
|
1044 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1045 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1046 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1047 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/
|
1048 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/
|
1049 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
Â
|
|
1050 |
Â
msgid "Chat with us"
|
1051 |
Â
msgstr ""
|
1052 |
Â
|
1053 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1054 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1055 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
1056 |
Â
msgid "Start live chat"
|
1057 |
Â
msgstr ""
|
1058 |
Â
|
1059 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1060 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1061 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1062 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/
|
1063 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/
|
1064 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1065 |
Â
msgid "Start Chat"
|
1066 |
Â
msgstr ""
|
1067 |
Â
|
1068 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1069 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1070 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
1071 |
Â
msgid "Connecting. Please be patient..."
|
1072 |
Â
msgstr ""
|
1073 |
Â
|
1074 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1075 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1076 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1077 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/
|
1078 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/
|
1079 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
Â
|
|
1080 |
Â
msgid "Reactivating your previous chat..."
|
1081 |
Â
msgstr ""
|
1082 |
Â
|
1083 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1084 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1085 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1086 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/
|
Â
|
|
1087 |
Â
msgid "Chat offline. Leave a message"
|
1088 |
Â
msgstr ""
|
1089 |
Â
|
1090 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1091 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1092 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
Â
|
|
1093 |
Â
msgid "Hello. Please input your details so that I may help you."
|
1094 |
Â
msgstr ""
|
1095 |
Â
|
1096 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1097 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1098 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1099 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1100 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
Â
|
|
1101 |
Â
msgid ""
|
1102 |
Â
"We are currently offline. Please leave a message and we'll get back to you "
|
1103 |
Â
"shortly."
|
1104 |
Â
msgstr ""
|
1105 |
Â
|
1106 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
Â
|
|
Â
|
|
1107 |
Â
msgid "Sending message..."
|
1108 |
Â
msgstr ""
|
1109 |
Â
|
1110 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1111 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1112 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
Â
|
|
Â
|
|
1113 |
Â
msgid "Thank you for your message. We will be in contact soon."
|
1114 |
Â
msgstr ""
|
1115 |
Â
|
1116 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1117 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1118 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1119 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/
|
1120 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/
|
1121 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
Â
|
|
1122 |
Â
msgid "Press ENTER to send your message"
|
1123 |
Â
msgstr ""
|
1124 |
Â
|
1125 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1126 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1127 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
Â
|
|
1128 |
Â
msgid "Welcome. How may I help you?"
|
1129 |
Â
msgstr ""
|
1130 |
Â
|
1131 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1132 |
Â
msgid "Rating Unavailable"
|
1133 |
Â
msgstr ""
|
1134 |
Â
|
1135 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1136 |
-
|
1137 |
-
msgstr ""
|
1138 |
-
|
1139 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:678
|
1140 |
-
msgid "You are not accepting chats"
|
1141 |
-
msgstr ""
|
1142 |
-
|
1143 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:727
|
1144 |
Â
msgid "Delete History"
|
1145 |
Â
msgstr ""
|
1146 |
Â
|
1147 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1148 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
Â
|
|
1149 |
Â
msgid "URL"
|
1150 |
Â
msgstr ""
|
1151 |
Â
|
1152 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1153 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1154 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
Â
|
|
1155 |
Â
msgid "Status"
|
1156 |
Â
msgstr ""
|
1157 |
Â
|
1158 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1159 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1160 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
Â
|
|
1161 |
Â
msgid "Action"
|
1162 |
Â
msgstr ""
|
1163 |
Â
|
1164 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
1165 |
Â
msgid "No chats available at the moment"
|
1166 |
Â
msgstr ""
|
1167 |
Â
|
1168 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
1169 |
Â
msgid "View Chat History"
|
1170 |
Â
msgstr ""
|
1171 |
Â
|
1172 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
1173 |
Â
msgid "Download Chat History"
|
1174 |
Â
msgstr ""
|
1175 |
Â
|
1176 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1177 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1178 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1179 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1180 |
Â
msgid "Please click 'Start Chat' to initiate a chat with an agent"
|
1181 |
Â
msgstr ""
|
1182 |
Â
|
1183 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1184 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1185 |
Â
msgid "Minimize Chat Window"
|
1186 |
Â
msgstr ""
|
1187 |
Â
|
1188 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1189 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1190 |
Â
msgid "Close Chat Window"
|
1191 |
Â
msgstr ""
|
1192 |
Â
|
1193 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1194 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
1195 |
Â
msgid "Send message"
|
1196 |
Â
msgstr ""
|
1197 |
Â
|
1198 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1199 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1200 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/
|
1201 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/
|
1202 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
Â
|
|
1203 |
Â
msgid "Send"
|
1204 |
Â
msgstr ""
|
1205 |
Â
|
1206 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1207 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1208 |
Â
msgid "Your settings have been saved."
|
1209 |
Â
msgstr ""
|
1210 |
Â
|
1211 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1212 |
Â
msgid "Chat sessions"
|
1213 |
Â
msgstr ""
|
1214 |
Â
|
1215 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1216 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1217 |
Â
msgid ""
|
1218 |
Â
"Please note: This window must be open in order to receive new chat "
|
1219 |
Â
"notifications."
|
1220 |
Â
msgstr ""
|
1221 |
Â
|
1222 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1223 |
-
|
1224 |
-
"You are not a chat agent. Please make yourself a chat agent before trying to "
|
1225 |
-
"chat to visitors"
|
1226 |
-
msgstr ""
|
1227 |
-
|
1228 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1550
|
1229 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1804
|
1230 |
Â
msgid "Visitors online"
|
1231 |
Â
msgstr ""
|
1232 |
Â
|
1233 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1234 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1235 |
-
msgid "Agent(s) online"
|
1236 |
-
msgstr ""
|
1237 |
-
|
1238 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1565
|
1239 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1819
|
1240 |
Â
msgid "Visitor"
|
1241 |
Â
msgstr ""
|
1242 |
Â
|
1243 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1244 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1245 |
Â
msgid "Time"
|
1246 |
Â
msgstr ""
|
1247 |
Â
|
1248 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1249 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1250 |
Â
msgid "Type"
|
1251 |
Â
msgstr ""
|
1252 |
Â
|
1253 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1254 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1255 |
Â
msgid "Data"
|
1256 |
Â
msgstr ""
|
1257 |
Â
|
1258 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1259 |
Â
msgid "Unknown"
|
1260 |
Â
msgstr ""
|
1261 |
Â
|
1262 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1263 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1264 |
Â
msgid "End chat"
|
1265 |
Â
msgstr ""
|
1266 |
Â
|
1267 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1268 |
-
|
1269 |
-
msgstr ""
|
1270 |
-
|
1271 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1798
|
1272 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2757
|
1273 |
Â
msgid "This chat has already been answered. Please close the chat window"
|
1274 |
Â
msgstr ""
|
1275 |
Â
|
1276 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1277 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1278 |
Â
msgid "User has opened the chat window"
|
1279 |
Â
msgstr ""
|
1280 |
Â
|
1281 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1282 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1283 |
Â
msgid "User has minimized the chat window"
|
1284 |
Â
msgstr ""
|
1285 |
Â
|
1286 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1287 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1288 |
Â
msgid "User has maximized the chat window"
|
1289 |
Â
msgstr ""
|
1290 |
Â
|
1291 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1292 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2097
|
1293 |
Â
msgid "User has closed and ended the chat"
|
1294 |
Â
msgstr ""
|
1295 |
Â
|
1296 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
1297 |
Â
msgid ""
|
1298 |
Â
"An Unexpected HTTP Error occurred during the API request.</p> <p><a href=\"?"
|
1299 |
Â
"\" onclick=\"document.location.reload(); return false;\">Try again</a>"
|
1300 |
Â
msgstr ""
|
1301 |
Â
|
1302 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
1303 |
Â
msgid "An unknown error occurred"
|
1304 |
Â
msgstr ""
|
1305 |
Â
|
1306 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1307 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
Â
|
|
1308 |
Â
msgid "Add-ons"
|
1309 |
Â
msgstr ""
|
1310 |
Â
|
1311 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1312 |
Â
msgid "Supplimentary Plugins"
|
1313 |
Â
msgstr ""
|
1314 |
Â
|
1315 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1316 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:346
|
1317 |
Â
msgid "Pro add-on"
|
1318 |
Â
msgstr ""
|
1319 |
Â
|
1320 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1321 |
Â
msgid "Get this extension"
|
1322 |
Â
msgstr ""
|
1323 |
Â
|
1324 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1325 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1326 |
Â
msgid "Live Chat"
|
1327 |
Â
msgstr ""
|
1328 |
Â
|
1329 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1330 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1331 |
Â
msgid "Settings"
|
1332 |
Â
msgstr ""
|
1333 |
Â
|
1334 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1335 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1336 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1337 |
Â
msgid "Quick Responses"
|
1338 |
Â
msgstr ""
|
1339 |
Â
|
1340 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1341 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1342 |
Â
msgid "History"
|
1343 |
Â
msgstr ""
|
1344 |
Â
|
1345 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1346 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1347 |
Â
msgid "Missed Chats"
|
1348 |
Â
msgstr ""
|
1349 |
Â
|
1350 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1351 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:37
|
1352 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1353 |
Â
msgid "Feedback"
|
1354 |
Â
msgstr ""
|
1355 |
Â
|
1356 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1357 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1358 |
Â
msgid "Extensions"
|
1359 |
Â
msgstr ""
|
1360 |
Â
|
1361 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1362 |
Â
msgid "Error Log"
|
1363 |
Â
msgstr ""
|
1364 |
Â
|
1365 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1366 |
Â
msgid "Statistics"
|
1367 |
Â
msgstr ""
|
1368 |
Â
|
1369 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1370 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1371 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1372 |
Â
msgid "Support"
|
1373 |
Â
msgstr ""
|
1374 |
Â
|
1375 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1376 |
Â
msgid "Quick Response"
|
1377 |
Â
msgstr ""
|
1378 |
Â
|
1379 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1380 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1381 |
Â
msgid "New Quick Response"
|
1382 |
Â
msgstr ""
|
1383 |
Â
|
1384 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1385 |
Â
msgid "Add New Quick Response"
|
1386 |
Â
msgstr ""
|
1387 |
Â
|
1388 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1389 |
Â
msgid "Edit Quick Response"
|
1390 |
Â
msgstr ""
|
1391 |
Â
|
1392 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1393 |
Â
msgid "All Quick Responses"
|
1394 |
Â
msgstr ""
|
1395 |
Â
|
1396 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1397 |
Â
msgid "View Quick Responses"
|
1398 |
Â
msgstr ""
|
1399 |
Â
|
1400 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1401 |
Â
msgid "Search Quick Responses"
|
1402 |
Â
msgstr ""
|
1403 |
Â
|
1404 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1405 |
Â
msgid "No Quick Responses found"
|
1406 |
Â
msgstr ""
|
1407 |
Â
|
1408 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1409 |
Â
msgid "No Quick Responses found in the Trash"
|
1410 |
Â
msgstr ""
|
1411 |
Â
|
1412 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1413 |
Â
msgid "Quick Responses for WP Live Chat Support Pro"
|
1414 |
Â
msgstr ""
|
1415 |
Â
|
1416 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1417 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1418 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1419 |
Â
msgid "Assign Quick Response"
|
1420 |
Â
msgstr ""
|
1421 |
Â
|
1422 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:
|
1423 |
Â
msgid "What is this?"
|
1424 |
Â
msgstr ""
|
1425 |
Â
|
1426 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
1427 |
Â
msgid "complete"
|
1428 |
Â
msgstr ""
|
1429 |
Â
|
1430 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
1431 |
Â
msgid "pending"
|
1432 |
Â
msgstr ""
|
1433 |
Â
|
1434 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
1435 |
Â
msgid "active"
|
1436 |
Â
msgstr ""
|
1437 |
Â
|
1438 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
1439 |
Â
msgid "deleted"
|
1440 |
Â
msgstr ""
|
1441 |
Â
|
1442 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
1443 |
Â
msgid "browsing"
|
1444 |
Â
msgstr ""
|
1445 |
Â
|
1446 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
1447 |
Â
msgid "requesting chat"
|
1448 |
Â
msgstr ""
|
1449 |
Â
|
1450 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
1451 |
Â
msgid "Chat Ended - User still browsing"
|
1452 |
Â
msgstr ""
|
1453 |
Â
|
1454 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
1455 |
Â
msgid "User is browsing but doesn't want to chat"
|
1456 |
Â
msgstr ""
|
1457 |
Â
|
1458 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
1459 |
Â
msgid "Get Pro Add-on to accept more chats"
|
1460 |
Â
msgstr ""
|
1461 |
Â
|
1462 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:
|
1463 |
Â
msgid "You have not missed any chat requests."
|
1464 |
Â
msgstr ""
|
1465 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1466 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:7
|
1467 |
Â
msgid "WP Live Chat Support Feedback"
|
1468 |
Â
msgstr ""
|
@@ -1487,582 +1748,486 @@ msgstr ""
|
|
1487 |
Â
msgid "Send Feedback"
|
1488 |
Â
msgstr ""
|
1489 |
Â
|
1490 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:
|
1491 |
Â
msgid "Agents"
|
1492 |
Â
msgstr ""
|
1493 |
Â
|
1494 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:52
|
1495 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:67
|
1496 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:131
|
1497 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:146
|
1498 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:190
|
1499 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:206
|
1500 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:222
|
1501 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:238
|
1502 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:255
|
1503 |
-
msgid "available in the"
|
1504 |
-
msgstr ""
|
1505 |
-
|
1506 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:53
|
1507 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:68
|
1508 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:132
|
1509 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:147
|
1510 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:191
|
1511 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:207
|
1512 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:223
|
1513 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:239
|
1514 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:256
|
1515 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:299
|
1516 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:313
|
1517 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:397
|
1518 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:574
|
1519 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2371
|
1520 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2393
|
1521 |
-
msgid "Pro Add-on"
|
1522 |
-
msgstr ""
|
1523 |
-
|
1524 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:54
|
1525 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:69
|
1526 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:133
|
1527 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:148
|
1528 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:192
|
1529 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:208
|
1530 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:224
|
1531 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:240
|
1532 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:257
|
1533 |
-
msgid "only"
|
1534 |
-
msgstr ""
|
1535 |
-
|
1536 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:125
|
1537 |
-
msgid "Include chat window on the following pages"
|
1538 |
-
msgstr ""
|
1539 |
-
|
1540 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:140
|
1541 |
-
msgid "Exclude chat window on the following pages"
|
1542 |
-
msgstr ""
|
1543 |
-
|
1544 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:252
|
1545 |
-
msgid "Alert me via email as soon as someone wants to chat"
|
1546 |
-
msgstr ""
|
1547 |
-
|
1548 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:298
|
1549 |
-
msgid "Get offline messages with the "
|
1550 |
-
msgstr ""
|
1551 |
-
|
1552 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:307
|
1553 |
-
msgid "Offline text"
|
1554 |
-
msgstr ""
|
1555 |
-
|
1556 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:312
|
1557 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:396
|
1558 |
-
msgid "Edit these text fields using the "
|
1559 |
-
msgstr ""
|
1560 |
-
|
1561 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:346
|
1562 |
-
msgid "Choose a colour scheme. Only available in the"
|
1563 |
-
msgstr ""
|
1564 |
-
|
1565 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:350
|
1566 |
-
msgid "Colour Scheme 1"
|
1567 |
-
msgstr ""
|
1568 |
-
|
1569 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:351
|
1570 |
-
msgid "Colour Scheme 2"
|
1571 |
-
msgstr ""
|
1572 |
-
|
1573 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:352
|
1574 |
-
msgid "Colour Scheme 3"
|
1575 |
-
msgstr ""
|
1576 |
-
|
1577 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:353
|
1578 |
-
msgid "Colour Scheme 4"
|
1579 |
-
msgstr ""
|
1580 |
-
|
1581 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:354
|
1582 |
-
msgid "Colour Scheme 5"
|
1583 |
-
msgstr ""
|
1584 |
-
|
1585 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:355
|
1586 |
-
msgid "Colour Scheme 6"
|
1587 |
-
msgstr ""
|
1588 |
-
|
1589 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:375
|
1590 |
-
msgid "First section text"
|
1591 |
-
msgstr ""
|
1592 |
-
|
1593 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:382
|
1594 |
-
msgid "Second section text"
|
1595 |
-
msgstr ""
|
1596 |
-
|
1597 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:385
|
1598 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:843
|
1599 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1027
|
1600 |
-
msgid "Connecting you to a sales person. Please be patient."
|
1601 |
-
msgstr ""
|
1602 |
-
|
1603 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:391
|
1604 |
-
msgid "Reactivate chat section text"
|
1605 |
-
msgstr ""
|
1606 |
-
|
1607 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:431
|
1608 |
-
msgid "Choose an animation. Only available in the"
|
1609 |
-
msgstr ""
|
1610 |
-
|
1611 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:432
|
1612 |
-
msgid "Pro"
|
1613 |
-
msgstr ""
|
1614 |
-
|
1615 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:540
|
1616 |
-
msgid "Add as many agents as you need with the "
|
1617 |
-
msgstr ""
|
1618 |
-
|
1619 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:540
|
1620 |
-
msgid "Pro version for only $19.95 once off."
|
1621 |
-
msgstr ""
|
1622 |
-
|
1623 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:573
|
1624 |
-
msgid "Encrypt your chat messages in the "
|
1625 |
-
msgstr ""
|
1626 |
-
|
1627 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:4
|
1628 |
Â
msgid "Welcome to "
|
1629 |
Â
msgstr ""
|
1630 |
Â
|
1631 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:6
|
1632 |
-
msgid "Version
|
1633 |
Â
msgstr ""
|
1634 |
Â
|
1635 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:8
|
1636 |
-
msgid "
|
1637 |
Â
msgstr ""
|
1638 |
Â
|
1639 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:
|
1640 |
Â
msgid "How did you find us?"
|
1641 |
Â
msgstr ""
|
1642 |
Â
|
1643 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:
|
1644 |
Â
msgid "WordPress.org plugin repository "
|
1645 |
Â
msgstr ""
|
1646 |
Â
|
1647 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:
|
1648 |
Â
msgid "Search Term"
|
1649 |
Â
msgstr ""
|
1650 |
Â
|
1651 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:
|
1652 |
Â
msgid "Google or other search Engine"
|
1653 |
Â
msgstr ""
|
1654 |
Â
|
1655 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:
|
1656 |
Â
msgid "Friend recommendation"
|
1657 |
Â
msgstr ""
|
1658 |
Â
|
1659 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:
|
1660 |
Â
msgid "Other"
|
1661 |
Â
msgstr ""
|
1662 |
Â
|
1663 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:
|
1664 |
Â
msgid "Please Explain"
|
1665 |
Â
msgstr ""
|
1666 |
Â
|
1667 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:
|
1668 |
Â
msgid "Submit"
|
1669 |
Â
msgstr ""
|
1670 |
Â
|
1671 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:
|
1672 |
Â
msgid "Skip"
|
1673 |
Â
msgstr ""
|
1674 |
Â
|
1675 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1676 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1677 |
Â
msgid "Please click \\'Start Chat\\' to initiate a chat with an agent"
|
1678 |
Â
msgstr ""
|
1679 |
Â
|
1680 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1681 |
-
|
1682 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1683 |
Â
msgstr ""
|
1684 |
Â
|
1685 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1686 |
Â
msgid "New chat received"
|
1687 |
Â
msgstr ""
|
1688 |
Â
|
1689 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1690 |
Â
msgid ""
|
1691 |
Â
"A new chat has been received. Please go the 'Live Chat' page to accept the "
|
1692 |
Â
"chat"
|
1693 |
Â
msgstr ""
|
1694 |
Â
|
1695 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1696 |
Â
msgid ""
|
1697 |
Â
"You are using an outdated version of <strong>WP Live Chat Support Pro</"
|
1698 |
Â
"strong>. Please"
|
1699 |
Â
msgstr ""
|
1700 |
Â
|
1701 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1702 |
Â
msgid ""
|
1703 |
Â
"You're live chat box on your website has been temporarily disabled until the "
|
1704 |
Â
"Pro plugin has been updated. This is to ensure a smooth and hassle-free user "
|
1705 |
Â
"experience for both yourself and your visitors."
|
1706 |
Â
msgstr ""
|
1707 |
Â
|
1708 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1709 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1710 |
Â
msgid ""
|
1711 |
Â
"You can update your plugin <a href='./update-core.php'>here</a>, <a href='./"
|
1712 |
Â
"plugins.php'>here</a> or <a href='http://wp-livechat.com/get-updated-"
|
1713 |
Â
"version/' target='_BLANK'>here</a>."
|
1714 |
Â
msgstr ""
|
1715 |
Â
|
1716 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1717 |
Â
msgid ""
|
1718 |
Â
"You are using an outdated version of <strong>WP Live Chat Support Pro</"
|
1719 |
Â
"strong>."
|
1720 |
Â
msgstr ""
|
1721 |
Â
|
1722 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1723 |
Â
msgid "Please update to the latest version of WP Live Chat Support Pro"
|
1724 |
Â
msgstr ""
|
1725 |
Â
|
1726 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1727 |
Â
msgid "Version 5.0.1"
|
1728 |
Â
msgstr ""
|
1729 |
Â
|
1730 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1731 |
Â
msgid "to ensure everything is working correctly."
|
1732 |
Â
msgstr ""
|
1733 |
Â
|
1734 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1735 |
Â
msgid "Congratulations"
|
1736 |
Â
msgstr ""
|
1737 |
Â
|
1738 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1739 |
Â
msgid "You are now accepting live chat requests on your site."
|
1740 |
Â
msgstr ""
|
1741 |
Â
|
1742 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1743 |
Â
msgid "The live chat box has automatically been enabled on your website."
|
1744 |
Â
msgstr ""
|
1745 |
Â
|
1746 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1747 |
Â
msgid "Chat notifications will start appearing once visitors send a request."
|
1748 |
Â
msgstr ""
|
1749 |
Â
|
1750 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1751 |
Â
msgid ""
|
1752 |
Â
"You may <a href='?page=wplivechat-menu-settings' target='_BLANK'>modify your "
|
1753 |
Â
"chat box settings here."
|
1754 |
Â
msgstr ""
|
1755 |
Â
|
1756 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1757 |
Â
msgid "Experiencing issues?"
|
1758 |
Â
msgstr ""
|
1759 |
Â
|
1760 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1761 |
Â
msgid "Visit our troubleshooting section."
|
1762 |
Â
msgstr ""
|
1763 |
Â
|
1764 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1765 |
Â
msgid "Hide"
|
1766 |
Â
msgstr ""
|
1767 |
Â
|
1768 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1769 |
-
msgid "
|
1770 |
-
|
1771 |
-
|
1772 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1831
|
1773 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2784
|
1774 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2785
|
1775 |
-
msgid "With the Pro add-on of WP Live Chat Support, you can"
|
1776 |
Â
msgstr ""
|
1777 |
Â
|
1778 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1779 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1780 |
Â
msgid "see who's online and initiate chats"
|
1781 |
Â
msgstr ""
|
1782 |
Â
|
1783 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1784 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1785 |
Â
msgid "initiate chats"
|
1786 |
Â
msgstr ""
|
1787 |
Â
|
1788 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1789 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1790 |
Â
msgid "with your online visitors with the click of a button."
|
1791 |
Â
msgstr ""
|
1792 |
Â
|
1793 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1794 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1795 |
-
msgid "Buy the
|
1796 |
Â
msgstr ""
|
1797 |
Â
|
1798 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1799 |
Â
msgid "Previous"
|
1800 |
Â
msgstr ""
|
1801 |
Â
|
1802 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1803 |
Â
msgid "Active"
|
1804 |
Â
msgstr ""
|
1805 |
Â
|
1806 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1807 |
Â
msgid "Chat with"
|
1808 |
Â
msgstr ""
|
1809 |
Â
|
1810 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1811 |
Â
msgid "Add Quick Responses to your Live Chat"
|
1812 |
Â
msgstr ""
|
1813 |
Â
|
1814 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1815 |
Â
msgid "Pro version only"
|
1816 |
Â
msgstr ""
|
1817 |
Â
|
1818 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1819 |
Â
msgid "type here..."
|
1820 |
Â
msgstr ""
|
1821 |
Â
|
1822 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1823 |
-
msgid "
|
1824 |
Â
msgstr ""
|
1825 |
Â
|
1826 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1827 |
-
|
1828 |
-
msgid "This option is only available in the "
|
1829 |
Â
msgstr ""
|
1830 |
Â
|
1831 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1832 |
Â
msgid "WP Live Chat Missed Chats"
|
1833 |
Â
msgstr ""
|
1834 |
Â
|
1835 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1836 |
-
msgid "WP Live Chat Offline Messages"
|
1837 |
-
msgstr ""
|
1838 |
-
|
1839 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2390
|
1840 |
Â
msgid ""
|
1841 |
Â
"Please update to the latest version of WP Live Chat Support Pro to start "
|
1842 |
Â
"recording any offline messages."
|
1843 |
Â
msgstr ""
|
1844 |
Â
|
1845 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1846 |
Â
msgid "Thank You for your feedback!"
|
1847 |
Â
msgstr ""
|
1848 |
Â
|
1849 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1850 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1851 |
Â
msgid "Thank you for your feedback. We will be in touch soon"
|
1852 |
Â
msgstr ""
|
1853 |
Â
|
1854 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1855 |
Â
msgid "There was a problem sending your feedback. Please log your feedback on "
|
1856 |
Â
msgstr ""
|
1857 |
Â
|
1858 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1859 |
Â
msgid ""
|
1860 |
Â
"WPLC: set_time_limit() is not enabled on this server. You may experience "
|
1861 |
Â
"issues while using WP Live Chat Support as a result of this. Please get in "
|
1862 |
Â
"contact your host to get this function enabled."
|
1863 |
Â
msgstr ""
|
1864 |
Â
|
1865 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1866 |
Â
msgid ""
|
1867 |
Â
"WPLC: Safe mode is enabled on this server. You may experience issues while "
|
1868 |
Â
"using WP Live Chat Support as a result of this. Please contact your host to "
|
1869 |
Â
"get safe mode disabled."
|
1870 |
Â
msgstr ""
|
1871 |
Â
|
1872 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1873 |
Â
msgid "Suggested Plugins"
|
1874 |
Â
msgstr ""
|
1875 |
Â
|
1876 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1877 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1878 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1879 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1880 |
Â
msgid "Sola Support Tickets"
|
1881 |
Â
msgstr ""
|
1882 |
Â
|
1883 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1884 |
Â
msgid ""
|
1885 |
Â
"The easiest to use Help Desk & Support Ticket plugin. Create a support help "
|
1886 |
Â
"desk quickly and easily with Sola Support Tickets."
|
1887 |
Â
msgstr ""
|
1888 |
Â
|
1889 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1890 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1891 |
Â
msgid "Get this Plugin"
|
1892 |
Â
msgstr ""
|
1893 |
Â
|
1894 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1895 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1896 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1897 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1898 |
Â
msgid "Nifty Newsletters"
|
1899 |
Â
msgstr ""
|
1900 |
Â
|
1901 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1902 |
Â
msgid ""
|
1903 |
Â
"Create and send newsletters, automatic post notifications and autoresponders "
|
1904 |
Â
"that are modern and beautiful with Nifty Newsletters."
|
1905 |
Â
msgstr ""
|
1906 |
Â
|
1907 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1908 |
Â
msgid "Price:"
|
1909 |
Â
msgstr ""
|
1910 |
Â
|
1911 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1912 |
Â
msgid "All"
|
1913 |
Â
msgstr ""
|
1914 |
Â
|
1915 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1916 |
Â
msgid "Free"
|
1917 |
Â
msgstr ""
|
1918 |
Â
|
1919 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1920 |
Â
msgid "Paid"
|
1921 |
Â
msgstr ""
|
1922 |
Â
|
1923 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1924 |
Â
msgid "For:"
|
1925 |
Â
msgstr ""
|
1926 |
Â
|
1927 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1928 |
Â
msgid "Both"
|
1929 |
Â
msgstr ""
|
1930 |
Â
|
1931 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1932 |
Â
msgid "Free version"
|
1933 |
Â
msgstr ""
|
1934 |
Â
|
1935 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1936 |
Â
msgid "Pro version"
|
1937 |
Â
msgstr ""
|
1938 |
Â
|
1939 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1940 |
Â
msgid "Already installed"
|
1941 |
Â
msgstr ""
|
1942 |
Â
|
1943 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1944 |
Â
msgid "WP Live Chat Support"
|
1945 |
Â
msgstr ""
|
1946 |
Â
|
1947 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1948 |
Â
msgid "Documentation"
|
1949 |
Â
msgstr ""
|
1950 |
Â
|
1951 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1952 |
Â
msgid ""
|
1953 |
Â
"Getting started? Read through some of these articles to help you along your "
|
1954 |
Â
"way."
|
1955 |
Â
msgstr ""
|
1956 |
Â
|
1957 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1958 |
Â
msgid "Documentation:"
|
1959 |
Â
msgstr ""
|
1960 |
Â
|
1961 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1962 |
Â
msgid "Minimum System Requirements"
|
1963 |
Â
msgstr ""
|
1964 |
Â
|
1965 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1966 |
Â
msgid "Do I have to be logged into the dashboard to chat with visitors?"
|
1967 |
Â
msgstr ""
|
1968 |
Â
|
1969 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1970 |
Â
msgid "What are Quick Responses?"
|
1971 |
Â
msgstr ""
|
1972 |
Â
|
1973 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1974 |
Â
msgid "Can I use this plugin on my multi-site?"
|
1975 |
Â
msgstr ""
|
1976 |
Â
|
1977 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1978 |
Â
msgid "How do I disable APC Object Cache?"
|
1979 |
Â
msgstr ""
|
1980 |
Â
|
1981 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1982 |
Â
msgid "Do you have a mobile app?"
|
1983 |
Â
msgstr ""
|
1984 |
Â
|
1985 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1986 |
Â
msgid "How do I check for JavaScript errors on my site?"
|
1987 |
Â
msgstr ""
|
1988 |
Â
|
1989 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1990 |
Â
msgid "Troubleshooting"
|
1991 |
Â
msgstr ""
|
1992 |
Â
|
1993 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
1994 |
Â
msgid ""
|
1995 |
Â
"WP Live Chat Support has a diverse and wide range of features which may, "
|
1996 |
Â
"from time to time, run into conflicts with the thousands of themes and other "
|
1997 |
Â
"plugins on the market."
|
1998 |
Â
msgstr ""
|
1999 |
Â
|
2000 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2001 |
Â
msgid "Common issues:"
|
2002 |
Â
msgstr ""
|
2003 |
Â
|
2004 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2005 |
Â
msgid "The chat box doesnt show up"
|
2006 |
Â
msgstr ""
|
2007 |
Â
|
2008 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2009 |
Â
msgid "The chat window disappears when I logout or go offline"
|
2010 |
Â
msgstr ""
|
2011 |
Â
|
2012 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2013 |
Â
msgid "Messages only show when I refresh the chat window"
|
2014 |
Â
msgstr ""
|
2015 |
Â
|
2016 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2017 |
Â
msgid "I'm not getting any notifications of a new chat"
|
2018 |
Â
msgstr ""
|
2019 |
Â
|
2020 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2021 |
Â
msgid "The chat window never goes offline"
|
2022 |
Â
msgstr ""
|
2023 |
Â
|
2024 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2025 |
Â
msgid "Still need help? Use one of these links below."
|
2026 |
Â
msgstr ""
|
2027 |
Â
|
2028 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2029 |
Â
msgid "Support forum"
|
2030 |
Â
msgstr ""
|
2031 |
Â
|
2032 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2033 |
Â
msgid "Contact us"
|
2034 |
Â
msgstr ""
|
2035 |
Â
|
2036 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2037 |
-
msgid "
|
Â
|
|
Â
|
|
2038 |
Â
msgstr ""
|
2039 |
Â
|
2040 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2041 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2042 |
-
msgid "Buy the
|
2043 |
Â
msgstr ""
|
2044 |
Â
|
2045 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2046 |
Â
msgid "Multiple Chats"
|
2047 |
Â
msgstr ""
|
2048 |
Â
|
2049 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2050 |
Â
msgid "accept and handle multiple chats."
|
2051 |
Â
msgstr ""
|
2052 |
Â
|
2053 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2054 |
Â
msgid "Add unlimited agents"
|
2055 |
Â
msgstr ""
|
2056 |
Â
|
2057 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2058 |
-
msgid "
|
Â
|
|
2059 |
Â
msgstr ""
|
2060 |
Â
|
2061 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2062 |
Â
msgid "(once off payment)."
|
2063 |
Â
msgstr ""
|
2064 |
Â
|
2065 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2066 |
Â
#, php-format
|
2067 |
Â
msgid ""
|
2068 |
Â
"Thank you for using <a href=\"%1$s\" target=\"_blank\">WP Live Chat Support</"
|
@@ -2070,6 +2235,88 @@ msgid ""
|
|
2070 |
Â
"\" target=\"_blank\">WordPress.org</a>"
|
2071 |
Â
msgstr ""
|
2072 |
Â
|
2073 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:
|
2074 |
Â
msgid "WP Live Chat Support is a product of"
|
2075 |
Â
msgstr ""
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
Â
msgid ""
|
2 |
Â
msgstr ""
|
3 |
Â
"Project-Id-Version: wplivechat\n"
|
4 |
+
"POT-Creation-Date: 2016-01-26 12:12+0200\n"
|
5 |
+
"PO-Revision-Date: 2016-01-26 12:13+0200\n"
|
6 |
Â
"Last-Translator: \n"
|
7 |
Â
"Language-Team: \n"
|
8 |
Â
"Language: en\n"
|
16 |
Â
"live-chat-support\n"
|
17 |
Â
"X-Poedit-SearchPath-1: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
|
18 |
Â
"live-chat-support-pro\n"
|
19 |
+
"X-Poedit-SearchPath-2: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
|
20 |
+
"live-chat-support-advanced-chat-box-control\n"
|
21 |
+
"X-Poedit-SearchPath-3: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
|
22 |
+
"live-chat-support-choose-when-online\n"
|
23 |
+
"X-Poedit-SearchPath-4: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
|
24 |
+
"live-chat-support-cloud-server\n"
|
25 |
+
"X-Poedit-SearchPath-5: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
|
26 |
+
"live-chat-support-encryption\n"
|
27 |
+
"X-Poedit-SearchPath-6: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
|
28 |
+
"live-chat-support-include-exclude-pages\n"
|
29 |
+
"X-Poedit-SearchPath-7: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
|
30 |
+
"live-chat-support-initiate-chats\n"
|
31 |
+
"X-Poedit-SearchPath-8: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
|
32 |
+
"live-chat-support-mobile-and-desktop-app\n"
|
33 |
+
"X-Poedit-SearchPath-9: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
|
34 |
+
"live-chat-support-multiple-agents\n"
|
35 |
+
|
36 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:34
|
37 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:98
|
38 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:285
|
39 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3209
|
40 |
+
msgid "Advanced Chat Box Control"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:51
|
44 |
+
#, php-format
|
45 |
+
msgid "Incoming chat from %s (%s) on %s"
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:57
|
49 |
+
#, php-format
|
50 |
+
msgid "%s (%s) wants to chat with you. <br /><br />Log in: %s"
|
51 |
+
msgstr ""
|
52 |
+
|
53 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:105
|
54 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:289
|
55 |
+
msgid "Name "
|
56 |
+
msgstr ""
|
57 |
+
|
58 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:119
|
59 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:303
|
60 |
+
msgid "Picture"
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:127
|
64 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:311
|
65 |
+
msgid "Upload Image"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:129
|
69 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:313
|
70 |
+
msgid "Remove Image"
|
71 |
+
msgstr ""
|
72 |
+
|
73 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:130
|
74 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:314
|
75 |
+
msgid "Recomended Size 40px x 40px"
|
76 |
+
msgstr ""
|
77 |
+
|
78 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:136
|
79 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:320
|
80 |
+
msgid "Logo"
|
81 |
+
msgstr ""
|
82 |
+
|
83 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:144
|
84 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:328
|
85 |
+
msgid "Upload Logo"
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:146
|
89 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:330
|
90 |
+
msgid "Remove Logo"
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:147
|
94 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:331
|
95 |
+
msgid "Recomended Size 250px x 40px"
|
96 |
+
msgstr ""
|
97 |
+
|
98 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:153
|
99 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:337
|
100 |
+
msgid "Chat delay (seconds)"
|
101 |
+
msgstr ""
|
102 |
+
|
103 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:153
|
104 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:337
|
105 |
+
msgid "How long it takes for your chat window to pop up"
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:162
|
109 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:346
|
110 |
+
msgid "Chat notifications"
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:162
|
114 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:346
|
115 |
+
msgid "Alert me via email as soon as someone wants to chat (while online only)"
|
116 |
+
msgstr ""
|
117 |
+
|
118 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:189
|
119 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:648
|
120 |
+
msgid "Admin"
|
121 |
+
msgstr ""
|
122 |
+
|
123 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-advanced-chat-box-control/wp-live-chat-support-advanced-chat-box-control.php:284
|
124 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-choose-when-online/wp-live-chat-support-choose-when-online.php:290
|
125 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-cloud-server/wp-live-chat-support-cloud-server.php:384
|
126 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-encryption/wp-live-chat-support-encryption.php:274
|
127 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-initiate-chats/wp-live-chat-support-initiate-chats.php:238
|
128 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-mobile-and-desktop-app/wp-live-chat-support-mobile-and-desktop-app.php:173
|
129 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:778
|
130 |
+
#, php-format
|
131 |
+
msgid ""
|
132 |
+
"The <strong>%s</strong> extension is not compatibile with the <strong>Pro "
|
133 |
+
"version</strong> of WP Live Chat Support. <a href='%s' title='%s' "
|
134 |
+
"target='_BLANK'>Click here for important information about this change.</a>"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-choose-when-online/wp-live-chat-support-choose-when-online.php:35
|
138 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-choose-when-online/wp-live-chat-support-choose-when-online.php:291
|
139 |
+
msgid "Choose When Online"
|
140 |
+
msgstr ""
|
141 |
+
|
142 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-choose-when-online/wp-live-chat-support-choose-when-online.php:177
|
143 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:708
|
144 |
+
msgid "You are currently accepting chats"
|
145 |
+
msgstr ""
|
146 |
+
|
147 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-choose-when-online/wp-live-chat-support-choose-when-online.php:178
|
148 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:709
|
149 |
+
msgid "You are not accepting chats"
|
150 |
+
msgstr ""
|
151 |
+
|
152 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-choose-when-online/wp-live-chat-support-choose-when-online.php:217
|
153 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:144
|
154 |
+
msgid "Choose when I want to be online"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-choose-when-online/wp-live-chat-support-choose-when-online.php:217
|
158 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:144
|
159 |
+
msgid ""
|
160 |
+
"Checking this will allow you to change your status to Online or Offline on "
|
161 |
+
"the Live Chat page."
|
162 |
+
msgstr ""
|
163 |
+
|
164 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-cloud-server/wp-live-chat-support-cloud-server.php:32
|
165 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-cloud-server/wp-live-chat-support-cloud-server.php:302
|
166 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-cloud-server/wp-live-chat-support-cloud-server.php:324
|
167 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-cloud-server/wp-live-chat-support-cloud-server.php:385
|
168 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:98
|
169 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3166
|
170 |
+
msgid "Cloud Server"
|
171 |
+
msgstr ""
|
172 |
+
|
173 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-cloud-server/wp-live-chat-support-cloud-server.php:45
|
174 |
+
msgid "Chat functionality has been paused."
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-cloud-server/wp-live-chat-support-cloud-server.php:46
|
178 |
+
msgid ""
|
179 |
+
"Please enter your verified API key in the <a href=\"admin.php?"
|
180 |
+
"page=wplivechat-menu-api-keys-page\">API Keys page</a> to activate the cloud "
|
181 |
+
"based functionality."
|
182 |
+
msgstr ""
|
183 |
+
|
184 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-cloud-server/wp-live-chat-support-cloud-server.php:305
|
185 |
+
msgid ""
|
186 |
+
"You are currently using our <strong>cloud server</strong> to handle your "
|
187 |
+
"chat requests and live chat sessions.<br /><br />To disable this, please "
|
188 |
+
"deactivate the WP Live Chat Support - Cloud Server plugin."
|
189 |
+
msgstr ""
|
190 |
+
|
191 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-encryption/wp-live-chat-support-encryption.php:37
|
192 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-encryption/wp-live-chat-support-encryption.php:115
|
193 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-encryption/wp-live-chat-support-encryption.php:275
|
194 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:90
|
195 |
+
msgid "Encryption"
|
196 |
+
msgstr ""
|
197 |
+
|
198 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-encryption/wp-live-chat-support-encryption.php:81
|
199 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:840
|
200 |
+
msgid "Chat Encryption"
|
201 |
+
msgstr ""
|
202 |
+
|
203 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-encryption/wp-live-chat-support-encryption.php:84
|
204 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:843
|
205 |
+
msgid "Enable Encryption"
|
206 |
+
msgstr ""
|
207 |
+
|
208 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-encryption/wp-live-chat-support-encryption.php:84
|
209 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:843
|
210 |
+
msgid ""
|
211 |
+
"All messages will be encrypted when being sent to and from the user and "
|
212 |
+
"agent."
|
213 |
+
msgstr ""
|
214 |
+
|
215 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-encryption/wp-live-chat-support-encryption.php:93
|
216 |
+
msgid ""
|
217 |
+
"Please note: Chat messages will only be encrypted and decreypted if you have "
|
218 |
+
"inserted your WP Live Chat Support - Encryption API Key on the <a href="
|
219 |
+
"\"admin.php?page=wplivechat-menu-api-keys-page\">API Keys page</a>."
|
220 |
+
msgstr ""
|
221 |
+
|
222 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-encryption/wp-live-chat-support-encryption.php:94
|
223 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:851
|
224 |
+
msgid ""
|
225 |
+
"Once enabled, all messages sent will be encrypted. This cannot be undone."
|
226 |
+
msgstr ""
|
227 |
+
|
228 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-include-exclude-pages/wp-live-chat-support-include-exclude-pages.php:35
|
229 |
+
msgid "Include Exclude Pages"
|
230 |
+
msgstr ""
|
231 |
+
|
232 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-include-exclude-pages/wp-live-chat-support-include-exclude-pages.php:121
|
233 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:222
|
234 |
+
msgid "Include chat window on the following pages:"
|
235 |
+
msgstr ""
|
236 |
+
|
237 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-include-exclude-pages/wp-live-chat-support-include-exclude-pages.php:121
|
238 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:222
|
239 |
+
msgid ""
|
240 |
+
"Show the chat window on the following pages. Leave blank to show on all. "
|
241 |
+
"(Use comma-separated Page ID's)"
|
242 |
+
msgstr ""
|
243 |
+
|
244 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-include-exclude-pages/wp-live-chat-support-include-exclude-pages.php:129
|
245 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:232
|
246 |
+
msgid "Exclude chat window on the following pages:"
|
247 |
+
msgstr ""
|
248 |
+
|
249 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-include-exclude-pages/wp-live-chat-support-include-exclude-pages.php:129
|
250 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:232
|
251 |
+
msgid ""
|
252 |
+
"Do not show the chat window on the following pages. Leave blank to show on "
|
253 |
+
"all. (Use comma-separated Page ID's)"
|
254 |
+
msgstr ""
|
255 |
+
|
256 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-initiate-chats/wp-live-chat-support-initiate-chats.php:34
|
257 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-initiate-chats/wp-live-chat-support-initiate-chats.php:239
|
258 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2889
|
259 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3124
|
260 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3188
|
261 |
+
msgid "Initiate Chats"
|
262 |
+
msgstr ""
|
263 |
+
|
264 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-initiate-chats/wp-live-chat-support-initiate-chats.php:133
|
265 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:74
|
266 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:160
|
267 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1326
|
268 |
+
msgid "Initiate Chat"
|
269 |
+
msgstr ""
|
270 |
+
|
271 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-initiate-chats/wp-live-chat-support-initiate-chats.php:206
|
272 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1714
|
273 |
+
msgid "Attempting to open the chat window... Please be patient."
|
274 |
+
msgstr ""
|
275 |
+
|
276 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-mobile-and-desktop-app/wp-live-chat-support-mobile-and-desktop-app.php:40
|
277 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-mobile-and-desktop-app/wp-live-chat-support-mobile-and-desktop-app.php:174
|
278 |
+
msgid "Mobile and Desktop App"
|
279 |
+
msgstr ""
|
280 |
+
|
281 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-mobile-and-desktop-app/wp-live-chat-support-mobile-and-desktop-app.php:86
|
282 |
+
msgid "Mobile and Desktop App Settings"
|
283 |
+
msgstr ""
|
284 |
+
|
285 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-mobile-and-desktop-app/wp-live-chat-support-mobile-and-desktop-app.php:89
|
286 |
+
msgid "Enable mobile and desktop app"
|
287 |
+
msgstr ""
|
288 |
+
|
289 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-mobile-and-desktop-app/wp-live-chat-support-mobile-and-desktop-app.php:111
|
290 |
+
msgid "App"
|
291 |
+
msgstr ""
|
292 |
+
|
293 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:38
|
294 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:779
|
295 |
+
msgid "Multiple Agents"
|
296 |
+
msgstr ""
|
297 |
+
|
298 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:71
|
299 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1548
|
300 |
+
msgid ""
|
301 |
+
"You are not a chat agent. Please make yourself a chat agent before trying to "
|
302 |
+
"chat to visitors"
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:262
|
306 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:278
|
307 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:293
|
308 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:748
|
309 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:764
|
310 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:779
|
311 |
+
msgid "Chat Agent"
|
312 |
+
msgstr ""
|
313 |
+
|
314 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:267
|
315 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:283
|
316 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:753
|
317 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:769
|
318 |
+
msgid "Make this user a chat agent"
|
319 |
+
msgstr ""
|
320 |
+
|
321 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:297
|
322 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:783
|
323 |
+
msgid "Your user role does not allow you to make yourself a chat agent."
|
324 |
+
msgstr ""
|
325 |
+
|
326 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:298
|
327 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:784
|
328 |
+
msgid "Please contact the administrator of this website to change this."
|
329 |
+
msgstr ""
|
330 |
+
|
331 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:313
|
332 |
+
msgid "This chat has already been answered by another agent."
|
333 |
+
msgstr ""
|
334 |
+
|
335 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:444
|
336 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1576
|
337 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1751
|
338 |
+
msgid "Agent(s) online"
|
339 |
+
msgstr ""
|
340 |
+
|
341 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:480
|
342 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:869
|
343 |
+
msgid "Chat Agent Online"
|
344 |
+
msgstr ""
|
345 |
+
|
346 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:482
|
347 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:487
|
348 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:871
|
349 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:876
|
350 |
+
msgid "Chat Agents Online"
|
351 |
+
msgstr ""
|
352 |
+
|
353 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:705
|
354 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:750
|
355 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2948
|
356 |
+
msgid "Current Users that are Chat Agents"
|
357 |
+
msgstr ""
|
358 |
+
|
359 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:716
|
360 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:761
|
361 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2955
|
362 |
+
msgid "Online"
|
363 |
+
msgstr ""
|
364 |
+
|
365 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:726
|
366 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:771
|
367 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:710
|
368 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1656
|
369 |
+
msgid "Remove"
|
370 |
+
msgstr ""
|
371 |
+
|
372 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:735
|
373 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:780
|
374 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2966
|
375 |
+
msgid "Add New Agent"
|
376 |
+
msgstr ""
|
377 |
+
|
378 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:737
|
379 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:782
|
380 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2835
|
381 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1998
|
382 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2968
|
383 |
+
msgid "Select"
|
384 |
+
msgstr ""
|
385 |
+
|
386 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:743
|
387 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1407
|
388 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:788
|
389 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2975
|
390 |
+
msgid "Administrator"
|
391 |
+
msgstr ""
|
392 |
+
|
393 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:749
|
394 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1408
|
395 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:794
|
396 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2981
|
397 |
+
msgid "Editor"
|
398 |
+
msgstr ""
|
399 |
+
|
400 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:755
|
401 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1409
|
402 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:800
|
403 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2987
|
404 |
+
msgid "Author"
|
405 |
+
msgstr ""
|
406 |
+
|
407 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:759
|
408 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:804
|
409 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2991
|
410 |
+
msgid "Add Agent"
|
411 |
+
msgstr ""
|
412 |
+
|
413 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:765
|
414 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:810
|
415 |
+
msgid ""
|
416 |
+
"Should you wish to add a user that has a role less than 'Author', please go "
|
417 |
+
"to the <a href='./users.php'>Users</a> page, select the relevant user, click "
|
418 |
+
"Edit and scroll to the bottom of the page and enable the 'Chat Agent' "
|
419 |
+
"checkbox."
|
420 |
+
msgstr ""
|
421 |
+
|
422 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-multiple-agents/wp-live-chat-support-multiple-agents.php:766
|
423 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:811
|
424 |
+
msgid "If there are no chat agents online, the chat will show as offline"
|
425 |
+
msgstr ""
|
426 |
Â
|
427 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/ajax-pro.php:244
|
428 |
Â
msgid "Guest"
|
429 |
Â
msgstr ""
|
430 |
Â
|
431 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/ajax-pro.php:316
|
432 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/ajax_new.php:199
|
433 |
Â
msgid "Admin has closed and ended the chat"
|
434 |
Â
msgstr ""
|
435 |
Â
|
436 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/ajax-pro.php:351
|
437 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/ajax_new.php:223
|
438 |
Â
msgid "There is No Answer. Please Try Again Later"
|
439 |
Â
msgstr ""
|
440 |
Â
|
441 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:54
|
442 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:173
|
443 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:325
|
444 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1698
|
445 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:275
|
446 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:454
|
447 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1945
|
448 |
Â
msgid "IP Address not recorded"
|
449 |
Â
msgstr ""
|
450 |
Â
|
451 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:56
|
452 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:175
|
453 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:327
|
454 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1700
|
455 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:277
|
456 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:456
|
457 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1947
|
458 |
Â
msgid "Whois for"
|
459 |
Â
msgstr ""
|
460 |
Â
|
461 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:61
|
462 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:333
|
463 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:282
|
464 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:412
|
465 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:1224
|
466 |
Â
msgid "Accept Chat"
|
467 |
Â
msgstr ""
|
468 |
Â
|
469 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:63
|
470 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:335
|
471 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:284
|
Â
|
|
472 |
Â
msgid "Incoming Chat"
|
473 |
Â
msgstr ""
|
474 |
Â
|
475 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:63
|
476 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:335
|
477 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:284
|
Â
|
|
478 |
Â
msgid "You have an incoming chat."
|
479 |
Â
msgstr ""
|
480 |
Â
|
481 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:67
|
482 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:417
|
483 |
Â
msgid "Open Chat"
|
484 |
Â
msgstr ""
|
485 |
Â
|
486 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:69
|
487 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:347
|
488 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:290
|
Â
|
|
489 |
Â
msgid "Chat Active"
|
490 |
Â
msgstr ""
|
491 |
Â
|
492 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:69
|
493 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:347
|
494 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:290
|
Â
|
|
495 |
Â
msgid "This chat is active"
|
496 |
Â
msgstr ""
|
497 |
Â
|
498 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:76
|
499 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:162
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
500 |
Â
msgid "You must be a chat agent to initiate chats"
|
501 |
Â
msgstr ""
|
502 |
Â
|
503 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:99
|
504 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:479
|
505 |
Â
msgid "New"
|
506 |
Â
msgstr ""
|
507 |
Â
|
508 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:101
|
509 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:481
|
510 |
Â
msgid "Returning"
|
511 |
Â
msgstr ""
|
512 |
Â
|
513 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:143
|
514 |
Â
msgid "Visitors on site"
|
515 |
Â
msgstr ""
|
516 |
Â
|
517 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:207
|
518 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:377
|
519 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1738
|
520 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:313
|
521 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1976
|
522 |
Â
msgid "Site Info"
|
523 |
Â
msgstr ""
|
524 |
Â
|
525 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:209
|
526 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:379
|
527 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1740
|
528 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:315
|
529 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1978
|
530 |
Â
msgid "Chat initiated on:"
|
531 |
Â
msgstr ""
|
532 |
Â
|
533 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:213
|
534 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:383
|
535 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1744
|
536 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:319
|
537 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1982
|
538 |
Â
msgid "Advanced Info"
|
539 |
Â
msgstr ""
|
540 |
Â
|
541 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:215
|
542 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:385
|
543 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1746
|
544 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:321
|
545 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1984
|
546 |
Â
msgid "Browser:"
|
547 |
Â
msgstr ""
|
548 |
Â
|
549 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:216
|
550 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:386
|
551 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1747
|
552 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:322
|
553 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1985
|
554 |
Â
msgid "IP Address:"
|
555 |
Â
msgstr ""
|
556 |
Â
|
557 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:259
|
558 |
Â
msgid "No visitors on-line at the moment"
|
559 |
Â
msgstr ""
|
560 |
Â
|
561 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:302
|
562 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:258
|
563 |
Â
msgid "No chat sessions available at the moment"
|
564 |
Â
msgstr ""
|
565 |
Â
|
566 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:304
|
567 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:260
|
568 |
Â
msgid "Active Chats"
|
569 |
Â
msgstr ""
|
570 |
Â
|
571 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:339
|
572 |
Â
msgid "You must be a chat agent to answer chats"
|
573 |
Â
msgstr ""
|
574 |
Â
|
575 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:345
|
576 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:288
|
577 |
Â
msgid "Open Chat Window"
|
578 |
Â
msgstr ""
|
579 |
Â
|
580 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:349
|
581 |
Â
msgid "Chat has been answered by another agent"
|
582 |
Â
msgstr ""
|
583 |
Â
|
584 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:350
|
585 |
Â
msgid "Chat answered by another agent"
|
586 |
Â
msgstr ""
|
587 |
Â
|
588 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:409
|
589 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:1068
|
590 |
Â
msgid "WP Live Chat Support - Offline Message from "
|
591 |
Â
msgstr ""
|
592 |
Â
|
593 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:410
|
594 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:969
|
595 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:765
|
596 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:976
|
597 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1014
|
598 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1225
|
599 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1254
|
600 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:1069
|
601 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:1442
|
602 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:191
|
603 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:390
|
604 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1023
|
605 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1206
|
606 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2332
|
607 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2442
|
608 |
Â
msgid "Name"
|
609 |
Â
msgstr ""
|
610 |
Â
|
611 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:410
|
612 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:970
|
613 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:766
|
614 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:977
|
615 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1015
|
616 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1226
|
617 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1255
|
618 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:1070
|
619 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:1443
|
620 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:192
|
621 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:391
|
622 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1024
|
623 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1207
|
624 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2333
|
625 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2443
|
626 |
Â
msgid "Email"
|
627 |
Â
msgstr ""
|
628 |
Â
|
629 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:410
|
630 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:971
|
631 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1543
|
632 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1016
|
633 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1256
|
634 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:1071
|
635 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1208
|
636 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2444
|
637 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3309
|
638 |
Â
msgid "Message"
|
639 |
Â
msgstr ""
|
640 |
Â
|
641 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:410
|
642 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:1072
|
643 |
Â
msgid "Via WP Live Chat Support"
|
644 |
Â
msgstr ""
|
645 |
Â
|
646 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:480
|
647 |
Â
msgid "Alert: Someone wants to chat with you on "
|
648 |
Â
msgstr ""
|
649 |
Â
|
650 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:481
|
651 |
Â
msgid "Someone wants to chat with you on your website"
|
652 |
Â
msgstr ""
|
653 |
Â
|
654 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:481
|
655 |
Â
msgid "Log in"
|
656 |
Â
msgstr ""
|
657 |
Â
|
658 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:968
|
659 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:764
|
660 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:1441
|
661 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2331
|
662 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2441
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
663 |
Â
msgid "Date"
|
664 |
Â
msgstr ""
|
665 |
Â
|
666 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:985
|
667 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2454
|
668 |
Â
msgid "You have not received any offline messages."
|
669 |
Â
msgstr ""
|
670 |
Â
|
671 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1410
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
672 |
Â
msgid "Contributor"
|
673 |
Â
msgstr ""
|
674 |
Â
|
675 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1411
|
676 |
Â
msgid "Subscriber"
|
677 |
Â
msgstr ""
|
678 |
Â
|
679 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1541
|
680 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3307
|
681 |
Â
msgid "Chat ID"
|
682 |
Â
msgstr ""
|
683 |
Â
|
684 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1542
|
685 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3308
|
686 |
Â
msgid "From"
|
687 |
Â
msgstr ""
|
688 |
Â
|
689 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1544
|
690 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3310
|
691 |
Â
msgid "Timestamp"
|
692 |
Â
msgstr ""
|
693 |
Â
|
694 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1545
|
695 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3311
|
696 |
Â
msgid "Origin"
|
697 |
Â
msgstr ""
|
698 |
Â
|
699 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1557
|
700 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3316
|
701 |
Â
msgid "user"
|
702 |
Â
msgstr ""
|
703 |
Â
|
704 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:1559
|
705 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3318
|
706 |
Â
msgid "agent"
|
707 |
Â
msgstr ""
|
708 |
Â
|
709 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:48
|
710 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:20
|
711 |
Â
msgid "WP Live Chat Support Settings"
|
712 |
Â
msgstr ""
|
713 |
Â
|
714 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:71
|
715 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:632
|
716 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1673
|
717 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1688
|
718 |
Â
msgid "Dear Pro User"
|
719 |
Â
msgstr ""
|
720 |
Â
|
745 |
Â
msgstr ""
|
746 |
Â
|
747 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:83
|
748 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:42
|
749 |
Â
msgid "General Settings"
|
750 |
Â
msgstr ""
|
751 |
Â
|
752 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:84
|
753 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:47
|
754 |
Â
msgid "Chat Box"
|
755 |
Â
msgstr ""
|
756 |
Â
|
757 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:85
|
758 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:383
|
759 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2737
|
760 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:52
|
761 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:203
|
762 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:510
|
763 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:513
|
764 |
Â
msgid "Offline Messages"
|
765 |
Â
msgstr ""
|
766 |
Â
|
767 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:86
|
768 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:485
|
769 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:57
|
770 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:344
|
771 |
Â
msgid "Styling"
|
772 |
Â
msgstr ""
|
773 |
Â
|
776 |
Â
msgstr ""
|
777 |
Â
|
778 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:88
|
779 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:67
|
780 |
Â
msgid "Blocked Visitors"
|
781 |
Â
msgstr ""
|
782 |
Â
|
786 |
Â
msgid "Chat Experience Ratings"
|
787 |
Â
msgstr ""
|
788 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
789 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:93
|
790 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:80
|
791 |
Â
msgid "Main Settings"
|
792 |
Â
msgstr ""
|
793 |
Â
|
795 |
Â
msgid "Find out more."
|
796 |
Â
msgstr ""
|
797 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
798 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:103
|
799 |
Â
msgid "Use our server to host your chat server."
|
800 |
Â
msgstr ""
|
801 |
Â
|
802 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:107
|
803 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3079
|
804 |
Â
msgid "API Key"
|
805 |
Â
msgstr ""
|
806 |
Â
|
824 |
Â
msgstr ""
|
825 |
Â
|
826 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:130
|
827 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:83
|
828 |
Â
msgid "Chat enabled"
|
829 |
Â
msgstr ""
|
830 |
Â
|
831 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:135
|
832 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:86
|
833 |
Â
msgid "Yes"
|
834 |
Â
msgstr ""
|
835 |
Â
|
836 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:138
|
837 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:87
|
838 |
Â
msgid "No"
|
839 |
Â
msgstr ""
|
840 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
841 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:154
|
842 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:93
|
843 |
Â
msgid "Hide Chat"
|
844 |
Â
msgstr ""
|
845 |
Â
|
846 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:154
|
847 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:93
|
848 |
Â
msgid "Hides chat for 24hrs when user clicks X"
|
849 |
Â
msgstr ""
|
850 |
Â
|
851 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:162
|
852 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:101
|
853 |
Â
msgid "Require Name And Email"
|
854 |
Â
msgstr ""
|
855 |
Â
|
856 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:162
|
857 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:101
|
858 |
Â
msgid ""
|
859 |
Â
"Users will have to enter their Name and Email Address when starting a chat"
|
860 |
Â
msgstr ""
|
861 |
Â
|
862 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:172
|
863 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:109
|
864 |
Â
msgid "Input Field Replacement Text"
|
865 |
Â
msgstr ""
|
866 |
Â
|
867 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:172
|
868 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:109
|
869 |
Â
msgid "This is the text that will show in place of the Name And Email fields"
|
870 |
Â
msgstr ""
|
871 |
Â
|
872 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:182
|
873 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:117
|
874 |
Â
msgid "Use Logged In User Details"
|
875 |
Â
msgstr ""
|
876 |
Â
|
877 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:182
|
878 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:117
|
879 |
Â
msgid ""
|
880 |
Â
"A user's Name and Email Address will be used by default if they are logged "
|
881 |
Â
"in."
|
882 |
Â
msgstr ""
|
883 |
Â
|
884 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:193
|
885 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:125
|
886 |
Â
msgid "Enable On Mobile Devices"
|
887 |
Â
msgstr ""
|
888 |
Â
|
889 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:193
|
890 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:125
|
891 |
Â
msgid ""
|
892 |
Â
"Disabling this will mean that the Chat Box will not be displayed on mobile "
|
893 |
Â
"devices. (Smartphones and Tablets)"
|
894 |
Â
msgstr ""
|
895 |
Â
|
896 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:203
|
897 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:133
|
898 |
Â
msgid "Record a visitor's IP Address"
|
899 |
Â
msgstr ""
|
900 |
Â
|
901 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:203
|
902 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:133
|
903 |
Â
msgid "Disable this to enable anonymity for your visitors"
|
904 |
Â
msgstr ""
|
905 |
Â
|
906 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:213
|
907 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:141
|
908 |
Â
msgid "Play a sound when a new message is received"
|
909 |
Â
msgstr ""
|
910 |
Â
|
911 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:213
|
912 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:141
|
913 |
Â
msgid ""
|
914 |
Â
"Disable this to mute the sound that is played when a new chat message is "
|
915 |
Â
"received"
|
916 |
Â
msgstr ""
|
917 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
918 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:242
|
919 |
Â
msgid "Allow any user to make themselves a chat agent"
|
920 |
Â
msgstr ""
|
926 |
Â
msgstr ""
|
927 |
Â
|
928 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:255
|
929 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:153
|
930 |
Â
msgid "Chat Window Settings"
|
931 |
Â
msgstr ""
|
932 |
Â
|
933 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:258
|
934 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:156
|
935 |
Â
msgid "Chat box alignment"
|
936 |
Â
msgstr ""
|
937 |
Â
|
938 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:263
|
939 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:159
|
940 |
Â
msgid "Bottom left"
|
941 |
Â
msgstr ""
|
942 |
Â
|
943 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:266
|
944 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:160
|
945 |
Â
msgid "Bottom right"
|
946 |
Â
msgstr ""
|
947 |
Â
|
948 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:269
|
949 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:161
|
950 |
Â
msgid "Left"
|
951 |
Â
msgstr ""
|
952 |
Â
|
953 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:272
|
954 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:162
|
955 |
Â
msgid "Right"
|
956 |
Â
msgstr ""
|
957 |
Â
|
958 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:278
|
959 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:168
|
960 |
Â
msgid "Auto Pop-up"
|
961 |
Â
msgstr ""
|
962 |
Â
|
963 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:278
|
964 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:168
|
965 |
Â
msgid ""
|
966 |
Â
"Expand the chat box automatically (prompts the user to enter their name and "
|
967 |
Â
"email address)."
|
968 |
Â
msgstr ""
|
969 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
970 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:356
|
971 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:178
|
972 |
Â
msgid "Display name and avatar in chat"
|
973 |
Â
msgstr ""
|
974 |
Â
|
975 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:356
|
976 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:178
|
977 |
Â
msgid "Display the agent and user name above each message in the chat window."
|
978 |
Â
msgstr ""
|
979 |
Â
|
980 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:368
|
981 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:188
|
982 |
Â
msgid "Only show the chat window to users that are logged in"
|
983 |
Â
msgstr ""
|
984 |
Â
|
985 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:368
|
986 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:188
|
987 |
Â
msgid ""
|
988 |
Â
"By checking this, only users that are logged in will be able to chat with "
|
989 |
Â
"you."
|
990 |
Â
msgstr ""
|
991 |
Â
|
992 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:387
|
993 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:207
|
994 |
Â
msgid "Do not allow users to send offline messages"
|
995 |
Â
msgstr ""
|
996 |
Â
|
997 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:387
|
998 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:207
|
999 |
Â
msgid ""
|
1000 |
Â
"The chat window will be hidden when it is offline. Users will not be able to "
|
1001 |
Â
"send offline messages to you"
|
1002 |
Â
msgstr ""
|
1003 |
Â
|
1004 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:399
|
1005 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:219
|
1006 |
Â
msgid "Email Address"
|
1007 |
Â
msgstr ""
|
1008 |
Â
|
1009 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:399
|
1010 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:219
|
1011 |
Â
msgid ""
|
1012 |
Â
"Email address where offline messages are delivered to. Use comma separated "
|
1013 |
Â
"email addresses to send to more than one email address"
|
1014 |
Â
msgstr ""
|
1015 |
Â
|
1016 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:412
|
1017 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:231
|
1018 |
Â
msgid "Sending Method"
|
1019 |
Â
msgstr ""
|
1020 |
Â
|
1021 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:413
|
1022 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:232
|
1023 |
Â
msgid "WP Mail"
|
1024 |
Â
msgstr ""
|
1025 |
Â
|
1026 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:414
|
1027 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:233
|
1028 |
Â
msgid "PHP Mailer"
|
1029 |
Â
msgstr ""
|
1030 |
Â
|
1031 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:430
|
1032 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:249
|
1033 |
Â
msgid "Host"
|
1034 |
Â
msgstr ""
|
1035 |
Â
|
1036 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:438
|
1037 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:257
|
1038 |
Â
msgid "Port"
|
1039 |
Â
msgstr ""
|
1040 |
Â
|
1041 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:446
|
1042 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:265
|
1043 |
Â
msgid "Username"
|
1044 |
Â
msgstr ""
|
1045 |
Â
|
1046 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:454
|
1047 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:273
|
1048 |
Â
msgid "Password"
|
1049 |
Â
msgstr ""
|
1050 |
Â
|
1051 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:463
|
1052 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:282
|
1053 |
Â
msgid "Offline Chat Box Title"
|
1054 |
Â
msgstr ""
|
1055 |
Â
|
1056 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:471
|
1057 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:290
|
1058 |
Â
msgid "Offline Text Fields"
|
1059 |
Â
msgstr ""
|
1060 |
Â
|
1061 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:504
|
1062 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:348
|
1063 |
Â
msgid "Choose a theme"
|
1064 |
Â
msgstr ""
|
1065 |
Â
|
1066 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:509
|
1067 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:512
|
1068 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:353
|
1069 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:356
|
1070 |
Â
msgid "Theme 1"
|
1071 |
Â
msgstr ""
|
1072 |
Â
|
1073 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:515
|
1074 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:518
|
1075 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:359
|
1076 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:362
|
1077 |
Â
msgid "Theme 2"
|
1078 |
Â
msgstr ""
|
1079 |
Â
|
1080 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:521
|
1081 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:524
|
1082 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:365
|
1083 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:368
|
1084 |
Â
msgid "Theme 3"
|
1085 |
Â
msgstr ""
|
1086 |
Â
|
1087 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:527
|
1088 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:530
|
1089 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:371
|
1090 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:374
|
1091 |
Â
msgid "Theme 4"
|
1092 |
Â
msgstr ""
|
1093 |
Â
|
1094 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:533
|
1095 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:536
|
1096 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:377
|
1097 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:380
|
1098 |
Â
msgid "Theme 5"
|
1099 |
Â
msgstr ""
|
1100 |
Â
|
1101 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:539
|
1102 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:383
|
1103 |
Â
msgid "Theme 6"
|
1104 |
Â
msgstr ""
|
1105 |
Â
|
1106 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:542
|
1107 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:386
|
1108 |
Â
msgid "Custom. Enter Colour Values Below"
|
1109 |
Â
msgstr ""
|
1110 |
Â
|
1111 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:568
|
1112 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:416
|
1113 |
Â
msgid "Chat box fill color"
|
1114 |
Â
msgstr ""
|
1115 |
Â
|
1116 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:574
|
1117 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:422
|
1118 |
Â
msgid "Chat box font color"
|
1119 |
Â
msgstr ""
|
1120 |
Â
|
1121 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:581
|
1122 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:429
|
1123 |
Â
msgid "I'm using a localization plugin"
|
1124 |
Â
msgstr ""
|
1125 |
Â
|
1136 |
Â
msgstr ""
|
1137 |
Â
|
1138 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:594
|
1139 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:437
|
1140 |
Â
msgid "First Section Text"
|
1141 |
Â
msgstr ""
|
1142 |
Â
|
1143 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:601
|
1144 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:444
|
1145 |
Â
msgid "Intro Text"
|
1146 |
Â
msgstr ""
|
1147 |
Â
|
1148 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:607
|
1149 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:450
|
1150 |
Â
msgid "Second Section Text"
|
1151 |
Â
msgstr ""
|
1152 |
Â
|
1153 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:614
|
1154 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:457
|
1155 |
Â
msgid "Reactivate Chat Section Text"
|
1156 |
Â
msgstr ""
|
1157 |
Â
|
1158 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:622
|
1159 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:465
|
1160 |
Â
msgid "User chat welcome"
|
1161 |
Â
msgstr ""
|
1162 |
Â
|
1163 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:628
|
1164 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:471
|
1165 |
Â
msgid "Other text"
|
1166 |
Â
msgstr ""
|
1167 |
Â
|
1168 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:630
|
1169 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:473
|
1170 |
Â
msgid "This text is shown above the user chat input field"
|
1171 |
Â
msgstr ""
|
1172 |
Â
|
1177 |
Â
msgstr ""
|
1178 |
Â
|
1179 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:666
|
1180 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:501
|
1181 |
Â
msgid "Choose an animation"
|
1182 |
Â
msgstr ""
|
1183 |
Â
|
1184 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:674
|
1185 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:509
|
1186 |
Â
msgid "Slide Up"
|
1187 |
Â
msgstr ""
|
1188 |
Â
|
1189 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:680
|
1190 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:515
|
1191 |
+
msgid "Slide From The Side"
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1192 |
Â
msgstr ""
|
1193 |
Â
|
1194 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:686
|
1195 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:521
|
1196 |
+
msgid "Fade In"
|
1197 |
+
msgstr ""
|
1198 |
+
|
1199 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:692
|
1200 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:527
|
1201 |
+
msgid "No Animation"
|
1202 |
Â
msgstr ""
|
1203 |
Â
|
1204 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:815
|
1205 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:554
|
1206 |
Â
msgid "Blocked Visitors - Based on IP Address"
|
1207 |
Â
msgstr ""
|
1208 |
Â
|
1209 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:816
|
1210 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:555
|
1211 |
Â
msgid "Enter each IP Address you would like to block on a new line"
|
1212 |
Â
msgstr ""
|
1213 |
Â
|
1214 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:827
|
1215 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:566
|
1216 |
Â
msgid ""
|
1217 |
Â
"Blocking a user's IP Address here will hide the chat window from them, "
|
1218 |
Â
"preventing them from chatting with you. Each IP Address must be on a new line"
|
1223 |
Â
"are only available in the WP Live Chat Support Chat Experience Ratings add-on"
|
1224 |
Â
msgstr ""
|
1225 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1226 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:857
|
1227 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:572
|
1228 |
Â
msgid "Save Settings"
|
1229 |
Â
msgstr ""
|
1230 |
Â
|
1231 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:616
|
1232 |
Â
msgid "Dear User"
|
1233 |
Â
msgstr ""
|
1234 |
Â
|
1235 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:617
|
1236 |
Â
msgid "You are using an outdated version of WP Live Chat Support Basic. Please"
|
1237 |
Â
msgstr ""
|
1238 |
Â
|
1239 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:617
|
1240 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1674
|
1241 |
Â
msgid "update to at least version"
|
1242 |
Â
msgstr ""
|
1243 |
Â
|
1244 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:617
|
1245 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1674
|
1246 |
Â
msgid "to ensure all functionality is in working order"
|
1247 |
Â
msgstr ""
|
1248 |
Â
|
1249 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:618
|
1250 |
Â
msgid ""
|
1251 |
Â
"You're live chat box on your website has been temporarily disabled until the "
|
1252 |
Â
"basic plugin has been updated. This is to ensure a smooth and hassle-free "
|
1253 |
Â
"user experience for both yourself and your visitors."
|
1254 |
Â
msgstr ""
|
1255 |
Â
|
1256 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:619
|
1257 |
Â
msgid ""
|
1258 |
Â
"You can update your plugin <a href='./update-core.php'>here</a> or <a "
|
1259 |
Â
"href='./plugins.php'>here</a>."
|
1260 |
Â
msgstr ""
|
1261 |
Â
|
1262 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:620
|
1263 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1677
|
1264 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1697
|
1265 |
Â
msgid "If you are having difficulty updating the plugin, please contact"
|
1266 |
Â
msgstr ""
|
1267 |
Â
|
1268 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:633
|
1269 |
Â
msgid ""
|
1270 |
Â
"WP Live Chat Support Pro requires WP Live Chat Support to function. You can "
|
1271 |
Â
"download the latest copy from"
|
1272 |
Â
msgstr ""
|
1273 |
Â
|
1274 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:652
|
1275 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:885
|
1276 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1134
|
1277 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:150
|
1278 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:347
|
1279 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:381
|
1280 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1297
|
Â
|
|
Â
|
|
Â
|
|
1281 |
Â
msgid "Questions?"
|
1282 |
Â
msgstr ""
|
1283 |
Â
|
1284 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:653
|
1285 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:886
|
1286 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1135
|
1287 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:150
|
1288 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:347
|
1289 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:382
|
1290 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1298
|
1291 |
Â
msgid "Chat with us"
|
1292 |
Â
msgstr ""
|
1293 |
Â
|
1294 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:654
|
1295 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:887
|
1296 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1136
|
1297 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:383
|
1298 |
Â
msgid "Start live chat"
|
1299 |
Â
msgstr ""
|
1300 |
Â
|
1301 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:655
|
1302 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:889
|
1303 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1138
|
1304 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:209
|
1305 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:409
|
1306 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:384
|
1307 |
Â
msgid "Start Chat"
|
1308 |
Â
msgstr ""
|
1309 |
Â
|
1310 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:656
|
1311 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:890
|
1312 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1139
|
1313 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:385
|
1314 |
Â
msgid "Connecting. Please be patient..."
|
1315 |
Â
msgstr ""
|
1316 |
Â
|
1317 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:657
|
1318 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:892
|
1319 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1141
|
1320 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:215
|
1321 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:415
|
1322 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:386
|
1323 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1387
|
1324 |
Â
msgid "Reactivating your previous chat..."
|
1325 |
Â
msgstr ""
|
1326 |
Â
|
1327 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:658
|
1328 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:894
|
1329 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1143
|
1330 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:375
|
1331 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1303
|
1332 |
Â
msgid "Chat offline. Leave a message"
|
1333 |
Â
msgstr ""
|
1334 |
Â
|
1335 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:659
|
1336 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:896
|
1337 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1145
|
1338 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:376
|
1339 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1191
|
1340 |
Â
msgid "Hello. Please input your details so that I may help you."
|
1341 |
Â
msgstr ""
|
1342 |
Â
|
1343 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:660
|
1344 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:898
|
1345 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:899
|
1346 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1147
|
1347 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1148
|
1348 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:377
|
1349 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:674
|
1350 |
Â
msgid ""
|
1351 |
Â
"We are currently offline. Please leave a message and we'll get back to you "
|
1352 |
Â
"shortly."
|
1353 |
Â
msgstr ""
|
1354 |
Â
|
1355 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:661
|
1356 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2587
|
1357 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:378
|
1358 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:675
|
1359 |
Â
msgid "Sending message..."
|
1360 |
Â
msgstr ""
|
1361 |
Â
|
1362 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:662
|
1363 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:900
|
1364 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1149
|
1365 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2588
|
1366 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:379
|
1367 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:676
|
1368 |
Â
msgid "Thank you for your message. We will be in contact soon."
|
1369 |
Â
msgstr ""
|
1370 |
Â
|
1371 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:663
|
1372 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:902
|
1373 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1151
|
1374 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:220
|
1375 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:420
|
1376 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:388
|
1377 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1997
|
1378 |
Â
msgid "Press ENTER to send your message"
|
1379 |
Â
msgstr ""
|
1380 |
Â
|
1381 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:664
|
1382 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:904
|
1383 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1153
|
1384 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:387
|
1385 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1256
|
1386 |
Â
msgid "Welcome. How may I help you?"
|
1387 |
Â
msgstr ""
|
1388 |
Â
|
1389 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:704
|
1390 |
Â
msgid "Rating Unavailable"
|
1391 |
Â
msgstr ""
|
1392 |
Â
|
1393 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:758
|
1394 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2325
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1395 |
Â
msgid "Delete History"
|
1396 |
Â
msgstr ""
|
1397 |
Â
|
1398 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:767
|
1399 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:1444
|
1400 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2334
|
1401 |
Â
msgid "URL"
|
1402 |
Â
msgstr ""
|
1403 |
Â
|
1404 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:768
|
1405 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1590
|
1406 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1842
|
1407 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2335
|
1408 |
Â
msgid "Status"
|
1409 |
Â
msgstr ""
|
1410 |
Â
|
1411 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:769
|
1412 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1591
|
1413 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1843
|
1414 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2336
|
1415 |
Â
msgid "Action"
|
1416 |
Â
msgstr ""
|
1417 |
Â
|
1418 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:775
|
1419 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2342
|
1420 |
Â
msgid "No chats available at the moment"
|
1421 |
Â
msgstr ""
|
1422 |
Â
|
1423 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:785
|
1424 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2352
|
1425 |
Â
msgid "View Chat History"
|
1426 |
Â
msgstr ""
|
1427 |
Â
|
1428 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:785
|
1429 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2352
|
1430 |
Â
msgid "Download Chat History"
|
1431 |
Â
msgstr ""
|
1432 |
Â
|
1433 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:906
|
1434 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1155
|
1435 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1335
|
1436 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2547
|
1437 |
Â
msgid "Please click 'Start Chat' to initiate a chat with an agent"
|
1438 |
Â
msgstr ""
|
1439 |
Â
|
1440 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:927
|
1441 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1177
|
1442 |
Â
msgid "Minimize Chat Window"
|
1443 |
Â
msgstr ""
|
1444 |
Â
|
1445 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:928
|
1446 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1178
|
1447 |
Â
msgid "Close Chat Window"
|
1448 |
Â
msgstr ""
|
1449 |
Â
|
1450 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1028
|
1451 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1266
|
1452 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1175
|
1453 |
Â
msgid "Send message"
|
1454 |
Â
msgstr ""
|
1455 |
Â
|
1456 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1054
|
1457 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1292
|
1458 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:224
|
1459 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:424
|
1460 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1276
|
1461 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2011
|
1462 |
Â
msgid "Send"
|
1463 |
Â
msgstr ""
|
1464 |
Â
|
1465 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1506
|
1466 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2607
|
1467 |
Â
msgid "Your settings have been saved."
|
1468 |
Â
msgstr ""
|
1469 |
Â
|
1470 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1542
|
1471 |
Â
msgid "Chat sessions"
|
1472 |
Â
msgstr ""
|
1473 |
Â
|
1474 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1544
|
1475 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1814
|
1476 |
Â
msgid ""
|
1477 |
Â
"Please note: This window must be open in order to receive new chat "
|
1478 |
Â
"notifications."
|
1479 |
Â
msgstr ""
|
1480 |
Â
|
1481 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1570
|
1482 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1826
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1483 |
Â
msgid "Visitors online"
|
1484 |
Â
msgstr ""
|
1485 |
Â
|
1486 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1586
|
1487 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1838
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1488 |
Â
msgid "Visitor"
|
1489 |
Â
msgstr ""
|
1490 |
Â
|
1491 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1587
|
1492 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1839
|
1493 |
Â
msgid "Time"
|
1494 |
Â
msgstr ""
|
1495 |
Â
|
1496 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1588
|
1497 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1840
|
1498 |
Â
msgid "Type"
|
1499 |
Â
msgstr ""
|
1500 |
Â
|
1501 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1589
|
1502 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1841
|
1503 |
Â
msgid "Data"
|
1504 |
Â
msgstr ""
|
1505 |
Â
|
1506 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1693
|
1507 |
Â
msgid "Unknown"
|
1508 |
Â
msgstr ""
|
1509 |
Â
|
1510 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1709
|
1511 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1953
|
1512 |
Â
msgid "End chat"
|
1513 |
Â
msgstr ""
|
1514 |
Â
|
1515 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1825
|
1516 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2862
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1517 |
Â
msgid "This chat has already been answered. Please close the chat window"
|
1518 |
Â
msgstr ""
|
1519 |
Â
|
1520 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1900
|
1521 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2079
|
1522 |
Â
msgid "User has opened the chat window"
|
1523 |
Â
msgstr ""
|
1524 |
Â
|
1525 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1905
|
1526 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2080
|
1527 |
Â
msgid "User has minimized the chat window"
|
1528 |
Â
msgstr ""
|
1529 |
Â
|
1530 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1910
|
1531 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2081
|
1532 |
Â
msgid "User has maximized the chat window"
|
1533 |
Â
msgstr ""
|
1534 |
Â
|
1535 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1915
|
Â
|
|
1536 |
Â
msgid "User has closed and ended the chat"
|
1537 |
Â
msgstr ""
|
1538 |
Â
|
1539 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2504
|
1540 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/update_control.class.php:115
|
1541 |
Â
msgid ""
|
1542 |
Â
"An Unexpected HTTP Error occurred during the API request.</p> <p><a href=\"?"
|
1543 |
Â
"\" onclick=\"document.location.reload(); return false;\">Try again</a>"
|
1544 |
Â
msgstr ""
|
1545 |
Â
|
1546 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2509
|
1547 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/update_control.class.php:120
|
1548 |
Â
msgid "An unknown error occurred"
|
1549 |
Â
msgstr ""
|
1550 |
Â
|
1551 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2706
|
1552 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1990
|
1553 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2704
|
1554 |
Â
msgid "Add-ons"
|
1555 |
Â
msgstr ""
|
1556 |
Â
|
1557 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2706
|
1558 |
Â
msgid "Supplimentary Plugins"
|
1559 |
Â
msgstr ""
|
1560 |
Â
|
1561 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2716
|
Â
|
|
1562 |
Â
msgid "Pro add-on"
|
1563 |
Â
msgstr ""
|
1564 |
Â
|
1565 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2716
|
1566 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3135
|
1567 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3156
|
1568 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3177
|
1569 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3199
|
1570 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3220
|
1571 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3241
|
1572 |
Â
msgid "Get this extension"
|
1573 |
Â
msgstr ""
|
1574 |
Â
|
1575 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2730
|
1576 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:494
|
1577 |
Â
msgid "Live Chat"
|
1578 |
Â
msgstr ""
|
1579 |
Â
|
1580 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2731
|
1581 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:495
|
1582 |
Â
msgid "Settings"
|
1583 |
Â
msgstr ""
|
1584 |
Â
|
1585 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2732
|
1586 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2759
|
1587 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2770
|
1588 |
Â
msgid "Quick Responses"
|
1589 |
Â
msgstr ""
|
1590 |
Â
|
1591 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2733
|
1592 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:496
|
1593 |
Â
msgid "History"
|
1594 |
Â
msgstr ""
|
1595 |
Â
|
1596 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2734
|
1597 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:497
|
1598 |
Â
msgid "Missed Chats"
|
1599 |
Â
msgstr ""
|
1600 |
Â
|
1601 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2739
|
1602 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:37
|
1603 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:517
|
1604 |
Â
msgid "Feedback"
|
1605 |
Â
msgstr ""
|
1606 |
Â
|
1607 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2741
|
1608 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:519
|
1609 |
Â
msgid "Extensions"
|
1610 |
Â
msgstr ""
|
1611 |
Â
|
1612 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2746
|
1613 |
Â
msgid "Error Log"
|
1614 |
Â
msgstr ""
|
1615 |
Â
|
1616 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2749
|
1617 |
Â
msgid "Statistics"
|
1618 |
Â
msgstr ""
|
1619 |
Â
|
1620 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2752
|
1621 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:518
|
1622 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2869
|
1623 |
Â
msgid "Support"
|
1624 |
Â
msgstr ""
|
1625 |
Â
|
1626 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2760
|
1627 |
Â
msgid "Quick Response"
|
1628 |
Â
msgstr ""
|
1629 |
Â
|
1630 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2761
|
1631 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2764
|
1632 |
Â
msgid "New Quick Response"
|
1633 |
Â
msgstr ""
|
1634 |
Â
|
1635 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2762
|
1636 |
Â
msgid "Add New Quick Response"
|
1637 |
Â
msgstr ""
|
1638 |
Â
|
1639 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2763
|
1640 |
Â
msgid "Edit Quick Response"
|
1641 |
Â
msgstr ""
|
1642 |
Â
|
1643 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2765
|
1644 |
Â
msgid "All Quick Responses"
|
1645 |
Â
msgstr ""
|
1646 |
Â
|
1647 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2766
|
1648 |
Â
msgid "View Quick Responses"
|
1649 |
Â
msgstr ""
|
1650 |
Â
|
1651 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2767
|
1652 |
Â
msgid "Search Quick Responses"
|
1653 |
Â
msgstr ""
|
1654 |
Â
|
1655 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2768
|
1656 |
Â
msgid "No Quick Responses found"
|
1657 |
Â
msgstr ""
|
1658 |
Â
|
1659 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2769
|
1660 |
Â
msgid "No Quick Responses found in the Trash"
|
1661 |
Â
msgstr ""
|
1662 |
Â
|
1663 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2774
|
1664 |
Â
msgid "Quick Responses for WP Live Chat Support Pro"
|
1665 |
Â
msgstr ""
|
1666 |
Â
|
1667 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2828
|
1668 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2832
|
1669 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1998
|
1670 |
Â
msgid "Assign Quick Response"
|
1671 |
Â
msgstr ""
|
1672 |
Â
|
1673 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:2841
|
1674 |
Â
msgid "What is this?"
|
1675 |
Â
msgstr ""
|
1676 |
Â
|
1677 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:869
|
1678 |
Â
msgid "complete"
|
1679 |
Â
msgstr ""
|
1680 |
Â
|
1681 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:872
|
1682 |
Â
msgid "pending"
|
1683 |
Â
msgstr ""
|
1684 |
Â
|
1685 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:875
|
1686 |
Â
msgid "active"
|
1687 |
Â
msgstr ""
|
1688 |
Â
|
1689 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:878
|
1690 |
Â
msgid "deleted"
|
1691 |
Â
msgstr ""
|
1692 |
Â
|
1693 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:881
|
1694 |
Â
msgid "browsing"
|
1695 |
Â
msgstr ""
|
1696 |
Â
|
1697 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:884
|
1698 |
Â
msgid "requesting chat"
|
1699 |
Â
msgstr ""
|
1700 |
Â
|
1701 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:887
|
1702 |
Â
msgid "Chat Ended - User still browsing"
|
1703 |
Â
msgstr ""
|
1704 |
Â
|
1705 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:890
|
1706 |
Â
msgid "User is browsing but doesn't want to chat"
|
1707 |
Â
msgstr ""
|
1708 |
Â
|
1709 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:1224
|
1710 |
Â
msgid "Get Pro Add-on to accept more chats"
|
1711 |
Â
msgstr ""
|
1712 |
Â
|
1713 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:1471
|
1714 |
Â
msgid "You have not missed any chat requests."
|
1715 |
Â
msgstr ""
|
1716 |
Â
|
1717 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:157
|
1718 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:354
|
1719 |
+
msgid "Start Live Chat"
|
1720 |
+
msgstr ""
|
1721 |
+
|
1722 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:212
|
1723 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/deprecated.php:412
|
1724 |
+
msgid "Connecting you to a sales person. Please be patient."
|
1725 |
+
msgstr ""
|
1726 |
+
|
1727 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:7
|
1728 |
Â
msgid "WP Live Chat Support Feedback"
|
1729 |
Â
msgstr ""
|
1748 |
Â
msgid "Send Feedback"
|
1749 |
Â
msgstr ""
|
1750 |
Â
|
1751 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:62
|
1752 |
Â
msgid "Agents"
|
1753 |
Â
msgstr ""
|
1754 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1755 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:4
|
1756 |
Â
msgid "Welcome to "
|
1757 |
Â
msgstr ""
|
1758 |
Â
|
1759 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:6
|
1760 |
+
msgid "Version 6"
|
1761 |
Â
msgstr ""
|
1762 |
Â
|
1763 |
Â
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:8
|
1764 |
+
msgid "The most popular live chat plugin!"
|
1765 |
Â
msgstr ""
|
1766 |
Â
|
1767 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:11
|
1768 |
Â
msgid "How did you find us?"
|
1769 |
Â
msgstr ""
|
1770 |
Â
|
1771 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:16
|
1772 |
Â
msgid "WordPress.org plugin repository "
|
1773 |
Â
msgstr ""
|
1774 |
Â
|
1775 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:19
|
1776 |
Â
msgid "Search Term"
|
1777 |
Â
msgstr ""
|
1778 |
Â
|
1779 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:23
|
1780 |
Â
msgid "Google or other search Engine"
|
1781 |
Â
msgstr ""
|
1782 |
Â
|
1783 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:29
|
1784 |
Â
msgid "Friend recommendation"
|
1785 |
Â
msgstr ""
|
1786 |
Â
|
1787 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:35
|
1788 |
Â
msgid "Other"
|
1789 |
Â
msgstr ""
|
1790 |
Â
|
1791 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:39
|
1792 |
Â
msgid "Please Explain"
|
1793 |
Â
msgstr ""
|
1794 |
Â
|
1795 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:48
|
1796 |
Â
msgid "Submit"
|
1797 |
Â
msgstr ""
|
1798 |
Â
|
1799 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:50
|
1800 |
Â
msgid "Skip"
|
1801 |
Â
msgstr ""
|
1802 |
Â
|
1803 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:404
|
1804 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2097
|
1805 |
Â
msgid "Please click \\'Start Chat\\' to initiate a chat with an agent"
|
1806 |
Â
msgstr ""
|
1807 |
Â
|
1808 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:529
|
1809 |
+
msgid "API Keys"
|
1810 |
+
msgstr ""
|
1811 |
+
|
1812 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:535
|
1813 |
+
msgid "Premium Extension API Keys"
|
1814 |
+
msgstr ""
|
1815 |
+
|
1816 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:536
|
1817 |
+
msgid ""
|
1818 |
+
"To find and manage your premium API keys, please visit your <a "
|
1819 |
+
"target='_BLANK' href='http://wp-livechat.com/my-account/'>my account</a> "
|
1820 |
+
"page."
|
1821 |
+
msgstr ""
|
1822 |
+
|
1823 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1107
|
1824 |
+
msgid "Start chat"
|
1825 |
Â
msgstr ""
|
1826 |
Â
|
1827 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1236
|
1828 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1252
|
1829 |
+
msgid "Connecting. Please be patient."
|
1830 |
+
msgstr ""
|
1831 |
+
|
1832 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1615
|
1833 |
Â
msgid "New chat received"
|
1834 |
Â
msgstr ""
|
1835 |
Â
|
1836 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1617
|
1837 |
Â
msgid ""
|
1838 |
Â
"A new chat has been received. Please go the 'Live Chat' page to accept the "
|
1839 |
Â
"chat"
|
1840 |
Â
msgstr ""
|
1841 |
Â
|
1842 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1674
|
1843 |
Â
msgid ""
|
1844 |
Â
"You are using an outdated version of <strong>WP Live Chat Support Pro</"
|
1845 |
Â
"strong>. Please"
|
1846 |
Â
msgstr ""
|
1847 |
Â
|
1848 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1675
|
1849 |
Â
msgid ""
|
1850 |
Â
"You're live chat box on your website has been temporarily disabled until the "
|
1851 |
Â
"Pro plugin has been updated. This is to ensure a smooth and hassle-free user "
|
1852 |
Â
"experience for both yourself and your visitors."
|
1853 |
Â
msgstr ""
|
1854 |
Â
|
1855 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1676
|
1856 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1696
|
1857 |
Â
msgid ""
|
1858 |
Â
"You can update your plugin <a href='./update-core.php'>here</a>, <a href='./"
|
1859 |
Â
"plugins.php'>here</a> or <a href='http://wp-livechat.com/get-updated-"
|
1860 |
Â
"version/' target='_BLANK'>here</a>."
|
1861 |
Â
msgstr ""
|
1862 |
Â
|
1863 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1689
|
1864 |
Â
msgid ""
|
1865 |
Â
"You are using an outdated version of <strong>WP Live Chat Support Pro</"
|
1866 |
Â
"strong>."
|
1867 |
Â
msgstr ""
|
1868 |
Â
|
1869 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1691
|
1870 |
Â
msgid "Please update to the latest version of WP Live Chat Support Pro"
|
1871 |
Â
msgstr ""
|
1872 |
Â
|
1873 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1692
|
1874 |
Â
msgid "Version 5.0.1"
|
1875 |
Â
msgstr ""
|
1876 |
Â
|
1877 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1693
|
1878 |
Â
msgid "to ensure everything is working correctly."
|
1879 |
Â
msgstr ""
|
1880 |
Â
|
1881 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1725
|
1882 |
Â
msgid "Congratulations"
|
1883 |
Â
msgstr ""
|
1884 |
Â
|
1885 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1726
|
1886 |
Â
msgid "You are now accepting live chat requests on your site."
|
1887 |
Â
msgstr ""
|
1888 |
Â
|
1889 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1727
|
1890 |
Â
msgid "The live chat box has automatically been enabled on your website."
|
1891 |
Â
msgstr ""
|
1892 |
Â
|
1893 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1728
|
1894 |
Â
msgid "Chat notifications will start appearing once visitors send a request."
|
1895 |
Â
msgstr ""
|
1896 |
Â
|
1897 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1729
|
1898 |
Â
msgid ""
|
1899 |
Â
"You may <a href='?page=wplivechat-menu-settings' target='_BLANK'>modify your "
|
1900 |
Â
"chat box settings here."
|
1901 |
Â
msgstr ""
|
1902 |
Â
|
1903 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1730
|
1904 |
Â
msgid "Experiencing issues?"
|
1905 |
Â
msgstr ""
|
1906 |
Â
|
1907 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1730
|
1908 |
Â
msgid "Visit our troubleshooting section."
|
1909 |
Â
msgstr ""
|
1910 |
Â
|
1911 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1732
|
1912 |
Â
msgid "Hide"
|
1913 |
Â
msgstr ""
|
1914 |
Â
|
1915 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1766
|
1916 |
+
msgid ""
|
1917 |
+
"With the <strong>Initiate Chats</strong> Extension for WP Live Chat Support, "
|
1918 |
+
"you can"
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1919 |
Â
msgstr ""
|
1920 |
Â
|
1921 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1767
|
1922 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2889
|
1923 |
Â
msgid "see who's online and initiate chats"
|
1924 |
Â
msgstr ""
|
1925 |
Â
|
1926 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1768
|
1927 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2889
|
1928 |
Â
msgid "initiate chats"
|
1929 |
Â
msgstr ""
|
1930 |
Â
|
1931 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1770
|
1932 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2889
|
1933 |
Â
msgid "with your online visitors with the click of a button."
|
1934 |
Â
msgstr ""
|
1935 |
Â
|
1936 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1771
|
1937 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1773
|
1938 |
+
msgid "Buy the Initiate Chats Extension now."
|
1939 |
Â
msgstr ""
|
1940 |
Â
|
1941 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1811
|
1942 |
+
msgid "Chat Dashboard"
|
1943 |
+
msgstr ""
|
1944 |
+
|
1945 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1939
|
1946 |
Â
msgid "Previous"
|
1947 |
Â
msgstr ""
|
1948 |
Â
|
1949 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1941
|
1950 |
Â
msgid "Active"
|
1951 |
Â
msgstr ""
|
1952 |
Â
|
1953 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1950
|
1954 |
Â
msgid "Chat with"
|
1955 |
Â
msgstr ""
|
1956 |
Â
|
1957 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1992
|
1958 |
+
msgid "Get more add-ons"
|
1959 |
+
msgstr ""
|
1960 |
+
|
1961 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1998
|
1962 |
Â
msgid "Add Quick Responses to your Live Chat"
|
1963 |
Â
msgstr ""
|
1964 |
Â
|
1965 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:1998
|
1966 |
Â
msgid "Pro version only"
|
1967 |
Â
msgstr ""
|
1968 |
Â
|
1969 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2009
|
1970 |
Â
msgid "type here..."
|
1971 |
Â
msgstr ""
|
1972 |
Â
|
1973 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2082
|
1974 |
+
msgid "The chat has been ended"
|
1975 |
Â
msgstr ""
|
1976 |
Â
|
1977 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2374
|
1978 |
+
msgid "WP Live Chat History"
|
Â
|
|
1979 |
Â
msgstr ""
|
1980 |
Â
|
1981 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2394
|
1982 |
Â
msgid "WP Live Chat Missed Chats"
|
1983 |
Â
msgstr ""
|
1984 |
Â
|
1985 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2409
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1986 |
Â
msgid ""
|
1987 |
Â
"Please update to the latest version of WP Live Chat Support Pro to start "
|
1988 |
Â
"recording any offline messages."
|
1989 |
Â
msgstr ""
|
1990 |
Â
|
1991 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2412
|
1992 |
+
msgid "This option is only available in the "
|
1993 |
+
msgstr ""
|
1994 |
+
|
1995 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2412
|
1996 |
+
msgid "Pro Add-on"
|
1997 |
+
msgstr ""
|
1998 |
+
|
1999 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2424
|
2000 |
+
msgid "WP Live Chat Offline Messages"
|
2001 |
+
msgstr ""
|
2002 |
+
|
2003 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2622
|
2004 |
Â
msgid "Thank You for your feedback!"
|
2005 |
Â
msgstr ""
|
2006 |
Â
|
2007 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2626
|
2008 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2639
|
2009 |
Â
msgid "Thank you for your feedback. We will be in touch soon"
|
2010 |
Â
msgstr ""
|
2011 |
Â
|
2012 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2642
|
2013 |
Â
msgid "There was a problem sending your feedback. Please log your feedback on "
|
2014 |
Â
msgstr ""
|
2015 |
Â
|
2016 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2676
|
2017 |
Â
msgid ""
|
2018 |
Â
"WPLC: set_time_limit() is not enabled on this server. You may experience "
|
2019 |
Â
"issues while using WP Live Chat Support as a result of this. Please get in "
|
2020 |
Â
"contact your host to get this function enabled."
|
2021 |
Â
msgstr ""
|
2022 |
Â
|
2023 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2682
|
2024 |
Â
msgid ""
|
2025 |
Â
"WPLC: Safe mode is enabled on this server. You may experience issues while "
|
2026 |
Â
"using WP Live Chat Support as a result of this. Please contact your host to "
|
2027 |
Â
"get safe mode disabled."
|
2028 |
Â
msgstr ""
|
2029 |
Â
|
2030 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2704
|
2031 |
Â
msgid "Suggested Plugins"
|
2032 |
Â
msgstr ""
|
2033 |
Â
|
2034 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2715
|
2035 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2716
|
2036 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2717
|
2037 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2722
|
2038 |
Â
msgid "Sola Support Tickets"
|
2039 |
Â
msgstr ""
|
2040 |
Â
|
2041 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2720
|
2042 |
Â
msgid ""
|
2043 |
Â
"The easiest to use Help Desk & Support Ticket plugin. Create a support help "
|
2044 |
Â
"desk quickly and easily with Sola Support Tickets."
|
2045 |
Â
msgstr ""
|
2046 |
Â
|
2047 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2722
|
2048 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2733
|
2049 |
Â
msgid "Get this Plugin"
|
2050 |
Â
msgstr ""
|
2051 |
Â
|
2052 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2726
|
2053 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2727
|
2054 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2728
|
2055 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2733
|
2056 |
Â
msgid "Nifty Newsletters"
|
2057 |
Â
msgstr ""
|
2058 |
Â
|
2059 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2731
|
2060 |
Â
msgid ""
|
2061 |
Â
"Create and send newsletters, automatic post notifications and autoresponders "
|
2062 |
Â
"that are modern and beautiful with Nifty Newsletters."
|
2063 |
Â
msgstr ""
|
2064 |
Â
|
2065 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2765
|
2066 |
Â
msgid "Price:"
|
2067 |
Â
msgstr ""
|
2068 |
Â
|
2069 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2766
|
2070 |
Â
msgid "All"
|
2071 |
Â
msgstr ""
|
2072 |
Â
|
2073 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2767
|
2074 |
Â
msgid "Free"
|
2075 |
Â
msgstr ""
|
2076 |
Â
|
2077 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2768
|
2078 |
Â
msgid "Paid"
|
2079 |
Â
msgstr ""
|
2080 |
Â
|
2081 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2771
|
2082 |
Â
msgid "For:"
|
2083 |
Â
msgstr ""
|
2084 |
Â
|
2085 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2772
|
2086 |
Â
msgid "Both"
|
2087 |
Â
msgstr ""
|
2088 |
Â
|
2089 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2773
|
2090 |
Â
msgid "Free version"
|
2091 |
Â
msgstr ""
|
2092 |
Â
|
2093 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2774
|
2094 |
Â
msgid "Pro version"
|
2095 |
Â
msgstr ""
|
2096 |
Â
|
2097 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2810
|
2098 |
Â
msgid "Already installed"
|
2099 |
Â
msgstr ""
|
2100 |
Â
|
2101 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2837
|
2102 |
Â
msgid "WP Live Chat Support"
|
2103 |
Â
msgstr ""
|
2104 |
Â
|
2105 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2840
|
2106 |
Â
msgid "Documentation"
|
2107 |
Â
msgstr ""
|
2108 |
Â
|
2109 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2842
|
2110 |
Â
msgid ""
|
2111 |
Â
"Getting started? Read through some of these articles to help you along your "
|
2112 |
Â
"way."
|
2113 |
Â
msgstr ""
|
2114 |
Â
|
2115 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2843
|
2116 |
Â
msgid "Documentation:"
|
2117 |
Â
msgstr ""
|
2118 |
Â
|
2119 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2845
|
2120 |
Â
msgid "Minimum System Requirements"
|
2121 |
Â
msgstr ""
|
2122 |
Â
|
2123 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2846
|
2124 |
Â
msgid "Do I have to be logged into the dashboard to chat with visitors?"
|
2125 |
Â
msgstr ""
|
2126 |
Â
|
2127 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2847
|
2128 |
Â
msgid "What are Quick Responses?"
|
2129 |
Â
msgstr ""
|
2130 |
Â
|
2131 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2848
|
2132 |
Â
msgid "Can I use this plugin on my multi-site?"
|
2133 |
Â
msgstr ""
|
2134 |
Â
|
2135 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2849
|
2136 |
Â
msgid "How do I disable APC Object Cache?"
|
2137 |
Â
msgstr ""
|
2138 |
Â
|
2139 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2850
|
2140 |
Â
msgid "Do you have a mobile app?"
|
2141 |
Â
msgstr ""
|
2142 |
Â
|
2143 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2851
|
2144 |
Â
msgid "How do I check for JavaScript errors on my site?"
|
2145 |
Â
msgstr ""
|
2146 |
Â
|
2147 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2855
|
2148 |
Â
msgid "Troubleshooting"
|
2149 |
Â
msgstr ""
|
2150 |
Â
|
2151 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2857
|
2152 |
Â
msgid ""
|
2153 |
Â
"WP Live Chat Support has a diverse and wide range of features which may, "
|
2154 |
Â
"from time to time, run into conflicts with the thousands of themes and other "
|
2155 |
Â
"plugins on the market."
|
2156 |
Â
msgstr ""
|
2157 |
Â
|
2158 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2858
|
2159 |
Â
msgid "Common issues:"
|
2160 |
Â
msgstr ""
|
2161 |
Â
|
2162 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2860
|
2163 |
Â
msgid "The chat box doesnt show up"
|
2164 |
Â
msgstr ""
|
2165 |
Â
|
2166 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2861
|
2167 |
Â
msgid "The chat window disappears when I logout or go offline"
|
2168 |
Â
msgstr ""
|
2169 |
Â
|
2170 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2863
|
2171 |
Â
msgid "Messages only show when I refresh the chat window"
|
2172 |
Â
msgstr ""
|
2173 |
Â
|
2174 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2864
|
2175 |
Â
msgid "I'm not getting any notifications of a new chat"
|
2176 |
Â
msgstr ""
|
2177 |
Â
|
2178 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2865
|
2179 |
Â
msgid "The chat window never goes offline"
|
2180 |
Â
msgstr ""
|
2181 |
Â
|
2182 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2871
|
2183 |
Â
msgid "Still need help? Use one of these links below."
|
2184 |
Â
msgstr ""
|
2185 |
Â
|
2186 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2873
|
2187 |
Â
msgid "Support forum"
|
2188 |
Â
msgstr ""
|
2189 |
Â
|
2190 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2874
|
2191 |
Â
msgid "Contact us"
|
2192 |
Â
msgstr ""
|
2193 |
Â
|
2194 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2889
|
2195 |
+
msgid ""
|
2196 |
+
"With the <strong>Initiate Chats Extension</strong> of WP Live Chat Support, "
|
2197 |
+
"you can"
|
2198 |
Â
msgstr ""
|
2199 |
Â
|
2200 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2889
|
2201 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2890
|
2202 |
+
msgid "Buy the Initiate Chats Extension now (once off payment)."
|
2203 |
Â
msgstr ""
|
2204 |
Â
|
2205 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2890
|
2206 |
Â
msgid "Multiple Chats"
|
2207 |
Â
msgstr ""
|
2208 |
Â
|
2209 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2890
|
2210 |
+
msgid "With the Pro add-on of WP Live Chat Support, you can"
|
2211 |
+
msgstr ""
|
2212 |
+
|
2213 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2890
|
2214 |
Â
msgid "accept and handle multiple chats."
|
2215 |
Â
msgstr ""
|
2216 |
Â
|
2217 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2891
|
2218 |
Â
msgid "Add unlimited agents"
|
2219 |
Â
msgstr ""
|
2220 |
Â
|
2221 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2891
|
2222 |
+
msgid ""
|
2223 |
+
" with the <strong>Mutliple Agents Extension</strong> of WP Live Chat Support"
|
2224 |
Â
msgstr ""
|
2225 |
Â
|
2226 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2891
|
2227 |
Â
msgid "(once off payment)."
|
2228 |
Â
msgstr ""
|
2229 |
Â
|
2230 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2905
|
2231 |
Â
#, php-format
|
2232 |
Â
msgid ""
|
2233 |
Â
"Thank you for using <a href=\"%1$s\" target=\"_blank\">WP Live Chat Support</"
|
2235 |
Â
"\" target=\"_blank\">WordPress.org</a>"
|
2236 |
Â
msgstr ""
|
2237 |
Â
|
2238 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2910
|
2239 |
Â
msgid "WP Live Chat Support is a product of"
|
2240 |
Â
msgstr ""
|
2241 |
+
|
2242 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2992
|
2243 |
+
msgid "Add as many agents as you need with the "
|
2244 |
+
msgstr ""
|
2245 |
+
|
2246 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:2992
|
2247 |
+
msgid "Multiple Agents Extension."
|
2248 |
+
msgstr ""
|
2249 |
+
|
2250 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3082
|
2251 |
+
msgid "Verify"
|
2252 |
+
msgstr ""
|
2253 |
+
|
2254 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3085
|
2255 |
+
msgid "Status: "
|
2256 |
+
msgstr ""
|
2257 |
+
|
2258 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3088
|
2259 |
+
msgid "Valid"
|
2260 |
+
msgstr ""
|
2261 |
+
|
2262 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3089
|
2263 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3093
|
2264 |
+
msgid "Manage this extension"
|
2265 |
+
msgstr ""
|
2266 |
+
|
2267 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3092
|
2268 |
+
msgid "Invalid"
|
2269 |
+
msgstr ""
|
2270 |
+
|
2271 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3098
|
2272 |
+
msgid "Linked Domains"
|
2273 |
+
msgstr ""
|
2274 |
+
|
2275 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3133
|
2276 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3197
|
2277 |
+
msgid "Initiate a chat with any visitor at any time."
|
2278 |
+
msgstr ""
|
2279 |
+
|
2280 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3145
|
2281 |
+
msgid "Mobile & Desktop App"
|
2282 |
+
msgstr ""
|
2283 |
+
|
2284 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3154
|
2285 |
+
msgid ""
|
2286 |
+
"Answer chats directly from your mobile phone or dekstop with our mobile app "
|
2287 |
+
"and desktop client"
|
2288 |
+
msgstr ""
|
2289 |
+
|
2290 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3175
|
2291 |
+
msgid ""
|
2292 |
+
"Reduce the resources required by your server - use our cloud server to host "
|
2293 |
+
"your chats."
|
2294 |
+
msgstr ""
|
2295 |
+
|
2296 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3218
|
2297 |
+
msgid ""
|
2298 |
+
"Add your company logo, avatar and name to the chat box and add more advanced "
|
2299 |
+
"features."
|
2300 |
+
msgstr ""
|
2301 |
+
|
2302 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3230
|
2303 |
+
msgid "Include and Exclude Pages"
|
2304 |
+
msgstr ""
|
2305 |
+
|
2306 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3239
|
2307 |
+
msgid ""
|
2308 |
+
"Control where the chat box is displayed on your website. Choose which pages "
|
2309 |
+
"to include and/or exclude."
|
2310 |
+
msgstr ""
|
2311 |
+
|
2312 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3259
|
2313 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3280
|
2314 |
+
msgid "Relevant Extensions"
|
2315 |
+
msgstr ""
|
2316 |
+
|
2317 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:3363
|
2318 |
+
msgid ""
|
2319 |
+
"Your API Key is Invalid. You are not eligible for future updates. Please "
|
2320 |
+
"enter your API key <a href=\"admin.php?page=wplivechat-menu-api-keys-page"
|
2321 |
+
"\">here</a>."
|
2322 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -17,11 +17,16 @@ The most cost effective Live Chat plugin. Chat with your visitors for free! WP L
|
|
17 |
Â
|
18 |
Â
* Most popular WordPress chat plugin
|
19 |
Â
* WP Live Chat Support is a fully functional live chat plugin
|
Â
|
|
20 |
Â
* Live chat directly with your visitors
|
21 |
Â
* Easy to use interface for both the admin and the visitor
|
22 |
Â
* Users can drag the live chat box around their page
|
23 |
Â
* Change the colors of the live chat box
|
24 |
Â
* Fully responsive admin chat dashboard
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
25 |
Â
* No advertising or links
|
26 |
Â
* No "Powered by" links on the live chat window
|
27 |
Â
* No monthly live chat subscriptions needed
|
@@ -41,9 +46,7 @@ The most cost effective Live Chat plugin. Chat with your visitors for free! WP L
|
|
41 |
Â
|
42 |
Â
* Unlimited live chat agents
|
43 |
Â
* Initiate live chats with online visitors
|
44 |
-
* Chat to more than one visitor at a time
|
45 |
Â
* Quick Responses (insert a predefined response to your live chat box)
|
46 |
-
* 6 predefined live chat box themes to choose from
|
47 |
Â
* Encrypt your live chat conversations
|
48 |
Â
* Fully responsive admin chat dashboard
|
49 |
Â
* Compatible with all caching plugins (live chat window loaded via Ajax)
|
@@ -55,9 +58,6 @@ The most cost effective Live Chat plugin. Chat with your visitors for free! WP L
|
|
55 |
Â
* Add your photo to the live chat window
|
56 |
Â
* Edit all text fields shown on the live chat box
|
57 |
Â
* Include/exclude the live chat from appearing on certain pages
|
58 |
-
* Fully customizable live chat experience
|
59 |
-
* Offline messages are now stored (When Live Chat is switched off)
|
60 |
-
* Apply animations to the chat window
|
61 |
Â
* Anonymity for your visitors
|
62 |
Â
* Choose when to accept chats
|
63 |
Â
* Allow the live chat box to automatically pop up
|
@@ -199,6 +199,14 @@ It is highly recommended that you upgrade to WP Live Chat Support version 4.1.4
|
|
199 |
Â
|
200 |
Â
== Changelog ==
|
201 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
202 |
Â
= 5.0.14 - 2016-01-13 - High priority =
|
203 |
Â
* Bug fix: When activating WP Live Chat Support, a table is created with a shared MySQL column name which caused issues on some servers. The column name has been changed
|
204 |
Â
* WP Live Chat Support Pro users need to update to the latest version when using this version (there is a notice for this in the live chat dashboard)
|
17 |
Â
|
18 |
Â
* Most popular WordPress chat plugin
|
19 |
Â
* WP Live Chat Support is a fully functional live chat plugin
|
20 |
+
* Unlimited simultaneous live chats
|
21 |
Â
* Live chat directly with your visitors
|
22 |
Â
* Easy to use interface for both the admin and the visitor
|
23 |
Â
* Users can drag the live chat box around their page
|
24 |
Â
* Change the colors of the live chat box
|
25 |
Â
* Fully responsive admin chat dashboard
|
26 |
+
* Offline messages are now stored (When Live Chat is switched off)
|
27 |
+
* 6 predefined live chat box themes to choose from
|
28 |
+
* Fully customizable live chat experience
|
29 |
+
* Apply animations to the chat window
|
30 |
Â
* No advertising or links
|
31 |
Â
* No "Powered by" links on the live chat window
|
32 |
Â
* No monthly live chat subscriptions needed
|
46 |
Â
|
47 |
Â
* Unlimited live chat agents
|
48 |
Â
* Initiate live chats with online visitors
|
Â
|
|
49 |
Â
* Quick Responses (insert a predefined response to your live chat box)
|
Â
|
|
50 |
Â
* Encrypt your live chat conversations
|
51 |
Â
* Fully responsive admin chat dashboard
|
52 |
Â
* Compatible with all caching plugins (live chat window loaded via Ajax)
|
58 |
Â
* Add your photo to the live chat window
|
59 |
Â
* Edit all text fields shown on the live chat box
|
60 |
Â
* Include/exclude the live chat from appearing on certain pages
|
Â
|
|
Â
|
|
Â
|
|
61 |
Â
* Anonymity for your visitors
|
62 |
Â
* Choose when to accept chats
|
63 |
Â
* Allow the live chat box to automatically pop up
|
199 |
Â
|
200 |
Â
== Changelog ==
|
201 |
Â
|
202 |
+
= 6.0.00 -2016-01-26 - Freedom of Speech Update - Medium Priority =
|
203 |
+
* New functionality
|
204 |
+
* Unlimited simultaneous chats now available
|
205 |
+
* Offline messages are now available
|
206 |
+
* Many new filters added
|
207 |
+
* jQuery.cookie updated to version 2.1
|
208 |
+
* Many of the WP Live Chat Support Pro features have been moved into the free version
|
209 |
+
|
210 |
Â
= 5.0.14 - 2016-01-13 - High priority =
|
211 |
Â
* Bug fix: When activating WP Live Chat Support, a table is created with a shared MySQL column name which caused issues on some servers. The column name has been changed
|
212 |
Â
* WP Live Chat Support Pro users need to update to the latest version when using this version (there is a notice for this in the live chat dashboard)
|
wp-live-chat-support.php
CHANGED
@@ -3,13 +3,21 @@
|
|
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:
|
7 |
Â
Author: WP-LiveChat
|
8 |
Â
Author URI: http://www.wp-livechat.com
|
9 |
Â
Text Domain: wplivechat
|
10 |
Â
Domain Path: /languages
|
11 |
Â
*/
|
Â
|
|
12 |
Â
/*
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
13 |
Â
* 5.0.14 - 2016-01-13 - High priority
|
14 |
Â
* Bug fix: When activating WP Live Chat Support, a table is created with a shared MySQL column name which caused issues on some servers. The column name has been changed
|
15 |
Â
*
|
@@ -292,9 +300,12 @@ global $wplc_tblname;
|
|
292 |
Â
global $wpdb;
|
293 |
Â
global $wplc_tblname_chats;
|
294 |
Â
global $wplc_tblname_msgs;
|
Â
|
|
Â
|
|
Â
|
|
295 |
Â
$wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
|
296 |
Â
$wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
|
297 |
-
$wplc_version = "
|
298 |
Â
|
299 |
Â
define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
|
300 |
Â
define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");
|
@@ -306,9 +317,13 @@ if(!function_exists('wplc_pro_activate')){
|
|
306 |
Â
}
|
307 |
Â
|
308 |
Â
require_once (plugin_dir_path(__FILE__) . "functions.php");
|
Â
|
|
309 |
Â
|
310 |
Â
add_action('wp_ajax_wplc_admin_set_transient', 'wplc_action_callback');
|
Â
|
|
311 |
Â
add_action('wp_ajax_wplc_hide_ftt','wplc_action_callback');
|
Â
|
|
Â
|
|
312 |
Â
add_action('init', 'wplc_version_control');
|
313 |
Â
|
314 |
Â
|
@@ -316,10 +331,13 @@ add_action('wp_footer', 'wplc_display_box');
|
|
316 |
Â
|
317 |
Â
add_action('init', 'wplc_init');
|
318 |
Â
|
Â
|
|
Â
|
|
Â
|
|
319 |
Â
if (function_exists('wplc_head_pro')) {
|
320 |
-
add_action('
|
321 |
Â
} else {
|
322 |
-
add_action('
|
323 |
Â
}
|
324 |
Â
|
325 |
Â
add_action('wp_enqueue_scripts', 'wplc_add_user_stylesheet');
|
@@ -334,58 +352,6 @@ add_action('admin_head', 'wplc_superadmin_javascript');
|
|
334 |
Â
register_activation_hook(__FILE__, 'wplc_activate');
|
335 |
Â
|
336 |
Â
|
337 |
-
/*
|
338 |
-
* Custom Hooks
|
339 |
-
* ================
|
340 |
-
*
|
341 |
-
*
|
342 |
-
* wplc_hook_admin_visitor_info_display_before
|
343 |
-
*
|
344 |
-
* Allows your to add HTML at the beginning of the vistior details DIV in the chat window
|
345 |
-
*
|
346 |
-
* @since 5.0.8
|
347 |
-
* @param int $cid The current chat ID
|
348 |
-
* @return
|
349 |
-
*
|
350 |
-
*
|
351 |
-
* wplc_hook_admin_visitor_info_display_after
|
352 |
-
*
|
353 |
-
* Allows your to add HTML at the end of the vistior details DIV in the chat window
|
354 |
-
*
|
355 |
-
* @since 5.0.8
|
356 |
-
* @param int $cid The current chat ID
|
357 |
-
* @return
|
358 |
-
*
|
359 |
-
*
|
360 |
-
* wplc_hook_admin_javascript_chat
|
361 |
-
*
|
362 |
-
* Allows your to add Javascript enqueues at the end of the javascript section of the chat window
|
363 |
-
*
|
364 |
-
* @since 5.0.8
|
365 |
-
* @return
|
366 |
-
*
|
367 |
-
*
|
368 |
-
* wplc_hook_admin_settings_main_settings_after
|
369 |
-
*
|
370 |
-
* Allows your to add more options to the main settings table in the settings page, after the first main table
|
371 |
-
*
|
372 |
-
* @since 5.0.8
|
373 |
-
* @return
|
374 |
-
*
|
375 |
-
*
|
376 |
-
* wplc_hook_admin_settings_save
|
377 |
-
*
|
378 |
-
* Hook into the save settings head section. i.e. where we handle POST data from the settings page
|
379 |
-
*
|
380 |
-
* @since 5.0.8
|
381 |
-
* @return
|
382 |
-
*
|
383 |
-
*
|
384 |
-
*
|
385 |
-
*
|
386 |
-
*/
|
387 |
-
|
388 |
-
|
389 |
Â
function wplc_basic_check() {
|
390 |
Â
// check if basic exists if pro is installed
|
391 |
Â
}
|
@@ -403,31 +369,65 @@ function wplc_version_control() {
|
|
403 |
Â
|
404 |
Â
$current_version = get_option("wplc_current_version");
|
405 |
Â
if (!isset($current_version) || $current_version != $wplc_version) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
406 |
Â
wplc_handle_db();
|
407 |
Â
update_option("wplc_current_version", $wplc_version);
|
408 |
Â
|
409 |
-
|
410 |
-
if (!isset($wplc_settings['wplc_require_user_info'])) {
|
411 |
-
|
412 |
-
|
413 |
-
if (!isset($wplc_settings['wplc_loggedin_user_info'])) {
|
414 |
-
$wplc_settings['wplc_loggedin_user_info'] = "1";
|
415 |
-
}
|
416 |
-
if (!isset($wplc_settings['wplc_user_alternative_text'])) {
|
417 |
Â
$wplc_alt_text = __("Please click \'Start Chat\' to initiate a chat with an agent", "wplivechat");
|
418 |
Â
$wplc_settings['wplc_user_alternative_text'] = $wplc_alt_text;
|
419 |
Â
}
|
420 |
-
if (!isset($wplc_settings['wplc_enabled_on_mobile'])) {
|
421 |
-
|
422 |
-
}
|
423 |
-
if(!isset($wplc_settings['
|
424 |
-
|
425 |
-
|
426 |
-
if(!isset($wplc_settings['wplc_enable_msg_sound'])){
|
427 |
-
$wplc_settings['wplc_enable_msg_sound'] = "1";
|
428 |
-
}
|
429 |
Â
update_option("WPLC_SETTINGS", $wplc_settings);
|
430 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
431 |
Â
}
|
432 |
Â
|
433 |
Â
function wplc_action_callback() {
|
@@ -436,12 +436,31 @@ function wplc_action_callback() {
|
|
436 |
Â
$check = check_ajax_referer('wplc', 'security');
|
437 |
Â
|
438 |
Â
if ($check == 1) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
439 |
Â
if ($_POST['action'] == "wplc_admin_set_transient") {
|
440 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
441 |
Â
}
|
442 |
Â
if ($_POST['action'] == 'wplc_hide_ftt') {
|
443 |
Â
update_option("WPLC_FIRST_TIME_TUTORIAL",true);
|
444 |
Â
}
|
Â
|
|
445 |
Â
}
|
446 |
Â
die(); // this is required to return a proper result
|
447 |
Â
}
|
@@ -450,17 +469,79 @@ function wplc_feedback_page_include() {
|
|
450 |
Â
include 'includes/feedback-page.php';
|
451 |
Â
}
|
452 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
453 |
Â
function wplc_admin_menu() {
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
add_submenu_page('wplivechat-menu', __('
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
459 |
Â
add_submenu_page('wplivechat-menu', __('Support', 'wplivechat'), __('Support', 'wplivechat'), 'manage_options', 'wplivechat-menu-support-page', 'wplc_support_menu');
|
460 |
Â
add_submenu_page('wplivechat-menu', __('Extensions', 'wplivechat'), __('Extensions', 'wplivechat'), 'manage_options', 'wplivechat-menu-extensions-page', 'wplc_extensions_menu');
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
461 |
Â
}
|
462 |
Â
|
463 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
464 |
Â
|
465 |
Â
add_action("init","wplc_load_user_js",0);
|
466 |
Â
|
@@ -468,7 +549,9 @@ add_action("init","wplc_load_user_js",0);
|
|
468 |
Â
function wplc_load_user_js () {
|
469 |
Â
|
470 |
Â
if (!is_admin()) {
|
471 |
-
|
Â
|
|
Â
|
|
472 |
Â
|
473 |
Â
|
474 |
Â
if(function_exists('wplc_display_chat_contents')){
|
@@ -477,13 +560,14 @@ function wplc_load_user_js () {
|
|
477 |
Â
$display_contents = 1;
|
478 |
Â
}
|
479 |
Â
|
480 |
-
if(function_exists('
|
481 |
-
$user_banned = wplc_is_user_banned();
|
482 |
-
} else if (function_exists('wplc_is_user_banned')){
|
483 |
Â
$user_banned = wplc_is_user_banned_basic();
|
484 |
Â
} else {
|
485 |
Â
$user_banned = 0;
|
486 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
487 |
Â
if($display_contents && $user_banned == 0){
|
488 |
Â
|
489 |
Â
/* do not show if pro is outdated */
|
@@ -558,33 +642,63 @@ function wplc_push_js_to_front_basic() {
|
|
558 |
Â
$wplc_ding = '0';
|
559 |
Â
}
|
560 |
Â
|
561 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
562 |
Â
wp_enqueue_script('wplc-user-script');
|
563 |
Â
wp_register_script('wplc-user-jquery-cookie', plugins_url('/js/jquery-cookie.js', __FILE__), array('wplc-user-script'),false, false);
|
564 |
Â
wp_enqueue_script('wplc-user-jquery-cookie');
|
565 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
566 |
Â
|
567 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
568 |
Â
wp_localize_script('wplc-user-script', 'wplc_plugin_url', plugins_url());
|
569 |
Â
wp_localize_script('wplc-user-script', 'wplc_display_name', $wplc_display);
|
570 |
Â
wp_localize_script('wplc-user-script', 'wplc_enable_ding', $wplc_ding);
|
571 |
Â
|
572 |
-
if (isset($
|
573 |
-
|
574 |
-
|
575 |
-
$wplc_user_gravatar = "";
|
576 |
-
}
|
577 |
Â
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
583 |
Â
wp_localize_script('wplc-user-script', 'wplc_gravatar_image', $wplc_grav_image);
|
584 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
585 |
Â
wp_enqueue_script('jquery-ui-core',false,array('wplc-user-script'),false,false);
|
586 |
Â
wp_enqueue_script('jquery-ui-draggable',false,array('wplc-user-script'),false,false);
|
587 |
Â
|
Â
|
|
Â
|
|
588 |
Â
}
|
589 |
Â
if (function_exists('wplc_pro_user_top_js')) {
|
590 |
Â
add_action('wp_head', 'wplc_pro_user_top_js');
|
@@ -612,13 +726,13 @@ function wplc_user_top_js() {
|
|
612 |
Â
*/
|
613 |
Â
$ajax_nonce = wp_create_nonce("wplc");
|
614 |
Â
$wplc_settings = get_option("WPLC_SETTINGS");
|
Â
|
|
Â
|
|
615 |
Â
?>
|
616 |
Â
|
617 |
Â
<script type="text/javascript">
|
618 |
Â
<?php if (!function_exists("wplc_register_pro_version")) { ?>
|
619 |
-
|
620 |
-
var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>';
|
621 |
-
var wplc_ajaxurl = ajaxurl;
|
622 |
Â
<?php } ?>
|
623 |
Â
var wplc_nonce = '<?php echo $ajax_nonce; ?>';
|
624 |
Â
</script>
|
@@ -626,434 +740,668 @@ function wplc_user_top_js() {
|
|
626 |
Â
}
|
627 |
Â
}
|
628 |
Â
|
629 |
-
function wplc_draw_user_box() {
|
630 |
-
|
631 |
-
|
632 |
-
if(function_exists('wplc_display_chat_contents')){
|
633 |
-
if(wplc_display_chat_contents() >= 1){
|
634 |
-
wplc_output_box();
|
635 |
-
}
|
636 |
-
} else {
|
637 |
-
wplc_output_box();
|
638 |
-
}
|
639 |
-
|
640 |
-
}
|
641 |
Â
|
642 |
-
function wplc_output_box_ajax() {
|
643 |
Â
|
644 |
-
if(function_exists('wplc_display_chat_contents')){
|
645 |
-
$display_contents = wplc_display_chat_contents();
|
646 |
-
} else {
|
647 |
-
$display_contents = 1;
|
648 |
-
}
|
649 |
Â
|
650 |
-
|
651 |
-
|
652 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
653 |
Â
$user_banned = wplc_is_user_banned_basic();
|
654 |
Â
} else {
|
655 |
Â
$user_banned = 0;
|
656 |
Â
}
|
657 |
-
if($display_contents && $user_banned == 0){
|
658 |
-
|
659 |
-
|
660 |
-
/* do not show if pro is outdated */
|
661 |
-
global $wplc_pro_version;
|
662 |
-
if (isset($wplc_pro_version)) {
|
663 |
-
$float_version = floatval($wplc_pro_version);
|
664 |
-
if ($float_version < 4 || $wplc_pro_version == "4.1.0" || $wplc_pro_version == "4.1.1") {
|
665 |
-
return "";
|
666 |
-
}
|
667 |
-
}
|
668 |
Â
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
require_once (plugin_dir_path(__FILE__) . 'includes/Mobile_Detect.php');
|
673 |
-
}
|
674 |
-
$wplc_detect_device = new Mobile_Detect;
|
675 |
-
$wplc_is_mobile = $wplc_detect_device->isMobile();
|
676 |
-
if ($wplc_is_mobile && !isset($wplc_settings['wplc_enabled_on_mobile']) && $wplc_settings['wplc_enabled_on_mobile'] != 1) {
|
677 |
-
return "";
|
678 |
-
}
|
679 |
-
if (function_exists('wplc_hide_chat_when_offline')) {
|
680 |
-
$wplc_hide_chat = wplc_hide_chat_when_offline();
|
681 |
-
if (!$wplc_hide_chat) {
|
682 |
-
$draw_box = true;
|
683 |
-
}
|
684 |
-
} else {
|
685 |
-
$draw_box = true;
|
686 |
-
}
|
687 |
-
} else {
|
688 |
-
$draw_box = true;
|
689 |
-
}
|
690 |
Â
}
|
Â
|
|
691 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
692 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
693 |
Â
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
//$wplc_box_align = "left:100px; bottom:0px;";
|
706 |
-
$wplc_box_align = "bottom:0px;";
|
707 |
-
} else if ($wplc_settings["wplc_settings_align"] == 2) {
|
708 |
-
$original_pos = "bottom_right";
|
709 |
-
//$wplc_box_align = "right:100px; bottom:0px;";
|
710 |
-
$wplc_box_align = "bottom:0px;";
|
711 |
-
} else if ($wplc_settings["wplc_settings_align"] == 3) {
|
712 |
-
$original_pos = "left";
|
713 |
-
// $wplc_box_align = "left:0; bottom:100px;";
|
714 |
-
$wplc_box_align = " bottom:100px;";
|
715 |
-
$wplc_class = "wplc_left";
|
716 |
-
} else if ($wplc_settings["wplc_settings_align"] == 4) {
|
717 |
-
$original_pos = "right";
|
718 |
-
// $wplc_box_align = "right:0; bottom:100px;";
|
719 |
-
$wplc_box_align = "bottom:100px;";
|
720 |
-
$wplc_class = "wplc_right";
|
721 |
-
}
|
722 |
-
|
723 |
-
if ($wplc_settings["wplc_settings_fill"]) {
|
724 |
-
$wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"];
|
725 |
-
} else {
|
726 |
-
$wplc_settings_fill = "#ed832f";
|
727 |
-
}
|
728 |
-
if ($wplc_settings["wplc_settings_font"]) {
|
729 |
-
$wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"];
|
730 |
-
} else {
|
731 |
-
$wplc_settings_font = "#FFFFFF";
|
732 |
-
}
|
733 |
-
|
734 |
-
$wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
|
735 |
-
if (!function_exists("wplc_register_pro_version") && $wplc_is_admin_logged_in != 1) {
|
736 |
-
$ret_msg = "";
|
737 |
-
}
|
738 |
-
|
739 |
-
if(function_exists('wplc_pro_activate')){
|
740 |
-
if(function_exists('wplc_return_animations')){
|
741 |
-
|
742 |
-
$animations = wplc_return_animations();
|
743 |
-
|
744 |
-
isset($animations['animation']) ? $wplc_animation = $animations['animation'] : $wplc_animation = 'animation-4';
|
745 |
-
isset($animations['starting_point']) ? $wplc_starting_point = $animations['starting_point'] : $wplc_starting_point = 'display: none;';
|
746 |
-
isset($animations['box_align']) ? $wplc_box_align = $animations['box_align'] : $wplc_box_align = '';
|
747 |
-
|
748 |
-
} else {
|
749 |
-
|
750 |
-
}
|
751 |
-
} else {
|
752 |
-
|
753 |
-
$wplc_starting_point = '';
|
754 |
-
$wplc_animation = '';
|
755 |
-
|
756 |
-
if ($wplc_settings["wplc_settings_align"] == 1) {
|
757 |
-
$original_pos = "bottom_left";
|
758 |
-
$wplc_box_align = "left:100px; bottom:0px;";
|
759 |
-
} else if ($wplc_settings["wplc_settings_align"] == 2) {
|
760 |
-
$original_pos = "bottom_right";
|
761 |
-
$wplc_box_align = "right:100px; bottom:0px;";
|
762 |
-
} else if ($wplc_settings["wplc_settings_align"] == 3) {
|
763 |
-
$original_pos = "left";
|
764 |
-
$wplc_box_align = "left:0; bottom:100px;";
|
765 |
-
$wplc_class = "wplc_left";
|
766 |
-
} else if ($wplc_settings["wplc_settings_align"] == 4) {
|
767 |
-
$original_pos = "right";
|
768 |
-
$wplc_box_align = "right:0; bottom:100px;";
|
769 |
-
$wplc_class = "wplc_right";
|
770 |
-
}
|
771 |
-
|
772 |
-
}
|
773 |
-
|
774 |
-
if (isset($wplc_settings['wplc_auto_pop_up'])) { $wplc_auto_popup = $wplc_settings['wplc_auto_pop_up']; } else { $wplc_auto_popup = "" ;}
|
775 |
-
$ret_msg .= "<div id=\"wp-live-chat\" wplc_animation=\"".$wplc_animation."\" style=\"".$wplc_starting_point." ".$wplc_box_align.";\" class=\"".$wplc_class." wplc_close\" original_pos=\"".$original_pos."\" wplc-auto-pop-up=\"". $wplc_auto_popup."\" > ";
|
776 |
-
|
777 |
-
if (function_exists("wplc_pro_output_box_ajax")) {
|
778 |
-
$ret_msg .= wplc_pro_output_box_ajax();
|
779 |
-
} else {
|
780 |
-
|
781 |
-
$ret_msg .= "<div class=\"wp-live-chat-wraper\">";
|
782 |
-
$ret_msg .= "<div id=\"wp-live-chat-header\" style=\"background-color: ".$wplc_settings_fill." !important; color: ".$wplc_settings_font." !important; \">";
|
783 |
-
$ret_msg .= "<i id=\"wp-live-chat-minimize\" class=\"fa fa-minus\" style=\"display:none;\" ></i>";
|
784 |
-
|
785 |
-
$ret_msg .= "<i id=\"wp-live-chat-close\" class=\"fa fa-times\" style=\"display:none;\" ></i>";
|
786 |
-
|
787 |
-
$ret_msg .= " <div id=\"wp-live-chat-1\" >";
|
788 |
-
$ret_msg .= "<div style=\"display:block; \">";
|
789 |
-
$ret_msg .= "<strong>".__("Questions?", "wplivechat")."</strong> ".__("Chat with us", "wplivechat");
|
790 |
-
$ret_msg .= "</div>";
|
791 |
-
$ret_msg .= "</div>";
|
792 |
-
$ret_msg .= "</div>";
|
793 |
-
|
794 |
-
$ret_msg .= "<div id=\"wp-live-chat-2\" style=\"display:none;\">";
|
795 |
-
$ret_msg .= "<div id=\"wp-live-chat-2-info\">";
|
796 |
-
$ret_msg .= "<strong>".__('Start Live Chat', 'wplivechat')."</strong>";
|
797 |
-
$ret_msg .= "</div>";
|
798 |
-
|
799 |
-
if (isset($wplc_settings['wplc_loggedin_user_info']) && $wplc_settings['wplc_loggedin_user_info'] == 1) {
|
800 |
-
$wplc_use_loggedin_user_details = 1;
|
801 |
-
} else {
|
802 |
-
$wplc_use_loggedin_user_details = 0;
|
803 |
-
}
|
804 |
-
|
805 |
-
$wplc_loggedin_user_name = "";
|
806 |
-
$wplc_loggedin_user_email = "";
|
807 |
-
|
808 |
-
if ($wplc_use_loggedin_user_details == 1) {
|
809 |
-
global $current_user;
|
810 |
-
|
811 |
-
if ($current_user->data != null) {
|
812 |
-
//Logged in. Get name and email
|
813 |
-
$wplc_loggedin_user_name = $current_user->user_nicename;
|
814 |
-
$wplc_loggedin_user_email = $current_user->user_email;
|
815 |
-
}
|
816 |
-
} else {
|
817 |
-
$wplc_loggedin_user_name = '';
|
818 |
-
$wplc_loggedin_user_email = '';
|
819 |
-
}
|
820 |
-
|
821 |
-
if (isset($wplc_settings['wplc_require_user_info']) && $wplc_settings['wplc_require_user_info'] == 1) {
|
822 |
-
$wplc_ask_user_details = 1;
|
823 |
-
} else {
|
824 |
-
$wplc_ask_user_details = 0;
|
825 |
-
}
|
826 |
-
|
827 |
-
if ($wplc_ask_user_details == 1) {
|
828 |
-
//Ask the user to enter name and email
|
829 |
-
|
830 |
-
$ret_msg .= "<input type=\"text\" name=\"wplc_name\" id=\"wplc_name\" value='".$wplc_loggedin_user_name."' placeholder=\"".__("Name", "wplivechat")."\" />";
|
831 |
-
$ret_msg .= "<input type=\"text\" name=\"wplc_email\" id=\"wplc_email\" wplc_hide=\"0\" value=\"".$wplc_loggedin_user_email."\" placeholder=\"".__("Email", "wplivechat")."\" />";
|
832 |
-
} else {
|
833 |
-
//Dont ask the user
|
834 |
-
$ret_msg .= "<div style=\"padding: 7px; text-align: center;\">";
|
835 |
-
if (isset($wplc_settings['wplc_user_alternative_text'])) {
|
836 |
-
$ret_msg .= stripslashes($wplc_settings['wplc_user_alternative_text']);
|
837 |
-
}
|
838 |
-
$ret_msg .= '</div>';
|
839 |
-
|
840 |
-
$wplc_random_user_number = rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9);
|
841 |
-
//$wplc_loggedin_user_email = $wplc_random_user_number."@".$wplc_random_user_number.".com";
|
842 |
-
if ($wplc_loggedin_user_name != '') { $wplc_lin = $wplc_loggedin_user_name; } else { $wplc_lin = 'user' . $wplc_random_user_number; }
|
843 |
-
if ($wplc_loggedin_user_email != '' && $wplc_loggedin_user_email != null) { $wplc_lie = $wplc_loggedin_user_email; } else { $wplc_lie = $wplc_random_user_number . '@' . $wplc_random_user_number . '.com'; }
|
844 |
-
$ret_msg .= "<input type=\"hidden\" name=\"wplc_name\" id=\"wplc_name\" value=\"".$wplc_lin."\" />";
|
845 |
-
$ret_msg .= "<input type=\"hidden\" name=\"wplc_email\" id=\"wplc_email\" wplc_hide=\"1\" value=\"".$wplc_lie."\" />";
|
846 |
-
}
|
847 |
-
|
848 |
-
$ret_msg .= "<input id=\"wplc_start_chat_btn\" type=\"button\" value=\"".__("Start Chat", "wplivechat")."\" style=\"background-color: ".$wplc_settings_fill." !important; color: ".$wplc_settings_font." !important;\"/>";
|
849 |
-
$ret_msg .= "</div>";
|
850 |
-
$ret_msg .= "<div id=\"wp-live-chat-3\" style=\"display:none;\">";
|
851 |
-
$ret_msg .= "<p>".__("Connecting you to a sales person. Please be patient.", "wplivechat")."</p>";
|
852 |
-
$ret_msg .= "</div>";
|
853 |
-
$ret_msg .= "<div id=\"wp-live-chat-react\" style=\"display:none;\">";
|
854 |
-
$ret_msg .= "<p>".__("Reactivating your previous chat...", "wplivechat")."</p>";
|
855 |
-
$ret_msg .= "</div>";
|
856 |
-
$ret_msg .= "<div id=\"wp-live-chat-4\" style=\"display:none;\">";
|
857 |
-
$ret_msg .= "<div id=\"wplc_sound_update\" style=\"height:0; width:0; display:none; border:0;\"></div>";
|
858 |
-
$ret_msg .= "<div id=\"wplc_chatbox\"></div>";
|
859 |
-
$ret_msg .= "<p style=\"text-align:center; font-size:11px;\">".__("Press ENTER to send your message", "wplivechat")."</p>";
|
860 |
-
$ret_msg .= "<p>";
|
861 |
-
$ret_msg .= "<input type=\"text\" name=\"wplc_chatmsg\" id=\"wplc_chatmsg\" value=\"\" />";
|
862 |
-
$ret_msg .= "<input type=\"hidden\" name=\"wplc_cid\" id=\"wplc_cid\" value=\"\" />";
|
863 |
-
$ret_msg .= "<input id=\"wplc_send_msg\" type=\"button\" value=\"".__("Send", "wplivechat")."\" style=\"display:none;\" />";
|
864 |
-
$ret_msg .= "</p>";
|
865 |
-
$ret_msg .= "</div>";
|
866 |
-
$ret_msg .= "</div>";
|
867 |
-
}
|
868 |
-
$ret_msg .= "</div>";
|
869 |
-
return json_encode($ret_msg);
|
870 |
Â
} else {
|
871 |
-
|
872 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
873 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
874 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
875 |
Â
}
|
876 |
Â
|
877 |
-
function wplc_output_box() {
|
878 |
-
$wplc_class = "";
|
879 |
-
$wplc_settings = get_option("WPLC_SETTINGS");
|
880 |
Â
|
881 |
-
if ($wplc_settings["wplc_settings_enabled"] == 2) {
|
882 |
-
return;
|
883 |
-
}
|
884 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
885 |
Â
if ($wplc_settings["wplc_settings_align"] == 1) {
|
886 |
Â
$original_pos = "bottom_left";
|
887 |
-
//$wplc_box_align = "left:100px; bottom:0px;";
|
888 |
-
$wplc_box_align = "bottom:0px;";
|
889 |
Â
} else if ($wplc_settings["wplc_settings_align"] == 2) {
|
890 |
Â
$original_pos = "bottom_right";
|
891 |
-
//$wplc_box_align = "right:100px; bottom:0px;";
|
892 |
-
$wplc_box_align = "bottom:0px;";
|
893 |
Â
} else if ($wplc_settings["wplc_settings_align"] == 3) {
|
894 |
Â
$original_pos = "left";
|
895 |
-
// $wplc_box_align = "left:0; bottom:100px;";
|
896 |
-
$wplc_box_align = " bottom:100px;";
|
897 |
Â
$wplc_class = "wplc_left";
|
898 |
Â
} else if ($wplc_settings["wplc_settings_align"] == 4) {
|
899 |
Â
$original_pos = "right";
|
900 |
-
// $wplc_box_align = "right:0; bottom:100px;";
|
901 |
-
$wplc_box_align = "bottom:100px;";
|
902 |
Â
$wplc_class = "wplc_right";
|
903 |
Â
}
|
904 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
905 |
Â
if ($wplc_settings["wplc_settings_fill"]) {
|
906 |
Â
$wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"];
|
907 |
Â
} else {
|
908 |
-
$wplc_settings_fill = "#
|
909 |
Â
}
|
910 |
Â
if ($wplc_settings["wplc_settings_font"]) {
|
911 |
Â
$wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"];
|
912 |
Â
} else {
|
913 |
Â
$wplc_settings_font = "#FFFFFF";
|
914 |
Â
}
|
Â
|
|
915 |
Â
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
if(function_exists('wplc_pro_activate')){
|
922 |
-
if(function_exists('wplc_return_animations')){
|
923 |
-
|
924 |
-
$animations = wplc_return_animations();
|
925 |
-
|
926 |
-
isset($animations['animation']) ? $wplc_animation = $animations['animation'] : $wplc_animation = 'animation-4';
|
927 |
-
isset($animations['starting_point']) ? $wplc_starting_point = $animations['starting_point'] : $wplc_starting_point = 'display: none;';
|
928 |
-
isset($animations['box_align']) ? $wplc_box_align = $animations['box_align'] : $wplc_box_align = '';
|
929 |
Â
|
930 |
-
} else {
|
931 |
-
|
932 |
-
}
|
933 |
-
} else {
|
934 |
-
|
935 |
-
$wplc_starting_point = '';
|
936 |
-
$wplc_animation = '';
|
937 |
-
|
938 |
-
if ($wplc_settings["wplc_settings_align"] == 1) {
|
939 |
-
$original_pos = "bottom_left";
|
940 |
-
$wplc_box_align = "left:100px; bottom:0px;";
|
941 |
-
} else if ($wplc_settings["wplc_settings_align"] == 2) {
|
942 |
-
$original_pos = "bottom_right";
|
943 |
-
$wplc_box_align = "right:100px; bottom:0px;";
|
944 |
-
} else if ($wplc_settings["wplc_settings_align"] == 3) {
|
945 |
-
$original_pos = "left";
|
946 |
-
$wplc_box_align = "left:0; bottom:100px;";
|
947 |
-
$wplc_class = "wplc_left";
|
948 |
-
} else if ($wplc_settings["wplc_settings_align"] == 4) {
|
949 |
-
$original_pos = "right";
|
950 |
-
$wplc_box_align = "right:0; bottom:100px;";
|
951 |
-
$wplc_class = "wplc_right";
|
952 |
-
}
|
953 |
Â
|
954 |
-
}
|
955 |
-
/* here */
|
956 |
-
?>
|
957 |
-
<div id="wp-live-chat" wplc_animation='<?php echo $wplc_animation; ?>' style="<?php echo $wplc_starting_point." ".$wplc_box_align; ?>; " class="<?php echo $wplc_class; ?> wplc_close" original_pos="<?php echo $original_pos; ?>" wplc-auto-pop-up="<?php if (isset($wplc_settings['wplc_auto_pop_up'])) { echo $wplc_settings['wplc_auto_pop_up']; } ?>" >
|
958 |
-
<?php
|
959 |
-
if (function_exists("wplc_register_pro_version")) {
|
960 |
-
wplc_pro_output_box();
|
961 |
-
} else {
|
962 |
-
?>
|
963 |
-
<div class="wp-live-chat-wraper">
|
964 |
-
<div id="wp-live-chat-header" style="background-color: <?php echo $wplc_settings_fill; ?> !important; color: <?php echo $wplc_settings_font; ?> !important; ">
|
965 |
-
<i id="wp-live-chat-minimize" class="fa fa-minus" style="display:none;" ></i>
|
966 |
-
<i id="wp-live-chat-close" class="fa fa-times" style="display:none;" ></i>
|
967 |
-
|
968 |
-
<div id="wp-live-chat-1" >
|
969 |
-
<div style="display:block; ">
|
970 |
-
<strong><?php _e("Questions?", "wplivechat") ?></strong> <?php _e("Chat with us", "wplivechat") ?>
|
971 |
-
</div>
|
972 |
-
</div>
|
973 |
-
</div>
|
974 |
Â
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
981 |
Â
|
982 |
-
if (isset($wplc_settings['wplc_loggedin_user_info']) && $wplc_settings['wplc_loggedin_user_info'] == 1) {
|
983 |
-
$wplc_use_loggedin_user_details = 1;
|
984 |
-
} else {
|
985 |
-
$wplc_use_loggedin_user_details = 0;
|
986 |
-
}
|
987 |
Â
|
988 |
-
|
989 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
990 |
Â
|
991 |
-
|
992 |
-
|
Â
|
|
Â
|
|
Â
|
|
993 |
Â
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1003 |
Â
|
1004 |
-
if (isset($wplc_settings['wplc_require_user_info']) && $wplc_settings['wplc_require_user_info'] == 1) {
|
1005 |
-
$wplc_ask_user_details = 1;
|
1006 |
-
} else {
|
1007 |
-
$wplc_ask_user_details = 0;
|
1008 |
-
}
|
1009 |
Â
|
1010 |
-
if ($wplc_ask_user_details == 1) {
|
1011 |
-
//Ask the user to enter name and email
|
1012 |
-
?>
|
1013 |
-
<input type="text" name="wplc_name" id="wplc_name" value="<?php echo $wplc_loggedin_user_name; ?>" placeholder="<?php _e("Name", "wplivechat"); ?>" />
|
1014 |
-
<input type="text" name="wplc_email" id="wplc_email" wplc_hide="0" value="<?php echo $wplc_loggedin_user_email; ?>" placeholder="<?php _e("Email", "wplivechat"); ?>" />
|
1015 |
-
<?php
|
1016 |
-
} else {
|
1017 |
-
//Dont ask the user
|
1018 |
-
echo '<div style="padding: 7px; text-align: center;">';
|
1019 |
-
if (isset($wplc_settings['wplc_user_alternative_text'])) {
|
1020 |
-
echo stripslashes($wplc_settings['wplc_user_alternative_text']);
|
1021 |
-
}
|
1022 |
-
echo '</div>';
|
1023 |
-
|
1024 |
-
$wplc_random_user_number = rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9);
|
1025 |
-
//$wplc_loggedin_user_email = $wplc_random_user_number."@".$wplc_random_user_number.".com";
|
1026 |
-
?>
|
1027 |
-
<input type="hidden" name="wplc_name" id="wplc_name" value="<?php if ($wplc_loggedin_user_name != '') { echo $wplc_loggedin_user_name; } else { echo 'user' . $wplc_random_user_number; } ?>" />
|
1028 |
-
<input type="hidden" name="wplc_email" id="wplc_email" wplc_hide="1" value="<?php if ($wplc_loggedin_user_email != '' && $wplc_loggedin_user_email != null) { echo $wplc_loggedin_user_email; } else { echo $wplc_random_user_number . '@' . $wplc_random_user_number . '.com'; } ?>" />
|
1029 |
-
<?php
|
1030 |
-
}
|
1031 |
-
?>
|
1032 |
-
<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;"/>
|
1033 |
-
</div>
|
1034 |
-
<div id="wp-live-chat-3" style="display:none;">
|
1035 |
-
<p><?php _e("Connecting you to a sales person. Please be patient.", "wplivechat") ?></p>
|
1036 |
-
</div>
|
1037 |
-
<div id="wp-live-chat-react" style="display:none;">
|
1038 |
-
<p><?php _e("Reactivating your previous chat...", "wplivechat") ?></p>
|
1039 |
-
</div>
|
1040 |
-
<div id="wp-live-chat-4" style="display:none;">
|
1041 |
-
<div id="wplc_sound_update" style='height:0; width:0; display:none; border:0;'></div>
|
1042 |
-
<div id="wplc_chatbox"></div>
|
1043 |
-
<p style="text-align:center; font-size:11px;"><?php _e("Press ENTER to send your message", "wplivechat") ?></p>
|
1044 |
-
<p>
|
1045 |
-
<input type="text" name="wplc_chatmsg" id="wplc_chatmsg" value="" />
|
1046 |
-
<input type="hidden" name="wplc_cid" id="wplc_cid" value="" />
|
1047 |
-
<input id="wplc_send_msg" type="button" value="<?php _e("Send", "wplivechat"); ?>" style="display:none;" />
|
1048 |
-
</p>
|
1049 |
-
</div>
|
1050 |
-
</div>
|
1051 |
-
<?php } ?>
|
1052 |
-
</div>
|
1053 |
-
<?php
|
1054 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1055 |
Â
}
|
1056 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1057 |
Â
function wplc_display_box() {
|
1058 |
Â
|
1059 |
Â
global $wplc_pro_version;
|
@@ -1069,9 +1417,7 @@ function wplc_display_box() {
|
|
1069 |
Â
$display_contents = 1;
|
1070 |
Â
}
|
1071 |
Â
|
1072 |
-
if(function_exists('
|
1073 |
-
$user_banned = wplc_is_user_banned();
|
1074 |
-
} else if (function_exists('wplc_is_user_banned')){
|
1075 |
Â
$user_banned = wplc_is_user_banned_basic();
|
1076 |
Â
} else {
|
1077 |
Â
$user_banned = 0;
|
@@ -1182,10 +1528,7 @@ function wplc_admin_display_chat($cid) {
|
|
1182 |
Â
"
|
1183 |
Â
);
|
1184 |
Â
foreach ($results as $result) {
|
1185 |
-
|
1186 |
-
$v_check = str_replace(".","",$wplc_version);
|
1187 |
-
if (intval($v_check) < 5014) { $from = $result->msgfrom; } else { $from = $result->from; }
|
1188 |
-
|
1189 |
Â
$msg = stripslashes($result->msg);
|
1190 |
Â
$msg_hist .= "$from: $msg<br />";
|
1191 |
Â
}
|
@@ -1199,9 +1542,40 @@ function wplc_admin_accept_chat($cid) {
|
|
1199 |
Â
|
1200 |
Â
add_action('admin_head', 'wplc_update_chat_statuses');
|
1201 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1202 |
Â
function wplc_superadmin_javascript() {
|
1203 |
Â
|
1204 |
-
if (isset($_GET['page']) && $_GET['page'] == 'wplivechat-menu') {
|
1205 |
Â
|
1206 |
Â
if (!isset($_GET['action'])) {
|
1207 |
Â
if (function_exists("wplc_register_pro_version")) {
|
@@ -1209,6 +1583,7 @@ function wplc_superadmin_javascript() {
|
|
1209 |
Â
} else {
|
1210 |
Â
wplc_admin_javascript();
|
1211 |
Â
}
|
Â
|
|
1212 |
Â
} // main page
|
1213 |
Â
else if (isset($_GET['action'])) {
|
1214 |
Â
if (function_exists("wplc_register_pro_version")) {
|
@@ -1222,30 +1597,12 @@ function wplc_superadmin_javascript() {
|
|
1222 |
Â
}
|
1223 |
Â
}
|
1224 |
Â
|
1225 |
-
|
Â
|
|
Â
|
|
1226 |
Â
?>
|
1227 |
Â
<script type="text/javascript">
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
var wplc_set_transient = null;
|
1232 |
-
|
1233 |
-
wplc_set_transient = setInterval(function () {
|
1234 |
-
wpcl_admin_set_transient();
|
1235 |
-
}, 60000);
|
1236 |
-
wpcl_admin_set_transient();
|
1237 |
-
function wpcl_admin_set_transient() {
|
1238 |
-
var data = {
|
1239 |
-
action: 'wplc_admin_set_transient',
|
1240 |
-
security: '<?php echo $ajax_nonce; ?>'
|
1241 |
-
|
1242 |
-
};
|
1243 |
-
jQuery.post(ajaxurl, data, function (response) {
|
1244 |
-
//console.log("wplc_admin_set_transient");
|
1245 |
-
});
|
1246 |
-
}
|
1247 |
-
|
1248 |
-
});
|
1249 |
Â
|
1250 |
Â
function wplc_desktop_notification() {
|
1251 |
Â
if (typeof Notification !== 'undefined') {
|
@@ -1267,454 +1624,73 @@ function wplc_superadmin_javascript() {
|
|
1267 |
Â
<?php
|
1268 |
Â
}
|
1269 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1270 |
Â
function wplc_admin_javascript() {
|
1271 |
Â
$ajax_nonce = wp_create_nonce("wplc");
|
1272 |
-
|
1273 |
Â
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
var data = {
|
1278 |
-
action: 'wplc_admin_long_poll',
|
1279 |
-
security: '<?php echo $ajax_nonce; ?>',
|
1280 |
-
wplc_list_visitors_data: false,
|
1281 |
-
wplc_update_admin_chat_table: false
|
1282 |
-
};
|
1283 |
-
var wplc_pending_refresh = null;
|
1284 |
-
var current_chat_ids = new Object();
|
1285 |
-
var chat_count = 0;
|
1286 |
-
var wplc_run = true;
|
1287 |
-
var ringer_cnt = 0;
|
1288 |
-
var orig_title = document.getElementsByTagName("title")[0].innerHTML;
|
1289 |
-
|
1290 |
-
var wplc_notification_icon_url = '<?php echo plugins_url('/images/wplc_notification_icon.png', __FILE__); ?>';
|
1291 |
Â
|
1292 |
-
|
1293 |
-
|
1294 |
-
for (key in obj) {
|
1295 |
-
if (obj.hasOwnProperty(key)) size++;
|
1296 |
-
}
|
1297 |
-
return size;
|
1298 |
-
};
|
1299 |
-
function wplc_notify_agent() {
|
1300 |
-
|
1301 |
-
var wplc_sounder = document.createElement("embed");
|
1302 |
-
wplc_sounder.src = '<?php echo plugins_url('/ring.wav', __FILE__); ?>';
|
1303 |
-
wplc_sounder.hidden = 'true';
|
1304 |
-
wplc_sounder.autostart = 'true';
|
1305 |
-
wplc_sounder.loop = 'false';
|
1306 |
-
wplc_sounder.type = 'audio/x-wav';
|
1307 |
-
var seconds = new Date().getTime() / 1000;
|
1308 |
-
wplc_sounder.id = 'wplc_s_'+seconds;
|
1309 |
Â
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
if (ringer_cnt <= 0) {
|
1314 |
-
wplc_desktop_notification();
|
1315 |
-
}
|
1316 |
-
ringer_cnt++;
|
1317 |
-
|
1318 |
-
if (ringer_cnt > 1) {
|
1319 |
-
clearInterval(wplc_pending_refresh);
|
1320 |
-
wplc_title_alerts4 = setTimeout(function () {
|
1321 |
-
document.title = orig_title;
|
1322 |
-
}, 4000);
|
1323 |
-
return;
|
1324 |
-
}
|
1325 |
Â
|
1326 |
-
|
1327 |
-
|
1328 |
-
document.title = "** CHAT REQUEST **";
|
1329 |
-
}, 2000);
|
1330 |
-
wplc_title_alerts4 = setTimeout(function () {
|
1331 |
-
document.title = orig_title;
|
1332 |
-
}, 4000);
|
1333 |
Â
|
Â
|
|
Â
|
|
Â
|
|
1334 |
Â
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
jQuery.ajax({
|
1343 |
-
url: wplc_ajaxurl,
|
1344 |
-
data: data,
|
1345 |
-
type: "POST",
|
1346 |
-
success: function (response) {
|
1347 |
-
|
1348 |
-
//Update your dashboard gauge
|
1349 |
-
if (response) {
|
1350 |
-
// console.log('Running');
|
1351 |
-
response = JSON.parse(response);
|
1352 |
-
//console.log(response);
|
1353 |
-
data["wplc_update_admin_chat_table"] = response['wplc_update_admin_chat_table'];
|
1354 |
-
//console.log(response['visitors']);
|
1355 |
-
|
1356 |
-
if (response['action'] === "wplc_update_chat_list") {
|
1357 |
-
wplc_handle_chat_output(response['wplc_update_admin_chat_table']);
|
1358 |
-
if (response['pending'] === true) {
|
1359 |
-
|
1360 |
-
wplc_notify_agent();
|
1361 |
-
wplc_pending_refresh = setInterval(function () {
|
1362 |
-
|
1363 |
-
wplc_notify_agent();
|
1364 |
-
}, 5000);
|
1365 |
-
} else {
|
1366 |
-
//console.log("end");
|
1367 |
-
clearInterval(wplc_pending_refresh);
|
1368 |
-
ringer_cnt = 0;
|
1369 |
-
}
|
1370 |
-
}
|
1371 |
-
if (response['action'] === "wplc_update_admin_chat") {
|
1372 |
-
jQuery("#wplc_admin_chat_area").html(response['wplc_update_admin_chat_table']);
|
1373 |
-
if (response['pending'] === true) {
|
1374 |
-
|
1375 |
-
var orig_title = document.getElementsByTagName("title")[0].innerHTML;
|
1376 |
-
var ringer_cnt = 0;
|
1377 |
-
wplc_pending_refresh = setInterval(function () {
|
1378 |
-
//console.log("chat request");
|
1379 |
-
|
1380 |
-
if (ringer_cnt <= 0) {
|
1381 |
-
wplc_desktop_notification();
|
1382 |
-
}
|
1383 |
-
|
1384 |
-
ringer_cnt++;
|
1385 |
-
|
1386 |
-
if (ringer_cnt > 1) {
|
1387 |
-
clearInterval(wplc_pending_refresh);
|
1388 |
-
wplc_title_alerts4 = setTimeout(function () {
|
1389 |
-
document.title = orig_title;
|
1390 |
-
}, 4000);
|
1391 |
-
return;
|
1392 |
-
}
|
1393 |
-
|
1394 |
-
document.title = "** CHAT REQUEST **";
|
1395 |
-
wplc_title_alerts2 = setTimeout(function () {
|
1396 |
-
document.title = "** CHAT REQUEST **";
|
1397 |
-
}, 2000);
|
1398 |
-
wplc_title_alerts4 = setTimeout(function () {
|
1399 |
-
document.title = orig_title;
|
1400 |
-
}, 4000);
|
1401 |
-
|
1402 |
-
document.getElementById("wplc_sound").innerHTML = "<embed src='<?php echo plugins_url('/ring.wav', __FILE__); ?>' hidden=true autostart=true loop=false>";
|
1403 |
-
|
1404 |
-
// var wplc_notify_sound = '<?php echo plugins_url('/ring.wav', __FILE__); ?>';
|
1405 |
-
// var wplc_notify_chat = new Audio(wplc_notify_sound);
|
1406 |
-
//
|
1407 |
-
// if(ringer_cnt < 5){
|
1408 |
-
// wplc_notify_chat.play();
|
1409 |
-
// }
|
1410 |
-
|
1411 |
-
}, 5000);
|
1412 |
-
} else {
|
1413 |
-
//console.log("end");
|
1414 |
-
clearInterval(wplc_pending_refresh);
|
1415 |
-
}
|
1416 |
-
}
|
1417 |
-
|
1418 |
-
}
|
1419 |
-
},
|
1420 |
-
error: function (jqXHR, exception) {
|
1421 |
-
if (jqXHR.status == 404) {
|
1422 |
-
if( window.console ) { console.log('Requested page not found. [404]'); }
|
1423 |
-
wplc_run = false;
|
1424 |
-
} else if (jqXHR.status == 500) {
|
1425 |
-
if( window.console ) { console.log('Internal Server Error [500].'); }
|
1426 |
-
wplc_run = false;
|
1427 |
-
} else if (exception === 'parsererror') {
|
1428 |
-
if( window.console ) { console.log('Requested JSON parse failed.'); }
|
1429 |
-
wplc_run = false;
|
1430 |
-
} else if (exception === 'abort') {
|
1431 |
-
if( window.console ) { console.log('Ajax request aborted.'); }
|
1432 |
-
wplc_run = false;
|
1433 |
-
} else {
|
1434 |
-
if( window.console ) { console.log('Uncaught Error.\n' + jqXHR.responseText); }
|
1435 |
-
wplc_run = false;
|
1436 |
-
}
|
1437 |
-
},
|
1438 |
-
complete: function (response) {
|
1439 |
-
//console.log(wplc_run);
|
1440 |
-
if (wplc_run) {
|
1441 |
-
setTimeout(function () {
|
1442 |
-
wplc_call_to_server(data);
|
1443 |
-
}, 1500);
|
1444 |
-
}
|
1445 |
-
},
|
1446 |
-
timeout: 120000
|
1447 |
-
});
|
1448 |
-
};
|
1449 |
-
|
1450 |
-
|
1451 |
-
function wplc_handle_chat_output(response) {
|
1452 |
-
var obj = jQuery.parseJSON(response);
|
1453 |
-
if (obj === false || obj === null) {
|
1454 |
-
jQuery("#wplc_chat_ul").html("");
|
1455 |
-
current_chat_ids = {};
|
1456 |
-
wplc_handle_count_change(0);
|
1457 |
-
|
1458 |
-
} else {
|
1459 |
-
var size = Object.size(current_chat_ids);
|
1460 |
-
wplc_handle_count_change(size);
|
1461 |
-
if (size < 1) {
|
1462 |
-
/* no prior visitor information, update without any checks */
|
1463 |
-
current_chat_ids = obj["ids"];
|
1464 |
-
wplc_update_chat_list(false,obj);
|
1465 |
-
} else {
|
1466 |
-
/* we have had visitor information prior to this call, update systematically */
|
1467 |
-
if (obj === null) {
|
1468 |
-
jQuery("#wplc_chat_ul").html("");
|
1469 |
-
} else {
|
1470 |
-
current_chat_ids = obj["ids"];
|
1471 |
-
wplc_update_chat_list(true,obj);
|
1472 |
-
}
|
1473 |
-
}
|
1474 |
-
|
1475 |
-
|
1476 |
-
}
|
1477 |
-
var size = Object.size(current_chat_ids);
|
1478 |
-
wplc_handle_count_change(size);
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
}
|
1483 |
-
function wplc_handle_count_change(qty) {
|
1484 |
-
if (qty > chat_count) {
|
1485 |
-
jQuery(".wplc_chat_vis_count_box").animate({backgroundColor: '#B3D24B'}, 300);
|
1486 |
-
jQuery(".wplc_vis_online").html(qty);
|
1487 |
-
jQuery(".wplc_chat_vis_count_box").animate({backgroundColor: 'white'}, 200);
|
1488 |
-
} else if (qty === chat_count) {
|
1489 |
-
jQuery(".wplc_vis_online").html(qty);
|
1490 |
-
} else {
|
1491 |
-
jQuery(".wplc_chat_vis_count_box").animate({backgroundColor: '#E1734A'}, 300);
|
1492 |
-
jQuery(".wplc_vis_online").html(qty);
|
1493 |
-
jQuery(".wplc_chat_vis_count_box").animate({backgroundColor: 'white'}, 200);
|
1494 |
-
}
|
1495 |
-
chat_count = qty;
|
1496 |
-
|
1497 |
-
}
|
1498 |
-
|
1499 |
-
|
1500 |
-
function wplc_get_status_name(status) {
|
1501 |
-
if (status === 1) {
|
1502 |
-
return "<span class='wplc_status_box wplc_status_"+status+"'>complete</span>";
|
1503 |
-
}
|
1504 |
-
if (status === 2) {
|
1505 |
-
return "<span class='wplc_status_box wplc_status_"+status+"'>pending</span>";
|
1506 |
-
}
|
1507 |
-
if (status === 3) {
|
1508 |
-
return "<span class='wplc_status_box wplc_status_"+status+"'>active</span>";
|
1509 |
-
}
|
1510 |
-
if (status === 4) {
|
1511 |
-
return "<span class='wplc_status_box wplc_status_"+status+"'>deleted</span>";
|
1512 |
-
}
|
1513 |
-
if (status === 5) {
|
1514 |
-
return "<span class='wplc_status_box wplc_status_"+status+"'>browsing</span>";
|
1515 |
-
}
|
1516 |
-
if (status === 6) {
|
1517 |
-
return "<span class='wplc_status_box wplc_status_"+status+"'>requesting chat</span>";
|
1518 |
-
}
|
1519 |
-
if (status === 8){
|
1520 |
-
return "<span class='wplc_status_box wplc_status_"+status+"'>chat ended</span></span>";
|
1521 |
-
}
|
1522 |
-
if (status === 9){
|
1523 |
-
return "<span class='wplc_status_box wplc_status_"+status+"'>chat closed</span>";
|
1524 |
-
}
|
1525 |
-
if (status === 10){
|
1526 |
-
return "<span class='wplc_status_box wplc_status_8'>minimized</span>";
|
1527 |
-
}
|
1528 |
-
}
|
1529 |
-
function wplc_get_type_box(type) {
|
1530 |
-
if (type === "New") {
|
1531 |
-
return "<span class='wplc_status_box wplc_type_new'>New</span>";
|
1532 |
-
}
|
1533 |
-
if (type === "Returning") {
|
1534 |
-
return "<span class='wplc_status_box wplc_type_returning'>Returning</span>";
|
1535 |
-
}
|
1536 |
-
}
|
1537 |
-
|
1538 |
-
function wplc_create_chat_ul_element_after_eating_vindaloo(obj,key) {
|
1539 |
-
|
1540 |
-
var v_img = obj[key]['image'];
|
1541 |
-
var v_name = obj[key]['name'];
|
1542 |
-
var v_email = obj[key]['email'];
|
1543 |
-
var v_browser = obj[key]['data']['browser'];
|
1544 |
-
var v_browsing = obj[key]['data']['browsing_nice_url'];
|
1545 |
-
var v_browsing_url = obj[key]['data']['browsing'];
|
1546 |
-
var v_status = obj[key]['status'];
|
1547 |
-
var v_time = obj[key]['timestamp'];
|
1548 |
-
var v_type = obj[key]['type'];
|
1549 |
-
var v_action = obj[key]['action'];
|
1550 |
-
var v_status_string = wplc_get_status_name(parseInt(v_status));
|
1551 |
-
var v_ip_address = obj[key]['data']['ip'];
|
1552 |
-
|
1553 |
-
var v_vis_html = "<span class='wplc_headerspan_v'>"+v_name+"</span>";
|
1554 |
-
var v_nr_html = "<span class='wplc_headerspan_nr'><span class='browser-tag'>"+v_browser+"</span> "+wplc_get_type_box(v_type)+"</span>";
|
1555 |
-
var v_time_html = "<span class='wplc_headerspan_t'><span class='wplc_status_box wplc_status_1'>"+v_time+"</span></span>";
|
1556 |
-
var v_nr_data = "<span class='wplc_headerspan_d'><span class='wplc-sub-item-header'>Page:</span> <a href='"+v_browsing_url+"' target='_BLANK'>"+v_browsing+"</a><br /><span class='wplc-sub-item-header'>Email:</span> <a href='mailto:"+v_email+"' target='_BLANK' class='wplc-sub-item-email-string'>"+v_email+"</a><br/><span class='wplc-sub-item-header'>IP: </span>"+v_ip_address+"</span>";
|
1557 |
-
var v_nr_status_html = "<span class='wplc_headerspan_s'>"+v_status_string+"</span>";
|
1558 |
-
var v_nr_action_html = "<span class='wplc_headerspan_a'>"+v_action+"</span>";
|
1559 |
-
|
1560 |
-
var wplc_v_html = "\
|
1561 |
-
<ul id='wplc_p_ul_"+key+"' class='wplc_p_cul' cid='"+key+"'>\n\
|
1562 |
-
<li>"+v_vis_html+"</li>\n\
|
1563 |
-
<li>"+v_time_html+"</li>\n\
|
1564 |
-
<li>"+v_nr_html+"</li>\n\
|
1565 |
-
<li>"+v_nr_data+"</li>\n\
|
1566 |
-
<li>"+v_nr_status_html+"</li>\n\
|
1567 |
-
<li>"+v_nr_action_html+"</li>\n\
|
1568 |
-
<ul>";
|
1569 |
-
return wplc_v_html;
|
1570 |
-
|
1571 |
-
|
1572 |
-
}
|
1573 |
-
|
1574 |
-
function wplc_update_chat_list(update,obj) {
|
1575 |
-
|
1576 |
-
/* first compare existing elements with the elements on the page */
|
1577 |
-
if (update === false) {
|
1578 |
-
jQuery( ".wplc_chat_ul" ).html("");
|
1579 |
-
|
1580 |
-
for (var key in obj) {
|
1581 |
-
if (obj.hasOwnProperty(key) && key !== "ids") {
|
1582 |
-
wplc_v_html = wplc_create_chat_ul_element_after_eating_vindaloo(obj,key);
|
1583 |
-
jQuery( "#wplc_chat_ul" ).append(wplc_v_html).hide().fadeIn(2000);
|
1584 |
-
|
1585 |
-
}
|
1586 |
-
}
|
1587 |
-
current_chat_ids = obj["ids"];
|
1588 |
-
|
1589 |
-
} else {
|
1590 |
-
|
1591 |
-
for (var key in current_chat_ids) {
|
1592 |
-
current_id = key;
|
1593 |
-
if (document.getElementById("wplc_p_ul_"+current_id) !== null) {
|
1594 |
-
/* element is already there */
|
1595 |
-
/* update element */
|
1596 |
-
if (typeof obj[current_id] !== "undefined") { /* if this check isnt here, it will throw an error. This check is here incase the item has been deleted. If it has, it will be handled futher down */
|
1597 |
-
jQuery("#wplc_p_ul_"+current_id).remove();
|
1598 |
-
wplc_v_html = wplc_create_chat_ul_element_after_eating_vindaloo(obj,current_id);
|
1599 |
-
jQuery( "#wplc_chat_ul" ).append(wplc_v_html);
|
1600 |
-
//jQuery( ".wplc_chats_container" ).append(obj[current_id]['content']);
|
1601 |
-
}
|
1602 |
-
|
1603 |
-
|
1604 |
-
} else {
|
1605 |
-
jQuery("#nifty_c_none").hide();
|
1606 |
-
/* new element to be created */
|
1607 |
-
if (typeof obj[current_id] !== "undefined") { /* if this check isnt here, it will throw an error. This check is here incase the item has been deleted. If it has, it will be handled futher down */
|
1608 |
-
|
1609 |
-
wplc_v_html = wplc_create_chat_ul_element_after_eating_vindaloo(obj,current_id);
|
1610 |
-
jQuery( "#wplc_chat_ul" ).append(wplc_v_html);
|
1611 |
-
|
1612 |
-
jQuery("#wplc_p_ul_"+current_id).hide().fadeIn(2000);
|
1613 |
-
|
1614 |
-
}
|
1615 |
-
}
|
1616 |
-
|
1617 |
-
|
1618 |
-
}
|
1619 |
-
|
1620 |
-
}
|
1621 |
-
|
1622 |
-
/* compare new elements to old elements and delete where neccessary */
|
1623 |
-
|
1624 |
-
|
1625 |
-
jQuery(".wplc_p_cul").each(function(n, i) {
|
1626 |
-
var cid = jQuery(this).attr("cid");
|
1627 |
-
if (typeof cid !== "undefined") {
|
1628 |
-
if (typeof current_chat_ids[cid] !== "undefined") { /* element still there dont delete */ }
|
1629 |
-
else {
|
1630 |
-
jQuery("#wplc_p_ul_"+cid).fadeOut(2000).delay(2000).remove();
|
1631 |
-
|
1632 |
-
}
|
1633 |
-
var size = Object.size(current_chat_ids);
|
1634 |
-
wplc_handle_count_change(size);
|
1635 |
-
}
|
1636 |
-
// do something with it
|
1637 |
-
});
|
1638 |
-
if(jQuery('.wplc_p_cul').length < 1) {
|
1639 |
-
wplc_handle_count_change(0);
|
1640 |
-
current_chat_ids = {};
|
1641 |
-
}
|
1642 |
-
|
1643 |
-
|
1644 |
-
|
1645 |
-
|
1646 |
-
|
1647 |
-
}
|
1648 |
-
|
1649 |
-
|
1650 |
-
jQuery(document).ready(function () {
|
1651 |
-
jQuery('body').on("click", "a", function (event) {
|
1652 |
-
if (jQuery(this).hasClass('wplc_open_chat')) {
|
1653 |
-
if (event.preventDefault) {
|
1654 |
-
event.preventDefault();
|
1655 |
-
} else {
|
1656 |
-
event.returnValue = false;
|
1657 |
-
}
|
1658 |
-
window.open(jQuery(this).attr("href"), jQuery(this).attr("window-title"), "width=800,height=600,scrollbars=yes", false);
|
1659 |
-
}
|
1660 |
-
});
|
1661 |
-
|
1662 |
-
jQuery('body').on("click", "#wplc_close_ftt", function (event) {
|
1663 |
-
jQuery("#wplcftt").fadeOut(1000);
|
1664 |
-
var data = {
|
1665 |
-
action: 'wplc_hide_ftt',
|
1666 |
-
security: '<?php echo $ajax_nonce; ?>',
|
1667 |
-
};
|
1668 |
-
jQuery.ajax({
|
1669 |
-
url: wplc_ajaxurl,
|
1670 |
-
data: data,
|
1671 |
-
type: "POST",
|
1672 |
-
success: function (response) {
|
1673 |
-
|
1674 |
-
}
|
1675 |
-
});
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
|
1683 |
-
|
1684 |
-
|
1685 |
-
|
1686 |
-
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
});
|
1692 |
-
|
1693 |
-
wplc_call_to_server(data);
|
1694 |
-
});
|
1695 |
-
|
1696 |
Â
|
1697 |
Â
|
1698 |
-
</script>
|
1699 |
-
<?php
|
1700 |
Â
}
|
1701 |
Â
|
1702 |
Â
function wplc_admin_menu_layout() {
|
1703 |
Â
do_action("wplc_hook_admin_menu_layout");
|
1704 |
Â
if (function_exists("wplc_register_pro_version")) {
|
1705 |
Â
global $wplc_pro_version;
|
1706 |
-
$
|
1707 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1708 |
Â
?>
|
1709 |
Â
<div class='error below-h1'>
|
1710 |
Â
|
1711 |
-
<
|
1712 |
Â
<p><?php _e("You are using an outdated version of <strong>WP Live Chat Support Pro</strong>.", "wplivechat") ?></p>
|
1713 |
Â
<p>
|
1714 |
Â
<strong><?php _e("Please update to the latest version of WP Live Chat Support Pro", 'wplivechat'); ?>
|
1715 |
-
<a href="http://wp-livechat.com/get-updated-version/" target=\"_BLANK\"> <?php _e("Version 5.1
|
1716 |
Â
<?php _e("to ensure everything is working correctly.", "wplivechat"); ?>
|
1717 |
-
<?php _e("We have addressed a critical bug in the latest basic version which requires the pro version to be updated.", "wplivechat"); ?>
|
1718 |
Â
</strong>
|
1719 |
Â
</p>
|
1720 |
Â
<p><?php _e("You can update your plugin <a href='./update-core.php'>here</a>, <a href='./plugins.php'>here</a> or <a href='http://wp-livechat.com/get-updated-version/' target='_BLANK'>here</a>.", "wplivechat") ?></strong></p>
|
@@ -1723,9 +1699,9 @@ function wplc_admin_menu_layout() {
|
|
1723 |
Â
</div>
|
1724 |
Â
<?php
|
1725 |
Â
}
|
1726 |
-
|
1727 |
Â
}
|
1728 |
Â
if (get_option("WPLC_FIRST_TIME") == true && !class_exists("APC_Object_Cache")) {
|
Â
|
|
1729 |
Â
update_option('WPLC_FIRST_TIME', false);
|
1730 |
Â
include 'includes/welcome_page.php';
|
1731 |
Â
} else {
|
@@ -1760,8 +1736,53 @@ function wplc_first_time_tutorial() {
|
|
1760 |
Â
<?php }
|
1761 |
Â
}
|
1762 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1763 |
Â
function wplc_admin_menu_layout_display() {
|
1764 |
Â
if(current_user_can('wplc_ma_agent') || current_user_can('manage_options')){
|
Â
|
|
1765 |
Â
|
1766 |
Â
wplc_stats("chat_dashboard");
|
1767 |
Â
|
@@ -1794,19 +1815,18 @@ function wplc_admin_menu_layout_display() {
|
|
1794 |
Â
</div>
|
1795 |
Â
|
1796 |
Â
<div id="wplc_sound"></div>
|
Â
|
|
1797 |
Â
|
1798 |
Â
<div id="wplc_admin_chat_holder">
|
1799 |
Â
<div id='wplc_admin_chat_info_new'>
|
1800 |
Â
<div class='wplc_chat_vis_count_box'>
|
Â
|
|
1801 |
Â
<span class='wplc_vis_online'>0</span>
|
1802 |
Â
<span style='text-transform:uppercase;'>
|
1803 |
Â
<?php _e("Visitors online","wplivechat"); ?>
|
1804 |
Â
</span>
|
1805 |
-
|
1806 |
-
|
1807 |
-
<span class='wplc_agents_online'>1</span>
|
1808 |
-
<a href='javascript:void(0);'><?php _e("Agent(s) online","wplivechat"); ?></a>
|
1809 |
-
</p>
|
1810 |
Â
|
1811 |
Â
</div>
|
1812 |
Â
|
@@ -1826,17 +1846,7 @@ function wplc_admin_menu_layout_display() {
|
|
1826 |
Â
|
1827 |
Â
|
1828 |
Â
</ul>
|
1829 |
-
|
1830 |
-
<?php _e("With the Pro add-on of WP Live Chat Support, you can", "wplivechat"); ?>
|
1831 |
-
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=initiate1" title="<?php _e("see who's online and initiate chats", "wplivechat"); ?>" target=\"_BLANK\">
|
1832 |
-
<?php _e("initiate chats", "wplivechat"); ?>
|
1833 |
-
</a> <?php _e("with your online visitors with the click of a button.", "wplivechat"); ?>
|
1834 |
-
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=initiate2" title="<?php _e("Buy the Pro add-on now.", "wplivechat"); ?>" target=\"_BLANK\">
|
1835 |
-
<strong>
|
1836 |
-
<?php _e("Buy the Pro add-on now.", "wplivechat"); ?>
|
1837 |
-
</strong>
|
1838 |
-
</a>
|
1839 |
-
</p>
|
1840 |
Â
</div>
|
1841 |
Â
|
1842 |
Â
</div>
|
@@ -1848,22 +1858,52 @@ function wplc_admin_menu_layout_display() {
|
|
1848 |
Â
|
1849 |
Â
<?php
|
1850 |
Â
} else {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1851 |
Â
if ($_GET['action'] == 'ac') {
|
1852 |
-
|
1853 |
-
if (function_exists('wplc_ma_register')) {
|
1854 |
-
wplc_ma_update_agent_id(sanitize_text_field($_GET['cid']), sanitize_text_field($_GET['agent_id']));
|
1855 |
-
}
|
1856 |
-
if (function_exists("wplc_register_pro_version")) {
|
1857 |
-
wplc_pro_draw_chat_area(sanitize_text_field($_GET['cid']));
|
1858 |
-
} else {
|
1859 |
-
wplc_draw_chat_area(sanitize_text_field($_GET['cid']));
|
1860 |
-
}
|
1861 |
Â
}
|
Â
|
|
1862 |
Â
}
|
1863 |
Â
}
|
1864 |
Â
}
|
1865 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1866 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1867 |
Â
|
1868 |
Â
function wplc_draw_chat_area($cid) {
|
1869 |
Â
|
@@ -1877,6 +1917,8 @@ function wplc_draw_chat_area($cid) {
|
|
1877 |
Â
LIMIT 1
|
1878 |
Â
"
|
1879 |
Â
);
|
Â
|
|
Â
|
|
1880 |
Â
?>
|
1881 |
Â
<style>
|
1882 |
Â
|
@@ -1887,70 +1929,79 @@ function wplc_draw_chat_area($cid) {
|
|
1887 |
Â
|
1888 |
Â
</style>
|
1889 |
Â
<?php
|
1890 |
-
|
1891 |
-
|
1892 |
-
|
1893 |
-
|
1894 |
-
|
1895 |
-
|
1896 |
-
|
1897 |
-
|
1898 |
-
|
1899 |
-
|
1900 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1901 |
Â
|
1902 |
-
|
1903 |
-
$user_ip = __('IP Address not recorded', 'wplivechat');
|
1904 |
-
} else {
|
1905 |
-
$user_ip = "<a href='http://www.ip-adress.com/ip_tracer/" . $user_ip . "' title='".__('Whois for' ,'wplivechat')." ".$user_ip."'>".$user_ip."</a>";
|
1906 |
-
}
|
1907 |
-
|
1908 |
-
echo "<h2>$status " . __('Chat with', 'wplivechat') . " " . $result->name . "</h2>";
|
1909 |
-
echo "<style>#adminmenuwrap { display:none; } #adminmenuback { display:none; } #wpadminbar { display:none; } #wpfooter { display:none; } .update-nag { display:none; }</style>";
|
1910 |
-
|
1911 |
-
echo "<div class=\"end_chat_div\"><a href=\"javascript:void(0);\" class=\"wplc_admin_close_chat button\" id=\"wplc_admin_close_chat\">" . __("End chat", "wplivechat") . "</a></div>";
|
1912 |
-
|
1913 |
-
echo "<div id='admin_chat_box'>";
|
1914 |
-
|
1915 |
-
echo"<div class='admin_chat_box'><div class='admin_chat_box_inner' id='admin_chat_box_area_" . $result->id . "'>" . wplc_return_chat_messages($cid) . "</div><div class='admin_chat_box_inner_bottom'>" . wplc_return_chat_response_box($cid) . "</div></div>";
|
1916 |
-
echo "<div class='admin_visitor_info'>";
|
1917 |
-
do_action("wplc_hook_admin_visitor_info_display_before",$cid);
|
1918 |
-
echo " <div style='float:left; width:100px;'><img src=\"//www.gravatar.com/avatar/" . md5($result->email) . "\" class=\"admin_chat_img\" /></div>";
|
1919 |
-
echo " <div style='float:left;'>";
|
1920 |
-
|
1921 |
-
echo " <div class='admin_visitor_info_box1'>";
|
1922 |
-
echo " <span class='admin_chat_name'>" . $result->name . "</span>";
|
1923 |
-
echo " <span class='admin_chat_email'>" . $result->email . "</span>";
|
1924 |
-
echo " </div>";
|
1925 |
-
echo " </div>";
|
1926 |
-
|
1927 |
-
echo " <div class='admin_visitor_advanced_info'>";
|
1928 |
-
echo " <strong>" . __("Site Info", "wplivechat") . "</strong>";
|
1929 |
-
echo " <hr />";
|
1930 |
-
echo " <span class='part1'>" . __("Chat initiated on:", "wplivechat") . "</span> <span class='part2'>" . $result->url . "</span>";
|
1931 |
-
echo " </div>";
|
1932 |
-
|
1933 |
-
echo " <div class='admin_visitor_advanced_info'>";
|
1934 |
-
echo " <strong>" . __("Advanced Info", "wplivechat") . "</strong>";
|
1935 |
-
echo " <hr />";
|
1936 |
-
echo " <span class='part1'>" . __("Browser:", "wplivechat") . "</span><span class='part2'> $browser <img src='" . $wplc_basic_plugin_url . "/images/$browser_image' alt='$browser' title='$browser' /><br />";
|
1937 |
-
echo " <span class='part1'>" . __("IP Address:", "wplivechat") . "</span><span class='part2'> ".$user_ip;
|
1938 |
-
echo " </div>";
|
1939 |
-
|
1940 |
-
echo " <div id=\"wplc_sound_update\"></div>";
|
1941 |
-
do_action("wplc_hook_admin_visitor_info_display_after",$cid);
|
1942 |
-
echo "</div>";
|
1943 |
Â
|
1944 |
-
|
1945 |
-
echo "<div class='admin_chat_quick_controls'>";
|
1946 |
-
echo " <p style=\"text-align:left; font-size:11px;\">" . __('Press ENTER to send your message', 'wplivechat') . "</p>";
|
1947 |
-
echo " " . __("Assign Quick Response", "wplivechat") . " <select name='wplc_macros_select' class='wplc_macros_select' disabled><option>" . __('Select', 'wplivechat') . "</option></select> <a href='http://wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=quick_resposnes' title='" . __('Add Quick Responses to your Live Chat', 'wplivechat') . "' target='_BLANK'>" . __("Pro version only", "wplivechat") . "</a>";
|
1948 |
-
echo " </div>";
|
1949 |
-
echo "</div>";
|
1950 |
Â
|
1951 |
-
|
1952 |
-
|
1953 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1954 |
Â
}
|
1955 |
Â
|
1956 |
Â
function wplc_return_chat_response_box($cid) {
|
@@ -1964,12 +2015,35 @@ function wplc_return_chat_response_box($cid) {
|
|
1964 |
Â
|
1965 |
Â
function wplc_return_admin_chat_javascript($cid) {
|
1966 |
Â
$ajax_nonce = wp_create_nonce("wplc");
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1967 |
Â
if (function_exists("wplc_pro_get_admin_picture")) {
|
1968 |
-
|
1969 |
-
|
1970 |
-
|
1971 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1972 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1973 |
Â
|
1974 |
Â
$wplc_settings = get_option("WPLC_SETTINGS");
|
1975 |
Â
|
@@ -1988,244 +2062,33 @@ function wplc_return_admin_chat_javascript($cid) {
|
|
1988 |
Â
} else {
|
1989 |
Â
$wplc_user_email_address = "";
|
1990 |
Â
}
|
1991 |
-
?>
|
1992 |
-
<script type="text/javascript">
|
1993 |
-
/* var wplc_ajaxurl = '<?php echo plugins_url('/ajax.php', __FILE__); ?>'; */
|
1994 |
-
var wplc_ajaxurl = ajaxurl;
|
1995 |
-
var chat_status = 3;
|
1996 |
-
var cid = <?php echo $cid; ?>;
|
1997 |
-
var data = {
|
1998 |
-
action: 'wplc_admin_long_poll_chat',
|
1999 |
-
security: '<?php echo $ajax_nonce; ?>',
|
2000 |
-
cid: cid,
|
2001 |
-
chat_status: chat_status
|
2002 |
-
};
|
2003 |
-
var wplc_run = true;
|
2004 |
-
var wplc_display_name = '<?php echo $display_name; ?>';
|
2005 |
-
var wplc_enable_ding = '<?php echo $enable_ding; ?>';
|
2006 |
-
var wplc_user_email_address = '<?php echo $wplc_user_email_address; ?>';
|
2007 |
-
|
2008 |
-
function wplc_call_to_server_admin_chat(data) {
|
2009 |
-
jQuery.ajax({
|
2010 |
-
url: wplc_ajaxurl,
|
2011 |
-
data: data,
|
2012 |
-
security: '<?php echo $ajax_nonce; ?>',
|
2013 |
-
type: "POST",
|
2014 |
-
success: function (response) {
|
2015 |
-
if (response) {
|
2016 |
-
|
2017 |
-
response = JSON.parse(response);
|
2018 |
-
if (response['action'] === "wplc_update_chat_status") {
|
2019 |
-
data['chat_status'] = response['chat_status'];
|
2020 |
-
wplc_display_chat_status_update(response['chat_status'], cid);
|
2021 |
-
}
|
2022 |
-
if (response['action'] === "wplc_new_chat_message") {
|
2023 |
-
current_len = jQuery("#admin_chat_box_area_" + cid).html().length;
|
2024 |
-
jQuery("#admin_chat_box_area_" + cid).append(response['chat_message']);
|
2025 |
-
new_length = jQuery("#admin_chat_box_area_" + cid).html().length;
|
2026 |
-
if (current_len < new_length) {
|
2027 |
-
if (typeof wplc_enable_ding !== 'undefined' && wplc_enable_ding === "1") {
|
2028 |
-
document.getElementById("wplc_sound_update").innerHTML = "<embed src='<?php echo plugins_url('/ding.mp3', __FILE__); ?>' hidden=true autostart=true loop=false>";
|
2029 |
-
}
|
2030 |
-
}
|
2031 |
-
var height = jQuery('#admin_chat_box_area_' + cid)[0].scrollHeight;
|
2032 |
-
jQuery('#admin_chat_box_area_' + cid).scrollTop(height);
|
2033 |
-
}
|
2034 |
-
if (response['action'] === "wplc_user_open_chat") {
|
2035 |
-
data['action_2'] = "";
|
2036 |
-
<?php $url = admin_url('admin.php?page=wplivechat-menu&action=ac&cid=' . $cid); ?>
|
2037 |
-
window.location.replace('<?php echo $url; ?>');
|
2038 |
-
}
|
2039 |
-
|
2040 |
-
}
|
2041 |
-
},
|
2042 |
-
error: function (jqXHR, exception) {
|
2043 |
-
if (jqXHR.status == 404) {
|
2044 |
-
console.log('Requested page not found. [404]');
|
2045 |
-
wplc_run = false;
|
2046 |
-
} else if (jqXHR.status == 500) {
|
2047 |
-
console.log('Internal Server Error [500].');
|
2048 |
-
wplc_run = false;
|
2049 |
-
} else if (exception === 'parsererror') {
|
2050 |
-
console.log('Requested JSON parse failed.');
|
2051 |
-
wplc_run = false;
|
2052 |
-
} else if (exception === 'abort') {
|
2053 |
-
console.log('Ajax request aborted.');
|
2054 |
-
wplc_run = false;
|
2055 |
-
} else {
|
2056 |
-
console.log('Uncaught Error.\n' + jqXHR.responseText);
|
2057 |
-
wplc_run = false;
|
2058 |
-
}
|
2059 |
-
},
|
2060 |
-
complete: function (response) {
|
2061 |
-
//console.log(wplc_run);
|
2062 |
-
if (wplc_run) {
|
2063 |
-
wplc_call_to_server_admin_chat(data);
|
2064 |
-
}
|
2065 |
-
},
|
2066 |
-
timeout: 120000
|
2067 |
-
});
|
2068 |
-
}
|
2069 |
-
;
|
2070 |
-
|
2071 |
-
function wplc_display_chat_status_update(new_chat_status, cid) {
|
2072 |
-
if (new_chat_status === "0") {
|
2073 |
-
} else {
|
2074 |
-
if (chat_status !== new_chat_status) {
|
2075 |
-
previous_chat_status = chat_status;
|
2076 |
-
//console.log("previous chat status: "+previous_chat_status);
|
2077 |
-
chat_status = new_chat_status;
|
2078 |
-
//console.log("chat status: "+chat_status);
|
2079 |
-
|
2080 |
-
if ((previous_chat_status === "2" && chat_status === "3") || (previous_chat_status === "5" && chat_status === "3")) {
|
2081 |
-
jQuery("#admin_chat_box_area_" + cid).append("<em><?php _e("User has opened the chat window", "wplivechat"); ?></em><br />");
|
2082 |
-
var height = jQuery('#admin_chat_box_area_' + cid)[0].scrollHeight;
|
2083 |
-
jQuery('#admin_chat_box_area_' + cid).scrollTop(height);
|
2084 |
-
|
2085 |
-
} else if (chat_status == "10" && previous_chat_status == "3") {
|
2086 |
-
jQuery("#admin_chat_box_area_" + cid).append("<em><?php _e("User has minimized the chat window", "wplivechat"); ?></em><br />");
|
2087 |
-
var height = jQuery('#admin_chat_box_area_' + cid)[0].scrollHeight;
|
2088 |
-
jQuery('#admin_chat_box_area_' + cid).scrollTop(height);
|
2089 |
-
}
|
2090 |
-
else if (chat_status === "3" && previous_chat_status === "10") {
|
2091 |
-
jQuery("#admin_chat_box_area_" + cid).append("<em><?php _e("User has maximized the chat window", "wplivechat"); ?></em><br />");
|
2092 |
-
var height = jQuery('#admin_chat_box_area_' + cid)[0].scrollHeight;
|
2093 |
-
jQuery('#admin_chat_box_area_' + cid).scrollTop(height);
|
2094 |
-
}
|
2095 |
-
else if (chat_status === "1" || chat_status === "8") {
|
2096 |
-
jQuery("#admin_chat_box_area_" + cid).append("<em><?php _e("User has closed and ended the chat", "wplivechat"); ?></em><br />");
|
2097 |
-
var height = jQuery('#admin_chat_box_area_' + cid)[0].scrollHeight;
|
2098 |
-
jQuery('#admin_chat_box_area_' + cid).scrollTop(height);
|
2099 |
-
document.getElementById('wplc_admin_chatmsg').disabled = true;
|
2100 |
-
}
|
2101 |
-
}
|
2102 |
-
}
|
2103 |
-
}
|
2104 |
-
|
2105 |
-
|
2106 |
-
|
2107 |
-
jQuery(document).ready(function () {
|
2108 |
-
|
2109 |
-
var wplc_image = "<?php if (isset($image)) { echo $image; } else { echo ""; } ?>";
|
2110 |
-
/* var wplc_ajaxurl = '<?php echo plugins_url('/ajax.php', __FILE__); ?>'; */
|
2111 |
-
var wplc_ajaxurl = ajaxurl;
|
2112 |
-
|
2113 |
-
|
2114 |
-
jQuery("#wplc_admin_chatmsg").focus();
|
2115 |
-
|
2116 |
-
|
2117 |
-
|
2118 |
-
|
2119 |
-
wplc_call_to_server_admin_chat(data);
|
2120 |
-
|
2121 |
-
if (jQuery('#wplc_admin_cid').length) {
|
2122 |
-
var wplc_cid = jQuery("#wplc_admin_cid").val();
|
2123 |
-
var height = jQuery('#admin_chat_box_area_' + wplc_cid)[0].scrollHeight;
|
2124 |
-
jQuery('#admin_chat_box_area_' + wplc_cid).scrollTop(height);
|
2125 |
-
}
|
2126 |
-
|
2127 |
-
jQuery(".wplc_admin_accept").on("click", function () {
|
2128 |
-
wplc_title_alerts3 = setTimeout(function () {
|
2129 |
-
document.title = "WP Live Chat Support";
|
2130 |
-
}, 2500);
|
2131 |
-
var cid = jQuery(this).attr("cid");
|
2132 |
-
|
2133 |
-
var data = {
|
2134 |
-
action: 'wplc_admin_accept_chat',
|
2135 |
-
cid: cid,
|
2136 |
-
security: '<?php echo $ajax_nonce; ?>'
|
2137 |
-
};
|
2138 |
-
jQuery.post(wplc_ajaxurl, data, function (response) {
|
2139 |
-
//console.log("wplc_admin_accept_chat");
|
2140 |
-
wplc_refresh_chat_boxes[cid] = setInterval(function () {
|
2141 |
-
wpcl_admin_update_chat_box(cid);
|
2142 |
-
}, 3000);
|
2143 |
-
jQuery("#admin_chat_box_" + cid).show();
|
2144 |
-
});
|
2145 |
-
});
|
2146 |
-
|
2147 |
-
jQuery("#wplc_admin_chatmsg").keyup(function (event) {
|
2148 |
-
if (event.keyCode == 13) {
|
2149 |
-
jQuery("#wplc_admin_send_msg").click();
|
2150 |
-
}
|
2151 |
-
});
|
2152 |
-
|
2153 |
-
jQuery("#wplc_admin_close_chat").on("click", function () {
|
2154 |
-
var wplc_cid = jQuery("#wplc_admin_cid").val();
|
2155 |
-
var data = {
|
2156 |
-
action: 'wplc_admin_close_chat',
|
2157 |
-
security: '<?php echo $ajax_nonce; ?>',
|
2158 |
-
cid: wplc_cid
|
2159 |
-
|
2160 |
-
};
|
2161 |
-
jQuery.post(wplc_ajaxurl, data, function (response) {
|
2162 |
-
//console.log("wplc_admin_close_chat");
|
2163 |
-
//console.log(response);
|
2164 |
-
window.close();
|
2165 |
-
});
|
2166 |
-
|
2167 |
-
});
|
2168 |
-
|
2169 |
-
function wplc_strip(str) {
|
2170 |
-
str=str.replace(/<br>/gi, "\n");
|
2171 |
-
str=str.replace(/<p.*>/gi, "\n");
|
2172 |
-
str=str.replace(/<a.*href="(.*?)".*>(.*?)<\/a>/gi, " $2 ($1) ");
|
2173 |
-
str=str.replace(/<(?:.|\s)*?>/g, "");
|
2174 |
-
|
2175 |
-
str=str.replace('iframe', "");
|
2176 |
-
str=str.replace('src', "");
|
2177 |
-
str=str.replace('href', "");
|
2178 |
-
str=str.replace('<', "");
|
2179 |
-
str=str.replace('>', "");
|
2180 |
-
|
2181 |
-
return str;
|
2182 |
-
}
|
2183 |
-
|
2184 |
-
jQuery("#wplc_admin_send_msg").on("click", function () {
|
2185 |
-
var wplc_cid = jQuery("#wplc_admin_cid").val();
|
2186 |
-
var wplc_chat = wplc_strip(document.getElementById('wplc_admin_chatmsg').value);
|
2187 |
-
var wplc_name = "a" + "d" + "m" + "i" + "n";
|
2188 |
-
jQuery("#wplc_admin_chatmsg").val('');
|
2189 |
-
|
2190 |
-
if (wplc_display_name == 'display') {
|
2191 |
-
jQuery("#admin_chat_box_area_" + wplc_cid).append("<span class='wplc-admin-message'>" + wplc_image + " <strong>" + wplc_name + "</strong>:<hr/ style='margin-bottom: 0px;'>" + wplc_chat + "</span><br /><div class='wplc-clear-float-message'></div>");
|
2192 |
-
} else {
|
2193 |
-
jQuery("#admin_chat_box_area_" + wplc_cid).append("<span class='wplc-admin-message'>" + wplc_chat + "</span><br /><div class='wplc-clear-float-message'></div>");
|
2194 |
-
}
|
2195 |
-
var height = jQuery('#admin_chat_box_area_' + wplc_cid)[0].scrollHeight;
|
2196 |
-
jQuery('#admin_chat_box_area_' + wplc_cid).scrollTop(height);
|
2197 |
-
|
2198 |
-
|
2199 |
-
var data = {
|
2200 |
-
action: 'wplc_admin_send_msg',
|
2201 |
-
security: '<?php echo $ajax_nonce; ?>',
|
2202 |
-
cid: wplc_cid,
|
2203 |
-
msg: wplc_chat
|
2204 |
-
};
|
2205 |
-
jQuery.post(wplc_ajaxurl, data, function (response) {
|
2206 |
-
//console.log("wplc_admin_send_msg");
|
2207 |
-
|
2208 |
-
/* do nothing
|
2209 |
-
jQuery("#admin_chat_box_area_"+wplc_cid).html(response);
|
2210 |
-
var height = jQuery('#admin_chat_box_area_'+wplc_cid)[0].scrollHeight;
|
2211 |
-
jQuery('#admin_chat_box_area_'+wplc_cid).scrollTop(height);
|
2212 |
-
*/
|
2213 |
-
});
|
2214 |
Â
|
Â
|
|
Â
|
|
Â
|
|
2215 |
Â
|
2216 |
-
|
Â
|
|
Â
|
|
2217 |
Â
|
2218 |
Â
|
Â
|
|
Â
|
|
2219 |
Â
|
2220 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2221 |
Â
|
2222 |
Â
|
Â
|
|
2223 |
Â
|
2224 |
-
});
|
2225 |
-
|
2226 |
-
|
2227 |
-
</script>
|
2228 |
-
<?php
|
2229 |
Â
}
|
2230 |
Â
|
2231 |
Â
function wplc_activate() {
|
@@ -2245,6 +2108,8 @@ function wplc_activate() {
|
|
2245 |
Â
"wplc_record_ip_address" => '1'
|
2246 |
Â
));
|
2247 |
Â
}
|
Â
|
|
Â
|
|
2248 |
Â
add_option("WPLC_HIDE_CHAT", "true");
|
2249 |
Â
add_option("WPLC_FIRST_TIME", true);
|
2250 |
Â
}
|
@@ -2254,6 +2119,7 @@ function wplc_handle_db() {
|
|
2254 |
Â
global $wplc_version;
|
2255 |
Â
global $wplc_tblname_chats;
|
2256 |
Â
global $wplc_tblname_msgs;
|
Â
|
|
2257 |
Â
|
2258 |
Â
$sql = "
|
2259 |
Â
CREATE TABLE " . $wplc_tblname_chats . " (
|
@@ -2269,14 +2135,29 @@ function wplc_handle_db() {
|
|
2269 |
Â
other LONGTEXT NOT NULL,
|
2270 |
Â
PRIMARY KEY (id)
|
2271 |
Â
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
2272 |
-
";
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2273 |
Â
|
2274 |
Â
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
|
2275 |
-
dbDelta($sql);
|
2276 |
-
|
2277 |
-
|
2278 |
-
|
2279 |
-
|
2280 |
Â
|
2281 |
Â
/* check for previous versions containing 'from' instead of 'msgfrom' */
|
2282 |
Â
$results = $wpdb->get_results("DESC $wplc_tblname_msgs");
|
@@ -2289,21 +2170,22 @@ function wplc_handle_db() {
|
|
2289 |
Â
|
2290 |
Â
if ($founded>0) { $wpdb->query("ALTER TABLE ".$wplc_tblname_msgs." CHANGE `from` `msgfrom` varchar(150)"); }
|
2291 |
Â
|
2292 |
-
|
2293 |
-
|
Â
|
|
2294 |
Â
id int(11) NOT NULL AUTO_INCREMENT,
|
2295 |
-
chat_sess_id int(11) NOT NULL,
|
2296 |
-
msgfrom varchar(150) CHARACTER SET utf8 NOT NULL,
|
2297 |
-
msg varchar(700) CHARACTER SET utf8 NOT NULL,
|
2298 |
Â
timestamp datetime NOT NULL,
|
2299 |
-
|
2300 |
-
|
Â
|
|
Â
|
|
Â
|
|
2301 |
Â
PRIMARY KEY (id)
|
2302 |
Â
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
2303 |
-
|
2304 |
Â
|
2305 |
Â
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
|
2306 |
-
dbDelta($
|
2307 |
Â
|
2308 |
Â
add_option("wplc_db_version", $wplc_version);
|
2309 |
Â
update_option("wplc_db_version", $wplc_version);
|
@@ -2330,7 +2212,7 @@ function wplc_add_user_stylesheet() {
|
|
2330 |
Â
}
|
2331 |
Â
|
2332 |
Â
function wplc_add_admin_stylesheet() {
|
2333 |
-
if (isset($_GET['page']) && ($_GET['page'] == 'wplivechat-menu' || $_GET['page'] == 'wplivechat-menu-extensions-page' || $_GET['page'] == 'wplivechat-menu-settings' || $_GET['page'] == 'wplivechat-menu-offline-messages' || $_GET['page'] == 'wplivechat-menu-history')) {
|
2334 |
Â
wp_register_style('wplc-admin-style', plugins_url('/css/jquery-ui.css', __FILE__));
|
2335 |
Â
wp_enqueue_style('wplc-admin-style');
|
2336 |
Â
wp_register_style('wplc-chat-style', plugins_url('/css/chat-style.css', __FILE__));
|
@@ -2373,30 +2255,153 @@ function wplc_admin_settings_layout() {
|
|
2373 |
Â
wplc_settings_page_basic();
|
2374 |
Â
}
|
2375 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2376 |
Â
function wplc_admin_history_layout() {
|
2377 |
Â
wplc_stats("history");
|
2378 |
Â
echo"<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("WP Live Chat History", "wplivechat") . "</h2>";
|
2379 |
Â
|
Â
|
|
2380 |
Â
if(function_exists("wplc_ce_activate")){
|
2381 |
Â
wplc_ce_admin_display_history();
|
2382 |
Â
} else if (function_exists("wplc_register_pro_version")) {
|
2383 |
Â
wplc_pro_admin_display_history();
|
2384 |
Â
} else {
|
2385 |
-
|
2386 |
Â
}
|
2387 |
Â
}
|
2388 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2389 |
Â
function wplc_admin_missed_chats() {
|
2390 |
-
|
2391 |
Â
echo "<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("WP Live Chat Missed Chats", "wplivechat") . "</h2>";
|
2392 |
-
|
2393 |
-
|
2394 |
-
|
Â
|
|
Â
|
|
2395 |
Â
}
|
2396 |
Â
|
2397 |
-
|
2398 |
-
|
2399 |
-
|
2400 |
Â
if (function_exists("wplc_register_pro_version")) {
|
2401 |
Â
if (function_exists('wplc_pro_admin_display_offline_messages')) {
|
2402 |
Â
wplc_pro_admin_display_offline_messages();
|
@@ -2406,6 +2411,61 @@ function wplc_admin_offline_messages() {
|
|
2406 |
Â
} else {
|
2407 |
Â
echo "<br /><br >" . _('This option is only available in the ', 'wplivechat') . "<a href=\"http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=history1\" title=\"" . __("Pro Add-on", "wplivechat") . "\" target=\"_BLANK\">" . __('Pro Add-on', 'wplivechat') . "</a> of WP Live Chat. <a href=\"http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=missed_chats2\" title=\"" . __("Pro Add-on", "wplivechat") . "\" target=\"_BLANK\"></a>";
|
2408 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2409 |
Â
}
|
2410 |
Â
|
2411 |
Â
function wplc_settings_page_basic() {
|
@@ -2446,63 +2506,75 @@ function wplc_stats($sec) {
|
|
2446 |
Â
|
2447 |
Â
}
|
2448 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2449 |
Â
function wplc_head_basic() {
|
2450 |
Â
global $wpdb;
|
2451 |
Â
|
2452 |
-
|
2453 |
Â
|
2454 |
-
|
2455 |
-
|
2456 |
-
|
2457 |
-
if (isset($_POST['
|
2458 |
-
|
2459 |
-
}
|
2460 |
-
if (isset($_POST['
|
2461 |
-
|
2462 |
-
}
|
2463 |
-
if (isset($_POST['
|
2464 |
-
|
2465 |
-
}
|
2466 |
-
if (isset($_POST['
|
2467 |
-
|
2468 |
-
}
|
2469 |
-
if (isset($_POST['wplc_require_user_info'])) {
|
2470 |
-
$wplc_data['wplc_require_user_info'] = esc_attr($_POST['wplc_require_user_info']);
|
2471 |
-
} else {
|
2472 |
-
$wplc_data['wplc_require_user_info'] = "0";
|
2473 |
-
}
|
2474 |
-
if (isset($_POST['wplc_loggedin_user_info'])) {
|
2475 |
-
$wplc_data['wplc_loggedin_user_info'] = esc_attr($_POST['wplc_loggedin_user_info']);
|
2476 |
-
} else {
|
2477 |
-
$wplc_data['wplc_loggedin_user_info'] = "0";
|
2478 |
-
}
|
2479 |
-
if (isset($_POST['wplc_user_alternative_text']) && $_POST['wplc_user_alternative_text'] != '') {
|
2480 |
-
$wplc_data['wplc_user_alternative_text'] = esc_attr($_POST['wplc_user_alternative_text']);
|
2481 |
-
} else {
|
2482 |
-
$wplc_data['wplc_user_alternative_text'] = __("Please click 'Start Chat' to initiate a chat with an agent", "wplivechat");
|
2483 |
-
}
|
2484 |
-
if (isset($_POST['wplc_enabled_on_mobile'])) {
|
2485 |
-
$wplc_data['wplc_enabled_on_mobile'] = esc_attr($_POST['wplc_enabled_on_mobile']);
|
2486 |
-
} else {
|
2487 |
-
$wplc_data['wplc_enabled_on_mobile'] = "0";
|
2488 |
-
}
|
2489 |
-
if (isset($_POST['wplc_display_name'])) {
|
2490 |
-
$wplc_data['wplc_display_name'] = esc_attr($_POST['wplc_display_name']);
|
2491 |
-
}
|
2492 |
-
if (isset($_POST['wplc_display_to_loggedin_only'])) {
|
2493 |
-
$wplc_data['wplc_display_to_loggedin_only'] = esc_attr($_POST['wplc_display_to_loggedin_only']);
|
2494 |
-
}
|
2495 |
Â
|
2496 |
-
if(isset($_POST['wplc_record_ip_address'])){
|
2497 |
-
|
2498 |
-
|
2499 |
-
|
2500 |
-
}
|
2501 |
-
if(isset($_POST['
|
2502 |
-
|
2503 |
-
|
2504 |
-
|
2505 |
-
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2506 |
Â
|
2507 |
Â
if(isset($_POST['wplc_ban_users_ip'])){
|
2508 |
Â
$wplc_banned_ip_addresses = explode('<br />', nl2br(sanitize_text_field($_POST['wplc_ban_users_ip'])));
|
@@ -2516,10 +2588,20 @@ function wplc_head_basic() {
|
|
2516 |
Â
|
2517 |
Â
update_option('WPLC_SETTINGS', $wplc_data);
|
2518 |
Â
if (isset($_POST['wplc_hide_chat'])) {
|
2519 |
-
update_option("WPLC_HIDE_CHAT",
|
Â
|
|
Â
|
|
2520 |
Â
}
|
2521 |
Â
|
2522 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2523 |
Â
|
2524 |
Â
echo "<div class='updated'>";
|
2525 |
Â
_e("Your settings have been saved.", "wplivechat");
|
@@ -2693,7 +2775,7 @@ function wplc_extensions_menu() {
|
|
2693 |
Â
echo "</div></p>";
|
2694 |
Â
|
2695 |
Â
|
2696 |
-
$response = wp_remote_post( "
|
2697 |
Â
'method' => 'POST',
|
2698 |
Â
'body' => array(
|
2699 |
Â
'action' => 'extensions',
|
@@ -2704,9 +2786,17 @@ function wplc_extensions_menu() {
|
|
2704 |
Â
);
|
2705 |
Â
$data = json_decode($response['body']);
|
2706 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2707 |
Â
if ($data) {
|
2708 |
Â
$output = "";
|
2709 |
Â
foreach ($data as $extension) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2710 |
Â
$output .= '<div class="wplc-extension">';
|
2711 |
Â
$output .= '<h3 class="wplc-extension-title">'.$extension->title.'</h3>';
|
2712 |
Â
$output .= '<a href="'.$extension->link.'" title="'.$extension->title.'" target="_BLANK">';
|
@@ -2723,6 +2813,7 @@ function wplc_extensions_menu() {
|
|
2723 |
Â
}
|
2724 |
Â
$output .= $button;
|
2725 |
Â
$output .= '</div>';
|
Â
|
|
2726 |
Â
}
|
2727 |
Â
echo $output;
|
2728 |
Â
}
|
@@ -2786,7 +2877,7 @@ function wplc_support_menu() {
|
|
2786 |
Â
</div>
|
2787 |
Â
<?php
|
2788 |
Â
}
|
2789 |
-
if (!function_exists("
|
2790 |
Â
add_action('admin_enqueue_scripts', 'wp_button_pointers_load_scripts');
|
2791 |
Â
}
|
2792 |
Â
function wp_button_pointers_load_scripts($hook) {
|
@@ -2795,9 +2886,9 @@ function wp_button_pointers_load_scripts($hook) {
|
|
2795 |
Â
|
2796 |
Â
|
2797 |
Â
$pointer_localize_strings = array(
|
2798 |
-
"initiate" => "<h3>".__("Initiate Chats","wplivechat")."</h3><p>".__("With the
|
2799 |
-
"chats" => "<h3>".__("Multiple Chats","wplivechat")."</h3><p>".__("With the Pro add-on of WP Live Chat Support, you can", "wplivechat")." <a href='http://
|
2800 |
-
"agent_info" => "<h3>".__("Add unlimited agents","wplivechat")."</h3><p><a href='
|
2801 |
Â
);
|
2802 |
Â
|
2803 |
Â
|
@@ -2822,4 +2913,453 @@ function wplc_footer_mod( $footer_text ) {
|
|
2822 |
Â
}
|
2823 |
Â
|
2824 |
Â
}
|
2825 |
-
add_filter( 'admin_footer_text', 'wplc_footer_mod' );
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
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: 6.0.00
|
7 |
Â
Author: WP-LiveChat
|
8 |
Â
Author URI: http://www.wp-livechat.com
|
9 |
Â
Text Domain: wplivechat
|
10 |
Â
Domain Path: /languages
|
11 |
Â
*/
|
12 |
+
|
13 |
Â
/*
|
14 |
+
* 6.0.00 -2016-01-26 - Freedom of Speech Update - Medium Priority
|
15 |
+
* New functionality
|
16 |
+
* Unlimited simultaneous chats now available
|
17 |
+
* Offline messages are now available
|
18 |
+
* Many new filters added
|
19 |
+
* jQuery.cookie updated to version 2.1
|
20 |
+
*
|
21 |
Â
* 5.0.14 - 2016-01-13 - High priority
|
22 |
Â
* Bug fix: When activating WP Live Chat Support, a table is created with a shared MySQL column name which caused issues on some servers. The column name has been changed
|
23 |
Â
*
|
300 |
Â
global $wpdb;
|
301 |
Â
global $wplc_tblname_chats;
|
302 |
Â
global $wplc_tblname_msgs;
|
303 |
+
global $wplc_tblname_offline_msgs;
|
304 |
+
|
305 |
+
$wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
|
306 |
Â
$wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
|
307 |
Â
$wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
|
308 |
+
$wplc_version = "6.0.00";
|
309 |
Â
|
310 |
Â
define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
|
311 |
Â
define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");
|
317 |
Â
}
|
318 |
Â
|
319 |
Â
require_once (plugin_dir_path(__FILE__) . "functions.php");
|
320 |
+
require_once (plugin_dir_path(__FILE__) . "includes/deprecated.php");
|
321 |
Â
|
322 |
Â
add_action('wp_ajax_wplc_admin_set_transient', 'wplc_action_callback');
|
323 |
+
add_action('wp_ajax_wplc_admin_remove_transient', 'wplc_action_callback');
|
324 |
Â
add_action('wp_ajax_wplc_hide_ftt','wplc_action_callback');
|
325 |
+
add_action('wp_ajax_nopriv_wplc_user_send_offline_message', 'wplc_action_callback');
|
326 |
+
add_action('wp_ajax_wplc_user_send_offline_message', 'wplc_action_callback');
|
327 |
Â
add_action('init', 'wplc_version_control');
|
328 |
Â
|
329 |
Â
|
331 |
Â
|
332 |
Â
add_action('init', 'wplc_init');
|
333 |
Â
|
334 |
+
require_once (plugin_dir_path(__FILE__) . 'includes/update_control.class.php');
|
335 |
+
|
336 |
+
|
337 |
Â
if (function_exists('wplc_head_pro')) {
|
338 |
+
add_action('admin_init', 'wplc_head_pro');
|
339 |
Â
} else {
|
340 |
+
add_action('admin_init', 'wplc_head_basic');
|
341 |
Â
}
|
342 |
Â
|
343 |
Â
add_action('wp_enqueue_scripts', 'wplc_add_user_stylesheet');
|
352 |
Â
register_activation_hook(__FILE__, 'wplc_activate');
|
353 |
Â
|
354 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
355 |
Â
function wplc_basic_check() {
|
356 |
Â
// check if basic exists if pro is installed
|
357 |
Â
}
|
369 |
Â
|
370 |
Â
$current_version = get_option("wplc_current_version");
|
371 |
Â
if (!isset($current_version) || $current_version != $wplc_version) {
|
372 |
+
$wplc_settings = get_option("WPLC_SETTINGS");
|
373 |
+
|
374 |
+
|
375 |
+
if (!isset($wplc_settings['wplc_pro_na'])) { $wplc_settings["wplc_pro_na"] = __("Chat offline. Leave a message", "wplivechat"); }
|
376 |
+
if (!isset($wplc_settings['wplc_pro_intro'])) { $wplc_settings["wplc_pro_intro"] = __("Hello. Please input your details so that I may help you.", "wplivechat"); }
|
377 |
+
if (!isset($wplc_settings['wplc_pro_offline1'])) { $wplc_settings["wplc_pro_offline1"] = __("We are currently offline. Please leave a message and we'll get back to you shortly.", "wplivechat"); }
|
378 |
+
if (!isset($wplc_settings['wplc_pro_offline2'])) { $wplc_settings["wplc_pro_offline2"] = __("Sending message...", "wplivechat"); }
|
379 |
+
if (!isset($wplc_settings['wplc_pro_offline3'])) { $wplc_settings["wplc_pro_offline3"] = __("Thank you for your message. We will be in contact soon.", "wplivechat"); }
|
380 |
+
|
381 |
+
if (!isset($wplc_settings['wplc_pro_fst1'])) { $wplc_settings["wplc_pro_fst1"] = __("Questions?", "wplivechat"); }
|
382 |
+
if (!isset($wplc_settings['wplc_pro_fst2'])) { $wplc_settings["wplc_pro_fst2"] = __("Chat with us", "wplivechat"); }
|
383 |
+
if (!isset($wplc_settings['wplc_pro_fst3'])) { $wplc_settings["wplc_pro_fst3"] = __("Start live chat", "wplivechat"); }
|
384 |
+
if (!isset($wplc_settings['wplc_pro_sst1'])) { $wplc_settings["wplc_pro_sst1"] = __("Start Chat", "wplivechat"); }
|
385 |
+
if (!isset($wplc_settings['wplc_pro_sst2'])) { $wplc_settings["wplc_pro_sst2"] = __("Connecting. Please be patient...", "wplivechat"); }
|
386 |
+
if (!isset($wplc_settings['wplc_pro_tst1'])) { $wplc_settings["wplc_pro_tst1"] = __("Reactivating your previous chat...", "wplivechat"); }
|
387 |
+
if (!isset($wplc_settings['wplc_user_welcome_chat'])) { $wplc_settings["wplc_user_welcome_chat"] = __("Welcome. How may I help you?", "wplivechat"); }
|
388 |
+
if (!isset($wplc_settings['wplc_user_enter'])) { $wplc_settings["wplc_user_enter"] = __("Press ENTER to send your message", "wplivechat"); }
|
389 |
+
|
390 |
+
if (!isset($wplc_settings['wplc_settings_align'])) { $wplc_settings["wplc_settings_align"] = 1; }
|
391 |
+
|
392 |
+
if (!isset($wplc_settings['wplc_settings_enabled'])) { $wplc_settings["wplc_settings_enabled"] = 1; }
|
393 |
+
|
394 |
+
if (!isset($wplc_settings['wplc_settings_fill'])) { $wplc_settings["wplc_settings_fill"] = "ed832f"; }
|
395 |
+
|
396 |
+
if (!isset($wplc_settings['wplc_settings_font'])) { $wplc_settings["wplc_settings_font"] = "FFFFFF"; }
|
397 |
Â
wplc_handle_db();
|
398 |
Â
update_option("wplc_current_version", $wplc_version);
|
399 |
Â
|
400 |
+
|
401 |
+
if (!isset($wplc_settings['wplc_require_user_info'])) { $wplc_settings['wplc_require_user_info'] = "1"; }
|
402 |
+
if (!isset($wplc_settings['wplc_loggedin_user_info'])) { $wplc_settings['wplc_loggedin_user_info'] = "1"; }
|
403 |
+
if (!isset($wplc_settings['wplc_user_alternative_text'])) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
404 |
Â
$wplc_alt_text = __("Please click \'Start Chat\' to initiate a chat with an agent", "wplivechat");
|
405 |
Â
$wplc_settings['wplc_user_alternative_text'] = $wplc_alt_text;
|
406 |
Â
}
|
407 |
+
if (!isset($wplc_settings['wplc_enabled_on_mobile'])) { $wplc_settings['wplc_enabled_on_mobile'] = "1"; }
|
408 |
+
if(!isset($wplc_settings['wplc_record_ip_address'])){ $wplc_settings['wplc_record_ip_address'] = "1"; }
|
409 |
+
if(!isset($wplc_settings['wplc_enable_msg_sound'])){ $wplc_settings['wplc_enable_msg_sound'] = "1"; }
|
410 |
+
if(!isset($wplc_settings['wplc_using_localization_plugin'])){ $wplc_settings['wplc_using_localization_plugin'] = 0; }
|
411 |
+
|
412 |
+
|
Â
|
|
Â
|
|
Â
|
|
413 |
Â
update_option("WPLC_SETTINGS", $wplc_settings);
|
414 |
Â
}
|
415 |
+
|
416 |
+
|
417 |
+
|
418 |
+
}
|
419 |
+
|
420 |
+
add_action("wplc_hook_set_transient","wplc_hook_control_set_transient",10);
|
421 |
+
function wplc_hook_control_set_transient() {
|
422 |
+
$should_set_transient = apply_filters("wplc_filter_control_set_transient",true);
|
423 |
+
if ($should_set_transient) {
|
424 |
+
set_transient("wplc_is_admin_logged_in", "1", 70);
|
425 |
+
}
|
426 |
+
}
|
427 |
+
|
428 |
+
add_action("wplc_hook_remove_transient","wplc_hook_control_remove_transient",10);
|
429 |
+
function wplc_hook_control_remove_transient() {
|
430 |
+
delete_transient('wplc_is_admin_logged_in');
|
431 |
Â
}
|
432 |
Â
|
433 |
Â
function wplc_action_callback() {
|
436 |
Â
$check = check_ajax_referer('wplc', 'security');
|
437 |
Â
|
438 |
Â
if ($check == 1) {
|
439 |
+
|
440 |
+
if ($_POST['action'] == "wplc_user_send_offline_message") {
|
441 |
+
if(function_exists('wplc_send_offline_msg')){ wplc_send_offline_msg($_POST['name'], $_POST['email'], $_POST['msg'], $_POST['cid']); }
|
442 |
+
if(function_exists('wplc_store_offline_message')){ wplc_store_offline_message($_POST['name'], $_POST['email'], $_POST['msg']); }
|
443 |
+
do_action("wplc_hook_offline_message",array(
|
444 |
+
"cid"=>$_POST['cid'],
|
445 |
+
"name"=>$_POST['name'],
|
446 |
+
"email"=>$_POST['email'],
|
447 |
+
"url"=>get_site_url(),
|
448 |
+
"msg"=>$_POST['msg']
|
449 |
+
)
|
450 |
+
);
|
451 |
+
}
|
452 |
Â
if ($_POST['action'] == "wplc_admin_set_transient") {
|
453 |
+
do_action("wplc_hook_set_transient");
|
454 |
+
|
455 |
+
}
|
456 |
+
if ($_POST['action'] == "wplc_admin_remove_transient") {
|
457 |
+
do_action("wplc_hook_remove_transient");
|
458 |
+
|
459 |
Â
}
|
460 |
Â
if ($_POST['action'] == 'wplc_hide_ftt') {
|
461 |
Â
update_option("WPLC_FIRST_TIME_TUTORIAL",true);
|
462 |
Â
}
|
463 |
+
do_action("wplc_hook_action_callback");
|
464 |
Â
}
|
465 |
Â
die(); // this is required to return a proper result
|
466 |
Â
}
|
469 |
Â
include 'includes/feedback-page.php';
|
470 |
Â
}
|
471 |
Â
|
472 |
+
/**
|
473 |
+
* Decide who gets to see the various main menus (left navigation)
|
474 |
+
* @return array
|
475 |
+
* @since 6.0.00
|
476 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
477 |
+
*/
|
478 |
+
function wplc_filter_control_menu_control() {
|
479 |
+
$array = array(
|
480 |
+
0 => 'manage_options', /* main menu */
|
481 |
+
1 => 'manage_options', /* settings */
|
482 |
+
2 => 'manage_options', /* history */
|
483 |
+
3 => 'manage_options', /* missed chats */
|
484 |
+
4 => 'manage_options', /* offline messages */
|
485 |
+
5 => 'manage_options' /* feedback */
|
486 |
+
);
|
487 |
+
return $array;
|
488 |
+
}
|
489 |
+
|
490 |
Â
function wplc_admin_menu() {
|
491 |
+
|
492 |
+
$cap = apply_filters("wplc_ma_filter_menu_control",wplc_filter_control_menu_control());
|
493 |
+
|
494 |
+
$wplc_mainpage = add_menu_page('WP Live Chat', __('Live Chat', 'wplivechat'), $cap[0], 'wplivechat-menu', 'wplc_admin_menu_layout');
|
495 |
+
add_submenu_page('wplivechat-menu', __('Settings', 'wplivechat'), __('Settings', 'wplivechat'), $cap[1], 'wplivechat-menu-settings', 'wplc_admin_settings_layout');
|
496 |
+
add_submenu_page('wplivechat-menu', __('History', 'wplivechat'), __('History', 'wplivechat'), $cap[2], 'wplivechat-menu-history', 'wplc_admin_history_layout');
|
497 |
+
add_submenu_page('wplivechat-menu', __('Missed Chats', 'wplivechat'), __('Missed Chats', 'wplivechat'), $cap[3], 'wplivechat-menu-missed-chats', 'wplc_admin_missed_chats');
|
498 |
+
|
499 |
+
/* TO DO
|
500 |
+
Add a hook here so that the other plugins can add to the menu
|
501 |
+
Also make sure the function below is controled differently as the pro will not longer exist
|
502 |
+
*/
|
503 |
+
|
504 |
+
if (function_exists("wplc_admin_menu_pro")) {
|
505 |
+
global $wplc_pro_version;
|
506 |
+
if (intval(str_replace(".","",$wplc_pro_version)) <= 5100) {
|
507 |
+
/* do nothing as they have the pro active and their version of the pro makes use of offline messages */
|
508 |
+
|
509 |
+
} else {
|
510 |
+
add_submenu_page('wplivechat-menu', __('Offline Messages', 'wplivechat'), __('Offline Messages', 'wplivechat'), $cap[4], 'wplivechat-menu-offline-messages', 'wplc_admin_offline_messages');
|
511 |
+
}
|
512 |
+
} else {
|
513 |
+
add_submenu_page('wplivechat-menu', __('Offline Messages', 'wplivechat'), __('Offline Messages', 'wplivechat'), $cap[4], 'wplivechat-menu-offline-messages', 'wplc_admin_offline_messages');
|
514 |
+
|
515 |
+
}
|
516 |
+
|
517 |
+
add_submenu_page('wplivechat-menu', __('Feedback', 'wplivechat'), __('Feedback', 'wplivechat'), $cap[5], 'wplivechat-menu-feedback-page', 'wplc_feedback_page_include');
|
518 |
Â
add_submenu_page('wplivechat-menu', __('Support', 'wplivechat'), __('Support', 'wplivechat'), 'manage_options', 'wplivechat-menu-support-page', 'wplc_support_menu');
|
519 |
Â
add_submenu_page('wplivechat-menu', __('Extensions', 'wplivechat'), __('Extensions', 'wplivechat'), 'manage_options', 'wplivechat-menu-extensions-page', 'wplc_extensions_menu');
|
520 |
+
|
521 |
+
do_action("wplc_hook_menu");
|
522 |
+
}
|
523 |
+
|
524 |
+
|
525 |
+
add_action("wplc_hook_menu","wplc_hook_control_menu");
|
526 |
+
function wplc_hook_control_menu() {
|
527 |
+
$check = apply_filters("wplc_filter_menu_api",0);
|
528 |
+
if ($check > 0) {
|
529 |
+
add_submenu_page('wplivechat-menu', __('API Keys', 'wplivechat'), __('API Keys', 'wplivechat'), 'manage_options', 'wplivechat-menu-api-keys-page', 'wplc_api_keys_menu');
|
530 |
+
}
|
531 |
Â
}
|
532 |
Â
|
533 |
Â
|
534 |
+
function wplc_api_keys_menu() {
|
535 |
+
$page_content = "<h1>".__("Premium Extension API Keys","wplivechat")."</h3>";
|
536 |
+
$page_content .= "<p>".__("To find and manage your premium API keys, please visit your <a target='_BLANK' href='http://wp-livechat.com/my-account/'>my account</a> page.","")."</p>";
|
537 |
+
|
538 |
+
$page_content .= "<hr />";
|
539 |
+
$page_content = apply_filters("wplc_filter_api_page",$page_content);
|
540 |
+
|
541 |
+
|
542 |
+
echo $page_content;
|
543 |
+
}
|
544 |
+
|
545 |
Â
|
546 |
Â
add_action("init","wplc_load_user_js",0);
|
547 |
Â
|
549 |
Â
function wplc_load_user_js () {
|
550 |
Â
|
551 |
Â
if (!is_admin()) {
|
552 |
+
if (in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'))) {
|
553 |
+
return false;
|
554 |
+
}
|
555 |
Â
|
556 |
Â
|
557 |
Â
if(function_exists('wplc_display_chat_contents')){
|
560 |
Â
$display_contents = 1;
|
561 |
Â
}
|
562 |
Â
|
563 |
+
if(function_exists('wplc_is_user_banned_basic')){
|
Â
|
|
Â
|
|
564 |
Â
$user_banned = wplc_is_user_banned_basic();
|
565 |
Â
} else {
|
566 |
Â
$user_banned = 0;
|
567 |
Â
}
|
568 |
+
|
569 |
+
$display_contents = apply_filters("wplc_filter_display_contents",$display_contents);
|
570 |
+
|
571 |
Â
if($display_contents && $user_banned == 0){
|
572 |
Â
|
573 |
Â
/* do not show if pro is outdated */
|
642 |
Â
$wplc_ding = '0';
|
643 |
Â
}
|
644 |
Â
|
645 |
+
$ajax_nonce = wp_create_nonce("wplc");
|
646 |
+
if (!function_exists("wplc_register_pro_version")) {
|
647 |
+
$ajaxurl = admin_url('admin-ajax.php');
|
648 |
+
$wplc_ajaxurl = $ajaxurl;
|
649 |
+
}
|
650 |
+
|
651 |
+
|
652 |
+
|
653 |
+
|
654 |
+
global $wplc_version;
|
655 |
+
wp_register_script('wplc-user-script', plugins_url('/js/wplc_u.js', __FILE__),array('jquery'),$wplc_version);
|
656 |
Â
wp_enqueue_script('wplc-user-script');
|
657 |
Â
wp_register_script('wplc-user-jquery-cookie', plugins_url('/js/jquery-cookie.js', __FILE__), array('wplc-user-script'),false, false);
|
658 |
Â
wp_enqueue_script('wplc-user-jquery-cookie');
|
659 |
Â
|
660 |
+
$ajax_url = admin_url('admin-ajax.php');
|
661 |
+
$wplc_ajax_url = apply_filters("wplc_filter_ajax_url",$ajax_url);
|
662 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_ajaxurl', $wplc_ajax_url);
|
663 |
+
|
664 |
Â
|
665 |
+
|
666 |
+
|
667 |
+
wp_localize_script('wplc-user-script', 'wplc_ajaxurl', $wplc_ajax_url);
|
668 |
+
wp_localize_script('wplc-user-script', 'wplc_ajaxurl_site', admin_url('admin-ajax.php'));
|
669 |
+
wp_localize_script('wplc-user-script', 'wplc_nonce', $ajax_nonce);
|
670 |
Â
wp_localize_script('wplc-user-script', 'wplc_plugin_url', plugins_url());
|
671 |
Â
wp_localize_script('wplc-user-script', 'wplc_display_name', $wplc_display);
|
672 |
Â
wp_localize_script('wplc-user-script', 'wplc_enable_ding', $wplc_ding);
|
673 |
Â
|
674 |
+
if (!isset($wplc_settings['wplc_pro_offline1'])) { $wplc_settings["wplc_pro_offline1"] = __("We are currently offline. Please leave a message and we'll get back to you shortly.", "wplivechat"); }
|
675 |
+
if (!isset($wplc_settings['wplc_pro_offline2'])) { $wplc_settings["wplc_pro_offline2"] = __("Sending message...", "wplivechat"); }
|
676 |
+
if (!isset($wplc_settings['wplc_pro_offline3'])) { $wplc_settings["wplc_pro_offline3"] = __("Thank you for your message. We will be in contact soon.", "wplivechat"); }
|
Â
|
|
Â
|
|
677 |
Â
|
678 |
+
|
679 |
+
wp_localize_script('wplc-user-script', 'wplc_offline_msg', stripslashes($wplc_settings['wplc_pro_offline2']));
|
680 |
+
wp_localize_script('wplc-user-script', 'wplc_offline_msg3',stripslashes($wplc_settings['wplc_pro_offline3']));
|
681 |
+
|
682 |
+
$extra_data_array = array();
|
683 |
+
$extra_data_array = apply_filters("wplc_filter_front_js_extra_data",$extra_data_array);
|
684 |
+
wp_localize_script('wplc-user-script', 'wplc_extra_data',$extra_data_array);
|
685 |
+
|
686 |
+
|
687 |
+
if (isset($_COOKIE['wplc_email']) && $_COOKIE['wplc_email'] != "") { $wplc_user_gravatar = sanitize_text_field(md5(strtolower(trim($_COOKIE['wplc_email'])))); } else {$wplc_user_gravatar = ""; }
|
688 |
+
|
689 |
+
if ($wplc_user_gravatar != "") { $wplc_grav_image = "<img src='//www.gravatar.com/avatar/$wplc_user_gravatar?s=20' />";} else { $wplc_grav_image = "";}
|
690 |
Â
wp_localize_script('wplc-user-script', 'wplc_gravatar_image', $wplc_grav_image);
|
691 |
Â
|
692 |
+
$wplc_hide_chat = "";
|
693 |
+
if (get_option('WPLC_HIDE_CHAT') == TRUE) { $wplc_hide_chat = "yes"; } else { $wplc_hide_chat = null; }
|
694 |
+
wp_localize_script('wplc-user-script', 'wplc_hide_chat', $wplc_hide_chat);
|
695 |
+
|
696 |
+
|
697 |
Â
wp_enqueue_script('jquery-ui-core',false,array('wplc-user-script'),false,false);
|
698 |
Â
wp_enqueue_script('jquery-ui-draggable',false,array('wplc-user-script'),false,false);
|
699 |
Â
|
700 |
+
do_action("wplc_hook_push_js_to_front");
|
701 |
+
|
702 |
Â
}
|
703 |
Â
if (function_exists('wplc_pro_user_top_js')) {
|
704 |
Â
add_action('wp_head', 'wplc_pro_user_top_js');
|
726 |
Â
*/
|
727 |
Â
$ajax_nonce = wp_create_nonce("wplc");
|
728 |
Â
$wplc_settings = get_option("WPLC_SETTINGS");
|
729 |
+
$ajax_url = admin_url('admin-ajax.php');
|
730 |
+
$wplc_ajax_url = apply_filters("wplc_filter_ajax_url",$ajax_url);
|
731 |
Â
?>
|
732 |
Â
|
733 |
Â
<script type="text/javascript">
|
734 |
Â
<?php if (!function_exists("wplc_register_pro_version")) { ?>
|
735 |
+
var wplc_ajaxurl = '<?php echo $wplc_ajax_url; ?>';
|
Â
|
|
Â
|
|
736 |
Â
<?php } ?>
|
737 |
Â
var wplc_nonce = '<?php echo $ajax_nonce; ?>';
|
738 |
Â
</script>
|
740 |
Â
}
|
741 |
Â
}
|
742 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
743 |
Â
|
Â
|
|
744 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
745 |
Â
|
746 |
+
/**
|
747 |
+
* Detect if the user is using blocked in the live chat settings 'blocked IP' section
|
748 |
+
* @return void
|
749 |
+
* @since 6.0.00
|
750 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
751 |
+
*/
|
752 |
+
function wplc_hook_control_banned_users() {
|
753 |
+
if (function_exists('wplc_is_user_banned_basic')){
|
754 |
Â
$user_banned = wplc_is_user_banned_basic();
|
755 |
Â
} else {
|
756 |
Â
$user_banned = 0;
|
757 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
758 |
Â
|
759 |
+
if ($user_banned) {
|
760 |
+
remove_action("wplc_hook_output_box_body");
|
761 |
+
remove_action("wplc_hook_output_box_footer");
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
762 |
Â
}
|
763 |
+
}
|
764 |
Â
|
765 |
+
/**
|
766 |
+
* Detect if the user is using a mobile phone or not and decides to show the chat box depending on the admins settings
|
767 |
+
* @return void
|
768 |
+
* @since 6.0.00
|
769 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
770 |
+
*/
|
771 |
+
function wplc_hook_control_check_mobile() {
|
772 |
+
$wplc_settings = get_option("WPLC_SETTINGS");
|
773 |
+
|
774 |
+
if (!class_exists('Mobile_Detect')) {
|
775 |
+
require_once (plugin_dir_path(__FILE__) . 'includes/Mobile_Detect.php');
|
776 |
+
}
|
777 |
+
|
778 |
+
$wplc_detect_device = new Mobile_Detect;
|
779 |
+
$wplc_is_mobile = $wplc_detect_device->isMobile();
|
780 |
+
|
781 |
+
if ($wplc_is_mobile && !isset($wplc_settings['wplc_enabled_on_mobile']) && $wplc_settings['wplc_enabled_on_mobile'] != 1) {
|
782 |
+
return "";
|
783 |
+
}
|
784 |
+
|
785 |
+
if (function_exists('wplc_hide_chat_when_offline')) {
|
786 |
+
$wplc_hide_chat = wplc_hide_chat_when_offline();
|
787 |
+
if (!$wplc_hide_chat) {
|
788 |
+
$draw_box = true;
|
789 |
+
}
|
790 |
+
} else {
|
791 |
+
$draw_box = true;
|
792 |
+
}
|
793 |
+
if (!$draw_box) {
|
794 |
+
remove_action("wplc_hook_output_box_body");
|
795 |
+
remove_action("wplc_hook_output_box_footer");
|
796 |
+
}
|
797 |
+
|
798 |
+
}
|
799 |
Â
|
800 |
+
/**
|
801 |
+
* Decides whether or not to show the chat box based on the main setting in the settings page
|
802 |
+
* @return void
|
803 |
+
* @since 6.0.00
|
804 |
+
*/
|
805 |
+
function wplc_hook_control_is_chat_enabled() {
|
806 |
+
$wplc_settings = get_option("WPLC_SETTINGS");
|
807 |
+
if ($wplc_settings["wplc_settings_enabled"] == 2) {
|
808 |
+
remove_action("wplc_hook_output_box_body");
|
809 |
+
remove_action("wplc_hook_output_box_footer");
|
810 |
+
}
|
811 |
+
}
|
812 |
Â
|
813 |
+
/**
|
814 |
+
* Backwards compatibility for the control of the chat box
|
815 |
+
* @return string
|
816 |
+
* @since 6.0.00
|
817 |
+
* @author Nick Duncan - nick@codecabin.co.za
|
818 |
+
*/
|
819 |
+
function wplc_hook_control_show_chat_box() {
|
820 |
+
if (function_exists("wplc_pro_version_control")) {
|
821 |
+
global $wplc_pro_version;
|
822 |
+
if (intval(str_replace(".","",$wplc_pro_version)) < 5100) {
|
823 |
+
echo wplc_output_box_ajax();
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
824 |
Â
} else {
|
825 |
+
echo wplc_output_box_ajax_new();
|
826 |
Â
}
|
827 |
+
} else {
|
828 |
+
echo wplc_output_box_ajax_new();
|
829 |
+
|
830 |
+
}
|
831 |
+
|
832 |
+
}
|
833 |
Â
|
834 |
+
/* basic */
|
835 |
+
add_action("wplc_hook_output_box_header","wplc_hook_control_banned_users");
|
836 |
+
add_action("wplc_hook_output_box_header","wplc_hook_control_check_mobile");
|
837 |
+
add_action("wplc_hook_output_box_header","wplc_hook_control_is_chat_enabled");
|
838 |
Â
|
839 |
+
add_action("wplc_hook_output_box_body","wplc_hook_control_show_chat_box");
|
840 |
+
|
841 |
+
/**
|
842 |
+
* Build the chat box
|
843 |
+
* @return void
|
844 |
+
* @since 6.0.00
|
845 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
846 |
+
*/
|
847 |
+
function wplc_output_box_5100() {
|
848 |
+
do_action("wplc_hook_output_box_header");
|
849 |
+
do_action("wplc_hook_output_box_body");
|
850 |
+
do_action("wplc_hook_output_box_footer");
|
851 |
Â
}
|
852 |
Â
|
Â
|
|
Â
|
|
Â
|
|
853 |
Â
|
Â
|
|
Â
|
|
Â
|
|
854 |
Â
|
855 |
+
/**
|
856 |
+
* Filter to control the top MAIN DIV of the chat box
|
857 |
+
* @param array $wplc_settings Live chat settings array
|
858 |
+
* @return string
|
859 |
+
* @since 6.0.00
|
860 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
861 |
+
*/
|
862 |
+
function wplc_filter_control_live_chat_box_html_main_div_top($wplc_settings) {
|
863 |
+
|
864 |
+
$wplc_class = "";
|
865 |
+
$wplc_settings = get_option("WPLC_SETTINGS");
|
866 |
+
|
867 |
Â
if ($wplc_settings["wplc_settings_align"] == 1) {
|
868 |
Â
$original_pos = "bottom_left";
|
Â
|
|
Â
|
|
869 |
Â
} else if ($wplc_settings["wplc_settings_align"] == 2) {
|
870 |
Â
$original_pos = "bottom_right";
|
Â
|
|
Â
|
|
871 |
Â
} else if ($wplc_settings["wplc_settings_align"] == 3) {
|
872 |
Â
$original_pos = "left";
|
Â
|
|
Â
|
|
873 |
Â
$wplc_class = "wplc_left";
|
874 |
Â
} else if ($wplc_settings["wplc_settings_align"] == 4) {
|
875 |
Â
$original_pos = "right";
|
Â
|
|
Â
|
|
876 |
Â
$wplc_class = "wplc_right";
|
877 |
Â
}
|
878 |
+
|
879 |
+
|
880 |
+
$animations = wplc_return_animations_basic();
|
881 |
+
if ($animations) {
|
882 |
+
isset($animations['animation']) ? $wplc_animation = $animations['animation'] : $wplc_animation = 'animation-4';
|
883 |
+
isset($animations['starting_point']) ? $wplc_starting_point = $animations['starting_point'] : $wplc_starting_point = 'display: none;';
|
884 |
+
isset($animations['box_align']) ? $wplc_box_align = $animations['box_align'] : $wplc_box_align = '';
|
885 |
+
}
|
886 |
+
else {
|
887 |
+
|
888 |
+
if ($wplc_settings["wplc_settings_align"] == 1) {
|
889 |
+
$original_pos = "bottom_left";
|
890 |
+
$wplc_box_align = "left:100px; bottom:0px;";
|
891 |
+
} else if ($wplc_settings["wplc_settings_align"] == 2) {
|
892 |
+
$original_pos = "bottom_right";
|
893 |
+
$wplc_box_align = "right:100px; bottom:0px;";
|
894 |
+
} else if ($wplc_settings["wplc_settings_align"] == 3) {
|
895 |
+
$original_pos = "left";
|
896 |
+
$wplc_box_align = "left:0; bottom:100px;";
|
897 |
+
$wplc_class = "wplc_left";
|
898 |
+
} else if ($wplc_settings["wplc_settings_align"] == 4) {
|
899 |
+
$original_pos = "right";
|
900 |
+
$wplc_box_align = "right:0; bottom:100px;";
|
901 |
+
$wplc_class = "wplc_right";
|
902 |
+
}
|
903 |
+
}
|
904 |
+
|
905 |
+
|
906 |
+
$wplc_extra_attr = apply_filters("wplc_filter_chat_header_extra_attr","");
|
907 |
+
|
908 |
+
$ret_msg = "<div id=\"wp-live-chat\" wplc_animation=\"".$wplc_animation."\" style=\"".$wplc_starting_point." ".$wplc_box_align.";\" class=\"".$wplc_class." wplc_close\" original_pos=\"".$original_pos."\" ".$wplc_extra_attr." > ";
|
909 |
+
return $ret_msg;
|
910 |
+
}
|
911 |
+
|
912 |
+
|
913 |
+
/**
|
914 |
+
* Filter to control the top HEADER DIV of the chat box
|
915 |
+
* @param array $wplc_settings Live chat settings array
|
916 |
+
* @return string
|
917 |
+
* @since 6.0.00
|
918 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
919 |
+
*/
|
920 |
+
function wplc_filter_control_live_chat_box_html_header_div_top($wplc_settings) {
|
921 |
+
$wplc_settings = get_option('WPLC_SETTINGS');
|
922 |
+
if (isset($wplc_settings['wplc_theme'])) { $wplc_theme = $wplc_settings['wplc_theme']; } else { }
|
923 |
+
if (isset($wplc_theme)) {
|
924 |
+
if($wplc_theme == 'theme-1') {
|
925 |
+
$wplc_settings_fill = "#DB0000";
|
926 |
+
$wplc_settings_font = "#FFFFFF";
|
927 |
+
} else if ($wplc_theme == 'theme-2'){
|
928 |
+
$wplc_settings_fill = "#000000";
|
929 |
+
$wplc_settings_font = "#FFFFFF";
|
930 |
+
} else if ($wplc_theme == 'theme-3'){
|
931 |
+
$wplc_settings_fill = "#DB30B3";
|
932 |
+
$wplc_settings_font = "#FFFFFF";
|
933 |
+
} else if ($wplc_theme == 'theme-4'){
|
934 |
+
$wplc_settings_fill = "#1A14DB";
|
935 |
+
$wplc_settings_font = "#F7FF0F";
|
936 |
+
} else if ($wplc_theme == 'theme-5'){
|
937 |
+
$wplc_settings_fill = "#3DCC13";
|
938 |
+
$wplc_settings_font = "#FF0808";
|
939 |
+
} else if ($wplc_theme == 'theme-6'){
|
940 |
+
if ($wplc_settings["wplc_settings_fill"]) {
|
941 |
+
$wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"];
|
942 |
+
} else {
|
943 |
+
$wplc_settings_fill = "#ec832d";
|
944 |
+
}
|
945 |
+
if ($wplc_settings["wplc_settings_font"]) {
|
946 |
+
$wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"];
|
947 |
+
} else {
|
948 |
+
$wplc_settings_font = "#FFFFFF";
|
949 |
+
}
|
950 |
+
} else {
|
951 |
+
if ($wplc_settings["wplc_settings_fill"]) {
|
952 |
+
$wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"];
|
953 |
+
} else {
|
954 |
+
$wplc_settings_fill = "#ec832d";
|
955 |
+
}
|
956 |
+
if ($wplc_settings["wplc_settings_font"]) {
|
957 |
+
$wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"];
|
958 |
+
} else {
|
959 |
+
$wplc_settings_font = "#FFFFFF";
|
960 |
+
}
|
961 |
+
}
|
962 |
+
} else {
|
963 |
Â
if ($wplc_settings["wplc_settings_fill"]) {
|
964 |
Â
$wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"];
|
965 |
Â
} else {
|
966 |
+
$wplc_settings_fill = "#ec832d";
|
967 |
Â
}
|
968 |
Â
if ($wplc_settings["wplc_settings_font"]) {
|
969 |
Â
$wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"];
|
970 |
Â
} else {
|
971 |
Â
$wplc_settings_font = "#FFFFFF";
|
972 |
Â
}
|
973 |
+
}
|
974 |
Â
|
975 |
+
|
976 |
+
$ret_msg = "<div id=\"wp-live-chat-header\" style=\"background-color: ".$wplc_settings_fill." !important; color: ".$wplc_settings_font." !important; \">";
|
977 |
+
$ret_msg .= apply_filters("wplc_filter_chat_header_under","");
|
978 |
+
return $ret_msg;
|
979 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
980 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
981 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
982 |
Â
|
983 |
+
/**
|
984 |
+
* Filter to control the user details section - custom fields coming soon
|
985 |
+
* @param array $wplc_settings Live chat settings array
|
986 |
+
* @return string
|
987 |
+
* @since 6.0.00
|
988 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
989 |
+
*/
|
990 |
+
function wplc_filter_control_live_chat_box_html_ask_user_detail($wplc_settings) {
|
991 |
+
$ret_msg = "";
|
992 |
+
if (isset($wplc_settings['wplc_loggedin_user_info']) && $wplc_settings['wplc_loggedin_user_info'] == 1) {
|
993 |
+
$wplc_use_loggedin_user_details = 1;
|
994 |
+
} else {
|
995 |
+
$wplc_use_loggedin_user_details = 0;
|
996 |
+
}
|
997 |
+
|
998 |
+
$wplc_loggedin_user_name = "";
|
999 |
+
$wplc_loggedin_user_email = "";
|
1000 |
+
|
1001 |
+
if ($wplc_use_loggedin_user_details == 1) {
|
1002 |
+
global $current_user;
|
1003 |
+
|
1004 |
+
if ($current_user->data != null) {
|
1005 |
+
//Logged in. Get name and email
|
1006 |
+
$wplc_loggedin_user_name = $current_user->user_nicename;
|
1007 |
+
$wplc_loggedin_user_email = $current_user->user_email;
|
1008 |
+
}
|
1009 |
+
} else {
|
1010 |
+
$wplc_loggedin_user_name = '';
|
1011 |
+
$wplc_loggedin_user_email = '';
|
1012 |
+
}
|
1013 |
+
|
1014 |
+
if (isset($wplc_settings['wplc_require_user_info']) && $wplc_settings['wplc_require_user_info'] == 1) {
|
1015 |
+
$wplc_ask_user_details = 1;
|
1016 |
+
} else {
|
1017 |
+
$wplc_ask_user_details = 0;
|
1018 |
+
}
|
1019 |
+
|
1020 |
+
if ($wplc_ask_user_details == 1) {
|
1021 |
+
//Ask the user to enter name and email
|
1022 |
+
|
1023 |
+
$ret_msg .= "<input type=\"text\" name=\"wplc_name\" id=\"wplc_name\" value='".$wplc_loggedin_user_name."' placeholder=\"".__("Name", "wplivechat")."\" />";
|
1024 |
+
$ret_msg .= "<input type=\"text\" name=\"wplc_email\" id=\"wplc_email\" wplc_hide=\"0\" value=\"".$wplc_loggedin_user_email."\" placeholder=\"".__("Email", "wplivechat")."\" />";
|
1025 |
+
} else {
|
1026 |
+
//Dont ask the user
|
1027 |
+
$ret_msg .= "<div style=\"padding: 7px; text-align: center;\">";
|
1028 |
+
if (isset($wplc_settings['wplc_user_alternative_text'])) {
|
1029 |
+
$ret_msg .= stripslashes($wplc_settings['wplc_user_alternative_text']);
|
1030 |
+
}
|
1031 |
+
$ret_msg .= '</div>';
|
1032 |
+
|
1033 |
+
$wplc_random_user_number = rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9);
|
1034 |
+
//$wplc_loggedin_user_email = $wplc_random_user_number."@".$wplc_random_user_number.".com";
|
1035 |
+
if ($wplc_loggedin_user_name != '') { $wplc_lin = $wplc_loggedin_user_name; } else { $wplc_lin = 'user' . $wplc_random_user_number; }
|
1036 |
+
if ($wplc_loggedin_user_email != '' && $wplc_loggedin_user_email != null) { $wplc_lie = $wplc_loggedin_user_email; } else { $wplc_lie = $wplc_random_user_number . '@' . $wplc_random_user_number . '.com'; }
|
1037 |
+
$ret_msg .= "<input type=\"hidden\" name=\"wplc_name\" id=\"wplc_name\" value=\"".$wplc_lin."\" />";
|
1038 |
+
$ret_msg .= "<input type=\"hidden\" name=\"wplc_email\" id=\"wplc_email\" wplc_hide=\"1\" value=\"".$wplc_lie."\" />";
|
1039 |
+
}
|
1040 |
+
return $ret_msg;
|
1041 |
+
}
|
1042 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1043 |
Â
|
1044 |
+
/**
|
1045 |
+
* Filter to control the start chat button
|
1046 |
+
* @param array $wplc_settings Live chat settings array
|
1047 |
+
* @return string
|
1048 |
+
* @since 6.0.00
|
1049 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
1050 |
+
*/
|
1051 |
+
function wplc_filter_control_live_chat_box_html_start_chat_button($wplc_settings,$wplc_using_locale ) {
|
1052 |
+
$wplc_settings = get_option('WPLC_SETTINGS');
|
1053 |
+
if (isset($wplc_settings['wplc_theme'])) { $wplc_theme = $wplc_settings['wplc_theme']; } else { }
|
1054 |
+
|
1055 |
+
if (isset($wplc_theme)) {
|
1056 |
+
if($wplc_theme == 'theme-1') {
|
1057 |
+
$wplc_settings_fill = "#DB0000";
|
1058 |
+
$wplc_settings_font = "#FFFFFF";
|
1059 |
+
} else if ($wplc_theme == 'theme-2'){
|
1060 |
+
$wplc_settings_fill = "#000000";
|
1061 |
+
$wplc_settings_font = "#FFFFFF";
|
1062 |
+
} else if ($wplc_theme == 'theme-3'){
|
1063 |
+
$wplc_settings_fill = "#DB30B3";
|
1064 |
+
$wplc_settings_font = "#FFFFFF";
|
1065 |
+
} else if ($wplc_theme == 'theme-4'){
|
1066 |
+
$wplc_settings_fill = "#1A14DB";
|
1067 |
+
$wplc_settings_font = "#F7FF0F";
|
1068 |
+
} else if ($wplc_theme == 'theme-5'){
|
1069 |
+
$wplc_settings_fill = "#3DCC13";
|
1070 |
+
$wplc_settings_font = "#FF0808";
|
1071 |
+
} else if ($wplc_theme == 'theme-6'){
|
1072 |
+
if ($wplc_settings["wplc_settings_fill"]) {
|
1073 |
+
$wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"];
|
1074 |
+
} else {
|
1075 |
+
$wplc_settings_fill = "#ec832d";
|
1076 |
+
}
|
1077 |
+
if ($wplc_settings["wplc_settings_font"]) {
|
1078 |
+
$wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"];
|
1079 |
+
} else {
|
1080 |
+
$wplc_settings_font = "#FFFFFF";
|
1081 |
+
}
|
1082 |
+
} else {
|
1083 |
+
if ($wplc_settings["wplc_settings_fill"]) {
|
1084 |
+
$wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"];
|
1085 |
+
} else {
|
1086 |
+
$wplc_settings_fill = "#ec832d";
|
1087 |
+
}
|
1088 |
+
if ($wplc_settings["wplc_settings_font"]) {
|
1089 |
+
$wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"];
|
1090 |
+
} else {
|
1091 |
+
$wplc_settings_font = "#FFFFFF";
|
1092 |
+
}
|
1093 |
+
}
|
1094 |
+
} else {
|
1095 |
+
if ($wplc_settings["wplc_settings_fill"]) {
|
1096 |
+
$wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"];
|
1097 |
+
} else {
|
1098 |
+
$wplc_settings_fill = "#ec832d";
|
1099 |
+
}
|
1100 |
+
if ($wplc_settings["wplc_settings_font"]) {
|
1101 |
+
$wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"];
|
1102 |
+
} else {
|
1103 |
+
$wplc_settings_font = "#FFFFFF";
|
1104 |
+
}
|
1105 |
+
}
|
1106 |
Â
|
1107 |
+
$wplc_sst_1 = __('Start chat', 'wplivechat');
|
1108 |
+
if (!isset($wplc_settings['wplc_pro_sst1']) || $wplc_settings['wplc_pro_sst1'] == "") { $wplc_settings['wplc_pro_sst1'] = $wplc_sst_1; }
|
1109 |
+
$text = ($wplc_using_locale ? $wplc_sst_1 : stripslashes($wplc_settings['wplc_pro_sst1']));
|
1110 |
+
return "<input id=\"wplc_start_chat_btn\" type=\"button\" value=\"$text\" style=\"background-color: ".$wplc_settings_fill." !important; color: ".$wplc_settings_font." !important;\"/>";
|
1111 |
+
}
|
1112 |
Â
|
1113 |
+
/**
|
1114 |
+
* Filter to control the offline message button
|
1115 |
+
* @param array $wplc_settings Live chat settings array
|
1116 |
+
* @return string
|
1117 |
+
* @since 6.0.00
|
1118 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
1119 |
+
*/
|
1120 |
+
function wplc_filter_control_live_chat_box_html_send_offline_message_button($wplc_settings) {
|
1121 |
+
$wplc_settings = get_option('WPLC_SETTINGS');
|
1122 |
+
if (isset($wplc_settings['wplc_theme'])) { $wplc_theme = $wplc_settings['wplc_theme']; } else { }
|
1123 |
+
|
1124 |
+
if (isset($wplc_theme)) {
|
1125 |
+
if($wplc_theme == 'theme-1') {
|
1126 |
+
$wplc_settings_fill = "#DB0000";
|
1127 |
+
$wplc_settings_font = "#FFFFFF";
|
1128 |
+
} else if ($wplc_theme == 'theme-2'){
|
1129 |
+
$wplc_settings_fill = "#000000";
|
1130 |
+
$wplc_settings_font = "#FFFFFF";
|
1131 |
+
} else if ($wplc_theme == 'theme-3'){
|
1132 |
+
$wplc_settings_fill = "#DB30B3";
|
1133 |
+
$wplc_settings_font = "#FFFFFF";
|
1134 |
+
} else if ($wplc_theme == 'theme-4'){
|
1135 |
+
$wplc_settings_fill = "#1A14DB";
|
1136 |
+
$wplc_settings_font = "#F7FF0F";
|
1137 |
+
} else if ($wplc_theme == 'theme-5'){
|
1138 |
+
$wplc_settings_fill = "#3DCC13";
|
1139 |
+
$wplc_settings_font = "#FF0808";
|
1140 |
+
} else if ($wplc_theme == 'theme-6'){
|
1141 |
+
if ($wplc_settings["wplc_settings_fill"]) {
|
1142 |
+
$wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"];
|
1143 |
+
} else {
|
1144 |
+
$wplc_settings_fill = "#ec832d";
|
1145 |
+
}
|
1146 |
+
if ($wplc_settings["wplc_settings_font"]) {
|
1147 |
+
$wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"];
|
1148 |
+
} else {
|
1149 |
+
$wplc_settings_font = "#FFFFFF";
|
1150 |
+
}
|
1151 |
+
} else {
|
1152 |
+
if ($wplc_settings["wplc_settings_fill"]) {
|
1153 |
+
$wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"];
|
1154 |
+
} else {
|
1155 |
+
$wplc_settings_fill = "#ec832d";
|
1156 |
+
}
|
1157 |
+
if ($wplc_settings["wplc_settings_font"]) {
|
1158 |
+
$wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"];
|
1159 |
+
} else {
|
1160 |
+
$wplc_settings_font = "#FFFFFF";
|
1161 |
+
}
|
1162 |
+
}
|
1163 |
+
} else {
|
1164 |
+
if ($wplc_settings["wplc_settings_fill"]) {
|
1165 |
+
$wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"];
|
1166 |
+
} else {
|
1167 |
+
$wplc_settings_fill = "#ec832d";
|
1168 |
+
}
|
1169 |
+
if ($wplc_settings["wplc_settings_font"]) {
|
1170 |
+
$wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"];
|
1171 |
+
} else {
|
1172 |
+
$wplc_settings_font = "#FFFFFF";
|
1173 |
+
}
|
1174 |
+
}
|
1175 |
+
$ret_msg = "<input id=\"wplc_na_msg_btn\" type=\"button\" value=\"".__("Send message", "wplivechat")."\" style=\"background-color: ".$wplc_settings_fill." !important; color: ".$wplc_settings_font." !important;\"/>";
|
1176 |
+
return $ret_msg;
|
1177 |
+
}
|
1178 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1179 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1180 |
Â
|
1181 |
+
/**
|
1182 |
+
* Filter to control the 2nd layer of the chat window (online/offline)
|
1183 |
+
* @param array $wplc_settings Live chat settings array
|
1184 |
+
* @param bool $logged_in Is the user logged in or not
|
1185 |
+
* @return string
|
1186 |
+
* @since 6.0.00
|
1187 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
1188 |
+
*/
|
1189 |
+
function wplc_filter_control_live_chat_box_html_2nd_layer($wplc_settings,$logged_in,$wplc_using_locale) {
|
1190 |
+
if ($logged_in) {
|
1191 |
+
$wplc_intro = __('Hello. Please input your details so that I may help you.', 'wplivechat');
|
1192 |
+
if (!isset($wplc_settings['wplc_pro_intro']) || $wplc_settings['wplc_pro_intro'] == "") { $wplc_settings['wplc_pro_intro'] = $wplc_intro; }
|
1193 |
+
$text = ($wplc_using_locale ? $wplc_intro : stripslashes($wplc_settings['wplc_pro_intro']));
|
1194 |
+
|
1195 |
+
$ret_msg = "<div id=\"wp-live-chat-2-info\">";
|
1196 |
+
$ret_msg .= "<strong>".$text."</strong>";
|
1197 |
+
$ret_msg .= "</div>";
|
1198 |
+
$ret_msg .= apply_filters("wplc_filter_live_chat_box_html_ask_user_details",wplc_filter_control_live_chat_box_html_ask_user_detail($wplc_settings));
|
1199 |
+
$ret_msg .= apply_filters("wplc_filter_live_chat_box_html_start_chat_button",wplc_filter_control_live_chat_box_html_start_chat_button($wplc_settings,$wplc_using_locale));
|
1200 |
+
} else {
|
1201 |
+
/* admin not logged in, show offline messages */
|
1202 |
+
$ret_msg = "<div id=\"wp-live-chat-2-info\">";
|
1203 |
+
$ret_msg .= stripslashes($wplc_settings['wplc_pro_offline1']);
|
1204 |
+
$ret_msg .= "</div>";
|
1205 |
+
$ret_msg .= "<div id=\"wplc_message_div\">";
|
1206 |
+
$ret_msg .= "<input type=\"text\" name=\"wplc_name\" id=\"wplc_name\" value=\"\" placeholder=\"".__("Name", "wplivechat")."\" />";
|
1207 |
+
$ret_msg .= "<input type=\"text\" name=\"wplc_email\" id=\"wplc_email\" value=\"\" placeholder=\"".__("Email", "wplivechat")."\" />";
|
1208 |
+
$ret_msg .= "<textarea name=\"wplc_message\" id=\"wplc_message\" placeholder=\"".__("Message", "wplivechat")."\"></textarea>";
|
1209 |
+
|
1210 |
+
if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARTDED_FOR'] != '') {
|
1211 |
+
$ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
1212 |
+
} else {
|
1213 |
+
$ip_address = $_SERVER['REMOTE_ADDR'];
|
1214 |
+
}
|
1215 |
+
|
1216 |
+
if(isset($wplc_settings['wplc_record_ip_address']) && $wplc_settings['wplc_record_ip_address'] == 1) { $offline_ip_address = $ip_address; } else { $offline_ip_address = ""; }
|
1217 |
+
|
1218 |
+
$ret_msg .= "<input type=\"hidden\" name=\"wplc_ip_address\" id=\"wplc_ip_address\" value=\"".$offline_ip_address."\" />";
|
1219 |
+
$ret_msg .= "<input type=\"hidden\" name=\"wplc_domain_offline\" id=\"wplc_domain_offline\" value=\"".get_option('siteurl')."\" />";
|
1220 |
+
$ret_msg .= apply_filters("wplc_filter_live_chat_box_html_send_offline_message_button",wplc_filter_control_live_chat_box_html_send_offline_message_button($wplc_settings));
|
1221 |
+
$ret_msg .= "</div>";
|
1222 |
+
|
1223 |
+
}
|
1224 |
+
return $ret_msg;
|
1225 |
Â
}
|
1226 |
Â
|
1227 |
+
/**
|
1228 |
+
* Filter to control the 3rd layer of the chat window
|
1229 |
+
* @param array $wplc_settings live chat settings array
|
1230 |
+
* @return string
|
1231 |
+
* @since 6.0.00
|
1232 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
1233 |
+
*/
|
1234 |
+
function wplc_filter_control_live_chat_box_html_3rd_layer($wplc_settings,$wplc_using_locale) {
|
1235 |
+
|
1236 |
+
$wplc_sst_2 = __('Connecting. Please be patient.', 'wplivechat');
|
1237 |
+
if (!isset($wplc_settings['wplc_pro_sst2']) || $wplc_settings['wplc_pro_sst2'] == "") { $wplc_settings['wplc_pro_sst2'] = $wplc_sst_2; }
|
1238 |
+
$text = ($wplc_using_locale ? $wplc_sst_2 : stripslashes($wplc_settings['wplc_pro_sst2']));
|
1239 |
+
|
1240 |
+
$ret_msg = "<p>".$text."</p>";
|
1241 |
+
return $ret_msg;
|
1242 |
+
}
|
1243 |
+
|
1244 |
+
/**
|
1245 |
+
* Filter to control the 4th layer of the chat window
|
1246 |
+
* @param array $wplc_settings live chat settings array
|
1247 |
+
* @return string
|
1248 |
+
* @since 6.0.00
|
1249 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
1250 |
+
*/
|
1251 |
+
function wplc_filter_control_live_chat_box_html_4th_layer($wplc_settings,$wplc_using_locale ) {
|
1252 |
+
$wplc_enter = __('Connecting. Please be patient.', 'wplivechat');
|
1253 |
+
if (!isset($wplc_settings['wplc_user_enter']) || $wplc_settings['wplc_user_enter'] == "") { $wplc_settings['wplc_pro_sst2'] = $wplc_enter; }
|
1254 |
+
$text = ($wplc_using_locale ? $wplc_enter : stripslashes($wplc_settings['wplc_user_enter']));
|
1255 |
+
|
1256 |
+
$wplc_welcome = __('Welcome. How may I help you?', 'wplivechat');
|
1257 |
+
if (!isset($wplc_settings['wplc_user_welcome_chat']) || $wplc_settings['wplc_user_welcome_chat'] == "") { $wplc_settings['wplc_user_welcome_chat'] = $wplc_welcome; }
|
1258 |
+
$text2 = ($wplc_using_locale ? $wplc_welcome : stripslashes($wplc_settings['wplc_user_welcome_chat']));
|
1259 |
+
|
1260 |
+
$ret_msg = "<div id=\"wplc_sound_update\" style=\"height:0; width:0; display:none; border:0;\"></div>";
|
1261 |
+
|
1262 |
+
$ret_msg .= apply_filters("wplc_filter_live_chat_box_above_main_div","");
|
1263 |
+
|
1264 |
+
$ret_msg .= "<div id=\"wplc_chatbox\">";
|
1265 |
+
$ret_msg .= "<span class='wplc-admin-message'>";
|
1266 |
+
$ret_msg .= $text2;
|
1267 |
+
$ret_msg .= "</span>";
|
1268 |
+
$ret_msg .= "<br />";
|
1269 |
+
$ret_msg .= "<div class='wplc-clear-float-message'></div>";
|
1270 |
+
$ret_msg .= "</div>";
|
1271 |
+
|
1272 |
+
$ret_msg .= "<p style=\"text-align:center; font-size:11px;\">".$text."</p>";
|
1273 |
+
$ret_msg .= "<p>";
|
1274 |
+
$ret_msg .= "<input type=\"text\" name=\"wplc_chatmsg\" id=\"wplc_chatmsg\" value=\"\" />";
|
1275 |
+
$ret_msg .= "<input type=\"hidden\" name=\"wplc_cid\" id=\"wplc_cid\" value=\"\" />";
|
1276 |
+
$ret_msg .= "<input id=\"wplc_send_msg\" type=\"button\" value=\"".__("Send", "wplivechat")."\" style=\"display:none;\" />";
|
1277 |
+
$ret_msg .= "</p>";
|
1278 |
+
$ret_msg .= "</div>";
|
1279 |
+
return $ret_msg;
|
1280 |
+
}
|
1281 |
+
|
1282 |
+
/**
|
1283 |
+
* Filter to control the 1st layer of the chat window
|
1284 |
+
* @param array $wplc_settings live chat settings array
|
1285 |
+
* @param bool $logged_in Is the admin logged in or not
|
1286 |
+
* @param bool $wplc_using_locale Are they using a localization plugin
|
1287 |
+
* @return string
|
1288 |
+
* @since 6.0.00
|
1289 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
1290 |
+
*/
|
1291 |
+
function wplc_filter_control_live_chat_box_html_1st_layer($wplc_settings,$logged_in,$wplc_using_locale) {
|
1292 |
+
if ($wplc_settings["wplc_settings_fill"]) { $wplc_settings_fill = "#" . $wplc_settings["wplc_settings_fill"]; } else { $wplc_settings_fill = "#ed832f"; }
|
1293 |
+
if ($wplc_settings["wplc_settings_font"]) { $wplc_settings_font = "#" . $wplc_settings["wplc_settings_font"]; } else { $wplc_settings_font = "#FFFFFF"; }
|
1294 |
+
|
1295 |
+
$ret_msg = "<div style=\"display:block; \">";
|
1296 |
+
if ($logged_in) {
|
1297 |
+
$wplc_fst_1 = __('Questions?', 'wplivechat');
|
1298 |
+
$wplc_fst_2 = __('Chat with us', 'wplivechat');
|
1299 |
+
$wplc_tl_msg = "<div style=\"color: " . $wplc_settings_font . " !important;\"><strong>" . ($wplc_using_locale ? $wplc_fst_1 : stripslashes($wplc_settings['wplc_pro_fst1'])) . "</strong> " . ( $wplc_using_locale ? $wplc_fst_2 : stripslashes($wplc_settings['wplc_pro_fst2'])) ."</div>";
|
1300 |
+
|
1301 |
+
$ret_msg .= $wplc_tl_msg;
|
1302 |
+
} else {
|
1303 |
+
$wplc_na = __('Chat offline. Leave a message', 'wplivechat');
|
1304 |
+
$wplc_tl_msg = "<span class='wplc_offline'>" . ($wplc_using_locale ? $wplc_na : stripslashes($wplc_settings['wplc_pro_na'])) . "</span>";
|
1305 |
+
$ret_msg .= $wplc_tl_msg;
|
1306 |
+
}
|
1307 |
+
$ret_msg .= "</div>";
|
1308 |
+
|
1309 |
+
|
1310 |
+
|
1311 |
+
return $ret_msg;
|
1312 |
+
|
1313 |
+
}
|
1314 |
+
|
1315 |
+
/**
|
1316 |
+
* Build the initiate teaser
|
1317 |
+
* @return void
|
1318 |
+
* @since 6.0.00
|
1319 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
1320 |
+
*/
|
1321 |
+
add_filter( 'wplc_filter_list_chats_actions', 'wplc_initiate_chat_button', 12, 3);
|
1322 |
+
function wplc_initiate_chat_button($actions,$result,$post_data) {
|
1323 |
+
|
1324 |
+
|
1325 |
+
if(intval($result->status) == 5 ){
|
1326 |
+
$actions = "<a href=\"javascript:void(0);\" id=\"wplc_initiate_chat\" class=\"wplc_initiate_chat button button-secondary\">".__("Initiate Chat","wplivechat")."</a>";
|
1327 |
+
}
|
1328 |
+
return $actions;
|
1329 |
+
}
|
1330 |
+
|
1331 |
+
|
1332 |
+
|
1333 |
+
/**
|
1334 |
+
* The function that builds the chat box
|
1335 |
+
* @return void
|
1336 |
+
* @since 6.0.00
|
1337 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
1338 |
+
*/
|
1339 |
+
function wplc_output_box_ajax_new() {
|
1340 |
+
|
1341 |
+
|
1342 |
+
$ret_msg = "";
|
1343 |
+
$logged_in = false;
|
1344 |
+
|
1345 |
+
$wplc_settings = get_option("WPLC_SETTINGS");
|
1346 |
+
|
1347 |
+
if(isset($wplc_settings['wplc_using_localization_plugin']) && $wplc_settings['wplc_using_localization_plugin'] == 1){ $wplc_using_locale = true; } else { $wplc_using_locale = false; }
|
1348 |
+
|
1349 |
+
|
1350 |
+
$wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
|
1351 |
+
|
1352 |
+
|
1353 |
+
if (!function_exists("wplc_register_pro_version") && $wplc_is_admin_logged_in != 1) {
|
1354 |
+
$logged_in = false;
|
1355 |
+
} else {
|
1356 |
+
$logged_in = true;
|
1357 |
+
}
|
1358 |
+
|
1359 |
+
|
1360 |
+
|
1361 |
+
$logged_in_checks = apply_filters("wplc_filter_is_admin_logged_in",array());
|
1362 |
+
/* if we are logged in ANYWHERE, set this to true */
|
1363 |
+
foreach($logged_in_checks as $key => $val) {
|
1364 |
+
if ($val) { $logged_in = true; break; }
|
1365 |
+
}
|
1366 |
+
|
1367 |
+
/* admin is using the basic version and is logged in */
|
1368 |
+
if ($wplc_is_admin_logged_in) { $logged_in = true; }
|
1369 |
+
|
1370 |
+
|
1371 |
+
$ret_msg .= apply_filters("wplc_filter_live_chat_box_html_main_div_top",wplc_filter_control_live_chat_box_html_main_div_top($wplc_settings));
|
1372 |
+
$ret_msg .= "<div class=\"wp-live-chat-wraper\">";
|
1373 |
+
$ret_msg .= apply_filters("wplc_filter_live_chat_box_html_header_div_top",wplc_filter_control_live_chat_box_html_header_div_top($wplc_settings));
|
1374 |
+
$ret_msg .= " <i id=\"wp-live-chat-minimize\" class=\"fa fa-minus\" style=\"display:none;\" ></i>";
|
1375 |
+
$ret_msg .= " <i id=\"wp-live-chat-close\" class=\"fa fa-times\" style=\"display:none;\" ></i>";
|
1376 |
+
$ret_msg .= " <div id=\"wp-live-chat-1\" >";
|
1377 |
+
$ret_msg .= apply_filters("wplc_filter_live_chat_box_html_1st_layer",wplc_filter_control_live_chat_box_html_1st_layer($wplc_settings,$logged_in,$wplc_using_locale));
|
1378 |
+
$ret_msg .= " </div>";
|
1379 |
+
$ret_msg .= " </div>";
|
1380 |
+
$ret_msg .= " <div id=\"wp-live-chat-2\" style=\"display:none;\">";
|
1381 |
+
$ret_msg .= apply_filters("wplc_filter_live_chat_box_html_2nd_layer",wplc_filter_control_live_chat_box_html_2nd_layer($wplc_settings,$logged_in,$wplc_using_locale));
|
1382 |
+
$ret_msg .= " </div>";
|
1383 |
+
$ret_msg .= " <div id=\"wp-live-chat-3\" style=\"display:none;\">";
|
1384 |
+
$ret_msg .= apply_filters("wplc_filter_live_chat_box_html_3rd_layer",wplc_filter_control_live_chat_box_html_3rd_layer($wplc_settings,$wplc_using_locale));
|
1385 |
+
$ret_msg .= " </div>";
|
1386 |
+
$ret_msg .= " <div id=\"wp-live-chat-react\" style=\"display:none;\">";
|
1387 |
+
$ret_msg .= " <p>".__("Reactivating your previous chat...", "wplivechat")."</p>";
|
1388 |
+
$ret_msg .= " </div>";
|
1389 |
+
$ret_msg .= " <div id=\"wp-live-chat-4\" style=\"display:none;\">";
|
1390 |
+
$ret_msg .= apply_filters("wplc_filter_live_chat_box_html_4th_layer",wplc_filter_control_live_chat_box_html_4th_layer($wplc_settings,$wplc_using_locale));
|
1391 |
+
$ret_msg .= "</div>";
|
1392 |
+
$ret_msg .= "</div>";
|
1393 |
+
return json_encode($ret_msg);
|
1394 |
+
|
1395 |
+
|
1396 |
+
|
1397 |
+
}
|
1398 |
+
|
1399 |
+
|
1400 |
+
/**
|
1401 |
+
* THIS FUNCTION ONLY RUNS IF THE PRO VERSION IS LESS THAN 5.0.1
|
1402 |
+
* The new method is being handled with ajax
|
1403 |
+
* @return void
|
1404 |
+
*/
|
1405 |
Â
function wplc_display_box() {
|
1406 |
Â
|
1407 |
Â
global $wplc_pro_version;
|
1417 |
Â
$display_contents = 1;
|
1418 |
Â
}
|
1419 |
Â
|
1420 |
+
if(function_exists('wplc_is_user_banned_basic')){
|
Â
|
|
Â
|
|
1421 |
Â
$user_banned = wplc_is_user_banned_basic();
|
1422 |
Â
} else {
|
1423 |
Â
$user_banned = 0;
|
1528 |
Â
"
|
1529 |
Â
);
|
1530 |
Â
foreach ($results as $result) {
|
1531 |
+
$from = $result->msgfrom;
|
Â
|
|
Â
|
|
Â
|
|
1532 |
Â
$msg = stripslashes($result->msg);
|
1533 |
Â
$msg_hist .= "$from: $msg<br />";
|
1534 |
Â
}
|
1542 |
Â
|
1543 |
Â
add_action('admin_head', 'wplc_update_chat_statuses');
|
1544 |
Â
|
1545 |
+
|
1546 |
+
add_action("wplc_hook_superadmin_head","wplc_hook_control_superadmin_head",10);
|
1547 |
+
function wplc_hook_control_superadmin_head() {
|
1548 |
+
$ajax_nonce = wp_create_nonce("wplc");
|
1549 |
+
?>
|
1550 |
+
<script type="text/javascript">
|
1551 |
+
jQuery(document).ready(function () {
|
1552 |
+
|
1553 |
+
|
1554 |
+
var wplc_set_transient = null;
|
1555 |
+
|
1556 |
+
wplc_set_transient = setInterval(function () {
|
1557 |
+
wpcl_admin_set_transient();
|
1558 |
+
}, 60000);
|
1559 |
+
wpcl_admin_set_transient();
|
1560 |
+
function wpcl_admin_set_transient() {
|
1561 |
+
var data = {
|
1562 |
+
action: 'wplc_admin_set_transient',
|
1563 |
+
security: '<?php echo $ajax_nonce; ?>'
|
1564 |
+
|
1565 |
+
};
|
1566 |
+
jQuery.post(ajaxurl, data, function (response) {
|
1567 |
+
|
1568 |
+
});
|
1569 |
+
}
|
1570 |
+
|
1571 |
+
});
|
1572 |
+
</script>
|
1573 |
+
<?php
|
1574 |
+
}
|
1575 |
+
|
1576 |
Â
function wplc_superadmin_javascript() {
|
1577 |
Â
|
1578 |
+
if (isset($_GET['page']) && ($_GET['page'] == 'wplivechat-menu' || $_GET['page'] == 'wplivechat-menu-settings')) {
|
1579 |
Â
|
1580 |
Â
if (!isset($_GET['action'])) {
|
1581 |
Â
if (function_exists("wplc_register_pro_version")) {
|
1583 |
Â
} else {
|
1584 |
Â
wplc_admin_javascript();
|
1585 |
Â
}
|
1586 |
+
do_action("wplc_hook_admin_javascript");
|
1587 |
Â
} // main page
|
1588 |
Â
else if (isset($_GET['action'])) {
|
1589 |
Â
if (function_exists("wplc_register_pro_version")) {
|
1597 |
Â
}
|
1598 |
Â
}
|
1599 |
Â
|
1600 |
+
|
1601 |
+
do_action("wplc_hook_superadmin_head");
|
1602 |
+
|
1603 |
Â
?>
|
1604 |
Â
<script type="text/javascript">
|
1605 |
+
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1606 |
Â
|
1607 |
Â
function wplc_desktop_notification() {
|
1608 |
Â
if (typeof Notification !== 'undefined') {
|
1624 |
Â
<?php
|
1625 |
Â
}
|
1626 |
Â
|
1627 |
+
|
1628 |
+
/**
|
1629 |
+
* Admin JS set up
|
1630 |
+
* @return void
|
1631 |
+
* @since 6.0.00
|
1632 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
1633 |
+
*/
|
1634 |
Â
function wplc_admin_javascript() {
|
1635 |
Â
$ajax_nonce = wp_create_nonce("wplc");
|
1636 |
+
global $wplc_version;
|
1637 |
Â
|
1638 |
+
wp_register_script('wplc-admin-js', plugins_url('js/wplc_u_admin.js', __FILE__), false, $wplc_version, false);
|
1639 |
+
wp_enqueue_script('wplc-admin-js');
|
1640 |
+
$not_icon = plugins_url('/images/wplc_notification_icon.png', __FILE__);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1641 |
Â
|
1642 |
+
$wplc_wav_file = plugins_url('/ring.wav', __FILE__);
|
1643 |
+
wp_localize_script('wplc-admin-js', 'wplc_wav_file', $wplc_wav_file);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1644 |
Â
|
1645 |
+
wp_localize_script('wplc-admin-js', 'wplc_ajax_nonce', $ajax_nonce);
|
1646 |
+
wp_localize_script('wplc-admin-js', 'wplc_notification_icon', $not_icon);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1647 |
Â
|
1648 |
+
$extra_data = apply_filters("wplc_filter_admin_javascript",array());
|
1649 |
+
wp_localize_script('wplc-admin-js', 'wplc_extra_data', $extra_data);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1650 |
Â
|
1651 |
+
$ajax_url = admin_url('admin-ajax.php');
|
1652 |
+
$wplc_ajax_url = apply_filters("wplc_filter_ajax_url",$ajax_url);
|
1653 |
+
wp_localize_script('wplc-admin-js', 'wplc_ajaxurl', $wplc_ajax_url);
|
1654 |
Â
|
1655 |
+
$wpc_ma_js_strings = array(
|
1656 |
+
'remove_agent' => __('Remove', 'wplivechat'),
|
1657 |
+
'nonce' => wp_create_nonce("wplc"),
|
1658 |
+
'user_id' => get_current_user_id()
|
1659 |
+
);
|
1660 |
+
wp_localize_script('wplc-admin-js', 'wplc_admin_strings', $wpc_ma_js_strings);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1661 |
Â
|
1662 |
Â
|
Â
|
|
Â
|
|
1663 |
Â
}
|
1664 |
Â
|
1665 |
Â
function wplc_admin_menu_layout() {
|
1666 |
Â
do_action("wplc_hook_admin_menu_layout");
|
1667 |
Â
if (function_exists("wplc_register_pro_version")) {
|
1668 |
Â
global $wplc_pro_version;
|
1669 |
+
if (floatval($wplc_pro_version) < 4 || $wplc_pro_version == "4.1.0" || $wplc_pro_version == "4.1.1") {
|
1670 |
+
?>
|
1671 |
+
<div class='error below-h1'>
|
1672 |
+
|
1673 |
+
<p><?php _e("Dear Pro User", "wplivechat") ?><br /></p>
|
1674 |
+
<p><?php _e("You are using an outdated version of <strong>WP Live Chat Support Pro</strong>. Please", "wplivechat") ?> <a href="http://wp-livechat.com/get-updated-version/" target=\"_BLANK\"><?php _e("update to at least version", "wplivechat") ?> 4.0</a> <?php _e("to ensure all functionality is in working order", "wplivechat") ?>.</p>
|
1675 |
+
<p><strong><?php _e("You're live chat box on your website has been temporarily disabled until the Pro plugin has been updated. This is to ensure a smooth and hassle-free user experience for both yourself and your visitors.", "wplivechat") ?></strong></p>
|
1676 |
+
<p><?php _e("You can update your plugin <a href='./update-core.php'>here</a>, <a href='./plugins.php'>here</a> or <a href='http://wp-livechat.com/get-updated-version/' target='_BLANK'>here</a>.", "wplivechat") ?></strong></p>
|
1677 |
+
<p><?php _e("If you are having difficulty updating the plugin, please contact", "wplivechat") ?> nick@wp-livechat.com</p>
|
1678 |
+
|
1679 |
+
</div>
|
1680 |
+
<?php
|
1681 |
+
}
|
1682 |
+
$wplc_ver = str_replace('.', '', $wplc_pro_version);
|
1683 |
+
$wplc_ver = intval($wplc_ver);
|
1684 |
+
if ($wplc_ver < 501) {
|
1685 |
Â
?>
|
1686 |
Â
<div class='error below-h1'>
|
1687 |
Â
|
1688 |
+
<p><?php _e("Dear Pro User", "wplivechat") ?><br /></p>
|
1689 |
Â
<p><?php _e("You are using an outdated version of <strong>WP Live Chat Support Pro</strong>.", "wplivechat") ?></p>
|
1690 |
Â
<p>
|
1691 |
Â
<strong><?php _e("Please update to the latest version of WP Live Chat Support Pro", 'wplivechat'); ?>
|
1692 |
+
<a href="http://wp-livechat.com/get-updated-version/" target=\"_BLANK\"> <?php _e("Version 5.0.1", "wplivechat"); ?></a>
|
1693 |
Â
<?php _e("to ensure everything is working correctly.", "wplivechat"); ?>
|
Â
|
|
1694 |
Â
</strong>
|
1695 |
Â
</p>
|
1696 |
Â
<p><?php _e("You can update your plugin <a href='./update-core.php'>here</a>, <a href='./plugins.php'>here</a> or <a href='http://wp-livechat.com/get-updated-version/' target='_BLANK'>here</a>.", "wplivechat") ?></strong></p>
|
1699 |
Â
</div>
|
1700 |
Â
<?php
|
1701 |
Â
}
|
Â
|
|
1702 |
Â
}
|
1703 |
Â
if (get_option("WPLC_FIRST_TIME") == true && !class_exists("APC_Object_Cache")) {
|
1704 |
+
|
1705 |
Â
update_option('WPLC_FIRST_TIME', false);
|
1706 |
Â
include 'includes/welcome_page.php';
|
1707 |
Â
} else {
|
1736 |
Â
<?php }
|
1737 |
Â
}
|
1738 |
Â
|
1739 |
+
|
1740 |
+
/**
|
1741 |
+
* Control the content below the visitor count
|
1742 |
+
* @return void
|
1743 |
+
* @since 6.0.00
|
1744 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
1745 |
+
*/
|
1746 |
+
add_filter("wplc_filter_chat_dahsboard_visitors_online_bottom","wplc_filter_control_chat_dashboard_visitors_online_bottom",10);
|
1747 |
+
function wplc_filter_control_chat_dashboard_visitors_online_bottom($text) {
|
1748 |
+
$text = "<hr />";
|
1749 |
+
$text .= "<p class='wplc-agent-info' id='wplc-agent-info'>";
|
1750 |
+
$text .= " <span class='wplc_agents_online'>1</span>";
|
1751 |
+
$text .= " <a href='javascript:void(0);'>".__("Agent(s) online","wplivechat")."</a>";
|
1752 |
+
$text .= "</p>";
|
1753 |
+
return $text;
|
1754 |
+
}
|
1755 |
+
|
1756 |
+
|
1757 |
+
add_action("wplc_hook_chat_dashboard_bottom","wplc_hook_control_chat_dashboard_bottom",10);
|
1758 |
+
/**
|
1759 |
+
* Decides whether or not to show the available extensions for this area.
|
1760 |
+
* @return void
|
1761 |
+
* @since 6.0.00
|
1762 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
1763 |
+
*/
|
1764 |
+
function wplc_hook_control_chat_dashboard_bottom() {
|
1765 |
+
echo "<p>";
|
1766 |
+
echo __("With the <strong>Initiate Chats</strong> Extension for WP Live Chat Support, you can", "wplivechat");
|
1767 |
+
echo " <a href='http://wp-livechat.com/extensions/initiate-chat-extension/?utm_source=plugin&utm_medium=link&utm_campaign=initiate1'' title='".__("see who's online and initiate chats", "wplivechat")."' target='_BLANK'>";
|
1768 |
+
echo __("initiate chats", "wplivechat");
|
1769 |
+
echo "</a> ";
|
1770 |
+
echo __("with your online visitors with the click of a button.", "wplivechat");
|
1771 |
+
echo " <a href='http://wp-livechat.com/extensions/initiate-chat-extension/?utm_source=plugin&utm_medium=link&utm_campaign=initiate2' title='".__("Buy the Initiate Chats Extension now.", "wplivechat")."' target='_BLANK'>";
|
1772 |
+
echo "<strong>";
|
1773 |
+
echo __("Buy the Initiate Chats Extension now.", "wplivechat");
|
1774 |
+
echo "</strong>";
|
1775 |
+
echo "</a>";
|
1776 |
+
echo "</p>";
|
1777 |
+
|
1778 |
+
|
1779 |
+
|
1780 |
+
}
|
1781 |
+
|
1782 |
+
|
1783 |
Â
function wplc_admin_menu_layout_display() {
|
1784 |
Â
if(current_user_can('wplc_ma_agent') || current_user_can('manage_options')){
|
1785 |
+
do_action("wplc_hook_admin_menu_layout_display_top");
|
1786 |
Â
|
1787 |
Â
wplc_stats("chat_dashboard");
|
1788 |
Â
|
1815 |
Â
</div>
|
1816 |
Â
|
1817 |
Â
<div id="wplc_sound"></div>
|
1818 |
+
<?php do_action("wplc_hook_chat_dashboard_above"); ?>
|
1819 |
Â
|
1820 |
Â
<div id="wplc_admin_chat_holder">
|
1821 |
Â
<div id='wplc_admin_chat_info_new'>
|
1822 |
Â
<div class='wplc_chat_vis_count_box'>
|
1823 |
+
<?php do_action("wplc_hook_chat_dahsboard_visitors_online_top"); ?>
|
1824 |
Â
<span class='wplc_vis_online'>0</span>
|
1825 |
Â
<span style='text-transform:uppercase;'>
|
1826 |
Â
<?php _e("Visitors online","wplivechat"); ?>
|
1827 |
Â
</span>
|
1828 |
+
<?php echo apply_filters("wplc_filter_chat_dahsboard_visitors_online_bottom",""); ?>
|
1829 |
+
|
Â
|
|
Â
|
|
Â
|
|
1830 |
Â
|
1831 |
Â
</div>
|
1832 |
Â
|
1846 |
Â
|
1847 |
Â
|
1848 |
Â
</ul>
|
1849 |
+
<?php do_action("wplc_hook_chat_dashboard_bottom"); ?>
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1850 |
Â
</div>
|
1851 |
Â
|
1852 |
Â
</div>
|
1858 |
Â
|
1859 |
Â
<?php
|
1860 |
Â
} else {
|
1861 |
+
if (isset($_GET['aid'])) { $aid = $_GET['aid']; } else { $aid = null; }
|
1862 |
+
do_action("wplc_hook_admin_menu_layout_display_1",$_GET['action'],$_GET['cid'],$aid);
|
1863 |
+
|
1864 |
+
if (!is_null($aid)) {
|
1865 |
+
do_action("wplc_hook_update_agent_id",$_GET['cid'],$aid);
|
1866 |
+
}
|
1867 |
+
|
1868 |
+
do_action("wplc_hook_admin_menu_layout_display_1",$_GET['action'],$_GET['cid'],$aid);
|
1869 |
+
|
1870 |
Â
if ($_GET['action'] == 'ac') {
|
1871 |
+
do_action('wplc_hook_accept_chat',$_GET,$aid);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1872 |
Â
}
|
1873 |
+
do_action("wplc_hook_admin_menu_layout_display",$_GET['action'],$_GET['cid'],$aid);
|
1874 |
Â
}
|
1875 |
Â
}
|
1876 |
Â
}
|
1877 |
Â
|
1878 |
+
add_action("wplc_hook_change_status_on_answer","wplc_hook_control_change_status_on_answer",10,1);
|
1879 |
+
function wplc_hook_control_change_status_on_answer($get_data) {
|
1880 |
+
wplc_change_chat_status(sanitize_text_field($get_data['cid']), 3);
|
1881 |
+
}
|
1882 |
+
|
1883 |
Â
|
1884 |
+
add_action('wplc_hook_accept_chat','wplc_hook_control_accept_chat',10,2);
|
1885 |
+
function wplc_hook_control_accept_chat($get_data,$aid) {
|
1886 |
+
do_action("wplc_hook_change_status_on_answer",$get_data);
|
1887 |
+
|
1888 |
+
|
1889 |
+
do_action("wplc_hook_accept_chat_url",$get_data);
|
1890 |
+
|
1891 |
+
if (function_exists("wplc_register_pro_version")) {
|
1892 |
+
wplc_pro_draw_chat_area(sanitize_text_field($get_data['cid']));
|
1893 |
+
} else {
|
1894 |
+
do_action("wplc_hook_draw_chat_area",$get_data);
|
1895 |
+
|
1896 |
+
}
|
1897 |
+
|
1898 |
+
|
1899 |
+
}
|
1900 |
+
|
1901 |
+
|
1902 |
+
add_action("wplc_hook_draw_chat_area","wplc_hook_control_draw_chat_area",10,1);
|
1903 |
+
function wplc_hook_control_draw_chat_area($get_data) {
|
1904 |
+
|
1905 |
+
wplc_draw_chat_area(sanitize_text_field($get_data['cid']));
|
1906 |
+
}
|
1907 |
Â
|
1908 |
Â
function wplc_draw_chat_area($cid) {
|
1909 |
Â
|
1917 |
Â
LIMIT 1
|
1918 |
Â
"
|
1919 |
Â
);
|
1920 |
+
if ($results) { } else { $results[0] = null; } /* if chat ID doesnt exist, create the variable anyway to avoid an error. Hopefully the Chat ID exists on the server..! */
|
1921 |
+
$result = apply_filters("wplc_filter_chat_area_data",$results[0],$cid);
|
1922 |
Â
?>
|
1923 |
Â
<style>
|
1924 |
Â
|
1929 |
Â
|
1930 |
Â
</style>
|
1931 |
Â
<?php
|
1932 |
+
|
1933 |
+
$user_data = maybe_unserialize($result->ip);
|
1934 |
+
$user_ip = $user_data['ip'];
|
1935 |
+
$browser = wplc_return_browser_string($user_data['user_agent']);
|
1936 |
+
$browser_image = wplc_return_browser_image($browser, "16");
|
1937 |
+
global $wplc_basic_plugin_url;
|
1938 |
+
if ($result->status == 1) {
|
1939 |
+
$status = __("Previous", "wplivechat");
|
1940 |
+
} else {
|
1941 |
+
$status = __("Active", "wplivechat");
|
1942 |
+
}
|
1943 |
+
|
1944 |
+
if($user_ip == ""){
|
1945 |
+
$user_ip = __('IP Address not recorded', 'wplivechat');
|
1946 |
+
} else {
|
1947 |
+
$user_ip = "<a href='http://www.ip-adress.com/ip_tracer/" . $user_ip . "' title='".__('Whois for' ,'wplivechat')." ".$user_ip."'>".$user_ip."</a>";
|
1948 |
+
}
|
1949 |
+
|
1950 |
+
echo "<h2>$status " . __('Chat with', 'wplivechat') . " " . $result->name . "</h2>";
|
1951 |
+
echo "<style>#adminmenuwrap { display:none; } #adminmenuback { display:none; } #wpadminbar { display:none; } #wpfooter { display:none; } .update-nag { display:none; }</style>";
|
1952 |
Â
|
1953 |
+
echo "<div class=\"end_chat_div\"><a href=\"javascript:void(0);\" class=\"wplc_admin_close_chat button\" id=\"wplc_admin_close_chat\">" . __("End chat", "wplivechat") . "</a></div>";
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1954 |
Â
|
1955 |
+
echo "<div id='admin_chat_box'>";
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1956 |
Â
|
1957 |
+
$result->continue = true;
|
1958 |
+
|
1959 |
+
do_action("wplc_hook_wplc_draw_chat_area",$result);
|
1960 |
+
|
1961 |
+
if (!$result->continue) { return; }
|
1962 |
+
|
1963 |
+
echo"<div class='admin_chat_box'><div class='admin_chat_box_inner' id='admin_chat_box_area_" . $result->id . "'>" . wplc_return_chat_messages($cid) . "</div><div class='admin_chat_box_inner_bottom'>" . wplc_return_chat_response_box($cid) . "</div></div>";
|
1964 |
+
echo "<div class='admin_visitor_info'>";
|
1965 |
+
do_action("wplc_hook_admin_visitor_info_display_before",$cid);
|
1966 |
+
echo " <div style='float:left; width:100px;'><img src=\"//www.gravatar.com/avatar/" . md5($result->email) . "\" class=\"admin_chat_img\" /></div>";
|
1967 |
+
echo " <div style='float:left;'>";
|
1968 |
+
|
1969 |
+
echo " <div class='admin_visitor_info_box1'>";
|
1970 |
+
echo " <span class='admin_chat_name'>" . $result->name . "</span>";
|
1971 |
+
echo " <span class='admin_chat_email'>" . $result->email . "</span>";
|
1972 |
+
echo " </div>";
|
1973 |
+
echo " </div>";
|
1974 |
+
|
1975 |
+
echo " <div class='admin_visitor_advanced_info'>";
|
1976 |
+
echo " <strong>" . __("Site Info", "wplivechat") . "</strong>";
|
1977 |
+
echo " <hr />";
|
1978 |
+
echo " <span class='part1'>" . __("Chat initiated on:", "wplivechat") . "</span> <span class='part2'>" . $result->url . "</span>";
|
1979 |
+
echo " </div>";
|
1980 |
+
|
1981 |
+
echo " <div class='admin_visitor_advanced_info'>";
|
1982 |
+
echo " <strong>" . __("Advanced Info", "wplivechat") . "</strong>";
|
1983 |
+
echo " <hr />";
|
1984 |
+
echo " <span class='part1'>" . __("Browser:", "wplivechat") . "</span><span class='part2'> $browser <img src='" . $wplc_basic_plugin_url . "/images/$browser_image' alt='$browser' title='$browser' /><br />";
|
1985 |
+
echo " <span class='part1'>" . __("IP Address:", "wplivechat") . "</span><span class='part2'> ".$user_ip;
|
1986 |
+
echo " </div>";
|
1987 |
+
|
1988 |
+
echo " <div id=\"wplc_sound_update\"></div>";
|
1989 |
+
echo "<hr />";
|
1990 |
+
echo "<h3>".__("Add-ons","wplivechat")."</h3>";
|
1991 |
+
do_action("wplc_hook_admin_visitor_info_display_after",$cid);
|
1992 |
+
echo "<a href='".admin_url('admin.php?page=wplivechat-menu-extensions-page')."' class='button button-primary' target='_BLANK'>".__("Get more add-ons","wplivechat")."</a>";
|
1993 |
+
echo "</div>";
|
1994 |
+
|
1995 |
+
if ($result->status != 1) {
|
1996 |
+
echo "<div class='admin_chat_quick_controls'>";
|
1997 |
+
echo " <p style=\"text-align:left; font-size:11px;\">" . __('Press ENTER to send your message', 'wplivechat') . "</p>";
|
1998 |
+
echo " " . __("Assign Quick Response", "wplivechat") . " <select name='wplc_macros_select' class='wplc_macros_select' disabled><option>" . __('Select', 'wplivechat') . "</option></select> <a href='http://wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=quick_resposnes' title='" . __('Add Quick Responses to your Live Chat', 'wplivechat') . "' target='_BLANK'>" . __("Pro version only", "wplivechat") . "</a>";
|
1999 |
+
echo " </div>";
|
2000 |
+
echo "</div>";
|
2001 |
+
|
2002 |
+
//echo wplc_return_admin_chat_javascript($_GET['cid']);
|
2003 |
+
}
|
2004 |
+
|
2005 |
Â
}
|
2006 |
Â
|
2007 |
Â
function wplc_return_chat_response_box($cid) {
|
2015 |
Â
|
2016 |
Â
function wplc_return_admin_chat_javascript($cid) {
|
2017 |
Â
$ajax_nonce = wp_create_nonce("wplc");
|
2018 |
+
global $wplc_version;
|
2019 |
+
|
2020 |
+
wp_register_script('wplc-admin-chat-js', plugins_url('js/wplc_u_admin_chat.js', __FILE__), false, $wplc_version, false);
|
2021 |
+
wp_enqueue_script('wplc-admin-chat-js');
|
2022 |
+
|
2023 |
+
|
2024 |
Â
if (function_exists("wplc_pro_get_admin_picture")) {
|
2025 |
+
$src = wplc_pro_get_admin_picture();
|
2026 |
+
if ($src) {
|
2027 |
+
$image = "<img src=" . $src . " width='20px' id='wp-live-chat-2-img'/>";
|
2028 |
+
} else {
|
2029 |
+
$image = "";
|
2030 |
+
}
|
2031 |
+
} else {
|
2032 |
+
$image = "";
|
2033 |
Â
}
|
2034 |
+
$admin_pic = $image;
|
2035 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_ajax_nonce', $ajax_nonce);
|
2036 |
+
wp_localize_script('wplc-admin-chat-js', 'admin_pic', $admin_pic);
|
2037 |
+
$wplc_ding_file = plugins_url('/ding.mp3', __FILE__);
|
2038 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_ding_file', $wplc_ding_file);
|
2039 |
+
|
2040 |
+
|
2041 |
+
$extra_data = apply_filters("wplc_filter_admin_javascript",array());
|
2042 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_extra_data', $extra_data);
|
2043 |
+
|
2044 |
+
|
2045 |
+
|
2046 |
+
|
2047 |
Â
|
2048 |
Â
$wplc_settings = get_option("WPLC_SETTINGS");
|
2049 |
Â
|
2062 |
Â
} else {
|
2063 |
Â
$wplc_user_email_address = "";
|
2064 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2065 |
Â
|
2066 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_name', $display_name);
|
2067 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_enable_ding', $enable_ding);
|
2068 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_user_email', $wplc_user_email_address);
|
2069 |
Â
|
2070 |
+
$ajax_url = admin_url('admin-ajax.php');
|
2071 |
+
$wplc_ajax_url = apply_filters("wplc_filter_ajax_url",$ajax_url);
|
2072 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_ajaxurl', $wplc_ajax_url);
|
2073 |
Â
|
2074 |
Â
|
2075 |
+
$wplc_url = admin_url('admin.php?page=wplivechat-menu&action=ac&cid=' . $cid);
|
2076 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_url', $wplc_url);
|
2077 |
Â
|
2078 |
Â
|
2079 |
+
$wplc_string1 = __("User has opened the chat window", "wplivechat");
|
2080 |
+
$wplc_string2 = __("User has minimized the chat window", "wplivechat");
|
2081 |
+
$wplc_string3 = __("User has maximized the chat window", "wplivechat");
|
2082 |
+
$wplc_string4 = __("The chat has been ended", "wplivechat");
|
2083 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_string1', $wplc_string1);
|
2084 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_string2', $wplc_string2);
|
2085 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_string3', $wplc_string3);
|
2086 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_string4', $wplc_string4);
|
2087 |
+
wp_localize_script('wplc-admin-chat-js', 'wplc_cid', $cid);
|
2088 |
Â
|
2089 |
Â
|
2090 |
+
do_action("wplc_hook_admin_chatbox_javascript");
|
2091 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2092 |
Â
}
|
2093 |
Â
|
2094 |
Â
function wplc_activate() {
|
2108 |
Â
"wplc_record_ip_address" => '1'
|
2109 |
Â
));
|
2110 |
Â
}
|
2111 |
+
|
2112 |
+
|
2113 |
Â
add_option("WPLC_HIDE_CHAT", "true");
|
2114 |
Â
add_option("WPLC_FIRST_TIME", true);
|
2115 |
Â
}
|
2119 |
Â
global $wplc_version;
|
2120 |
Â
global $wplc_tblname_chats;
|
2121 |
Â
global $wplc_tblname_msgs;
|
2122 |
+
global $wplc_tblname_offline_msgs;
|
2123 |
Â
|
2124 |
Â
$sql = "
|
2125 |
Â
CREATE TABLE " . $wplc_tblname_chats . " (
|
2135 |
Â
other LONGTEXT NOT NULL,
|
2136 |
Â
PRIMARY KEY (id)
|
2137 |
Â
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
2138 |
+
";
|
2139 |
+
|
2140 |
+
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
|
2141 |
+
dbDelta($sql);
|
2142 |
+
|
2143 |
+
|
2144 |
+
|
2145 |
+
|
2146 |
+
$sql = '
|
2147 |
+
CREATE TABLE ' . $wplc_tblname_msgs . ' (
|
2148 |
+
id int(11) NOT NULL AUTO_INCREMENT,
|
2149 |
+
chat_sess_id int(11) NOT NULL,
|
2150 |
+
msgfrom varchar(150) CHARACTER SET utf8 NOT NULL,
|
2151 |
+
msg varchar(700) CHARACTER SET utf8 NOT NULL,
|
2152 |
+
timestamp datetime NOT NULL,
|
2153 |
+
status INT(3) NOT NULL,
|
2154 |
+
originates INT(3) NOT NULL,
|
2155 |
+
PRIMARY KEY (id)
|
2156 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
2157 |
+
';
|
2158 |
Â
|
2159 |
Â
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
|
2160 |
+
@dbDelta($sql);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2161 |
Â
|
2162 |
Â
/* check for previous versions containing 'from' instead of 'msgfrom' */
|
2163 |
Â
$results = $wpdb->get_results("DESC $wplc_tblname_msgs");
|
2170 |
Â
|
2171 |
Â
if ($founded>0) { $wpdb->query("ALTER TABLE ".$wplc_tblname_msgs." CHANGE `from` `msgfrom` varchar(150)"); }
|
2172 |
Â
|
2173 |
+
|
2174 |
+
$sql2 = "
|
2175 |
+
CREATE TABLE " . $wplc_tblname_offline_msgs . " (
|
2176 |
Â
id int(11) NOT NULL AUTO_INCREMENT,
|
Â
|
|
Â
|
|
Â
|
|
2177 |
Â
timestamp datetime NOT NULL,
|
2178 |
+
name varchar(700) NOT NULL,
|
2179 |
+
email varchar(700) NOT NULL,
|
2180 |
+
message varchar(700) NOT NULL,
|
2181 |
+
ip varchar(700) NOT NULL,
|
2182 |
+
user_agent varchar(700) NOT NULL,
|
2183 |
Â
PRIMARY KEY (id)
|
2184 |
Â
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
2185 |
+
";
|
2186 |
Â
|
2187 |
Â
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
|
2188 |
+
@dbDelta($sql2);
|
2189 |
Â
|
2190 |
Â
add_option("wplc_db_version", $wplc_version);
|
2191 |
Â
update_option("wplc_db_version", $wplc_version);
|
2212 |
Â
}
|
2213 |
Â
|
2214 |
Â
function wplc_add_admin_stylesheet() {
|
2215 |
+
if (isset($_GET['page']) && ($_GET['page'] == 'wplivechat-menu' || $_GET['page'] == 'wplivechat-menu-api-keys-page' || $_GET['page'] == 'wplivechat-menu-extensions-page' || $_GET['page'] == 'wplivechat-menu-settings' || $_GET['page'] == 'wplivechat-menu-offline-messages' || $_GET['page'] == 'wplivechat-menu-history')) {
|
2216 |
Â
wp_register_style('wplc-admin-style', plugins_url('/css/jquery-ui.css', __FILE__));
|
2217 |
Â
wp_enqueue_style('wplc-admin-style');
|
2218 |
Â
wp_register_style('wplc-chat-style', plugins_url('/css/chat-style.css', __FILE__));
|
2255 |
Â
wplc_settings_page_basic();
|
2256 |
Â
}
|
2257 |
Â
|
2258 |
+
|
2259 |
+
|
2260 |
+
add_action("wplc_hook_history_draw_area","wplc_hook_control_history_draw_area",10,1);
|
2261 |
+
/**
|
2262 |
+
* Display normal history page
|
2263 |
+
* @param int $cid Chat ID
|
2264 |
+
* @return void
|
2265 |
+
* @since 6.1.00
|
2266 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
2267 |
+
*/
|
2268 |
+
function wplc_hook_control_history_draw_area($cid) {
|
2269 |
+
wplc_draw_chat_area($cid);
|
2270 |
+
}
|
2271 |
+
|
2272 |
+
/**
|
2273 |
+
* What to display for the chat history
|
2274 |
+
* @param int $cid Chat ID
|
2275 |
+
* @return void
|
2276 |
+
* @since 6.1.00
|
2277 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
2278 |
+
*/
|
2279 |
+
function wplc_admin_view_chat_history($cid) {
|
2280 |
+
do_action("wplc_hook_history_draw_area",$cid);
|
2281 |
+
}
|
2282 |
+
|
2283 |
+
|
2284 |
+
|
2285 |
+
|
2286 |
+
add_action( 'wplc_hook_admin_menu_layout_display' , 'wplc_hook_control_history_get_control', 1, 3);
|
2287 |
+
/**
|
2288 |
+
* Control history GET calls
|
2289 |
+
* @param string $action The GET action
|
2290 |
+
* @param int $cid The chat id
|
2291 |
+
* @param int $aid AID
|
2292 |
+
* @return void
|
2293 |
+
* @since 6.1.00
|
2294 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
2295 |
+
*/
|
2296 |
+
function wplc_hook_control_history_get_control($action,$cid,$aid) {
|
2297 |
+
|
2298 |
+
if ($action == 'history') {
|
2299 |
+
wplc_admin_view_chat_history(sanitize_text_field($cid));
|
2300 |
+
} else if ($action == 'download_history'){
|
2301 |
+
wplc_admin_download_history(sanitize_text_field($_GET['type']), sanitize_text_field($cid));
|
2302 |
+
}
|
2303 |
+
|
2304 |
+
|
2305 |
+
}
|
2306 |
+
|
2307 |
+
|
2308 |
+
add_action("wplc_hook_chat_history","wplc_hook_control_chat_history");
|
2309 |
+
function wplc_hook_control_chat_history() {
|
2310 |
+
|
2311 |
+
|
2312 |
+
global $wpdb;
|
2313 |
+
global $wplc_tblname_chats;
|
2314 |
+
|
2315 |
+
$results = $wpdb->get_results(
|
2316 |
+
"
|
2317 |
+
SELECT *
|
2318 |
+
FROM $wplc_tblname_chats
|
2319 |
+
WHERE `status` = 1 OR `status` = 8
|
2320 |
+
ORDER BY `timestamp` DESC
|
2321 |
+
"
|
2322 |
+
);
|
2323 |
+
echo "
|
2324 |
+
<form method=\"post\" >
|
2325 |
+
<input type=\"submit\" value=\"".__('Delete History', 'wplivechat')."\" class='button' name=\"wplc-delete-chat-history\" /><br /><br />
|
2326 |
+
</form>
|
2327 |
+
|
2328 |
+
<table class=\"wp-list-table widefat fixed \" cellspacing=\"0\">
|
2329 |
+
<thead>
|
2330 |
+
<tr>
|
2331 |
+
<th scope='col' id='wplc_id_colum' class='manage-column column-id sortable desc' style=''><span>" . __("Date", "wplivechat") . "</span></th>
|
2332 |
+
<th scope='col' id='wplc_name_colum' class='manage-column column-name_title sortable desc' style=''><span>" . __("Name", "wplivechat") . "</span></th>
|
2333 |
+
<th scope='col' id='wplc_email_colum' class='manage-column column-email' style=\"\">" . __("Email", "wplivechat") . "</th>
|
2334 |
+
<th scope='col' id='wplc_url_colum' class='manage-column column-url' style=\"\">" . __("URL", "wplivechat") . "</th>
|
2335 |
+
<th scope='col' id='wplc_status_colum' class='manage-column column-status' style=\"\">" . __("Status", "wplivechat") . "</th>
|
2336 |
+
<th scope='col' id='wplc_action_colum' class='manage-column column-action sortable desc' style=\"\"><span>" . __("Action", "wplivechat") . "</span></th>
|
2337 |
+
</tr>
|
2338 |
+
</thead>
|
2339 |
+
<tbody id=\"the-list\" class='list:wp_list_text_link'>
|
2340 |
+
";
|
2341 |
+
if (!$results) {
|
2342 |
+
echo "<tr><td></td><td>" . __("No chats available at the moment", "wplivechat") . "</td></tr>";
|
2343 |
+
} else {
|
2344 |
+
foreach ($results as $result) {
|
2345 |
+
unset($trstyle);
|
2346 |
+
unset($actions);
|
2347 |
+
|
2348 |
+
|
2349 |
+
$url = admin_url('admin.php?page=wplivechat-menu&action=history&cid=' . $result->id);
|
2350 |
+
$url2 = admin_url('admin.php?page=wplivechat-menu&action=download_history&type=csv&cid=' . $result->id);
|
2351 |
+
$actions = "
|
2352 |
+
<a href='$url' class='button' title='".__('View Chat History', 'wplivechat')."' target='_BLANK' id=''><i class='fa fa-eye'></i></a> <a href='$url2' class='button' title='".__('Download Chat History', 'wplivechat')."' target='_BLANK' id=''><i class='fa fa-download'></i></a>
|
2353 |
+
";
|
2354 |
+
$trstyle = "style='height:30px;'";
|
2355 |
+
|
2356 |
+
echo "<tr id=\"record_" . $result->id . "\" $trstyle>";
|
2357 |
+
echo "<td class='chat_id column-chat_d'>" . $result->timestamp . "</td>";
|
2358 |
+
echo "<td class='chat_name column_chat_name' id='chat_name_" . $result->id . "'><img src=\"//www.gravatar.com/avatar/" . md5($result->email) . "?s=40\" /> " . $result->name . "</td>";
|
2359 |
+
echo "<td class='chat_email column_chat_email' id='chat_email_" . $result->id . "'><a href='mailto:" . $result->email . "' title='Email " . ".$result->email." . "'>" . $result->email . "</a></td>";
|
2360 |
+
echo "<td class='chat_name column_chat_url' id='chat_url_" . $result->id . "'>" . $result->url . "</td>";
|
2361 |
+
echo "<td class='chat_status column_chat_status' id='chat_status_" . $result->id . "'><strong>" . wplc_return_status($result->status) . "</strong></td>";
|
2362 |
+
echo "<td class='chat_action column-chat_action' id='chat_action_" . $result->id . "'>$actions</td>";
|
2363 |
+
echo "</tr>";
|
2364 |
+
}
|
2365 |
+
}
|
2366 |
+
echo "</table>";
|
2367 |
+
|
2368 |
+
|
2369 |
+
}
|
2370 |
+
|
2371 |
+
|
2372 |
Â
function wplc_admin_history_layout() {
|
2373 |
Â
wplc_stats("history");
|
2374 |
Â
echo"<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("WP Live Chat History", "wplivechat") . "</h2>";
|
2375 |
Â
|
2376 |
+
|
2377 |
Â
if(function_exists("wplc_ce_activate")){
|
2378 |
Â
wplc_ce_admin_display_history();
|
2379 |
Â
} else if (function_exists("wplc_register_pro_version")) {
|
2380 |
Â
wplc_pro_admin_display_history();
|
2381 |
Â
} else {
|
2382 |
+
do_action("wplc_hook_chat_history");
|
2383 |
Â
}
|
2384 |
Â
}
|
2385 |
Â
|
2386 |
+
|
2387 |
+
add_action("wplc_hook_chat_missed","wplc_hook_control_missed_chats",10);
|
2388 |
+
function wplc_hook_control_missed_chats() {
|
2389 |
+
if (function_exists('wplc_admin_display_missed_chats')) { wplc_admin_display_missed_chats(); }
|
2390 |
+
}
|
2391 |
+
|
2392 |
Â
function wplc_admin_missed_chats() {
|
2393 |
+
wplc_stats("missed");
|
2394 |
Â
echo "<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("WP Live Chat Missed Chats", "wplivechat") . "</h2>";
|
2395 |
+
do_action("wplc_hook_chat_missed");
|
2396 |
+
|
2397 |
+
|
2398 |
+
|
2399 |
+
|
2400 |
Â
}
|
2401 |
Â
|
2402 |
+
add_action("wplc_hook_offline_messages_display","wplc_hook_control_offline_messages_display",10);
|
2403 |
+
function wplc_hook_control_offline_messages_display() {
|
2404 |
+
if (function_exists("wplc_admin_display_offline_messages_new")) { wplc_admin_display_offline_messages_new(); } else {
|
2405 |
Â
if (function_exists("wplc_register_pro_version")) {
|
2406 |
Â
if (function_exists('wplc_pro_admin_display_offline_messages')) {
|
2407 |
Â
wplc_pro_admin_display_offline_messages();
|
2411 |
Â
} else {
|
2412 |
Â
echo "<br /><br >" . _('This option is only available in the ', 'wplivechat') . "<a href=\"http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=history1\" title=\"" . __("Pro Add-on", "wplivechat") . "\" target=\"_BLANK\">" . __('Pro Add-on', 'wplivechat') . "</a> of WP Live Chat. <a href=\"http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=missed_chats2\" title=\"" . __("Pro Add-on", "wplivechat") . "\" target=\"_BLANK\"></a>";
|
2413 |
Â
}
|
2414 |
+
}
|
2415 |
+
|
2416 |
+
}
|
2417 |
+
|
2418 |
+
/**
|
2419 |
+
* Control who should see the offline messages
|
2420 |
+
* @return void
|
2421 |
+
*/
|
2422 |
+
function wplc_admin_offline_messages() {
|
2423 |
+
wplc_stats("offline_messages");
|
2424 |
+
echo"<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("WP Live Chat Offline Messages", "wplivechat") . "</h2>";
|
2425 |
+
do_action("wplc_hook_offline_messages_display");
|
2426 |
+
}
|
2427 |
+
|
2428 |
+
/**
|
2429 |
+
* Output the offline messages in an HTML table
|
2430 |
+
* @return void
|
2431 |
+
*/
|
2432 |
+
function wplc_admin_display_offline_messages_new() {
|
2433 |
+
|
2434 |
+
global $wpdb;
|
2435 |
+
global $wplc_tblname_offline_msgs;
|
2436 |
+
|
2437 |
+
echo "<form method='POST'>
|
2438 |
+
<table class=\"wp-list-table widefat fixed \" cellspacing=\"0\">
|
2439 |
+
<thead>
|
2440 |
+
<tr>
|
2441 |
+
<th class='manage-column column-id'><span>" . __("Date", "wplivechat") . "</span></th>
|
2442 |
+
<th scope='col' id='wplc_name_colum' class='manage-column column-id'><span>" . __("Name", "wplivechat") . "</span></th>
|
2443 |
+
<th scope='col' id='wplc_email_colum' class='manage-column column-id'>" . __("Email", "wplivechat") . "</th>
|
2444 |
+
<th scope='col' id='wplc_message_colum' class='manage-column column-id'>" . __("Message", "wplivechat") . "</th>
|
2445 |
+
</tr>
|
2446 |
+
</thead>
|
2447 |
+
<tbody id=\"the-list\" class='list:wp_list_text_link'>";
|
2448 |
+
|
2449 |
+
$sql = "SELECT * FROM $wplc_tblname_offline_msgs ORDER BY `timestamp` DESC";
|
2450 |
+
|
2451 |
+
$results = $wpdb->get_results($sql);
|
2452 |
+
|
2453 |
+
if (!$results) {
|
2454 |
+
echo "<tr><td></td><td>" . __("You have not received any offline messages.", "wplivechat") . "</td></tr>";
|
2455 |
+
} else {
|
2456 |
+
foreach ($results as $result) {
|
2457 |
+
echo "<tr id=\"record_" . $result->id . "\">";
|
2458 |
+
echo "<td class='chat_id column-chat_d'>" . $result->timestamp . "</td>";
|
2459 |
+
echo "<td class='chat_name column_chat_name' id='chat_name_" . $result->id . "'><img src=\"//www.gravatar.com/avatar/" . md5($result->email) . "?s=30\" /> " . $result->name . "</td>";
|
2460 |
+
echo "<td class='chat_email column_chat_email' id='chat_email_" . $result->id . "'><a href='mailto:" . $result->email . "' title='Email " . ".$result->email." . "'>" . $result->email . "</a></td>";
|
2461 |
+
echo "<td class='chat_name column_chat_url' id='chat_url_" . $result->id . "'>" . $result->message . "</td>";
|
2462 |
+
echo "</tr>";
|
2463 |
+
}
|
2464 |
+
}
|
2465 |
+
|
2466 |
+
echo "
|
2467 |
+
</tbody>
|
2468 |
+
</table></form>";
|
2469 |
Â
}
|
2470 |
Â
|
2471 |
Â
function wplc_settings_page_basic() {
|
2506 |
Â
|
2507 |
Â
}
|
2508 |
Â
|
2509 |
+
|
2510 |
+
add_action("wplc_hook_head","wplc_hook_control_head");
|
2511 |
+
function wplc_hook_control_head() {
|
2512 |
+
if (isset($_POST['wplc-delete-chat-history'])) {
|
2513 |
+
wplc_del_history();
|
2514 |
+
}
|
2515 |
+
}
|
2516 |
+
|
2517 |
+
function wplc_del_history(){
|
2518 |
+
global $wpdb;
|
2519 |
+
global $wplc_tblname_chats;
|
2520 |
+
$wpdb->query("TRUNCATE TABLE $wplc_tblname_chats");
|
2521 |
+
}
|
2522 |
+
|
2523 |
+
add_filter("wplc_filter_chat_header_extra_attr","wplc_filter_control_chat_header_extra_attr",10,1);
|
2524 |
+
function wplc_filter_control_chat_header_extra_attr($wplc_extra_attr) {
|
2525 |
+
$wplc_acbc_data = get_option("WPLC_SETTINGS");
|
2526 |
+
if (isset($wplc_acbc_data['wplc_auto_pop_up'])) { $extr_string = $wplc_acbc_data['wplc_auto_pop_up']; $wplc_extra_attr .= " wplc-auto-pop-up=\"".$extr_string."\""; }
|
2527 |
+
|
2528 |
+
return $wplc_extra_attr;
|
2529 |
+
}
|
2530 |
+
|
2531 |
+
|
2532 |
Â
function wplc_head_basic() {
|
2533 |
Â
global $wpdb;
|
2534 |
Â
|
2535 |
+
do_action("wplc_hook_head");
|
2536 |
Â
|
2537 |
+
if (isset($_POST['wplc_save_settings'])) {
|
2538 |
+
|
2539 |
+
do_action("wplc_hook_admin_settings_save");
|
2540 |
+
if (isset($_POST['wplc_settings_align'])) { $wplc_data['wplc_settings_align'] = esc_attr($_POST['wplc_settings_align']); }
|
2541 |
+
if (isset($_POST['wplc_settings_fill'])) { $wplc_data['wplc_settings_fill'] = esc_attr($_POST['wplc_settings_fill']); }
|
2542 |
+
if (isset($_POST['wplc_settings_font'])) { $wplc_data['wplc_settings_font'] = esc_attr($_POST['wplc_settings_font']); }
|
2543 |
+
if (isset($_POST['wplc_settings_enabled'])) { $wplc_data['wplc_settings_enabled'] = esc_attr($_POST['wplc_settings_enabled']); }
|
2544 |
+
if (isset($_POST['wplc_auto_pop_up'])) { $wplc_data['wplc_auto_pop_up'] = esc_attr($_POST['wplc_auto_pop_up']); }
|
2545 |
+
if (isset($_POST['wplc_require_user_info'])) { $wplc_data['wplc_require_user_info'] = esc_attr($_POST['wplc_require_user_info']); } else { $wplc_data['wplc_require_user_info'] = "0"; }
|
2546 |
+
if (isset($_POST['wplc_loggedin_user_info'])) { $wplc_data['wplc_loggedin_user_info'] = esc_attr($_POST['wplc_loggedin_user_info']); } else { $wplc_data['wplc_loggedin_user_info'] = "0"; }
|
2547 |
+
if (isset($_POST['wplc_user_alternative_text']) && $_POST['wplc_user_alternative_text'] != '') { $wplc_data['wplc_user_alternative_text'] = esc_attr($_POST['wplc_user_alternative_text']); } else { $wplc_data['wplc_user_alternative_text'] = __("Please click 'Start Chat' to initiate a chat with an agent", "wplivechat"); }
|
2548 |
+
if (isset($_POST['wplc_enabled_on_mobile'])) { $wplc_data['wplc_enabled_on_mobile'] = esc_attr($_POST['wplc_enabled_on_mobile']); } else { $wplc_data['wplc_enabled_on_mobile'] = "0"; }
|
2549 |
+
if (isset($_POST['wplc_display_name'])) { $wplc_data['wplc_display_name'] = esc_attr($_POST['wplc_display_name']); }
|
2550 |
+
if (isset($_POST['wplc_display_to_loggedin_only'])) { $wplc_data['wplc_display_to_loggedin_only'] = esc_attr($_POST['wplc_display_to_loggedin_only']); }
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2551 |
Â
|
2552 |
+
if(isset($_POST['wplc_record_ip_address'])){ $wplc_data['wplc_record_ip_address'] = esc_attr($_POST['wplc_record_ip_address']); } else { $wplc_data['wplc_record_ip_address'] = "0"; }
|
2553 |
+
if(isset($_POST['wplc_enable_msg_sound'])){ $wplc_data['wplc_enable_msg_sound'] = esc_attr($_POST['wplc_enable_msg_sound']); } else { $wplc_data['wplc_enable_msg_sound'] = "0"; }
|
2554 |
+
|
2555 |
+
if (isset($_POST['wplc_pro_na'])) { $wplc_data['wplc_pro_na'] = esc_attr($_POST['wplc_pro_na']); }
|
2556 |
+
if (isset($_POST['wplc_hide_when_offline'])) { $wplc_data['wplc_hide_when_offline'] = esc_attr($_POST['wplc_hide_when_offline']); }
|
2557 |
+
if (isset($_POST['wplc_pro_chat_email_address'])) { $wplc_data['wplc_pro_chat_email_address'] = esc_attr($_POST['wplc_pro_chat_email_address']); }
|
2558 |
+
if (isset($_POST['wplc_pro_offline1'])) { $wplc_data['wplc_pro_offline1'] = esc_attr($_POST['wplc_pro_offline1']); }
|
2559 |
+
if (isset($_POST['wplc_pro_offline2'])) { $wplc_data['wplc_pro_offline2'] = esc_attr($_POST['wplc_pro_offline2']); }
|
2560 |
+
if (isset($_POST['wplc_pro_offline3'])) { $wplc_data['wplc_pro_offline3'] = esc_attr($_POST['wplc_pro_offline3']); }
|
2561 |
+
if (isset($_POST['wplc_using_localization_plugin'])){ $wplc_data['wplc_using_localization_plugin'] = esc_attr($_POST['wplc_using_localization_plugin']); }
|
2562 |
+
|
2563 |
+
|
2564 |
+
if (isset($_POST['wplc_pro_fst1'])) { $wplc_data['wplc_pro_fst1'] = esc_attr($_POST['wplc_pro_fst1']); }
|
2565 |
+
if (isset($_POST['wplc_pro_fst2'])) { $wplc_data['wplc_pro_fst2'] = esc_attr($_POST['wplc_pro_fst2']); }
|
2566 |
+
if (isset($_POST['wplc_pro_fst3'])) { $wplc_data['wplc_pro_fst3'] = esc_attr($_POST['wplc_pro_fst3']); }
|
2567 |
+
if (isset($_POST['wplc_pro_sst1'])) { $wplc_data['wplc_pro_sst1'] = esc_attr($_POST['wplc_pro_sst1']); }
|
2568 |
+
if (isset($_POST['wplc_pro_sst2'])) { $wplc_data['wplc_pro_sst2'] = esc_attr($_POST['wplc_pro_sst2']); }
|
2569 |
+
if (isset($_POST['wplc_pro_tst1'])) { $wplc_data['wplc_pro_tst1'] = esc_attr($_POST['wplc_pro_tst1']); }
|
2570 |
+
if (isset($_POST['wplc_pro_intro'])) { $wplc_data['wplc_pro_intro'] = esc_attr($_POST['wplc_pro_intro']); }
|
2571 |
+
if (isset($_POST['wplc_user_enter'])) { $wplc_data['wplc_user_enter'] = esc_attr($_POST['wplc_user_enter']); }
|
2572 |
+
if (isset($_POST['wplc_user_welcome_chat'])) { $wplc_data['wplc_user_welcome_chat'] = esc_attr($_POST['wplc_user_welcome_chat']); }
|
2573 |
+
|
2574 |
+
|
2575 |
+
if(isset($_POST['wplc_animation'])){ $wplc_data['wplc_animation'] = esc_attr($_POST['wplc_animation']); }
|
2576 |
+
if(isset($_POST['wplc_theme'])){ $wplc_data['wplc_theme'] = esc_attr($_POST['wplc_theme']); }
|
2577 |
+
|
2578 |
Â
|
2579 |
Â
if(isset($_POST['wplc_ban_users_ip'])){
|
2580 |
Â
$wplc_banned_ip_addresses = explode('<br />', nl2br(sanitize_text_field($_POST['wplc_ban_users_ip'])));
|
2588 |
Â
|
2589 |
Â
update_option('WPLC_SETTINGS', $wplc_data);
|
2590 |
Â
if (isset($_POST['wplc_hide_chat'])) {
|
2591 |
+
update_option("WPLC_HIDE_CHAT", true);
|
2592 |
+
} else {
|
2593 |
+
update_option("WPLC_HIDE_CHAT", false);
|
2594 |
Â
}
|
2595 |
Â
|
2596 |
+
|
2597 |
+
update_option('wplc_mail_type', $_POST['wplc_mail_type']);
|
2598 |
+
update_option('wplc_mail_host', $_POST['wplc_mail_host']);
|
2599 |
+
update_option('wplc_mail_port', $_POST['wplc_mail_port']);
|
2600 |
+
update_option('wplc_mail_username', $_POST['wplc_mail_username']);
|
2601 |
+
update_option('wplc_mail_password', $_POST['wplc_mail_password']);
|
2602 |
+
|
2603 |
+
|
2604 |
+
|
2605 |
Â
|
2606 |
Â
echo "<div class='updated'>";
|
2607 |
Â
_e("Your settings have been saved.", "wplivechat");
|
2775 |
Â
echo "</div></p>";
|
2776 |
Â
|
2777 |
Â
|
2778 |
+
$response = wp_remote_post( "https://ccplugins.co/api-wplc-extensions", array(
|
2779 |
Â
'method' => 'POST',
|
2780 |
Â
'body' => array(
|
2781 |
Â
'action' => 'extensions',
|
2786 |
Â
);
|
2787 |
Â
$data = json_decode($response['body']);
|
2788 |
Â
|
2789 |
+
global $wplc_version;
|
2790 |
+
$wplc_version = str_replace(",","",$wplc_version);
|
2791 |
+
|
2792 |
+
|
2793 |
Â
if ($data) {
|
2794 |
Â
$output = "";
|
2795 |
Â
foreach ($data as $extension) {
|
2796 |
+
if (!isset($extension->fromversion)) { $extension->fromversion = 0; }
|
2797 |
+
if (intval($wplc_version) >= intval($extension->fromversion)) {
|
2798 |
+
|
2799 |
+
|
2800 |
Â
$output .= '<div class="wplc-extension">';
|
2801 |
Â
$output .= '<h3 class="wplc-extension-title">'.$extension->title.'</h3>';
|
2802 |
Â
$output .= '<a href="'.$extension->link.'" title="'.$extension->title.'" target="_BLANK">';
|
2813 |
Â
}
|
2814 |
Â
$output .= $button;
|
2815 |
Â
$output .= '</div>';
|
2816 |
+
}
|
2817 |
Â
}
|
2818 |
Â
echo $output;
|
2819 |
Â
}
|
2877 |
Â
</div>
|
2878 |
Â
<?php
|
2879 |
Â
}
|
2880 |
+
if (!function_exists("wplc_ic_initiate_chat_button")) {
|
2881 |
Â
add_action('admin_enqueue_scripts', 'wp_button_pointers_load_scripts');
|
2882 |
Â
}
|
2883 |
Â
function wp_button_pointers_load_scripts($hook) {
|
2886 |
Â
|
2887 |
Â
|
2888 |
Â
$pointer_localize_strings = array(
|
2889 |
+
"initiate" => "<h3>".__("Initiate Chats","wplivechat")."</h3><p>".__("With the <strong>Initiate Chats Extension</strong> of WP Live Chat Support, you can", "wplivechat")." <a href='http://wp-livechat.com/extensions/initiate-chat-extension/?utm_source=plugin&utm_medium=link&utm_campaign=initiate1_pointer' title='".__("see who's online and initiate chats", "wplivechat")."' target=\"_BLANK\">".__("initiate chats", "wplivechat")."</a> ".__("with your online visitors with the click of a button.", "wplivechat")." <br /><br /><a href='http://wp-livechat.com/extensions/initiate-chat-extension/?utm_source=plugin&utm_medium=link&utm_campaign=initiate2_pointer' title='".__("Buy the Initiate Chats Extension now (once off payment).", "wplivechat")."' target=\"_BLANK\"><strong>".__("Buy the Initiate Chats Extension now (once off payment).", "wplivechat")."</strong></a></p>",
|
2890 |
+
"chats" => "<h3>".__("Multiple Chats","wplivechat")."</h3><p>".__("With the Pro add-on of WP Live Chat Support, you can", "wplivechat")." <a href='http://wp-livechat.com/extensions/initiate-chat-extension/?utm_source=plugin&utm_medium=link&utm_campaign=morechats1_pointer' title='".__("accept and handle multiple chats.", "wplivechat")."' target=\"_BLANK\">".__("accept and handle multiple chats.", "wplivechat")."</a><br /><br /><a href='http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=morechats2_pointer' title='".__("Buy the Initiate Chats Extension now (once off payment).", "wplivechat")."' target=\"_BLANK\"><strong>".__("Buy the Initiate Chats Extension now (once off payment).", "wplivechat")."</strong></a></p>",
|
2891 |
+
"agent_info" => "<h3>".__("Add unlimited agents","wplivechat")."</h3><p><a href='/?utm_source=plugin&utm_medium=link&utm_campaign=unlimited_agents1_pointer' title='".__("Add unlimited agents", "wplivechat")."' target=\"_BLANK\">".__("Add unlimited agents", "wplivechat")."</a> ".__(" with the <strong>Mutliple Agents Extension</strong> of WP Live Chat Support","wplivechat")." "."<a href='/?utm_source=plugin&utm_medium=link&utm_campaign=unlimited_agents2_pointer' target='_BLANK'>".__("(once off payment).","wplivechat")."</a></p>"
|
2892 |
Â
);
|
2893 |
Â
|
2894 |
Â
|
2913 |
Â
}
|
2914 |
Â
|
2915 |
Â
}
|
2916 |
+
add_filter( 'admin_footer_text', 'wplc_footer_mod' );
|
2917 |
+
|
2918 |
+
|
2919 |
+
add_filter("wplc_filter_admin_long_poll_chat_loop_iteration","wplc_filter_control_wplc_admin_long_poll_chat_iteration", 1, 3);
|
2920 |
+
|
2921 |
+
function wplc_filter_control_wplc_admin_long_poll_chat_iteration($array,$post_data,$i) {
|
2922 |
+
if(isset($post_data['action_2']) && $post_data['action_2'] == "wplc_long_poll_check_user_opened_chat"){
|
2923 |
+
$chat_status = wplc_return_chat_status(sanitize_text_field($post_data['cid']));
|
2924 |
+
if($chat_status == 3){
|
2925 |
+
$array['action'] = "wplc_user_open_chat";
|
2926 |
+
}
|
2927 |
+
} else {
|
2928 |
+
|
2929 |
+
$new_chat_status = wplc_return_chat_status(sanitize_text_field($post_data['cid']));
|
2930 |
+
if($new_chat_status != $post_data['chat_status']){
|
2931 |
+
$array['chat_status'] = $new_chat_status;
|
2932 |
+
$array['action'] = "wplc_update_chat_status";
|
2933 |
+
}
|
2934 |
+
$new_chat_message = wplc_return_admin_chat_messages(sanitize_text_field($post_data['cid']));
|
2935 |
+
if($new_chat_message){
|
2936 |
+
|
2937 |
+
$array['chat_message'] = $new_chat_message;
|
2938 |
+
$array['action'] = "wplc_new_chat_message";
|
2939 |
+
}
|
2940 |
+
}
|
2941 |
+
|
2942 |
+
return $array;
|
2943 |
+
}
|
2944 |
+
|
2945 |
+
|
2946 |
+
add_action("wplc_hook_agents_settings","wplc_hook_control_agents_settings", 10);
|
2947 |
+
function wplc_hook_control_agents_settings() {
|
2948 |
+
echo "<h3>".__('Current Users that are Chat Agents', 'wplivechat')."</h3>";
|
2949 |
+
$wplc_agents = "<div class='wplc_agent_container'><ul>";
|
2950 |
+
$user = wp_get_current_user();
|
2951 |
+
$wplc_agents .= "<li id=\"wplc_agent_li_".$user->ID."\">";
|
2952 |
+
$wplc_agents .= "<p><img src=\"//www.gravatar.com/avatar/" . md5($user->user_email) . "?s=80&d=mm\" /></p>";
|
2953 |
+
$check = get_user_meta($user->ID,"wplc_chat_agent_online");
|
2954 |
+
if ($check) {
|
2955 |
+
$wplc_agents .= "<span class='wplc_status_box wplc_type_returning'>".__("Online","wplivechat")."</span>";
|
2956 |
+
}
|
2957 |
+
$wplc_agents .= "<h3>" . $user->display_name . "</h3>";
|
2958 |
+
|
2959 |
+
$wplc_agents .= "<small>" . $user->user_email . "</small>";
|
2960 |
+
|
2961 |
+
$wplc_agents .= "</li>";
|
2962 |
+
echo $wplc_agents;
|
2963 |
+
?>
|
2964 |
+
<li style='width:150px;' id='wplc_add_new_agent_box'>
|
2965 |
+
<p><i class='fa fa-plus-circle fa-4x' style='color:#ccc;' ></i></p>
|
2966 |
+
<h3><?php _e("Add New Agent","wplivechat"); ?></h3>
|
2967 |
+
<select id='wplc_agent_select'>
|
2968 |
+
<option value=''><?php _e("Select","wplivechat"); ?></option>
|
2969 |
+
|
2970 |
+
<?php
|
2971 |
+
$blogusers = get_users( array( 'role' => 'administrator', 'fields' => array( 'display_name','id','user_email' ) ) );
|
2972 |
+
// Array of stdClass objects.
|
2973 |
+
foreach ( $blogusers as $user ) {
|
2974 |
+
$is_agent = get_user_meta(esc_html( $user->ID ), 'wplc_ma_agent', true);
|
2975 |
+
if(!$is_agent){ echo '<option id="wplc_selected_agent_'. esc_html( $user->ID ) .'" value="' . esc_html( $user->ID ) . '">' . esc_html( $user->display_name ) . ' ('.__('Administrator','wplivechat').')</option>'; }
|
2976 |
+
}
|
2977 |
+
$blogusers = get_users( array( 'role' => 'editor', 'fields' => array( 'display_name','id','user_email' ) ) );
|
2978 |
+
// Array of stdClass objects.
|
2979 |
+
foreach ( $blogusers as $user ) {
|
2980 |
+
$is_agent = get_user_meta(esc_html( $user->ID ), 'wplc_ma_agent', true);
|
2981 |
+
if(!$is_agent){ echo '<option id="wplc_selected_agent_'. esc_html( $user->ID ) .'" value="' . esc_html( $user->ID ) . '">' . esc_html( $user->display_name ) . ' ('.__('Editor','wplivechat').')</option>'; }
|
2982 |
+
}
|
2983 |
+
$blogusers = get_users( array( 'role' => 'author', 'fields' => array( 'display_name','id','user_email' ) ) );
|
2984 |
+
// Array of stdClass objects.
|
2985 |
+
foreach ( $blogusers as $user ) {
|
2986 |
+
$is_agent = get_user_meta(esc_html( $user->ID ), 'wplc_ma_agent', true);
|
2987 |
+
if(!$is_agent){ echo '<option id="wplc_selected_agent_'. esc_html( $user->ID ) .'" value="' . esc_html( $user->ID ) . '">' . esc_html( $user->display_name ) . ' ('.__('Author','wplivechat').')</option>'; }
|
2988 |
+
}
|
2989 |
+
?>
|
2990 |
+
</select>
|
2991 |
+
<p><button class='button button-secondary' id='wplc_add_agent' disabled style=><?php _e("Add Agent","wplivechat"); ?></button></p>
|
2992 |
+
<p style='font-size:0.8em'><?php _e("Add as many agents as you need with the ","wplivechat") ?> <a href="http://wp-livechat.com/extensions/multiple-agents-extension/?utm_source=plugin&utm_medium=link&utm_campaign=multipleAgents" target="_BLANK"><?php _e("Multiple Agents Extension.", "wplivechat") ?></a></p>
|
2993 |
+
</li>
|
2994 |
+
</ul>
|
2995 |
+
</div>
|
2996 |
+
|
2997 |
+
<hr/>
|
2998 |
+
<?php
|
2999 |
+
}
|
3000 |
+
|
3001 |
+
|
3002 |
+
|
3003 |
+
function wplc_get_chat_data($cid) {
|
3004 |
+
global $wpdb;
|
3005 |
+
global $wplc_tblname_chats;
|
3006 |
+
$sql = "SELECT * FROM $wplc_tblname_chats WHERE `id` = '$cid' LIMIT 1";
|
3007 |
+
$results = $wpdb->get_results();
|
3008 |
+
if (isset($results[0])) { $result = $results[0]; } else { $result = null; }
|
3009 |
+
$result = apply_filters("wplc_filter_get_chat_data",$result,$cid);
|
3010 |
+
return $result;
|
3011 |
+
}
|
3012 |
+
function wplc_get_chat_messages($cid) {
|
3013 |
+
global $wpdb;
|
3014 |
+
global $wplc_tblname_msgs;
|
3015 |
+
|
3016 |
+
$results = $wpdb->get_results(
|
3017 |
+
"
|
3018 |
+
SELECT *
|
3019 |
+
FROM $wplc_tblname_msgs
|
3020 |
+
WHERE `chat_sess_id` = '$cid'
|
3021 |
+
ORDER BY `timestamp` ASC
|
3022 |
+
LIMIT 0, 100
|
3023 |
+
"
|
3024 |
+
);
|
3025 |
+
|
3026 |
+
if (isset($results[0])) { } else { $results = null; }
|
3027 |
+
$results = apply_filters("wplc_filter_get_chat_messages",$results,$cid);
|
3028 |
+
|
3029 |
+
if ($results == "null") {
|
3030 |
+
return false;
|
3031 |
+
} else {
|
3032 |
+
return $results;
|
3033 |
+
}
|
3034 |
+
}
|
3035 |
+
|
3036 |
+
function wplc_build_api_check($page_content, $data) {
|
3037 |
+
$link = "#";
|
3038 |
+
$image = "https://ccplugins.co/api-wplc-extensions/images/add-on0.jpg";
|
3039 |
+
if ($data['string'] == "Multiple Agents") {
|
3040 |
+
$link = "";
|
3041 |
+
$image = "https://ccplugins.co/api-wplc-extensions/images/Agents-Small.jpg";
|
3042 |
+
}
|
3043 |
+
if ($data['string'] == "Cloud Server") {
|
3044 |
+
$link = "";
|
3045 |
+
$image = "https://ccplugins.co/api-wplc-extensions/images/Cloud-Small.jpg";
|
3046 |
+
}
|
3047 |
+
if ($data['string'] == "Advanced Chat Box Control") {
|
3048 |
+
$link = "http://wp-livechat.com/extensions/advanced-chat-control/";
|
3049 |
+
$image = "https://ccplugins.co/api-wplc-extensions/images/AdvancedChatBox-Small.jpg";
|
3050 |
+
}
|
3051 |
+
if ($data['string'] == "Choose When Online") {
|
3052 |
+
$link = "";
|
3053 |
+
$image = "https://ccplugins.co/api-wplc-extensions/images/ChooseOnline-Small.jpg";
|
3054 |
+
}
|
3055 |
+
if ($data['string'] == "Encryption") {
|
3056 |
+
$link = "";
|
3057 |
+
$image = "https://ccplugins.co/api-wplc-extensions/images/Encryption-Small.jpg";
|
3058 |
+
}
|
3059 |
+
if ($data['string'] == "Mobile and Desktop App") {
|
3060 |
+
$link = "";
|
3061 |
+
$image = "https://ccplugins.co/api-wplc-extensions/images/MobileDesktop-Small.jpg";
|
3062 |
+
}
|
3063 |
+
if ($data['string'] == "Initiate Chats") {
|
3064 |
+
$link = "";
|
3065 |
+
$image = "https://ccplugins.co/api-wplc-extensions/images/InitiateChat-Small.jpg";
|
3066 |
+
}
|
3067 |
+
if ($data['string'] == "Include Exclude Pages") {
|
3068 |
+
$link = "";
|
3069 |
+
$image = "https://ccplugins.co/api-wplc-extensions/images/IncludeAndExclude-Small.jpg";
|
3070 |
+
}
|
3071 |
+
|
3072 |
+
|
3073 |
+
|
3074 |
+
|
3075 |
+
|
3076 |
+
$page_content .= '<div class="wplc-extension" style="height:480px;">';
|
3077 |
+
$page_content .= '<a href="'.$link.'" title="'.$data['string'].'" target="_BLANK" style=" text-decoration:none;"><h3 class="wplc-extension-title" style="text-decoration:none;">'.$data['string'].'</h3></a>';
|
3078 |
+
$page_content .= '<img width="320" height="200" src="'.$image.'" alt="'.$data['string'].'" title="'.$data['string'].'">';
|
3079 |
+
$page_content .= '<p>'.__('API Key','wplivechat').'<br />';
|
3080 |
+
$page_content .= " <form name='".$data['form_name']."' action='' method='POST'>";
|
3081 |
+
$page_content .= " <input type='text' name='".$data['option_name']."' id='".$data['option_name']."' value='".get_option($data['option_name'])."' style='width: 250px;'/>";
|
3082 |
+
$page_content .= " <input type='submit' name='".$data['button']."' id='".$data['button']."' value='".__("Verify","wplivechat")."' />";
|
3083 |
+
$page_content .= " </form>";
|
3084 |
+
$page_content .= '</p>';
|
3085 |
+
$page_content .= '<p>'.__('Status: ','wplivechat');
|
3086 |
+
if (isset($data['data']['status']) && $data['data']['status'] == "OK") {
|
3087 |
+
update_option($data['is_valid'], 1);
|
3088 |
+
$page_content .= "<span style='color: white; font-weight: bold; background-color: green; border-radius: 5px; padding: 3px;'>". __('Valid', 'wplivechat') . '</span>';
|
3089 |
+
$page_content .= '<a href="http://wp-livechat.com/my-account/" title="'.__('Manage this extension','wplivechat').'" class="button-secondary" target="_BLANK">'.__('Manage this extension','wplivechat').'</a>';
|
3090 |
+
} else {
|
3091 |
+
update_option($data['is_valid'], 0);
|
3092 |
+
$page_content .= "<span style='color: white; font-weight: bold; background-color: red; border-radius: 5px; padding: 3px;'>" . __('Invalid', 'wplivechat') . '</span>';
|
3093 |
+
$page_content .= '<a href="http://wp-livechat.com/my-account/" title="'.__('Manage this extension','wplivechat').'" class="button-secondary" target="_BLANK">'.__('Manage this extension','wplivechat').'</a>';
|
3094 |
+
}
|
3095 |
+
$page_content .= '</p>';
|
3096 |
+
$page_content .= '<div style="dispaly:block; width:100%; height:100px; overflow:auto;">';
|
3097 |
+
if (isset($data['data']['domains']) && !empty($data['data']['domains'])) {
|
3098 |
+
$page_content .= '<span><strong>'.__("Linked Domains","wplivechat").'</strong></span><ol>';
|
3099 |
+
foreach ($data['data']['domains'] as $domain) {
|
3100 |
+
$page_content .= '<li>'.$domain.'</li>';
|
3101 |
+
}
|
3102 |
+
$page_content .= '</ol>';
|
3103 |
+
} else {
|
3104 |
+
$page_content .= ' <span>'.$data['data']['message'].'</span>';
|
3105 |
+
|
3106 |
+
}
|
3107 |
+
$page_content .= '</div>';
|
3108 |
+
|
3109 |
+
$page_content .= '</div>';
|
3110 |
+
|
3111 |
+
|
3112 |
+
|
3113 |
+
|
3114 |
+
return $page_content;
|
3115 |
+
}
|
3116 |
+
|
3117 |
+
|
3118 |
+
|
3119 |
+
|
3120 |
+
add_filter("wplc_filter_relevant_extensions_main","wplc_filter_control_relevant_extensions_main_initiate");
|
3121 |
+
function wplc_filter_control_relevant_extensions_main_initiate($text) {
|
3122 |
+
if (function_exists("wplc_hook_control_intiate_check")) { return $text; }
|
3123 |
+
|
3124 |
+
$rel_name = __("Initiate Chats","wplivechat");
|
3125 |
+
$rel_image = "https://ccplugins.co/api-wplc-extensions/images/InitiateChat-Icon.jpg";
|
3126 |
+
$rel_link = "http://wp-livechat.com/extensions/initiate-chat-extension/?utm_source=plugin&utm_medium=link&utm_campaign=relevant_initiate1";
|
3127 |
+
$text .= '<div class="wplc-extension relevant_extension">';
|
3128 |
+
$text .= '<a href="'.$rel_link.'" title="'.$rel_name.'" target="_BLANK" style="float:left;">';
|
3129 |
+
$text .= '<img width="150" src="'.$rel_image.'" class="attachment-showcase wp-post-image" alt="'.$rel_name.'" title="'.$rel_name.'" style="width:140px; margin-right:10px;">';
|
3130 |
+
$text .= '</a>';
|
3131 |
+
$text .= '<div class="float:left; padding-left:10px;">';
|
3132 |
+
$text .= '<h3 class="wplc-extension-title">'.$rel_name.'</h3>';
|
3133 |
+
$text .= '<p>'.__("Initiate a chat with any visitor at any time.","wplivechat").'</p>';
|
3134 |
+
$text .= '</div>';
|
3135 |
+
$text .= '<a href="'.$rel_link.'" title="'.$rel_name.'" class="button-secondary" target="_BLANK">'.__("Get this extension","wplivechat").'</a>';
|
3136 |
+
$text .= '</div>';
|
3137 |
+
|
3138 |
+
return $text;
|
3139 |
+
}
|
3140 |
+
|
3141 |
+
add_filter("wplc_filter_relevant_extensions_main","wplc_filter_control_relevant_extensions_main_mobile");
|
3142 |
+
function wplc_filter_control_relevant_extensions_main_mobile($text) {
|
3143 |
+
if (function_exists("wplc_mobile_check_if_logged_in")) { return $text; }
|
3144 |
+
|
3145 |
+
$rel_name = __("Mobile & Desktop App","wplivechat");
|
3146 |
+
$rel_image = "https://ccplugins.co/api-wplc-extensions/images/MobileDesktop-Icon.jpg";
|
3147 |
+
$rel_link = "http://wp-livechat.com/extensions/mobile-desktop-app-extension/?utm_source=plugin&utm_medium=link&utm_campaign=relevant_mobile";
|
3148 |
+
$text .= '<div class="wplc-extension relevant_extension">';
|
3149 |
+
$text .= '<a href="'.$rel_link.'" title="'.$rel_name.'" target="_BLANK" style="float:left;">';
|
3150 |
+
$text .= '<img width="150" src="'.$rel_image.'" class="attachment-showcase wp-post-image" alt="'.$rel_name.'" title="'.$rel_name.'" style="width:140px; margin-right:10px;">';
|
3151 |
+
$text .= '</a>';
|
3152 |
+
$text .= '<div class="float:left; padding-left:10px;">';
|
3153 |
+
$text .= '<h3 class="wplc-extension-title">'.$rel_name.'</h3>';
|
3154 |
+
$text .= '<p>'.__("Answer chats directly from your mobile phone or dekstop with our mobile app and desktop client","wplivechat").'</p>';
|
3155 |
+
$text .= '</div>';
|
3156 |
+
$text .= '<a href="'.$rel_link.'" title="'.$rel_name.'" class="button-secondary" target="_BLANK">'.__("Get this extension","wplivechat").'</a>';
|
3157 |
+
$text .= '</div>';
|
3158 |
+
|
3159 |
+
return $text;
|
3160 |
+
}
|
3161 |
+
|
3162 |
+
add_filter("wplc_filter_relevant_extensions_main","wplc_filter_control_relevant_extensions_main_cloud");
|
3163 |
+
function wplc_filter_control_relevant_extensions_main_cloud($text) {
|
3164 |
+
if (function_exists("wplc_cloud_filter_control_chat_messages")) { return $text; }
|
3165 |
+
|
3166 |
+
$rel_name = __("Cloud Server","wplivechat");
|
3167 |
+
$rel_image = "https://ccplugins.co/api-wplc-extensions/images/Cloud-Icon.jpg";
|
3168 |
+
$rel_link = "http://wp-livechat.com/extensions/cloud-server-extension/?utm_source=plugin&utm_medium=link&utm_campaign=relevant_cloud";
|
3169 |
+
$text .= '<div class="wplc-extension relevant_extension">';
|
3170 |
+
$text .= '<a href="'.$rel_link.'" title="'.$rel_name.'" target="_BLANK" style="float:left;">';
|
3171 |
+
$text .= '<img width="150" src="'.$rel_image.'" class="attachment-showcase wp-post-image" alt="'.$rel_name.'" title="'.$rel_name.'" style="width:140px; margin-right:10px;">';
|
3172 |
+
$text .= '</a>';
|
3173 |
+
$text .= '<div class="float:left; padding-left:10px;">';
|
3174 |
+
$text .= '<h3 class="wplc-extension-title">'.$rel_name.'</h3>';
|
3175 |
+
$text .= '<p>'.__("Reduce the resources required by your server - use our cloud server to host your chats.","wplivechat").'</p>';
|
3176 |
+
$text .= '</div>';
|
3177 |
+
$text .= '<a href="'.$rel_link.'" title="'.$rel_name.'" class="button-secondary" target="_BLANK">'.__("Get this extension","wplivechat").'</a>';
|
3178 |
+
$text .= '</div>';
|
3179 |
+
|
3180 |
+
return $text;
|
3181 |
+
}
|
3182 |
+
|
3183 |
+
|
3184 |
+
add_filter("wplc_filter_relevant_extensions_chatbox","wplc_filter_control_relevant_extensions_chatbox_initiate");
|
3185 |
+
function wplc_filter_control_relevant_extensions_chatbox_initiate($text) {
|
3186 |
+
if (function_exists("wplc_hook_control_intiate_check")) { return $text; }
|
3187 |
+
|
3188 |
+
$rel_name = __("Initiate Chats","wplivechat");
|
3189 |
+
$rel_image = "https://ccplugins.co/api-wplc-extensions/images/InitiateChat-Icon.jpg";
|
3190 |
+
$rel_link = "http://wp-livechat.com/extensions/initiate-chat-extension/?utm_source=plugin&utm_medium=link&utm_campaign=relevant_initiate2";
|
3191 |
+
$text .= '<div class="wplc-extension relevant_extension">';
|
3192 |
+
$text .= '<a href="'.$rel_link.'" title="'.$rel_name.'" target="_BLANK" style="float:left;">';
|
3193 |
+
$text .= '<img width="150" src="'.$rel_image.'" class="attachment-showcase wp-post-image" alt="'.$rel_name.'" title="'.$rel_name.'" style="width:140px; margin-right:10px;">';
|
3194 |
+
$text .= '</a>';
|
3195 |
+
$text .= '<div class="float:left; padding-left:10px;">';
|
3196 |
+
$text .= '<h3 class="wplc-extension-title">'.$rel_name.'</h3>';
|
3197 |
+
$text .= '<p>'.__("Initiate a chat with any visitor at any time.","wplivechat").'</p>';
|
3198 |
+
$text .= '</div>';
|
3199 |
+
$text .= '<a href="'.$rel_link.'" title="'.$rel_name.'" class="button-secondary" target="_BLANK">'.__("Get this extension","wplivechat").'</a>';
|
3200 |
+
$text .= '</div>';
|
3201 |
+
|
3202 |
+
return $text;
|
3203 |
+
}
|
3204 |
+
|
3205 |
+
|
3206 |
+
add_filter("wplc_filter_relevant_extensions_chatbox","wplc_filter_control_relevant_extensions_chatbox_acbc");
|
3207 |
+
function wplc_filter_control_relevant_extensions_chatbox_acbc($text) {
|
3208 |
+
if (function_exists("wplc_acbc_hook_control_settings_page")) { return $text; }
|
3209 |
+
$rel_name = __("Advanced Chat Box Control","wplivechat");
|
3210 |
+
$rel_image = "https://ccplugins.co/api-wplc-extensions/images/AdvancedChatBox-Icon.jpg";
|
3211 |
+
$rel_link = "http://wp-livechat.com/extensions/advanced-chat-box-control/?utm_source=plugin&utm_medium=link&utm_campaign=relevant_acbc";
|
3212 |
+
$text .= '<div class="wplc-extension relevant_extension">';
|
3213 |
+
$text .= '<a href="'.$rel_link.'" title="'.$rel_name.'" target="_BLANK" style="float:left;">';
|
3214 |
+
$text .= '<img width="150" src="'.$rel_image.'" class="attachment-showcase wp-post-image" alt="'.$rel_name.'" title="'.$rel_name.'" style="width:140px; margin-right:10px;">';
|
3215 |
+
$text .= '</a>';
|
3216 |
+
$text .= '<div class="float:left; padding-left:10px;">';
|
3217 |
+
$text .= '<h3 class="wplc-extension-title">'.$rel_name.'</h3>';
|
3218 |
+
$text .= '<p>'.__("Add your company logo, avatar and name to the chat box and add more advanced features.","wplivechat").'</p>';
|
3219 |
+
$text .= '</div>';
|
3220 |
+
$text .= '<a href="'.$rel_link.'" title="'.$rel_name.'" class="button-secondary" target="_BLANK">'.__("Get this extension","wplivechat").'</a>';
|
3221 |
+
$text .= '</div>';
|
3222 |
+
|
3223 |
+
return $text;
|
3224 |
+
}
|
3225 |
+
|
3226 |
+
|
3227 |
+
add_filter("wplc_filter_relevant_extensions_chatbox","wplc_filter_control_relevant_extensions_chatbox_include");
|
3228 |
+
function wplc_filter_control_relevant_extensions_chatbox_include($text) {
|
3229 |
+
if (function_exists("wplc_inex_filter_control_display_contents")) { return $text; }
|
3230 |
+
$rel_name = __("Include and Exclude Pages","wplivechat");
|
3231 |
+
$rel_image = "https://ccplugins.co/api-wplc-extensions/images/IncludeAndExclude-Icon.jpg";
|
3232 |
+
$rel_link = "http://wp-livechat.com/extensions/include-exclude-chat/?utm_source=plugin&utm_medium=link&utm_campaign=relevant_include";
|
3233 |
+
$text .= '<div class="wplc-extension relevant_extension">';
|
3234 |
+
$text .= '<a href="'.$rel_link.'" title="'.$rel_name.'" target="_BLANK" style="float:left;">';
|
3235 |
+
$text .= '<img width="150" src="'.$rel_image.'" class="attachment-showcase wp-post-image" alt="'.$rel_name.'" title="'.$rel_name.'" style="width:140px; margin-right:10px;">';
|
3236 |
+
$text .= '</a>';
|
3237 |
+
$text .= '<div class="float:left; padding-left:10px;">';
|
3238 |
+
$text .= '<h3 class="wplc-extension-title">'.$rel_name.'</h3>';
|
3239 |
+
$text .= '<p>'.__("Control where the chat box is displayed on your website. Choose which pages to include and/or exclude.","wplivechat").'</p>';
|
3240 |
+
$text .= '</div>';
|
3241 |
+
$text .= '<a href="'.$rel_link.'" title="'.$rel_name.'" class="button-secondary" target="_BLANK">'.__("Get this extension","wplivechat").'</a>';
|
3242 |
+
$text .= '</div>';
|
3243 |
+
|
3244 |
+
return $text;
|
3245 |
+
}
|
3246 |
+
|
3247 |
+
/**
|
3248 |
+
* Add to the chat box settings page
|
3249 |
+
* @return void
|
3250 |
+
* @since 1.0.00
|
3251 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
3252 |
+
*/
|
3253 |
+
add_action('wplc_hook_admin_settings_chat_box_settings_after','wplc_hook_control_settings_page_relevant_extensions_acbc',9);
|
3254 |
+
function wplc_hook_control_settings_page_relevant_extensions_acbc() {
|
3255 |
+
$check = apply_filters("wplc_filter_relevant_extensions_chatbox","");
|
3256 |
+
if ($check != "") {
|
3257 |
+
echo "<hr />";
|
3258 |
+
echo "<div style='padding:1%; width:98%; display:block; overflow:auto;'>";
|
3259 |
+
echo "<div class='display:block; font-weight:bold;'><strong>".__("Relevant Extensions",'wplivechat')."</strong><br /><br /></div>";
|
3260 |
+
echo "";
|
3261 |
+
echo $check;
|
3262 |
+
echo "";
|
3263 |
+
echo "";
|
3264 |
+
echo "</div>";
|
3265 |
+
}
|
3266 |
+
}
|
3267 |
+
|
3268 |
+
/**
|
3269 |
+
* Add to the chat box settings page
|
3270 |
+
* @return void
|
3271 |
+
* @since 1.0.00
|
3272 |
+
* @author Nick Duncan <nick@codecabin.co.za>
|
3273 |
+
*/
|
3274 |
+
add_action('wplc_hook_admin_settings_main_settings_after','wplc_hook_control_settings_page_relevant_extensions_main',9);
|
3275 |
+
function wplc_hook_control_settings_page_relevant_extensions_main() {
|
3276 |
+
$check = apply_filters("wplc_filter_relevant_extensions_main","");
|
3277 |
+
if ($check != "") {
|
3278 |
+
echo "<hr />";
|
3279 |
+
echo "<div style='padding:1%; width:98%; display:block; overflow:auto;'>";
|
3280 |
+
echo "<div class='display:block; font-weight:bold;'><strong>".__("Relevant Extensions",'wplivechat')."</strong><br /><br /></div>";
|
3281 |
+
echo "";
|
3282 |
+
echo $check;
|
3283 |
+
echo "";
|
3284 |
+
echo "";
|
3285 |
+
echo "</div>";
|
3286 |
+
}
|
3287 |
+
}
|
3288 |
+
|
3289 |
+
|
3290 |
+
|
3291 |
+
function wplc_admin_download_history($type, $cid){
|
3292 |
+
|
3293 |
+
global $wpdb;
|
3294 |
+
global $wplc_tblname_msgs;
|
3295 |
+
|
3296 |
+
$results = $wpdb->get_results(
|
3297 |
+
"
|
3298 |
+
SELECT *
|
3299 |
+
FROM $wplc_tblname_msgs
|
3300 |
+
WHERE `chat_sess_id` = '$cid'
|
3301 |
+
ORDER BY `timestamp` ASC
|
3302 |
+
LIMIT 0, 100
|
3303 |
+
"
|
3304 |
+
);
|
3305 |
+
|
3306 |
+
$fields[] = array(
|
3307 |
+
'id' => __('Chat ID', 'wplivechat'),
|
3308 |
+
'msgfrom' => __('From', 'wplivechat'),
|
3309 |
+
'msg' => __('Message', 'wplivechat'),
|
3310 |
+
'time' => __('Timestamp', 'wplivechat'),
|
3311 |
+
'orig' => __('Origin', 'wplivechat'),
|
3312 |
+
);
|
3313 |
+
|
3314 |
+
foreach ($results as $result => $key) {
|
3315 |
+
if($key->originates == 2){
|
3316 |
+
$user = __('user', 'wplivechat');
|
3317 |
+
} else {
|
3318 |
+
$user = __('agent', 'wplivechat');
|
3319 |
+
}
|
3320 |
+
|
3321 |
+
$fields[] = array(
|
3322 |
+
'id' => $key->chat_sess_id,
|
3323 |
+
'msgfrom' => $key->msgfrom,
|
3324 |
+
'msg' => apply_filters("wplc_filter_message_control_out",$key->msg),
|
3325 |
+
'time' => $key->timestamp,
|
3326 |
+
'orig' => $user,
|
3327 |
+
);
|
3328 |
+
}
|
3329 |
+
|
3330 |
+
ob_end_clean();
|
3331 |
+
|
3332 |
+
wplc_convert_to_csv_new($fields, 'live_chat_history_'.$cid.'.csv', ',');
|
3333 |
+
|
3334 |
+
exit();
|
3335 |
+
}
|
3336 |
+
|
3337 |
+
function wplc_convert_to_csv_new($in, $out, $del){
|
3338 |
+
|
3339 |
+
$f = fopen('php://memory', 'w');
|
3340 |
+
|
3341 |
+
foreach ($in as $line) {
|
3342 |
+
wplc_fputcsv_eol_new($f, $line, $del, "\r\n");
|
3343 |
+
}
|
3344 |
+
|
3345 |
+
fseek($f, 0);
|
3346 |
+
|
3347 |
+
header('Content-Type: application/csv');
|
3348 |
+
|
3349 |
+
header('Content-Disposition: attachement; filename="' . $out . '";');
|
3350 |
+
|
3351 |
+
fpassthru($f);
|
3352 |
+
}
|
3353 |
+
function wplc_fputcsv_eol_new($fp, $array, $del, $eol) {
|
3354 |
+
fputcsv($fp, $array,$del);
|
3355 |
+
if("\n\r" != $eol && 0 === fseek($fp, -1, SEEK_CUR)) {
|
3356 |
+
fwrite($fp, $eol);
|
3357 |
+
}
|
3358 |
+
}
|
3359 |
+
|
3360 |
+
|
3361 |
+
function wplc_plugin_row_invalid_api() {
|
3362 |
+
echo '<tr class="active"><td> </td><td colspan="2" style="color:red;">
|
3363 |
+
'.__('Your API Key is Invalid. You are not eligible for future updates. Please enter your API key <a href="admin.php?page=wplivechat-menu-api-keys-page">here</a>.','wplivechat').'
|
3364 |
+
</td></tr>';
|
3365 |
+
}
|