WhatsApp Chat WP - Version 4.3.8

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.3.8
Comparing to
See all releases

Code changes from version 4.3.7 to 4.3.8

Files changed (4) hide show
  1. changelog.txt +3 -0
  2. includes/settings.php +33 -35
  3. readme.txt +1 -1
  4. wp-whatsapp-chat.php +2 -2
changelog.txt CHANGED
@@ -1,3 +1,6 @@
1
= 4.3.7 =
2
* Fix. rtl support for admin badge
3
* Fix. readme update
1
+ = 4.3.8 =
2
+ * Fix. admin menu capability
3
+
4
= 4.3.7 =
5
* Fix. rtl support for admin badge
6
* Fix. readme update
includes/settings.php CHANGED
@@ -47,36 +47,29 @@ if (!class_exists('QLWAPP_Settings')) {
47
}
48
49
function add_menu() {
50
- add_menu_page(QLWAPP_PLUGIN_NAME, QLWAPP_PLUGIN_NAME, 'manage_options', QLWAPP_DOMAIN, array($this, 'settings_welcome'), plugins_url('/assets/img/icon.png', QLWAPP_PLUGIN_FILE));
51
- add_submenu_page(QLWAPP_DOMAIN, esc_html__('Welcome', 'wp-whatsapp-chat'), esc_html__('Welcome', 'wp-whatsapp-chat'), 'manage_options', QLWAPP_DOMAIN, array($this, 'settings_welcome'));
52
- add_submenu_page(QLWAPP_DOMAIN, esc_html__('Button', 'wp-whatsapp-chat'), esc_html__('Button', 'wp-whatsapp-chat'), 'edit_posts', QLWAPP_DOMAIN . '_button', array($this, 'settings_button'));
53
- add_submenu_page(QLWAPP_DOMAIN, esc_html__('Box', 'wp-whatsapp-chat'), esc_html__('Box', 'wp-whatsapp-chat'), 'edit_posts', QLWAPP_DOMAIN . '_box', array($this, 'settings_box'));
54
- add_submenu_page(QLWAPP_DOMAIN, esc_html__('Display', 'wp-whatsapp-chat'), esc_html__('Display', 'wp-whatsapp-chat'), 'edit_posts', QLWAPP_DOMAIN . '_display', array($this, 'settings_display'));
55
- add_submenu_page(QLWAPP_DOMAIN, esc_html__('Colors', 'wp-whatsapp-chat'), esc_html__('Colors', 'wp-whatsapp-chat'), 'edit_posts', QLWAPP_DOMAIN . '_colors', array($this, 'settings_colors'));
56
add_submenu_page(QLWAPP_DOMAIN, esc_html__('Premium', 'wp-whatsapp-chat'), sprintf('<i class="dashicons dashicons-awards"></i> %s', esc_html__('Premium', 'wp-whatsapp-chat')), 'edit_posts', QLWAPP_DOMAIN . '_premium', array($this, 'settings_premium'));
57
}
58
59
function settings_header() {
60
-
61
global $submenu;
62
63
- if (isset($submenu[QLWAPP_DOMAIN])) {
64
- $welcome_menu_items = $submenu[QLWAPP_DOMAIN];
65
- }
66
-
67
- if (is_array($welcome_menu_items)) {
68
- ?>
69
- <div class="wrap about-wrap full-width-layout qlwrap">
70
-
71
- <h1><?php echo esc_html(QLWAPP_PLUGIN_NAME); ?></h1>
72
73
- <p class="about-text"><?php printf(esc_html__('Thanks for using %s! We will do our best to offer you the best and improved communication experience with your users.', 'wp-whatsapp-chat'), QLWAPP_PLUGIN_NAME); ?></p>
74
75
- <p class="about-text">
76
- <?php printf('<a href="%s" target="_blank">%s</a>', QLWAPP_DEMO_URL, esc_html__('Check out our demo', 'wp-whatsapp-chat')); ?></a>
77
- </p>
78
79
- <?php printf('<a href="%s" target="_blank"><div style="
80
background: #006bff url(%s) no-repeat;
81
background-position: top center;
82
background-size: 130px 130px;
@@ -91,21 +84,26 @@ if (!class_exists('QLWAPP_Settings')) {
91
width: 140px;
92
" class="wp-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')); ?>
93
94
- </div>
95
- <div class="wrap about-wrap full-width-layout qlwrap">
96
- <h2 class="nav-tab-wrapper">
97
- <?php
98
- foreach ($welcome_menu_items as $welcome_menu_item) {
99
- if (strpos($welcome_menu_item[2], '.php') !== false)
100
- continue;
101
- ?>
102
- <a href="<?php echo admin_url('admin.php?page=' . esc_attr($welcome_menu_item[2])); ?>" class="nav-tab<?php echo (isset($_GET['page']) && $_GET['page'] == $welcome_menu_item[2]) ? ' nav-tab-active' : ''; ?>"><?php echo $welcome_menu_item[0]; ?></a>
103
<?php
104
- }
105
- ?>
106
- </h2>
107
- </div>
108
- <?php
109
}
110
}
111
47
}
48
49
function add_menu() {
50
+ add_menu_page(QLWAPP_PLUGIN_NAME, QLWAPP_PLUGIN_NAME, 'edit_posts', QLWAPP_DOMAIN, array($this, 'settings_welcome'), plugins_url('/assets/img/icon.png', QLWAPP_PLUGIN_FILE));
51
+ add_submenu_page(QLWAPP_DOMAIN, esc_html__('Welcome', 'wp-whatsapp-chat'), esc_html__('Welcome', 'wp-whatsapp-chat'), 'edit_posts', QLWAPP_DOMAIN, array($this, 'settings_welcome'));
52
+ add_submenu_page(QLWAPP_DOMAIN, esc_html__('Button', 'wp-whatsapp-chat'), esc_html__('Button', 'wp-whatsapp-chat'), 'manage_options', QLWAPP_DOMAIN . '_button', array($this, 'settings_button'));
53
+ add_submenu_page(QLWAPP_DOMAIN, esc_html__('Box', 'wp-whatsapp-chat'), esc_html__('Box', 'wp-whatsapp-chat'), 'manage_options', QLWAPP_DOMAIN . '_box', array($this, 'settings_box'));
54
+ add_submenu_page(QLWAPP_DOMAIN, esc_html__('Display', 'wp-whatsapp-chat'), esc_html__('Display', 'wp-whatsapp-chat'), 'manage_options', QLWAPP_DOMAIN . '_display', array($this, 'settings_display'));
55
+ add_submenu_page(QLWAPP_DOMAIN, esc_html__('Colors', 'wp-whatsapp-chat'), esc_html__('Colors', 'wp-whatsapp-chat'), 'manage_options', QLWAPP_DOMAIN . '_colors', array($this, 'settings_colors'));
56
add_submenu_page(QLWAPP_DOMAIN, esc_html__('Premium', 'wp-whatsapp-chat'), sprintf('<i class="dashicons dashicons-awards"></i> %s', esc_html__('Premium', 'wp-whatsapp-chat')), 'edit_posts', QLWAPP_DOMAIN . '_premium', array($this, 'settings_premium'));
57
}
58
59
function settings_header() {
60
global $submenu;
61
+ ?>
62
+ <div class="wrap about-wrap full-width-layout qlwrap">
63
64
+ <h1><?php echo esc_html(QLWAPP_PLUGIN_NAME); ?></h1>
65
66
+ <p class="about-text"><?php printf(esc_html__('Thanks for using %s! We will do our best to offer you the best and improved communication experience with your users.', 'wp-whatsapp-chat'), QLWAPP_PLUGIN_NAME); ?></p>
67
68
+ <p class="about-text">
69
+ <?php printf('<a href="%s" target="_blank">%s</a>', QLWAPP_DEMO_URL, esc_html__('Check out our demo', 'wp-whatsapp-chat')); ?></a>
70
+ </p>
71
72
+ <?php printf('<a href="%s" target="_blank"><div style="
73
background: #006bff url(%s) no-repeat;
74
background-position: top center;
75
background-size: 130px 130px;
84
width: 140px;
85
" class="wp-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')); ?>
86
87
+ </div>
88
+ <?php
89
+ if (isset($submenu[QLWAPP_DOMAIN])) {
90
+ if (is_array($submenu[QLWAPP_DOMAIN])) {
91
+ ?>
92
+ <div class="wrap about-wrap full-width-layout qlwrap">
93
+ <h2 class="nav-tab-wrapper">
94
<?php
95
+ foreach ($submenu[QLWAPP_DOMAIN] as $tab) {
96
+ if (strpos($tab[2], '.php') !== false)
97
+ continue;
98
+ ?>
99
+ <a href="<?php echo admin_url('admin.php?page=' . esc_attr($tab[2])); ?>" class="nav-tab<?php echo (isset($_GET['page']) && $_GET['page'] == $tab[2]) ? ' nav-tab-active' : ''; ?>"><?php echo $tab[0]; ?></a>
100
+ <?php
101
+ }
102
+ ?>
103
+ </h2>
104
+ </div>
105
+ <?php
106
+ }
107
}
108
}
109
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://quadlayers.com/portfolio/wordpress-whatsapp-chat/
4
Tags: whatsapp, whatsapp button, whatsapp chat, whatsapp support, contact, click to chat, directly message whatsapp, floating whatsapp, whatsapp business, messaging, help desk
5
Requires at least: 4.6
6
Tested up to: 5.2.2
7
- Stable tag: 4.3.7
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
4
Tags: whatsapp, whatsapp button, whatsapp chat, whatsapp support, contact, click to chat, directly message whatsapp, floating whatsapp, whatsapp business, messaging, help desk
5
Requires at least: 4.6
6
Tested up to: 5.2.2
7
+ Stable tag: 4.3.8
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
wp-whatsapp-chat.php CHANGED
@@ -3,7 +3,7 @@
3
* Plugin Name: WhatsApp Chat
4
* Plugin URI: https://quadlayers.com/portfolio/wordpress-whatsapp-chat/
5
* Description: WhatsApp Chat allows your visitors to contact you or your team through WhatsApp chat with a single click.
6
- * Version: 4.3.7
7
* Author: QuadLayers
8
* Author URI: https://quadlayers.com
9
* License: GPL-2.0+
@@ -18,7 +18,7 @@ if (!defined('QLWAPP_PLUGIN_NAME')) {
18
define('QLWAPP_PLUGIN_NAME', 'WhatsApp Chat');
19
}
20
if (!defined('QLWAPP_PLUGIN_VERSION')) {
21
- define('QLWAPP_PLUGIN_VERSION', '4.3.7');
22
}
23
if (!defined('QLWAPP_PLUGIN_FILE')) {
24
define('QLWAPP_PLUGIN_FILE', __FILE__);
3
* Plugin Name: WhatsApp Chat
4
* Plugin URI: https://quadlayers.com/portfolio/wordpress-whatsapp-chat/
5
* Description: WhatsApp Chat allows your visitors to contact you or your team through WhatsApp chat with a single click.
6
+ * Version: 4.3.8
7
* Author: QuadLayers
8
* Author URI: https://quadlayers.com
9
* License: GPL-2.0+
18
define('QLWAPP_PLUGIN_NAME', 'WhatsApp Chat');
19
}
20
if (!defined('QLWAPP_PLUGIN_VERSION')) {
21
+ define('QLWAPP_PLUGIN_VERSION', '4.3.8');
22
}
23
if (!defined('QLWAPP_PLUGIN_FILE')) {
24
define('QLWAPP_PLUGIN_FILE', __FILE__);