=== SunnyGDPR ===
Contributors: sunnywebstudio
Tags: gdpr, cookie consent, cookie banner, privacy, compliance
Requires at least: 5.6
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Lightweight, high-performance GDPR cookie consent banner with zero frontend dependencies and autonomous static decline handler.

== Description ==

SunnyGDPR provides a simple, ultra-fast, and compliant cookie banner for your WordPress website. Built with performance in mind, it utilizes vanilla JavaScript without external libraries like jQuery.

If a user declines the cookie policy, the plugin redirects them to an isolated static HTML page (`cookie-declined.html`), preventing unnecessary MySQL queries and heavy WordPress execution while restricting access to the platform.

= Key Features =
* **Lightweight & Fast:** Pure Vanilla JS and clean CSS.
* **Autonomous Decline Handler:** Static HTML response for declined users to save server resources.
* **Fully Customizable:** Easily edit text, button labels, and redirect URLs from the WordPress admin panel.
* **GDPR Ready:** Sets standard 1-year consent cookies (`sunnygdpr_consent`).
* **Clean Uninstall:** Automatically removes all stored settings upon uninstallation.

== Installation ==

1. Upload the `sunnygdpr` folder to your `/wp-content/plugins/` directory (or upload the `.zip` file via WP Admin).
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to **Settings -> SunnyGDPR** to configure your banner text and preferences.

== Frequently Asked Questions ==

= Does this plugin affect site speed? =
No. SunnyGDPR uses pure JavaScript without heavy external libraries. It has virtually zero impact on page loading performance.

= Where are the plugin settings stored? =
All options are saved under a single array key `sunnygdpr_options` in your WordPress options table.

= What happens when a user declines cookies? =
The user is redirected to a static HTML page (`cookie-declined.html`) located inside the plugin directory. They will not be able to browse the site until they accept the cookie policy.

== Changelog ==

= 1.0.0 =
* Initial official release.