=== Leadfire ===
Contributors: leadfire
Tags: lead generation, widget, chat widget, customer support, crm
Requires at least: 6.0
Requires PHP: 7.0
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tested up to: 7.0

Load the standard Leadfire website widget on WordPress using your Leadfire install token.

== Description ==

Leadfire adds the standard Leadfire website widget to your WordPress site.

The plugin has one setting: your Leadfire install token. Once saved, it loads the same Leadfire widget script used on non-WordPress websites.

There is no separate WordPress widget implementation, connection handshake, webhook endpoint, or local frontend widget bundle.

== Installation ==

1. Install and activate the Leadfire plugin.
2. Open **Leadfire** in WordPress admin.
3. Paste your Leadfire install token.
4. Click **Save token**.

The Leadfire widget will load automatically on the public website.

== Frequently Asked Questions ==

= Where do I get my install token? =

Copy the install token from your Leadfire account.

= Does the WordPress plugin use a different widget? =

No. Version 1.2.0 loads the same hosted Leadfire widget script used by standard website installations.

== Changelog ==

= 1.2.0 =
* Simplified the plugin to a single install-token setting.
* Loads the same hosted Leadfire widget script used by non-WordPress websites.
* Removed the legacy bundled WordPress widget implementation.
* Removed the application URL setting, connection handshake, webhook secret, REST sync endpoint, and local frontend widget assets.
* Existing saved Leadfire install tokens continue to work after upgrading.

= 1.1.0 =
* Confirmed compatibility metadata for WordPress 7.0.
* Matched the WordPress launcher behaviour with the embedded launcher prompts, including teaser, popup, and hesitation handling.
* Prevented the full widget auto-open from repeating after a visitor closes it during the same browsing session.

= 1.0.11 =
* Renamed plugin option and JavaScript configuration globals to use a consistent `leadfire` prefix.
* Removed the legacy configuration alias before WordPress.org listing.
* Reworked the frontend Shadow DOM styles into readable source and documented source/build instructions for WordPress.org review.
* Removed the unused minified Font Awesome CSS file from the distribution.

= 1.0.10 =
* Fixed bundled icon font loading after widget style isolation so Font Awesome icons render instead of square fallback glyphs.
* Passes the plugin asset URL from WordPress into the frontend script, avoiding fragile script URL detection when optimizers or defer/minify plugins are active.

= 1.0.9 =
* Fixed a missing JavaScript HTML escaping helper that could stop the widget from rendering.
* Isolated the frontend widget in a Shadow DOM root so theme/site button styles cannot override the launcher or close button.
* Moved the bundled icon font styles inside the isolated widget root instead of enqueueing global Font Awesome CSS.

= 1.0.8 =
* Bundled a local Font Awesome stylesheet and webfont for launcher and USP icons.
* Enqueued Font Awesome locally on the frontend.

= 1.0.7 =
* Removed the remote Font Awesome dependency.
* Moved admin CSS into a local enqueued stylesheet.

= 1.0.0 =
* Initial release.

== License ==

This plugin is licensed under the GNU General Public License v2.0 or later.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.
