=== IntentWay ===
Contributors: intentway
Tags: whatsapp, pre-contact, routing, leads, contact
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.3.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Route each visitor by intent before WhatsApp opens, using a lightweight two-choice pre-contact flow.

== Description ==

IntentWay is a WhatsApp pre-contact routing plugin for WordPress that routes visitors by intent before WhatsApp opens. Unlike a generic social-media or click-to-chat button, it adds a lightweight decision step so each conversation starts with clearer context.

Visitors can choose between two configurable contact intents before opening WhatsApp. Each choice can use its own label and WhatsApp message, so the conversation starts with clearer context. IntentWay can also append the current page title to the outgoing message, helping site owners identify where each contact originated.

This makes IntentWay useful for websites that need a small, focused routing layer before WhatsApp—for example, separating sales from support, rentals from shared tours, or one service inquiry from another—without requiring a help-desk platform or external IntentWay account.

Core features:

* Floating WhatsApp contact button.
* Optional two-choice pre-contact popup.
* Custom label and message for each choice.
* Automatic page-origin context.
* Desktop and mobile visibility controls.
* Button position and appearance controls, including button, text, and icon colors, corner radius, shadow, and animation.
* Translation-ready interface.

IntentWay does not require an external account and does not send visitor data to an IntentWay server.

When a visitor chooses to contact you, the plugin builds a WhatsApp `wa.me` URL in the visitor's browser. WhatsApp is a third-party service and its own terms and privacy policy apply.

IntentWay is an independent project and is not affiliated with, endorsed by, or sponsored by WhatsApp LLC or Meta Platforms, Inc.

== Installation ==

1. Upload the IntentWay plugin through Plugins > Add New > Upload Plugin.
2. Activate the plugin.
3. Go to Settings > IntentWay.
4. Enter your WhatsApp number including country code and area code.
5. Configure the button and optional pre-contact choices.
6. Save your settings and test on desktop and mobile.

== Screenshots ==

1. General settings for WhatsApp number, default message, and source-page context.
2. Pre-contact settings with two configurable visitor-intent choices.
3. Appearance and display controls for button colors, icon color, radius, shadow, animation, position, and device visibility.
4. Quick help and configuration guidance.
5. IntentWay pre-contact popup displayed on a live website before WhatsApp opens.

== Frequently Asked Questions ==

= Does IntentWay store visitor messages? =

No. IntentWay builds the WhatsApp link in the visitor's browser. It does not store visitor messages in WordPress.

= Does IntentWay send data to an IntentWay server? =

No. The Free plugin does not require an IntentWay account and does not send visitor data to an IntentWay server.

= Is WhatsApp required? =

Yes. The contact destination uses WhatsApp through the public `wa.me` link format.

= Can I disable the pre-contact popup? =

Yes. You can make the floating button open WhatsApp directly.

= Can I show where the visitor came from? =

Yes. IntentWay can append the current page title to the outgoing WhatsApp message.

== Privacy ==

IntentWay itself does not collect, store, or transmit visitor analytics to an IntentWay server.

The plugin may send the configured phone number, visitor-selected message, and optional page title to WhatsApp only when the visitor chooses to open WhatsApp. This happens through a `wa.me` URL initiated in the visitor's browser.

Site owners are responsible for their own privacy notices and for compliance with applicable laws and the terms of third-party services they use.

== Changelog ==

= 0.3.3 =
* Hardened the floating button and pre-contact popup against theme and third-party CSS overrides.
* Added independent floating-button icon color control.
* Added configurable button corner radius and shadow on/off control.
* Added None, Pulse, and Bounce button animations.
* Added Left, Center, and Right floating-button positions.
* Added live pre-contact preview while editing title, subtitle, and visitor choices.
* Added live floating-button preview for text, colors, icon color, radius, shadow, animation, and position.
* Reorganized General, Pre-contact, and Appearance previews so visual feedback stays closer to the fields being edited.
* Added an inline live preview beside the Button text configuration.
* Clarified the floating-button icon color setting.
* Improved live animation and shadow previews in the admin interface.
* Preserved existing Free settings, WhatsApp routing, page-origin context, and two-choice pre-contact behavior.

= 0.3.2 =
* Improved public plugin description for clearer WhatsApp and pre-contact positioning.
* Added screenshot captions to the public readme.
* Documentation and metadata refinements only; existing Free functionality preserved.

= 0.3.1 =
* Clarified IntentWay's distinct purpose as intent-based pre-contact routing rather than a generic social button.
* Removed bundled translation files for WordPress.org distribution; strings remain fully internationalized for translate.wordpress.org.
* Added Author URI matching the verified project domain.
* Existing Free functionality preserved.

= 0.3.0 =
* Fixed WordPress output escaping checks in admin form field names.
* Updated Tested up to header to WordPress 7.1.
* Prefixed uninstall variables for WordPress coding standards.
