=== LegalBlink ===
Contributors: legalblink
Tags: gdpr, privacy, cookie, policy, compliance
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 2.0.6
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

== Description ==

**LegalBlink Policy** is a plugin that allows you to integrate the LegalBlink services into your WordPress site.

This tool lets you create privacy and cookie policies, cookie banners, and terms and conditions
for your showcase or e-commerce site.

You can generate documentation quickly and easily, with support from a team of legal
consultants. In this way, you can make your site compliant and keep it always up-to-date with
legislative changes, avoiding legal and administrative sanctions.

With LegalBlink, you can have **privacy policies, cookie policies, cookie banners with consent
management, and terms and conditions of sale**.

The main features include:

* Automatic synchronization with LegalBlink (no manual changes required)
* Cookie banner management (enable/disable, copy HTML snippet, site-wide activation)
* Legal documents with iframe integration, HTML snippet, or shortcode
* Shortcodes with advanced options (e.g. ```lang="en" html="true"```)
* Association of pages with direct link copying
* Cache management (duration and manual clearing)
* Compatibility with WooCommerce, WordPress Multisite, WPML, and Polylang

All legal documents generated by LegalBlink are available in Italian, English, German,
French, and Spanish, and comply with GDPR requirements and European Directive
2011/83 on consumer rights.

== Installation ==

= From WordPress =

1. Go to **Plugins → Add New**
2. Search for “LegalBlink Policy”
3. Click **Install** and then **Activate**

= Manual =

1. Download the `.zip` file from the official website
2. Go to **Plugins → Add New** and **Upload Plugin**
3. Upload the `.zip` file and activate it, or upload the files via FTP to the ```/wp-content/plugins/``` folder

After activation, you will find the menu item: “LegalBlink Policy”.

== Configuration ==

1. Retrieve your token from [https://app.legalblink.it/login](https://app.legalblink.it/login)
2. Go to “LegalBlink Policy” on WordPress
3. Paste the token and click “Login”

== Shortcodes ==

Use these canonical shortcodes to embed LegalBlink documents inside any WordPress content area that supports shortcodes:

* `[WPLB_PRIVACY_POLICY]`
* `[WPLB_COOKIE_POLICY]`
* `[WPLB_CGV_POLICY]`

The legacy terms alias remains available for backwards compatibility:

* `[WPLB_TERMS_OF_SERVICE]`

Example with attributes:

* `[WPLB_CGV_POLICY lang="en" html="true"]`

If a page is built with Elementor, insert the shortcode manually in an Elementor Shortcode or HTML widget. The automatic page synchronization only updates the standard WordPress content of the page.

== Frequently Asked Questions ==

= What makes LegalBlink different from other online generators? =

LegalBlink is the legal document generator that is:

* updated according to the Omnibus Directive in force since April 2, 2022
* updated with the latest on legal guarantees, in force since January 1, 2022
* with a website **legal checkup**
* multilingual (with no extra cost)
* backed by a team of expert legal consultants in e-commerce and privacy

= Do I need a LegalBlink account? =

Yes, authentication with your LegalBlink token is required.

= Are the documents multilingual? =

Legal documents can be generated in Italian, English, German, French, and Spanish.
The multilingual function is present in every package at no additional cost.

= Can I edit the texts? =

Yes, via [https://app.legalblink.it/login](https://app.legalblink.it/login).
Updates are synced automatically.

= Is LegalBlink compatible with WooCommerce? =

Yes, it is fully compatible with e-commerce.

= Is LegalBlink compatible with WordPress Multisite? =

Yes, it can be configured for every site.

== Changelog ==

= 1.0.1 =
- Minor bug fixes
= 1.0.2 =
- Tested with Wordpress 5.7
- Minor bug fixes
= 2.0.0 =
- Major update with new features
- Updated user interface for better usability
- Enhanced compatibility with latest WordPress versions
= 2.0.2 =
- Fixed a bug that prevented shortcodes from loading correctly
= 2.0.3 =
- Removed inline `<style>` blocks from embedded HTML documents to prevent layout conflicts with WordPress themes
- Cache is now automatically invalidated after plugin updates
= 2.0.4 =
- Minor fixes
= 2.0.6 =
- Fixed: canonical CGV shortcode is now `WPLB_CGV_POLICY`, while `WPLB_TERMS_OF_SERVICE` remains available as a backwards-compatible alias
- Fixed: admin UI, backend, and documentation now expose the same canonical shortcode for terms / CGV
- Improved: WordPress page selection now warns when the selected page is managed by Elementor, since automatic sync only updates the standard page content
= 2.0.5 =
- Fixed: the plugin admin now works on sites using "Plain" permalinks (also for language switching and other parameterized actions)
- Fixed: stray JavaScript snippets no longer appear as text when embedding a document in HTML mode
- Improved: empty paragraphs and paragraphs containing only line breaks are removed from documents embedded in HTML mode, for a cleaner layout
- Improved: "Clear cache" now refreshes the admin UI automatically — no manual page reload required
- Improved: cache invalidation also wipes orphan transients, so "Clear cache" reliably drops every stale payload
- Fixed: stray WordPress check icon no longer appears inside the plugin's toggle switches

== Upgrade Notice ==

= 1.0.0 =
Initial release of the LegalBlink plugin.
= 2.0.0 =
Major update with new features.
Please review your settings after upgrading.

== External Services ==

This plugin relies on the **LegalBlink API** to provide legal compliance
features for your WordPress website.

This plugin connects to the LegalBlink API to:

* Authenticate users with their LegalBlink account credentials
* Retrieve and display legal documents (privacy policies, cookie policies, terms and conditions)
* Fetch cookie banner configurations and manage consent

= Service links =

* **Service website**: [https://legalblink.it/](https://legalblink.it/)
* **Terms of Service**: [https://legalblink.it/page/page-conditions/](https://legalblink.it/page/page-conditions/)
* **Privacy Policy**: [https://legalblink.it/page/page-privacy/](https://legalblink.it/page/page-privacy/)

== Developer Information ==

= Source Code =

This plugin uses compiled JavaScript and CSS for the admin interface. The human-readable source code is available in the project repository:

**Repository**: [https://github.com/hirooks-legalblink-it/wordpress-legalblink/](https://github.com/hirooks-legalblink-it/wordpress-legalblink/)
