=== Saba Cookie Italy === Contributors: sabaweb Tags: cookie, gdpr, consent, italy, compliance Requires at least: 5.0 Tested up to: 7.0 Stable tag: 1.1.0 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html GDPR/Cookie Law compliance plugin for Italy. Blocks scripts, manages consent, logs proofs, and supports Google Consent Mode v2. == Description == Saba Cookie Italy is a comprehensive solution for managing cookie consent on WordPress, specifically tailored to the Italian Garante's guidelines and GDPR regulations. This plugin allows you to easily display a cookie banner, block scripts before consent is given, maintain a log of user consents (Proof of Consent), and integrate properly with Google Consent Mode v2. ### Features * **Customizable Cookie Banner:** Adjust descriptions, texts, colors and styles directly from the WordPress admin panel. * **Granular Consent:** Allows users to consent to different categories (Analytics, Marketing, Preferences, Necessary). * **Script Blocker:** Prevent cookies and third-party scripts from firing until explicit consent is given. * **Google Consent Mode V2:** Full compliance with the new GCM v2 requirements. * **Consent Log (Proof of Consent):** Store a record of user consents in the database to prove compliance. A printable HTML receipt is available for each consent entry. * **Cookie Scanner:** Scan first-party cookies directly from the admin panel and auto-populate the cookie policy table. * **Floating Preferences Button:** Reopen the modal to withdraw or modify consent easily. * **Multilingual Support:** Fully translatable (includes EN, IT, FR, DE, DE_CH strings). == Installation == 1. Upload the `saba-cookie-it` folder to the `/wp-content/plugins/` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. Access the plugin settings via the new 'Saba Cookie Italy' menu in your WordPress dashboard. 4. Go the "General" tab to configure basic behavior and Google Consent mode. 5. In the "Domains & Scripts" tab, add scripts or iframes that should be blocked prior to consent. 6. Customize the appearance in "Style & Colors". == Frequently Asked Questions == = Does it support Google Consent Mode v2? = Yes, you can enable it from the General settings tab. The plugin will push the default consent state and update it as soon as the user makes their choice. = Is the Proof of Consent (Log) mandatory? = In some jurisdictions (like Italy), keeping a log of when and how the user gave consent is highly recommended or required. This plugin stores these logs locally in your database without sending data outside. = Can I change the colors of the banner? = Yes! Just go to Settings > Saba Cookie Italy > Style & Colors to use the color pickers for backgrounds, texts, buttons, and switches. == Changelog == = 1.1.0 = * Feature: Added Cookie Scanner to detect first-party cookies directly from the browser * Feature: Scanner auto-populates cookie name, provider, category, purpose, and expiry from a built-in database * Feature: Added [sbckit_cookie_table] shortcode to embed scanned cookie list in Cookie Policy pages * Enhancement: Cookie scanner database is now fully translatable via WordPress localization system (wp_localize_script) * Enhancement: Added prominent warning box in Scanner tab explaining technical limitations (HttpOnly, third-party cookies) * Enhancement: Removed unreliable third-party cookie inference logic (YouTube, Vimeo, Google Maps) — scanner now reports only real, detected cookies * Enhancement: Domain detection system with 14-day expiration tracking for seen domains * Translation: Updated all .pot, .po files (IT, FR, DE, DE_CH, DE_CH_informal) with new scanner strings and cookie descriptions * Translation: Rebuilt French .po file from scratch to fix structural corruption * Compatibility: Tested up to WordPress 7.0 * Compatibility: Minimum PHP version set to 7.4 = 1.0.4 = * Security: Implemented IPv6 address anonymization (masking the last 80 bits) to strictly comply with privacy regulations = 1.0.3 = * Fix: Registered sbckit_z_index option to allow saving custom integer values from the dashboard * Enhancement: Added wp_unslash() to $_POST arrays for safer casting and Plugin Check compliance * Feature: Refined blocked iframe logic to include a dedicated "Accept & Unlock" button bypassing settings modal * Enhancement: Added 4 new color options for Blocked Content buttons directly in the Customizer backend * Enhancement: Better stacking CSS UI layout for functional script placeholders * Translation: Added and updated language strings for new UI elements = 1.0.2 = * Fixed PHP 8.1 deprecation warnings when saving option fields * Fixed output buffering issue causing unclosed buffer on empty pages * Fixed localization mismatch making default strings use the admin locale instead of the frontend locale * Fixed style and scripts enqueuing and data saving processes correctly for compliance = 1.0.1 = * Fixed PHP 7.2 compatibility: replaced str_contains() with strpos() * Replaced native HTML print system (removed FPDF library dependency) * Fixed plugin constants to follow WordPress uppercase naming convention * Fixed uninstall.php: added all missing option cleanups on removal * Fixed activator.php: removed hardcoded Italian default texts * Updated translate strings for Print/Print Receipt/Print-Save PDF buttons * Corrected load_plugin_textdomain() call in main plugin file * Minor cleanup: removed empty lib/ directory and utility scripts = 1.0.0 = * Initial public release with Google Consent Mode v2 support, script blocking, and consent log registry.