WhatsApp me - Version 3.2.2

Version Description

  • NEW: Metabox can override global settings and leave it blank with {}.
  • NEW: Can use wame_open class on any element to open WAme or launch WhatsApp.
  • NEW: Added 'whatsappme_delete_all' filter, set true to clear all WAme data on plugin uninstall.
  • CHANGED Tested up to WordPress 5.4.
  • CHANGED updated FAQs GDPR info to include localStorage vars.
Download this release

Release Info

Developer creapuntome
Plugin Icon 128x128 WhatsApp me
Version 3.2.2
Comparing to
See all releases

Code changes from version 3.2.1 to 3.2.2

README.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: creapuntome, pacotole, davidlillo, monillo
3
  Donate link: https://www.paypal.me/creapuntome/
4
  Tags: whatsapp business, whatsapp, click to chat, button, whatsapp support chat, support, contact, directly message whatsapp, floating whatsapp, whatsapp chat
5
  Requires at least: 3.0.1
6
- Tested up to: 5.3
7
  Requires PHP: 5.3
8
- Stable tag: 3.2.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -78,16 +78,6 @@ Having many options is not an advantage, the configuration of WAme is so easy th
78
 
79
  == Frequently Asked Questions ==
80
 
81
- = Open WhatsApp Web on desktop =
82
-
83
- By default, WAme always opens api.whatsapp.com and try to launch the native application or if it doesn't exist redirects to WhatsApp Web. Depending on the browser and the operating system, sometimes it doesn't work.
84
-
85
- If you prefer always open WhatsApp Web on desktop you can add this code in your functions.php:
86
-
87
- `add_filter( 'whatsappme_whatsapp_web', '__return_true' );`
88
-
89
- **Note:** From version 2.3.0 you can mark an option to open WhatsApp Web.
90
-
91
  = I can't see the button or it's over / under another thing =
92
 
93
  You can change the position of the button so that nothing covers it by adding this CSS in *Appearance > Customize > Custom CSS*:
@@ -98,7 +88,12 @@ Greater values of z-index are left over, the default value is 400.
98
 
99
  = What about GDPR? =
100
 
101
- WAme don't save any personal data and don't use cookies.
 
 
 
 
 
102
 
103
  = Google Analytics integration =
104
 
@@ -112,6 +107,13 @@ If Universal Analtics (analytics.js) detected:
112
 
113
  `ga('send', 'event', 'WhatsAppMe', 'click', out_url })`
114
 
 
 
 
 
 
 
 
115
  = Google Tag Manager integration =
116
 
117
  WAme send an event (if GTM detected) when user click to launch WhatsApp:
@@ -136,6 +138,15 @@ There is a Javascript event that WAme triggers automatically before launch Whats
136
  });
137
  });`
138
 
 
 
 
 
 
 
 
 
 
139
  = Emojis are not saved =
140
 
141
  To save emojis the site database must use utf8mb4 encoding.
@@ -154,6 +165,13 @@ If your database enconding is utf8 you can use emojis converting them to html en
154
 
155
  == Changelog ==
156
 
 
 
 
 
 
 
 
157
  = 3.2.1 =
158
  * FIX svg animations on firefox.
159
  * FIX empty messages on WP < 4.6.
3
  Donate link: https://www.paypal.me/creapuntome/
4
  Tags: whatsapp business, whatsapp, click to chat, button, whatsapp support chat, support, contact, directly message whatsapp, floating whatsapp, whatsapp chat
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.4
7
  Requires PHP: 5.3
8
+ Stable tag: 3.2.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
78
 
79
  == Frequently Asked Questions ==
80
 
 
 
 
 
 
 
 
 
 
 
81
  = I can't see the button or it's over / under another thing =
82
 
83
  You can change the position of the button so that nothing covers it by adding this CSS in *Appearance > Customize > Custom CSS*:
88
 
89
  = What about GDPR? =
90
 
91
+ WAme don't use cookies.
92
+
93
+ WAme save two localStorage variables for proper operation:
94
+
95
+ - `whatsappme_visited` to know if is the first time on site or is a returning user.
96
+ - `whatsappme_hashes` if you set a Call To Action (CTA), when user launch WhatsApp or close Chat Window the CTA hashed is saved to prevent show automatically that CTA again.
97
 
98
  = Google Analytics integration =
99
 
107
 
108
  `ga('send', 'event', 'WhatsAppMe', 'click', out_url })`
109
 
110
+ If your tracker doesn't have the standard name 'ga' you can set your custom name with 'ga_tracker' setting:
111
+
112
+ `add_filter( 'whatsappme_get_settings', function( $settings ){
113
+ $settings['ga_tracker'] = 'my_custom_GA_name';
114
+ return $settings;
115
+ } );`
116
+
117
  = Google Tag Manager integration =
118
 
119
  WAme send an event (if GTM detected) when user click to launch WhatsApp:
138
  });
139
  });`
140
 
141
+ = WPML/Polylang change Telephone by language =
142
+
143
+ WAme general text settings can be translated with the strings translation of WPML/Polylang. You only need to save WAme settings to register strings and make them ready for translation. But "Telephone" is not translatable by default. If you need different phone numbers for every language add the following php code in your theme functions.php and save WAme settings.
144
+
145
+ `add_filter( 'whatsappme_settings_i18n', function( $settings ) {
146
+ $settings['telephone'] = 'Telephone';
147
+ return $settings;
148
+ } );`
149
+
150
  = Emojis are not saved =
151
 
152
  To save emojis the site database must use utf8mb4 encoding.
165
 
166
  == Changelog ==
167
 
168
+ = 3.2.2 =
169
+ * **NEW:** Metabox can override global settings and leave it blank with `{}`.
170
+ * **NEW:** Can use `wame_open` class on any element to open WAme or launch WhatsApp.
171
+ * **NEW:** Added 'whatsappme_delete_all' filter, set true to clear all WAme data on plugin uninstall.
172
+ * CHANGED Tested up to WordPress 5.4.
173
+ * CHANGED updated FAQs GDPR info to include localStorage vars.
174
+
175
  = 3.2.1 =
176
  * FIX svg animations on firefox.
177
  * FIX empty messages on WP < 4.6.
