=== Swairish Header Bar & Offer Notifications ===
Contributors: ssswadhin
Tags: notification bar, sales notification, announcement bar, social proof, offer
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.4.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create focused offer bars and activity alerts with local integrations, responsive layouts, UTM links, and privacy-first metrics.

== Description ==

Swairish Header Bar & Offer Notifications gives marketers a focused campaign builder inside WordPress.

Free features:

* Header notification and offer bars.
* Fourteen one-click offer presets, including six with original bundled artwork.
* Media Library image picker, accessible alt text, before/after positioning, and responsive image rendering.
* Sales, discount, comment, WordPress.org review, and download-count alerts.
* WooCommerce, Easy Digital Downloads, GiveWP, Tutor LMS, Contact Form 7, Ninja Forms, and WPForms event capture.
* Fixed-deadline countdowns and one-click coupon copy buttons.
* Schedule, path targeting, delay, auto-hide, responsive layout, and four visitor reappearance options.
* Original themes, custom colors, default UTM attribution, and dashboard white-label name.
* Local impression, click, and dismissal totals. Raw IP addresses, source transaction or user IDs, and customer, commenter, or student names are not stored.

== External services ==

The plugin does not contact a Swairish server and does not require an account.

The optional WordPress.org content source uses the public WordPress.org Plugin Information API at https://api.wordpress.org/plugins/info/1.2/.

* When: only after an administrator selects the WordPress.org source and saves a plugin slug in a campaign.
* Data sent: the configured public plugin slug, this plugin version, and the site URL in the HTTP user agent.
* Purpose: retrieve public plugin name, rating, and active-install information for the configured alert.
* WordPress.org Terms of Service: https://wordpress.org/about/terms-of-service/
* WordPress.org Privacy Policy: https://wordpress.org/about/privacy/

If an administrator deliberately enters an externally hosted image URL, each visitor's browser requests that image from the chosen host. That host may receive standard request information such as the visitor IP address and user agent under its own terms and privacy policy. Use the WordPress Media Library to keep campaign images on the site.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install the ZIP in Plugins > Add New.
2. Activate the plugin.
3. Open Swairish Notifications > Create notification.
4. Preview, save a draft, then publish when ready.

== Frequently Asked Questions ==

= Where is analytics data stored? =

Daily totals stay in your WordPress database. Raw integration events are removed after 90 days, and daily performance totals are removed after 730 days. Raw IP addresses, source transaction or user IDs, and customer, commenter, or student names are not stored.

= What happens when I uninstall the plugin? =

Uninstalling removes the plugin's campaigns, captured events, performance totals, settings, and scheduled tasks from the WordPress database.

= Does it work on mobile? =

Yes. Every Free notification has a responsive baseline layout.

== Screenshots ==

1. Campaign overview with local performance totals.
2. Image-rich offer presets with responsive live preview.
3. Integration status screen.

== Credits ==

The six bundled preset illustrations and WordPress.org directory banner and icon are original assets created for this plugin. Copyright Swairish. They are distributed under the same GPLv2-or-later license as the plugin.

== Changelog ==

= 1.4.0 =
* Added fixed-deadline countdowns, coupon copy buttons, and explicit refresh, session, timed, or never reappearance behavior.
* Added a restrained dashboard-only link to the separate Pro add-on landing page.
* Added WordPress Playground preview configuration and retained the WordPress admin-toolbar sticky offset correction.

= 1.3.2 =
* Keep sticky header notifications below the WordPress admin toolbar while scrolling on desktop and mobile.

= 1.3.1 =
* Restricted campaign requests to supported fields and strengthened input sanitization and output escaping.
* Corrected the WordPress.org contributor username.

= 1.3.0 =
* Adopted an original WordPress.org-safe product name and plugin slug.
* Improved repository metadata, external-service disclosure, internationalization comments, database identifier handling, and package hygiene.

= 1.2.1 =
* Added a visible direct image URL field alongside Media Library selection, replacement, and removal.

= 1.2.0 =
* Added six original image-based presets for product, SaaS, course, hosting, webinar, and app campaigns.
* Added Media Library image selection, replacement, removal, alt text, position controls, and responsive live preview.

= 1.1.3 =
* Versioned the redesigned admin asset filenames to bypass aggressive production cache stripping.

= 1.1.2 =
* Added eight one-click header offer presets with complete copy, CTA, position, and color settings.

= 1.1.1 =
* Keep late-loading third-party admin notices inside the collapsed WordPress notices tray.

= 1.1.0 =

* Rebuilt the admin workspace around campaigns, sources, guided creation, live preview, and clearer settings.
* Added campaign search, status filters, pause/publish, duplication, and improved responsive administration.

= 1.0.0 =

* Initial release.
