=== Yanifend ===
Contributors: skippedaga
Tags: feedback, survey, questionnaire, widget, lottie
Requires at least: 5.2
Tested up to: 7.1
Requires PHP: 7.2
Stable tag: 0.21.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Engage visitors with animated, character-driven questionnaires that collect feedback through friendly Lottie characters.

== Description ==

Yanifend embeds an interactive questionnaire widget on your WordPress site. Visitors are greeted by an animated character that asks questions one at a time — ratings, multiple choice, or free text — and their answers flow into your Yanifend dashboard in real time.

**Features**

* Animated characters powered by Lottie — far more engaging than a plain form
* Multiple question types: star rating, single/multiple choice, text, email, phone
* Page Rules: route different pages to different characters by URL pattern (e.g. `/products/*`)
* Session continuity across page visits via cookies
* One-click connection test from the WordPress admin
* Built-in diagnostics panel
* Mobile-friendly, responsive card layout
* No tracking scripts — only the widget code from your Yanifend instance

**What you need**

A free Yanifend account to obtain an API key. Sign up at [yanifend.com](https://yanifend.com/).

**How it works**

Once activated, the plugin injects a small script into your site's front-end. The script loads the widget from your configured Yanifend instance using your API key, and handles all rendering and data collection. No data touches your WordPress database.

== Installation ==

1. Upload the plugin ZIP via **Plugins → Add New → Upload Plugin**, or unzip into `wp-content/plugins/yanifend/`.
2. Activate the plugin through the **Plugins** menu.
3. Go to **Settings → Yanifend** and paste your API key.
4. Click **Test Connection** to verify, then **Save**.
5. Visit any page of your site — the widget appears in the bottom-right corner.

== Frequently Asked Questions ==

= Where do I get an API key? =

Sign up at [yanifend.com](https://yanifend.com/), go to your dashboard, and copy the key from the plugin section.

= Does this plugin collect visitor data itself? =

No. The plugin only embeds a widget script. Visitor answers go directly from the visitor's browser to your Yanifend instance.

= Can I customize the widget appearance? =

Yes — style and template customization is handled in your Yanifend dashboard, not in WordPress. Changes propagate to every site running the plugin.

= Does it work on mobile? =

Yes. The widget is responsive and tested on modern mobile browsers.

= Does it slow down my site? =

The embedded script is loaded asynchronously after page content. Impact on page-load metrics is minimal.

== Screenshots ==

1. One widget, many personalities — pick an animated character personage for your site.
2. Admin settings page with one-click connection test.
3. Diagnostics panel showing plugin health and connectivity.

== External services ==

This plugin connects to the Yanifend API (by default `https://app.yanifend.com`) to load the widget script and transmit visitor answers. Data sent: visitor API key (yours), question answers, and an anonymous session ID. No personally identifiable information from your WordPress site is transmitted by the plugin itself. Yanifend Terms of Service: https://yanifend.com/terms. Privacy Policy: https://yanifend.com/privacy.

== Changelog ==

= 0.21.0 =
* Page Rules are available on every install — removed all plan-based feature gating from the plugin. The plugin is fully functional without any account tier checks.

= 0.9.0 =
* Page Rules polish: plan info caching and preservation of stored rules across settings saves.

= 0.8.0 =
* Page Rules: route different pages to different personages by URL pattern (e.g. `/products/*` → Cook, `/support/*` → Doctor). Pages that don't match any rule fall back to the Default API Key.
* Persistent "Yanifend" entry in the WP admin bar linking to the dashboard.

= 0.7.0 =
* Client-side widget script embed (no server-side proxy).
* Hardcoded production API host; only API Key is user-configurable.
* Admin diagnostics panel.

= 0.6.x =
* API response caching via WordPress transients.
* Early cURL-based integration (now replaced).

== Upgrade Notice ==

= 0.21.0 =
Page Rules now work on every install — no plan checks. Existing rules keep working unchanged.

= 0.8.0 =
Adds optional Page Rules to route different pages to different personages. Existing single-key setups keep working unchanged.

= 0.7.0 =
Adds a cleaner script-embed approach. Reconfirm your API key after upgrade.
