=== RWC Notify Hub - Popup, Announcement Bar, Proof Notification ===
Contributors: realwebcare
Tags: popup, announcement bar, sales proof, marketing, notification
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 7.1
Stable tag: 0.3
Donate link: https://item.realwebcare.com/checkout/buy/d18dfcb8-ea0d-40f6-ac66-c495d7c45f86
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

RWC Notify Hub adds a lightweight popup, an announcement bar, and sales proof notifications to your WordPress site.

== Description ==

**RWC Notify Hub** gives you three marketing tools in a single plugin. You get a **promo popup**, an **announcement bar**, and **live sales proof**. We built this so you can capture leads and show recent sales without writing code or slowing down your pages.

The frontend runs on pure vanilla JavaScript. It loads fast and stays out of the way of your theme and server resources. You control everything from a straightforward dashboard.

== Analytics Dashboard ==

You need to know if your campaigns actually work. We built a lightweight analytics dashboard directly into the campaign list. It shows your total impressions, total clicks, and average click-through rate (CTR).

The tracking is fast and relies on a unified database architecture, meaning your data stays safe and won't slow down your WordPress admin area.

== Promo Popup ==

= Popup Templates =
Pick from **6 pre-made popup templates** and insert them with one click. Includes a dotted-grid conversion layout, e-commerce urgency designs with progress bars, a dashed coupon ticket box, a masterclass invite with a floating avatar, and a neon dark SaaS theme. Colors and backgrounds apply automatically.

= Features =
* **Exit-Intent:** Trigger the popup exactly when a visitor moves their mouse to leave your site.
* **Scroll Depth:** Show the popup after someone scrolls down a specific percentage of your page.
* Delay the popup appearance by seconds.
* Choose between an image-only banner or a rich text layout.
* Adjust image padding, background colors, text colors, and maximum width.
* Add a primary call-to-action button with hover color controls.
* Select Fade In or Zoom In animations.
* Set a cookie expiration in days to stop bothering returning visitors.
* Clear the Rich Text editor content and reset any active template styling instantly with a single button.

== Announcement Bar ==

* Place a sticky bar at the top or bottom of your screen so it stays visible while visitors scroll.
* Write sales messages using the standard WordPress rich text editor.
* Control the bar height and match the background and text colors to your brand.
* Add a custom CTA button and choose whether it opens in a new tab.

== Sales Proof Notifications ==

* Connect directly to WooCommerce or Easy Digital Downloads to show recent purchases.
* Filter which notifications display based on order status.
* Insert one-click placeholders for first name, city, state, country, product name, and time ago.
* Toggle the product image on or off.
* Pin the notification to the bottom left or bottom right of the screen.
* Customize the border radius.
* Control the initial delay, display duration, and time between popups.
* Loop notifications and hide them on mobile devices.
* Give visitors an icon to close the notification.

== Display Rules & Settings ==

* Target specific pages or posts to show your campaigns exactly where you want them.
* Restrict campaign editing access to specific user roles.
* Purge cache automatically for WP Rocket, LiteSpeed, W3 Total Cache, and WP Super Cache when saving.
* Wipe all plugin data from your database upon uninstallation.

== Installation ==

1. Log in to your WordPress dashboard.
2. Go to Plugins and click Add New Plugin.
3. Search for RWC Notify Hub by Realwebcare.
4. Click Install Now, then click Activate.
5. Look for the RWC Notify Hub menu in your sidebar to build your first campaign.

== Frequently Asked Questions ==

= Will RWC Notify Hub slow down my website? =

No. The plugin uses vanilla JavaScript and avoids heavy frontend frameworks. It keeps your site fast.

= Do I need Google Analytics to see if my popups get clicks? =

No. The plugin tracks impressions and clicks on its own. You can see your total views, clicks, and CTR directly on the campaign list page in your WordPress dashboard.

= How does the exit-intent trigger work? =

The plugin watches mouse movement. When a visitor moves their cursor out of the main browser window toward the address bar or close button, the popup fires. You get one final chance to show an offer before they leave.

= How does the scroll depth trigger work? =

You choose a percentage in the settings. The plugin tracks how far down the page a visitor scrolls. When they hit your exact target, the popup appears.

= Can I run a popup, announcement bar and sales proof at the same time? =

Yes. You can run all three from a single campaign or split them across different pages.

= How does the popup cookie control work? =

When someone closes your popup, the plugin saves a browser cookie. You set how many days pass before that visitor sees the popup again.

= Can I target specific blog posts? =

Yes. The Display Rules let you pick exact pages and posts for your campaign.

= Does it work with page builders? =

Yes. It uses standard WordPress hooks and works perfectly with Elementor, Divi, Bricks, Gutenberg, and compliant themes.

= Can I show the popup on one page but hide the announcement bar there? =

Yes. Each notification type has its own Display Rules. You can show a popup on your landing page, run the announcement bar only on blog posts, and keep sales proof on your shop, all from the same campaign. Or stack all three on a single page if that's what you need. The page and post targeting works independently for each one.

= I want a good-looking popup but I don't know HTML or CSS. Do I need a developer? =

No. The plugin ships with 6 ready-made popup templates. Open the template library, pick a design you like, and hit Insert. The full layout, colors, and styling load into the editor in one click. You get options like a dotted-grid conversion popup, e-commerce urgency layouts with progress bars, a coupon card, a masterclass invite, and a neon dark SaaS theme. After inserting, you can change the text to match your offer. If you want to start over, the Clear button wipes everything so you can try a different one.

== Screenshots ==

1. Analytics Dashboard showing impressions, clicks and CTR.
2. The RWC Notify Hub Campaign settings dashboard.
3. A pre-made Dotted-Grid Conversion popup template.
4. The top sticky Announcement Bar in action.
5. The Sales Proof Notification in action.
6. Display Rules settings.
7. The popup template library with 6 one-click designs.
8. Design & Layout settings with color pickers and animation controls.

== Upgrade Notice ==

= 0.3 =
Introduces a new Lightweight Analytics Dashboard, new Popup Trigger Types, and a unified database architecture for reliable tracking. Upgrade now to access these powerful new features!

== Changelog ==

= 0.3 (28 August, 2026) =
* `Added:` Lightweight Analytics Dashboard in the Campaign List to track impressions, clicks, and CTR.
* `Added:` Dynamic helper text under the Popup Trigger Type setting for better clarity.
* `Added:` Trigger Type selection in Popup settings (Time Delay, Exit Intent, Scroll Depth).
* `Added:` Product Name Character Limit feature for sales proof notifications.
* `Improved:` Unified database architecture for reliable and scalable analytics tracking.
* `Fixed:` Showing first_name, city, state and country multiple times in the sales proof notification.

= 0.2 (22 August, 2026) =
* `Improved:` Real-time Live Preview synchronization for the Visual Editor.
* `Added:` Integrated single click 6 pre-made templates for promo popups.
* `Added:` A 'Clear' button for the Rich Text editor to clear popup content.
* `Fixed:` Content Padding not reflecting in the Live Preview for Rich Text popup.
* `Fixed:` Minor display glitch with saved text in the preview window during initial load.

= 0.1 (20 August, 2026) =
* `Launched:` Initial public release.
* `Added:` A Promo Popup with a time delay trigger.
* `Added:` A sticky top and bottom Announcement Bar.
* `Added:` Sales Proof notifications with WooCommerce and EDD support.
* `Added:` Display rules for specific posts and pages.
* `Added:` Smart cache purging for major caching plugins.
* `Added:` Granular user role management capabilities.
* `Added:` Clean database uninstall option.
* `Built:` The frontend with vanilla JS for speed.