WhatsApp Chat WP - Version 4.2.5

Version Description

Hello! We've recently acquired this plugin and included tons of new features.

Download this release

Release Info

Developer quadlayers
Plugin Icon 128x128 WhatsApp Chat WP
Version 4.2.5
Comparing to
See all releases

Code changes from version 4.2.4 to 4.2.5

includes/defaults.php CHANGED
@@ -26,12 +26,12 @@ if (!class_exists('QLWAPP_Options')) {
26
  'name' => '',
27
  ),
28
  'user' => array(
29
- 'message' => esc_html__('Hello! I\'m testing the WhatsApp Chat plugin @https://quadlayers.com', 'qlwapp')
30
  ),
31
  'button' => array(
32
  'layout' => 'button',
33
  'position' => 'bottom-right',
34
- 'text' => esc_html__('How can I help you?', 'qlwapp'),
35
  'icon' => 'qlwapp-whatsapp-icon',
36
  'phone' => '+441234567890',
37
  'developer' => 'no',
@@ -44,7 +44,7 @@ if (!class_exists('QLWAPP_Options')) {
44
  ),
45
  'chat' => array(
46
  'emoji' => 'no',
47
- 'response' => esc_html__('Write a response', 'qlwapp'),
48
  ),
49
  'contacts' => array(
50
  0 => array(
@@ -53,8 +53,8 @@ if (!class_exists('QLWAPP_Options')) {
53
  'phone' => '+441234567890',
54
  'firstname' => 'John',
55
  'lastname' => 'Doe',
56
- 'label' => esc_html__('Support', 'qlwapp'),
57
- 'message' => esc_html__('Hello! I\'m John from the support team.', 'qlwapp')
58
  ),
59
  ),
60
  'display' => array(
26
  'name' => '',
27
  ),
28
  'user' => array(
29
+ 'message' => esc_html__('Hello! I\'m testing the WhatsApp Chat plugin @https://quadlayers.com', 'wp-whatsapp-chat')
30
  ),
31
  'button' => array(
32
  'layout' => 'button',
33
  'position' => 'bottom-right',
34
+ 'text' => esc_html__('How can I help you?', 'wp-whatsapp-chat'),
35
  'icon' => 'qlwapp-whatsapp-icon',
36
  'phone' => '+441234567890',
37
  'developer' => 'no',
44
  ),
45
  'chat' => array(
46
  'emoji' => 'no',
47
+ 'response' => esc_html__('Write a response', 'wp-whatsapp-chat'),
48
  ),
49
  'contacts' => array(
50
  0 => array(
53
  'phone' => '+441234567890',
54
  'firstname' => 'John',
55
  'lastname' => 'Doe',
56
+ 'label' => esc_html__('Support', 'wp-whatsapp-chat'),
57
+ 'message' => esc_html__('Hello! I\'m John from the support team.', 'wp-whatsapp-chat')
58
  ),
59
  ),
60
  'display' => array(
includes/frontend.php CHANGED
@@ -6,8 +6,8 @@ if (!class_exists('QLWAPP_Frontend')) {
6
  protected static $instance;
7
 
8
  function add_js() {
9
- wp_enqueue_style('qlwapp', plugins_url('/assets/css/qlwapp.min.css', QLWAPP_PLUGIN_FILE), null, QLWAPP_PLUGIN_VERSION, 'all');
10
- wp_enqueue_script('qlwapp', plugins_url('/assets/js/qlwapp.min.js', QLWAPP_PLUGIN_FILE), array('jquery'), QLWAPP_PLUGIN_VERSION, true);
11
  }
12
 
13
  function add_box() {
6
  protected static $instance;
7
 
8
  function add_js() {
9
+ wp_enqueue_style(QLWAPP_DOMAIN, plugins_url('/assets/css/qlwapp.min.css', QLWAPP_PLUGIN_FILE), null, QLWAPP_PLUGIN_VERSION, 'all');
10
+ wp_enqueue_script(QLWAPP_DOMAIN, plugins_url('/assets/js/qlwapp.min.js', QLWAPP_PLUGIN_FILE), array('jquery'), QLWAPP_PLUGIN_VERSION, true);
11
  }
12
 
13
  function add_box() {
includes/pages/box.php CHANGED
@@ -4,36 +4,36 @@
4
  <table class="form-table">
5
  <tbody>
6
  <tr>
7
- <th scope="row"><?php esc_html_e('Disable', 'qlwapp'); ?></th>
8
  <td>
9
  <select name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[box][enable]" class="qlwapp-select2">
10
- <option value="yes" <?php selected($qlwapp['box']['enable'], 'yes'); ?>><?php esc_html_e('Enable contact box', 'qlwapp'); ?></option>
11
- <option value="no" <?php selected($qlwapp['box']['enable'], 'no'); ?>><?php esc_html_e('Disable contact box', 'qlwapp'); ?></option>
12
  </select>
13
  </td>
14
  </tr>
15
  <tr>
16
- <th scope="row"><?php esc_html_e('Header', 'qlwapp'); ?></th>
17
  <td>
18
  <?php wp_editor($qlwapp['box']['header'], 'qlwapp_box_header', ['editor_height' => 200, 'textarea_name' => esc_attr(QLWAPP_DOMAIN) . '[box][header]']); ?>
19
  </td>
20
  </tr>
21
  <tr>
22
- <th scope="row"><?php esc_html_e('Footer', 'qlwapp'); ?></th>
23
  <td>
24
  <?php wp_editor($qlwapp['box']['footer'], 'qlwapp_box_footer', ['editor_height' => 200, 'textarea_name' => esc_attr(QLWAPP_DOMAIN) . '[box][footer]']); ?>
25
  </td>
26
  </tr>
27
  <tr>
28
- <th scope="row"><?php esc_html_e('Response', 'qlwapp'); ?></th>
29
  <td>
30
  <input type="text" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[chat][response]'); ?>" placeholder="<?php echo esc_html($this->defaults['chat']['response']); ?>" value="<?php echo esc_attr($qlwapp['chat']['response']); ?>" class="qlwapp-input"/>
31
- <p class="description"><?php esc_html_e('Write a response text.', 'qlwapp'); ?></p>
32
  </td>
33
  </tr>
34
  <tr>
35
  <th scope="row">
36
- <?php esc_html_e('Contacts', 'qlwapp'); ?>
37
  </th>
38
  <td>
39
  <table id="qlwapp-contact-form" class="form-table widefat hidden" data-editindex="-1">
@@ -41,26 +41,26 @@
41
  <tfoot>
42
  <tr>
43
  <td colspan="2">
44
- <?php submit_button(esc_html__('Save Contact', 'qlwapp'), 'primary', null, false, array('id' => 'btn-save-contact')); ?>
45
  <span class="spinner"></span>
46
  </td>
47
  </tr>
48
  <tfoot>
49
  </table>
50
  <div class="submit qlwapp-premium-field">
51
- <?php submit_button(esc_html__('Add Contact', 'qlwapp'), 'secondary', null, false, array('id' => 'btn-add-contact')); ?>
52
- <p class="description"><small><?php esc_html_e('This is a premium feature', 'qlwapp'); ?></small></p>
53
  </div>
54
  <table id="qlwapp-contacts-table" class="form-table widefat striped">
55
  <thead>
56
  <tr>
57
- <td><b><?php esc_html_e('Avatar', 'qlwapp'); ?></b></td>
58
- <td><b><?php esc_html_e('Phone', 'qlwapp'); ?></b></td>
59
- <td><b><?php esc_html_e('Name', 'qlwapp'); ?></b></td>
60
- <td><b><?php esc_html_e('Label', 'qlwapp'); ?></b></td>
61
- <td><b><?php esc_html_e('Message', 'qlwapp'); ?></b></td>
62
- <td><b><?php esc_html_e('Chat', 'qlwapp'); ?></b></td>
63
- <td><b><?php esc_html_e('Actions', 'qlwapp'); ?></b></td>
64
  </tr>
65
  </thead>
66
  <tbody>
4
  <table class="form-table">
5
  <tbody>
6
  <tr>
7
+ <th scope="row"><?php esc_html_e('Disable', 'wp-whatsapp-chat'); ?></th>
8
  <td>
9
  <select name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[box][enable]" class="qlwapp-select2">
10
+ <option value="yes" <?php selected($qlwapp['box']['enable'], 'yes'); ?>><?php esc_html_e('Enable contact box', 'wp-whatsapp-chat'); ?></option>
11
+ <option value="no" <?php selected($qlwapp['box']['enable'], 'no'); ?>><?php esc_html_e('Disable contact box', 'wp-whatsapp-chat'); ?></option>
12
  </select>
13
  </td>
14
  </tr>
15
  <tr>
16
+ <th scope="row"><?php esc_html_e('Header', 'wp-whatsapp-chat'); ?></th>
17
  <td>
18
  <?php wp_editor($qlwapp['box']['header'], 'qlwapp_box_header', ['editor_height' => 200, 'textarea_name' => esc_attr(QLWAPP_DOMAIN) . '[box][header]']); ?>
19
  </td>
20
  </tr>
21
  <tr>
22
+ <th scope="row"><?php esc_html_e('Footer', 'wp-whatsapp-chat'); ?></th>
23
  <td>
24
  <?php wp_editor($qlwapp['box']['footer'], 'qlwapp_box_footer', ['editor_height' => 200, 'textarea_name' => esc_attr(QLWAPP_DOMAIN) . '[box][footer]']); ?>
25
  </td>
26
  </tr>
27
  <tr>
28
+ <th scope="row"><?php esc_html_e('Response', 'wp-whatsapp-chat'); ?></th>
29
  <td>
30
  <input type="text" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[chat][response]'); ?>" placeholder="<?php echo esc_html($this->defaults['chat']['response']); ?>" value="<?php echo esc_attr($qlwapp['chat']['response']); ?>" class="qlwapp-input"/>
31
+ <p class="description"><?php esc_html_e('Write a response text.', 'wp-whatsapp-chat'); ?></p>
32
  </td>
33
  </tr>
34
  <tr>
35
  <th scope="row">
36
+ <?php esc_html_e('Contacts', 'wp-whatsapp-chat'); ?>
37
  </th>
38
  <td>
39
  <table id="qlwapp-contact-form" class="form-table widefat hidden" data-editindex="-1">
41
  <tfoot>
42
  <tr>
43
  <td colspan="2">
44
+ <?php submit_button(esc_html__('Save Contact', 'wp-whatsapp-chat'), 'primary', null, false, array('id' => 'btn-save-contact')); ?>
45
  <span class="spinner"></span>
46
  </td>
47
  </tr>
48
  <tfoot>
49
  </table>
50
  <div class="submit qlwapp-premium-field">
51
+ <?php submit_button(esc_html__('Add Contact', 'wp-whatsapp-chat'), 'secondary', null, false, array('id' => 'btn-add-contact')); ?>
52
+ <p class="description"><small><?php esc_html_e('This is a premium feature', 'wp-whatsapp-chat'); ?></small></p>
53
  </div>
54
  <table id="qlwapp-contacts-table" class="form-table widefat striped">
55
  <thead>
56
  <tr>
57
+ <td><b><?php esc_html_e('Avatar', 'wp-whatsapp-chat'); ?></b></td>
58
+ <td><b><?php esc_html_e('Phone', 'wp-whatsapp-chat'); ?></b></td>
59
+ <td><b><?php esc_html_e('Name', 'wp-whatsapp-chat'); ?></b></td>
60
+ <td><b><?php esc_html_e('Label', 'wp-whatsapp-chat'); ?></b></td>
61
+ <td><b><?php esc_html_e('Message', 'wp-whatsapp-chat'); ?></b></td>
62
+ <td><b><?php esc_html_e('Chat', 'wp-whatsapp-chat'); ?></b></td>
63
+ <td><b><?php esc_html_e('Actions', 'wp-whatsapp-chat'); ?></b></td>
64
  </tr>
65
  </thead>
66
  <tbody>
includes/pages/button.php CHANGED
@@ -4,77 +4,77 @@
4
  <table class="form-table">
5
  <tbody>
6
  <tr>
7
- <th scope="row"><?php esc_html_e('Layout', 'qlwapp'); ?></th>
8
  <td>
9
  <select name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[button][layout]" class="qlwapp-select2">
10
- <option value="button" <?php selected($qlwapp['button']['layout'], 'button'); ?>><?php esc_html_e('Button', 'qlwapp'); ?></option>
11
- <option value="bubble" <?php selected($qlwapp['button']['layout'], 'bubble'); ?>><?php esc_html_e('Bubble', 'qlwapp'); ?></option>
12
  </select>
13
- <p class="description"><?php esc_html_e('Switch to change the button layout.', 'qlwapp'); ?></p>
14
  </td>
15
  </tr>
16
  <tr>
17
- <th scope="row"><?php esc_html_e('Rounded', 'qlwapp'); ?></th>
18
  <td>
19
  <select name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[button][rounded]" class="qlwapp-select2">
20
- <option value="yes" <?php selected($qlwapp['button']['rounded'], 'yes'); ?>><?php esc_html_e('Add rounded border', 'qlwapp'); ?></option>
21
- <option value="no" <?php selected($qlwapp['button']['rounded'], 'no'); ?>><?php esc_html_e('Remove rounded border', 'qlwapp'); ?></option>
22
  </select>
23
- <p class="description"><?php esc_html_e('Add rounded border to the button.', 'qlwapp'); ?></p>
24
  </td>
25
  </tr>
26
  <tr>
27
- <th scope="row"><?php esc_html_e('Position', 'qlwapp'); ?></th>
28
  <td>
29
  <select name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[button][position]" class="qlwapp-select2">
30
- <option value="middle-left" <?php selected($qlwapp['button']['position'], 'middle-left'); ?>><?php esc_html_e('Middle Left', 'qlwapp'); ?></option>
31
- <option value="middle-right" <?php selected($qlwapp['button']['position'], 'middle-right'); ?>><?php esc_html_e('Middle Right', 'qlwapp'); ?></option>
32
- <option value="bottom-left" <?php selected($qlwapp['button']['position'], 'bottom-left'); ?>><?php esc_html_e('Bottom Left', 'qlwapp'); ?></option>
33
- <option value="bottom-right" <?php selected($qlwapp['button']['position'], 'bottom-right'); ?>><?php esc_html_e('Bottom Right', 'qlwapp'); ?></option>
34
  </select>
35
- <p class="description"><?php esc_html_e('Switch to change the button position.', 'qlwapp'); ?></p>
36
  </td>
37
  </tr>
38
  <tr>
39
- <th scope="row"><?php esc_html_e('Text', 'qlwapp'); ?></th>
40
  <td>
41
  <input type="text" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[button][text]'); ?>" placeholder="<?php echo esc_html($this->defaults['button']['text']); ?>" value="<?php echo esc_attr($qlwapp['button']['text']); ?>" class="qlwapp-input"/>
42
- <p class="description"><?php esc_html_e('Customize your text.', 'qlwapp'); ?></p>
43
  </td>
44
  </tr>
45
  <tr>
46
- <th scope="row"><?php esc_html_e('Phone', 'qlwapp'); ?></th>
47
  <td>
48
  <input type="tel" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[button][phone]'); ?>" placeholder="<?php echo esc_html($this->defaults['button']['phone']); ?>" value="<?php echo esc_attr($qlwapp['button']['phone']); ?>" class="qlwapp-input"/>
49
- <p class="description"><?php esc_html_e('Full phone number in international format.', 'qlwapp'); ?></p>
50
 
51
  </td>
52
  </tr>
53
  <tr>
54
- <th scope="row"><?php esc_html_e('Icon', 'qlwapp'); ?></th>
55
  <td>
56
  <div class="submit qlwapp-premium-field">
57
- <?php submit_button(__('Add Icon', 'qlwapp'), 'secondary', null, false, array('id' => 'btn-add-icon')); ?>
58
- <p class="description"><small><?php esc_html_e('This is a premium feature', 'qlwapp'); ?></small></p>
59
  </div>
60
  <input type="text" name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[button][icon]" placeholder="<?php echo esc_html($this->defaults['button']['icon']); ?>" value="<?php echo esc_attr($qlwapp['button']['icon']); ?>" class="qlwapp-input"/>
61
  </td>
62
  </tr>
63
  <tr>
64
- <th scope="row"><?php esc_html_e('Message', 'qlwapp'); ?></th>
65
  <td>
66
  <textarea maxlength="500" style="width:100%;height: 100px;padding: 8px;" name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[user][message]" placeholder="<?php echo esc_html($this->defaults['user']['message']); ?>" ><?php echo esc_html(trim($qlwapp['user']['message'])); ?></textarea>
67
- <p class="description"><?php esc_html_e('Message that will automatically appear in the text field of a chat.', 'qlwapp'); ?></p>
68
  </td>
69
  </tr>
70
  <tr>
71
- <th scope="row"><?php esc_html_e('Discreet link', 'qlwapp'); ?></th>
72
  <td>
73
  <select name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[button][developer]" class="qlwapp-select2">
74
- <option value="yes" <?php selected($qlwapp['button']['developer'], 'yes'); ?>><?php esc_html_e('Show developer link', 'qlwapp'); ?></option>
75
- <option value="no" <?php selected($qlwapp['button']['developer'], 'no'); ?>><?php esc_html_e('Hide developer link', 'qlwapp'); ?></option>
76
  </select>
77
- <p class="description"><?php esc_html_e('Leave a discrete link to developer to help and keep new updates and support.', 'qlwapp'); ?></p>
78
  </td>
79
  </tr>
80
  </tbody>
4
  <table class="form-table">
5
  <tbody>
6
  <tr>
7
+ <th scope="row"><?php esc_html_e('Layout', 'wp-whatsapp-chat'); ?></th>
8
  <td>
9
  <select name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[button][layout]" class="qlwapp-select2">
10
+ <option value="button" <?php selected($qlwapp['button']['layout'], 'button'); ?>><?php esc_html_e('Button', 'wp-whatsapp-chat'); ?></option>
11
+ <option value="bubble" <?php selected($qlwapp['button']['layout'], 'bubble'); ?>><?php esc_html_e('Bubble', 'wp-whatsapp-chat'); ?></option>
12
  </select>
13
+ <p class="description"><?php esc_html_e('Switch to change the button layout.', 'wp-whatsapp-chat'); ?></p>
14
  </td>
15
  </tr>
16
  <tr>
17
+ <th scope="row"><?php esc_html_e('Rounded', 'wp-whatsapp-chat'); ?></th>
18
  <td>
19
  <select name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[button][rounded]" class="qlwapp-select2">
20
+ <option value="yes" <?php selected($qlwapp['button']['rounded'], 'yes'); ?>><?php esc_html_e('Add rounded border', 'wp-whatsapp-chat'); ?></option>
21
+ <option value="no" <?php selected($qlwapp['button']['rounded'], 'no'); ?>><?php esc_html_e('Remove rounded border', 'wp-whatsapp-chat'); ?></option>
22
  </select>
23
+ <p class="description"><?php esc_html_e('Add rounded border to the button.', 'wp-whatsapp-chat'); ?></p>
24
  </td>
25
  </tr>
26
  <tr>
27
+ <th scope="row"><?php esc_html_e('Position', 'wp-whatsapp-chat'); ?></th>
28
  <td>
29
  <select name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[button][position]" class="qlwapp-select2">
30
+ <option value="middle-left" <?php selected($qlwapp['button']['position'], 'middle-left'); ?>><?php esc_html_e('Middle Left', 'wp-whatsapp-chat'); ?></option>
31
+ <option value="middle-right" <?php selected($qlwapp['button']['position'], 'middle-right'); ?>><?php esc_html_e('Middle Right', 'wp-whatsapp-chat'); ?></option>
32
+ <option value="bottom-left" <?php selected($qlwapp['button']['position'], 'bottom-left'); ?>><?php esc_html_e('Bottom Left', 'wp-whatsapp-chat'); ?></option>
33
+ <option value="bottom-right" <?php selected($qlwapp['button']['position'], 'bottom-right'); ?>><?php esc_html_e('Bottom Right', 'wp-whatsapp-chat'); ?></option>
34
  </select>
35
+ <p class="description"><?php esc_html_e('Switch to change the button position.', 'wp-whatsapp-chat'); ?></p>
36
  </td>
37
  </tr>
38
  <tr>
39
+ <th scope="row"><?php esc_html_e('Text', 'wp-whatsapp-chat'); ?></th>
40
  <td>
41
  <input type="text" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[button][text]'); ?>" placeholder="<?php echo esc_html($this->defaults['button']['text']); ?>" value="<?php echo esc_attr($qlwapp['button']['text']); ?>" class="qlwapp-input"/>
42
+ <p class="description"><?php esc_html_e('Customize your text.', 'wp-whatsapp-chat'); ?></p>
43
  </td>
44
  </tr>
45
  <tr>
46
+ <th scope="row"><?php esc_html_e('Phone', 'wp-whatsapp-chat'); ?></th>
47
  <td>
48
  <input type="tel" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[button][phone]'); ?>" placeholder="<?php echo esc_html($this->defaults['button']['phone']); ?>" value="<?php echo esc_attr($qlwapp['button']['phone']); ?>" class="qlwapp-input"/>
49
+ <p class="description"><?php esc_html_e('Full phone number in international format.', 'wp-whatsapp-chat'); ?></p>
50
 
51
  </td>
52
  </tr>
53
  <tr>
54
+ <th scope="row"><?php esc_html_e('Icon', 'wp-whatsapp-chat'); ?></th>
55
  <td>
56
  <div class="submit qlwapp-premium-field">
57
+ <?php submit_button(__('Add Icon', 'wp-whatsapp-chat'), 'secondary', null, false, array('id' => 'btn-add-icon')); ?>
58
+ <p class="description"><small><?php esc_html_e('This is a premium feature', 'wp-whatsapp-chat'); ?></small></p>
59
  </div>
60
  <input type="text" name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[button][icon]" placeholder="<?php echo esc_html($this->defaults['button']['icon']); ?>" value="<?php echo esc_attr($qlwapp['button']['icon']); ?>" class="qlwapp-input"/>
61
  </td>
62
  </tr>
63
  <tr>
64
+ <th scope="row"><?php esc_html_e('Message', 'wp-whatsapp-chat'); ?></th>
65
  <td>
66
  <textarea maxlength="500" style="width:100%;height: 100px;padding: 8px;" name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[user][message]" placeholder="<?php echo esc_html($this->defaults['user']['message']); ?>" ><?php echo esc_html(trim($qlwapp['user']['message'])); ?></textarea>
67
+ <p class="description"><?php esc_html_e('Message that will automatically appear in the text field of a chat.', 'wp-whatsapp-chat'); ?></p>
68
  </td>
69
  </tr>
70
  <tr>
71
+ <th scope="row"><?php esc_html_e('Discreet link', 'wp-whatsapp-chat'); ?></th>
72
  <td>
73
  <select name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[button][developer]" class="qlwapp-select2">
74
+ <option value="yes" <?php selected($qlwapp['button']['developer'], 'yes'); ?>><?php esc_html_e('Show developer link', 'wp-whatsapp-chat'); ?></option>
75
+ <option value="no" <?php selected($qlwapp['button']['developer'], 'no'); ?>><?php esc_html_e('Hide developer link', 'wp-whatsapp-chat'); ?></option>
76
  </select>
77
+ <p class="description"><?php esc_html_e('Leave a discrete link to developer to help and keep new updates and support.', 'wp-whatsapp-chat'); ?></p>
78
  </td>
79
  </tr>
80
  </tbody>
includes/pages/colors.php CHANGED
@@ -4,43 +4,43 @@
4
  <table class="form-table">
5
  <tbody>
6
  <tr>
7
- <th scope="row"><?php esc_html_e('Background', 'qlwapp'); ?></th>
8
  <td>
9
  <input class="qlwapp-color-field" type="text" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[scheme][brand]'); ?>" value="<?php echo esc_attr($qlwapp['scheme']['brand']); ?>" />
10
  </td>
11
  </tr>
12
  <tr>
13
- <th scope="row"><?php esc_html_e('Color', 'qlwapp'); ?></th>
14
  <td>
15
  <input class="qlwapp-color-field" type="text" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[scheme][text]'); ?>" value="<?php echo esc_attr($qlwapp['scheme']['text']); ?>" />
16
  </td>
17
  </tr>
18
  <tr class="qlwapp-premium-field">
19
- <th scope="row"><?php esc_html_e('Link', 'qlwapp'); ?></th>
20
  <td>
21
  <input class="qlwapp-color-field" type="link" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[scheme][link]'); ?>" value="<?php echo esc_attr($qlwapp['scheme']['link']); ?>" />
22
- <p class="description"><small><?php esc_html_e('This is a premium feature', 'qlwapp'); ?></small></p>
23
  </td>
24
  </tr>
25
  <tr class="qlwapp-premium-field">
26
- <th scope="row"><?php esc_html_e('Message', 'qlwapp'); ?></th>
27
  <td>
28
  <input class="qlwapp-color-field" type="link" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[scheme][message]'); ?>" value="<?php echo esc_attr($qlwapp['scheme']['message']); ?>" />
29
- <p class="description"><small><?php esc_html_e('This is a premium feature', 'qlwapp'); ?></small></p>
30
  </td>
31
  </tr>
32
  <tr class="qlwapp-premium-field">
33
- <th scope="row"><?php esc_html_e('Label', 'qlwapp'); ?></th>
34
  <td>
35
  <input class="qlwapp-color-field" type="link" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[scheme][label]'); ?>" value="<?php echo esc_attr($qlwapp['scheme']['label']); ?>" />
36
- <p class="description"><small><?php esc_html_e('This is a premium feature', 'qlwapp'); ?></small></p>
37
  </td>
38
  </tr>
39
  <tr class="qlwapp-premium-field">
40
- <th scope="row"><?php esc_html_e('Name', 'qlwapp'); ?></th>
41
  <td>
42
  <input class="qlwapp-color-field" type="link" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[scheme][name]'); ?>" value="<?php echo esc_attr($qlwapp['scheme']['name']); ?>" />
43
- <p class="description"><small><?php esc_html_e('This is a premium feature', 'qlwapp'); ?></small></p>
44
  </td>
45
  </tr>
46
  </tbody>
4
  <table class="form-table">
5
  <tbody>
6
  <tr>
7
+ <th scope="row"><?php esc_html_e('Background', 'wp-whatsapp-chat'); ?></th>
8
  <td>
9
  <input class="qlwapp-color-field" type="text" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[scheme][brand]'); ?>" value="<?php echo esc_attr($qlwapp['scheme']['brand']); ?>" />
10
  </td>
11
  </tr>
12
  <tr>
13
+ <th scope="row"><?php esc_html_e('Color', 'wp-whatsapp-chat'); ?></th>
14
  <td>
15
  <input class="qlwapp-color-field" type="text" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[scheme][text]'); ?>" value="<?php echo esc_attr($qlwapp['scheme']['text']); ?>" />
16
  </td>
17
  </tr>
18
  <tr class="qlwapp-premium-field">
19
+ <th scope="row"><?php esc_html_e('Link', 'wp-whatsapp-chat'); ?></th>
20
  <td>
21
  <input class="qlwapp-color-field" type="link" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[scheme][link]'); ?>" value="<?php echo esc_attr($qlwapp['scheme']['link']); ?>" />
22
+ <p class="description"><small><?php esc_html_e('This is a premium feature', 'wp-whatsapp-chat'); ?></small></p>
23
  </td>
24
  </tr>
25
  <tr class="qlwapp-premium-field">
26
+ <th scope="row"><?php esc_html_e('Message', 'wp-whatsapp-chat'); ?></th>
27
  <td>
28
  <input class="qlwapp-color-field" type="link" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[scheme][message]'); ?>" value="<?php echo esc_attr($qlwapp['scheme']['message']); ?>" />
29
+ <p class="description"><small><?php esc_html_e('This is a premium feature', 'wp-whatsapp-chat'); ?></small></p>
30
  </td>
31
  </tr>
32
  <tr class="qlwapp-premium-field">
33
+ <th scope="row"><?php esc_html_e('Label', 'wp-whatsapp-chat'); ?></th>
34
  <td>
35
  <input class="qlwapp-color-field" type="link" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[scheme][label]'); ?>" value="<?php echo esc_attr($qlwapp['scheme']['label']); ?>" />
36
+ <p class="description"><small><?php esc_html_e('This is a premium feature', 'wp-whatsapp-chat'); ?></small></p>
37
  </td>
38
  </tr>
39
  <tr class="qlwapp-premium-field">
40
+ <th scope="row"><?php esc_html_e('Name', 'wp-whatsapp-chat'); ?></th>
41
  <td>
42
  <input class="qlwapp-color-field" type="link" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[scheme][name]'); ?>" value="<?php echo esc_attr($qlwapp['scheme']['name']); ?>" />
43
+ <p class="description"><small><?php esc_html_e('This is a premium feature', 'wp-whatsapp-chat'); ?></small></p>
44
  </td>
45
  </tr>
46
  </tbody>
includes/pages/display.php CHANGED
@@ -4,27 +4,27 @@
4
  <table class="form-table">
5
  <tbody>
6
  <tr>
7
- <th scope="row"><?php esc_html_e('Devices', 'qlwapp'); ?></th>
8
  <td>
9
- <select name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[display][devices]" style="width:350px" data-placeholder="<?php echo esc_attr('Choose target&hellip;', 'qlwapp'); ?>" aria-label="<?php echo esc_attr('Posts', 'qlwapp'); ?>" class="qlwapp-select2">
10
- <option value="all" <?php selected('all', $qlwapp['display']['devices']); ?>><?php esc_html_e('Show in all devices', 'qlwapp'); ?></option>
11
- <option value="mobile" <?php selected('mobile', $qlwapp['display']['devices']); ?>><?php esc_html_e('Show in mobile devices', 'qlwapp'); ?></option>
12
- <option value="desktop" <?php selected('desktop', $qlwapp['display']['devices']); ?>><?php esc_html_e('Show in desktop devices', 'qlwapp'); ?></option>
13
- <option value="hide" <?php selected('hide', $qlwapp['display']['devices']); ?>><?php esc_html_e('Hide in all devices', 'qlwapp'); ?></option>
14
  </select>
15
  </td>
16
  </tr>
17
  <tr>
18
- <th scope="row"><?php esc_html_e('Target', 'qlwapp'); ?></th>
19
  <td>
20
- <select multiple="multiple" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[display][target][]'); ?>" style="width:350px" data-placeholder="<?php echo esc_attr('Choose target&hellip;', 'qlwapp'); ?>" aria-label="<?php echo esc_attr('Posts', 'qlwapp'); ?>" class="qlwapp-select2">
21
- <option value="none" <?php echo selected(true, in_array('none', (array) $qlwapp['display']['target'])); ?>><?php echo esc_html__('Exclude from all', 'qlwapp'); ?></option>
22
- <option value="home" <?php echo selected(true, in_array('home', (array) $qlwapp['display']['target'])); ?>><?php echo esc_html__('Home', 'qlwapp'); ?></option>
23
- <option value="blog" <?php echo selected(true, in_array('blog', (array) $qlwapp['display']['target'])); ?>><?php echo esc_html__('Blog', 'qlwapp'); ?></option>
24
- <option value="search" <?php echo selected(true, in_array('search', (array) $qlwapp['display']['target'])); ?>><?php echo esc_html__('Search', 'qlwapp'); ?></option>
25
  <option value="error" <?php echo selected(true, in_array('error', (array) $qlwapp['display']['target'])); ?>><?php echo esc_html('404'); ?></option>
26
  </select>
27
- <p class="description"><?php esc_html_e('If you select an option all the other will be excluded', 'qlwapp'); ?></p>
28
  </td>
29
  </tr>
30
  <?php
@@ -45,9 +45,9 @@
45
  <tr class="qlwapp-premium-field">
46
  <th scope="row"><?php esc_html_e(ucwords($type->label)); ?></th>
47
  <td>
48
- <select id="qlwapp_select2_<?php echo esc_attr($type->name); ?>" multiple="multiple" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[display][' . $type->name . '][]'); ?>" style="width:350px" data-placeholder="<?php printf(esc_html__('Select for %s&hellip;', 'qlwapp'), $type->label); ?>" aria-label="<?php echo esc_attr($type->label); ?>" data-name="<?php echo esc_attr($type->name); ?>" class="<?php echo esc_attr($count->publish < 11 ? 'qlwapp-select2' : 'qlwapp-select2-ajax' ); ?>">
49
- <option value="none" <?php echo selected(true, in_array('none', (array) $qlwapp['display'][$type->name])); ?>><?php echo esc_html__('Exclude from all', 'qlwapp'); ?></option>
50
- <option value="archive" <?php echo selected(true, in_array('archive', (array) $qlwapp['display'][$type->name])); ?>><?php echo esc_html__('Archive', 'qlwapp'); ?></option>
51
  <?php
52
  if ($count->publish < 11) {
53
 
@@ -69,7 +69,7 @@
69
  }
70
  ?>
71
  </select>
72
- <p class="description"><small><?php esc_html_e('This is a premium feature', 'qlwapp'); ?></small></p>
73
  </td>
74
  </tr>
75
  <?php
@@ -93,8 +93,8 @@
93
  <tr>
94
  <th scope="row"><?php esc_html_e(ucwords($taxonomy->label)); ?></th>
95
  <td>
96
- <select multiple="multiple" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[display][' . $taxonomy->name . '][]'); ?>" style="width:350px" data-placeholder="<?php echo esc_attr('Choose target&hellip;', 'qlwapp'); ?>" aria-label="<?php echo esc_attr($taxonomy->label); ?>" class="qlwapp-select2">
97
- <option value="none" <?php echo selected(true, in_array('none', (array) $qlwapp['display'][$taxonomy->name])); ?>><?php echo esc_html__('Exclude from all', 'qlwapp'); ?></option>
98
  <?php
99
  foreach ($terms as $term) {
100
  ?>
4
  <table class="form-table">
5
  <tbody>
6
  <tr>
7
+ <th scope="row"><?php esc_html_e('Devices', 'wp-whatsapp-chat'); ?></th>
8
  <td>
9
+ <select name="<?php echo esc_attr(QLWAPP_DOMAIN); ?>[display][devices]" style="width:350px" data-placeholder="<?php echo esc_attr('Choose target&hellip;', 'wp-whatsapp-chat'); ?>" aria-label="<?php echo esc_attr('Posts', 'wp-whatsapp-chat'); ?>" class="qlwapp-select2">
10
+ <option value="all" <?php selected('all', $qlwapp['display']['devices']); ?>><?php esc_html_e('Show in all devices', 'wp-whatsapp-chat'); ?></option>
11
+ <option value="mobile" <?php selected('mobile', $qlwapp['display']['devices']); ?>><?php esc_html_e('Show in mobile devices', 'wp-whatsapp-chat'); ?></option>
12
+ <option value="desktop" <?php selected('desktop', $qlwapp['display']['devices']); ?>><?php esc_html_e('Show in desktop devices', 'wp-whatsapp-chat'); ?></option>
13
+ <option value="hide" <?php selected('hide', $qlwapp['display']['devices']); ?>><?php esc_html_e('Hide in all devices', 'wp-whatsapp-chat'); ?></option>
14
  </select>
15
  </td>
16
  </tr>
17
  <tr>
18
+ <th scope="row"><?php esc_html_e('Target', 'wp-whatsapp-chat'); ?></th>
19
  <td>
20
+ <select multiple="multiple" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[display][target][]'); ?>" style="width:350px" data-placeholder="<?php echo esc_attr('Choose target&hellip;', 'wp-whatsapp-chat'); ?>" aria-label="<?php echo esc_attr('Posts', 'wp-whatsapp-chat'); ?>" class="qlwapp-select2">
21
+ <option value="none" <?php echo selected(true, in_array('none', (array) $qlwapp['display']['target'])); ?>><?php echo esc_html__('Exclude from all', 'wp-whatsapp-chat'); ?></option>
22
+ <option value="home" <?php echo selected(true, in_array('home', (array) $qlwapp['display']['target'])); ?>><?php echo esc_html__('Home', 'wp-whatsapp-chat'); ?></option>
23
+ <option value="blog" <?php echo selected(true, in_array('blog', (array) $qlwapp['display']['target'])); ?>><?php echo esc_html__('Blog', 'wp-whatsapp-chat'); ?></option>
24
+ <option value="search" <?php echo selected(true, in_array('search', (array) $qlwapp['display']['target'])); ?>><?php echo esc_html__('Search', 'wp-whatsapp-chat'); ?></option>
25
  <option value="error" <?php echo selected(true, in_array('error', (array) $qlwapp['display']['target'])); ?>><?php echo esc_html('404'); ?></option>
26
  </select>
27
+ <p class="description"><?php esc_html_e('If you select an option all the other will be excluded', 'wp-whatsapp-chat'); ?></p>
28
  </td>
29
  </tr>
30
  <?php
45
  <tr class="qlwapp-premium-field">
46
  <th scope="row"><?php esc_html_e(ucwords($type->label)); ?></th>
47
  <td>
48
+ <select id="qlwapp_select2_<?php echo esc_attr($type->name); ?>" multiple="multiple" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[display][' . $type->name . '][]'); ?>" style="width:350px" data-placeholder="<?php printf(esc_html__('Select for %s&hellip;', 'wp-whatsapp-chat'), $type->label); ?>" aria-label="<?php echo esc_attr($type->label); ?>" data-name="<?php echo esc_attr($type->name); ?>" class="<?php echo esc_attr($count->publish < 11 ? 'qlwapp-select2' : 'qlwapp-select2-ajax' ); ?>">
49
+ <option value="none" <?php echo selected(true, in_array('none', (array) $qlwapp['display'][$type->name])); ?>><?php echo esc_html__('Exclude from all', 'wp-whatsapp-chat'); ?></option>
50
+ <option value="archive" <?php echo selected(true, in_array('archive', (array) $qlwapp['display'][$type->name])); ?>><?php echo esc_html__('Archive', 'wp-whatsapp-chat'); ?></option>
51
  <?php
52
  if ($count->publish < 11) {
53
 
69
  }
70
  ?>
71
  </select>
72
+ <p class="description"><small><?php esc_html_e('This is a premium feature', 'wp-whatsapp-chat'); ?></small></p>
73
  </td>
74
  </tr>
75
  <?php
93
  <tr>
94
  <th scope="row"><?php esc_html_e(ucwords($taxonomy->label)); ?></th>
95
  <td>
96
+ <select multiple="multiple" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[display][' . $taxonomy->name . '][]'); ?>" style="width:350px" data-placeholder="<?php echo esc_attr('Choose target&hellip;', 'wp-whatsapp-chat'); ?>" aria-label="<?php echo esc_attr($taxonomy->label); ?>" class="qlwapp-select2">
97
+ <option value="none" <?php echo selected(true, in_array('none', (array) $qlwapp['display'][$taxonomy->name])); ?>><?php echo esc_html__('Exclude from all', 'wp-whatsapp-chat'); ?></option>
98
  <?php
99
  foreach ($terms as $term) {
100
  ?>
includes/pages/purchase.php CHANGED
@@ -2,31 +2,31 @@
2
  <div class="two-col">
3
  <div class="col" style="min-width: 60%;">
4
  <div class="welcome-header">
5
- <h1><?php esc_html_e('Premium', 'qlwapp'); ?></h1>
6
  <div class="about-description">
7
- <?php esc_html_e('Unlock the power of our premium WhatsApp Chat plugin wich allows you to include unlimited agent accounts with their names and labels inside the box to provide a direct contact to the different support areas of your site.', 'qlwapp'); ?>
8
  </div>
9
  <br/>
10
- <a style="background-color: #006cff;color: #ffffff;text-decoration: none;padding: 10px 30px;border-radius: 30px;margin: 10px 0 0 0;display: inline-block;" target="_blank" href="<?php echo esc_url(QLWAPP_PURCHASE_URL); ?>"><?php esc_html_e('Purchase Now', 'qlwapp'); ?></a>
11
- <a style="background-color: #ffffff;color: #626262;text-decoration: none;padding: 10px 30px;border-radius: 30px;margin: 10px 0 0 0;display: inline-block;" target="_blank" href="<?php echo esc_url(QLWAPP_SUPPORT_URL); ?>"><?php esc_html_e('Get Support', 'qlwapp'); ?></a>
12
  </div>
13
  <hr/>
14
  <div class="feature-section">
15
- <h3><?php esc_html_e('Multiple agents', 'qlwapp'); ?></h3>
16
  <p>
17
- <?php esc_html_e('WhatsApp Chat allows you to include unlimited agent accounts with their names and labels inside the box to provide a direct contact to the different support areas of your site.', 'qlwapp'); ?>
18
  </p>
19
  </div>
20
  <div class="feature-section">
21
- <h3><?php esc_html_e('Customize colors', 'qlwapp'); ?></h3>
22
  <p>
23
- <?php esc_html_e('Customize the colors to match site’s theme colors through the WordPress live customizer interface.', 'qlwapp'); ?>
24
  </p>
25
  </div>
26
  <div class="feature-section">
27
- <h3><?php esc_html_e('Custom icons', 'qlwapp'); ?></h3>
28
  <p>
29
- <?php esc_html_e('Our plugin allows you to select between more than fourty icons to include in your Whatsapp button.', 'qlwapp'); ?>
30
  </p>
31
  </div>
32
  </div>
@@ -43,29 +43,29 @@
43
  <div class="col" style="min-width: 60%;">
44
  <br/>
45
  <div class="welcome-header">
46
- <h1><?php esc_html_e('Chatbox interface', 'qlwapp'); ?></h1>
47
  <div class="about-description">
48
- <?php esc_html_e('WhatsApp chat for WordPress allows you to include a chatbox for each agent where your users can type their first message.', 'qlwapp'); ?>
49
- <?php //esc_html_e('Take in mind that this chat dosent allow .', 'qlwapp'); ?>
50
  </div>
51
  </div>
52
  <hr/>
53
  <div class="feature-section">
54
- <h3><?php esc_html_e('Custom agent message', 'qlwapp'); ?></h3>
55
  <p>
56
- <?php esc_html_e('Allow you to set a custom message for each agent that will displayed on the chatbox.', 'qlwapp'); ?>
57
  </p>
58
  </div>
59
  <div class="feature-section">
60
- <h3><?php esc_html_e('Custom user message', 'qlwapp'); ?></h3>
61
  <p>
62
- <?php esc_html_e('You can choose the predefined user message that will be sent to the agent phone number.', 'qlwapp'); ?>
63
  </p>
64
  </div>
65
  <div class="feature-section">
66
- <h3><?php esc_html_e('Type user message', 'qlwapp'); ?></h3>
67
  <p>
68
- <?php esc_html_e('Allow your users to type their own messages before send it to the agent phone number.', 'qlwapp'); ?>
69
  </p>
70
  </div>
71
  </div>
2
  <div class="two-col">
3
  <div class="col" style="min-width: 60%;">
4
  <div class="welcome-header">
5
+ <h1><?php esc_html_e('Premium', 'wp-whatsapp-chat'); ?></h1>
6
  <div class="about-description">
7
+ <?php esc_html_e('Unlock the power of our premium WhatsApp Chat plugin wich allows you to include unlimited agent accounts with their names and labels inside the box to provide a direct contact to the different support areas of your site.', 'wp-whatsapp-chat'); ?>
8
  </div>
9
  <br/>
10
+ <a style="background-color: #006cff;color: #ffffff;text-decoration: none;padding: 10px 30px;border-radius: 30px;margin: 10px 0 0 0;display: inline-block;" target="_blank" href="<?php echo esc_url(QLWAPP_PURCHASE_URL); ?>"><?php esc_html_e('Purchase Now', 'wp-whatsapp-chat'); ?></a>
11
+ <a style="background-color: #ffffff;color: #626262;text-decoration: none;padding: 10px 30px;border-radius: 30px;margin: 10px 0 0 0;display: inline-block;" target="_blank" href="<?php echo esc_url(QLWAPP_SUPPORT_URL); ?>"><?php esc_html_e('Get Support', 'wp-whatsapp-chat'); ?></a>
12
  </div>
13
  <hr/>
14
  <div class="feature-section">
15
+ <h3><?php esc_html_e('Multiple agents', 'wp-whatsapp-chat'); ?></h3>
16
  <p>
17
+ <?php esc_html_e('WhatsApp Chat allows you to include unlimited agent accounts with their names and labels inside the box to provide a direct contact to the different support areas of your site.', 'wp-whatsapp-chat'); ?>
18
  </p>
19
  </div>
20
  <div class="feature-section">
21
+ <h3><?php esc_html_e('Customize colors', 'wp-whatsapp-chat'); ?></h3>
22
  <p>
23
+ <?php esc_html_e('Customize the colors to match site’s theme colors through the WordPress live customizer interface.', 'wp-whatsapp-chat'); ?>
24
  </p>
25
  </div>
26
  <div class="feature-section">
27
+ <h3><?php esc_html_e('Custom icons', 'wp-whatsapp-chat'); ?></h3>
28
  <p>
29
+ <?php esc_html_e('Our plugin allows you to select between more than fourty icons to include in your Whatsapp button.', 'wp-whatsapp-chat'); ?>
30
  </p>
31
  </div>
32
  </div>
43
  <div class="col" style="min-width: 60%;">
44
  <br/>
45
  <div class="welcome-header">
46
+ <h1><?php esc_html_e('Chatbox interface', 'wp-whatsapp-chat'); ?></h1>
47
  <div class="about-description">
48
+ <?php esc_html_e('WhatsApp chat for WordPress allows you to include a chatbox for each agent where your users can type their first message.', 'wp-whatsapp-chat'); ?>
49
+ <?php //esc_html_e('Take in mind that this chat dosent allow .', 'wp-whatsapp-chat'); ?>
50
  </div>
51
  </div>
52
  <hr/>
53
  <div class="feature-section">
54
+ <h3><?php esc_html_e('Custom agent message', 'wp-whatsapp-chat'); ?></h3>
55
  <p>
56
+ <?php esc_html_e('Allow you to set a custom message for each agent that will displayed on the chatbox.', 'wp-whatsapp-chat'); ?>
57
  </p>
58
  </div>
59
  <div class="feature-section">
60
+ <h3><?php esc_html_e('Custom user message', 'wp-whatsapp-chat'); ?></h3>
61
  <p>
62
+ <?php esc_html_e('You can choose the predefined user message that will be sent to the agent phone number.', 'wp-whatsapp-chat'); ?>
63
  </p>
64
  </div>
65
  <div class="feature-section">
66
+ <h3><?php esc_html_e('Type user message', 'wp-whatsapp-chat'); ?></h3>
67
  <p>
68
+ <?php esc_html_e('Allow your users to type their own messages before send it to the agent phone number.', 'wp-whatsapp-chat'); ?>
69
  </p>
70
  </div>
71
  </div>
includes/pages/welcome.php CHANGED
@@ -3,30 +3,30 @@
3
  <div class="qlwapp-welcome-header">
4
  <h1><?php echo QLWAPP_PLUGIN_NAME; ?> <span style="font-size: 24px;color: #555;">v<?php echo QLWAPP_PLUGIN_VERSION; ?></span></h1>
5
  <div class="about-text">
6
- <?php esc_html_e('Hello we\'re QuadLayers! We\'ve recently acquired this plugin and this is the first update. We have worked very much and very hard to release it, and we will do our absolute best to support it and fix all the issues.', 'qlwapp'); ?>
7
  </div>
8
  </div>
9
  <hr/>
10
  <div class="feature-section one-col is-wide wp-clearfix">
11
- <h3><?php esc_html_e('Community', 'qlwapp'); ?></h3>
12
  <p>
13
- <?php esc_html_e('If you want to get in touch with other WhatsApp Chat users or be aware of our promotional discounts join our community now.', 'qlwapp'); ?>
14
  </p>
15
- <a style="background-color: #ffffff;color: #626262;text-decoration: none;padding: 10px 30px;border-radius: 30px;margin: 10px 0 0 0;display: inline-block;" target="_blank" href="<?php echo QLWAPP_GROUP_URL; ?>"><?php esc_html_e('Join us', 'qlwapp'); ?></a>
16
  </div>
17
  <div class="feature-section one-col is-wide wp-clearfix">
18
- <h3><?php esc_html_e('Demo', 'qlwapp'); ?></h3>
19
  <p>
20
- <?php esc_html_e('Thank you for choosing our WhatsApp Chat plugin for WordPress! Here you can see our demo and a description about the features we offer in the premium version.', 'qlwapp'); ?>
21
  </p>
22
- <a style="background-color: #006cff;color: #ffffff;text-decoration: none;padding: 10px 30px;border-radius: 30px;margin: 10px 0 0 0;display: inline-block;" target="_blank" href="<?php echo QLWAPP_DEMO_URL; ?>"><?php esc_html_e('View demo', 'qlwapp'); ?></a>
23
  </div>
24
  <div class="feature-section one-col is-wide wp-clearfix">
25
- <h3><?php esc_html_e('Support', 'qlwapp'); ?></h3>
26
  <p>
27
- <?php esc_html_e('If you have any doubt or you find any issue don\'t hesitate to contact us through our ticket system or join our community to meet other WhatsApp Chat users.', 'qlwapp'); ?>
28
  </p>
29
- <a style="background-color: #006cff;color: #ffffff;text-decoration: none;padding: 10px 30px;border-radius: 30px;margin: 10px 0 0 0;display: inline-block;" target="_blank" href="<?php echo QLWAPP_SUPPORT_URL; ?>"><?php esc_html_e('Submit ticket', 'qlwapp'); ?></a>
30
  </div>
31
  </div>
32
  <div class="col" style="max-width: 33%;min-width: 33%;">
3
  <div class="qlwapp-welcome-header">
4
  <h1><?php echo QLWAPP_PLUGIN_NAME; ?> <span style="font-size: 24px;color: #555;">v<?php echo QLWAPP_PLUGIN_VERSION; ?></span></h1>
5
  <div class="about-text">
6
+ <?php esc_html_e('Hello we\'re QuadLayers! We\'ve recently acquired this plugin and this is the first update. We have worked very much and very hard to release it, and we will do our absolute best to support it and fix all the issues.', 'wp-whatsapp-chat'); ?>
7
  </div>
8
  </div>
9
  <hr/>
10
  <div class="feature-section one-col is-wide wp-clearfix">
11
+ <h3><?php esc_html_e('Community', 'wp-whatsapp-chat'); ?></h3>
12
  <p>
13
+ <?php esc_html_e('If you want to get in touch with other WhatsApp Chat users or be aware of our promotional discounts join our community now.', 'wp-whatsapp-chat'); ?>
14
  </p>
15
+ <a style="background-color: #ffffff;color: #626262;text-decoration: none;padding: 10px 30px;border-radius: 30px;margin: 10px 0 0 0;display: inline-block;" target="_blank" href="<?php echo QLWAPP_GROUP_URL; ?>"><?php esc_html_e('Join us', 'wp-whatsapp-chat'); ?></a>
16
  </div>
17
  <div class="feature-section one-col is-wide wp-clearfix">
18
+ <h3><?php esc_html_e('Demo', 'wp-whatsapp-chat'); ?></h3>
19
  <p>
20
+ <?php esc_html_e('Thank you for choosing our WhatsApp Chat plugin for WordPress! Here you can see our demo and a description about the features we offer in the premium version.', 'wp-whatsapp-chat'); ?>
21
  </p>
22
+ <a style="background-color: #006cff;color: #ffffff;text-decoration: none;padding: 10px 30px;border-radius: 30px;margin: 10px 0 0 0;display: inline-block;" target="_blank" href="<?php echo QLWAPP_DEMO_URL; ?>"><?php esc_html_e('View demo', 'wp-whatsapp-chat'); ?></a>
23
  </div>
24
  <div class="feature-section one-col is-wide wp-clearfix">
25
+ <h3><?php esc_html_e('Support', 'wp-whatsapp-chat'); ?></h3>
26
  <p>
27
+ <?php esc_html_e('If you have any doubt or you find any issue don\'t hesitate to contact us through our ticket system or join our community to meet other WhatsApp Chat users.', 'wp-whatsapp-chat'); ?>
28
  </p>
29
+ <a style="background-color: #006cff;color: #ffffff;text-decoration: none;padding: 10px 30px;border-radius: 30px;margin: 10px 0 0 0;display: inline-block;" target="_blank" href="<?php echo QLWAPP_SUPPORT_URL; ?>"><?php esc_html_e('Submit ticket', 'wp-whatsapp-chat'); ?></a>
30
  </div>
31
  </div>
32
  <div class="col" style="max-width: 33%;min-width: 33%;">
includes/settings.php CHANGED
@@ -22,9 +22,9 @@ if (!class_exists('QLWAPP_Settings')) {
22
 
23
  function add_action_links($links) {
24
 
25
- $links[] = '<a target="_blank" href="' . QLWAPP_PURCHASE_URL . '">' . esc_html__('Premium', 'qlwapp') . '</a>';
26
 
27
- $links[] = '<a href="' . admin_url('admin.php?page=' . QLWAPP_DOMAIN) . '">' . esc_html__('Settings', 'qlwapp') . '</a>';
28
 
29
  return $links;
30
  }
@@ -32,7 +32,7 @@ if (!class_exists('QLWAPP_Settings')) {
32
  function ajax_get_posts() {
33
 
34
  $data = array(
35
- array('none', esc_html__('Exclude from all', 'qlwapp'))
36
  );
37
 
38
  $posts = get_posts(array(
@@ -54,12 +54,12 @@ if (!class_exists('QLWAPP_Settings')) {
54
 
55
  function add_menu() {
56
  add_menu_page(QLWAPP_PLUGIN_NAME, QLWAPP_PLUGIN_NAME, 'manage_options', QLWAPP_DOMAIN, array($this, 'settings_welcome'), 'dashicons-format-chat');
57
- add_submenu_page(QLWAPP_DOMAIN, __('Welcome', 'qlwapp'), esc_html__('Welcome', 'qlwapp'), 'manage_options', QLWAPP_DOMAIN, array($this, 'settings_welcome'));
58
- add_submenu_page(QLWAPP_DOMAIN, __('Button', 'qlwapp'), esc_html__('Button', 'qlwapp'), 'edit_posts', QLWAPP_DOMAIN . '_button', array($this, 'settings_button'));
59
- add_submenu_page(QLWAPP_DOMAIN, __('Box', 'qlwapp'), esc_html__('Box', 'qlwapp'), 'edit_posts', QLWAPP_DOMAIN . '_box', array($this, 'settings_box'));
60
- add_submenu_page(QLWAPP_DOMAIN, __('Display', 'qlwapp'), esc_html__('Display', 'qlwapp'), 'edit_posts', QLWAPP_DOMAIN . '_display', array($this, 'settings_display'));
61
- add_submenu_page(QLWAPP_DOMAIN, __('Colors', 'qlwapp'), esc_html__('Colors', 'qlwapp'), 'edit_posts', QLWAPP_DOMAIN . '_colors', array($this, 'settings_colors'));
62
- add_submenu_page(QLWAPP_DOMAIN, __('Premium', 'qlwapp'), sprintf('<i class="dashicons dashicons-awards"></i> %s', __('Premium', 'qlwapp')), 'edit_posts', QLWAPP_DOMAIN . '_purchase', array($this, 'settings_purchase'));
63
  }
64
 
65
  function settings_header() {
@@ -74,12 +74,12 @@ if (!class_exists('QLWAPP_Settings')) {
74
  ?>
75
  <div class="wrap about-wrap full-width-layout qlwrap">
76
 
77
- <h1><?php esc_html_e('WhatsApp Chat', 'qlwapp'); ?></h1>
78
 
79
- <p class="about-text"><?php esc_html_e('Thanks for using WhatsApp Chat! We will do our best to offer you the best and improved communication experience with your users.', 'qlwapp'); ?></p>
80
 
81
  <p class="about-text">
82
- <?php printf('<a href="%s" target="_blank">%s</a>', QLWAPP_DEMO_URL, esc_html__('Check out our demo', 'qlwapp')); ?></a>
83
  </p>
84
 
85
  <?php printf('<a href="%s" target="_blank"><div style="
@@ -98,7 +98,7 @@ if (!class_exists('QLWAPP_Settings')) {
98
  position: absolute;
99
  top: 0;
100
  right: 0;
101
- " class="ql-badge">%s</div></a>', 'https://quadlayers.com/?utm_source=qlwapp_admin', plugins_url('/assets/img/quadlayers.jpg', QLWAPP_PLUGIN_FILE), esc_html__('QuadLayers', 'qlwapp')); ?>
102
 
103
  </div>
104
  <div class="wrap about-wrap full-width-layout qlwrap">
@@ -243,7 +243,7 @@ if (!class_exists('QLWAPP_Settings')) {
243
  <img id="cavatar-img" class="qlwapp-avatar" data-src="<?php echo stripslashes(esc_url($qlwapp['contacts'][$id]['avatar'])); ?>" src="<?php echo esc_url($qlwapp['contacts'][$id]['avatar']); ?>" />
244
  <div>
245
  <input type="hidden" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][avatar]'); ?>" id="cavatar" value="<?php echo esc_url($qlwapp['contacts'][$id]['avatar']); ?>" />
246
- <button type="button" class="upload_image_button button"><?php esc_html_e('Upload', 'qlwapp'); ?></button>
247
  <button type="button" class="remove_image_button button">&times;</button>
248
  </div>
249
  </div>
@@ -251,29 +251,29 @@ if (!class_exists('QLWAPP_Settings')) {
251
  <td>
252
  <table>
253
  <tr>
254
- <td><b><?php esc_html_e('Firstname', 'qlwapp'); ?></b></td>
255
  <td><input type="text" id="cfirstname" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][firstname]'); ?>" placeholder="<?php echo esc_html($this->defaults['contacts'][0]['firstname']); ?>" value="<?php echo esc_html($qlwapp['contacts'][$id]['firstname']); ?>" /></td>
256
- <td><b><?php esc_html_e('Lastname', 'qlwapp'); ?></b></td>
257
  <td><input type="text" id="clastname" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][lastname]'); ?>" placeholder="<?php echo esc_html($this->defaults['contacts'][0]['lastname']); ?>" value="<?php echo esc_html($qlwapp['contacts'][$id]['lastname']); ?>" /></td>
258
  </tr>
259
  <tr>
260
- <td><b><?php esc_html_e('Phone', 'qlwapp'); ?></b></td><td><input type="text" id="cphone" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][phone]'); ?>" placeholder="<?php echo esc_html($this->defaults['contacts'][0]['phone']); ?>" value="<?php echo esc_html($qlwapp['contacts'][$id]['phone']); ?>" /></td>
261
- <td><b><?php esc_html_e('Label', 'qlwapp'); ?></b></td><td><input type="text" id="clabel" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][label]'); ?>" placeholder="<?php echo esc_html($this->defaults['contacts'][0]['label']); ?>" value="<?php echo esc_html($qlwapp['contacts'][$id]['label']); ?>" /></td>
262
  </tr>
263
  </table>
264
  </td>
265
  </tr>
266
  <tr class="qlwapp-premium-field">
267
- <td><b><?php esc_html_e('Chat', 'qlwapp'); ?></b></td>
268
  <td>
269
  <p>
270
- <label><input type="radio" class="cchat" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][chat]'); ?>" value="1" <?php echo checked(true, (bool) $qlwapp['contacts'][$id]['chat']); ?>/><?php esc_html_e('Enabled', 'qlwapp'); ?></label>
271
- <label><input type="radio" class="cchat" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][chat]'); ?>" value="0" <?php echo checked(false, (bool) $qlwapp['contacts'][$id]['chat']); ?>/><?php esc_html_e('Disabled', 'qlwapp'); ?></label>
272
  </p>
273
  </td>
274
  </tr>
275
  <tr class="qlwapp-premium-field">
276
- <td colspan="2"><b><?php esc_html_e('Message', 'qlwapp'); ?></b></td>
277
  </tr>
278
  <tr class="qlwapp-premium-field">
279
  <td colspan="2"><?php wp_editor($qlwapp['contacts'][$id]['message'], 'cmessage', ['tinymce' => false, 'editor_height' => 150, 'textarea_name' => esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][message]')]); ?></td>
@@ -295,11 +295,11 @@ if (!class_exists('QLWAPP_Settings')) {
295
  </button>
296
  <div class="media-frame mode-select wp-core-ui hide-menu">
297
  <div class="media-frame-title">
298
- <h1><?php esc_html_e('WhatsApp Chat', 'qlwapp'); ?><span class="dashicons dashicons-arrow-down"></span></h1>
299
  </div>
300
  <div class="media-frame-router">
301
  <div class="media-router">
302
- <a href="#" class="media-menu-item active"><?php esc_html_e('Select icon', 'qlwapp'); ?></a>
303
  </div>
304
  </div>
305
  <div class="media-modal-content">
@@ -372,15 +372,15 @@ if (!class_exists('QLWAPP_Settings')) {
372
  </div>
373
  <div class="notice-content" style="margin-left: 15px;">
374
  <p>
375
- <?php printf(esc_html__('Hello! Thank you for choosing the %s plugin!', 'qlwapp'), QLWAPP_PLUGIN_NAME); ?>
376
  <br/>
377
- <?php esc_html_e('Could you please give it a 5-star rating on WordPress? We know its a big favor, but we\'ve worked very much and very hard to release this great product. Your feedback will boost our motivation and help us promote and continue to improve this product.', 'qlwapp'); ?>
378
  </p>
379
  <a href="<?php echo esc_url(QLWAPP_REVIEW_URL); ?>" class="button-primary" target="_blank">
380
- <?php esc_html_e('Yes, of course!', 'qlwapp'); ?>
381
  </a>
382
  <a href="<?php echo esc_url(QLWAPP_SUPPORT_URL); ?>" class="button-secondary" target="_blank">
383
- <?php esc_html_e('Report a bug', 'qlwapp'); ?>
384
  </a>
385
  </div>
386
  </div>
@@ -437,7 +437,7 @@ if (!class_exists('QLWAPP_Settings')) {
437
  }
438
 
439
  function add_js() {
440
- if (isset($_GET['page']) && strpos($_GET['page'], 'qlwapp') !== false) {
441
  wp_enqueue_style('qlwapp-admin', plugins_url('/assets/css/qlwapp-admin.min.css', QLWAPP_PLUGIN_FILE), array('wp-color-picker'), QLWAPP_PLUGIN_VERSION, 'all');
442
  wp_enqueue_media();
443
  wp_enqueue_script('qlwapp-select2', plugins_url('/assets/js/select2.min.js', QLWAPP_PLUGIN_FILE), array('jquery'), QLWAPP_PLUGIN_VERSION);
22
 
23
  function add_action_links($links) {
24
 
25
+ $links[] = '<a target="_blank" href="' . QLWAPP_PURCHASE_URL . '">' . esc_html__('Premium', 'wp-whatsapp-chat') . '</a>';
26
 
27
+ $links[] = '<a href="' . admin_url('admin.php?page=' . QLWAPP_DOMAIN) . '">' . esc_html__('Settings', 'wp-whatsapp-chat') . '</a>';
28
 
29
  return $links;
30
  }
32
  function ajax_get_posts() {
33
 
34
  $data = array(
35
+ array('none', esc_html__('Exclude from all', 'wp-whatsapp-chat'))
36
  );
37
 
38
  $posts = get_posts(array(
54
 
55
  function add_menu() {
56
  add_menu_page(QLWAPP_PLUGIN_NAME, QLWAPP_PLUGIN_NAME, 'manage_options', QLWAPP_DOMAIN, array($this, 'settings_welcome'), 'dashicons-format-chat');
57
+ add_submenu_page(QLWAPP_DOMAIN, __('Welcome', 'wp-whatsapp-chat'), esc_html__('Welcome', 'wp-whatsapp-chat'), 'manage_options', QLWAPP_DOMAIN, array($this, 'settings_welcome'));
58
+ add_submenu_page(QLWAPP_DOMAIN, __('Button', 'wp-whatsapp-chat'), esc_html__('Button', 'wp-whatsapp-chat'), 'edit_posts', QLWAPP_DOMAIN . '_button', array($this, 'settings_button'));
59
+ add_submenu_page(QLWAPP_DOMAIN, __('Box', 'wp-whatsapp-chat'), esc_html__('Box', 'wp-whatsapp-chat'), 'edit_posts', QLWAPP_DOMAIN . '_box', array($this, 'settings_box'));
60
+ add_submenu_page(QLWAPP_DOMAIN, __('Display', 'wp-whatsapp-chat'), esc_html__('Display', 'wp-whatsapp-chat'), 'edit_posts', QLWAPP_DOMAIN . '_display', array($this, 'settings_display'));
61
+ add_submenu_page(QLWAPP_DOMAIN, __('Colors', 'wp-whatsapp-chat'), esc_html__('Colors', 'wp-whatsapp-chat'), 'edit_posts', QLWAPP_DOMAIN . '_colors', array($this, 'settings_colors'));
62
+ add_submenu_page(QLWAPP_DOMAIN, __('Premium', 'wp-whatsapp-chat'), sprintf('<i class="dashicons dashicons-awards"></i> %s', __('Premium', 'wp-whatsapp-chat')), 'edit_posts', QLWAPP_DOMAIN . '_purchase', array($this, 'settings_purchase'));
63
  }
64
 
65
  function settings_header() {
74
  ?>
75
  <div class="wrap about-wrap full-width-layout qlwrap">
76
 
77
+ <h1><?php esc_html_e('WhatsApp Chat', 'wp-whatsapp-chat'); ?></h1>
78
 
79
+ <p class="about-text"><?php esc_html_e('Thanks for using WhatsApp Chat! We will do our best to offer you the best and improved communication experience with your users.', 'wp-whatsapp-chat'); ?></p>
80
 
81
  <p class="about-text">
82
+ <?php printf('<a href="%s" target="_blank">%s</a>', QLWAPP_DEMO_URL, esc_html__('Check out our demo', 'wp-whatsapp-chat')); ?></a>
83
  </p>
84
 
85
  <?php printf('<a href="%s" target="_blank"><div style="
98
  position: absolute;
99
  top: 0;
100
  right: 0;
101
+ " class="ql-badge">%s</div></a>', 'https://quadlayers.com/?utm_source=qlwapp_admin', plugins_url('/assets/img/quadlayers.jpg', QLWAPP_PLUGIN_FILE), esc_html__('QuadLayers', 'wp-whatsapp-chat')); ?>
102
 
103
  </div>
104
  <div class="wrap about-wrap full-width-layout qlwrap">
243
  <img id="cavatar-img" class="qlwapp-avatar" data-src="<?php echo stripslashes(esc_url($qlwapp['contacts'][$id]['avatar'])); ?>" src="<?php echo esc_url($qlwapp['contacts'][$id]['avatar']); ?>" />
244
  <div>
245
  <input type="hidden" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][avatar]'); ?>" id="cavatar" value="<?php echo esc_url($qlwapp['contacts'][$id]['avatar']); ?>" />
246
+ <button type="button" class="upload_image_button button"><?php esc_html_e('Upload', 'wp-whatsapp-chat'); ?></button>
247
  <button type="button" class="remove_image_button button">&times;</button>
248
  </div>
249
  </div>
251
  <td>
252
  <table>
253
  <tr>
254
+ <td><b><?php esc_html_e('Firstname', 'wp-whatsapp-chat'); ?></b></td>
255
  <td><input type="text" id="cfirstname" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][firstname]'); ?>" placeholder="<?php echo esc_html($this->defaults['contacts'][0]['firstname']); ?>" value="<?php echo esc_html($qlwapp['contacts'][$id]['firstname']); ?>" /></td>
256
+ <td><b><?php esc_html_e('Lastname', 'wp-whatsapp-chat'); ?></b></td>
257
  <td><input type="text" id="clastname" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][lastname]'); ?>" placeholder="<?php echo esc_html($this->defaults['contacts'][0]['lastname']); ?>" value="<?php echo esc_html($qlwapp['contacts'][$id]['lastname']); ?>" /></td>
258
  </tr>
259
  <tr>
260
+ <td><b><?php esc_html_e('Phone', 'wp-whatsapp-chat'); ?></b></td><td><input type="text" id="cphone" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][phone]'); ?>" placeholder="<?php echo esc_html($this->defaults['contacts'][0]['phone']); ?>" value="<?php echo esc_html($qlwapp['contacts'][$id]['phone']); ?>" /></td>
261
+ <td><b><?php esc_html_e('Label', 'wp-whatsapp-chat'); ?></b></td><td><input type="text" id="clabel" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][label]'); ?>" placeholder="<?php echo esc_html($this->defaults['contacts'][0]['label']); ?>" value="<?php echo esc_html($qlwapp['contacts'][$id]['label']); ?>" /></td>
262
  </tr>
263
  </table>
264
  </td>
265
  </tr>
266
  <tr class="qlwapp-premium-field">
267
+ <td><b><?php esc_html_e('Chat', 'wp-whatsapp-chat'); ?></b></td>
268
  <td>
269
  <p>
270
+ <label><input type="radio" class="cchat" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][chat]'); ?>" value="1" <?php echo checked(true, (bool) $qlwapp['contacts'][$id]['chat']); ?>/><?php esc_html_e('Enabled', 'wp-whatsapp-chat'); ?></label>
271
+ <label><input type="radio" class="cchat" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][chat]'); ?>" value="0" <?php echo checked(false, (bool) $qlwapp['contacts'][$id]['chat']); ?>/><?php esc_html_e('Disabled', 'wp-whatsapp-chat'); ?></label>
272
  </p>
273
  </td>
274
  </tr>
275
  <tr class="qlwapp-premium-field">
276
+ <td colspan="2"><b><?php esc_html_e('Message', 'wp-whatsapp-chat'); ?></b></td>
277
  </tr>
278
  <tr class="qlwapp-premium-field">
279
  <td colspan="2"><?php wp_editor($qlwapp['contacts'][$id]['message'], 'cmessage', ['tinymce' => false, 'editor_height' => 150, 'textarea_name' => esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][message]')]); ?></td>
295
  </button>
296
  <div class="media-frame mode-select wp-core-ui hide-menu">
297
  <div class="media-frame-title">
298
+ <h1><?php esc_html_e('WhatsApp Chat', 'wp-whatsapp-chat'); ?><span class="dashicons dashicons-arrow-down"></span></h1>
299
  </div>
300
  <div class="media-frame-router">
301
  <div class="media-router">
302
+ <a href="#" class="media-menu-item active"><?php esc_html_e('Select icon', 'wp-whatsapp-chat'); ?></a>
303
  </div>
304
  </div>
305
  <div class="media-modal-content">
372
  </div>
373
  <div class="notice-content" style="margin-left: 15px;">
374
  <p>
375
+ <?php printf(esc_html__('Hello! Thank you for choosing the %s plugin!', 'wp-whatsapp-chat'), QLWAPP_PLUGIN_NAME); ?>
376
  <br/>
377
+ <?php esc_html_e('Could you please give it a 5-star rating on WordPress? We know its a big favor, but we\'ve worked very much and very hard to release this great product. Your feedback will boost our motivation and help us promote and continue to improve this product.', 'wp-whatsapp-chat'); ?>
378
  </p>
379
  <a href="<?php echo esc_url(QLWAPP_REVIEW_URL); ?>" class="button-primary" target="_blank">
380
+ <?php esc_html_e('Yes, of course!', 'wp-whatsapp-chat'); ?>
381
  </a>
382
  <a href="<?php echo esc_url(QLWAPP_SUPPORT_URL); ?>" class="button-secondary" target="_blank">
383
+ <?php esc_html_e('Report a bug', 'wp-whatsapp-chat'); ?>
384
  </a>
385
  </div>
386
  </div>
437
  }
438
 
439
  function add_js() {
440
+ if (isset($_GET['page']) && strpos($_GET['page'], QLWAPP_DOMAIN) !== false) {
441
  wp_enqueue_style('qlwapp-admin', plugins_url('/assets/css/qlwapp-admin.min.css', QLWAPP_PLUGIN_FILE), array('wp-color-picker'), QLWAPP_PLUGIN_VERSION, 'all');
442
  wp_enqueue_media();
443
  wp_enqueue_script('qlwapp-select2', plugins_url('/assets/js/select2.min.js', QLWAPP_PLUGIN_FILE), array('jquery'), QLWAPP_PLUGIN_VERSION);
languages/{qlwapp-es_ES.mo → wp-whatsapp-chat-es_ES.mo} RENAMED
Binary file
languages/{qlwapp-es_ES.po → wp-whatsapp-chat-es_ES.po} RENAMED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Plugins - WhatsApp Chat WP - Development (trunk) package.
3
  msgid ""
4
  msgstr ""
5
- "PO-Revision-Date: 2019-04-18 19:13-0300\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the Plugins - WhatsApp Chat WP - Development (trunk) package.
3
  msgid ""
4
  msgstr ""
5
+ "PO-Revision-Date: 2019-04-22 15:09-0300\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
languages/{qlwapp-pt_BR.mo → wp-whatsapp-chat-pt_BR.mo} RENAMED
Binary file
languages/{qlwapp-pt_BR.po → wp-whatsapp-chat-pt_BR.po} RENAMED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Plugins - WhatsApp Chat WP - Development (trunk) package.
3
  msgid ""
4
  msgstr ""
5
- "PO-Revision-Date: 2019-04-20 19:48-0300\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the Plugins - WhatsApp Chat WP - Development (trunk) package.
3
  msgid ""
4
  msgstr ""
5
+ "PO-Revision-Date: 2019-04-22 15:09-0300\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
languages/{qlwapp.pot → wp-whatsapp-chat.pot} RENAMED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WhatsApp Chat WP\n"
5
- "POT-Creation-Date: 2019-04-19 12:44-0300\n"
6
  "PO-Revision-Date: 2019-03-02 18:52-0300\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -438,6 +438,7 @@ msgstr ""
438
  msgid "Colors"
439
  msgstr ""
440
 
 
441
  #. Author of the plugin/theme
442
  #: includes/settings.php:77 includes/settings.php:298
443
  msgid "WhatsApp Chat"
@@ -526,12 +527,14 @@ msgstr ""
526
  msgid "Powered by QuadLayers"
527
  msgstr ""
528
 
529
- #. Plugin Name of the plugin/theme
530
- msgid "WhatsApp Chat WP"
531
  msgstr ""
532
 
533
  #. Description of the plugin/theme
534
- msgid "Send messages directly to your WhatsApp phone number."
 
 
535
  msgstr ""
536
 
537
  #. Author URI of the plugin/theme
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WhatsApp Chat WP\n"
5
+ "POT-Creation-Date: 2019-04-22 15:09-0300\n"
6
  "PO-Revision-Date: 2019-03-02 18:52-0300\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
438
  msgid "Colors"
439
  msgstr ""
440
 
441
+ #. Plugin Name of the plugin/theme
442
  #. Author of the plugin/theme
443
  #: includes/settings.php:77 includes/settings.php:298
444
  msgid "WhatsApp Chat"
527
  msgid "Powered by QuadLayers"
528
  msgstr ""
529
 
530
+ #. Plugin URI of the plugin/theme
531
+ msgid "https://quadlayers.com/portfolio/wordpress-whatsapp-chat/"
532
  msgstr ""
533
 
534
  #. Description of the plugin/theme
535
+ msgid ""
536
+ "WhatsApp Chat allows your visitors to contact you or your team through "
537
+ "WhatsApp chat with a single click."
538
  msgstr ""
539
 
540
  #. Author URI of the plugin/theme
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: whatsapp, button, chat, support, contact, click to chat, directly message
5
  Requires at least: 3.0
6
  Tested up to: 5.1
7
  Requires PHP: 5.3
8
- Stable tag: 4.2.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
5
  Requires at least: 3.0
6
  Tested up to: 5.1
7
  Requires PHP: 5.3
8
+ Stable tag: 4.2.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
uninstall.php CHANGED
@@ -5,7 +5,7 @@ if (!defined('WP_UNINSTALL_PLUGIN')) {
5
  }
6
 
7
  if (!is_multisite()) {
8
- delete_option('qlwapp');
9
  }
10
 
11
  delete_user_meta(get_current_user_id(), 'qlwapp-user-rating');
5
  }
6
 
7
  if (!is_multisite()) {
8
+ delete_option(QLWAPP_DOMAIN);
9
  }
10
 
11
  delete_user_meta(get_current_user_id(), 'qlwapp-user-rating');
wp-whatsapp-chat.php CHANGED
@@ -4,12 +4,12 @@
4
  * Plugin Name: WhatsApp Chat
5
  * Plugin URI: https://quadlayers.com/portfolio/wordpress-whatsapp-chat/
6
  * Description: WhatsApp Chat allows your visitors to contact you or your team through WhatsApp chat with a single click.
7
- * Version: 4.2.4
8
  * Author: WhatsApp Chat
9
  * Author URI: https://quadlayers.com
10
  * License: GPL-2.0+
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
12
- * Text Domain: qlwapp
13
  * Domain Path: /languages
14
  */
15
  if (!defined('ABSPATH')) {
@@ -19,7 +19,7 @@ if (!defined('QLWAPP_PLUGIN_NAME')) {
19
  define('QLWAPP_PLUGIN_NAME', 'WhatsApp Chat');
20
  }
21
  if (!defined('QLWAPP_PLUGIN_VERSION')) {
22
- define('QLWAPP_PLUGIN_VERSION', '4.2.4');
23
  }
24
  if (!defined('QLWAPP_PLUGIN_FILE')) {
25
  define('QLWAPP_PLUGIN_FILE', __FILE__);
@@ -62,7 +62,7 @@ if (!class_exists('QLWAPP')) {
62
  }
63
 
64
  function languages() {
65
- load_plugin_textdomain('qlwapp', false, dirname(plugin_basename(__FILE__)) . '/languages/');
66
  }
67
 
68
  function add_premium_js() {
4
  * Plugin Name: WhatsApp Chat
5
  * Plugin URI: https://quadlayers.com/portfolio/wordpress-whatsapp-chat/
6
  * Description: WhatsApp Chat allows your visitors to contact you or your team through WhatsApp chat with a single click.
7
+ * Version: 4.2.5
8
  * Author: WhatsApp Chat
9
  * Author URI: https://quadlayers.com
10
  * License: GPL-2.0+
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
12
+ * Text Domain: wp-whatsapp-chat
13
  * Domain Path: /languages
14
  */
15
  if (!defined('ABSPATH')) {
19
  define('QLWAPP_PLUGIN_NAME', 'WhatsApp Chat');
20
  }
21
  if (!defined('QLWAPP_PLUGIN_VERSION')) {
22
+ define('QLWAPP_PLUGIN_VERSION', '4.2.5');
23
  }
24
  if (!defined('QLWAPP_PLUGIN_FILE')) {
25
  define('QLWAPP_PLUGIN_FILE', __FILE__);
62
  }
63
 
64
  function languages() {
65
+ load_plugin_textdomain('wp-whatsapp-chat', false, dirname(plugin_basename(__FILE__)) . '/languages/');
66
  }
67
 
68
  function add_premium_js() {