=== DB – AI Act Transparency ===
Contributors: davidebaraldi
Tags: ai act, ai transparency, ai disclosure, ai content, ai images
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 1.5.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Classify and disclose artificial intelligence use in WordPress content and individual images.

== Description ==

DB – AI Act Transparency helps WordPress site owners document and optionally disclose how artificial intelligence was used in written content and individual images.

The plugin keeps the existing workflow lightweight and uses native WordPress options and post metadata. It does not create custom database tables and does not connect to external services.

= Content classification =

Each supported post, page, or public custom post type can be assigned one of four levels:

* No significant AI use
* AI-assisted content
* AI-generated and human-reviewed content
* Fully AI-generated content

The public notice can be displayed automatically before or after the content, hidden for a specific item, or inserted manually with a shortcode.

= Image classification =

Each image attachment can be classified independently:

* No significant AI use
* AI-assisted image
* AI-generated and human-reviewed image
* Fully AI-generated image

The classification is saved on the Media Library attachment, so it follows the image when the same file is reused. A compact or boxed badge can be displayed below classified Image blocks.

= Main features =

* Content and image AI-use classification
* Gutenberg and Classic Editor support
* Media Library integration
* Optional automatic notices and image badges
* Configurable default levels
* Content and image shortcodes
* REST API metadata registration
* DB Solution HUB interface
* Translation-ready and compatible with Loco Translate

= Important notice =

This plugin is a technical transparency tool. It does not provide legal advice and does not guarantee compliance with the EU AI Act, GDPR, or any other law. Site owners remain responsible for selecting the appropriate classification and disclosure.

== Installation ==

1. Upload the `db-ai-act-transparency` folder to `/wp-content/plugins/`.
2. Activate DB – AI Act Transparency from the WordPress Plugins screen.
3. Open DB Solution > AI Act Transparency.
4. Configure content types, default levels, notices, and image badges.
5. Edit a post or select an Image block to assign an AI-use classification.

== Frequently Asked Questions ==

= Does the plugin automatically detect AI-generated content? =

No. Classification is manual. Automatic AI detectors can be inaccurate and are not used by this plugin.

= Does the plugin guarantee AI Act compliance? =

No. It helps document and communicate AI use, but legal obligations depend on the content, context, and applicable law.

= Is it compatible with Loco Translate? =

Yes. All interface strings use the `db-ai-act-transparency` text domain. A translation template is included in the `languages` folder.

= Does it create custom database tables? =

No. It uses native WordPress options and metadata.

= Does image classification follow a reused image? =

Yes. The value is stored on the attachment in the Media Library.

= What content shortcodes are available? =

`[db_ai_transparency]`

`[db_ai_transparency id="123"]`

`[db_ai_transparency force="yes"]`

`[db_ai_transparency level="fully_generated"]`

= What image shortcodes are available? =

`[db_ai_image_transparency id="456"]`

`[db_ai_image_transparency id="456" force="yes"]`

`[db_ai_image_transparency id="456" level="fully_generated"]`

The ID must be the attachment ID from the WordPress Media Library.

== Screenshots ==

1. DB Solution HUB
2. Content classification preferences
3. Public content notice settings
4. Image classification preferences
5. AI Transparency panel in the post editor
6. AI Transparency controls for an Image block
7. Media Library classification fields
8. Frontend content notice and image badge

== Changelog ==

= 1.5.3 =

* Fixed the public notice for the "No significant AI use" classification when visibility is set to Show
* Added an editable public notice text for the no-AI classification in Preferences
* Restored the minimum supported WordPress version to 6.4
* Preserved all existing settings, metadata, shortcodes, media classifications, and frontend styles

= 1.5.2 =

* Raised the minimum required WordPress version to 7.0
* Raised the minimum required PHP version to 8.0
* Added the author website link to the plugin header
* Changed the Badge notice border radius to 8px
* Prevented the Badge style and pulsing dot from being clipped by theme containers
* Added left spacing to the Minimal notice so the status dot is not too close to the edge
* Preserved all existing settings, metadata, shortcodes, translations, and display logic

= 1.5.1 =

* Removed decorative badge icons from the frontend and settings screen
* Kept a single optional pulsing status dot for each AI level
* Automatically derives badge text, border, and subtle background from the selected color
* Preserved all existing settings, metadata, shortcodes, translations, and display logic

= 1.5.0 =

* Fixed undefined tab URL variables in the admin screen
* Added independent color, modern SVG symbol, and pulse settings for all four AI levels
* Added live badge previews in the settings screen
* Applied saved badge profiles to content notices and image badges
* Preserved all existing option names, metadata, shortcodes, and display behavior

= 1.4.2 =

* Fixed the six nonce-verification warnings reported by Plugin Check in the admin screen
* Replaced query-string page detection with native WordPress admin page hooks
* Added nonce verification to Preferences and Documentation tab navigation
* No functional settings, metadata, frontend output, shortcode, badge, or translation behavior was changed

= 1.4.1 =

* Changed the internal PHP prefix to avoid fatal class conflicts with the previous DB – AI Transparency plugin
* Preserved all existing option names and metadata for seamless migration
* Renamed internal script and style handles to avoid collisions when both plugin folders are present

= 1.4.0 =

* Renamed the plugin to DB – AI Act Transparency
* Changed the plugin slug and text domain to `db-ai-act-transparency`
* Added an English WordPress.org readme
* Added translation template and Italian translation files
* Fixed input sanitization warnings reported by Plugin Check
* Removed direct GET processing from the editor notice
* Removed the discouraged manual translation loader
* Updated the Tested up to header to WordPress 7.0
* Limited readme tags to five
* Preserved all existing content, image, shortcode, badge, and DB Solution HUB features

= 1.3.0 =

* Added DB Solution HUB integration
* Added the plugin version header
* Added Preferences and Documentation sections

= 1.2.0 =

* Added individual image classification
* Added Image block and Media Library controls
* Added automatic image badges and image shortcodes

= 1.0.0 =

* Initial release

== Privacy ==

DB – AI Act Transparency does not collect, transmit, or share personal data with external services.

== External Services ==

The plugin does not connect to external services.
