Version Description
- 2018-01-30 - Medium priority =
- Fixed a CSS bug
- Corrected a bug with the default theme not being set correctly.
Download this release
Release Info
Developer | WP-LiveChat |
Plugin | WP Live Chat Support |
Version | 8.0.03 |
Comparing to | |
See all releases |
Code changes from version 8.0.02 to 8.0.03
- css/wplcstyle.css +0 -8
- includes/surveys.php +1 -1
- js/wplc_u_admin_events.js +15 -3
- readme.txt +4 -0
- wp-live-chat-support.php +19 -9
css/wplcstyle.css
CHANGED
@@ -105,14 +105,6 @@
|
|
105 |
display: none;
|
106 |
}
|
107 |
|
108 |
-
<<<<<<< HEAD
|
109 |
-
#wplc_chatbox .wplc-user-message a,
|
110 |
-
#wplc_chatbox .wplc-admin-message a {
|
111 |
-
color: #ffffff !important;
|
112 |
-
text-decoration:underline !important;
|
113 |
-
=======
|
114 |
-
/* Gutenberg & Shortcode Chat Box styles */
|
115 |
-
|
116 |
.wplc_live_chat_support_shortcode .wp-live-chat-wraper {
|
117 |
position: relative;
|
118 |
z-index: 0;
|
105 |
display: none;
|
106 |
}
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
.wplc_live_chat_support_shortcode .wp-live-chat-wraper {
|
109 |
position: relative;
|
110 |
z-index: 0;
|
includes/surveys.php
CHANGED
@@ -227,7 +227,7 @@ function wplc_nimble_load_scripts() {
|
|
227 |
wp_localize_script( 'nimble-squirrel-user-script', 'ns_id', $ns_id );
|
228 |
|
229 |
|
230 |
-
if (isset($wplc_settings['wplc_newtheme'])) { $wplc_newtheme = $wplc_settings['wplc_newtheme']; } else { $wplc_newtheme == 'theme-
|
231 |
if (isset($wplc_newtheme)) {
|
232 |
if($wplc_newtheme == 'theme-1') {
|
233 |
if( isset( $settings['survey_display']) && $settings['survey_display'] == '1' ) {
|
227 |
wp_localize_script( 'nimble-squirrel-user-script', 'ns_id', $ns_id );
|
228 |
|
229 |
|
230 |
+
if (isset($wplc_settings['wplc_newtheme'])) { $wplc_newtheme = $wplc_settings['wplc_newtheme']; } else { $wplc_newtheme == 'theme-2'; }
|
231 |
if (isset($wplc_newtheme)) {
|
232 |
if($wplc_newtheme == 'theme-1') {
|
233 |
if( isset( $settings['survey_display']) && $settings['survey_display'] == '1' ) {
|
js/wplc_u_admin_events.js
CHANGED
@@ -7,6 +7,12 @@ var wplc_new_chat_ringer_dismissed = false;
|
|
7 |
*/
|
8 |
var wplc_agent_chat_statuses = [];
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
jQuery("#toolbar-item-open-bleeper").hide();
|
11 |
|
12 |
|
@@ -74,6 +80,7 @@ jQuery(document).on("bleeper_connect", function(e) {
|
|
74 |
|
75 |
} else {
|
76 |
socket = io.connect(node_uri, { secure:true, query : e.ndata.query_string } );
|
|
|
77 |
bleeper_delegates();
|
78 |
bleeper_update_agent_unread();
|
79 |
|
@@ -609,9 +616,14 @@ jQuery(document).on("bleeper_dom_ready", function(e) {
|
|
609 |
});
|
610 |
jQuery(document).on('bleeper_disconnected', function(e) {
|
611 |
if (connection_lost_type == '' || typeof connection_lost_type === "undefined") {
|
612 |
-
|
613 |
-
|
614 |
-
|
|
|
|
|
|
|
|
|
|
|
615 |
} else if (connection_lost_type === 'offline_status') {
|
616 |
jQuery(".nifty_bg_holder_text").html("You are not accepting chats");
|
617 |
jQuery(".nifty_bg_holder").fadeIn();
|
7 |
*/
|
8 |
var wplc_agent_chat_statuses = [];
|
9 |
|
10 |
+
/**
|
11 |
+
* Added this to track the whether connection is open or closed
|
12 |
+
* Used in the disconnect notice to determine if a connection has truly been lost
|
13 |
+
*/
|
14 |
+
var wplc_node_socket_connected = false;
|
15 |
+
|
16 |
jQuery("#toolbar-item-open-bleeper").hide();
|
17 |
|
18 |
|
80 |
|
81 |
} else {
|
82 |
socket = io.connect(node_uri, { secure:true, query : e.ndata.query_string } );
|
83 |
+
wplc_node_socket_connected = true;
|
84 |
bleeper_delegates();
|
85 |
bleeper_update_agent_unread();
|
86 |
|
616 |
});
|
617 |
jQuery(document).on('bleeper_disconnected', function(e) {
|
618 |
if (connection_lost_type == '' || typeof connection_lost_type === "undefined") {
|
619 |
+
wplc_node_socket_connected = false;
|
620 |
+
setTimeout(function(){
|
621 |
+
if(wplc_node_socket_connected === false){
|
622 |
+
jQuery(".nifty_bg_holder_text").html("Connection to the server lost.. please be patient while we try restore the connection...");
|
623 |
+
jQuery(".nifty_bg_holder").fadeIn();
|
624 |
+
jQuery(".nifty_bg_holder").css('left','0');
|
625 |
+
}
|
626 |
+
}, 2000);
|
627 |
} else if (connection_lost_type === 'offline_status') {
|
628 |
jQuery(".nifty_bg_holder_text").html("You are not accepting chats");
|
629 |
jQuery(".nifty_bg_holder").fadeIn();
|
readme.txt
CHANGED
@@ -230,6 +230,10 @@ It is highly recommended that you upgrade to WP Live Chat Support version 4.4.0
|
|
230 |
|
231 |
== Changelog ==
|
232 |
|
|
|
|
|
|
|
|
|
233 |
= 8.0.02 - 2018-01-29 =
|
234 |
* Fixed a PHP warning
|
235 |
* Modified rest_url filter to no longer use anonymous function
|
230 |
|
231 |
== Changelog ==
|
232 |
|
233 |
+
= 8.0.03 - 2018-01-30 - Medium priority =
|
234 |
+
* Fixed a CSS bug
|
235 |
+
* Corrected a bug with the default theme not being set correctly.
|
236 |
+
|
237 |
= 8.0.02 - 2018-01-29 =
|
238 |
* Fixed a PHP warning
|
239 |
* Modified rest_url filter to no longer use anonymous function
|
wp-live-chat-support.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Live Chat Support
|
4 |
Plugin URI: http://www.wp-livechat.com
|
5 |
Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP Live Chat Support. No third party connection required!
|
6 |
-
Version: 8.0.
|
7 |
Author: WP-LiveChat
|
8 |
Author URI: http://www.wp-livechat.com
|
9 |
Text Domain: wplivechat
|
@@ -12,6 +12,10 @@
|
|
12 |
|
13 |
/**
|
14 |
*
|
|
|
|
|
|
|
|
|
15 |
* 8.0.02 - 2018-01-29 - Medium priority
|
16 |
* Fixed a PHP warning
|
17 |
* Modified rest_url filter to no longer use anonymous function
|
@@ -590,7 +594,7 @@ global $debug_start;
|
|
590 |
$wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
|
591 |
$wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
|
592 |
$wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
|
593 |
-
$wplc_version = "8.0.
|
594 |
|
595 |
define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
|
596 |
define('WPLC_BASIC_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
|
@@ -1219,7 +1223,7 @@ function wplc_push_js_to_front_basic() {
|
|
1219 |
wp_enqueue_script('wplc-user-script');
|
1220 |
wp_enqueue_script('wplc-user-events-script');
|
1221 |
|
1222 |
-
if (isset($wplc_settings['wplc_newtheme'])) { $wplc_newtheme = $wplc_settings['wplc_newtheme']; } else { }
|
1223 |
if (isset($wplc_newtheme)) {
|
1224 |
if($wplc_newtheme == 'theme-1') {
|
1225 |
wp_register_script('wplc-theme-classic', plugins_url('/js/themes/classic.js', __FILE__),array('wplc-user-script'),$wplc_version);
|
@@ -1691,13 +1695,14 @@ function wplc_filter_control_live_chat_box_html_main_div_top($wplc_settings,$log
|
|
1691 |
|
1692 |
|
1693 |
$wplc_extra_attr = apply_filters("wplc_filter_chat_header_extra_attr","");
|
1694 |
-
if (isset($wplc_settings['wplc_newtheme'])) { $wplc_newtheme = $wplc_settings['wplc_newtheme']; } else { }
|
1695 |
if (isset($wplc_newtheme)) {
|
1696 |
if($wplc_newtheme == 'theme-1') { $wplc_theme_type = "classic"; }
|
1697 |
else if($wplc_newtheme == 'theme-2') { $wplc_theme_type = "modern"; }
|
1698 |
else { $wplc_theme_type = "modern"; }
|
1699 |
}
|
1700 |
|
|
|
1701 |
if (isset($wplc_settings['wplc_newtheme']) && $wplc_settings['wplc_newtheme'] == "theme-2") {
|
1702 |
$hovercard_content = "<div class='wplc_hovercard_content_left'>".apply_filters("wplc_filter_modern_theme_hovercard_content_left","")."</div><div class='wplc_hovercard_content_right'>".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,'wplc-color-4'))."</div>";
|
1703 |
$hovercard_content = apply_filters("wplc_filter_hovercard_content", $hovercard_content);
|
@@ -1744,7 +1749,7 @@ function wplc_filter_control_live_chat_box_html_header_div_top($wplc_settings) {
|
|
1744 |
|
1745 |
$ret_msg = "";
|
1746 |
|
1747 |
-
$current_theme = isset($wplc_settings['wplc_newtheme']) ? $wplc_settings['wplc_newtheme'] : "";
|
1748 |
if($current_theme === "theme-1"){
|
1749 |
$ret_msg .= apply_filters("wplc_filter_chat_header_above","", $wplc_settings); //Ratings/Social Icon Filter
|
1750 |
}
|
@@ -1757,7 +1762,7 @@ function wplc_filter_control_live_chat_box_html_header_div_top($wplc_settings) {
|
|
1757 |
|
1758 |
add_filter("wplc_filter_chat_header_under","wplc_filter_control_chat_header_under",1,2);
|
1759 |
function wplc_filter_control_chat_header_under($ret_msg,$wplc_settings) {
|
1760 |
-
$current_theme = isset($wplc_settings['wplc_newtheme']) ? $wplc_settings['wplc_newtheme'] : "";
|
1761 |
if($current_theme === "theme-2"){
|
1762 |
|
1763 |
if (function_exists("wplc_acbc_filter_control_chat_header_under")) {
|
@@ -2102,6 +2107,7 @@ function wplc_filter_control_intro_text_heading($content, $wplc_settings){
|
|
2102 |
|
2103 |
add_filter("wplc_filter_live_chat_box_above_main_div","wplc_filter_control_live_chat_box_above_main_div",10,3);
|
2104 |
function wplc_filter_control_live_chat_box_above_main_div( $msg, $wplc_settings, $cid ) {
|
|
|
2105 |
if (isset($wplc_settings['wplc_newtheme']) && $wplc_settings['wplc_newtheme'] == "theme-2") {
|
2106 |
|
2107 |
$agent_info = '';
|
@@ -2187,6 +2193,7 @@ function wplc_filter_control_live_chat_box_html_4th_layer($wplc_settings,$wplc_u
|
|
2187 |
|
2188 |
|
2189 |
$ret_msg = "";
|
|
|
2190 |
if (isset($wplc_settings['wplc_newtheme']) && $wplc_settings['wplc_newtheme'] == 'theme-1') {
|
2191 |
$ret_msg .= apply_filters("wplc_filter_typing_control_div","");
|
2192 |
}
|
@@ -2214,6 +2221,7 @@ function wplc_filter_control_live_chat_box_html_4th_layer($wplc_settings,$wplc_u
|
|
2214 |
$ret_msg .= "<p>";
|
2215 |
$placeholder = __('Type here','wplivechat');
|
2216 |
$ret_msg .= "<textarea type=\"text\" name=\"wplc_chatmsg\" id=\"wplc_chatmsg\" placeholder=\"".$placeholder."\" onclick=\"jQuery(this).select();\" class='wdt-emoji-bundle-enabled'></textarea>";
|
|
|
2217 |
if (isset($wplc_settings['wplc_newtheme']) && $wplc_settings['wplc_newtheme'] == 'theme-2') {
|
2218 |
$ret_msg .= apply_filters("wplc_filter_typing_control_div_theme_2","");
|
2219 |
}
|
@@ -2227,7 +2235,7 @@ function wplc_filter_control_live_chat_box_html_4th_layer($wplc_settings,$wplc_u
|
|
2227 |
|
2228 |
$ret_msg .= function_exists("wplc_emoji_selector_div") ? wplc_emoji_selector_div() : "";
|
2229 |
|
2230 |
-
$current_theme = isset($wplc_settings['wplc_newtheme']) ? $wplc_settings['wplc_newtheme'] : "";
|
2231 |
if($current_theme === "theme-2"){
|
2232 |
$ret_msg .= apply_filters("wplc_filter_chat_4th_layer_below_input","", $wplc_settings); //Ratings/Social Icon Filter
|
2233 |
}
|
@@ -2250,6 +2258,8 @@ function wplc_filter_control_live_chat_box_html_1st_layer($wplc_settings,$logged
|
|
2250 |
|
2251 |
$ret_msg = "<div id='wplc_first_message'>";
|
2252 |
|
|
|
|
|
2253 |
if ($logged_in) {
|
2254 |
$wplc_fst_1 = __('Questions?', 'wplivechat');
|
2255 |
$wplc_fst_2 = __('Chat with us', 'wplivechat');
|
@@ -2481,7 +2491,7 @@ add_filter("wplc_theme_control","wplc_theme_control_function",10,4);
|
|
2481 |
function wplc_theme_control_function($wplc_settings,$logged_in,$wplc_using_locale, $cid) {
|
2482 |
|
2483 |
if (!$wplc_settings) { return ""; }
|
2484 |
-
if (isset($wplc_settings['wplc_newtheme'])) { $wplc_newtheme = $wplc_settings['wplc_newtheme']; } else { }
|
2485 |
|
2486 |
$default_theme = wplc_return_default_theme($wplc_settings,$logged_in,$wplc_using_locale, $cid);
|
2487 |
if (isset($wplc_newtheme)) {
|
@@ -4016,7 +4026,7 @@ function wplc_add_user_stylesheet() {
|
|
4016 |
|
4017 |
|
4018 |
|
4019 |
-
if (isset($wplc_settings['wplc_newtheme'])) { $wplc_newtheme = $wplc_settings['wplc_newtheme']; } else { }
|
4020 |
if (isset($wplc_newtheme)) {
|
4021 |
if($wplc_newtheme == 'theme-1') {
|
4022 |
wp_register_style('wplc-theme-classic', plugins_url('/css/themes/classic.css', __FILE__), array(), $wplc_version);
|
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: 8.0.03
|
7 |
Author: WP-LiveChat
|
8 |
Author URI: http://www.wp-livechat.com
|
9 |
Text Domain: wplivechat
|
12 |
|
13 |
/**
|
14 |
*
|
15 |
+
* 8.0.03 - 2018-01-30 - Medium priority
|
16 |
+
* Fixed a CSS bug
|
17 |
+
* Corrected a bug with the default theme not being set correctly.
|
18 |
+
*
|
19 |
* 8.0.02 - 2018-01-29 - Medium priority
|
20 |
* Fixed a PHP warning
|
21 |
* Modified rest_url filter to no longer use anonymous function
|
594 |
$wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
|
595 |
$wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
|
596 |
$wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
|
597 |
+
$wplc_version = "8.0.03";
|
598 |
|
599 |
define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
|
600 |
define('WPLC_BASIC_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
|
1223 |
wp_enqueue_script('wplc-user-script');
|
1224 |
wp_enqueue_script('wplc-user-events-script');
|
1225 |
|
1226 |
+
if (isset($wplc_settings['wplc_newtheme'])) { $wplc_newtheme = $wplc_settings['wplc_newtheme']; } else { $wplc_newtheme = "theme-2"; }
|
1227 |
if (isset($wplc_newtheme)) {
|
1228 |
if($wplc_newtheme == 'theme-1') {
|
1229 |
wp_register_script('wplc-theme-classic', plugins_url('/js/themes/classic.js', __FILE__),array('wplc-user-script'),$wplc_version);
|
1695 |
|
1696 |
|
1697 |
$wplc_extra_attr = apply_filters("wplc_filter_chat_header_extra_attr","");
|
1698 |
+
if (isset($wplc_settings['wplc_newtheme'])) { $wplc_newtheme = $wplc_settings['wplc_newtheme']; } else { $wplc_newtheme = "theme-2"; }
|
1699 |
if (isset($wplc_newtheme)) {
|
1700 |
if($wplc_newtheme == 'theme-1') { $wplc_theme_type = "classic"; }
|
1701 |
else if($wplc_newtheme == 'theme-2') { $wplc_theme_type = "modern"; }
|
1702 |
else { $wplc_theme_type = "modern"; }
|
1703 |
}
|
1704 |
|
1705 |
+
if(!isset($wplc_settings['wplc_newtheme'])){ $wplc_settings['wplc_newtheme'] = "theme-2"; }
|
1706 |
if (isset($wplc_settings['wplc_newtheme']) && $wplc_settings['wplc_newtheme'] == "theme-2") {
|
1707 |
$hovercard_content = "<div class='wplc_hovercard_content_left'>".apply_filters("wplc_filter_modern_theme_hovercard_content_left","")."</div><div class='wplc_hovercard_content_right'>".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,'wplc-color-4'))."</div>";
|
1708 |
$hovercard_content = apply_filters("wplc_filter_hovercard_content", $hovercard_content);
|
1749 |
|
1750 |
$ret_msg = "";
|
1751 |
|
1752 |
+
$current_theme = isset($wplc_settings['wplc_newtheme']) ? $wplc_settings['wplc_newtheme'] : "theme-2";
|
1753 |
if($current_theme === "theme-1"){
|
1754 |
$ret_msg .= apply_filters("wplc_filter_chat_header_above","", $wplc_settings); //Ratings/Social Icon Filter
|
1755 |
}
|
1762 |
|
1763 |
add_filter("wplc_filter_chat_header_under","wplc_filter_control_chat_header_under",1,2);
|
1764 |
function wplc_filter_control_chat_header_under($ret_msg,$wplc_settings) {
|
1765 |
+
$current_theme = isset($wplc_settings['wplc_newtheme']) ? $wplc_settings['wplc_newtheme'] : "theme-2";
|
1766 |
if($current_theme === "theme-2"){
|
1767 |
|
1768 |
if (function_exists("wplc_acbc_filter_control_chat_header_under")) {
|
2107 |
|
2108 |
add_filter("wplc_filter_live_chat_box_above_main_div","wplc_filter_control_live_chat_box_above_main_div",10,3);
|
2109 |
function wplc_filter_control_live_chat_box_above_main_div( $msg, $wplc_settings, $cid ) {
|
2110 |
+
if(!isset($wplc_settings['wplc_newtheme'])){ $wplc_settings['wplc_newtheme'] = "theme-2"; }
|
2111 |
if (isset($wplc_settings['wplc_newtheme']) && $wplc_settings['wplc_newtheme'] == "theme-2") {
|
2112 |
|
2113 |
$agent_info = '';
|
2193 |
|
2194 |
|
2195 |
$ret_msg = "";
|
2196 |
+
if(!isset($wplc_settings['wplc_newtheme'])){ $wplc_settings['wplc_newtheme'] = "theme-2"; }
|
2197 |
if (isset($wplc_settings['wplc_newtheme']) && $wplc_settings['wplc_newtheme'] == 'theme-1') {
|
2198 |
$ret_msg .= apply_filters("wplc_filter_typing_control_div","");
|
2199 |
}
|
2221 |
$ret_msg .= "<p>";
|
2222 |
$placeholder = __('Type here','wplivechat');
|
2223 |
$ret_msg .= "<textarea type=\"text\" name=\"wplc_chatmsg\" id=\"wplc_chatmsg\" placeholder=\"".$placeholder."\" onclick=\"jQuery(this).select();\" class='wdt-emoji-bundle-enabled'></textarea>";
|
2224 |
+
if(!isset($wplc_settings['wplc_newtheme'])){ $wplc_settings['wplc_newtheme'] = "theme-2"; }
|
2225 |
if (isset($wplc_settings['wplc_newtheme']) && $wplc_settings['wplc_newtheme'] == 'theme-2') {
|
2226 |
$ret_msg .= apply_filters("wplc_filter_typing_control_div_theme_2","");
|
2227 |
}
|
2235 |
|
2236 |
$ret_msg .= function_exists("wplc_emoji_selector_div") ? wplc_emoji_selector_div() : "";
|
2237 |
|
2238 |
+
$current_theme = isset($wplc_settings['wplc_newtheme']) ? $wplc_settings['wplc_newtheme'] : "theme-2";
|
2239 |
if($current_theme === "theme-2"){
|
2240 |
$ret_msg .= apply_filters("wplc_filter_chat_4th_layer_below_input","", $wplc_settings); //Ratings/Social Icon Filter
|
2241 |
}
|
2258 |
|
2259 |
$ret_msg = "<div id='wplc_first_message'>";
|
2260 |
|
2261 |
+
if(!isset($wplc_settings['wplc_newtheme'])){ $wplc_settings['wplc_newtheme'] = "theme-2"; }
|
2262 |
+
|
2263 |
if ($logged_in) {
|
2264 |
$wplc_fst_1 = __('Questions?', 'wplivechat');
|
2265 |
$wplc_fst_2 = __('Chat with us', 'wplivechat');
|
2491 |
function wplc_theme_control_function($wplc_settings,$logged_in,$wplc_using_locale, $cid) {
|
2492 |
|
2493 |
if (!$wplc_settings) { return ""; }
|
2494 |
+
if (isset($wplc_settings['wplc_newtheme'])) { $wplc_newtheme = $wplc_settings['wplc_newtheme']; } else { $wplc_newtheme = "theme-2"; }
|
2495 |
|
2496 |
$default_theme = wplc_return_default_theme($wplc_settings,$logged_in,$wplc_using_locale, $cid);
|
2497 |
if (isset($wplc_newtheme)) {
|
4026 |
|
4027 |
|
4028 |
|
4029 |
+
if (isset($wplc_settings['wplc_newtheme'])) { $wplc_newtheme = $wplc_settings['wplc_newtheme']; } else { $wplc_newtheme = "theme-2"; }
|
4030 |
if (isset($wplc_newtheme)) {
|
4031 |
if($wplc_newtheme == 'theme-1') {
|
4032 |
wp_register_style('wplc-theme-classic', plugins_url('/css/themes/classic.css', __FILE__), array(), $wplc_version);
|