=== Gravito CMP ===
Contributors: gravito
Tags: cmp, consent, gdpr, cookies, iab tcf
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.12
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Deploy your Gravito Consent Management Platform (CMP) on WordPress. Paste a token, validate, deploy.

== Description ==

Gravito is a Google and IAB TCF v2.4 certified Consent Management Platform. This plugin lets you deploy your Gravito CMP banner on a WordPress site without editing theme files.

**How it works**

1. Design and deploy your CMP in the [Gravito portal](https://adminv2.gravito.net).
2. Copy the WordPress token the portal gives you.
3. Paste it into the plugin's settings page, click Validate, then click Deploy.

The plugin injects the Gravito CMP script into the `<head>` of every page. Republishes in the portal are picked up automatically — no re-paste needed.

**Features**

* Single-field token-based setup
* Token validation (checks the Gravito CDN responds)
* One-click deploy / undeploy
* `[gravito_preferences]` shortcode to open the preferences dialog from anywhere
* Gutenberg block for the preferences link
* Optional auto-injected "Cookie preferences" link in the footer
* Multisite friendly (per-site configuration)

**Requirements**

* A Gravito account and a deployed CMP configuration in the [Gravito portal](https://adminv2.gravito.net)
* Domain validation, done by adding DNS entries to the domain where the Gravito CMP will be deployed

**Remote services**

This plugin loads one JavaScript file from the Gravito CDN (`cdn.gravito.net`) when the CMP is deployed. The URL is derived from the token you paste. No visitor data is sent by the plugin itself — the CMP handles consent collection according to IAB TCF v2.4.

Terms: [https://www.gravito.net/terms](https://www.gravito.net/terms)
Privacy: [https://www.gravito.net/privacy](https://www.gravito.net/privacy)

== Installation ==

1. Upload the `gravito-cmp` folder to `/wp-content/plugins/`, or install through the WordPress plugin directory.
2. Activate the plugin.
3. In WordPress admin, go to **Gravito CMP** in the sidebar.
4. Paste your token from the Gravito portal, click **Validate Token**, then **Deploy CMP**.

== Frequently Asked Questions ==

= Where do I get a token? =

Log in to the [Gravito portal](https://adminv2.gravito.net), design your CMP, deploy it, and copy the WordPress token.

= Do I need to re-paste the token after republishing in the portal? =

No. The token encodes a stable path, and the CDN serves the latest version automatically.

= Can I open the preferences dialog from a link in my own menu? =

Yes. Add `onclick="window.gravito.cmp.openPreferences(); return false;"` to any link, or use the `[gravito_preferences]` shortcode.

= Does the plugin work on multisite? =

Yes. Each site in a network configures its own token independently.

= Where does the CMP script load from? =

`https://cdn.gravito.net/cmpconfigs/gravitocmp/{your-uuid}/{build}/latest.js`

== Screenshots ==

1. Settings page — paste the token.
2. Validation and deploy.
3. Preferences link block in the editor.

== Changelog ==

= 1.0.12 =
* Updated description to IAB TCF v2.4.
* Clarified requirements: Gravito portal link and DNS-based domain validation.

= 1.0.11 =
* Initial public release.
