=== Spurvik – EU AI Act Article 50 AI Notice Badge ===
Contributors: spurvik
Tags: eu ai act, ai notice, c2pa, chatbot, transparency
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show a visible EU AI Act Article 50 AI notice badge in all 24 EU languages, plus [spurvik_trust_card], [spurvik_status_shield], [spurvik_c2pa_shield] and 1-click /.well-known/ai-act.json. Zero cookies.

== Description ==

Running an AI chatbot, shopping assistant or AI-generated content on WordPress, Elementor or WooCommerce? Article 50 of the EU AI Act asks providers and deployers to inform people when they interact with an AI system. This plugin adds a visible notice badge to every public page, plus embeddable Trust-Center and 2 Dec 2026 C2PA shortcodes, with zero code.

* All 24 official EU languages. "Auto" follows each page's `lang` attribute, so WPML, Polylang and Weglot switch the notice automatically.
* Five notice types: AI interaction (Art. 50(1)), AI-generated content (visible label), deep fake (Art. 50(4)), AI text on matters of public interest (Art. 50(4)), emotion recognition or biometric categorisation (Art. 50(3)).
* Bottom-right or bottom-left placement, or inline: add `<div data-spurvik-badge></div>` in a Custom HTML block.
* Interactive Trust-Center card shortcode: `[spurvik_trust_card]` mounts a Shadow DOM EU AI Act Art. 50 & 2 Dec 2026 C2PA status card (`trust-widget.js`) on your `/trust` or `/privacy` page.
* Live status & C2PA shields: `[spurvik_status_shield]` and `[spurvik_c2pa_shield]` show 20 px live frontpage Art. 50(1) ("Notice detected" / "Action needed") and 2 Dec 2026 Art. 50(2) C2PA status shields linked to your shareable DPO brief and C2PA checker.
* Optional 1-click `/.well-known/ai-act.json` publisher: serve a zero-PII machine-readable discovery manifest without FTP or server config.
* Zero cookies, no localStorage, no tracking telemetry. Styles live in Shadow DOM so your theme stays untouched.
* One option row in your database, removed on uninstall.

By default the badge and trust card end with a small "Art. 50 · Spurvik" link to spurvik.com. White-label (hiding that link) is part of Spurvik Pro (€19/mo or €190/yr, excl. VAT, B2B): https://console.spurvik.com/signup?plan=pro

Prefer to have it done for you? The Done-For-You 24h AI Act setup (€199 once) installs the notice, configures Frankfurt call logs and approval gates, checks media C2PA stripping, delivers a DPO brief within 24 hours and includes one year of Pro: https://console.spurvik.com/signup?plan=concierge

== Installation ==

1. Download spurvik-eu-ai-act-wp.zip from https://spurvik.com/r/spurvik-eu-ai-act-wp.zip.
2. In WordPress, go to Plugins → Add New → Upload Plugin, choose the zip and click Install Now, then Activate.
3. Go to Settings → Spurvik AI Notice, tick "Show the AI notice", review the AI system name, notice type, language, position, theme and optional `/.well-known/ai-act.json` toggle, and click Save Changes.
4. Optional: place `[spurvik_trust_card]` on your `/trust` or `/privacy` page, or `[spurvik_status_shield]` / `[spurvik_c2pa_shield]` in your footer.

The badge and `/.well-known/ai-act.json` endpoint stay off until you turn them on in step 3.

== Frequently Asked Questions ==

= What scope does this plugin cover under the EU AI Act? =

The badge shows a visible, human-readable notice supporting Article 50(1)/(3)/(4) transparency work, while `[spurvik_c2pa_shield]` and `/.well-known/ai-act.json` help teams check 2 December 2026 Article 50(2) C2PA provenance readiness. Responsibility stays with the provider or deployer.

= Does the badge mark AI-generated content under Article 50(2)? =

No. Article 50(2) asks providers of generative AI systems to mark output in a machine-readable format (such as C2PA Content Credentials). Use `[spurvik_c2pa_shield]` or https://console.spurvik.com/c2pa to inspect whether your CDN preserves C2PA JUMBF manifests.

= Does it set cookies or need a cookie banner? =

No. Neither `badge.js` nor `trust-widget.js` sets cookies, writes to localStorage or sends tracking telemetry.

= How do I remove the "Art. 50 · Spurvik" link? =

