=== ИИ-conversion Connector by GLM-DEV ===
Contributors: glmdev
Donate link: https://ii-conversion.ru
Tags: popup, chatbot, conversion, lead generation, marketing
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.8
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect ИИ-conversion widgets (popups, top bars, chatbots) on WordPress with one script URL from your dashboard. Official connector by GLM-DEV.

== Description ==

This plugin connects your WordPress site to [ИИ-conversion](https://ii-conversion.ru) — a service for AI-generated popups, top bars, and chatbots.

After you create a widget in the ИИ-conversion dashboard, paste the script URL on the **ИИ-conversion Connector by GLM-DEV** admin page (left sidebar). The plugin enqueues the script in the site footer on all public pages.

**Features**

* One script URL per site — all widgets load from a single file
* No theme edits required
* Enable or pause widgets from the admin settings
* Script URL is validated (only `ii-conversion.ru/widgets/…` is accepted)

**Getting started**

1. Sign up at [ii-conversion.ru](https://ii-conversion.ru)
2. Create a popup, top bar, or chatbot
3. Copy the script URL on the **Install** step in your dashboard
4. Paste it on the **ИИ-conversion Connector by GLM-DEV** page in wp-admin and save

Support: [glm-dev@yandex.ru](mailto:glm-dev@yandex.ru) or the help section in your dashboard.

== External services ==

This plugin relies on the **ИИ-conversion** hosted service at [https://ii-conversion.ru](https://ii-conversion.ru).

**What the service is and when it is used**

The plugin loads a JavaScript file from `ii-conversion.ru` only after a site administrator saves a valid script URL and enables the widget in plugin settings. The script renders conversion widgets (popups, top bars, chatbots) configured in the ИИ-conversion dashboard.

**What data is sent and when**

When a visitor opens a page where the script is enabled, their browser downloads the widget script from `ii-conversion.ru` and may send interaction data (such as impressions, clicks, and form submissions) to ИИ-conversion servers as part of normal widget operation. No data is transmitted until you configure and enable the plugin.

**Terms and privacy**

* Service website: [https://ii-conversion.ru](https://ii-conversion.ru)
* Privacy policy: [https://ii-conversion.ru/privacy-policy](https://ii-conversion.ru/privacy-policy)
* Terms of use (public offer): [https://ii-conversion.ru/oferta](https://ii-conversion.ru/oferta)
* User agreement: [https://ii-conversion.ru/user-agreement](https://ii-conversion.ru/user-agreement)

== Installation ==

**From WordPress.org (recommended)**

1. In wp-admin go to **Plugins → Add New**
2. Search for **ИИ-conversion Connector by GLM-DEV**
3. Click **Install Now**, then **Activate**
4. Open **ИИ-conversion Connector by GLM-DEV** in the left admin menu and paste your script URL.

**Manual install**

1. **Delete** any existing `ii-conversion` or `ii-conversion-1` folders from `wp-content/plugins/` before uploading.
2. Upload the ZIP via **Plugins → Add New → Upload Plugin**, or copy the `ii-conversion` folder into `wp-content/plugins/`.
3. Activate the plugin through the **Plugins** menu.
4. Open **ИИ-conversion Connector by GLM-DEV** in the left admin menu and paste your script URL.

Do not deploy the plugin via IDE sync into a nested folder — use the ZIP upload only.

== Frequently Asked Questions ==

= Do I need an ИИ-conversion account? =

Yes. Register at [ii-conversion.ru](https://ii-conversion.ru), create a widget, and copy the script URL from the Install step in your dashboard.

= Where do I find the script URL? =

In your ИИ-conversion dashboard: open any widget editor, go to the **Publish / Install** step, or check the onboarding checklist on the Overview page.

= Does this plugin work with any theme? =

Yes. The script is added via `wp_enqueue_script` in the footer.

= Can I pause widgets without deleting the URL? =

Yes. Uncheck **Enable script on all public pages** in the plugin settings.

= Is the plugin free? =

The plugin is free. ИИ-conversion offers paid plans for the service itself — see [ii-conversion.ru/#pricing](https://ii-conversion.ru/#pricing).

= Can activation fail with "Plugin file not found"? =

Yes, if an old `ii-conversion` folder already exists and you upload the ZIP again — WordPress may extract to `ii-conversion-1/ii-conversion/`. Delete all `ii-conversion*` folders from `wp-content/plugins/`, then reinstall. Version 1.0.1+ shows a clear error if the folder path is wrong.

== Screenshots ==

1. Plugin settings — paste the script URL from your dashboard
2. ИИ-conversion dashboard — Install step with embed code

== Changelog ==

= 1.0.8 =
* Text domain aligned with WordPress.org slug (conversion-connector-by-glm-dev)
* Tested up to WordPress 7.0

= 1.0.7 =
* Renamed plugin to «ИИ-conversion Connector by GLM-DEV» for WordPress.org naming guidelines
* Short «ИИ-conversion» label in the admin sidebar menu

= 1.0.6 =
* Fixed SVG logo markup for valid XML parsing
* Improved mobile checkbox layout

= 1.0.5 =
* Custom checkbox UI with better mobile alignment

= 1.0.4 =
* Plugin moved to the main admin sidebar menu
* Brand logo mark in the header and menu icon

= 1.0.3 =
* Modern admin UI with brand styling, cards, and status indicator
* Copy URL button and live connection status

= 1.0.2 =
* Russian translations (ru_RU) for the settings screen
* Russian quick-start guide with links to the dashboard

= 1.0.1 =
* Detect invalid install paths (nested ii-conversion-1 folders, Windows backslashes)
* Clear error on activation with reinstall instructions
* Admin notice when the plugin folder path is incorrect

= 1.0.0 =
* Initial release
* Settings page for script URL and enable/disable toggle
* Footer script enqueue with URL validation

== Upgrade Notice ==

= 1.0.8 =
WordPress 7.0 compatibility and text domain fix for the plugin directory.

= 1.0.7 =
Renamed for WordPress.org plugin directory guidelines.

= 1.0.6 =
Logo fix and mobile checkbox improvements.

= 1.0.3 =
Redesigned settings page with a modern ИИ-conversion look.

= 1.0.2 =
Russian interface for wp-admin when site language is ru_RU.

= 1.0.1 =
Safer install: detects wrong folder paths and shows clear reinstall instructions.

= 1.0.0 =
Initial release.
