Version Description
Download this release
Release Info
Developer | revechat |
Plugin | REVE Chat – WP Live Chat Support plugin |
Version | 1.2.4 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.2.4
- readme.txt +1 -1
- revechat.php +19 -4
readme.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
=== Reve Chat ===
|
2 |
|
3 |
|
|
|
4 |
|
5 |
|
|
|
1 |
|
2 |
|
3 |
+
=== Reve Chat ===
|
4 |
|
5 |
|
revechat.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Reve Chat
|
4 |
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
-
Version: 1.2.
|
6 |
Author: ReveChat
|
7 |
Author URI: www.revechat.com
|
8 |
License: GPL2
|
@@ -20,13 +20,15 @@ if(!class_exists('WP_Plugin_Revechat'))
|
|
20 |
$this->plugin = new stdClass;
|
21 |
$this->plugin->name = 'revechat'; // Plugin Folder
|
22 |
$this->plugin->displayName = 'ReveChat'; // Plugin Name
|
23 |
-
$this->plugin->version = '1.
|
24 |
|
25 |
// Hooks
|
26 |
add_action('admin_init', array(&$this, 'registerSettings'));
|
27 |
add_action('admin_menu', array(&$this, 'adminPanels'));
|
28 |
|
29 |
add_action('wp_head', array(&$this, 'frontendHeader'));
|
|
|
|
|
30 |
} // END public function __construct
|
31 |
|
32 |
/**
|
@@ -40,8 +42,14 @@ if(!class_exists('WP_Plugin_Revechat'))
|
|
40 |
if( (isset($accountId) && !empty($accountId)) ) {
|
41 |
|
42 |
$script = "<script type='text/javascript'>";
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
$script .='</script>';
|
46 |
|
47 |
echo $script ;
|
@@ -120,6 +128,13 @@ if(!class_exists('WP_Plugin_Revechat'))
|
|
120 |
{
|
121 |
// Do nothing
|
122 |
} // END public static function deactivate
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
} // END class WP_Plugin_Revechat
|
124 |
} // END if(!class_exists('WP_Plugin_Revechat'))
|
125 |
$revechat = new WP_Plugin_Revechat ;
|
2 |
/*
|
3 |
Plugin Name: Reve Chat
|
4 |
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 1.2.4
|
6 |
Author: ReveChat
|
7 |
Author URI: www.revechat.com
|
8 |
License: GPL2
|
20 |
$this->plugin = new stdClass;
|
21 |
$this->plugin->name = 'revechat'; // Plugin Folder
|
22 |
$this->plugin->displayName = 'ReveChat'; // Plugin Name
|
23 |
+
$this->plugin->version = '1.2.4';
|
24 |
|
25 |
// Hooks
|
26 |
add_action('admin_init', array(&$this, 'registerSettings'));
|
27 |
add_action('admin_menu', array(&$this, 'adminPanels'));
|
28 |
|
29 |
add_action('wp_head', array(&$this, 'frontendHeader'));
|
30 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
31 |
+
|
32 |
} // END public function __construct
|
33 |
|
34 |
/**
|
42 |
if( (isset($accountId) && !empty($accountId)) ) {
|
43 |
|
44 |
$script = "<script type='text/javascript'>";
|
45 |
+
|
46 |
+
$script .= "window.__revechat_account = window.__revechat_account || {};
|
47 |
+
window.__revechat_account = '".$accountId."';
|
48 |
+
(function() {
|
49 |
+
var rc = document.createElement('script'); rc.type = 'text/javascript'; rc.async = true;
|
50 |
+
rc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'static.revechat.com/widget/scripts/new-livechat.js';
|
51 |
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(rc, s);
|
52 |
+
})();";
|
53 |
$script .='</script>';
|
54 |
|
55 |
echo $script ;
|
128 |
{
|
129 |
// Do nothing
|
130 |
} // END public static function deactivate
|
131 |
+
|
132 |
+
function add_action_links ( $links ) {
|
133 |
+
$menu_link = array(
|
134 |
+
'<a href="' . admin_url( 'options-general.php?page=revechatsettings' ) . '">Settings</a>',
|
135 |
+
);
|
136 |
+
return array_merge( $links, $menu_link );
|
137 |
+
}
|
138 |
} // END class WP_Plugin_Revechat
|
139 |
} // END if(!class_exists('WP_Plugin_Revechat'))
|
140 |
$revechat = new WP_Plugin_Revechat ;
|