Tick "White-label (Pro)" in Settings → Spurvik AI Notice. This adds `data-attribution="false"` to both `badge.js` and `[spurvik_trust_card]`. White-label is part of Spurvik Pro (€19/mo or €190/yr, excl. VAT) and Team (€79/mo or €790/yr).

= How do I show the live status shield, C2PA shield, or Trust-Center card? =

Add `[spurvik_status_shield]` or `[spurvik_c2pa_shield]` to a Shortcode block or footer widget, or `[spurvik_trust_card]` to your `/trust` or `/privacy` page. Agencies can pass `domain="example.com"` on any of the three shortcodes.

= Why are shortcodes and /.well-known/ai-act.json inactive on my local or staging site? =

On localhost, an IP address, a single-label host or a development domain (`.local`, `.test`, `.internal`, `*.ddev.site` and similar), the shortcodes print nothing, `/.well-known/ai-act.json` stays off, and console links are not prefilled. This keeps internal host names private.

== External services ==

This plugin uses Spurvik (operated by EyeTea Solutions ApS, Denmark) when enabled:

1. The AI notice badge (`https://spurvik.com/badge.js`, MIT licensed)
* Loaded on public pages only while "Show the AI notice" is ticked. Sets zero cookies and makes no further network requests.

2. The Trust-Center card (`https://spurvik.com/trust-widget.js`, MIT licensed)
* Loaded only on pages where you place the `[spurvik_trust_card]` shortcode. Sets zero cookies and fetches public status JSON from `https://console.spurvik.com/api/v1/badge/card.svg?domain=your-domain&format=json` without credentials.

3. The live status & C2PA shield images
* What: `https://console.spurvik.com/api/v1/badge/status.svg?domain=your-domain` and `https://console.spurvik.com/api/v1/badge/c2pa.svg?domain=your-domain` (SVG images).
* When: on Settings → Spurvik AI Notice in wp-admin (as a preview when your site has a public domain), and on public pages where you place `[spurvik_status_shield]` or `[spurvik_c2pa_shield]`.
* What is sent: an image request from the browser containing the domain in the URL, requested without a referrer (`referrerpolicy="no-referrer"`).

Buttons on the settings page open console.spurvik.com or spurvik.com with your site's public domain in the link. Nothing is sent until you click one. The plugin's PHP code makes no remote calls.

* Terms of service: https://spurvik.com/terms
* Privacy policy: https://spurvik.com/privacy

== Changelog ==

= 1.2.0 =
* New `[spurvik_trust_card]` shortcode: embeds the interactive Shadow DOM EU AI Act Art. 50 & 2 Dec 2026 C2PA status card (`trust-widget.js`, 10 EU languages, zero cookies, Pro white-label support) on `/trust` and `/privacy` pages.
* New `[spurvik_c2pa_shield]` shortcode: live 20 px 2 December 2026 Art. 50(2) C2PA provenance shield linked to `console.spurvik.com/c2pa`.
* New optional `/.well-known/ai-act.json` toggle in Settings → Spurvik AI Notice: serves a zero-PII machine-readable EU AI Act & C2PA discovery manifest with no FTP or web-server config needed.
* Added 1-click wp-admin links for the 2 Dec 2026 C2PA Checker and 9-Section Annex IV Studio.

= 1.1.0 =
* New `[spurvik_status_shield]` shortcode: a linked live EU AI Act Art. 50 status shield for footers, widgets and privacy or AI pages, with an optional `domain` attribute.
* Settings → Spurvik AI Notice shows a live status shield preview for your site.
* Pro (€19/mo), Team / Agency (€79/mo) and 24h Done-For-You Setup (€199 once) links and the Shareable DPO & Client Brief open with your site's public domain prefilled.
* Local installs (localhost, IP addresses, single-label and development domains) never prefill or send their host name.

= 1.0.6 =
* First release, matching badge.js 1.0.6.
* Settings → Spurvik AI Notice: on/off, AI system name (defaults to the site title), notice type, language (auto or 24 EU languages), position, theme and Pro white-label.
* The "Art. 50 · Spurvik" link is shown by default; white-label adds data-attribution="false".
* Uninstall removes the plugin's option.

== Upgrade Notice ==

= 1.2.0 =
Adds [spurvik_trust_card], [spurvik_c2pa_shield], and an optional 1-click /.well-known/ai-act.json discovery manifest publisher ahead of 2 December 2026.
