REVE Chat – WP Live Chat Support plugin - Version 5.0

Version Description

Download this release

Release Info

Developer revechat
Plugin Icon 128x128 REVE Chat – WP Live Chat Support plugin
Version 5.0
Comparing to
See all releases

Code changes from version 4.0 to 5.0

Files changed (2) hide show
  1. readme.txt +1 -1
  2. revechat.php +46 -9
readme.txt CHANGED
@@ -3,6 +3,7 @@ Contributors: revechat
3
  Tags: free chat, live chat, live chat software, live support, chat plugin, chat, video chat, voice chat, tawk.to
4
  Requires at least: 2.7
5
  Tested up to: 4.9.4
 
6
 
7
  REVE Chat is powerful and intuitive real-time customer engagement software.
8
 
@@ -93,7 +94,6 @@ REVE chat is a complete online sales and support tool to engage your website vis
93
 
94
  Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
95
 
96
-
97
  = How much is price of REVE Chat? =
98
 
99
  REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
3
  Tags: free chat, live chat, live chat software, live support, chat plugin, chat, video chat, voice chat, tawk.to
4
  Requires at least: 2.7
5
  Tested up to: 4.9.4
6
+ Stable tag: 4.0
7
 
8
  REVE Chat is powerful and intuitive real-time customer engagement software.
9
 
94
 
95
  Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
96
 
 
97
  = How much is price of REVE Chat? =
98
 
99
  REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
revechat.php CHANGED
@@ -2,17 +2,27 @@
2
  /*
3
  Plugin Name: REVE Chat - WP live chat plugin for WordPress
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: 4.0
6
  Author: REVE Chat
7
  Author URI: www.revechat.com
8
  License: GPL2
9
  */
10
  if(!class_exists('WP_Plugin_Revechat'))
11
  {
 
 
 
 
12
  class WP_Plugin_Revechat
13
  {
14
  /**
15
- * Construct the plugin object
 
 
 
 
 
 
16
  */
17
  public function __construct()
18
  {
@@ -36,7 +46,14 @@ if(!class_exists('WP_Plugin_Revechat'))
36
  } // END public function __construct
37
 
38
  /**
39
- * Activate the frontendHeader
 
 
 
 
 
 
 
40
  */
41
  public static function frontendHeader()
42
  {
@@ -58,16 +75,18 @@ if(!class_exists('WP_Plugin_Revechat'))
58
 
59
  }
60
 
61
- /*
62
- * Register the settings
 
 
63
  */
64
  public function registerSettings(){
65
  register_setting($this->plugin->name, 'revechat_accountid', 'trim');
66
  register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
67
  }
68
 
69
- /*
70
- * Settings Form
71
  */
72
  public function reveChatOptions(){
73
  if ( !current_user_can( 'manage_options' ) ) {
@@ -124,6 +143,9 @@ if(!class_exists('WP_Plugin_Revechat'))
124
 
125
  /**
126
  * Add page in admin menu
 
 
 
127
  */
128
  public function admin_menu()
129
  {
@@ -131,7 +153,9 @@ if(!class_exists('WP_Plugin_Revechat'))
131
  }
132
 
133
  /**
134
- * Deactivate the plugin
 
 
135
  */
136
 
137
  public static function deactivate()
@@ -141,7 +165,8 @@ if(!class_exists('WP_Plugin_Revechat'))
141
 
142
 
143
  /**
144
- * Enque JavaScript and Css in admin panel
 
145
  */
146
  public function admin_scripts(){
147
 
@@ -152,6 +177,12 @@ if(!class_exists('WP_Plugin_Revechat'))
152
  wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
153
  }
154
 
 
 
 
 
 
 
155
  function add_action_links ( $links ) {
156
  $menu_link = array(
157
  '<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
@@ -161,6 +192,12 @@ if(!class_exists('WP_Plugin_Revechat'))
161
  }
162
  } // END if(!class_exists('WP_Plugin_Revechat'))
163
 
 
 
 
164
  $revechat = new WP_Plugin_Revechat();
165
 
 
 
 
166
  register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
2
  /*
3
  Plugin Name: REVE Chat - WP live chat plugin for WordPress
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: 5.0
6
  Author: REVE Chat
7
  Author URI: www.revechat.com
8
  License: GPL2
9
  */
10
  if(!class_exists('WP_Plugin_Revechat'))
11
  {
12
+ /**
13
+ * Core class which interacts with
14
+ * WordPress hooks and filters
15
+ */
16
  class WP_Plugin_Revechat
17
  {
18
  /**
19
+ * Constructor method of the plugin object.
20
+ * This method initialize the stdClass,
21
+ * defines plugin name, plugin display name etc.
22
+ *
23
+ * This method also calls necessary wodpress hooks and filters.
24
+ * for more about hooks please visit @link [https://developer.wordpress.org/reference/functions/add_action/]
25
+ * for more information on filters @link [https://developer.wordpress.org/reference/functions/add_filter/]
26
  */
27
  public function __construct()
28
  {
46
  } // END public function __construct
47
 
48
  /**
49
+ * REVE Chat widget script.
50
+ *
51
+ * This script will be rendered in frontend of the site.
52
+ * This funtion is called when wp_head action triggered.
53
+ * The wp_head action hook is triggered within the <head></head> section of the user's template
54
+ * by the wp_head() function. Although this is theme-dependent,
55
+ * it is one of the most essential theme hooks, so it is widely supported.
56
+ *
57
  */
58
  public static function frontendHeader()
59
  {
75
 
76
  }
77
 
78
+ /**
79
+ * Register a setting and its data.
80
+ * refer to @link [https://developer.wordpress.org/reference/functions/register_setting/]
81
+ * for more information about register setting
82
  */
83
  public function registerSettings(){
84
  register_setting($this->plugin->name, 'revechat_accountid', 'trim');
85
  register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
86
  }
87
 
88
+ /**
89
+ * Render the settings form
90
  */
91
  public function reveChatOptions(){
92
  if ( !current_user_can( 'manage_options' ) ) {
143
 
144
  /**
145
  * Add page in admin menu
146
+ * This method takes a capability which will be used to determine whether or not a page is included in the menu.
147
+ * this method which is hooked in to handle the output of the page also check that the user has the required
148
+ * capability as well.
149
  */
150
  public function admin_menu()
151
  {
153
  }
154
 
155
  /**
156
+ * Triggers when the user deactivate/uninstall the plugin.
157
+ * this method simply delete all the data of this
158
+ * plugin from database.
159
  */
160
 
161
  public static function deactivate()
165
 
166
 
167
  /**
168
+ * Load necessary JavaScript and CSS library
169
+ * in admin panel.
170
  */
171
  public function admin_scripts(){
172
 
177
  wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
178
  }
179
 
180
+ /**
181
+ * Applied to the list of links to display on the plugins page (beside the activate/deactivate links).
182
+ *
183
+ * @param $links
184
+ * @return array
185
+ */
186
  function add_action_links ( $links ) {
187
  $menu_link = array(
188
  '<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
192
  }
193
  } // END if(!class_exists('WP_Plugin_Revechat'))
194
 
195
+ /**
196
+ * Initialize the core class
197
+ */
198
  $revechat = new WP_Plugin_Revechat();
199
 
200
+ /**
201
+ * Register the deactivation hook.
202
+ */
203
  register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );