WP Live Chat Support - Version 9.0.1

Version Description

  • 2020-07-17 =
  • Fix warning about PHP constants for PHP versions older than 5.6
  • Changed default chat height to 50% from 70%
Download this release

Release Info

Developer wpdev3cx
Plugin Icon 128x128 WP Live Chat Support
Version 9.0.1
Comparing to
See all releases

Code changes from version 9.0.0 to 9.0.1

changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 9.0.0 - 2020-07-17 =
2
  * Full plugin refactor with NEW component based software architecture.
3
  * Added new 3CX cloud chat servers integration.
1
+ = 9.0.1 - 2020-07-17 =
2
+ * Fix warning about PHP constants for PHP versions older than 5.6
3
+ * Changed default chat height to 50% from 70%
4
+
5
  = 9.0.0 - 2020-07-17 =
6
  * Full plugin refactor with NEW component based software architecture.
7
  * Added new 3CX cloud chat servers integration.
config.php CHANGED
@@ -9,10 +9,10 @@ if ( ! defined( 'ABSPATH' ) ) {
9
 
10
  define('WPLC_MIN_WP_VERSION', "5.3");
11
  define('WPLC_MIN_PHP_VERSION', "5.4");
12
- define('WPLC_PLUGIN_VERSION', "9.0.0");
13
  define('WPLC_PLUGIN_DIR', dirname(__FILE__));
14
  define('WPLC_PLUGIN_URL', wplc_plugins_url( '/', __FILE__ ) );
15
  define('WPLC_PLUGIN', plugin_basename( __FILE__ ) );
16
  define('WPLC_ACTIVATION_SERVER', 'https://wplc.3cx.net' ); // gets unique ID for using chat servers
17
  define('WPLC_CHAT_SERVER','https://wplc.3cx.net/api/chatrouter');
18
- define('WPLC_ENABLE_CHANNELS', array( "wp","mcu","phone" ));
9
 
10
  define('WPLC_MIN_WP_VERSION', "5.3");
11
  define('WPLC_MIN_PHP_VERSION', "5.4");
12
+ define('WPLC_PLUGIN_VERSION', "9.0.1");
13
  define('WPLC_PLUGIN_DIR', dirname(__FILE__));
14
  define('WPLC_PLUGIN_URL', wplc_plugins_url( '/', __FILE__ ) );
15
  define('WPLC_PLUGIN', plugin_basename( __FILE__ ) );
16
  define('WPLC_ACTIVATION_SERVER', 'https://wplc.3cx.net' ); // gets unique ID for using chat servers
17
  define('WPLC_CHAT_SERVER','https://wplc.3cx.net/api/chatrouter');
18
+ define('WPLC_ENABLE_CHANNELS', "wp,mcu,phone" );
includes/models/session.php CHANGED
@@ -64,7 +64,7 @@ class TCXChatSession
64
  return __("Ended due agent inactivity", 'wp-live-chat-support');
65
  break;
66
  default:
67
- return __("Uknown",'wp-live-chat-support');
68
  break;
69
  }
70
  }
64
  return __("Ended due agent inactivity", 'wp-live-chat-support');
65
  break;
66
  default:
67
+ return __("Unknown",'wp-live-chat-support');
68
  break;
69
  }
70
  }
includes/models/settings.php CHANGED
@@ -261,7 +261,7 @@ class TCXSettings {
261
  $result->wplc_chat_icon = wplc_plugins_url( '/images/chaticon.png', $wplc_base_file );
262
  $result->wplc_chat_logo = '';
263
  $result->wplc_chat_pic = wplc_plugins_url( '/images/picture-for-chat-box.jpg', $wplc_base_file );
264
- $result->wplc_chatbox_height = 70;
265
  $result->wplc_chatbox_absolute_height = 400;
266
  $result->wplc_close_btn_text = __( "close", 'wp-live-chat-support' );
267
  $result->wplc_default_department = - 1;
261
  $result->wplc_chat_icon = wplc_plugins_url( '/images/chaticon.png', $wplc_base_file );
262
  $result->wplc_chat_logo = '';
263
  $result->wplc_chat_pic = wplc_plugins_url( '/images/picture-for-chat-box.jpg', $wplc_base_file );
264
+ $result->wplc_chatbox_height = 50;
265
  $result->wplc_chatbox_absolute_height = 400;
266
  $result->wplc_close_btn_text = __( "close", 'wp-live-chat-support' );
267
  $result->wplc_default_department = - 1;
includes/models/trigger.php CHANGED
@@ -36,7 +36,7 @@ class TCXTrigger
36
  $result = __("Page Leave Trigger", 'wp-live-chat-support');
37
  break;
38
  default:
39
- $result = __("Uknown", 'wp-live-chat-support');
40
  break;
41
  }
42
  return $result;
36
  $result = __("Page Leave Trigger", 'wp-live-chat-support');
37
  break;
38
  default:
39
+ $result = __("Unknown", 'wp-live-chat-support');
40
  break;
41
  }
42
  return $result;
modules/activation_wizard/activation_wizard_controller.php CHANGED
@@ -6,7 +6,7 @@ if ( ! defined( 'ABSPATH' ) ) {
6
  class ActivationWizardController extends BaseController {
7
 
8
  public function __construct( $alias ) {
9
- parent::__construct( __( "ActivationWizard", 'wp-live-chat-support' ), $alias );
10
  $this->init_actions();
11
  $this->parse_action( $this->available_actions );
12
  }
6
  class ActivationWizardController extends BaseController {
7
 
8
  public function __construct( $alias ) {
9
+ parent::__construct( __( "Activation Wizard", 'wp-live-chat-support' ), $alias );
10
  $this->init_actions();
11
  $this->parse_action( $this->available_actions );
12
  }
modules/activation_wizard/activation_wizard_page.php CHANGED
@@ -5,6 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) {
5
  }
6
  add_action( 'admin_enqueue_scripts', 'add_activation_wizard_page_resources' );
7
  add_action( 'admin_menu', 'wplc_admin_activation_wizard_menu', 5 );
 
8
  function wplc_admin_activation_wizard_menu() {
9
  $activationwizard_hook = add_ordered_submenu_page( 'wplivechat-menu', __( 'Getting Started', 'wp-live-chat-support' ), __( 'Getting Started', 'wp-live-chat-support' ), 'wplc_cap_admin', 'wplc-getting-started', 'wplc_admin_activation_wizard', 0 );
10
  }
5
  }
6
  add_action( 'admin_enqueue_scripts', 'add_activation_wizard_page_resources' );
7
  add_action( 'admin_menu', 'wplc_admin_activation_wizard_menu', 5 );
8
+
9
  function wplc_admin_activation_wizard_menu() {
10
  $activationwizard_hook = add_ordered_submenu_page( 'wplivechat-menu', __( 'Getting Started', 'wp-live-chat-support' ), __( 'Getting Started', 'wp-live-chat-support' ), 'wplc_cap_admin', 'wplc-getting-started', 'wplc_admin_activation_wizard', 0 );
11
  }
modules/activation_wizard/wizard_partials/channel_selection.php CHANGED
@@ -1,12 +1,12 @@
1
  <h2 class="wplc_wizard_title">Channel Selection</h2>
2
  <div class="row">
3
  <div class="col-12
4
- offset-lg-<?= (12-(4*count(WPLC_ENABLE_CHANNELS)))/2?>
5
- offset-md-<?= (12-(6*count(WPLC_ENABLE_CHANNELS)))/2?>
6
- offset-sm-<?= (12-(12*count(WPLC_ENABLE_CHANNELS)))/2?>
7
- offset-xs-<?= (12-(12*count(WPLC_ENABLE_CHANNELS)))/2?>">
8
  <div class="row">
9
- <?php if ( in_array( 'wp', WPLC_ENABLE_CHANNELS ) ) { ?>
10
  <div class="channel-card col-lg-4 col-md-6 col-sm-12 col-xs-12">
11
  <div class="box-part text-center" data-channel="wp"><i class="fas fa-server" aria-hidden="true"></i>
12
  <div class="title">
@@ -27,7 +27,7 @@
27
  </div>
28
  </div>
29
  <?php } ?>
30
- <?php if ( in_array( 'mcu', WPLC_ENABLE_CHANNELS ) ) { ?>
31
  <div class="channel-card col-lg-4 col-md-6 col-sm-12 col-xs-12">
32
  <div class="box-part text-center" data-channel="mcu"><i class="fas fa-cloud" aria-hidden="true"></i>
33
  <div class="title">
@@ -48,7 +48,7 @@
48
  </div>
49
  </div>
50
  <?php } ?>
51
- <?php if ( in_array( 'phone', WPLC_ENABLE_CHANNELS ) ) { ?>
52
  <div class="channel-card col-lg-4 col-md-6 col-sm-12 col-xs-12">
53
  <div class="box-part text-center" data-channel="phone"><i class="fas fa-cloud" aria-hidden="true"></i>
54
  <div class="title">
1
  <h2 class="wplc_wizard_title">Channel Selection</h2>
2
  <div class="row">
3
  <div class="col-12
4
+ offset-lg-<?= (12-(4*count(explode(',',WPLC_ENABLE_CHANNELS ))))/2?>
5
+ offset-md-<?= (12-(6*count(explode(',',WPLC_ENABLE_CHANNELS ))))/2?>
6
+ offset-sm-<?= (12-(12*count(explode(',',WPLC_ENABLE_CHANNELS ))))/2?>
7
+ offset-xs-<?= (12-(12*count(explode(',',WPLC_ENABLE_CHANNELS ))))/2?>">
8
  <div class="row">
9
+ <?php if ( in_array( 'wp', explode(',',WPLC_ENABLE_CHANNELS ) ) ) { ?>
10
  <div class="channel-card col-lg-4 col-md-6 col-sm-12 col-xs-12">
11
  <div class="box-part text-center" data-channel="wp"><i class="fas fa-server" aria-hidden="true"></i>
12
  <div class="title">
27
  </div>
28
  </div>
29
  <?php } ?>
30
+ <?php if ( in_array( 'mcu', explode(',',WPLC_ENABLE_CHANNELS ) ) ) { ?>
31
  <div class="channel-card col-lg-4 col-md-6 col-sm-12 col-xs-12">
32
  <div class="box-part text-center" data-channel="mcu"><i class="fas fa-cloud" aria-hidden="true"></i>
33
  <div class="title">
48
  </div>
49
  </div>
50
  <?php } ?>
51
+ <?php if ( in_array( 'phone', explode(',',WPLC_ENABLE_CHANNELS ) ) ) { ?>
52
  <div class="channel-card col-lg-4 col-md-6 col-sm-12 col-xs-12">
53
  <div class="box-part text-center" data-channel="phone"><i class="fas fa-cloud" aria-hidden="true"></i>
54
  <div class="title">
modules/agent_chat/agent_chat_controller.php CHANGED
@@ -8,7 +8,7 @@ use Leafo\ScssPhp\Compiler;
8
  class AgentChatController extends BaseController {
9
 
10
  public function __construct( $alias ) {
11
- parent::__construct( __( "AgentChat", 'wp-live-chat-support' ), $alias );
12
  }
13
 
14
  public function load_quick_responses()
8
  class AgentChatController extends BaseController {
9
 
10
  public function __construct( $alias ) {
11
+ parent::__construct( __( "Agent Chat", 'wp-live-chat-support' ), $alias );
12
  }
13
 
14
  public function load_quick_responses()
modules/chat_client/chat_client_controller.php CHANGED
@@ -6,7 +6,7 @@ if ( ! defined( 'ABSPATH' ) ) {
6
  class ChatClientController extends BaseController {
7
 
8
  public function __construct( $alias, $custom_view = null ) {
9
- parent::__construct( __( "ChatClient", 'wp-live-chat-support' ), $alias, $custom_view );
10
  }
11
 
12
  private function enable_auto_popup() {
6
  class ChatClientController extends BaseController {
7
 
8
  public function __construct( $alias, $custom_view = null ) {
9
+ parent::__construct( __( "Chat Client", 'wp-live-chat-support' ), $alias, $custom_view );
10
  }
11
 
12
  private function enable_auto_popup() {
modules/session_details/session_details_controller.php CHANGED
@@ -9,7 +9,7 @@ class SessionDetailsController extends BaseController
9
 
10
  public function __construct($alias,$cid)
11
  {
12
- parent::__construct(__("SessionDetails", 'wp-live-chat-support'), $alias);
13
  $this->cid = $cid;
14
  $this->init_actions();
15
  $this->parse_action($this->available_actions);
9
 
10
  public function __construct($alias,$cid)
11
  {
12
+ parent::__construct(__("Session Details", 'wp-live-chat-support'), $alias);
13
  $this->cid = $cid;
14
  $this->init_actions();
15
  $this->parse_action($this->available_actions);
modules/settings/settings_controller.php CHANGED
@@ -98,7 +98,7 @@ class SettingsController extends BaseController {
98
  $tab_array = array_filter( $tab_array, function ( $tab ) {
99
  $result = true;
100
  if ( $tab->id == 'tab-advanced' ) {
101
- $result = count( WPLC_ENABLE_CHANNELS ) > 1;
102
  } else if ( $tab->id == 'tab-embed-code' ) {
103
  $result = $this->wplc_settings->wplc_channel == 'phone';
104
  } else if ( in_array( $tab->id, array(
98
  $tab_array = array_filter( $tab_array, function ( $tab ) {
99
  $result = true;
100
  if ( $tab->id == 'tab-advanced' ) {
101
+ $result = count( explode(',',WPLC_ENABLE_CHANNELS ) ) > 1;
102
  } else if ( $tab->id == 'tab-embed-code' ) {
103
  $result = $this->wplc_settings->wplc_channel == 'phone';
104
  } else if ( in_array( $tab->id, array(
modules/settings/settings_partials/advanced_settings.php CHANGED
@@ -8,17 +8,17 @@
8
  title="<?= __( 'Choose between 3CX servers or your Wordpress server for chat delivery', 'wp-live-chat-support' ); ?>"></i></label>
9
  </td>
10
  <td valign="top">
11
- <?php if(in_array( 'wp', WPLC_ENABLE_CHANNELS )){ ?>
12
  <input type="radio" name="wplc_channel"
13
  value="wp" <?= $wplc_settings->wplc_channel == 'wp' ? "checked" : "" ?>> OnPremise (This host) <br>
14
  <p></p>
15
  <?php }?>
16
- <?php if(in_array('phone',WPLC_ENABLE_CHANNELS)){ ?>
17
  <input type="radio" name="wplc_channel"
18
  value="phone" <?= $wplc_settings->wplc_channel=='phone' ? "checked":"" ?>>3CX PBX Integration <br>
19
  <p></p>
20
  <?php }?>
21
- <?php if(in_array('mcu',WPLC_ENABLE_CHANNELS)){ ?>
22
  <input type="radio" name="wplc_channel"
23
  value="mcu" <?= $wplc_settings->wplc_channel=='mcu' ? "checked":"" ?>>3CX Chat Server <br>
24
  <p></p>
8
  title="<?= __( 'Choose between 3CX servers or your Wordpress server for chat delivery', 'wp-live-chat-support' ); ?>"></i></label>
9
  </td>
10
  <td valign="top">
11
+ <?php if(in_array( 'wp', explode(',',WPLC_ENABLE_CHANNELS ))){ ?>
12
  <input type="radio" name="wplc_channel"
13
  value="wp" <?= $wplc_settings->wplc_channel == 'wp' ? "checked" : "" ?>> OnPremise (This host) <br>
14
  <p></p>
15
  <?php }?>
16
+ <?php if(in_array('phone',explode(',',WPLC_ENABLE_CHANNELS ))){ ?>
17
  <input type="radio" name="wplc_channel"
18
  value="phone" <?= $wplc_settings->wplc_channel=='phone' ? "checked":"" ?>>3CX PBX Integration <br>
19
  <p></p>
20
  <?php }?>
21
+ <?php if(in_array('mcu',explode(',',WPLC_ENABLE_CHANNELS ))){ ?>
22
  <input type="radio" name="wplc_channel"
23
  value="mcu" <?= $wplc_settings->wplc_channel=='mcu' ? "checked":"" ?>>3CX Chat Server <br>
24
  <p></p>
modules/triggers/manage_trigger_controller.php CHANGED
@@ -11,7 +11,7 @@ class ManageTriggerController extends BaseController
11
 
12
  public function __construct($alias,$trid=-1)
13
  {
14
- parent::__construct( __("Manage trigger", 'wp-live-chat-support'),$alias);
15
  $this->trid = $trid;
16
  $this->init_actions();
17
  $this->parse_action($this->available_actions);
11
 
12
  public function __construct($alias,$trid=-1)
13
  {
14
+ parent::__construct( __("Manage Trigger", 'wp-live-chat-support'),$alias);
15
  $this->trid = $trid;
16
  $this->init_actions();
17
  $this->parse_action($this->available_actions);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: live chat, live support, chat plugin, live help, wordpress live chat, chat
4
  Requires at least: 5.3
5
  Tested up to: 5.4.2
6
  Requires PHP: 5.4
7
- Stable tag: 9.0.0
8
  License: GPLv2
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
  Text Domain: wp-live-chat-support
@@ -159,6 +159,10 @@ Huge update with over 300 changes that include: Bugfixes, Vulnerability Fixes &
159
 
160
  == Changelog ==
161
 
 
 
 
 
162
  = 9.0.0 - 2020-07-17 =
163
  * Full plugin refactor with NEW component based software architecture.
164
  * Added new 3CX cloud chat servers integration.
4
  Requires at least: 5.3
5
  Tested up to: 5.4.2
6
  Requires PHP: 5.4
7
+ Stable tag: 9.0.1
8
  License: GPLv2
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
  Text Domain: wp-live-chat-support
159
 
160
  == Changelog ==
161
 
162
+ = 9.0.1 - 2020-07-17 =
163
+ * Fix warning about PHP constants for PHP versions older than 5.6
164
+ * Changed default chat height to 50% from 70%
165
+
166
  = 9.0.0 - 2020-07-17 =
167
  * Full plugin refactor with NEW component based software architecture.
168
  * Added new 3CX cloud chat servers integration.
wp-live-chat-support.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP-Live Chat by 3CX
4
  Plugin URI: https://www.3cx.com/wp-live-chat/
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 by 3CX.
6
- Version: 9.0.0
7
  Author: 3CX
8
  Author URI: https://www.3cx.com/wp-live-chat/
9
  Domain Path: /languages
3
  Plugin Name: WP-Live Chat by 3CX
4
  Plugin URI: https://www.3cx.com/wp-live-chat/
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 by 3CX.
6
+ Version: 9.0.1
7
  Author: 3CX
8
  Author URI: https://www.3cx.com/wp-live-chat/
9
  Domain Path: /languages