=== LaunchVeil ===
Contributors: hl78
Tags: maintenance mode, coming soon, under construction, landing page, launch
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Put your WordPress site into maintenance or coming-soon mode with customizable pages, role bypasses, and private preview links.

== Description ==

**LaunchVeil** displays a maintenance or coming-soon page to public visitors while you build, update, or prepare a WordPress site for launch.

It is designed to stay lightweight with self-contained styles, no external font requests, and settings stored in a single WordPress option.

### Key Features

- **Maintenance (503) & Coming Soon (200) Modes:** Return HTTP `503 Service Unavailable` with a `Retry-After: 3600` header for temporary maintenance, or `200 OK` for coming-soon pages.
- **Role-Based Access Control:** Choose which WordPress roles can view the live site while LaunchVeil is active.
- **Private Preview Links:** Share tokenized preview URLs (`?lv_preview=...`) that set a 24-hour access cookie, with one-click token rotation to revoke links.
- **Admin Bar Status & Toggle:** Check protection status and toggle LaunchVeil from the WordPress admin bar.
- **Cache Purging Support:** Clears caches across supported plugins (such as WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, and Autoptimize) when toggled or updated.
- **JSON Import / Export:** Export settings to JSON (excluding the preview token) or import settings onto another site.

### Included Templates

- **Minimal Dark (Free):** A centered layout styled with custom background, accent, and text colors plus an optional countdown.
- **Glass Card (Free):** A frosted-card layout with optional logo and countdown display.
- **Split Agency (Pro):** A two-column split layout.
- **Aurora Flow (Pro):** An animated gradient backdrop with a glass panel.
- **Ken Burns (Pro):** A subtle zoom/pan background image or gradient backdrop.
- **WordPress Page / Elementor (Pro):** Render content from a selected WordPress page or Elementor layout.

== Installation ==

### Automatic Installation
1. Go to **Plugins > Add New** in your WordPress dashboard.
2. Search for **LaunchVeil**.
3. Click **Install Now** and then **Activate**.

### Manual Installation
1. Upload the `launchveil` directory to `/wp-content/plugins/` or upload `launchveil.zip` via **Plugins > Add New > Upload Plugin**.
2. Activate **LaunchVeil** through the **Plugins** screen.
3. Configure your settings under **Settings > LaunchVeil**.

== Frequently Asked Questions ==

= How do I configure LaunchVeil? =
Go to **Settings > LaunchVeil** to enable protection, choose **Maintenance (503 status)** or **Coming soon (200 status)**, set allowed user roles, customize your template and message, and manage preview links.

= How does Maintenance (503) vs. Coming Soon (200) affect search engines? =
**Maintenance (503 status)** sends a `503 Service Unavailable` response with `Retry-After: 3600` to indicate temporary unavailability, which is generally suited to brief maintenance windows rather than extended downtime. **Coming soon (200 status)** returns a normal `200 OK` status if you want the page treated as standard content.

= How do I share the site with someone who does not have a WordPress account? =
Open **Settings > LaunchVeil > Preview Links** and copy the preview link. Visiting it sets a 24-hour cookie for that visitor, and rotating the token invalidates previous links.

= How do I activate LaunchVeil Pro? =
If you have a Pro license key, enter it under **Settings > LaunchVeil > Pro License** to unlock the Pro templates and options.

= Where can I learn more about LaunchVeil Pro? =
Details are available at https://long-art-7bdc.ram-akkawi.workers.dev/

== Screenshots ==

1. **General & Access:** Toggle LaunchVeil, choose HTTP status mode, and select roles that can access the live site.
2. **Design & Templates:** Pick a template, customize colors, logo, headline, message, and optional countdown date.
3. **Preview Links:** Copy or rotate private preview URLs.
4. **Admin Bar Toggle:** Monitor status and toggle LaunchVeil from the admin bar.

== Changelog ==

= 1.0.0 =
- Initial release with Maintenance (503) and Coming Soon (200) modes, Minimal Dark and Glass Card templates, role access rules, tokenized preview links, admin bar toggle, cache purging, JSON import/export, and Pro license support.

== Upgrade Notice ==

= 1.0.0 =
Pro license support adds Split Agency, Aurora Flow, Ken Burns, and WordPress/Elementor page templates: https://long-art-7bdc.ram-akkawi.workers.dev/