=== AAWEB Announcement Bar ===
Contributors: antoapweb
Tags: announcement bar, notification bar, top bar, woocommerce, banner
Requires at least: 6.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.4.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight announcement bar with scheduling, dismiss button, device visibility and WooCommerce-safe display rules.

== Description ==

AAWEB Announcement Bar helps site owners add a clean top announcement bar without heavy page builders or marketing suites.

Features include:

* Enable or disable the bar from Settings.
* Plain text or safe HTML content.
* Optional CTA link.
* Custom colors, font size, font weight and container width.
* Sticky mode.
* Dismiss button with cookie-based hide period.
* Start and end dates.
* Desktop-only, mobile-only or all-device visibility.
* Sitewide, homepage-only or WooCommerce checkout-safe display rules.
* Manual page ID exclusions.
* Preview shortcode.

The plugin is intentionally lightweight and does not connect to any external services.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install the ZIP from Plugins > Add New.
2. Activate the plugin.
3. Go to Settings > AAWEB Announcement Bar.
4. Configure your message and visibility rules.

== Frequently Asked Questions ==

= Does it work with WooCommerce? =

Yes. It includes an option to hide the bar from cart, checkout and my account pages.

= Does it work with Elementor? =

Yes. The bar renders through `wp_body_open`, which is supported by modern themes. A footer fallback is included for older themes.

= Can I add HTML? =

Yes. Safe HTML is allowed and filtered through WordPress post HTML sanitization.

= Can visitors close the bar? =

Yes. Enable the dismiss option and choose after how many days the bar should appear again.

= Is the plugin lightweight? =

Yes. It only loads a small CSS and JavaScript file on the frontend.

== Screenshots ==

1. Main dashboard and content settings.
2. CTA button customization options.
3. Design and styling controls.
4. Design and styling controls.
5. Display rules and scheduling options.

== Changelog ==

= 1.4.3 =
* Added full close-button styling controls.
* Added close-button background, icon, hover and border colours.
* Added close-button size, icon size, border width, border radius and right-spacing controls.
* Added clear labels for all close-button settings.
* Improved colour controls so HEX values can be typed or pasted reliably.
* Improved live preview synchronization.
* Fixed the bottom-border visibility option.
* Fixed frontend close-button styling conflicts caused by themes.
* Improved HTML content spacing in the preview.

= 1.4.2 =
* Changed the default announcement bar state to disabled on new installations.

= 1.4.1 =
* Show only the active content editor based on Plain text / Safe HTML mode.

= 1.1.0 =
* Added full CTA button styling settings.
* Added CTA hover colours, border, radius, padding, font, margins, position, device visibility and animations.
* Improved frontend layout for text, CTA button and close button.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.4.3 =
Adds complete close-button styling controls and fixes frontend theme conflicts.