admin/class-whatsappme-admin.php CHANGED
@@ -505,7 +505,8 @@ class WhatsAppMe_Admin {
505
  break;
506
 
507
  case 'button_image':
508
- $image = intval( $value ) > 0 && is_array( WhatsAppMe_Util::thumb( $value, 116, 116 ) ) ? WhatsAppMe_Util::thumb( $value, 116, 116 )['url'] : false;
 
509
 
510
  $output = '<div id="whatsappme_button_image_wrapper">' .
511
  '<div id="whatsappme_button_image_holder" ' . ( $image ? "style=\"background-size:cover; background-image:url('$image');\"" : '' ) . '></div>' .
@@ -632,7 +633,7 @@ class WhatsAppMe_Admin {
632
  $screen = get_current_screen();
633
  $utm = '?utm_source=wpadmin&utm_medium=helptab&utm_campaign=v' . str_replace( '.', '_', $this->version );
634
 
635
- $screen->add_help_tab(
636
  array(
637
  'id' => 'support',
638
  'title' => __( 'Support and Help', 'creame-whatsapp-me' ),
@@ -663,26 +664,25 @@ class WhatsAppMe_Admin {
663
  '<a href="https://twitter.com/wamechat" rel="external" target="_blank">@wamechat</a>'
664
  ) . '</li>' .
665
  '</ul>',
666
- )
667
- );
668
-
669
- $screen->add_help_tab(
670
  array(
671
  'id' => 'styles-and-vars',
672
  'title' => __( 'Styles and Variables', 'creame-whatsapp-me' ),
673
- 'content' => apply_filters(
674
- 'whatsappme_styles_and_vars_help',
675
  '<p>' . __( 'You can use formatting styles like in WhatsApp: _<em>italic</em>_ *<strong>bold</strong>* ~<del>strikethrough</del>~.', 'creame-whatsapp-me' ) . '</p>' .
676
- '<p>' . __( 'You can use dynamic variables that will be replaced by the values of the page the user visits:', 'creame-whatsapp-me' ) .
677
- '<p>' .
678
- '<span><code>{SITE}</code> ➜ ' . get_bloginfo( 'name', 'display' ) . '</span>, ' .
679
- '<span><code>{URL}</code> ➜ ' . home_url( 'example' ) . '</span>, ' .
680
- '<span><code>{TITLE}</code> ➜ ' . __( 'Page Title', 'creame-whatsapp-me' ) . '</span>' .
681
- '</p>'
682
- ),
683
- )
684
  );
685
 
 
 
 
 
686
  }
687
 
688
  /**
@@ -840,8 +840,9 @@ class WhatsAppMe_Admin {
840
  <label for="whatsappme_message_send"><?php _e( 'Message', 'creame-whatsapp-me' ); ?></label><br>
841
  <textarea id="whatsappme_message_send" name="whatsappme_message_send" rows="2" placeholder="<?php echo $placeholders['message_send']; ?>" class="large-text"><?php echo $metadata['message_send']; ?></textarea>
842
  <?php if ( count( $metabox_vars ) ) : ?>
843
- <small><?php _e( 'You can use vars', 'creame-whatsapp-me' ); ?> <code>{<?php echo join( '}</code> <code>{', $metabox_vars ); ?>}</code></small>
844
  <?php endif; ?>
 
845
  </p>
846
  <p>
847
  <label><input type="radio" name="whatsappme_view" value="yes" <?php checked( 'yes', $metadata['view'] ); ?>>
505
  break;
506
 
507
  case 'button_image':
508
+ $thumb = intval( $value ) > 0 ? WhatsAppMe_Util::thumb( $value, 116, 116 ) : false;
509
+ $image = is_array( $thumb ) ? $thumb['url'] : false;
510
 
511
  $output = '<div id="whatsappme_button_image_wrapper">' .
512
  '<div id="whatsappme_button_image_holder" ' . ( $image ? "style=\"background-size:cover; background-image:url('$image');\"" : '' ) . '></div>' .
633
  $screen = get_current_screen();
634
  $utm = '?utm_source=wpadmin&utm_medium=helptab&utm_campaign=v' . str_replace( '.', '_', $this->version );
635
 
636
+ $help_tabs = array(
637
  array(
638
  'id' => 'support',
639
  'title' => __( 'Support and Help', 'creame-whatsapp-me' ),
664
  '<a href="https://twitter.com/wamechat" rel="external" target="_blank">@wamechat</a>'
665
  ) . '</li>' .
666
  '</ul>',
667
+ ),
 
 
 
668
  array(
669
  'id' => 'styles-and-vars',
670
  'title' => __( 'Styles and Variables', 'creame-whatsapp-me' ),
671
+ 'content' =>
 
672
  '<p>' . __( 'You can use formatting styles like in WhatsApp: _<em>italic</em>_ *<strong>bold</strong>* ~<del>strikethrough</del>~.', 'creame-whatsapp-me' ) . '</p>' .
673
+ '<p>' . __( 'You can use dynamic variables that will be replaced by the values of the page the user visits:', 'creame-whatsapp-me' ) .
674
+ '<p>' .
675
+ '<span><code>{SITE}</code> ➜ ' . get_bloginfo( 'name', 'display' ) . '</span>, ' .
676
+ '<span><code>{URL}</code> ➜ ' . home_url( 'example' ) . '</span>, ' .
677
+ '<span><code>{TITLE}</code> ➜ ' . __( 'Page Title', 'creame-whatsapp-me' ) . '</span>' .
678
+ '</p>',
679
+ ),
 
680
  );
681
 
682
+ foreach ( $help_tabs as $tab_data ) {
683
+ $screen->add_help_tab( apply_filters( 'whatsappme_help_tab_' . str_replace( '-', '_', $tab_data['id'] ), $tab_data ) );
684
+ }
685
+
686
  }
687
 
688
  /**
840
  <label for="whatsappme_message_send"><?php _e( 'Message', 'creame-whatsapp-me' ); ?></label><br>
841
  <textarea id="whatsappme_message_send" name="whatsappme_message_send" rows="2" placeholder="<?php echo $placeholders['message_send']; ?>" class="large-text"><?php echo $metadata['message_send']; ?></textarea>
842
  <?php if ( count( $metabox_vars ) ) : ?>
843
+ <small><?php _e( 'Can use vars', 'creame-whatsapp-me' ); ?> <code>{<?php echo join( '}</code> <code>{', $metabox_vars ); ?>}</code></small>
844
  <?php endif; ?>
845
+ <small><?php _e( 'to leave it blank use', 'creame-whatsapp-me' ); ?> <code>{}</code></small>
846
  </p>
847
  <p>
848
  <label><input type="radio" name="whatsappme_view" value="yes" <?php checked( 'yes', $metadata['view'] ); ?>>
admin/class-whatsappme-wooadmin.php CHANGED
@@ -32,7 +32,7 @@ class WhatsAppMe_WooAdmin {
32
  $loader->add_filter( 'whatsappme_section_output', $this, 'section_ouput', 10, 2 );
33
  $loader->add_filter( 'whatsappme_field_output', $this, 'field_ouput', 10, 3 );
34
  $loader->add_filter( 'whatsappme_advanced_inheritance', $this, 'advanced_inheritance' );
35
- $loader->add_filter( 'whatsappme_styles_and_vars_help', $this, 'help_vars' );
36
  $loader->add_filter( 'whatsappme_metabox_vars', $this, 'metabox_vars', 10, 2 );
37
  $loader->add_filter( 'whatsappme_metabox_placeholders', $this, 'metabox_placeholders', 10, 3 );
38
  }
@@ -263,25 +263,27 @@ class WhatsAppMe_WooAdmin {
263
  * Add WooCommerce variables info for help tab.
264
  *
265
  * @since 3.0.0
266
- * @param string $text current help tab content.
267
  * @return string
268
  */
269
- public function help_vars( $text ) {
270
 
271
- return $text .
272
  '<p> ' . __( '<strong>WooCommerce</strong>, in product pages you can also use:', 'creame-whatsapp-me' ) . '</p>' .
273
  '<p>' .
274
- '<span><code>{PRODUCT}</code> ➜ ' . __( 'Product Name', 'creame-whatsapp-me' ) . '</span>, ' .
275
- '<span><code>{SKU}</code> ➜ ABC98798</span>, ' .
276
- '<span><code>{PRICE}</code> ➜ ' . strip_tags( wc_price( 7.95 ) ) . '</span> ' .
277
  '</p>' .
278
  '<p> ' . __( 'For the <strong>Call to Action for Products on Sale</strong>, you can also use:', 'creame-whatsapp-me' ) . '</p>' .
279
  '<p>' .
280
- '<span><code>{REGULAR}</code> ➜ ' . strip_tags( wc_price( 9.95 ) ) . '</span>, ' .
281
- '<span><code>{PRICE}</code> ➜ ' . strip_tags( wc_price( 7.95 ) ) . '</span>, ' .
282
- '<span><code>{DISCOUNT}</code> ➜ -20%</span>' .
283
  '</p>';
284
 
 
 
285
  }
286
 
287
  /**
32
  $loader->add_filter( 'whatsappme_section_output', $this, 'section_ouput', 10, 2 );
33
  $loader->add_filter( 'whatsappme_field_output', $this, 'field_ouput', 10, 3 );
34
  $loader->add_filter( 'whatsappme_advanced_inheritance', $this, 'advanced_inheritance' );
35
+ $loader->add_filter( 'whatsappme_help_tab_styles_and_vars', $this, 'help_vars' );
36
  $loader->add_filter( 'whatsappme_metabox_vars', $this, 'metabox_vars', 10, 2 );
37
  $loader->add_filter( 'whatsappme_metabox_placeholders', $this, 'metabox_placeholders', 10, 3 );
38
  }
263
  * Add WooCommerce variables info for help tab.
264
  *
265
  * @since 3.0.0
266
+ * @param array $tab current help tab content.
267
  * @return string
268
  */
269
+ public function help_vars( $tab ) {
270
 
271
+ $tab['content'] .=
272
  '<p> ' . __( '<strong>WooCommerce</strong>, in product pages you can also use:', 'creame-whatsapp-me' ) . '</p>' .
273
  '<p>' .
274
+ '<span><code>{PRODUCT}</code> ➜ ' . __( 'Product Name', 'creame-whatsapp-me' ) . '</span>, ' .
275
+ '<span><code>{SKU}</code> ➜ ABC98798</span>, ' .
276
+ '<span><code>{PRICE}</code> ➜ ' . strip_tags( wc_price( 7.95 ) ) . '</span> ' .
277
  '</p>' .
278
  '<p> ' . __( 'For the <strong>Call to Action for Products on Sale</strong>, you can also use:', 'creame-whatsapp-me' ) . '</p>' .
279
  '<p>' .
280
+ '<span><code>{REGULAR}</code> ➜ ' . strip_tags( wc_price( 9.95 ) ) . '</span>, ' .
281
+ '<span><code>{PRICE}</code> ➜ ' . strip_tags( wc_price( 7.95 ) ) . '</span>, ' .
282
+ '<span><code>{DISCOUNT}</code> ➜ -20%</span>' .
283
  '</p>';
284
 
285
+ return $tab;
286
+
287
  }
288
 
289
  /**
languages/creame-whatsapp-me-fr_FR.mo ADDED
Binary file
languages/creame-whatsapp-me-fr_FR.po ADDED
@@ -0,0 +1,549 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WAme chat\n"
4
+ "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
5
+ "POT-Creation-Date: 2020-03-19 17:27+0100\n"
6
+ "PO-Revision-Date: 2020-03-19 17:30+0100\n"
7
+ "Last-Translator: Pacotole <pacotole@crea.me>\n"
8
+ "Language-Team: Creame <hola@crea.me>\n"
9
+ "Language: fr\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
14
+ "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;"
17
+ "esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
18
+ "_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
19
+ "X-Poedit-Basepath: ..\n"
20
+ "X-Generator: Poedit 1.8.7.1\n"
21
+ "X-Poedit-SearchPath-0: .\n"
22
+
23
+ #: admin/class-whatsappme-admin.php:99
24
+ msgid "General"
25
+ msgstr "Général"
26
+
27
+ #: admin/class-whatsappme-admin.php:100
28
+ msgid "Advanced"
29
+ msgstr "Avancé"
30
+
31
+ #: admin/class-whatsappme-admin.php:117 admin/class-whatsappme-admin.php:551
32
+ #: public/class-whatsappme-public.php:102
33
+ msgid "Open chat"
34
+ msgstr "Ouvrir chat"
35
+
36
+ #: admin/class-whatsappme-admin.php:240 admin/class-whatsappme-admin.php:832
37
+ msgid "Telephone"
38
+ msgstr "Téléphone"
39
+
40
+ #: admin/class-whatsappme-admin.php:241 admin/class-whatsappme-admin.php:840
41
+ msgid "Message"
42
+ msgstr "Message"
43
+
44
+ #: admin/class-whatsappme-admin.php:242 admin/class-whatsappme-admin.php:494
45
+ msgid "Mobile Only"
46
+ msgstr "Mobile seulement"
47
+
48
+ #: admin/class-whatsappme-admin.php:243 admin/class-whatsappme-admin.php:500
49
+ msgid "Position on Screen"
50
+ msgstr "Position sur l’écran"
51
+
52
+ #: admin/class-whatsappme-admin.php:244
53
+ msgid "Image"
54
+ msgstr "Image"
55
+
56
+ #: admin/class-whatsappme-admin.php:245
57
+ msgid "Tooltip"
58
+ msgstr "Info-bulle"
59
+
60
+ #: admin/class-whatsappme-admin.php:246
61
+ msgid "Button Delay"
62
+ msgstr "Délai de bouton"
63
+
64
+ #: admin/class-whatsappme-admin.php:247 admin/class-whatsappme-admin.php:531
65
+ msgid "WhatsApp Web"
66
+ msgstr "WhatsApp Web"
67
+
68
+ #: admin/class-whatsappme-admin.php:250 admin/class-whatsappme-admin.php:836
69
+ msgid "Call to Action"
70
+ msgstr "Appel à Action"
71
+
72
+ #: admin/class-whatsappme-admin.php:251
73
+ msgid "Start WhatsApp Button"
74
+ msgstr "Bouton de démarrage WhatsApp"
75
+
76
+ #: admin/class-whatsappme-admin.php:252
77
+ msgid "Chat Delay"
78
+ msgstr "Retard de chat"
79
+
80
+ #: admin/class-whatsappme-admin.php:253 admin/class-whatsappme-admin.php:561
81
+ msgid "Notification Balloon"
82
+ msgstr "Ballon de notification"
83
+
84
+ #: admin/class-whatsappme-admin.php:254 admin/class-whatsappme-admin.php:567
85
+ msgid "Dark Mode"
86
+ msgstr "Mode sombre"
87
+
88
+ #: admin/class-whatsappme-admin.php:263
89
+ msgid "Global"
90
+ msgstr "Global"
91
+
92
+ #: admin/class-whatsappme-admin.php:268
93
+ msgid "Front Page"
94
+ msgstr "Page d’accueil"
95
+
96
+ #: admin/class-whatsappme-admin.php:269
97
+ msgid "Blog Page"
98
+ msgstr "Page blog"
99
+
100
+ #: admin/class-whatsappme-admin.php:270
101
+ msgid "404 Page"
102
+ msgstr "Page 404"
103
+
104
+ #: admin/class-whatsappme-admin.php:271
105
+ msgid "Search Results"
106
+ msgstr "Résultats de la recherche"
107
+
108
+ #: admin/class-whatsappme-admin.php:272
109
+ msgid "Archives"
110
+ msgstr "Archives"
111
+
112
+ #: admin/class-whatsappme-admin.php:273
113
+ msgid "Date Archives"
114
+ msgstr "Archives de dates"
115
+
116
+ #: admin/class-whatsappme-admin.php:274
117
+ msgid "Author Archives"
118
+ msgstr "Archives de l'auteur"
119
+
120
+ #: admin/class-whatsappme-admin.php:275
121
+ msgid "Singular"
122
+ msgstr "Singulier"
123
+
124
+ #: admin/class-whatsappme-admin.php:276
125
+ msgid "Page"
126
+ msgstr "Page"
127
+
128
+ #: admin/class-whatsappme-admin.php:277
129
+ msgid "Post"
130
+ msgstr "Article"
131
+
132
+ #: admin/class-whatsappme-admin.php:376
133
+ msgid "Settings saved"
134
+ msgstr "Paramètres sauvegardés"
135
+
136
+ #: admin/class-whatsappme-admin.php:422
137
+ msgid "Button"
138
+ msgstr "Bouton"
139
+
140
+ #: admin/class-whatsappme-admin.php:423
141
+ msgid ""
142
+ "Set the contact number and where you want the WhatsApp button to be "
143
+ "displayed."
144
+ msgstr ""
145
+ "Définissez le numéro de contact et l'endroit où vous souhaitez que le bouton "
146
+ "WhatsApp s'affiche."
147
+
148
+ #: admin/class-whatsappme-admin.php:427
149
+ msgid "Chat Window"
150
+ msgstr "Fenêtre de conversation"
151
+
152
+ #: admin/class-whatsappme-admin.php:429
153
+ msgid ""
154
+ "If you define a \"Call to Action\" a window will be displayed simulating a "
155
+ "chat before launching WhatsApp."
156
+ msgstr ""
157
+ "Si vous définissez un \"Appel à l'action\", une fenêtre sera affichée "
158
+ "simulant un chat avant de lancer WhatsApp."
159
+
160
+ #: admin/class-whatsappme-admin.php:430
161
+ msgid ""
162
+ "You can introduce yourself, offer help or even make promotions to your users."
163
+ msgstr ""
164
+ "Vous pouvez vous présenter, proposer de l’aide ou même faire des promotions "
165
+ "à vos utilisateurs."
166
+
167
+ #: admin/class-whatsappme-admin.php:435
168
+ msgid "Advanced Visibility Settings"
169
+ msgstr "Paramètres de visibilité avancés"
170
+
171
+ #: admin/class-whatsappme-admin.php:436
172
+ msgid ""
173
+ "From here you can configure on which pages the WhatsApp button will be "
174
+ "visible."
175
+ msgstr ""
176
+ "Ici, vous pouvez configurer les pages sur lesquelles le bouton WhatsApp sera "
177
+ "visible."
178
+
179
+ #: admin/class-whatsappme-admin.php:437
180
+ msgid "Restore default visibility"
181
+ msgstr "Restaurer la visibilité par défaut"
182
+
183
+ #: admin/class-whatsappme-admin.php:445
184
+ msgid "Custom Post Types"
185
+ msgstr "Types d'Articles personnalisés"
186
+
187
+ #: admin/class-whatsappme-admin.php:471 admin/class-whatsappme-admin.php:607
188
+ #: admin/class-whatsappme-admin.php:849
189
+ msgid "Show"
190
+ msgstr "Afficher"
191
+
192
+ #: admin/class-whatsappme-admin.php:473 admin/class-whatsappme-admin.php:609
193
+ #: admin/class-whatsappme-admin.php:851
194
+ msgid "Hide"
195
+ msgstr "Masquer"
196
+
197
+ #: admin/class-whatsappme-admin.php:475
198
+ msgid "Inherit"
199
+ msgstr "Hérité"
200
+
201
+ #: admin/class-whatsappme-admin.php:485
202
+ msgid ""
203
+ "Contact phone number <strong>(the button will not be shown if it's empty)</"
204
+ "strong>"
205
+ msgstr ""
206
+ "Numéro de téléphone de contact <strong>(le bouton ne sera pas affiché s’il "
207
+ "est vide)</strong>"
208
+
209
+ #: admin/class-whatsappme-admin.php:487
210
+ #, php-format
211
+ msgid "Add unlimited numbers with %1$s or multiple contacts with %2$s"
212
+ msgstr ""
213
+ "Ajouter des nombres illimités de numéros avec des contacts de %1$s ou "
214
+ "plusieurs avec %2$s"
215
+
216
+ #: admin/class-whatsappme-admin.php:496
217
+ msgid "Only display the button on mobile devices"
218
+ msgstr "N’affichez le bouton que sur les appareils mobiles"
219
+
220
+ #: admin/class-whatsappme-admin.php:502
221
+ msgid "Left"
222
+ msgstr "Gauche"
223
+
224
+ #: admin/class-whatsappme-admin.php:504
225
+ msgid "Right"
226
+ msgstr "Droite"
227
+
228
+ #: admin/class-whatsappme-admin.php:514
229
+ msgid "Select an image"
230
+ msgstr "Sélectionner une image"
231
+
232
+ #: admin/class-whatsappme-admin.php:515
233
+ msgid "Select button image"
234
+ msgstr "Sélectionnez l’image du bouton"
235
+
236
+ #: admin/class-whatsappme-admin.php:515
237
+ msgid "Use image"
238
+ msgstr "Utiliser l’image"
239
+
240
+ #: admin/class-whatsappme-admin.php:516
241
+ msgid "Remove"
242
+ msgstr "Supprimer"
243
+
244
+ #: admin/class-whatsappme-admin.php:517
245
+ msgid "The image will alternate with WhatsApp logo"
246
+ msgstr "L’image alternera avec le logo WhatsApp"
247
+
248
+ #: admin/class-whatsappme-admin.php:521
249
+ msgid "💬 Need help?"
250
+ msgstr "💬 besoin d’aide?"
251
+
252
+ #: admin/class-whatsappme-admin.php:522
253
+ msgid "Short text shown next to WhatsApp button"
254
+ msgstr "Texte court affiché à côté du bouton WhatsApp"
255
+
256
+ #: admin/class-whatsappme-admin.php:526
257
+ msgid "seconds"
258
+ msgstr "secondes"
259
+
260
+ #: admin/class-whatsappme-admin.php:527
261
+ msgid "Time since the page is opened until the WhatsApp button is displayed"
262
+ msgstr ""
263
+ "Temps depuis que la page est ouverte jusqu’à ce que le bouton WhatsApp soit "
264
+ "affiché"
265
+
266
+ #: admin/class-whatsappme-admin.php:533
267
+ msgid "Open <em>WhatsApp Web</em> directly on desktop"
268
+ msgstr "Ouvrez <em>WhatsApp Web</em> directement sur le bureau"
269
+
270
+ #: admin/class-whatsappme-admin.php:537
271
+ msgid ""
272
+ "Hello 👋\n"
273
+ "Can we help you?"
274
+ msgstr ""
275
+ "Bonjour 👋\n"
276
+ "Comment peut-on vous aider ?"
277
+
278
+ #: admin/class-whatsappme-admin.php:538
279
+ msgid "Define a text to encourage users to contact by WhatsApp"
280
+ msgstr ""
281
+ "Définir un texte pour encourager les utilisateurs à contacter par WhatsApp"
282
+
283
+ #: admin/class-whatsappme-admin.php:540
284
+ #, php-format
285
+ msgid "Add links, images, videos and more with %s"
286
+ msgstr "Ajoutez des liens, des images, des vidéos et plus encore avec %s"
287
+
288
+ #: admin/class-whatsappme-admin.php:546
289
+ msgid "Hi *{SITE}*! I need more info about {TITLE} {URL}"
290
+ msgstr "Salut *{SITE}*! J'ai besoin de plus d'informations sur {TITLE} {URL}"
291
+
292
+ #: admin/class-whatsappme-admin.php:547
293
+ msgid "Predefined text for the first message the user will send you"
294
+ msgstr "Texte prédéfini pour le premier message que l’utilisateur vous enverra"
295
+
296
+ #: admin/class-whatsappme-admin.php:552
297
+ msgid "Text of the start WhatsApp button on Chat Window"
298
+ msgstr "Texte de démarrage du bouton WhatsApp sur la fenêtre du chat"
299
+
300
+ #: admin/class-whatsappme-admin.php:556
301
+ msgid "seconds (0 disabled)"
302
+ msgstr "secondes (0 désactivé)"
303
+
304
+ #: admin/class-whatsappme-admin.php:557
305
+ msgid "Chat Window is automatically displayed after delay"
306
+ msgstr "La fenêtre de chat est automatiquement affichée après le retard"
307
+
308
+ #: admin/class-whatsappme-admin.php:563
309
+ msgid ""
310
+ "Display a notification balloon instead of opening the Chat Window for a "
311
+ "\"less intrusive\" mode"
312
+ msgstr ""
313
+ "Afficher une bulle de notification à la place de la fenêtre de discussion "
314
+ "pour un mode \"moins intrusif\""
315
+
316
+ #: admin/class-whatsappme-admin.php:569
317
+ msgid "No"
318
+ msgstr "Non"
319
+
320
+ #: admin/class-whatsappme-admin.php:571
321
+ msgid "Yes"
322
+ msgstr "Oui"
323
+
324
+ #: admin/class-whatsappme-admin.php:573
325
+ msgid "Auto (detects device dark mode)"
326
+ msgstr "Auto (détecte le mode sombre de l’appareil)"
327
+
328
+ #: admin/class-whatsappme-admin.php:639
329
+ msgid "Support and Help"
330
+ msgstr "Soutien et Aide"
331
+
332
+ #: admin/class-whatsappme-admin.php:643
333
+ #, php-format
334
+ msgid ""
335
+ "If you need help, first review our <a href=\"%1$s\" rel=\"external\" target="
336
+ "\"_blank\">documentation</a> and if you don't find a solution check the <a "
337
+ "href=\"%2$s\" rel=\"external\" target=\"_blank\">free plugin support forum</"
338
+ "a> or buy our <a href=\"%3$s\" rel=\"external\" target=\"_blank\">premium "
339
+ "support</a>."
340
+ msgstr ""
341
+ "Si vous avez besoin d’aide, passez d’abord en revue notre <a href=\"%1$s\" "
342
+ "rel=\"external\" target=\"_blank\">documentation</a> et si vous ne trouvez "
343
+ "pas de solution, vérifiez le <a href=\"%2$s\" rel=\"external\" target="
344
+ "\"_blank\">forum de support plugin gratuit</a> ou achetez notre support <a "
345
+ "href=\"%3$s\" rel=\"external\" target=\"_blank\">premium.</a>"
346
+
347
+ #: admin/class-whatsappme-admin.php:652
348
+ msgid "If you like WAme 😍"
349
+ msgstr "Si vous aimez WAme 😍"
350
+
351
+ #: admin/class-whatsappme-admin.php:655
352
+ #, php-format
353
+ msgid "Please leave us a %s rating. We'll thank you."
354
+ msgstr "Merci de nous laisser une note de %s. Nous vous remercierons."
355
+
356
+ #: admin/class-whatsappme-admin.php:659
357
+ #, php-format
358
+ msgid "Subscribe to our newsletter and visit our blog at %s."
359
+ msgstr "Abonnez-vous à notre newsletter et visitez notre blog à %s."
360
+
361
+ #: admin/class-whatsappme-admin.php:663
362
+ #, php-format
363
+ msgid "Follow %s on twitter."
364
+ msgstr "Suivez %s sur twitter."
365
+
366
+ #: admin/class-whatsappme-admin.php:670
367
+ msgid "Styles and Variables"
368
+ msgstr "Styles et variables"
369
+
370
+ #: admin/class-whatsappme-admin.php:672
371
+ msgid ""
372
+ "You can use formatting styles like in WhatsApp: _<em>italic</em>_ "
373
+ "*<strong>bold</strong>* ~<del>strikethrough</del>~."
374
+ msgstr ""
375
+ "Vous pouvez utiliser des styles de mise en forme comme dans WhatsApp :"
376
+ "_<em>italic</em>_ *<strong>bold</strong>* ~<del>strikethrough</del>~."
377
+
378
+ #: admin/class-whatsappme-admin.php:673
379
+ msgid ""
380
+ "You can use dynamic variables that will be replaced by the values of the "
381
+ "page the user visits:"
382
+ msgstr ""
383
+ "Vous pouvez utiliser des variables dynamiques qui seront remplacées par les "
384
+ "valeurs de la page que l’utilisateur visite :"
385
+
386
+ #: admin/class-whatsappme-admin.php:677
387
+ msgid "Page Title"
388
+ msgstr "Titre de la page"
389
+
390
+ #: admin/class-whatsappme-admin.php:697
391
+ msgid "Settings"
392
+ msgstr "Réglages"
393
+
394
+ #: admin/class-whatsappme-admin.php:766
395
+ msgid "WAme chat"
396
+ msgstr "WAme chat"
397
+
398
+ #: admin/class-whatsappme-admin.php:843
399
+ msgid "Can use vars"
400
+ msgstr "Peut utiliser vars"
401
+
402
+ #: admin/class-whatsappme-admin.php:845
403
+ msgid "to leave it blank use"
404
+ msgstr "pour le laisser vide utiliser"
405
+
406
+ #: admin/class-whatsappme-admin.php:853
407
+ msgid "Default visibility"
408
+ msgstr "Visibilité par défaut"
409
+
410
+ #: admin/class-whatsappme-admin.php:912
411
+ msgid "You can use vars"
412
+ msgstr "Vous pouvez utiliser vars"
413
+
414
+ #: admin/class-whatsappme-admin.php:913
415
+ msgid "Show Help"
416
+ msgstr "Afficher Aide"
417
+
418
+ #: admin/class-whatsappme-wooadmin.php:128
419
+ msgid "Shop"
420
+ msgstr "Boutique"
421
+
422
+ #: admin/class-whatsappme-wooadmin.php:129
423
+ msgid "Product Page"
424
+ msgstr "Page de produit"
425
+
426
+ #: admin/class-whatsappme-wooadmin.php:130
427
+ msgid "Cart"
428
+ msgstr "Panier"
429
+
430
+ #: admin/class-whatsappme-wooadmin.php:131
431
+ msgid "Checkout"
432
+ msgstr "Validation de la commande"
433
+
434
+ #: admin/class-whatsappme-wooadmin.php:132
435
+ msgid "My Account"
436
+ msgstr "Mon compte"
437
+
438
+ #: admin/class-whatsappme-wooadmin.php:148
439
+ msgid "Call to Action for Products"
440
+ msgstr "Appel à l’action pour les produits"
441
+
442
+ #: admin/class-whatsappme-wooadmin.php:149
443
+ msgid "Call to Action for Products on Sale"
444
+ msgstr "Appel à l’action pour les produits en vente"
445
+
446
+ #: admin/class-whatsappme-wooadmin.php:150
447
+ msgid "Message for Products"
448
+ msgstr "Message pour les produits"
449
+
450
+ #: admin/class-whatsappme-wooadmin.php:192
451
+ msgid "WooCommerce"
452
+ msgstr "WooCommerce"
453
+
454
+ #: admin/class-whatsappme-wooadmin.php:196
455
+ msgid "Product Chat Window"
456
+ msgstr "Fenêtre de chat de produit"
457
+
458
+ #: admin/class-whatsappme-wooadmin.php:198
459
+ msgid ""
460
+ "You can define other different texts for the Chat Window on the product "
461
+ "pages."
462
+ msgstr ""
463
+ "Vous pouvez définir d’autres textes différents pour la fenêtre de chat sur "
464
+ "les pages de produits."
465
+
466
+ #: admin/class-whatsappme-wooadmin.php:222
467
+ msgid ""
468
+ "This *{PRODUCT}* can be yours for only *{PRICE}*!\n"
469
+ "If you have any questions, ask us."
470
+ msgstr ""
471
+ "Ce *{PRODUCT}* peut être le vôtre pour seulement*{PRICE}*!\n"
472
+ "Si vous avez des questions, posez-nous."
473
+
474
+ #: admin/class-whatsappme-wooadmin.php:224
475
+ msgid "Define a text for your products to encourage customers to contact"
476
+ msgstr ""
477
+ "Définissez un texte pour vos produits afin d’encourager les clients à "
478
+ "contacter"
479
+
480
+ #: admin/class-whatsappme-wooadmin.php:229
481
+ msgid ""
482
+ "Save {DISCOUNT}! This *{PRODUCT}* can be yours for only ~{REGULAR}~ *{PRICE}"
483
+ "*.\n"
484
+ "If you have any questions, ask us."
485
+ msgstr ""
486
+ "Enregistrer {DISCOUNT}! Ce *{PRODUCT}* peut être le vôtre pour seulement "
487
+ "~{REGULAR}~ *{PRICE}*.\n"
488
+ "Si vous avez des questions, posez-nous."
489
+
490
+ #: admin/class-whatsappme-wooadmin.php:231
491
+ msgid ""
492
+ "Define a text for your products on sale to encourage customers to contact"
493
+ msgstr ""
494
+ "Définissez un texte pour vos produits en vente afin d’encourager les clients "
495
+ "à contacter"
496
+
497
+ #: admin/class-whatsappme-wooadmin.php:236
498
+ msgid ""
499
+ "*Hi {SITE}!*\n"
500
+ "I have a question about *{PRODUCT} ({SKU})*"
501
+ msgstr ""
502
+ "*Salut {SITE}!*\n"
503
+ "J'ai une question au sujet de *{PRODUCT} ({SKU})*"
504
+
505
+ #: admin/class-whatsappme-wooadmin.php:237
506
+ msgid "Predefined text for the first message the client will send you"
507
+ msgstr "Texte prédéfini pour le premier message que le client vous enverra"
508
+
509
+ #: admin/class-whatsappme-wooadmin.php:272
510
+ msgid "<strong>WooCommerce</strong>, in product pages you can also use:"
511
+ msgstr ""
512
+ "<strong>WooCommerce</strong>, dans les pages de produits, vous pouvez "
513
+ "également utiliser:"
514
+
515
+ #: admin/class-whatsappme-wooadmin.php:274
516
+ msgid "Product Name"
517
+ msgstr "Nom du produit"
518
+
519
+ #: admin/class-whatsappme-wooadmin.php:278
520
+ msgid ""
521
+ "For the <strong>Call to Action for Products on Sale</strong>, you can also "
522
+ "use:"
523
+ msgstr ""
524
+ "Pour <strong>l’appel à l’action pour les produits en vente</strong>, vous "
525
+ "pouvez également utiliser:"
526
+
527
+ #. Name of the plugin
528
+ msgid "VVAme chat"
529
+ msgstr "VVAme chat"
530
+
531
+ #. Description of the plugin
532
+ msgid ""
533
+ "Connects a WordPress chat with WhatsApp. The best solution for marketing and "
534
+ "support. Stop losing customers and increase your sales."
535
+ msgstr ""
536
+ "Connecte un chat WordPress avec WhatsApp. La meilleure solution pour le "
537
+ "marketing et le support. Ne perdez plus de clients et augmentez vos ventes."
538
+
539
+ #. URI of the plugin
540
+ msgid "https://wame.chat"
541
+ msgstr "https://wame.chat"
542
+
543
+ #. Author of the plugin
544
+ msgid "Creame"
545
+ msgstr "Creame"
546
+
547
+ #. Author URI of the plugin
548
+ msgid "https://crea.me"
549
+ msgstr "https://crea.me"
languages/creame-whatsapp-me.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WAme chat\n"
5
- "POT-Creation-Date: 2020-01-29 15:20+0100\n"
6
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
7
  "Last-Translator: Your Name <you@example.com>\n"
8
  "Language-Team: Creame <hola@crea.me>\n"
@@ -15,8 +15,7 @@ msgstr ""
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;"
17
  "esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
18
- "_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,"
19
- "_nc:4c,1,2\n"
20
  "X-Poedit-Basepath: ..\n"
21
  "X-Generator: Poedit 1.8.7.1\n"
22
  "X-Poedit-SearchPath-0: .\n"
@@ -29,16 +28,16 @@ msgstr ""
29
  msgid "Advanced"
30
  msgstr ""
31
 
32
- #: admin/class-whatsappme-admin.php:117 admin/class-whatsappme-admin.php:550
33
  #: public/class-whatsappme-public.php:102
34
  msgid "Open chat"
35
  msgstr ""
36
 
37
- #: admin/class-whatsappme-admin.php:240 admin/class-whatsappme-admin.php:831
38
  msgid "Telephone"
39
  msgstr ""
40
 
41
- #: admin/class-whatsappme-admin.php:241 admin/class-whatsappme-admin.php:839
42
  msgid "Message"
43
  msgstr ""
44
 
@@ -62,11 +61,11 @@ msgstr ""
62
  msgid "Button Delay"
63
  msgstr ""
64
 
65
- #: admin/class-whatsappme-admin.php:247 admin/class-whatsappme-admin.php:530
66
  msgid "WhatsApp Web"
67
  msgstr ""
68
 
69
- #: admin/class-whatsappme-admin.php:250 admin/class-whatsappme-admin.php:835
70
  msgid "Call to Action"
71
  msgstr ""
72
 
@@ -78,11 +77,11 @@ msgstr ""
78
  msgid "Chat Delay"
79
  msgstr ""
80
 
81
- #: admin/class-whatsappme-admin.php:253 admin/class-whatsappme-admin.php:560
82
  msgid "Notification Balloon"
83
  msgstr ""
84
 
85
- #: admin/class-whatsappme-admin.php:254 admin/class-whatsappme-admin.php:566
86
  msgid "Dark Mode"
87
  msgstr ""
88
 
@@ -156,8 +155,7 @@ msgstr ""
156
 
157
  #: admin/class-whatsappme-admin.php:430
158
  msgid ""
159
- "You can introduce yourself, offer help or even make promotions to your "
160
- "users."
161
  msgstr ""
162
 
163
  #: admin/class-whatsappme-admin.php:435
@@ -178,13 +176,13 @@ msgstr ""
178
  msgid "Custom Post Types"
179
  msgstr ""
180
 
181
- #: admin/class-whatsappme-admin.php:471 admin/class-whatsappme-admin.php:606
182
- #: admin/class-whatsappme-admin.php:847
183
  msgid "Show"
184
  msgstr ""
185
 
186
- #: admin/class-whatsappme-admin.php:473 admin/class-whatsappme-admin.php:608
187
- #: admin/class-whatsappme-admin.php:849
188
  msgid "Hide"
189
  msgstr ""
190
 
@@ -215,149 +213,149 @@ msgstr ""
215
  msgid "Right"
216
  msgstr ""
217
 
218
- #: admin/class-whatsappme-admin.php:513
219
  msgid "Select an image"
220
  msgstr ""
221
 
222
- #: admin/class-whatsappme-admin.php:514
223
  msgid "Select button image"
224
  msgstr ""
225
 
226
- #: admin/class-whatsappme-admin.php:514
227
  msgid "Use image"
228
  msgstr ""
229
 
230
- #: admin/class-whatsappme-admin.php:515
231
  msgid "Remove"
232
  msgstr ""
233
 
234
- #: admin/class-whatsappme-admin.php:516
235
  msgid "The image will alternate with WhatsApp logo"
236
  msgstr ""
237
 
238
- #: admin/class-whatsappme-admin.php:520
239
  msgid "💬 Need help?"
240
  msgstr ""
241
 
242
- #: admin/class-whatsappme-admin.php:521
243
  msgid "Short text shown next to WhatsApp button"
244
  msgstr ""
245
 
246
- #: admin/class-whatsappme-admin.php:525
247
  msgid "seconds"
248
  msgstr ""
249
 
250
- #: admin/class-whatsappme-admin.php:526
251
  msgid "Time since the page is opened until the WhatsApp button is displayed"
252
  msgstr ""
253
 
254
- #: admin/class-whatsappme-admin.php:532
255
  msgid "Open <em>WhatsApp Web</em> directly on desktop"
256
  msgstr ""
257
 
258
- #: admin/class-whatsappme-admin.php:536
259
  msgid ""
260
  "Hello 👋\n"
261
  "Can we help you?"
262
  msgstr ""
263
 
264
- #: admin/class-whatsappme-admin.php:537
265
  msgid "Define a text to encourage users to contact by WhatsApp"
266
  msgstr ""
267
 
268
- #: admin/class-whatsappme-admin.php:539
269
  #, php-format
270
  msgid "Add links, images, videos and more with %s"
271
  msgstr ""
272
 
273
- #: admin/class-whatsappme-admin.php:545
274
  msgid "Hi *{SITE}*! I need more info about {TITLE} {URL}"
275
  msgstr ""
276
 
277
- #: admin/class-whatsappme-admin.php:546
278
  msgid "Predefined text for the first message the user will send you"
279
  msgstr ""
280
 
281
- #: admin/class-whatsappme-admin.php:551
282
  msgid "Text of the start WhatsApp button on Chat Window"
283
  msgstr ""
284
 
285
- #: admin/class-whatsappme-admin.php:555
286
  msgid "seconds (0 disabled)"
287
  msgstr ""
288
 
289
- #: admin/class-whatsappme-admin.php:556
290
  msgid "Chat Window is automatically displayed after delay"
291
  msgstr ""
292
 
293
- #: admin/class-whatsappme-admin.php:562
294
  msgid ""
295
  "Display a notification balloon instead of opening the Chat Window for a "
296
  "\"less intrusive\" mode"
297
  msgstr ""
298
 
299
- #: admin/class-whatsappme-admin.php:568
300
  msgid "No"
301
  msgstr ""
302
 
303
- #: admin/class-whatsappme-admin.php:570
304
  msgid "Yes"
305
  msgstr ""
306
 
307
- #: admin/class-whatsappme-admin.php:572
308
  msgid "Auto (detects device dark mode)"
309
  msgstr ""
310
 
311
- #: admin/class-whatsappme-admin.php:638
312
  msgid "Support and Help"
313
  msgstr ""
314
 
315
- #: admin/class-whatsappme-admin.php:642
316
  #, php-format
317
  msgid ""
318
- "If you need help, first review our <a href=\"%1$s\" rel=\"external\" "
319
- "target=\"_blank\">documentation</a> and if you don't find a solution check "
320
- "the <a href=\"%2$s\" rel=\"external\" target=\"_blank\">free plugin "
321
- "support forum</a> or buy our <a href=\"%3$s\" rel=\"external\" target="
322
- "\"_blank\">premium support</a>."
323
  msgstr ""
324
 
325
- #: admin/class-whatsappme-admin.php:651
326
  msgid "If you like WAme 😍"
327
  msgstr ""
328
 
329
- #: admin/class-whatsappme-admin.php:654
330
  #, php-format
331
  msgid "Please leave us a %s rating. We'll thank you."
332
  msgstr ""
333
 
334
- #: admin/class-whatsappme-admin.php:658
335
  #, php-format
336
  msgid "Subscribe to our newsletter and visit our blog at %s."
337
  msgstr ""
338
 
339
- #: admin/class-whatsappme-admin.php:662
340
  #, php-format
341
  msgid "Follow %s on twitter."
342
  msgstr ""
343
 
344
- #: admin/class-whatsappme-admin.php:672
345
  msgid "Styles and Variables"
346
  msgstr ""
347
 
348
- #: admin/class-whatsappme-admin.php:675
349
  msgid ""
350
  "You can use formatting styles like in WhatsApp: _<em>italic</em>_ "
351
  "*<strong>bold</strong>* ~<del>strikethrough</del>~."
352
  msgstr ""
353
 
354
- #: admin/class-whatsappme-admin.php:676
355
  msgid ""
356
  "You can use dynamic variables that will be replaced by the values of the "
357
  "page the user visits:"
358
  msgstr ""
359
 
360
- #: admin/class-whatsappme-admin.php:680
361
  msgid "Page Title"
362
  msgstr ""
363
 
@@ -369,15 +367,23 @@ msgstr ""
369
  msgid "WAme chat"
370
  msgstr ""
371
 
372
- #: admin/class-whatsappme-admin.php:842 admin/class-whatsappme-admin.php:910
373
- msgid "You can use vars"
374
  msgstr ""
375
 
376
- #: admin/class-whatsappme-admin.php:851
 
 
 
 
377
  msgid "Default visibility"
378
  msgstr ""
379
 
380
- #: admin/class-whatsappme-admin.php:911
 
 
 
 
381
  msgid "Show Help"
382
  msgstr ""
383
 
@@ -439,8 +445,8 @@ msgstr ""
439
 
440
  #: admin/class-whatsappme-wooadmin.php:229
441
  msgid ""
442
- "Save {DISCOUNT}! This *{PRODUCT}* can be yours for only ~{REGULAR}~ "
443
- "*{PRICE}*.\n"
444
  "If you have any questions, ask us."
445
  msgstr ""
446
 
@@ -472,3 +478,25 @@ msgid ""
472
  "For the <strong>Call to Action for Products on Sale</strong>, you can also "
473
  "use:"
474
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WAme chat\n"
5
+ "POT-Creation-Date: 2020-03-19 17:17+0100\n"
6
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
7
  "Last-Translator: Your Name <you@example.com>\n"
8
  "Language-Team: Creame <hola@crea.me>\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;"
17
  "esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
18
+ "_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
 
19
  "X-Poedit-Basepath: ..\n"
20
  "X-Generator: Poedit 1.8.7.1\n"
21
  "X-Poedit-SearchPath-0: .\n"
28
  msgid "Advanced"
29
  msgstr ""
30
 
31
+ #: admin/class-whatsappme-admin.php:117 admin/class-whatsappme-admin.php:551
32
  #: public/class-whatsappme-public.php:102
33
  msgid "Open chat"
34
  msgstr ""
35
 
36
+ #: admin/class-whatsappme-admin.php:240 admin/class-whatsappme-admin.php:832
37
  msgid "Telephone"
38
  msgstr ""
39
 
40
+ #: admin/class-whatsappme-admin.php:241 admin/class-whatsappme-admin.php:840
41
  msgid "Message"
42
  msgstr ""
43
 
61
  msgid "Button Delay"
62
  msgstr ""
63
 
64
+ #: admin/class-whatsappme-admin.php:247 admin/class-whatsappme-admin.php:531
65
  msgid "WhatsApp Web"
66
  msgstr ""
67
 
68
+ #: admin/class-whatsappme-admin.php:250 admin/class-whatsappme-admin.php:836
69
  msgid "Call to Action"
70
  msgstr ""
71
 
77
  msgid "Chat Delay"
78
  msgstr ""
79
 
80
+ #: admin/class-whatsappme-admin.php:253 admin/class-whatsappme-admin.php:561
81
  msgid "Notification Balloon"
82
  msgstr ""
83
 
84
+ #: admin/class-whatsappme-admin.php:254 admin/class-whatsappme-admin.php:567
85
  msgid "Dark Mode"
86
  msgstr ""
87
 
155
 
156
  #: admin/class-whatsappme-admin.php:430
157
  msgid ""
158
+ "You can introduce yourself, offer help or even make promotions to your users."
 
159
  msgstr ""
160
 
161
  #: admin/class-whatsappme-admin.php:435
176
  msgid "Custom Post Types"
177
  msgstr ""
178
 
179
+ #: admin/class-whatsappme-admin.php:471 admin/class-whatsappme-admin.php:607
180
+ #: admin/class-whatsappme-admin.php:849
181
  msgid "Show"
182
  msgstr ""
183
 
184
+ #: admin/class-whatsappme-admin.php:473 admin/class-whatsappme-admin.php:609
185
+ #: admin/class-whatsappme-admin.php:851
186
  msgid "Hide"
187
  msgstr ""
188
 
213
  msgid "Right"
214
  msgstr ""
215
 
216
+ #: admin/class-whatsappme-admin.php:514
217
  msgid "Select an image"
218
  msgstr ""
219
 
220
+ #: admin/class-whatsappme-admin.php:515
221
  msgid "Select button image"
222
  msgstr ""
223
 
224
+ #: admin/class-whatsappme-admin.php:515
225
  msgid "Use image"
226
  msgstr ""
227
 
228
+ #: admin/class-whatsappme-admin.php:516
229
  msgid "Remove"
230
  msgstr ""
231
 
232
+ #: admin/class-whatsappme-admin.php:517
233
  msgid "The image will alternate with WhatsApp logo"
234
  msgstr ""
235
 
236
+ #: admin/class-whatsappme-admin.php:521
237
  msgid "💬 Need help?"
238
  msgstr ""
239
 
240
+ #: admin/class-whatsappme-admin.php:522
241
  msgid "Short text shown next to WhatsApp button"
242
  msgstr ""
243
 
244
+ #: admin/class-whatsappme-admin.php:526
245
  msgid "seconds"
246
  msgstr ""
247
 
248
+ #: admin/class-whatsappme-admin.php:527
249
  msgid "Time since the page is opened until the WhatsApp button is displayed"
250
  msgstr ""
251
 
252
+ #: admin/class-whatsappme-admin.php:533
253
  msgid "Open <em>WhatsApp Web</em> directly on desktop"
254
  msgstr ""
255
 
256
+ #: admin/class-whatsappme-admin.php:537
257
  msgid ""
258
  "Hello 👋\n"
259
  "Can we help you?"
260
  msgstr ""
261
 
262
+ #: admin/class-whatsappme-admin.php:538
263
  msgid "Define a text to encourage users to contact by WhatsApp"
264
  msgstr ""
265
 
266
+ #: admin/class-whatsappme-admin.php:540
267
  #, php-format
268
  msgid "Add links, images, videos and more with %s"
269
  msgstr ""
270
 
271
+ #: admin/class-whatsappme-admin.php:546
272
  msgid "Hi *{SITE}*! I need more info about {TITLE} {URL}"
273
  msgstr ""
274
 
275
+ #: admin/class-whatsappme-admin.php:547
276
  msgid "Predefined text for the first message the user will send you"
277
  msgstr ""
278
 
279
+ #: admin/class-whatsappme-admin.php:552
280
  msgid "Text of the start WhatsApp button on Chat Window"
281
  msgstr ""
282
 
283
+ #: admin/class-whatsappme-admin.php:556
284
  msgid "seconds (0 disabled)"
285
  msgstr ""
286
 
287
+ #: admin/class-whatsappme-admin.php:557
288
  msgid "Chat Window is automatically displayed after delay"
289
  msgstr ""
290
 
291
+ #: admin/class-whatsappme-admin.php:563
292
  msgid ""
293
  "Display a notification balloon instead of opening the Chat Window for a "
294
  "\"less intrusive\" mode"
295
  msgstr ""
296
 
297
+ #: admin/class-whatsappme-admin.php:569
298
  msgid "No"
299
  msgstr ""
300
 
301
+ #: admin/class-whatsappme-admin.php:571
302
  msgid "Yes"
303
  msgstr ""
304
 
305
+ #: admin/class-whatsappme-admin.php:573
306
  msgid "Auto (detects device dark mode)"
307
  msgstr ""
308
 
309
+ #: admin/class-whatsappme-admin.php:639
310
  msgid "Support and Help"
311
  msgstr ""
312
 
313
+ #: admin/class-whatsappme-admin.php:643
314
  #, php-format
315
  msgid ""
316
+ "If you need help, first review our <a href=\"%1$s\" rel=\"external\" target="
317
+ "\"_blank\">documentation</a> and if you don't find a solution check the <a "
318
+ "href=\"%2$s\" rel=\"external\" target=\"_blank\">free plugin support forum</"
319
+ "a> or buy our <a href=\"%3$s\" rel=\"external\" target=\"_blank\">premium "
320
+ "support</a>."
321
  msgstr ""
322
 
323
+ #: admin/class-whatsappme-admin.php:652
324
  msgid "If you like WAme 😍"
325
  msgstr ""
326
 
327
+ #: admin/class-whatsappme-admin.php:655
328
  #, php-format
329
  msgid "Please leave us a %s rating. We'll thank you."
330
  msgstr ""
331
 
332
+ #: admin/class-whatsappme-admin.php:659
333
  #, php-format
334
  msgid "Subscribe to our newsletter and visit our blog at %s."
335
  msgstr ""
336
 
337
+ #: admin/class-whatsappme-admin.php:663
338
  #, php-format
339
  msgid "Follow %s on twitter."
340
  msgstr ""
341
 
342
+ #: admin/class-whatsappme-admin.php:670
343
  msgid "Styles and Variables"
344
  msgstr ""
345
 
346
+ #: admin/class-whatsappme-admin.php:672
347
  msgid ""
348
  "You can use formatting styles like in WhatsApp: _<em>italic</em>_ "
349
  "*<strong>bold</strong>* ~<del>strikethrough</del>~."
350
  msgstr ""
351
 
352
+ #: admin/class-whatsappme-admin.php:673
353
  msgid ""
354
  "You can use dynamic variables that will be replaced by the values of the "
355
  "page the user visits:"
356
  msgstr ""
357
 
358
+ #: admin/class-whatsappme-admin.php:677
359
  msgid "Page Title"
360
  msgstr ""
361
 
367
  msgid "WAme chat"
368
  msgstr ""
369
 
370
+ #: admin/class-whatsappme-admin.php:843
371
+ msgid "Can use vars"
372
  msgstr ""
373
 
374
+ #: admin/class-whatsappme-admin.php:845
375
+ msgid "to leave it blank use"
376
+ msgstr ""
377
+
378
+ #: admin/class-whatsappme-admin.php:853
379
  msgid "Default visibility"
380
  msgstr ""
381
 
382
+ #: admin/class-whatsappme-admin.php:912
383
+ msgid "You can use vars"
384
+ msgstr ""
385
+
386
+ #: admin/class-whatsappme-admin.php:913
387
  msgid "Show Help"
388
  msgstr ""
389
 
445
 
446
  #: admin/class-whatsappme-wooadmin.php:229
447
  msgid ""
448
+ "Save {DISCOUNT}! This *{PRODUCT}* can be yours for only ~{REGULAR}~ *{PRICE}"
449
+ "*.\n"
450
  "If you have any questions, ask us."
451
  msgstr ""
452
 
478
  "For the <strong>Call to Action for Products on Sale</strong>, you can also "
479
  "use:"
480
  msgstr ""
481
+
482
+ #. Name of the plugin
483
+ msgid "VVAme chat"
484
+ msgstr ""
485
+
486
+ #. Description of the plugin
487
+ msgid ""
488
+ "Connects a WordPress chat with WhatsApp. The best solution for marketing and "
489
+ "support. Stop losing customers and increase your sales."
490
+ msgstr ""
491
+
492
+ #. URI of the plugin
493
+ msgid "https://wame.chat"
494
+ msgstr ""
495
+
496
+ #. Author of the plugin
497
+ msgid "Creame"
498
+ msgstr ""
499
+
500
+ #. Author URI of the plugin
501
+ msgid "https://crea.me"
502
+ msgstr ""
public/class-whatsappme-public.php CHANGED
@@ -143,6 +143,10 @@ class WhatsAppMe_Public {
143
  }
144
 
145
  $settings = array_merge( $settings, $post_settings );
 
 
 
 
146
  }
147
 
148
  // Prepare settings
@@ -255,9 +259,10 @@ class WhatsAppMe_Public {
255
  if ( apply_filters( 'whatsappme_image_original', WhatsAppMe_Util::is_animated_gif( $img_path ) ) ) {
256
  $image = '<img src="' . wp_get_attachment_url( $this->settings['button_image'] ) . '" alt="">';
257
  } elseif ( is_array( WhatsAppMe_Util::thumb( $img_path, 58, 58 ) ) ) {
258
- $image = '<img src="' . WhatsAppMe_Util::thumb( $img_path, 58, 58 )['url'] . '" srcset="' .
259
- WhatsAppMe_Util::thumb( $img_path, 116, 116 )['url'] . ' 2x, ' .
260
- WhatsAppMe_Util::thumb( $img_path, 174, 174 )['url'] . ' 3x" alt="">';
 
261
  }
262
  }
263
 
143
  }
144
 
145
  $settings = array_merge( $settings, $post_settings );
146
+
147
+ // Allow override general settings with empty string with "{}"
148
+ $settings['message_text'] = preg_match( '/^\{\s*\}$/', $settings['message_text'] ) ? '' : $settings['message_text'];
149
+ $settings['message_send'] = preg_match( '/^\{\s*\}$/', $settings['message_send'] ) ? '' : $settings['message_send'];
150
  }
151
 
152
  // Prepare settings
259
  if ( apply_filters( 'whatsappme_image_original', WhatsAppMe_Util::is_animated_gif( $img_path ) ) ) {
260
  $image = '<img src="' . wp_get_attachment_url( $this->settings['button_image'] ) . '" alt="">';
261
  } elseif ( is_array( WhatsAppMe_Util::thumb( $img_path, 58, 58 ) ) ) {
262
+ $thumb = WhatsAppMe_Util::thumb( $img_path, 58, 58 );
263
+ $thumb2 = WhatsAppMe_Util::thumb( $img_path, 116, 116 );
264
+ $thumb3 = WhatsAppMe_Util::thumb( $img_path, 174, 174 );
265
+ $image = "<img src=\"{$thumb['url']}\" srcset=\"{$thumb2['url']} 2x, {$thumb3['url']} 3x\" alt=\"\">";
266
  }
267
  }
268
 
public/js/whatsappme.js CHANGED
@@ -23,31 +23,34 @@
23
 
24
  // Trigger Google Analytics event
25
  wame_public.send_event = function (link) {
26
- if (typeof dataLayer == 'object') {
27
- // Send Google Tag Manager custom event
28
- dataLayer.push({
29
- 'event': 'WhatsAppMe',
30
- 'eventAction': 'click',
31
- 'eventLabel': link
32
- });
33
- }
34
- if (typeof ga == 'function' && typeof ga.getAll == 'function') {
35
- // Send custom event (Universal Analtics - analytics.js)
36
- ga('set', 'transport', 'beacon');
37
- var trackers = ga.getAll();
38
  trackers.forEach(function (tracker) {
39
  tracker.send("event", 'WhatsAppMe', 'click', link);
40
  });
41
  } else if (typeof gtag == 'function') {
42
- // Send custom event (Global Site Tag - gtag.js)
43
  gtag('event', 'click', {
44
  'event_category': 'WhatsAppMe',
45
  'event_label': link,
46
  'transport_type': 'beacon'
47
  });
48
  }
 
 
 
 
 
 
 
 
 
 
 
49
  if (typeof fbq == 'function') {
50
- // Send Facebook Pixel custom event
51
  fbq('trackCustom', 'WhatsAppMe', { eventAction: 'click', eventLabel: link });
52
  }
53
  }
@@ -134,7 +137,7 @@
134
  var button_delay = wame_public.settings.button_delay * 1000;
135
  var chat_delay = wame_public.settings.message_delay * 1000;
136
  var has_cta = !!wame_public.settings.message_text;
137
- var timeoutID, timeoutCTA;
138
 
139
  // Stored values
140
  var messages_viewed = (wame_public.store.getItem('whatsappme_hashes') || '').split(',').filter(Boolean);
@@ -155,32 +158,7 @@
155
  wame_public.chatbox_hide();
156
  }
157
 
158
- if (!wame_public.settings.mobile_only || wame_public.is_mobile) {
159
- var classes = 'whatsappme--show';
160
- if (!is_viewed && (!has_cta || !chat_delay || wame_public.settings.message_badge || !is_second_visit)) {
161
- classes += ' whatsappme--tooltip';
162
- }
163
- // Show button (and tooltip)
164
- setTimeout(function () { wame_public.$wame.addClass(classes); }, button_delay);
165
-
166
- if (has_cta && !is_viewed && chat_delay) {
167
- if (wame_public.settings.message_badge) {
168
- // Show badge
169
- timeoutCTA = setTimeout(function () { wame_public.$badge.addClass('whatsappme__badge--in'); }, button_delay + chat_delay);
170
- } else if (is_second_visit) {
171
- // Show chatbox
172
- timeoutCTA = setTimeout(chatbox_show, button_delay + chat_delay);
173
- }
174
- }
175
- }
176
-
177
- if (has_cta && !wame_public.is_mobile) {
178
- $('.whatsappme__button', wame_public.$wame)
179
- .mouseenter(function () { if (!wame_public.chatbox) timeoutID = setTimeout(chatbox_show, 1500); })
180
- .mouseleave(function () { clearTimeout(timeoutID); });
181
- }
182
-
183
- $('.whatsappme__button', wame_public.$wame).click(function () {
184
  if (has_cta && !wame_public.chatbox) {
185
  chatbox_show();
186
  } else {
@@ -203,8 +181,34 @@
203
  console.error("WAme: the link doesn't seem safe, it must point to the current domain or whatsapp.com");
204
  }
205
  }
206
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
 
 
208
  $('.whatsappme__close', wame_public.$wame).click(chatbox_hide);
209
 
210
  // Only scroll WAme message box (no all body)
@@ -228,6 +232,12 @@
228
  });
229
  }
230
 
 
 
 
 
 
 
231
  $(document).trigger('whatsappme:start');
232
  }
233
 
23
 
24
  // Trigger Google Analytics event
25
  wame_public.send_event = function (link) {
26
+ var ga_tracker = window[wame_public.settings.ga_tracker || 'ga'];
27
+
28
+ // Send Google Analtics custom event (Universal Analtics - analytics.js) or (Global Site Tag - gtag.js)
29
+ if (typeof ga_tracker == 'function' && typeof ga_tracker.getAll == 'function') {
30
+ ga_tracker('set', 'transport', 'beacon');
31
+ var trackers = ga_tracker.getAll();
 
 
 
 
 
 
32
  trackers.forEach(function (tracker) {
33
  tracker.send("event", 'WhatsAppMe', 'click', link);
34
  });
35
  } else if (typeof gtag == 'function') {
 
36
  gtag('event', 'click', {
37
  'event_category': 'WhatsAppMe',
38
  'event_label': link,
39
  'transport_type': 'beacon'
40
  });
41
  }
42
+
43
+ // Send Google Tag Manager custom event
44
+ if (typeof dataLayer == 'object') {
45
+ dataLayer.push({
46
+ 'event': 'WhatsAppMe',
47
+ 'eventAction': 'click',
48
+ 'eventLabel': link
49
+ });
50
+ }
51
+
52
+ // Send Facebook Pixel custom event
53
  if (typeof fbq == 'function') {
 
54
  fbq('trackCustom', 'WhatsAppMe', { eventAction: 'click', eventLabel: link });
55
  }
56
  }
137
  var button_delay = wame_public.settings.button_delay * 1000;
138
  var chat_delay = wame_public.settings.message_delay * 1000;
139
  var has_cta = !!wame_public.settings.message_text;
140
+ var timeoutHover, timeoutCTA;
141
 
142
  // Stored values
143
  var messages_viewed = (wame_public.store.getItem('whatsappme_hashes') || '').split(',').filter(Boolean);
158
  wame_public.chatbox_hide();
159
  }
160
 
161
+ function wame_click() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  if (has_cta && !wame_public.chatbox) {
163
  chatbox_show();
164
  } else {
181
  console.error("WAme: the link doesn't seem safe, it must point to the current domain or whatsapp.com");
182
  }
183
  }
184
+ }
185
+
186
+ if (!wame_public.settings.mobile_only || wame_public.is_mobile) {
187
+ var classes = 'whatsappme--show';
188
+ if (!is_viewed && (!has_cta || !chat_delay || wame_public.settings.message_badge || !is_second_visit)) {
189
+ classes += ' whatsappme--tooltip';
190
+ }
191
+ // Show button (and tooltip)
192
+ setTimeout(function () { wame_public.$wame.addClass(classes); }, button_delay);
193
+
194
+ if (has_cta && !is_viewed && chat_delay) {
195
+ if (wame_public.settings.message_badge) {
196
+ // Show badge
197
+ timeoutCTA = setTimeout(function () { wame_public.$badge.addClass('whatsappme__badge--in'); }, button_delay + chat_delay);
198
+ } else if (is_second_visit) {
199
+ // Show chatbox
200
+ timeoutCTA = setTimeout(chatbox_show, button_delay + chat_delay);
201
+ }
202
+ }
203
+ }
204
+
205
+ if (has_cta && !wame_public.is_mobile) {
206
+ $('.whatsappme__button', wame_public.$wame)
207
+ .mouseenter(function () { if (!wame_public.chatbox) timeoutHover = setTimeout(chatbox_show, 1500); })
208
+ .mouseleave(function () { clearTimeout(timeoutHover); });
209
+ }
210
 
211
+ $('.whatsappme__button', wame_public.$wame).click(wame_click);
212
  $('.whatsappme__close', wame_public.$wame).click(chatbox_hide);
213
 
214
  // Only scroll WAme message box (no all body)
232
  });
233
  }
234
 
235
+ // Open WAme when click on nodes with class "wame_open"
236
+ $(document).on('click', '.wame_open', function (e) {
237
+ e.preventDefault();
238
+ if (!wame_public.chatbox) wame_click();
239
+ });
240
+
241
  $(document).trigger('whatsappme:start');
242
  }
243
 
public/js/whatsappme.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"use strict";Math.imul=Math.imul||function(e,t){var a=65535&e,i=65535&t;return a*i+((e>>>16&65535)*i+a*(t>>>16&65535)<<16>>>0)|0},t.wame_public=t.wame_public||{},wame_public=e.extend({$wame:null,$badge:null,settings:null,store:null,chatbox:!1,is_mobile:!1},wame_public),wame_public.send_event=function(e){("object"==typeof dataLayer&&dataLayer.push({event:"WhatsAppMe",eventAction:"click",eventLabel:e}),"function"==typeof ga&&"function"==typeof ga.getAll)?(ga("set","transport","beacon"),ga.getAll().forEach(function(t){t.send("event","WhatsAppMe","click",e)})):"function"==typeof gtag&&gtag("event","click",{event_category:"WhatsAppMe",event_label:e,transport_type:"beacon"});"function"==typeof fbq&&fbq("trackCustom","WhatsAppMe",{eventAction:"click",eventLabel:e})},wame_public.hash=function(e){for(var t=0,a=1;t<e.length;t++)a=Math.imul(a+e.charCodeAt(t)|0,2654435761);return(a^a>>>17)>>>0},wame_public.whatsapp_link=function(e,t,a){return((a=void 0!==a?a:wame_public.settings.whatsapp_web&&!wame_public.is_mobile)?"https://web.whatsapp.com/send":"https://api.whatsapp.com/send")+"?phone="+encodeURIComponent(e)+"&text="+encodeURIComponent(t||"")},wame_public.chatbox_show=function(){wame_public.$wame.addClass("whatsappme--chatbox"),wame_public.chatbox=!0,wame_public.settings.message_badge&&wame_public.$badge.hasClass("whatsappme__badge--in")&&wame_public.$badge.toggleClass("whatsappme__badge--in whatsappme__badge--out"),e(document).trigger("whatsappme:show")},wame_public.chatbox_hide=function(){wame_public.$wame.removeClass("whatsappme--chatbox whatsappme--tooltip"),wame_public.chatbox=!1,e(document).trigger("whatsappme:hide")},wame_public.save_hash=function(e){var t=(wame_public.store.getItem("whatsappme_hashes")||"").split(",").filter(Boolean);-1==t.indexOf(e)&&(t.push(e),wame_public.store.setItem("whatsappme_hashes",t.join(",")))},e(function(){wame_public.$wame=e(".whatsappme"),wame_public.$badge=wame_public.$wame.find(".whatsappme__badge"),wame_public.settings=wame_public.$wame.data("settings"),wame_public.is_mobile=!!navigator.userAgent.match(/Android|iPhone|BlackBerry|IEMobile|Opera Mini/i);try{localStorage.setItem("test",1),localStorage.removeItem("test"),wame_public.store=localStorage}catch(e){wame_public.store={_data:{},setItem:function(e,t){this._data[e]=String(t)},getItem:function(e){return this._data.hasOwnProperty(e)?this._data[e]:null}}}if(void 0===wame_public.settings)try{wame_public.settings=JSON.parse(wame_public.$wame.attr("data-settings"))}catch(e){wame_public.settings=void 0}wame_public.$wame.length&&wame_public.settings&&wame_public.settings.telephone&&function(){var a,i,s=1e3*wame_public.settings.button_delay,n=1e3*wame_public.settings.message_delay,p=!!wame_public.settings.message_text,o=(wame_public.store.getItem("whatsappme_hashes")||"").split(",").filter(Boolean),m="yes"==wame_public.store.getItem("whatsappme_visited"),l=p?wame_public.hash(wame_public.settings.message_text).toString():"no_cta",c=o.indexOf(l)>-1;function u(){clearTimeout(i),wame_public.chatbox_show()}function w(){wame_public.save_hash(l),wame_public.chatbox_hide()}if(wame_public.store.setItem("whatsappme_visited","yes"),!wame_public.settings.mobile_only||wame_public.is_mobile){var _="whatsappme--show";c||p&&n&&!wame_public.settings.message_badge&&m||(_+=" whatsappme--tooltip"),setTimeout(function(){wame_public.$wame.addClass(_)},s),p&&!c&&n&&(wame_public.settings.message_badge?i=setTimeout(function(){wame_public.$badge.addClass("whatsappme__badge--in")},s+n):m&&(i=setTimeout(u,s+n)))}p&&!wame_public.is_mobile&&e(".whatsappme__button",wame_public.$wame).mouseenter(function(){wame_public.chatbox||(a=setTimeout(u,1500))}).mouseleave(function(){clearTimeout(a)});if(e(".whatsappme__button",wame_public.$wame).click(function(){if(p&&!wame_public.chatbox)u();else{var a={link:wame_public.whatsapp_link(wame_public.settings.telephone,wame_public.settings.message_send)},i=new RegExp("^https?://(wa.me|(api|web|chat).whatsapp.com|"+location.hostname.replace(".",".")+")/.*","i");wame_public.chatbox&&w(),e(document).trigger("whatsappme:open",[a,wame_public.settings]),i.test(a.link)?(wame_public.send_event(a.link),t.open(a.link,"whatsappme")):console.error("WAme: the link doesn't seem safe, it must point to the current domain or whatsapp.com")}}),e(".whatsappme__close",wame_public.$wame).click(w),e(".whatsappme__box__scroll").on("mousewheel DOMMouseScroll",function(e){e.preventDefault();var t=e.originalEvent.wheelDelta||-e.originalEvent.detail;this.scrollTop+=30*(t<0?1:-1)}),wame_public.is_mobile){var b,h=t.innerHeight;e(document).on("focus blur","input, textarea",function(){clearTimeout(b),b=setTimeout(function(){wame_public.$wame.toggleClass("whatsappme--show",.7*h<t.innerHeight)},800)})}e(document).trigger("whatsappme:start")}()})}(jQuery,window);
1
+ !function(e,t){"use strict";Math.imul=Math.imul||function(e,t){var a=65535&e,i=65535&t;return a*i+((e>>>16&65535)*i+a*(t>>>16&65535)<<16>>>0)|0},t.wame_public=t.wame_public||{},wame_public=e.extend({$wame:null,$badge:null,settings:null,store:null,chatbox:!1,is_mobile:!1},wame_public),wame_public.send_event=function(e){var a=t[wame_public.settings.ga_tracker||"ga"];"function"==typeof a&&"function"==typeof a.getAll?(a("set","transport","beacon"),a.getAll().forEach(function(t){t.send("event","WhatsAppMe","click",e)})):"function"==typeof gtag&&gtag("event","click",{event_category:"WhatsAppMe",event_label:e,transport_type:"beacon"});"object"==typeof dataLayer&&dataLayer.push({event:"WhatsAppMe",eventAction:"click",eventLabel:e}),"function"==typeof fbq&&fbq("trackCustom","WhatsAppMe",{eventAction:"click",eventLabel:e})},wame_public.hash=function(e){for(var t=0,a=1;t<e.length;t++)a=Math.imul(a+e.charCodeAt(t)|0,2654435761);return(a^a>>>17)>>>0},wame_public.whatsapp_link=function(e,t,a){return((a=void 0!==a?a:wame_public.settings.whatsapp_web&&!wame_public.is_mobile)?"https://web.whatsapp.com/send":"https://api.whatsapp.com/send")+"?phone="+encodeURIComponent(e)+"&text="+encodeURIComponent(t||"")},wame_public.chatbox_show=function(){wame_public.$wame.addClass("whatsappme--chatbox"),wame_public.chatbox=!0,wame_public.settings.message_badge&&wame_public.$badge.hasClass("whatsappme__badge--in")&&wame_public.$badge.toggleClass("whatsappme__badge--in whatsappme__badge--out"),e(document).trigger("whatsappme:show")},wame_public.chatbox_hide=function(){wame_public.$wame.removeClass("whatsappme--chatbox whatsappme--tooltip"),wame_public.chatbox=!1,e(document).trigger("whatsappme:hide")},wame_public.save_hash=function(e){var t=(wame_public.store.getItem("whatsappme_hashes")||"").split(",").filter(Boolean);-1==t.indexOf(e)&&(t.push(e),wame_public.store.setItem("whatsappme_hashes",t.join(",")))},e(function(){wame_public.$wame=e(".whatsappme"),wame_public.$badge=wame_public.$wame.find(".whatsappme__badge"),wame_public.settings=wame_public.$wame.data("settings"),wame_public.is_mobile=!!navigator.userAgent.match(/Android|iPhone|BlackBerry|IEMobile|Opera Mini/i);try{localStorage.setItem("test",1),localStorage.removeItem("test"),wame_public.store=localStorage}catch(e){wame_public.store={_data:{},setItem:function(e,t){this._data[e]=String(t)},getItem:function(e){return this._data.hasOwnProperty(e)?this._data[e]:null}}}if(void 0===wame_public.settings)try{wame_public.settings=JSON.parse(wame_public.$wame.attr("data-settings"))}catch(e){wame_public.settings=void 0}wame_public.$wame.length&&wame_public.settings&&wame_public.settings.telephone&&function(){var a,i,s=1e3*wame_public.settings.button_delay,n=1e3*wame_public.settings.message_delay,p=!!wame_public.settings.message_text,c=(wame_public.store.getItem("whatsappme_hashes")||"").split(",").filter(Boolean),o="yes"==wame_public.store.getItem("whatsappme_visited"),m=p?wame_public.hash(wame_public.settings.message_text).toString():"no_cta",l=c.indexOf(m)>-1;function u(){clearTimeout(i),wame_public.chatbox_show()}function w(){wame_public.save_hash(m),wame_public.chatbox_hide()}function _(){if(p&&!wame_public.chatbox)u();else{var a={link:wame_public.whatsapp_link(wame_public.settings.telephone,wame_public.settings.message_send)},i=new RegExp("^https?://(wa.me|(api|web|chat).whatsapp.com|"+location.hostname.replace(".",".")+")/.*","i");wame_public.chatbox&&w(),e(document).trigger("whatsappme:open",[a,wame_public.settings]),i.test(a.link)?(wame_public.send_event(a.link),t.open(a.link,"whatsappme")):console.error("WAme: the link doesn't seem safe, it must point to the current domain or whatsapp.com")}}if(wame_public.store.setItem("whatsappme_visited","yes"),!wame_public.settings.mobile_only||wame_public.is_mobile){var b="whatsappme--show";l||p&&n&&!wame_public.settings.message_badge&&o||(b+=" whatsappme--tooltip"),setTimeout(function(){wame_public.$wame.addClass(b)},s),p&&!l&&n&&(wame_public.settings.message_badge?i=setTimeout(function(){wame_public.$badge.addClass("whatsappme__badge--in")},s+n):o&&(i=setTimeout(u,s+n)))}p&&!wame_public.is_mobile&&e(".whatsappme__button",wame_public.$wame).mouseenter(function(){wame_public.chatbox||(a=setTimeout(u,1500))}).mouseleave(function(){clearTimeout(a)});if(e(".whatsappme__button",wame_public.$wame).click(_),e(".whatsappme__close",wame_public.$wame).click(w),e(".whatsappme__box__scroll").on("mousewheel DOMMouseScroll",function(e){e.preventDefault();var t=e.originalEvent.wheelDelta||-e.originalEvent.detail;this.scrollTop+=30*(t<0?1:-1)}),wame_public.is_mobile){var h,r=t.innerHeight;e(document).on("focus blur","input, textarea",function(){clearTimeout(h),h=setTimeout(function(){wame_public.$wame.toggleClass("whatsappme--show",.7*r<t.innerHeight)},800)})}e(document).on("click",".wame_open",function(e){e.preventDefault(),wame_public.chatbox||_()}),e(document).trigger("whatsappme:start")}()})}(jQuery,window);
uninstall.php CHANGED
@@ -14,5 +14,18 @@ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
14
  exit;
15
  }
16
 
17
- // Delete option added by plugin
18
- delete_option( 'whatsappme' );
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  exit;
15
  }
16
 
17
+ /**
18
+ * By default don't delete plugin data.
19
+ *
20
+ * Use "add_filter( 'whatsappme_delete_all', '__return_true' );"
21
+ * before uninstall WAme to completely clear all plugin data.
22
+ */
23
+ if ( apply_filters( 'whatsappme_delete_all', false ) ) {
24
+ global $wpdb;
25
+
26
+ // Delete general option 'whatsappme' added by plugin
27
+ delete_option( 'whatsappme' );
28
+ // Delete post meta '_whatsappme' added by plugin
29
+ $wpdb->delete( $wpdb->prefix . 'postmeta', array( 'meta_key' => '_whatsappme' ) );
30
+
31
+ }
whatsappme.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin Name: VVAme chat
10
  * Plugin URI: https://wame.chat
11
  * Description: Connects a WordPress chat with WhatsApp. The best solution for marketing and support. Stop losing customers and increase your sales.
12
- * Version: 3.2.1
13
  * Author: Creame
14
  * Author URI: https://crea.me
15
  * License: GPL-2.0+
@@ -27,7 +27,7 @@ if ( ! defined( 'WPINC' ) ) {
27
  * Currently plugin version.
28
  * Start at version 1.0.0 and use SemVer - https://semver.org
29
  */
30
- define( 'WHATSAPPME_VERSION', '3.2.1' );
31
 
32
  /**
33
  * The core plugin class that is used to define internationalization,
9
  * Plugin Name: VVAme chat
10
  * Plugin URI: https://wame.chat
11
  * Description: Connects a WordPress chat with WhatsApp. The best solution for marketing and support. Stop losing customers and increase your sales.
12
+ * Version: 3.2.2
13
  * Author: Creame
14
  * Author URI: https://crea.me
15
  * License: GPL-2.0+
27
  * Currently plugin version.
28
  * Start at version 1.0.0 and use SemVer - https://semver.org
29
  */
30
+ define( 'WHATSAPPME_VERSION', '3.2.2' );
31
 
32
  /**
33
  * The core plugin class that is used to define internationalization,