diff --git a/README.md b/README.md index 0a22886..50e1373 100644 --- a/README.md +++ b/README.md @@ -32,4 +32,5 @@ Si dispones de Google Analytics se dispara un evento cuando el usuario lanza Wha ## Changelog +- **v 1.1.0** Added Custom CTA or hide on every post/page. - **v 1.0.0** First version diff --git a/README.txt b/README.txt index 978f14d..6cde6c0 100644 --- a/README.txt +++ b/README.txt @@ -1,10 +1,10 @@ -=== WhatsApp Me === -Contributors: creapuntome, pacotole +=== WhatsApp me === +Contributors: creapuntome, pacotole, davidlillo Tags: whatsapp, button, chat, support, contact Requires at least: 3.0.1 Tested up to: 4.9.2 Requires PHP: 5.3 -Stable tag: 1.0.0 +Stable tag: 1.1.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -12,35 +12,50 @@ Add support to your visitors directly with WhatsApp. == Description == -## EN -Include a direct link to your WhatsApp profile on the web to support your users. +### The perfect plugin to engage and retain customers. -Options: - - **Phone number** - - **Only on mobile**, on the desktop you will open WhatsApp Web (if available). - - **Call to Action**, write a message to encourage users to contact you through WhatsApp - - **Delay**, you can define a timeout to show the call-to-action message +#### Communication with your customers can be very easy -If you have Google Analytics, an event is triggered when the user launches WhatsApp. +With **WhatsApp me** you will get the visitors of your website to contact you through WhatsApp with a single click. -## ES -Incluye en la web un enlace directo a tu perfil de WhastApp para dar soporte a tus usuarios. +#### Why WhatsApp? +WhatsApp is used in more than 100 countries and supports more than 50 languages. Recent surveys say that 96% of users prefer to use a *messaging app* before calling by phone. If none of this has convinced you, think one thing, your grandmother knows how to use WhatsApp. Do not lose more customers and sales. Try **WhatsApp me**. -Opciones: +Options: +1. Phone: Enter the phone number. +2. Mobile only: Select if you want the button to be visible only on mobile devices. WhatsApp Web/App will open on the desktop (if available). +3. Call to action: Write a message to encourage users to contact you through WhatsApp. +4. Delay: You can define a timeout to display the call-to-action message. +5. If you have Google Analytics, an event is triggered when the user launches WhatsApp. +6. Can override call to action or hide button on every post, page or custom post. - - **Teléfono** - - **Solo en móviles**, en el escritorio se abrirá WhastApp Web (si está disponible) - - **Llamada a la acción**, escribe un mensaje para animar a los usuarios a contactar a través de WhatsApp - - **Retardo**, puedes definir un tiempo de espera para mostrar el mensaje de llamada a la acción +== Installation == -Si dispones de Google Analytics se dispara un evento cuando el usuario lanza WhatsApp. +1. Upload the entire `creame-whatsapp-me` folder to the `/wp-content/plugins/` directory. +1. Activate the plugin through the 'Plugins' menu in WordPress. -== Installation == +== Screenshots == -1. Upload the entire `whatsappme` folder to the `/wp-content/plugins/` directory. -2. Activate the plugin through the 'Plugins' menu in WordPress. +1. WhatsApp me settings. +2. Button on desktop. +3. Call to action on desktop. +4. Button and call to action on mobile. == Changelog == += 1.1.0 = +* Added posts/pages option to override CTA or hide button +* Don't enqueue assets if not show button +* Added filters for developers + += 1.0.3 = +* Readme texts + += 1.0.2 = +* Fix plugin version + += 1.0.1 = +* Fix text domain + = 1.0.0 = * First version diff --git a/admin/class-whatsappme-admin.php b/admin/class-whatsappme-admin.php index aacf78d..5dc7231 100644 --- a/admin/class-whatsappme-admin.php +++ b/admin/class-whatsappme-admin.php @@ -94,10 +94,10 @@ public function settings_init(){ add_settings_section( 'whatsappme_section', null, array( $this, 'section_text' ), 'whatsappme' ); $field_names = array( - 'telephone' => __( 'Telephone', 'whatsappme' ), - 'mobile_only' => __( 'Only mobile', 'whatsappme' ), - 'message_text' => __( 'Call to action', 'whatsappme' ), - 'message_delay' => __( 'Delay', 'whatsappme' ), + 'telephone' => __( 'Telephone', 'creame-whatsapp-me' ), + 'mobile_only' => __( 'Mobile only', 'creame-whatsapp-me' ), + 'message_text' => __( 'Call to action', 'creame-whatsapp-me' ), + 'message_delay' => __( 'Delay', 'creame-whatsapp-me' ), ); foreach ( $this->settings as $key => $value ) { @@ -106,7 +106,7 @@ public function settings_init(){ } /** - * Validate settings, claen and set defaults before save + * Validate settings, clean and set defaults before save * * @since 1.0.0 * @return array @@ -120,7 +120,7 @@ public function settings_validate($input) { $input['message_text'] = trim($input['message_text']); $input['message_delay'] = intval($input['message_delay']); - add_settings_error( 'whatsappme', 'settings_updated', __( 'Settings saved', 'whatsappme' ), 'updated' ); + add_settings_error( 'whatsappme', 'settings_updated', __( 'Settings saved', 'creame-whatsapp-me' ), 'updated' ); return $input; } @@ -132,7 +132,7 @@ public function settings_validate($input) { * @return void */ public function section_text() { - echo '
' . __( 'From here you can configure the behavior of the WhatsApp button on your site.', 'whatsappme' ) . '
'; + echo '' . __( 'From here you can configure the behavior of the WhatsApp button on your site.', 'creame-whatsapp-me' ) . '
'; } /** @@ -143,7 +143,7 @@ public function section_text() { */ public function field_telephone() { echo '' . - '' . __( "Contact phone number. The button will not be shown if it's empty.", 'whatsappme' ) . '
'; + '' . __( "Contact phone number. The button will not be shown if it's empty.", 'creame-whatsapp-me' ) . '
'; } /** @@ -154,7 +154,7 @@ public function field_telephone() { */ public function field_message_text() { echo '' . - '' . __( 'Optional text to invite the user to use the contact via WhatsApp. Leave empty to disable.', 'whatsappme' ) . '
'; + '' . __( 'Optional text to invite the user to use the contact via WhatsApp. Leave empty to disable.', 'creame-whatsapp-me' ) . '
'; } /** @@ -164,9 +164,8 @@ public function field_message_text() { * @return void */ public function field_message_delay() { - echo ' ' . __( 'milliseconds', 'whatsappme' ) . - '' . __( 'The Call to action will only be displayed once when the user exceeds the estimated delay on a page. ' . - 'It will also be displayed when the user stops the cursor over the WhatsApp button.', 'whatsappme' ) . '
'; + echo ' ' . __( 'milliseconds', 'creame-whatsapp-me' ) . + '' . __( 'The Call to action will only be displayed once when the user exceeds the estimated delay on a page. It will also be displayed when the user stops the cursor over the WhatsApp button.', 'creame-whatsapp-me' ) . '
'; } /** @@ -176,9 +175,9 @@ public function field_message_delay() { * @return void */ public function field_mobile_only() { - echo ''; } /** @@ -190,7 +189,7 @@ public function field_mobile_only() { */ public function add_menu() { - add_options_page('WhatsApp Me', 'WhatsApp Me', 'manage_options', 'whatsappme', array( $this, 'options_page' )); + add_options_page('WhatsApp me', 'WhatsApp me', 'manage_options', 'whatsappme', array( $this, 'options_page' )); } @@ -203,7 +202,7 @@ public function add_menu() { */ public function settings_link( $links ) { - $settings_link = '' . __( 'Settings', 'whatsappme' ) . ''; + $settings_link = '' . __( 'Settings', 'creame-whatsapp-me' ) . ''; array_unshift( $links, $settings_link ); return $links; @@ -219,7 +218,7 @@ public function settings_link( $links ) { function options_page() { ?>