WhatsApp Chat WP - Version 4.3.1

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

Code changes from version 4.3.0 to 4.3.1

assets/img/icon.png ADDED
Binary file
assets/img/logo.jpg CHANGED
Binary file
changelog.txt CHANGED
@@ -1,3 +1,6 @@
1
= 4.3.0 =
2
* Fix. bad spelling
3
* Fix. whatsapp chat pro features not working
1
+ = 4.3.1 =
2
+ * Fix. WhatsApp Chat renamed
3
+
4
= 4.3.0 =
5
* Fix. bad spelling
6
* Fix. whatsapp chat pro features not working
includes/defaults.php CHANGED
@@ -26,7 +26,7 @@ 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', 'wp-whatsapp-chat')
30
),
31
'button' => array(
32
'layout' => 'button',
@@ -36,8 +36,8 @@ if (!class_exists('QLWAPP_Options')) {
36
'phone' => '+441234567890',
37
'developer' => 'no',
38
'rounded' => 'yes',
39
- 'timefrom'=> '08:00',
40
- 'timeto'=> '18:00'
41
),
42
'box' => array(
43
'enable' => 'no',
@@ -57,8 +57,8 @@ if (!class_exists('QLWAPP_Options')) {
57
'lastname' => 'Doe',
58
'label' => esc_html__('Support', 'wp-whatsapp-chat'),
59
'message' => esc_html__('Hello! I\'m John from the support team.', 'wp-whatsapp-chat'),
60
- 'timefrom'=> '08:00',
61
- 'timeto'=> '18:00'
62
),
63
),
64
'display' => array(
26
'name' => '',
27
),
28
'user' => array(
29
+ 'message' => sprintf(esc_html__('Hello! I\'m testing the %s plugin @https://quadlayers.com', 'wp-whatsapp-chat'), QLWAPP_PLUGIN_NAME)
30
),
31
'button' => array(
32
'layout' => 'button',
36
'phone' => '+441234567890',
37
'developer' => 'no',
38
'rounded' => 'yes',
39
+ 'timefrom' => '08:00',
40
+ 'timeto' => '18:00'
41
),
42
'box' => array(
43
'enable' => 'no',
57
'lastname' => 'Doe',
58
'label' => esc_html__('Support', 'wp-whatsapp-chat'),
59
'message' => esc_html__('Hello! I\'m John from the support team.', 'wp-whatsapp-chat'),
60
+ 'timefrom' => '08:00',
61
+ 'timeto' => '18:00'
62
),
63
),
64
'display' => array(
includes/pages/premium.php CHANGED
@@ -3,7 +3,7 @@
3
<div class="welcome-header">
4
<h1><?php esc_html_e('Premium', 'wp-whatsapp-chat'); ?></h1>
5
<div class="about-description">
6
- <?php esc_html_e('Unlock the power of our premium WhatsApp Chat plugin which allows you to include unlimited agent accounts with their names and labels inside the box to provide direct contact to the different support areas of your site.', 'wp-whatsapp-chat'); ?>
7
</div>
8
<br/>
9
<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>
@@ -13,7 +13,7 @@
13
<div class="feature-section">
14
<h3><?php esc_html_e('Multiple agents', 'wp-whatsapp-chat'); ?></h3>
15
<p>
16
- <?php esc_html_e('WhatsApp Chat allows you to include unlimited agent accounts with their names and labels inside the box to provide direct contact to the different support areas of your site.', 'wp-whatsapp-chat'); ?>
17
</p>
18
</div>
19
<div class="feature-section">
3
<div class="welcome-header">
4
<h1><?php esc_html_e('Premium', 'wp-whatsapp-chat'); ?></h1>
5
<div class="about-description">
6
+ <?php printf(esc_html__('Unlock the power of our premium %s plugin which allows you to include unlimited agent accounts with their names and labels inside the box to provide direct contact to the different support areas of your site.', 'wp-whatsapp-chat'), QLWAPP_PLUGIN_NAME); ?>
7
</div>
8
<br/>
9
<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>
13
<div class="feature-section">
14
<h3><?php esc_html_e('Multiple agents', 'wp-whatsapp-chat'); ?></h3>
15
<p>
16
+ <?php printf(esc_html__('%s allows you to include unlimited agent accounts with their names and labels inside the box to provide direct contact to the different support areas of your site.', 'wp-whatsapp-chat'), QLWAPP_PLUGIN_NAME); ?>
17
</p>
18
</div>
19
<div class="feature-section">
includes/pages/welcome.php CHANGED
@@ -10,21 +10,21 @@
10
<div class="feature-section" style="padding: 15px 0;">
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" style="padding: 15px 0;">
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" style="padding: 15px 0;">
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>
10
<div class="feature-section" style="padding: 15px 0;">
11
<h3><?php esc_html_e('Community', 'wp-whatsapp-chat'); ?></h3>
12
<p>
13
+ <?php printf(esc_html__('If you want to get in touch with other %s users or be aware of our promotional discounts join our community now.', 'wp-whatsapp-chat'), QLWAPP_PLUGIN_NAME); ?>
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" style="padding: 15px 0;">
18
<h3><?php esc_html_e('Demo', 'wp-whatsapp-chat'); ?></h3>
19
<p>
20
+ <?php printf(esc_html__('Thank you for choosing our %s plugin for WordPress! Here you can see our demo and a description about the features we offer in the premium version.', 'wp-whatsapp-chat'), QLWAPP_PLUGIN_NAME); ?>
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" style="padding: 15px 0;">
25
<h3><?php esc_html_e('Support', 'wp-whatsapp-chat'); ?></h3>
26
<p>
27
+ <?php printf(esc_html__('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 %s users.', 'wp-whatsapp-chat'), QLWAPP_PLUGIN_NAME); ?>
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>
includes/settings.php CHANGED
@@ -1,88 +1,88 @@
1
<?php
2
if (!defined('ABSPATH'))
3
- exit;
4
5
if (!class_exists('QLWAPP_Settings')) {
6
7
- class QLWAPP_Settings extends QLWAPP_Options {
8
9
- protected static $instance;
10
11
- function ajax_dismiss_notice() {
12
13
- if ($notice_id = ( isset($_POST['notice_id']) ) ? sanitize_key($_POST['notice_id']) : '') {
14
15
- update_user_meta(get_current_user_id(), $notice_id, true);
16
17
- wp_send_json($notice_id);
18
- }
19
20
- wp_die();
21
- }
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
- }
31
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(
39
- 's' => $_GET['q'],
40
- 'post_type' => $_GET['name'],
41
- 'post_status' => 'publish',
42
- 'ignore_sticky_posts' => 1,
43
- 'posts_per_page' => 10
44
- ));
45
46
- foreach ($posts as $post) {
47
- $data[] = array($post->post_name, mb_substr($post->post_title, 0, 49));
48
- }
49
50
- wp_send_json($data);
51
52
- wp_die();
53
- }
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 . '_premium', array($this, 'settings_premium'));
63
- }
64
65
- function settings_header() {
66
67
- global $submenu;
68
69
- if (isset($submenu[QLWAPP_DOMAIN])) {
70
- $welcome_menu_items = $submenu[QLWAPP_DOMAIN];
71
- }
72
73
- if (is_array($welcome_menu_items)) {
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="
86
background: #006bff url(%s) no-repeat;
87
background-position: top center;
88
background-size: 130px 130px;
@@ -100,378 +100,367 @@ if (!class_exists('QLWAPP_Settings')) {
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">
105
- <h2 class="nav-tab-wrapper">
106
- <?php
107
- foreach ($welcome_menu_items as $welcome_menu_item) {
108
- if (strpos($welcome_menu_item[2], '.php') !== false)
109
- continue;
110
- ?>
111
- <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>
112
- <?php
113
- }
114
- ?>
115
- </h2>
116
- </div>
117
- <?php
118
}
119
}
120
121
- function settings_sanitize($settings) {
122
123
- if (isset($settings['button']['layout'])) {
124
- $settings['button']['layout'] = sanitize_html_class($settings['button']['layout']);
125
- }
126
- if (isset($settings['button']['position'])) {
127
- $settings['button']['position'] = sanitize_html_class($settings['button']['position']);
128
- }
129
- if (isset($settings['button']['text'])) {
130
- $settings['button']['text'] = sanitize_text_field($settings['button']['text']);
131
- }
132
- if (isset($settings['button']['icon'])) {
133
- $settings['button']['icon'] = sanitize_html_class($settings['button']['icon']);
134
- }
135
- if (isset($settings['box']['header'])) {
136
- $settings['box']['header'] = wp_kses_post($settings['box']['header']);
137
- }
138
- if (isset($settings['box']['footer'])) {
139
- $settings['box']['footer'] = wp_kses_post($settings['box']['footer']);
140
- }
141
- if (isset($settings['contacts'])) {
142
- if (count($settings['contacts'])) {
143
- foreach ($settings['contacts'] as $id => $c) {
144
- $settings['contacts'][$id]['chat'] = (bool) $settings['contacts'][$id]['chat'];
145
- $settings['contacts'][$id]['avatar'] = sanitize_text_field($settings['contacts'][$id]['avatar']);
146
- $settings['contacts'][$id]['phone'] = sanitize_text_field($settings['contacts'][$id]['phone']);
147
- $settings['contacts'][$id]['firstname'] = sanitize_text_field($settings['contacts'][$id]['firstname']);
148
- $settings['contacts'][$id]['lastname'] = sanitize_text_field($settings['contacts'][$id]['lastname']);
149
- $settings['contacts'][$id]['label'] = sanitize_text_field($settings['contacts'][$id]['label']);
150
- $settings['contacts'][$id]['message'] = wp_kses_post($settings['contacts'][$id]['message']);
151
- //$settings['contacts'][$id]['message'] = stripslashes($settings['contacts'][$id]['message']);
152
- }
153
- }
154
- }
155
156
- return $settings;
157
- }
158
159
- function add_settings_register() {
160
- register_setting(sanitize_key(QLWAPP_DOMAIN . '-group'), sanitize_key(QLWAPP_DOMAIN), array($this, 'settings_sanitize'));
161
- }
162
163
- function settings_welcome() {
164
165
- global $qlwapp;
166
- ?>
167
- <?php $this->settings_header(); ?>
168
- <div class="wrap about-wrap full-width-layout qlwrap">
169
- <?php include_once('pages/welcome.php'); ?>
170
- </div>
171
- <?php
172
- }
173
174
- function settings_button() {
175
176
- global $qlwapp;
177
- ?>
178
- <?php $this->settings_header(); ?>
179
- <div class="wrap about-wrap full-width-layout qlwrap">
180
- <?php include_once('pages/button.php'); ?>
181
- </div>
182
- <?php
183
- }
184
185
- function settings_box() {
186
187
- global $qlwapp;
188
- ?>
189
- <?php $this->settings_header(); ?>
190
- <div class="wrap about-wrap full-width-layout qlwrap">
191
- <?php include_once('pages/box.php'); ?>
192
- </div>
193
- <?php
194
- }
195
196
- function settings_display() {
197
198
- global $qlwapp;
199
- ?>
200
- <?php $this->settings_header(); ?>
201
- <div class="wrap about-wrap full-width-layout qlwrap">
202
- <?php include_once('pages/display.php'); ?>
203
- </div>
204
- <?php
205
- }
206
207
- function settings_colors() {
208
209
- global $qlwapp;
210
- ?>
211
- <?php $this->settings_header(); ?>
212
- <div class="wrap about-wrap full-width-layout qlwrap">
213
- <?php include_once('pages/colors.php'); ?>
214
- </div>
215
- <?php
216
- }
217
218
- function settings_premium() {
219
220
- global $qlwapp;
221
- ?>
222
- <?php $this->settings_header(); ?>
223
- <div class="wrap about-wrap full-width-layout qlwrap">
224
- <?php include_once('pages/premium.php'); ?>
225
</div>
226
- <?php
227
- }
228
-
229
- function settings_contacts() {
230
- ?>
231
- <table class="form-table widefat" id="qlwapp-contact-form" data-editindex="-1">
232
- <?php $this->contact_table(); ?>
233
- </table>
234
- <?php
235
- }
236
-
237
- function contact_table($id = 0) {
238
- global $qlwapp;
239
- ?>
240
<tr>
241
- <td>
242
- <div class="upload">
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>
250
- </td>
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']); ?>" pattern="[\+]\d[0-9]{6,15}quot;/></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
- <!--<tr>
264
- <td><b><?php esc_html_e('From', 'wp-whatsapp-chat'); ?></b></td><td><input type="time" id="ctimefrom" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][timefrom]'); ?>" placeholder="<?php echo esc_html($this->defaults['contacts'][0]['timefrom']); ?>" value="<?php echo esc_html($qlwapp['contacts'][$id]['timefrom']); ?>" /></td>
265
- <td><b><?php esc_html_e('To', 'wp-whatsapp-chat'); ?></b></td><td><input type="time" id="ctimeto" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][timeto]'); ?>" placeholder="<?php echo esc_html($this->defaults['contacts'][0]['timeto']); ?>" value="<?php echo esc_html($qlwapp['contacts'][$id]['timeto']); ?>" /></td>
266
- </tr>-->
267
- </table>
268
- </td>
269
</tr>
270
- <tr class="qlwapp-premium-field">
271
- <td><b><?php esc_html_e('Chat', 'wp-whatsapp-chat'); ?></b></td>
272
- <td>
273
- <p>
274
- <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>
275
- <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>
276
- </p>
277
- </td>
278
- </tr>
279
- <tr class="qlwapp-premium-field">
280
- <td colspan="2"><b><?php esc_html_e('Message', 'wp-whatsapp-chat'); ?></b></td>
281
- </tr>
282
- <tr class="qlwapp-premium-field">
283
- <td colspan="2"><?php wp_editor($qlwapp['contacts'][$id]['message'], 'cmessage', array('tinymce' => false, 'editor_height' => 150, 'textarea_name' => esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][message]'))); ?></td>
284
- </tr>
285
- <?php
286
- }
287
288
- function add_print_media_templates() {
289
- ?>
290
- <script type="text/html" id='tmpl-qlwapp-modal-backdrop'>
291
- <div class="media-modal-backdrop">&nbsp;</div>
292
- </script>
293
- <script type="text/html" id='tmpl-qlwapp-modal-window'>
294
- <div id="qlwapp_modal" class="media-modal wp-core-ui">
295
- <button type="button" class="media-modal-close close">
296
- <span class="media-modal-icon">
297
- <span class="screen-reader-text"><?php esc_html_e('Close media panel'); ?></span>
298
- </span>
299
- </button>
300
- <div class="media-frame mode-select wp-core-ui hide-menu">
301
- <div class="media-frame-title">
302
- <h1><?php esc_html_e('WhatsApp Chat', 'wp-whatsapp-chat'); ?><span class="dashicons dashicons-arrow-down"></span></h1>
303
- </div>
304
- <div class="media-frame-router">
305
- <div class="media-router">
306
- <a href="#" class="media-menu-item active"><?php esc_html_e('Select icon', 'wp-whatsapp-chat'); ?></a>
307
- </div>
308
- </div>
309
- <div class="media-modal-content">
310
- <div class="media-frame mode-select wp-core-ui">
311
- <div class="media-frame-menu">
312
- <div class="media-menu">
313
- <a href="#" class="media-menu-item active"><?php esc_html_e('Featured Image'); ?></a>
314
- </div>
315
- </div>
316
- <div class="media-frame-content" data-columns="10">
317
- <div class="attachments-browser">
318
- <input type="hidden" id="qlwapp_icon" value="{{ data.icon }}">
319
- <ul tabindex="-1" class="attachments">
320
- <?php foreach (explode(',', 'qlwf-chat,qlwf-chat1,qlwf-chat2,qlwf-comments,qlwf-chat3,qlwf-bubble1,qlwf-chat-alt-fill,qlwf-chat-alt-stroke,qlwf-comment-alt2-fill,qlwf-comment-alt2-stroke,qlwf-comment-fill,qlwf-comment-stroke,qlwf-comment,qlwf-comment-alt1-stroke,qlwf-chat4,qlwf-comments1,qlwf-chat5,qlwf-comment1,qlwf-bubble,qlwf-bubbles,qlwf-bubbles2,qlwf-bubble2,qlwf-bubbles3,qlwf-bubbles4,qlwf-whatsapp,qlwf-chat6,qlwf-mode_comment,qlwf-insert_comment,qlwf-chat_bubble_outline,qlwf-chat_bubble,qlwf-bubble_chart,qlwf-comment2,qlwf-chat7,qlwf-commenting-o,qlwf-commenting,qlwf-comments-o,qlwf-comment-o,qlwf-wechat,qlwf-comments2,qlwf-comment3,qlwf-chat8,qlwf-chat-bubble-dots,qlwf-bubbles1,qlwf-bubble3') as $id => $icon) : ?>
321
- <li tabindex="0" role="checkbox" aria-label="<?php echo esc_attr($icon); ?>" aria-checked="false" data-id="<?php echo esc_attr($id); ?>" class="attachment save-ready icon _<?php echo esc_attr(str_replace(' ', '_', trim($icon))); ?>">
322
- <div class="attachment-preview js--select-attachment type-image subtype-jpeg landscape">
323
- <div class="thumbnail">
324
- <i class="<?php echo esc_attr($icon); ?>"></i>
325
- </div>
326
- </div>
327
- <button type="button" class="check" tabindex="-1">
328
- <span class="media-modal-icon"></span>
329
- <span class="screen-reader-text"><?php esc_html_e('Deselect'); ?></span>
330
- </button>
331
- </li>
332
- <?php endforeach; ?>
333
- </ul>
334
- </div>
335
- </div>
336
- <div class="media-frame-toolbar">
337
- <div class="media-toolbar">
338
- <div class="media-toolbar-secondary"></div>
339
- <div class="media-toolbar-primary search-form">
340
- <button type="button" class="button media-button button-large button-primary media-button-select save"><?php esc_html_e('Save'); ?></button>
341
- <button type="button" class="button media-button button-large button-secondary remove"><?php esc_html_e('Remove'); ?></button>
342
- </div>
343
- </div>
344
- </div>
345
</div>
346
- </div>
347
</div>
348
</div>
349
- </script>
350
- <?php
351
- }
352
353
- function filter_pre_update_option($value, $old_value, $option) {
354
355
- global $qlwapp;
356
357
- if (isset($value['display'])) {
358
- unset($qlwapp['display']);
359
- }
360
361
- if (isset($value['contacts'])) {
362
- unset($qlwapp['contacts']);
363
- }
364
365
- return $this->wp_parse_args($value, $qlwapp);
366
- }
367
368
- function add_notices() {
369
-
370
- if (!get_transient('qlwapp-first-rating') && !get_user_meta(get_current_user_id(), 'qlwapp-user-rating', true)) {
371
- ?>
372
- <div id="qlwapp-admin-rating" class="qlwapp-notice notice is-dismissible" data-notice_id="qlwapp-user-rating">
373
- <div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
374
- <div class="notice-image">
375
- <img style="border-radius:50%;max-width: 90px;" src="<?php echo plugins_url('/assets/img/logo.jpg', QLWAPP_PLUGIN_FILE); ?>" alt="<?php echo esc_html(QLWAPP_PLUGIN_NAME); ?>>">
376
- </div>
377
- <div class="notice-content" style="margin-left: 15px;">
378
- <p>
379
- <?php printf(esc_html__('Hello! Thank you for choosing the %s plugin!', 'wp-whatsapp-chat'), QLWAPP_PLUGIN_NAME); ?>
380
- <br/>
381
- <?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'); ?>
382
- </p>
383
- <a href="<?php echo esc_url(QLWAPP_REVIEW_URL); ?>" class="button-primary" target="_blank">
384
- <?php esc_html_e('Yes, of course!', 'wp-whatsapp-chat'); ?>
385
- </a>
386
- <a href="<?php echo esc_url(QLWAPP_SUPPORT_URL); ?>" class="button-secondary" target="_blank">
387
- <?php esc_html_e('Report a bug', 'wp-whatsapp-chat'); ?>
388
- </a>
389
- </div>
390
- </div>
391
- </div>
392
- <script>
393
- (function ($) {
394
- $('.qlwapp-notice').on('click', '.notice-dismiss', function (e) {
395
- e.preventDefault();
396
- var notice_id = $(e.delegateTarget).data('notice_id');
397
- $.ajax({
398
- type: 'POST',
399
- url: ajaxurl,
400
- data: {
401
- notice_id: notice_id,
402
- action: 'qlwapp_dismiss_notice',
403
- },
404
- success: function (response) {
405
- console.log(response);
406
- },
407
- });
408
- });
409
- })(jQuery);
410
- </script>
411
- <?php
412
- }
413
- }
414
415
- function add_css() {
416
- ?>
417
- <style>
418
- @font-face {
419
- font-family: 'qlwf-whatsapp';
420
- src: url(data:application/x-font-woff;charset=utf-8;base64,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) format('woff');
421
- font-weight: normal;
422
- font-style: normal;
423
- }
424
-
425
- #toplevel_page_qlwapp .dashicons-before.dashicons-format-chat:before {
426
- font-family: 'qlwf-whatsapp' !important;
427
- speak: none;
428
- font-style: normal;
429
- font-weight: normal;
430
- font-variant: normal;
431
- text-transform: none;
432
- line-height: 1;
433
- -webkit-font-smoothing: antialiased;
434
- -moz-osx-font-smoothing: grayscale;
435
- content: "\e900";
436
- font-size: 17px;
437
- line-height: 20px;
438
- }
439
- </style>
440
- <?php
441
- }
442
443
- function add_js() {
444
- if (isset($_GET['page']) && strpos($_GET['page'], QLWAPP_DOMAIN) !== false) {
445
- wp_enqueue_style('qlwapp-admin', plugins_url('/assets/css/qlwapp-admin.min.css', QLWAPP_PLUGIN_FILE), array('wp-color-picker'), QLWAPP_PLUGIN_VERSION, 'all');
446
- wp_enqueue_media();
447
- wp_enqueue_script('qlwapp-select2', plugins_url('/assets/js/select2.min.js', QLWAPP_PLUGIN_FILE), array('jquery'), QLWAPP_PLUGIN_VERSION);
448
- wp_enqueue_script('qlwapp-admin', plugins_url('/assets/js/qlwapp-admin.min.js', QLWAPP_PLUGIN_FILE), array('jquery', 'wp-color-picker'), QLWAPP_PLUGIN_VERSION, true);
449
- }
450
}
451
452
- function init() {
453
- add_action('wp_ajax_qlwapp_get_posts', array($this, 'ajax_get_posts'));
454
- add_action('wp_ajax_qlwapp_dismiss_notice', array($this, 'ajax_dismiss_notice'));
455
- add_action('admin_enqueue_scripts', array($this, 'add_js'));
456
- add_action('admin_notices', array($this, 'add_notices'));
457
- add_action('admin_head', array($this, 'add_css'));
458
- add_action('admin_menu', array($this, 'add_menu'));
459
- add_action('admin_init', array($this, 'add_settings_register'));
460
- add_action('print_media_templates', array($this, 'add_print_media_templates'));
461
- add_filter('pre_update_option_' . sanitize_key(QLWAPP_DOMAIN), array($this, 'filter_pre_update_option'), -1, 3);
462
- add_filter('plugin_action_links_' . plugin_basename(QLWAPP_PLUGIN_FILE), array($this, 'add_action_links'));
463
}
464
465
- public static function instance() {
466
- if (!isset(self::$instance)) {
467
- self::$instance = new self();
468
- self::$instance->defaults();
469
- self::$instance->init();
470
- }
471
- return self::$instance;
472
- }
473
474
}
475
476
- QLWAPP_Settings::instance();
477
}
1
<?php
2
if (!defined('ABSPATH'))
3
+ exit;
4
5
if (!class_exists('QLWAPP_Settings')) {
6
7
+ class QLWAPP_Settings extends QLWAPP_Options {
8
9
+ protected static $instance;
10
11
+ function ajax_dismiss_notice() {
12
13
+ if ($notice_id = ( isset($_POST['notice_id']) ) ? sanitize_key($_POST['notice_id']) : '') {
14
15
+ update_user_meta(get_current_user_id(), $notice_id, true);
16
17
+ wp_send_json($notice_id);
18
+ }
19
20
+ wp_die();
21
+ }
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
+ }
31
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(
39
+ 's' => $_GET['q'],
40
+ 'post_type' => $_GET['name'],
41
+ 'post_status' => 'publish',
42
+ 'ignore_sticky_posts' => 1,
43
+ 'posts_per_page' => 10
44
+ ));
45
46
+ foreach ($posts as $post) {
47
+ $data[] = array($post->post_name, mb_substr($post->post_title, 0, 49));
48
+ }
49
50
+ wp_send_json($data);
51
52
+ wp_die();
53
+ }
54
55
+ function add_menu() {
56
+ add_menu_page('WhatsApp Chat', 'WhatsApp Chat', 'manage_options', QLWAPP_DOMAIN, array($this, 'settings_welcome'), plugins_url('/assets/img/icon.png', QLWAPP_PLUGIN_FILE));
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 . '_premium', array($this, 'settings_premium'));
63
+ }
64
65
+ function settings_header() {
66
67
+ global $submenu;
68
69
+ if (isset($submenu[QLWAPP_DOMAIN])) {
70
+ $welcome_menu_items = $submenu[QLWAPP_DOMAIN];
71
+ }
72
73
+ if (is_array($welcome_menu_items)) {
74
+ ?>
75
+ <div class="wrap about-wrap full-width-layout qlwrap">
76
77
+ <h1><?php echo esc_html(QLWAPP_PLUGIN_NAME); ?></h1>
78
79
+ <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>
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="
86
background: #006bff url(%s) no-repeat;
87
background-position: top center;
88
background-size: 130px 130px;
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">
105
+ <h2 class="nav-tab-wrapper">
106
+ <?php
107
+ foreach ($welcome_menu_items as $welcome_menu_item) {
108
+ if (strpos($welcome_menu_item[2], '.php') !== false)
109
+ continue;
110
+ ?>
111
+ <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>
112
+ <?php
113
}
114
+ ?>
115
+ </h2>
116
+ </div>
117
+ <?php
118
+ }
119
+ }
120
+
121
+ function settings_sanitize($settings) {
122
+
123
+ if (isset($settings['button']['layout'])) {
124
+ $settings['button']['layout'] = sanitize_html_class($settings['button']['layout']);
125
+ }
126
+ if (isset($settings['button']['position'])) {
127
+ $settings['button']['position'] = sanitize_html_class($settings['button']['position']);
128
+ }
129
+ if (isset($settings['button']['text'])) {
130
+ $settings['button']['text'] = sanitize_text_field($settings['button']['text']);
131
+ }
132
+ if (isset($settings['button']['icon'])) {
133
+ $settings['button']['icon'] = sanitize_html_class($settings['button']['icon']);
134
+ }
135
+ if (isset($settings['box']['header'])) {
136
+ $settings['box']['header'] = wp_kses_post($settings['box']['header']);
137
+ }
138
+ if (isset($settings['box']['footer'])) {
139
+ $settings['box']['footer'] = wp_kses_post($settings['box']['footer']);
140
+ }
141
+ if (isset($settings['contacts'])) {
142
+ if (count($settings['contacts'])) {
143
+ foreach ($settings['contacts'] as $id => $c) {
144
+ $settings['contacts'][$id]['chat'] = (bool) $settings['contacts'][$id]['chat'];
145
+ $settings['contacts'][$id]['avatar'] = sanitize_text_field($settings['contacts'][$id]['avatar']);
146
+ $settings['contacts'][$id]['phone'] = sanitize_text_field($settings['contacts'][$id]['phone']);
147
+ $settings['contacts'][$id]['firstname'] = sanitize_text_field($settings['contacts'][$id]['firstname']);
148
+ $settings['contacts'][$id]['lastname'] = sanitize_text_field($settings['contacts'][$id]['lastname']);
149
+ $settings['contacts'][$id]['label'] = sanitize_text_field($settings['contacts'][$id]['label']);
150
+ $settings['contacts'][$id]['message'] = wp_kses_post($settings['contacts'][$id]['message']);
151
+ //$settings['contacts'][$id]['message'] = stripslashes($settings['contacts'][$id]['message']);
152
+ }
153
}
154
+ }
155
156
+ return $settings;
157
+ }
158
159
+ function add_settings_register() {
160
+ register_setting(sanitize_key(QLWAPP_DOMAIN . '-group'), sanitize_key(QLWAPP_DOMAIN), array($this, 'settings_sanitize'));
161
+ }
162
163
+ function settings_welcome() {
164
165
+ global $qlwapp;
166
+ ?>
167
+ <?php $this->settings_header(); ?>
168
+ <div class="wrap about-wrap full-width-layout qlwrap">
169
+ <?php include_once('pages/welcome.php'); ?>
170
+ </div>
171
+ <?php
172
+ }
173
174
+ function settings_button() {
175
176
+ global $qlwapp;
177
+ ?>
178
+ <?php $this->settings_header(); ?>
179
+ <div class="wrap about-wrap full-width-layout qlwrap">
180
+ <?php include_once('pages/button.php'); ?>
181
+ </div>
182
+ <?php
183
+ }
184
185
+ function settings_box() {
186
187
+ global $qlwapp;
188
+ ?>
189
+ <?php $this->settings_header(); ?>
190
+ <div class="wrap about-wrap full-width-layout qlwrap">
191
+ <?php include_once('pages/box.php'); ?>
192
+ </div>
193
+ <?php
194
+ }
195
196
+ function settings_display() {
197
198
+ global $qlwapp;
199
+ ?>
200
+ <?php $this->settings_header(); ?>
201
+ <div class="wrap about-wrap full-width-layout qlwrap">
202
+ <?php include_once('pages/display.php'); ?>
203
+ </div>
204
+ <?php
205
+ }
206
207
+ function settings_colors() {
208
209
+ global $qlwapp;
210
+ ?>
211
+ <?php $this->settings_header(); ?>
212
+ <div class="wrap about-wrap full-width-layout qlwrap">
213
+ <?php include_once('pages/colors.php'); ?>
214
+ </div>
215
+ <?php
216
+ }
217
218
+ function settings_premium() {
219
220
+ global $qlwapp;
221
+ ?>
222
+ <?php $this->settings_header(); ?>
223
+ <div class="wrap about-wrap full-width-layout qlwrap">
224
+ <?php include_once('pages/premium.php'); ?>
225
+ </div>
226
+ <?php
227
+ }
228
229
+ function settings_contacts() {
230
+ ?>
231
+ <table class="form-table widefat" id="qlwapp-contact-form" data-editindex="-1">
232
+ <?php $this->contact_table(); ?>
233
+ </table>
234
+ <?php
235
+ }
236
237
+ function contact_table($id = 0) {
238
+ global $qlwapp;
239
+ ?>
240
+ <tr>
241
+ <td>
242
+ <div class="upload">
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>
250
+ </td>
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']); ?>" pattern="[\+]\d[0-9]{6,15}quot;/></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
+ <!--<tr>
264
+ <td><b><?php esc_html_e('From', 'wp-whatsapp-chat'); ?></b></td><td><input type="time" id="ctimefrom" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][timefrom]'); ?>" placeholder="<?php echo esc_html($this->defaults['contacts'][0]['timefrom']); ?>" value="<?php echo esc_html($qlwapp['contacts'][$id]['timefrom']); ?>" /></td>
265
+ <td><b><?php esc_html_e('To', 'wp-whatsapp-chat'); ?></b></td><td><input type="time" id="ctimeto" name="<?php echo esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][timeto]'); ?>" placeholder="<?php echo esc_html($this->defaults['contacts'][0]['timeto']); ?>" value="<?php echo esc_html($qlwapp['contacts'][$id]['timeto']); ?>" /></td>
266
+ </tr>-->
267
+ </table>
268
+ </td>
269
+ </tr>
270
+ <tr class="qlwapp-premium-field">
271
+ <td><b><?php esc_html_e('Chat', 'wp-whatsapp-chat'); ?></b></td>
272
+ <td>
273
+ <p>
274
+ <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>
275
+ <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>
276
+ </p>
277
+ </td>
278
+ </tr>
279
+ <tr class="qlwapp-premium-field">
280
+ <td colspan="2"><b><?php esc_html_e('Message', 'wp-whatsapp-chat'); ?></b></td>
281
+ </tr>
282
+ <tr class="qlwapp-premium-field">
283
+ <td colspan="2"><?php wp_editor($qlwapp['contacts'][$id]['message'], 'cmessage', array('tinymce' => false, 'editor_height' => 150, 'textarea_name' => esc_attr(QLWAPP_DOMAIN . '[contacts][' . $id . '][message]'))); ?></td>
284
+ </tr>
285
+ <?php
286
+ }
287
288
+ function add_print_media_templates() {
289
+ ?>
290
+ <script type="text/html" id='tmpl-qlwapp-modal-backdrop'>
291
+ <div class="media-modal-backdrop">&nbsp;</div>
292
+ </script>
293
+ <script type="text/html" id='tmpl-qlwapp-modal-window'>
294
+ <div id="qlwapp_modal" class="media-modal wp-core-ui">
295
+ <button type="button" class="media-modal-close close">
296
+ <span class="media-modal-icon">
297
+ <span class="screen-reader-text"><?php esc_html_e('Close media panel'); ?></span>
298
+ </span>
299
+ </button>
300
+ <div class="media-frame mode-select wp-core-ui hide-menu">
301
+ <div class="media-frame-title">
302
+ <h1><?php echo esc_html(QLWAPP_PLUGIN_NAME); ?><span class="dashicons dashicons-arrow-down"></span></h1>
303
+ </div>
304
+ <div class="media-frame-router">
305
+ <div class="media-router">
306
+ <a href="#" class="media-menu-item active"><?php esc_html_e('Select icon', 'wp-whatsapp-chat'); ?></a>
307
+ </div>
308
+ </div>
309
+ <div class="media-modal-content">
310
+ <div class="media-frame mode-select wp-core-ui">
311
+ <div class="media-frame-menu">
312
+ <div class="media-menu">
313
+ <a href="#" class="media-menu-item active"><?php esc_html_e('Featured Image'); ?></a>
314
+ </div>
315
+ </div>
316
+ <div class="media-frame-content" data-columns="10">
317
+ <div class="attachments-browser">
318
+ <input type="hidden" id="qlwapp_icon" value="{{ data.icon }}">
319
+ <ul tabindex="-1" class="attachments">
320
+ <?php foreach (explode(',', 'qlwf-chat,qlwf-chat1,qlwf-chat2,qlwf-comments,qlwf-chat3,qlwf-bubble1,qlwf-chat-alt-fill,qlwf-chat-alt-stroke,qlwf-comment-alt2-fill,qlwf-comment-alt2-stroke,qlwf-comment-fill,qlwf-comment-stroke,qlwf-comment,qlwf-comment-alt1-stroke,qlwf-chat4,qlwf-comments1,qlwf-chat5,qlwf-comment1,qlwf-bubble,qlwf-bubbles,qlwf-bubbles2,qlwf-bubble2,qlwf-bubbles3,qlwf-bubbles4,qlwf-whatsapp,qlwf-chat6,qlwf-mode_comment,qlwf-insert_comment,qlwf-chat_bubble_outline,qlwf-chat_bubble,qlwf-bubble_chart,qlwf-comment2,qlwf-chat7,qlwf-commenting-o,qlwf-commenting,qlwf-comments-o,qlwf-comment-o,qlwf-wechat,qlwf-comments2,qlwf-comment3,qlwf-chat8,qlwf-chat-bubble-dots,qlwf-bubbles1,qlwf-bubble3') as $id => $icon) : ?>
321
+ <li tabindex="0" role="checkbox" aria-label="<?php echo esc_attr($icon); ?>" aria-checked="false" data-id="<?php echo esc_attr($id); ?>" class="attachment save-ready icon _<?php echo esc_attr(str_replace(' ', '_', trim($icon))); ?>">
322
+ <div class="attachment-preview js--select-attachment type-image subtype-jpeg landscape">
323
+ <div class="thumbnail">
324
+ <i class="<?php echo esc_attr($icon); ?>"></i>
325
</div>
326
+ </div>
327
+ <button type="button" class="check" tabindex="-1">
328
+ <span class="media-modal-icon"></span>
329
+ <span class="screen-reader-text"><?php esc_html_e('Deselect'); ?></span>
330
+ </button>
331
+ </li>
332
+ <?php endforeach; ?>
333
+ </ul>
334
+ </div>
335
+ </div>
336
+ <div class="media-frame-toolbar">
337
+ <div class="media-toolbar">
338
+ <div class="media-toolbar-secondary"></div>
339
+ <div class="media-toolbar-primary search-form">
340
+ <button type="button" class="button media-button button-large button-primary media-button-select save"><?php esc_html_e('Save'); ?></button>
341
+ <button type="button" class="button media-button button-large button-secondary remove"><?php esc_html_e('Remove'); ?></button>
342
</div>
343
+ </div>
344
</div>
345
+ </div>
346
+ </div>
347
+ </div>
348
+ </div>
349
+ </script>
350
+ <?php
351
+ }
352
353
+ function filter_pre_update_option($value, $old_value, $option) {
354
355
+ global $qlwapp;
356
357
+ if (isset($value['display'])) {
358
+ unset($qlwapp['display']);
359
+ }
360
361
+ if (isset($value['contacts'])) {
362
+ unset($qlwapp['contacts']);
363
+ }
364
365
+ return $this->wp_parse_args($value, $qlwapp);
366
+ }
367
368
+ function add_notices() {
369
370
+ if (!get_transient('qlwapp-first-rating') && !get_user_meta(get_current_user_id(), 'qlwapp-user-rating', true)) {
371
+ ?>
372
+ <div id="qlwapp-admin-rating" class="qlwapp-notice notice is-dismissible" data-notice_id="qlwapp-user-rating">
373
+ <div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
374
+ <div class="notice-image">
375
+ <img style="border-radius:50%;max-width: 90px;" src="<?php echo plugins_url('/assets/img/logo.jpg', QLWAPP_PLUGIN_FILE); ?>" alt="<?php echo esc_html(QLWAPP_PLUGIN_NAME); ?>>">
376
+ </div>
377
+ <div class="notice-content" style="margin-left: 15px;">
378
+ <p>
379
+ <?php printf(esc_html__('Hello! Thank you for choosing the %s plugin!', 'wp-whatsapp-chat'), QLWAPP_PLUGIN_NAME); ?>
380
+ <br/>
381
+ <?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'); ?>
382
+ </p>
383
+ <a href="<?php echo esc_url(QLWAPP_REVIEW_URL); ?>" class="button-primary" target="_blank">
384
+ <?php esc_html_e('Yes, of course!', 'wp-whatsapp-chat'); ?>
385
+ </a>
386
+ <a href="<?php echo esc_url(QLWAPP_SUPPORT_URL); ?>" class="button-secondary" target="_blank">
387
+ <?php esc_html_e('Report a bug', 'wp-whatsapp-chat'); ?>
388
+ </a>
389
+ </div>
390
+ </div>
391
+ </div>
392
+ <script>
393
+ (function ($) {
394
+ $('.qlwapp-notice').on('click', '.notice-dismiss', function (e) {
395
+ e.preventDefault();
396
+ var notice_id = $(e.delegateTarget).data('notice_id');
397
+ $.ajax({
398
+ type: 'POST',
399
+ url: ajaxurl,
400
+ data: {
401
+ notice_id: notice_id,
402
+ action: 'qlwapp_dismiss_notice',
403
+ },
404
+ success: function (response) {
405
+ console.log(response);
406
+ },
407
+ });
408
+ });
409
+ })(jQuery);
410
+ </script>
411
+ <?php
412
+ }
413
+ }
414
415
+ function add_css() {
416
+ ?>
417
+ <style>
418
+ @font-face {
419
+ font-family: 'qlwf-whatsapp';
420
+ src: url(data:application/x-font-woff;charset=utf-8;base64,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) format('woff');
421
+ font-weight: normal;
422
+ font-style: normal;
423
}
424
425
+ #toplevel_page_qlwapp .wp-menu-image img {
426
+ height: 16px;
427
}
428
+ </style>
429
+ <?php
430
+ }
431
432
+ function add_js() {
433
+ if (isset($_GET['page']) && strpos($_GET['page'], QLWAPP_DOMAIN) !== false) {
434
+ wp_enqueue_style('qlwapp-admin', plugins_url('/assets/css/qlwapp-admin.min.css', QLWAPP_PLUGIN_FILE), array('wp-color-picker'), QLWAPP_PLUGIN_VERSION, 'all');
435
+ wp_enqueue_media();
436
+ wp_enqueue_script('qlwapp-select2', plugins_url('/assets/js/select2.min.js', QLWAPP_PLUGIN_FILE), array('jquery'), QLWAPP_PLUGIN_VERSION);
437
+ wp_enqueue_script('qlwapp-admin', plugins_url('/assets/js/qlwapp-admin.min.js', QLWAPP_PLUGIN_FILE), array('jquery', 'wp-color-picker'), QLWAPP_PLUGIN_VERSION, true);
438
+ }
439
+ }
440
441
+ function init() {
442
+ add_action('wp_ajax_qlwapp_get_posts', array($this, 'ajax_get_posts'));
443
+ add_action('wp_ajax_qlwapp_dismiss_notice', array($this, 'ajax_dismiss_notice'));
444
+ add_action('admin_enqueue_scripts', array($this, 'add_js'));
445
+ add_action('admin_notices', array($this, 'add_notices'));
446
+ add_action('admin_head', array($this, 'add_css'));
447
+ add_action('admin_menu', array($this, 'add_menu'));
448
+ add_action('admin_init', array($this, 'add_settings_register'));
449
+ add_action('print_media_templates', array($this, 'add_print_media_templates'));
450
+ add_filter('pre_update_option_' . sanitize_key(QLWAPP_DOMAIN), array($this, 'filter_pre_update_option'), -1, 3);
451
+ add_filter('plugin_action_links_' . plugin_basename(QLWAPP_PLUGIN_FILE), array($this, 'add_action_links'));
452
}
453
454
+ public static function instance() {
455
+ if (!isset(self::$instance)) {
456
+ self::$instance = new self();
457
+ self::$instance->defaults();
458
+ self::$instance->init();
459
+ }
460
+ return self::$instance;
461
+ }
462
+
463
+ }
464
+
465
+ QLWAPP_Settings::instance();
466
}
languages/wp-whatsapp-chat-es_ES.mo DELETED
Binary file
languages/wp-whatsapp-chat-es_ES.po DELETED
@@ -1,496 +0,0 @@
1
- # Translation of Plugins - WhatsApp Chat WP - Development (trunk) in Spanish (Spain)
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"
9
- "Plural-Forms: nplurals=2; plural=n != 1;\n"
10
- "X-Generator: Poedit 1.8.1\n"
11
- "Language: es\n"
12
- "Project-Id-Version: Plugins - WhatsApp Chat WP - Development (trunk)\n"
13
- "POT-Creation-Date: \n"
14
- "Last-Translator: \n"
15
- "Language-Team: \n"
16
-
17
- #: includes/defaults.php:47
18
- msgid "Write a response"
19
- msgstr "Escribe una respuesta"
20
-
21
- #: includes/pages/box.php:31
22
- msgid "Write a response text."
23
- msgstr "Escribe un texto de respuesta."
24
-
25
- #: includes/pages/box.php:28
26
- msgid "Response"
27
- msgstr "Respuesta"
28
-
29
- #: includes/settings.php:27
30
- msgid "Settings"
31
- msgstr "Ajustes"
32
-
33
- #: template/box.php:47
34
- msgid "Powered by QuadLayers"
35
- msgstr "Desarrollado por QuadLayers"
36
-
37
- #: includes/defaults.php:57
38
- msgid "Hello! I'm John from the support team."
39
- msgstr "¡Hola! Soy John, del equipo de soporte."
40
-
41
- #: includes/defaults.php:34
42
- msgid "How can I help you?"
43
- msgstr "¿Cómo puedo ayudarte?"
44
-
45
- #: includes/defaults.php:29
46
- msgid "Hello! I'm testing the WhatsApp Chat plugin @https://quadlayers.com"
47
- msgstr "¡Hola! Estoy probando el plugin WhatsApp Chat @https://quadlayers.com"
48
-
49
- #: includes/settings.php:383
50
- msgid "Report a bug"
51
- msgstr "Informar de un fallo"
52
-
53
- #: includes/settings.php:380
54
- msgid "Yes, of course!"
55
- msgstr "¡Sí, por supuesto!"
56
-
57
- #: includes/settings.php:377
58
- msgid "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."
59
- msgstr "¿Podrías darle una calificación de 5 estrellas en WordPress? Sabemos que es un gran favor, pero hemos trabajado mucho y muy duro para lanzar este gran producto. Tus comentarios aumentarán nuestra motivación y nos ayudarán a promocionar y continuar mejorando este producto."
60
-
61
- #: includes/settings.php:375
62
- msgid "Hello! Thank you for choosing the %s plugin!"
63
- msgstr "¡Hola! ¡Gracias por elegir el plugin %s!"
64
-
65
- #: includes/settings.php:337
66
- msgid "Remove"
67
- msgstr "Eliminar"
68
-
69
- #: includes/settings.php:336
70
- msgid "Save"
71
- msgstr "Guardar"
72
-
73
- #: includes/settings.php:325
74
- msgid "Deselect"
75
- msgstr "Anular selección"
76
-
77
- #: includes/settings.php:309
78
- msgid "Featured Image"
79
- msgstr "Imagen destacada"
80
-
81
- #: includes/settings.php:302
82
- msgid "Select icon"
83
- msgstr "Seleccionar icono"
84
-
85
- #: includes/settings.php:293
86
- msgid "Close media panel"
87
- msgstr "Cerrar el panel de medios"
88
-
89
- #: includes/settings.php:271
90
- msgid "Disabled"
91
- msgstr "Desactivado"
92
-
93
- #: includes/settings.php:270
94
- msgid "Enabled"
95
- msgstr "Activado"
96
-
97
- #: includes/settings.php:256
98
- msgid "Lastname"
99
- msgstr "Apellido"
100
-
101
- #: includes/settings.php:254
102
- msgid "Firstname"
103
- msgstr "Nombre"
104
-
105
- #: includes/settings.php:246
106
- msgid "Upload"
107
- msgstr "Subir"
108
-
109
- #: includes/settings.php:101
110
- msgid "QuadLayers"
111
- msgstr "QuadLayers"
112
-
113
- #: includes/settings.php:82
114
- msgid "Check out our demo"
115
- msgstr "Ver nuestra demo"
116
-
117
- #: includes/settings.php:79
118
- msgid "Thanks for using WhatsApp Chat! We will do our best to offer you the best and improved communication experience with your users."
119
- msgstr "¡Gracias por utilizar WhatsApp Chat! Haremos todo lo posible para ofrecerte la mejor experiencia de comunicación con tus usuarios."
120
-
121
- #: includes/settings.php:61
122
- msgid "Colors"
123
- msgstr "Colores"
124
-
125
- #: includes/settings.php:60
126
- msgid "Display"
127
- msgstr "Mostrar"
128
-
129
- #: includes/settings.php:59
130
- msgid "Box"
131
- msgstr "Caja"
132
-
133
- #: includes/settings.php:57
134
- msgid "Welcome"
135
- msgstr "Bienvenido"
136
-
137
- #: includes/pages/button.php:77
138
- msgid "Leave a discrete link to developer to help and keep new updates and support."
139
- msgstr "Deja un enlace discreto al desarrollador para ayudar y mantener nuevas actualizaciones y el soporte."
140
-
141
- #: includes/pages/button.php:75
142
- msgid "Hide developer link"
143
- msgstr "Ocultar enlace de desarrollador"
144
-
145
- #: includes/pages/button.php:74
146
- msgid "Show developer link"
147
- msgstr "Mostrar enlace de desarrollador"
148
-
149
- #: includes/pages/button.php:71
150
- msgid "Discreet link"
151
- msgstr "Enlace discreto"
152
-
153
- #: includes/pages/button.php:67
154
- msgid "Message that will automatically appear in the text field of a chat."
155
- msgstr "Mensaje que aparecerá automáticamente en el campo de texto del chat."
156
-
157
- #: includes/pages/button.php:57
158
- msgid "Add Icon"
159
- msgstr "Añadir icono"
160
-
161
- #: includes/pages/button.php:54
162
- msgid "Icon"
163
- msgstr "Icono"
164
-
165
- #: includes/pages/button.php:49
166
- msgid "Full phone number in international format."
167
- msgstr "Número de teléfono completo en formato internacional."
168
-
169
- #: includes/pages/button.php:42
170
- msgid "Customize your text."
171
- msgstr "Personaliza tu texto."
172
-
173
- #: includes/pages/button.php:39
174
- msgid "Text"
175
- msgstr "Texto"
176
-
177
- #: includes/pages/button.php:35
178
- msgid "Switch to change the button position."
179
- msgstr "Cambiar la posición del botón."
180
-
181
- #: includes/pages/button.php:33
182
- msgid "Bottom Right"
183
- msgstr "Abajo a la derecha"
184
-
185
- #: includes/pages/button.php:32
186
- msgid "Bottom Left"
187
- msgstr "Abajo a la izquierda"
188
-
189
- #: includes/pages/button.php:31
190
- msgid "Middle Right"
191
- msgstr "Centrado a la derecha"
192
-
193
- #: includes/pages/button.php:30
194
- msgid "Middle Left"
195
- msgstr "Centrado a la izquierda"
196
-
197
- #: includes/pages/button.php:27
198
- msgid "Position"
199
- msgstr "Posición"
200
-
201
- #: includes/pages/button.php:23
202
- msgid "Add rounded border to the button."
203
- msgstr "Añadir borde redondeado al botón."
204
-
205
- #: includes/pages/button.php:21
206
- msgid "Remove rounded border"
207
- msgstr "Quitar el borde redondeado"
208
-
209
- #: includes/pages/button.php:20
210
- msgid "Add rounded border"
211
- msgstr "Añadir borde redondeado"
212
-
213
- #: includes/pages/button.php:17
214
- msgid "Rounded"
215
- msgstr "Redondeado"
216
-
217
- #: includes/pages/button.php:13
218
- msgid "Switch to change the button layout."
219
- msgstr "Cambiar el diseño del botón."
220
-
221
- #: includes/pages/button.php:11
222
- msgid "Bubble"
223
- msgstr "Burbuja"
224
-
225
- #: includes/settings.php:58 includes/pages/button.php:10
226
- msgid "Button"
227
- msgstr "Botón"
228
-
229
- #: includes/pages/button.php:7
230
- msgid "Layout"
231
- msgstr "Diseño"
232
-
233
- #: includes/pages/welcome.php:29
234
- msgid "Submit ticket"
235
- msgstr "Enviar un ticket"
236
-
237
- #: includes/pages/welcome.php:27
238
- msgid "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."
239
- msgstr "Si tienes alguna duda o si encuentras algún problema, no dudes en contactar con nosotros a través de nuestro sistema de tickets o unirte a nuestra comunidad para conocer a otros usuarios de WhatsApp Chat."
240
-
241
- #: includes/defaults.php:56 includes/pages/welcome.php:25
242
- msgid "Support"
243
- msgstr "Soporte"
244
-
245
- #: includes/pages/welcome.php:22
246
- msgid "View demo"
247
- msgstr "Ver demo"
248
-
249
- #: includes/pages/welcome.php:20
250
- msgid "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."
251
- msgstr "¡Gracias por elegir nuestro plugin WhatsApp Chat para WordPress! Aquí puedes ver nuestra demo y una descripción de las características que ofrecemos en la versión premium."
252
-
253
- #: includes/pages/welcome.php:18
254
- msgid "Demo"
255
- msgstr "Demo"
256
-
257
- #: includes/pages/welcome.php:15
258
- msgid "Join us"
259
- msgstr "Únete a nosotros"
260
-
261
- #: includes/pages/welcome.php:13
262
- msgid "If you want to get in touch with other WhatsApp Chat users or be aware of our promotional discounts join our community now."
263
- msgstr "Si deseas ponerse en contacto con otros usuarios de WhatsApp Chat o conocer nuestros descuentos promocionales, únete a nuestra comunidad ahora."
264
-
265
- #: includes/pages/welcome.php:11
266
- msgid "Community"
267
- msgstr "Comunidad"
268
-
269
- #: includes/pages/welcome.php:6
270
- msgid "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."
271
- msgstr "Hola somos QuadLayers! Recientemente hemos adquirido este plugin y esta es la primera actualización. Hemos trabajado mucho y es muy duro para su lanzamiento, y haremos todo lo posible para dar el mejor soporte y solucionar todos los problemas."
272
-
273
- #: includes/pages/box.php:63
274
- msgid "Actions"
275
- msgstr "Acciones"
276
-
277
- #: includes/settings.php:267 includes/pages/box.php:62
278
- msgid "Chat"
279
- msgstr "Chat"
280
-
281
- #: includes/settings.php:260 includes/pages/box.php:58
282
- #: includes/pages/button.php:46
283
- msgid "Phone"
284
- msgstr "Teléfono"
285
-
286
- #: includes/pages/box.php:57
287
- msgid "Avatar"
288
- msgstr "Avatar"
289
-
290
- #: includes/pages/box.php:51
291
- msgid "Add Contact"
292
- msgstr "Añadir contacto"
293
-
294
- #: includes/pages/box.php:44
295
- msgid "Save Contact"
296
- msgstr "Guardar contacto"
297
-
298
- #: includes/pages/box.php:36
299
- msgid "Contacts"
300
- msgstr "Contactos"
301
-
302
- #: includes/pages/box.php:22
303
- msgid "Footer"
304
- msgstr "Pie de página"
305
-
306
- #: includes/pages/box.php:16
307
- msgid "Header"
308
- msgstr "Cabecera"
309
-
310
- #: includes/pages/box.php:11
311
- msgid "Disable contact box"
312
- msgstr "Desactivar caja de contactos"
313
-
314
- #: includes/pages/box.php:10
315
- msgid "Enable contact box"
316
- msgstr "Activar caja de contactos"
317
-
318
- #: includes/pages/box.php:7
319
- msgid "Disable"
320
- msgstr "Desactivar"
321
-
322
- #: includes/pages/purchase.php:68
323
- msgid "Allow your users to type their own messages before send it to the agent phone number."
324
- msgstr "Permite que tus usuarios escriban sus propios mensajes antes de enviarlos al número de teléfono del agente."
325
-
326
- #: includes/pages/purchase.php:66
327
- msgid "Type user message"
328
- msgstr "Escribe el mensaje de usuario"
329
-
330
- #: includes/pages/purchase.php:62
331
- msgid "You can choose the predefined user message that will be sent to the agent phone number."
332
- msgstr "Puedes elegir el mensaje de usuario predefinido que se enviará al número de teléfono del agente."
333
-
334
- #: includes/pages/purchase.php:60
335
- msgid "Custom user message"
336
- msgstr "Mensaje de usuario personalizado"
337
-
338
- #: includes/pages/purchase.php:56
339
- msgid "Allow you to set a custom message for each agent that will displayed on the chatbox."
340
- msgstr "Te permite establecer un mensaje personalizado para cada agente que se mostrará en la caja de chat."
341
-
342
- #: includes/pages/purchase.php:54
343
- msgid "Custom agent message"
344
- msgstr "Mensaje del agente personalizado"
345
-
346
- #: includes/pages/purchase.php:48
347
- msgid "WhatsApp chat for WordPress allows you to include a chatbox for each agent where your users can type their first message."
348
- msgstr "WhatsApp Chat para WordPress te permite incluir una caja de chat para cada agente donde tus usuarios pueden escribir su primer mensaje."
349
-
350
- #: includes/pages/purchase.php:46
351
- msgid "Chatbox interface"
352
- msgstr "Interfaz de chat"
353
-
354
- #: includes/pages/purchase.php:29
355
- msgid "Our plugin allows you to select between more than fourty icons to include in your Whatsapp button."
356
- msgstr "Nuestro plugin te permite seleccionar entre más de cuarenta iconos para incluir en tu botón de WhatsApp."
357
-
358
- #: includes/pages/purchase.php:27
359
- msgid "Custom icons"
360
- msgstr "Iconos personalizados"
361
-
362
- #: includes/pages/purchase.php:23
363
- msgid "Customize the colors to match site’s theme colors through the WordPress live customizer interface."
364
- msgstr "Personaliza los colores para que coincidan con los colores del tema de tu sitio a través del personalizador de WordPress."
365
-
366
- #: includes/pages/purchase.php:21
367
- msgid "Customize colors"
368
- msgstr "Personalizar colores"
369
-
370
- #: includes/pages/purchase.php:17
371
- msgid "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."
372
- msgstr "WhatsApp Chat te permite incluir cuentas de agentes ilimitadas con sus nombres y etiquetas dentro de la caja para proporcionar un contacto directo hacia las diferentes áreas de soporte de tu sitio."
373
-
374
- #: includes/pages/purchase.php:15
375
- msgid "Multiple agents"
376
- msgstr "Múltiples agentes"
377
-
378
- #: includes/pages/purchase.php:11
379
- msgid "Get Support"
380
- msgstr "Obtener soporte"
381
-
382
- #: includes/pages/purchase.php:10
383
- msgid "Purchase Now"
384
- msgstr "Comprar ahora"
385
-
386
- #: includes/pages/purchase.php:7
387
- msgid "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."
388
- msgstr "Desbloquea la potencia de la version premium de WhatsApp Chat que te permite incluir cuentas de agentes ilimitadas con sus nombres y etiquetas para proporcionar un contacto directo a las diferentes áreas de soporte de tu sitio."
389
-
390
- #: includes/settings.php:25 includes/settings.php:62
391
- #: includes/pages/purchase.php:5
392
- msgid "Premium"
393
- msgstr "Premium"
394
-
395
- #: includes/pages/display.php:50
396
- msgid "Archive"
397
- msgstr "Archivo"
398
-
399
- #: includes/pages/display.php:48
400
- msgid "Select for %s&hellip;"
401
- msgstr "Selecciona para %s&hellip;"
402
-
403
- #: includes/pages/display.php:27
404
- msgid "If you select an option all the other will be excluded"
405
- msgstr "Si seleccionas una opción, todas las demás serán excluidas."
406
-
407
- #: includes/pages/display.php:24
408
- msgid "Search"
409
- msgstr "Buscar"
410
-
411
- #: includes/pages/display.php:23
412
- msgid "Blog"
413
- msgstr "Blog"
414
-
415
- #: includes/pages/display.php:22
416
- msgid "Home"
417
- msgstr "Inicio"
418
-
419
- #: includes/settings.php:35 includes/pages/display.php:21
420
- #: includes/pages/display.php:49 includes/pages/display.php:97
421
- msgid "Exclude from all"
422
- msgstr "Excluir de todos"
423
-
424
- #: includes/pages/display.php:18
425
- msgid "Target"
426
- msgstr "Target"
427
-
428
- #: includes/pages/display.php:13
429
- msgid "Hide in all devices"
430
- msgstr "Ocultar en todos los dispositivos"
431
-
432
- #: includes/pages/display.php:12
433
- msgid "Show in desktop devices"
434
- msgstr "Mostrar en dispositivos de escritorio"
435
-
436
- #: includes/pages/display.php:11
437
- msgid "Show in mobile devices"
438
- msgstr "Mostrar en dispositivos móviles"
439
-
440
- #: includes/pages/display.php:10
441
- msgid "Show in all devices"
442
- msgstr "Mostrar en todos los dispositivos"
443
-
444
- #: includes/pages/display.php:7
445
- msgid "Devices"
446
- msgstr "Dispositivos"
447
-
448
- #: includes/pages/box.php:59 includes/pages/colors.php:40
449
- msgid "Name"
450
- msgstr "Name"
451
-
452
- #: includes/settings.php:261 includes/pages/box.php:60
453
- #: includes/pages/colors.php:33
454
- msgid "Label"
455
- msgstr "Etiqueta"
456
-
457
- #: includes/settings.php:276 includes/pages/box.php:61
458
- #: includes/pages/colors.php:26 includes/pages/button.php:64
459
- msgid "Message"
460
- msgstr "Mensaje"
461
-
462
- #: includes/pages/display.php:72 includes/pages/box.php:52
463
- #: includes/pages/colors.php:22 includes/pages/colors.php:29
464
- #: includes/pages/colors.php:36 includes/pages/colors.php:43
465
- #: includes/pages/button.php:58
466
- msgid "This is a premium feature"
467
- msgstr "Esta es una característica premium"
468
-
469
- #: includes/pages/colors.php:19
470
- msgid "Link"
471
- msgstr "Enlace"
472
-
473
- #: includes/pages/colors.php:13
474
- msgid "Color"
475
- msgstr "Color"
476
-
477
- #: includes/pages/colors.php:7
478
- msgid "Background"
479
- msgstr "Fondo"
480
-
481
- #. Author URI of the plugin
482
- msgid "https://quadlayers.com"
483
- msgstr "https://quadlayers.com"
484
-
485
- #. Author of the plugin
486
- #: includes/settings.php:77 includes/settings.php:298
487
- msgid "WhatsApp Chat"
488
- msgstr "WhatsApp Chat"
489
-
490
- #. Description of the plugin
491
- msgid "Send messages directly to your WhatsApp phone number."
492
- msgstr "Envía mensajes directamente a tu número de teléfono de WhatsApp."
493
-
494
- #. Plugin Name of the plugin
495
- msgid "WhatsApp Chat WP"
496
- msgstr "WhatsApp Chat WP"
languages/wp-whatsapp-chat-pt_BR.mo DELETED
Binary file
languages/wp-whatsapp-chat-pt_BR.po DELETED
@@ -1,496 +0,0 @@
1
- # Translation of Plugins - WhatsApp Chat WP - Development (trunk) in Portuguese (Brazil)
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"
9
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
10
- "X-Generator: Poedit 1.8.1\n"
11
- "Language: pt_BR\n"
12
- "Project-Id-Version: Plugins - WhatsApp Chat WP - Development (trunk)\n"
13
- "POT-Creation-Date: \n"
14
- "Last-Translator: \n"
15
- "Language-Team: \n"
16
-
17
- #: includes/defaults.php:47
18
- msgid "Write a response"
19
- msgstr "Escreva sua mensagem"
20
-
21
- #: includes/pages/box.php:31
22
- msgid "Write a response text."
23
- msgstr "Escreva um texto de resposta."
24
-
25
- #: includes/pages/box.php:28
26
- msgid "Response"
27
- msgstr "Resposta"
28
-
29
- #: includes/settings.php:27
30
- msgid "Settings"
31
- msgstr "Configurações"
32
-
33
- #: template/box.php:47
34
- msgid "Powered by QuadLayers"
35
- msgstr "Movido por QuadLayers"
36
-
37
- #: includes/defaults.php:57
38
- msgid "Hello! I'm John from the support team."
39
- msgstr "Oi! Eu sou John do suporte."
40
-
41
- #: includes/defaults.php:34
42
- msgid "How can I help you?"
43
- msgstr "Como posso te ajudar?"
44
-
45
- #: includes/defaults.php:29
46
- msgid "Hello! I'm testing the WhatsApp Chat plugin @https://quadlayers.com"
47
- msgstr "Oi! Estou testando o plugin de chat do WhatsApp @https://quadlayers.com"
48
-
49
- #: includes/settings.php:383
50
- msgid "Report a bug"
51
- msgstr "Informar um erro"
52
-
53
- #: includes/settings.php:380
54
- msgid "Yes, of course!"
55
- msgstr "Claro!"
56
-
57
- #: includes/settings.php:377
58
- msgid "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."
59
- msgstr "Você poderia nos avaliar com 5 estrelas no WordPress? Sabemos que é um grande favor, mas trabalhamos muito para entregar esse produto. Seu feedback vai nos ajudar a continuar melhorando ele."
60
-
61
- #: includes/settings.php:375
62
- msgid "Hello! Thank you for choosing the %s plugin!"
63
- msgstr "Oi! Obrigado por escolher o %s plugin!"
64
-
65
- #: includes/settings.php:337
66
- msgid "Remove"
67
- msgstr "Apagar"
68
-
69
- #: includes/settings.php:336
70
- msgid "Save"
71
- msgstr "Salvar"
72
-
73
- #: includes/settings.php:325
74
- msgid "Deselect"
75
- msgstr "Não selecionar"
76
-
77
- #: includes/settings.php:309
78
- msgid "Featured Image"
79
- msgstr "Imagem destacada"
80
-
81
- #: includes/settings.php:302
82
- msgid "Select icon"
83
- msgstr "Selecione o ícone"
84
-
85
- #: includes/settings.php:293
86
- msgid "Close media panel"
87
- msgstr "Fechar o painel de mídia"
88
-
89
- #: includes/settings.php:271
90
- msgid "Disabled"
91
- msgstr "Desabilitado"
92
-
93
- #: includes/settings.php:270
94
- msgid "Enabled"
95
- msgstr "Habilitado"
96
-
97
- #: includes/settings.php:256
98
- msgid "Lastname"
99
- msgstr "Último nome"
100
-
101
- #: includes/settings.php:254
102
- msgid "Firstname"
103
- msgstr "Primeiro nome"
104
-
105
- #: includes/settings.php:246
106
- msgid "Upload"
107
- msgstr "Enviar"
108
-
109
- #: includes/settings.php:101
110
- msgid "QuadLayers"
111
- msgstr "QuadLayers"
112
-
113
- #: includes/settings.php:82
114
- msgid "Check out our demo"
115
- msgstr "Confira nossa demonstração"
116
-
117
- #: includes/settings.php:79
118
- msgid "Thanks for using WhatsApp Chat! We will do our best to offer you the best and improved communication experience with your users."
119
- msgstr "Agradecemos por usar o WhatsApp Chat! Nós fazemos o nosso melhor para oferecer a melhor experiência de comunicação para nossos usuários."
120
-
121
- #: includes/settings.php:61
122
- msgid "Colors"
123
- msgstr "Cores"
124
-
125
- #: includes/settings.php:60
126
- msgid "Display"
127
- msgstr "Exibir"
128
-
129
- #: includes/settings.php:59
130
- msgid "Box"
131
- msgstr "Caixa"
132
-
133
- #: includes/settings.php:57
134
- msgid "Welcome"
135
- msgstr "Bem-vindo"
136
-
137
- #: includes/pages/button.php:77
138
- msgid "Leave a discrete link to developer to help and keep new updates and support."
139
- msgstr "Deixe um link discreto para o desenvolvedor para ajudar e manter novas atualizações e suporte."
140
-
141
- #: includes/pages/button.php:75
142
- msgid "Hide developer link"
143
- msgstr "Ocultar link do desenvolvedor"
144
-
145
- #: includes/pages/button.php:74
146
- msgid "Show developer link"
147
- msgstr "Mostrar link do desenvolvedor"
148
-
149
- #: includes/pages/button.php:71
150
- msgid "Discreet link"
151
- msgstr "Link discreto"
152
-
153
- #: includes/pages/button.php:67
154
- msgid "Message that will automatically appear in the text field of a chat."
155
- msgstr "Mensagem que aparecerá automaticamente no campo de texto do chat."
156
-
157
- #: includes/pages/button.php:57
158
- msgid "Add Icon"
159
- msgstr "Adicionar ícone"
160
-
161
- #: includes/pages/button.php:54
162
- msgid "Icon"
163
- msgstr "Ícone"
164
-
165
- #: includes/pages/button.php:49
166
- msgid "Full phone number in international format."
167
- msgstr "Número de telefone completo em formato internacional."
168
-
169
- #: includes/pages/button.php:42
170
- msgid "Customize your text."
171
- msgstr "Personalize o texto do botão Trocar nome de usuário."
172
-
173
- #: includes/pages/button.php:39
174
- msgid "Text"
175
- msgstr "Texto"
176
-
177
- #: includes/pages/button.php:35
178
- msgid "Switch to change the button position."
179
- msgstr "Mude para alterar a posição do botão."
180
-
181
- #: includes/pages/button.php:33
182
- msgid "Bottom Right"
183
- msgstr "Base à direita"
184
-
185
- #: includes/pages/button.php:32
186
- msgid "Bottom Left"
187
- msgstr "Em baixo à esquerda"
188
-
189
- #: includes/pages/button.php:31
190
- msgid "Middle Right"
191
- msgstr "Meio á direita"
192
-
193
- #: includes/pages/button.php:30
194
- msgid "Middle Left"
195
- msgstr "Meio à esquerda"
196
-
197
- #: includes/pages/button.php:27
198
- msgid "Position"
199
- msgstr "Posição"
200
-
201
- #: includes/pages/button.php:23
202
- msgid "Add rounded border to the button."
203
- msgstr "Adicione a borda arredondada ao botão."
204
-
205
- #: includes/pages/button.php:21
206
- msgid "Remove rounded border"
207
- msgstr "Remover borda arredondada"
208
-
209
- #: includes/pages/button.php:20
210
- msgid "Add rounded border"
211
- msgstr "Adicionar borda arredondada"
212
-
213
- #: includes/pages/button.php:17
214
- msgid "Rounded"
215
- msgstr "Arredondado"
216
-
217
- #: includes/pages/button.php:13
218
- msgid "Switch to change the button layout."
219
- msgstr "Mude para alterar o layout do botão."
220
-
221
- #: includes/pages/button.php:11
222
- msgid "Bubble"
223
- msgstr "Bolha"
224
-
225
- #: includes/settings.php:58 includes/pages/button.php:10
226
- msgid "Button"
227
- msgstr "Botão"
228
-
229
- #: includes/pages/button.php:7
230
- msgid "Layout"
231
- msgstr "Layout"
232
-
233
- #: includes/pages/welcome.php:29
234
- msgid "Submit ticket"
235
- msgstr "Enviar chamado"
236
-
237
- #: includes/pages/welcome.php:27
238
- msgid "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."
239
- msgstr "Se você tiver alguma dúvida ou encontrar qualquer problema, não hesite em nos contactar através do nosso sistema de chamados ou entrar em nossa comunidade para encontrar outros usuários do WhatsApp Chat."
240
-
241
- #: includes/defaults.php:56 includes/pages/welcome.php:25
242
- msgid "Support"
243
- msgstr "Ajuda"
244
-
245
- #: includes/pages/welcome.php:22
246
- msgid "View demo"
247
- msgstr "Ver demonstração"
248
-
249
- #: includes/pages/welcome.php:20
250
- msgid "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."
251
- msgstr "Agradecemos por escolher o nosso plugin WhatsApp Chat para WordPress! Aqui você pode ver a nossa demonstração e uma descrição sobre os recursos que oferecemos na versão Premium."
252
-
253
- #: includes/pages/welcome.php:18
254
- msgid "Demo"
255
- msgstr "Demonstração"
256
-
257
- #: includes/pages/welcome.php:15
258
- msgid "Join us"
259
- msgstr "Junte-se a nós"
260
-
261
- #: includes/pages/welcome.php:13
262
- msgid "If you want to get in touch with other WhatsApp Chat users or be aware of our promotional discounts join our community now."
263
- msgstr "Se você quiser entrar em contato com outros usuários do WhatsApp Chat, ou estar ciente de nossos descontos promocionais, junte-se à nossa comunidade agora mesmo."
264
-
265
- #: includes/pages/welcome.php:11
266
- msgid "Community"
267
- msgstr "Comunidade"
268
-
269
- #: includes/pages/welcome.php:6
270
- msgid "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."
271
- msgstr "Olá nós somos a QuadLayers! Nós adquirimos recentemente este plugin e esta é a primeira atualização. Temos trabalhado muito e muito duro para liberá-lo, e vamos fazer o nosso melhor para fornecer suporte e corrigir todos os problemas."
272
-
273
- #: includes/pages/box.php:63
274
- msgid "Actions"
275
- msgstr "Ações"
276
-
277
- #: includes/settings.php:267 includes/pages/box.php:62
278
- msgid "Chat"
279
- msgstr "Chat"
280
-
281
- #: includes/settings.php:260 includes/pages/box.php:58
282
- #: includes/pages/button.php:46
283
- msgid "Phone"
284
- msgstr "Telefone"
285
-
286
- #: includes/pages/box.php:57
287
- msgid "Avatar"
288
- msgstr "Avatar"
289
-
290
- #: includes/pages/box.php:51
291
- msgid "Add Contact"
292
- msgstr "Adicionar contato"
293
-
294
- #: includes/pages/box.php:44
295
- msgid "Save Contact"
296
- msgstr "Salvar contato"
297
-
298
- #: includes/pages/box.php:36
299
- msgid "Contacts"
300
- msgstr "Contatos"
301
-
302
- #: includes/pages/box.php:22
303
- msgid "Footer"
304
- msgstr "Rodapé"
305
-
306
- #: includes/pages/box.php:16
307
- msgid "Header"
308
- msgstr "Cabeçalho"
309
-
310
- #: includes/pages/box.php:11
311
- msgid "Disable contact box"
312
- msgstr "Desativar caixa de contato"
313
-
314
- #: includes/pages/box.php:10
315
- msgid "Enable contact box"
316
- msgstr "Ativar caixa de contato"
317
-
318
- #: includes/pages/box.php:7
319
- msgid "Disable"
320
- msgstr "Desativar"
321
-
322
- #: includes/pages/purchase.php:68
323
- msgid "Allow your users to type their own messages before send it to the agent phone number."
324
- msgstr "Permita que seus usuários digitem suas próprias mensagens antes de enviá-lo para o número de telefone do agente."
325
-
326
- #: includes/pages/purchase.php:66
327
- msgid "Type user message"
328
- msgstr "Escrever mensagem do usuário"
329
-
330
- #: includes/pages/purchase.php:62
331
- msgid "You can choose the predefined user message that will be sent to the agent phone number."
332
- msgstr "Você pode escolher a mensagem de usuário predefinida que será enviada para o número de telefone do agente."
333
-
334
- #: includes/pages/purchase.php:60
335
- msgid "Custom user message"
336
- msgstr "Mensagem personalizada do usuário"
337
-
338
- #: includes/pages/purchase.php:56
339
- msgid "Allow you to set a custom message for each agent that will displayed on the chatbox."
340
- msgstr "Permite que você defina uma mensagem personalizada para cada agente que será exibido na caixa do chat."
341
-
342
- #: includes/pages/purchase.php:54
343
- msgid "Custom agent message"
344
- msgstr "Mensagem personalizada do agente"
345
-
346
- #: includes/pages/purchase.php:48
347
- msgid "WhatsApp chat for WordPress allows you to include a chatbox for each agent where your users can type their first message."
348
- msgstr "O WhatsApp Chat para WordPress permite que você inclua uma caixa de chat para cada agente onde seus usuários podem digitar sua primeira mensagem."
349
-
350
- #: includes/pages/purchase.php:46
351
- msgid "Chatbox interface"
352
- msgstr "Interface do ChatBox"
353
-
354
- #: includes/pages/purchase.php:29
355
- msgid "Our plugin allows you to select between more than fourty icons to include in your Whatsapp button."
356
- msgstr "Nosso plugin permite que você selecione entre mais de quarenta ícones para incluir no seu botão WhatsApp."
357
-
358
- #: includes/pages/purchase.php:27
359
- msgid "Custom icons"
360
- msgstr "Ícones personalizados"
361
-
362
- #: includes/pages/purchase.php:23
363
- msgid "Customize the colors to match site’s theme colors through the WordPress live customizer interface."
364
- msgstr "Personalize as cores para combinar com as cores do tema do site através da interface do customizador ao vivo do WordPress."
365
-
366
- #: includes/pages/purchase.php:21
367
- msgid "Customize colors"
368
- msgstr "Personalizar cores"
369
-
370
- #: includes/pages/purchase.php:17
371
- msgid "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."
372
- msgstr "O WhatsApp Chat permite que você inclua contas de agente ilimitadas com seus nomes e rótulos dentro da caixa para fornecer um contato direto com as diferentes áreas de suporte do seu site."
373
-
374
- #: includes/pages/purchase.php:15
375
- msgid "Multiple agents"
376
- msgstr "Vários agentes"
377
-
378
- #: includes/pages/purchase.php:11
379
- msgid "Get Support"
380
- msgstr "Obter ajuda"
381
-
382
- #: includes/pages/purchase.php:10
383
- msgid "Purchase Now"
384
- msgstr "Compre agora"
385
-
386
- #: includes/pages/purchase.php:7
387
- msgid "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."
388
- msgstr "Desbloqueie o poder do nosso plugin WhatsApp Chat Premium que permite que você inclua contas de agente ilimitadas com seus nomes e rótulos dentro da caixa para fornecer um contato direto com as diferentes áreas de suporte do seu site."
389
-
390
- #: includes/settings.php:25 includes/settings.php:62
391
- #: includes/pages/purchase.php:5
392
- msgid "Premium"
393
- msgstr "Premium"
394
-
395
- #: includes/pages/display.php:50
396
- msgid "Archive"
397
- msgstr "Arquivo"
398
-
399
- #: includes/pages/display.php:48
400
- msgid "Select for %s&hellip;"
401
- msgstr "Selecione para %s&hellip;"
402
-
403
- #: includes/pages/display.php:27
404
- msgid "If you select an option all the other will be excluded"
405
- msgstr "Se você selecionar uma opção todas as outras serão excluídas"
406
-
407
- #: includes/pages/display.php:24
408
- msgid "Search"
409
- msgstr "Pesquisar"
410
-
411
- #: includes/pages/display.php:23
412
- msgid "Blog"
413
- msgstr "Blog"
414
-
415
- #: includes/pages/display.php:22
416
- msgid "Home"
417
- msgstr "InÍcio"
418
-
419
- #: includes/settings.php:35 includes/pages/display.php:21
420
- #: includes/pages/display.php:49 includes/pages/display.php:97
421
- msgid "Exclude from all"
422
- msgstr "Excluir de todos"
423
-
424
- #: includes/pages/display.php:18
425
- msgid "Target"
426
- msgstr "Alvo"
427
-
428
- #: includes/pages/display.php:13
429
- msgid "Hide in all devices"
430
- msgstr "Ocultar em todos os dispositivos"
431
-
432
- #: includes/pages/display.php:12
433
- msgid "Show in desktop devices"
434
- msgstr "Mostrar no computador"
435
-
436
- #: includes/pages/display.php:11
437
- msgid "Show in mobile devices"
438
- msgstr "Mostrar nos dispositivos móveis"
439
-
440
- #: includes/pages/display.php:10
441
- msgid "Show in all devices"
442
- msgstr "Mostrar em todos dispositivos"
443
-
444
- #: includes/pages/display.php:7
445
- msgid "Devices"
446
- msgstr "Dispositivos"
447
-
448
- #: includes/pages/box.php:59 includes/pages/colors.php:40
449
- msgid "Name"
450
- msgstr "Nome"
451
-
452
- #: includes/settings.php:261 includes/pages/box.php:60
453
- #: includes/pages/colors.php:33
454
- msgid "Label"
455
- msgstr "Rótulo"
456
-
457
- #: includes/settings.php:276 includes/pages/box.php:61
458
- #: includes/pages/colors.php:26 includes/pages/button.php:64
459
- msgid "Message"
460
- msgstr "Mensagem"
461
-
462
- #: includes/pages/display.php:72 includes/pages/box.php:52
463
- #: includes/pages/colors.php:22 includes/pages/colors.php:29
464
- #: includes/pages/colors.php:36 includes/pages/colors.php:43
465
- #: includes/pages/button.php:58
466
- msgid "This is a premium feature"
467
- msgstr "Esta é um recurso da versão Premium"
468
-
469
- #: includes/pages/colors.php:19
470
- msgid "Link"
471
- msgstr "Link"
472
-
473
- #: includes/pages/colors.php:13
474
- msgid "Color"
475
- msgstr "Cor"
476
-
477
- #: includes/pages/colors.php:7
478
- msgid "Background"
479
- msgstr "Fundo"
480
-
481
- #. Author URI of the plugin
482
- msgid "https://quadlayers.com"
483
- msgstr "https://quadlayers.com"
484
-
485
- #. Author of the plugin
486
- #: includes/settings.php:77 includes/settings.php:298
487
- msgid "WhatsApp Chat"
488
- msgstr "WhatsApp Chat"
489
-
490
- #. Description of the plugin
491
- msgid "Send messages directly to your WhatsApp phone number."
492
- msgstr "Envie mensagens diretamente para o seu número de telefone do WhatsApp."
493
-
494
- #. Plugin Name of the plugin
495
- msgid "WhatsApp Chat WP"
496
- msgstr "WhatsApp Chat WP"
languages/wp-whatsapp-chat.pot CHANGED
@@ -1,9 +1,9 @@
1
#, fuzzy
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"
9
"MIME-Version: 1.0\n"
@@ -20,22 +20,23 @@ msgstr ""
20
"X-Poedit-SearchPathExcluded-0: *.js\n"
21
22
#: includes/defaults.php:29
23
- msgid "Hello! I'm testing the WhatsApp Chat plugin @https://quadlayers.com"
24
msgstr ""
25
26
#: includes/defaults.php:34
27
msgid "How can I help you?"
28
msgstr ""
29
30
- #: includes/defaults.php:47
31
msgid "Write a response"
32
msgstr ""
33
34
- #: includes/defaults.php:56 includes/pages/welcome.php:25
35
msgid "Support"
36
msgstr ""
37
38
- #: includes/defaults.php:57
39
msgid "Hello! I'm John from the support team."
40
msgstr ""
41
@@ -79,7 +80,7 @@ msgstr ""
79
msgid "Add Contact"
80
msgstr ""
81
82
- #: includes/pages/box.php:52 includes/pages/button.php:58
83
#: includes/pages/colors.php:22 includes/pages/colors.php:29
84
#: includes/pages/colors.php:36 includes/pages/colors.php:43
85
#: includes/pages/display.php:72
@@ -90,7 +91,7 @@ msgstr ""
90
msgid "Avatar"
91
msgstr ""
92
93
- #: includes/pages/box.php:58 includes/pages/button.php:46
94
#: includes/settings.php:260
95
msgid "Phone"
96
msgstr ""
@@ -104,12 +105,12 @@ msgstr ""
104
msgid "Label"
105
msgstr ""
106
107
- #: includes/pages/box.php:61 includes/pages/button.php:64
108
- #: includes/pages/colors.php:26 includes/settings.php:276
109
msgid "Message"
110
msgstr ""
111
112
- #: includes/pages/box.php:62 includes/settings.php:267
113
msgid "Chat"
114
msgstr ""
115
@@ -174,44 +175,56 @@ msgid "Switch to change the button position."
174
msgstr ""
175
176
#: includes/pages/button.php:39
177
- msgid "Text"
178
msgstr ""
179
180
#: includes/pages/button.php:42
181
- msgid "Customize your text."
182
msgstr ""
183
184
#: includes/pages/button.php:49
185
- msgid "Full phone number in international format."
186
msgstr ""
187
188
- #: includes/pages/button.php:54
189
- msgid "Icon"
190
msgstr ""
191
192
- #: includes/pages/button.php:57
193
- msgid "Add Icon"
194
msgstr ""
195
196
- #: includes/pages/button.php:67
197
- msgid "Message that will automatically appear in the text field of a chat."
198
msgstr ""
199
200
- #: includes/pages/button.php:71
201
- msgid "Discreet link"
202
msgstr ""
203
204
#: includes/pages/button.php:74
205
- msgid "Show developer link"
206
msgstr ""
207
208
- #: includes/pages/button.php:75
209
- msgid "Hide developer link"
210
msgstr ""
211
212
- #: includes/pages/button.php:77
213
- msgid ""
214
- "Leave a discrete link to developer to help and keep new updates and support."
215
msgstr ""
216
217
#: includes/pages/colors.php:7
@@ -280,94 +293,96 @@ msgstr ""
280
msgid "Archive"
281
msgstr ""
282
283
- #: includes/pages/purchase.php:5 includes/settings.php:25
284
#: includes/settings.php:62
285
msgid "Premium"
286
msgstr ""
287
288
- #: includes/pages/purchase.php:7
289
msgid ""
290
- "Unlock the power of our premium WhatsApp Chat plugin wich allows you to "
291
- "include unlimited agent accounts with their names and labels inside the box "
292
- "to provide a direct contact to the different support areas of your site."
293
msgstr ""
294
295
- #: includes/pages/purchase.php:10
296
msgid "Purchase Now"
297
msgstr ""
298
299
- #: includes/pages/purchase.php:11
300
msgid "Get Support"
301
msgstr ""
302
303
- #: includes/pages/purchase.php:15
304
msgid "Multiple agents"
305
msgstr ""
306
307
- #: includes/pages/purchase.php:17
308
msgid ""
309
- "WhatsApp Chat allows you to include unlimited agent accounts with their "
310
- "names and labels inside the box to provide a direct contact to the different "
311
- "support areas of your site."
312
msgstr ""
313
314
- #: includes/pages/purchase.php:21
315
msgid "Customize colors"
316
msgstr ""
317
318
- #: includes/pages/purchase.php:23
319
msgid ""
320
- "Customize the colors to match site’s theme colors through the WordPress live "
321
"customizer interface."
322
msgstr ""
323
324
- #: includes/pages/purchase.php:27
325
msgid "Custom icons"
326
msgstr ""
327
328
- #: includes/pages/purchase.php:29
329
msgid ""
330
- "Our plugin allows you to select between more than fourty icons to include in "
331
"your Whatsapp button."
332
msgstr ""
333
334
- #: includes/pages/purchase.php:46
335
msgid "Chatbox interface"
336
msgstr ""
337
338
- #: includes/pages/purchase.php:48
339
msgid ""
340
"WhatsApp chat for WordPress allows you to include a chatbox for each agent "
341
"where your users can type their first message."
342
msgstr ""
343
344
- #: includes/pages/purchase.php:54
345
msgid "Custom agent message"
346
msgstr ""
347
348
- #: includes/pages/purchase.php:56
349
msgid ""
350
- "Allow you to set a custom message for each agent that will displayed on the "
351
- "chatbox."
352
msgstr ""
353
354
- #: includes/pages/purchase.php:60
355
msgid "Custom user message"
356
msgstr ""
357
358
- #: includes/pages/purchase.php:62
359
msgid ""
360
"You can choose the predefined user message that will be sent to the agent "
361
"phone number."
362
msgstr ""
363
364
- #: includes/pages/purchase.php:66
365
msgid "Type user message"
366
msgstr ""
367
368
- #: includes/pages/purchase.php:68
369
msgid ""
370
- "Allow your users to type their own messages before send it to the agent "
371
"phone number."
372
msgstr ""
373
@@ -383,9 +398,10 @@ msgid "Community"
383
msgstr ""
384
385
#: includes/pages/welcome.php:13
386
msgid ""
387
- "If you want to get in touch with other WhatsApp Chat users or be aware of "
388
- "our promotional discounts join our community now."
389
msgstr ""
390
391
#: includes/pages/welcome.php:15
@@ -397,10 +413,10 @@ msgid "Demo"
397
msgstr ""
398
399
#: includes/pages/welcome.php:20
400
msgid ""
401
- "Thank you for choosing our WhatsApp Chat plugin for WordPress! Here you can "
402
- "see our demo and a description about the features we offer in the premium "
403
- "version."
404
msgstr ""
405
406
#: includes/pages/welcome.php:22
@@ -408,10 +424,10 @@ msgid "View demo"
408
msgstr ""
409
410
#: includes/pages/welcome.php:27
411
msgid ""
412
"If you have any doubt or you find any issue don't hesitate to contact us "
413
- "through our ticket system or join our community to meet other WhatsApp Chat "
414
- "users."
415
msgstr ""
416
417
#: includes/pages/welcome.php:29
@@ -438,16 +454,11 @@ msgstr ""
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"
445
- msgstr ""
446
-
447