=== Asap - Popups Studio ===

Contributors: piyushmultidots
Tags: popup, modal, lightbox, exit intent, newsletter
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create and manage multiple custom popups with individual settings and display rules.

== Description ==

Asap - Popups Studio lets you create and manage multiple popups from the WordPress admin. Each popup has its own settings for when and where it appears.

**Features:**

* **Multiple popups** – Create as many popups as you need; each is a separate post with its own content and settings.
* **Display control** – Enable/disable per popup; choose trigger (page load with delay, scroll percentage, or exit intent).
* **Visibility** – Show on all pages, pages only, posts only, or selected pages.
* **Show once** – Limit to once per session, per day, per week, or per month using cookies.
* **Custom HTML** – Optional custom HTML (replacing the main editor content) with allowed tags only; no script insertion.
* **Animations** – None, fade in, or slide up.
* **Width** – Set popup width in pixels or percentage.
* **Quick toggle** – Enable/disable popups from the list screen with a toggle switch.

For site-wide or per-page custom CSS, use the WordPress Customizer or theme/block editor. Uses the block editor (or classic editor) for popup content; optional custom HTML overrides that for a single popup. All user-facing strings are translation-ready (text domain: `asap-popups-studio`).

== Installation ==

1. Upload the `popup-studio` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Go to **Popups** in the admin menu to create and manage popups.

= First popup =

1. Click **Popups → Add New**.
2. Enter a title and add content in the editor (or use **Custom HTML** in the Popup Settings meta box).
3. In **Popup Settings**, check **Enable this popup** and set trigger, delay, and visibility.
4. Publish. The popup will appear on the front end according to your settings.

== Frequently Asked Questions ==

= Can I show different popups on different pages? =

Yes. Use **Where to show → Visibility**: choose "Selected pages only" and pick the pages in **Show on these pages**.

= How does "Show once per visitor" work? =

The plugin sets a cookie when the popup is shown. Until the chosen period (session, day, week, month) expires, the same visitor will not see that popup again.

= Is the plugin translation-ready? =

Yes. The text domain is `asap-popups-studio`. Use the `languages` folder or load your `.mo`/`.po` files with the same domain.

== Screenshots ==

1. Popup list with Status column and quick toggle.
2. Popup Settings meta box: Status, Display, When to show, Where to show, Content override.

== Changelog ==

= 1.0 =
* Initial release.
* Custom post type for popups.
* Triggers: page load (with delay), scroll percentage, exit intent.
* Visibility: all, pages only, posts only, selected pages.
* Show once: session, day, week, month.
* Optional custom HTML (allowed tags only) for content override.
* Animations: none, fade, slide.
* Quick enable/disable toggle on list screen.

== Upgrade Notice ==

= 1.0 =
Initial release of Asap - Popups Studio.
