Version Description
- 2017-06-08 - Low Priority =
- Tested on WordPress 4.8
Download this release
Release Info
Developer | WP-LiveChat |
Plugin | WP Live Chat Support |
Version | 7.0.08 |
Comparing to | |
See all releases |
Code changes from version 7.0.07 to 7.0.08
- css/chat-style.css +0 -10
- css/themes/modern.css +2 -2
- functions.php +8 -15
- images/Thumbs.db +0 -0
- images/poke_group.png +0 -0
- readme.txt +4 -1
- wp-live-chat-support.php +20 -43
css/chat-style.css
CHANGED
@@ -992,14 +992,4 @@ span.wplc_system_notification {
|
|
992 |
.wplc-require-user-info__item {
|
993 |
margin-bottom: 5px;
|
994 |
|
995 |
-
}
|
996 |
-
.wplc-chat-box-notification--disabled {
|
997 |
-
padding: 5px;
|
998 |
-
display: block;
|
999 |
-
width: 40%;
|
1000 |
-
margin-left: auto;
|
1001 |
-
margin-right: auto;
|
1002 |
-
border: 1px solid #d26d6d;
|
1003 |
-
background-color: #f3bfbf;
|
1004 |
-
font-weight: bold;
|
1005 |
}
|
992 |
.wplc-require-user-info__item {
|
993 |
margin-bottom: 5px;
|
994 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
995 |
}
|
css/themes/modern.css
CHANGED
@@ -271,7 +271,7 @@
|
|
271 |
}
|
272 |
.wplc_close.wplc_left{
|
273 |
padding-right: 45px;
|
274 |
-
height:
|
275 |
}
|
276 |
|
277 |
|
@@ -301,7 +301,7 @@
|
|
301 |
|
302 |
.wplc_close.wplc_right{
|
303 |
padding-left: 75px;
|
304 |
-
height:
|
305 |
border-radius: 5px 0px 0px 5px !important;
|
306 |
}
|
307 |
.wplc_open.wplc_right #wp-live-chat-header{
|
271 |
}
|
272 |
.wplc_close.wplc_left{
|
273 |
padding-right: 45px;
|
274 |
+
height: 220px;
|
275 |
}
|
276 |
|
277 |
|
301 |
|
302 |
.wplc_close.wplc_right{
|
303 |
padding-left: 75px;
|
304 |
+
height: 220px;
|
305 |
border-radius: 5px 0px 0px 5px !important;
|
306 |
}
|
307 |
.wplc_open.wplc_right #wp-live-chat-header{
|
functions.php
CHANGED
@@ -443,7 +443,7 @@ function wplc_filter_control_list_chats_actions($actions,$result,$post_data) {
|
|
443 |
$url = admin_url( 'admin.php?page=wplivechat-menu'.$url_params);
|
444 |
$actions = "<a href=\"".$url."\" class=\"wplc_open_chat button button-primary\" window-title=\"WP_Live_Chat_".$result->id."\">". apply_filters("wplc_accept_chat_button_filter", __("Accept Chat","wplivechat"), $result->id)."</a>";
|
445 |
}
|
446 |
-
else if (intval($result->status) == 3
|
447 |
$url_params = "&action=ac&cid=".$result->id.$aid;
|
448 |
$url = admin_url( 'admin.php?page=wplivechat-menu'.$url_params);
|
449 |
if ( ! function_exists("wplc_pro_version_control") || !isset( $result->agent_id ) || $wplc_current_user == $result->agent_id ) { //Added backwards compat checks
|
@@ -457,7 +457,7 @@ function wplc_filter_control_list_chats_actions($actions,$result,$post_data) {
|
|
457 |
$url = admin_url( 'admin.php?page=wplivechat-menu'.$url_params);
|
458 |
$actions = "<a href=\"".$url."\" class=\"wplc_open_chat button button-primary\" window-title=\"WP_Live_Chat_".$result->id."\">".__("Accept Chat","wplivechat")."</a>";
|
459 |
}
|
460 |
-
else if (intval($result->status) == 12
|
461 |
$url_params = "&action=ac&cid=".$result->id.$aid;
|
462 |
$url = admin_url( 'admin.php?page=wplivechat-menu'.$url_params);
|
463 |
$actions = "<a href=\"".$url."\" class=\"wplc_open_chat button button-primary\" window-title=\"WP_Live_Chat_".$result->id."\">".__("Open Chat","wplivechat")."</a>";
|
@@ -568,6 +568,7 @@ function wplc_list_chats_new($post_data) {
|
|
568 |
|
569 |
|
570 |
function wplc_return_user_chat_messages($cid,$wplc_settings = false,$cdata = false) {
|
|
|
571 |
global $wpdb;
|
572 |
global $wplc_tblname_msgs;
|
573 |
|
@@ -820,7 +821,7 @@ function wplc_return_chat_messages($cid, $transcript = false, $html = true, $wpl
|
|
820 |
$previous_time = "";
|
821 |
$previous_timestamp = 0;
|
822 |
foreach ($results as $result) {
|
823 |
-
|
824 |
$system_notification = false;
|
825 |
|
826 |
$from = $result->msgfrom;
|
@@ -906,20 +907,13 @@ function wplc_return_chat_messages($cid, $transcript = false, $html = true, $wpl
|
|
906 |
} else {
|
907 |
$image = "";
|
908 |
}
|
909 |
-
|
910 |
} else if ($result->originates == 0 || $result->originates == 3) {
|
911 |
-
|
912 |
$system_notification = true;
|
913 |
$cuid = get_current_user_id();
|
914 |
$is_agent = get_user_meta(esc_html( $cuid ), 'wplc_ma_agent', true);
|
915 |
-
if ($is_agent && $result->originates == 3
|
916 |
/* this user is an agent and the notification is meant for an agent, therefore display it */
|
917 |
$display_notification = true;
|
918 |
-
|
919 |
-
/* check if this came from the front end.. if it did, then dont display it (if this code is removed, all notifications will be displayed to agents who are logged in and chatting with themselves during testing, which may cause confusion) */
|
920 |
-
if (isset($_POST) && isset($_POST['action']) && sanitize_text_field( $_POST['action'] ) == "wplc_call_to_server_visitor") {
|
921 |
-
$display_notification = false;
|
922 |
-
}
|
923 |
}
|
924 |
else if (!$is_agent && $result->originates == 0) {
|
925 |
/* this user is a not an agent and the notification is meant for a users, therefore display it */
|
@@ -929,6 +923,7 @@ function wplc_return_chat_messages($cid, $transcript = false, $html = true, $wpl
|
|
929 |
|
930 |
$display_notification = false;
|
931 |
}
|
|
|
932 |
}
|
933 |
|
934 |
if (!$system_notification) {
|
@@ -1492,6 +1487,7 @@ function wplc_user_initiate_chat($name,$email,$cid = null,$session) {
|
|
1492 |
|
1493 |
global $wpdb;
|
1494 |
global $wplc_tblname_chats;
|
|
|
1495 |
|
1496 |
|
1497 |
$wplc_settings = get_option('WPLC_SETTINGS');
|
@@ -1576,7 +1572,6 @@ function wplc_user_initiate_chat($name,$email,$cid = null,$session) {
|
|
1576 |
),
|
1577 |
array('%d')
|
1578 |
);
|
1579 |
-
do_action("wplc_hook_initiate_chat",array("cid" => $cid, "name" => $name, "email" => $email));
|
1580 |
|
1581 |
do_action("wplc_start_chat_hook_after_data_insert", $cid);
|
1582 |
return $cid;
|
@@ -1925,8 +1920,7 @@ function wplc_admin_display_missed_chats() {
|
|
1925 |
WHERE (`status` = 7
|
1926 |
OR `agent_id` = 0)
|
1927 |
AND `email` != 'no email set'
|
1928 |
-
|
1929 |
-
ORDER BY `timestamp` DESC
|
1930 |
";
|
1931 |
} else {
|
1932 |
$sql = "
|
@@ -1934,7 +1928,6 @@ ORDER BY `timestamp` DESC
|
|
1934 |
FROM $wplc_tblname_chats
|
1935 |
WHERE `status` = 7
|
1936 |
AND `email` != 'no email set'
|
1937 |
-
AND `email` NOT REGEXP '^[0-9]{6}@[0-9]{6}\.com$'
|
1938 |
ORDER BY `timestamp` DESC
|
1939 |
";
|
1940 |
}
|
443 |
$url = admin_url( 'admin.php?page=wplivechat-menu'.$url_params);
|
444 |
$actions = "<a href=\"".$url."\" class=\"wplc_open_chat button button-primary\" window-title=\"WP_Live_Chat_".$result->id."\">". apply_filters("wplc_accept_chat_button_filter", __("Accept Chat","wplivechat"), $result->id)."</a>";
|
445 |
}
|
446 |
+
else if (intval($result->status) == 3) {
|
447 |
$url_params = "&action=ac&cid=".$result->id.$aid;
|
448 |
$url = admin_url( 'admin.php?page=wplivechat-menu'.$url_params);
|
449 |
if ( ! function_exists("wplc_pro_version_control") || !isset( $result->agent_id ) || $wplc_current_user == $result->agent_id ) { //Added backwards compat checks
|
457 |
$url = admin_url( 'admin.php?page=wplivechat-menu'.$url_params);
|
458 |
$actions = "<a href=\"".$url."\" class=\"wplc_open_chat button button-primary\" window-title=\"WP_Live_Chat_".$result->id."\">".__("Accept Chat","wplivechat")."</a>";
|
459 |
}
|
460 |
+
else if (intval($result->status) == 12) {
|
461 |
$url_params = "&action=ac&cid=".$result->id.$aid;
|
462 |
$url = admin_url( 'admin.php?page=wplivechat-menu'.$url_params);
|
463 |
$actions = "<a href=\"".$url."\" class=\"wplc_open_chat button button-primary\" window-title=\"WP_Live_Chat_".$result->id."\">".__("Open Chat","wplivechat")."</a>";
|
568 |
|
569 |
|
570 |
function wplc_return_user_chat_messages($cid,$wplc_settings = false,$cdata = false) {
|
571 |
+
|
572 |
global $wpdb;
|
573 |
global $wplc_tblname_msgs;
|
574 |
|
821 |
$previous_time = "";
|
822 |
$previous_timestamp = 0;
|
823 |
foreach ($results as $result) {
|
824 |
+
|
825 |
$system_notification = false;
|
826 |
|
827 |
$from = $result->msgfrom;
|
907 |
} else {
|
908 |
$image = "";
|
909 |
}
|
|
|
910 |
} else if ($result->originates == 0 || $result->originates == 3) {
|
|
|
911 |
$system_notification = true;
|
912 |
$cuid = get_current_user_id();
|
913 |
$is_agent = get_user_meta(esc_html( $cuid ), 'wplc_ma_agent', true);
|
914 |
+
if ($is_agent && $result->originates == 3) {
|
915 |
/* this user is an agent and the notification is meant for an agent, therefore display it */
|
916 |
$display_notification = true;
|
|
|
|
|
|
|
|
|
|
|
917 |
}
|
918 |
else if (!$is_agent && $result->originates == 0) {
|
919 |
/* this user is a not an agent and the notification is meant for a users, therefore display it */
|
923 |
|
924 |
$display_notification = false;
|
925 |
}
|
926 |
+
|
927 |
}
|
928 |
|
929 |
if (!$system_notification) {
|
1487 |
|
1488 |
global $wpdb;
|
1489 |
global $wplc_tblname_chats;
|
1490 |
+
do_action("wplc_hook_initiate_chat",array("cid" => $cid, "name" => $name, "email" => $email));
|
1491 |
|
1492 |
|
1493 |
$wplc_settings = get_option('WPLC_SETTINGS');
|
1572 |
),
|
1573 |
array('%d')
|
1574 |
);
|
|
|
1575 |
|
1576 |
do_action("wplc_start_chat_hook_after_data_insert", $cid);
|
1577 |
return $cid;
|
1920 |
WHERE (`status` = 7
|
1921 |
OR `agent_id` = 0)
|
1922 |
AND `email` != 'no email set'
|
1923 |
+
ORDER BY `timestamp` DESC
|
|
|
1924 |
";
|
1925 |
} else {
|
1926 |
$sql = "
|
1928 |
FROM $wplc_tblname_chats
|
1929 |
WHERE `status` = 7
|
1930 |
AND `email` != 'no email set'
|
|
|
1931 |
ORDER BY `timestamp` DESC
|
1932 |
";
|
1933 |
}
|
images/Thumbs.db
ADDED
Binary file
|
images/poke_group.png
DELETED
Binary file
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: WP-LiveChat, NickDuncan, CodeCabin_, Jarryd Long, dylanauty
|
|
3 |
Donate link: http://www.wp-livechat.com
|
4 |
Tags: live chat, live support, chat plugin, live help, wordpress live chat, chat, live chat plugin, live support plugin, live chat support plugin, chat plugin, support plugin, live help
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 4.
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2
|
9 |
|
@@ -220,6 +220,9 @@ It is highly recommended that you upgrade to WP Live Chat Support version 4.4.0
|
|
220 |
|
221 |
== Changelog ==
|
222 |
|
|
|
|
|
|
|
223 |
= 7.0.07 -2017-05-16 - Medium Priority =
|
224 |
* You can now change the text of the offline message button
|
225 |
* You can now change the text of the close chat button
|
3 |
Donate link: http://www.wp-livechat.com
|
4 |
Tags: live chat, live support, chat plugin, live help, wordpress live chat, chat, live chat plugin, live support plugin, live chat support plugin, chat plugin, support plugin, live help
|
5 |
Requires at least: 3.8
|
6 |
+
Tested up to: 4.8
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2
|
9 |
|
220 |
|
221 |
== Changelog ==
|
222 |
|
223 |
+
= 7.0.08 - 2017-06-08 - Low Priority =
|
224 |
+
* Tested on WordPress 4.8
|
225 |
+
|
226 |
= 7.0.07 -2017-05-16 - Medium Priority =
|
227 |
* You can now change the text of the offline message button
|
228 |
* You can now change the text of the close chat button
|
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: 7.0.
|
7 |
Author: WP-LiveChat
|
8 |
Author URI: http://www.wp-livechat.com
|
9 |
Text Domain: wplivechat
|
@@ -11,22 +11,23 @@
|
|
11 |
*/
|
12 |
|
13 |
/**
|
14 |
-
* 7.0.
|
|
|
|
|
|
|
15 |
* You can now change the text of the offline message button
|
16 |
* You can now change the text of the close chat button
|
17 |
* Added a notification to the chat dashboard to help agents identify if the chat box is not showing up on the front end, and provide a reason
|
18 |
* Added ability to set a default visitor name
|
19 |
* Added ability to choose which user fields are required (name, email or both)
|
20 |
-
* Added visual aid when new message is sent and chat is minimized (user
|
21 |
-
* Fixed a security issue in the back end (thank you JPCERT Coordination Center (https://www.jpcert.or.jp/english/))
|
22 |
* Fixed a bug that caused a sound to be played on every page load of a visitor
|
23 |
* Fixed a bug that stopped a user from sending a message when the admin initiated a chat
|
24 |
* Fixed the bug that showed the incorrect icon for IE
|
25 |
* Fixed a bug that caused empty button without remove/delete icon in Missed Chats
|
26 |
* Fixed a bug that caused attached images to not display correctly
|
27 |
* Fixed a bug that caused notifications to show up in the front end when the agent is testing a chat with him or herself
|
28 |
-
*
|
29 |
-
*
|
30 |
* 7.0.06 -2017-03-13 - Low Priority
|
31 |
* Enhancement: 'Open Chat' button changes to 'Chat Accepted' once a chat is active
|
32 |
* Bug Fix: Compatibility bug fix for decryption in the Pro version
|
@@ -506,7 +507,7 @@ global $wplc_tblname_offline_msgs;
|
|
506 |
$wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
|
507 |
$wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
|
508 |
$wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
|
509 |
-
$wplc_version = "7.0.
|
510 |
|
511 |
define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
|
512 |
define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");
|
@@ -3359,26 +3360,25 @@ function wplc_add_user_stylesheet() {
|
|
3359 |
* @return void
|
3360 |
*/
|
3361 |
function wplc_add_admin_stylesheet() {
|
3362 |
-
global $wplc_version;
|
3363 |
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' || $_GET['page'] == 'wplivechat-menu-missed-chats')) {
|
3364 |
-
wp_register_style(
|
3365 |
-
wp_enqueue_style(
|
3366 |
-
wp_register_style(
|
3367 |
-
wp_enqueue_style(
|
3368 |
-
wp_register_style(
|
3369 |
-
wp_enqueue_style(
|
3370 |
-
wp_enqueue_script(
|
3371 |
-
wp_enqueue_script(
|
3372 |
}
|
3373 |
if (isset($_GET['page']) && $_GET['page'] == 'wplivechat-menu' && isset($_GET['action']) && $_GET['action'] == "ac") {
|
3374 |
-
wp_register_style('wplc-admin-chat-box-style', plugins_url('/css/admin-chat-box-style.css', __FILE__
|
3375 |
wp_enqueue_style('wplc-admin-chat-box-style');
|
3376 |
|
3377 |
}
|
3378 |
if (isset($_GET['page']) && $_GET['page'] == "wplivechat-menu-support-page") {
|
3379 |
-
wp_register_style('fontawesome', plugins_url('css/font-awesome.min.css', __FILE__
|
3380 |
wp_enqueue_style('fontawesome');
|
3381 |
-
wp_register_style('wplc-support-page-css', plugins_url('css/support-css.css', __FILE__
|
3382 |
wp_enqueue_style('wplc-support-page-css');
|
3383 |
}
|
3384 |
}
|
@@ -3497,7 +3497,7 @@ function wplc_hook_control_chat_history() {
|
|
3497 |
//Prompt
|
3498 |
echo "<div class='update-nag' style='margin-top: 0px;margin-bottom: 5px;'>
|
3499 |
".__("Are you sure you would like to delete this chat?", "wplivechat")."<br>
|
3500 |
-
<a class='button' href='?page=wplivechat-menu-history&wplc_action=remove_cid&cid="
|
3501 |
</div>";
|
3502 |
}
|
3503 |
}
|
@@ -5403,27 +5403,4 @@ function wplc_basic_version_departments(){
|
|
5403 |
$content .= "</table>";
|
5404 |
|
5405 |
echo $content;
|
5406 |
-
}
|
5407 |
-
|
5408 |
-
add_filter( 'wplc_filter_active_chat_box_notification', 'wplc_active_chat_box_notice' );
|
5409 |
-
|
5410 |
-
if ( ! function_exists( "wplc_active_chat_box_notices" ) ) {
|
5411 |
-
add_action( "wplc_hook_chat_dashboard_above", "wplc_active_chat_box_notices" );
|
5412 |
-
function wplc_active_chat_box_notices() {
|
5413 |
-
$wplc_settings = get_option( "WPLC_SETTINGS" );
|
5414 |
-
if ( $wplc_settings["wplc_settings_enabled"] == 2 ) { ?>
|
5415 |
-
<div class="wplc-chat-box-notification wplc-chat-box-notification--disabled">
|
5416 |
-
<p><?php echo sprintf( __( 'The Live Chat box is currently disabled on your website due to : <a href="%s">General Settings</a>', 'wp-livechat' ), admin_url( 'admin.php?page=wplivechat-menu-settings#tabs-1' ) ) ?></p>
|
5417 |
-
</div>
|
5418 |
-
<?php
|
5419 |
-
} else {
|
5420 |
-
//$notice = '<div class="wplc-chat-box-notification">';
|
5421 |
-
//$notice .= '<p>' . __( 'The Live Chat box is currently active', 'wp-livechat' ) . '</p>';
|
5422 |
-
//$notice .= '</div>';
|
5423 |
-
$notice = '';
|
5424 |
-
$notice = apply_filters( 'wplc_filter_active_chat_box_notice', $notice );
|
5425 |
-
echo $notice;
|
5426 |
-
}
|
5427 |
-
|
5428 |
-
}
|
5429 |
}
|
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.0.08
|
7 |
Author: WP-LiveChat
|
8 |
Author URI: http://www.wp-livechat.com
|
9 |
Text Domain: wplivechat
|
11 |
*/
|
12 |
|
13 |
/**
|
14 |
+
* 7.0.08 - 2017-06-08 - Low Priority
|
15 |
+
* Tested on WordPress 4.8
|
16 |
+
*
|
17 |
+
* 7.0.07 - 2017-05-16 - Medium Priority
|
18 |
* You can now change the text of the offline message button
|
19 |
* You can now change the text of the close chat button
|
20 |
* Added a notification to the chat dashboard to help agents identify if the chat box is not showing up on the front end, and provide a reason
|
21 |
* Added ability to set a default visitor name
|
22 |
* Added ability to choose which user fields are required (name, email or both)
|
23 |
+
* Added visual aid when new message is sent and chat is minimized (user’s side)
|
|
|
24 |
* Fixed a bug that caused a sound to be played on every page load of a visitor
|
25 |
* Fixed a bug that stopped a user from sending a message when the admin initiated a chat
|
26 |
* Fixed the bug that showed the incorrect icon for IE
|
27 |
* Fixed a bug that caused empty button without remove/delete icon in Missed Chats
|
28 |
* Fixed a bug that caused attached images to not display correctly
|
29 |
* Fixed a bug that caused notifications to show up in the front end when the agent is testing a chat with him or herself
|
30 |
+
*
|
|
|
31 |
* 7.0.06 -2017-03-13 - Low Priority
|
32 |
* Enhancement: 'Open Chat' button changes to 'Chat Accepted' once a chat is active
|
33 |
* Bug Fix: Compatibility bug fix for decryption in the Pro version
|
507 |
$wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
|
508 |
$wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
|
509 |
$wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
|
510 |
+
$wplc_version = "7.0.08";
|
511 |
|
512 |
define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
|
513 |
define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");
|
3360 |
* @return void
|
3361 |
*/
|
3362 |
function wplc_add_admin_stylesheet() {
|
|
|
3363 |
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' || $_GET['page'] == 'wplivechat-menu-missed-chats')) {
|
3364 |
+
wp_register_style('wplc-admin-style', plugins_url('/css/jquery-ui.css', __FILE__));
|
3365 |
+
wp_enqueue_style('wplc-admin-style');
|
3366 |
+
wp_register_style('wplc-chat-style', plugins_url('/css/chat-style.css', __FILE__));
|
3367 |
+
wp_enqueue_style('wplc-chat-style');
|
3368 |
+
wp_register_style('wplc-font-awesome', plugins_url('/css/font-awesome.min.css', __FILE__));
|
3369 |
+
wp_enqueue_style('wplc-font-awesome');
|
3370 |
+
wp_enqueue_script('jquery-ui-core');
|
3371 |
+
wp_enqueue_script('jquery-effects-core');
|
3372 |
}
|
3373 |
if (isset($_GET['page']) && $_GET['page'] == 'wplivechat-menu' && isset($_GET['action']) && $_GET['action'] == "ac") {
|
3374 |
+
wp_register_style('wplc-admin-chat-box-style', plugins_url('/css/admin-chat-box-style.css', __FILE__));
|
3375 |
wp_enqueue_style('wplc-admin-chat-box-style');
|
3376 |
|
3377 |
}
|
3378 |
if (isset($_GET['page']) && $_GET['page'] == "wplivechat-menu-support-page") {
|
3379 |
+
wp_register_style('fontawesome', plugins_url('css/font-awesome.min.css', __FILE__));
|
3380 |
wp_enqueue_style('fontawesome');
|
3381 |
+
wp_register_style('wplc-support-page-css', plugins_url('css/support-css.css', __FILE__));
|
3382 |
wp_enqueue_style('wplc-support-page-css');
|
3383 |
}
|
3384 |
}
|
3497 |
//Prompt
|
3498 |
echo "<div class='update-nag' style='margin-top: 0px;margin-bottom: 5px;'>
|
3499 |
".__("Are you sure you would like to delete this chat?", "wplivechat")."<br>
|
3500 |
+
<a class='button' href='?page=wplivechat-menu-history&wplc_action=remove_cid&cid=".$_GET['cid']."&wplc_confirm=1''>".__("Yes", "wplivechat")."</a> <a class='button' href='?page=wplivechat-menu-history'>".__("No", "wplivechat")."</a>
|
3501 |
</div>";
|
3502 |
}
|
3503 |
}
|
5403 |
$content .= "</table>";
|
5404 |
|
5405 |
echo $content;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5406 |
}
|