Version Description
Hello! We've recently acquired this plugin and included tons of new features.
Download this release
Release Info
Developer | quadlayers |
Plugin | WhatsApp Chat WP |
Version | 4.3.8 |
Comparing to | |
See all releases |
Code changes from version 4.3.7 to 4.3.8
- changelog.txt +3 -0
- includes/settings.php +33 -35
- readme.txt +1 -1
- 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, '
|
51 |
-
add_submenu_page(QLWAPP_DOMAIN, esc_html__('Welcome', 'wp-whatsapp-chat'), esc_html__('Welcome', 'wp-whatsapp-chat'), '
|
52 |
-
add_submenu_page(QLWAPP_DOMAIN, esc_html__('Button', 'wp-whatsapp-chat'), esc_html__('Button', 'wp-whatsapp-chat'), '
|
53 |
-
add_submenu_page(QLWAPP_DOMAIN, esc_html__('Box', 'wp-whatsapp-chat'), esc_html__('Box', 'wp-whatsapp-chat'), '
|
54 |
-
add_submenu_page(QLWAPP_DOMAIN, esc_html__('Display', 'wp-whatsapp-chat'), esc_html__('Display', 'wp-whatsapp-chat'), '
|
55 |
-
add_submenu_page(QLWAPP_DOMAIN, esc_html__('Colors', 'wp-whatsapp-chat'), esc_html__('Colors', 'wp-whatsapp-chat'), '
|
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 |
-
|
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 |
-
|
74 |
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
|
79 |
-
|
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 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
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 |
-
|
107 |
-
|
108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
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 |
* 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.
|
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__);
|