=== Maintenix ===
Contributors:      najusdigital
Tags:              maintenance mode, coming soon, under construction, countdown, waitlist
Requires at least: 5.8
Tested up to:      7.0
Stable tag:        1.2.0
Requires PHP:      7.4
License:           GPLv2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

Maintenix — lightweight maintenance mode and coming soon page with background image, logo, social links, secret bypass, subscriber waitlist, and countdown auto-launch.

== Description ==

**Maintenix** is a clean, developer-friendly maintenance mode plugin for WordPress. Put your site under construction in seconds — no page builders, no bloat.

= Features =

**Background Image & Logo**
Upload a custom background image with adjustable overlay opacity, and display your own logo on the maintenance page.

**Secret Bypass Links**
Generate a unique URL (e.g. `yoursite.com/?preview=abc123`) and share it with your clients. Visiting the link sets a 7-day cookie — they can browse the live site without a WordPress login.

**Subscriber Waitlist**
A built-in email capture form saves addresses to your WordPress database. View, manage, and export the list as CSV — no third-party service needed.

**Countdown Timer + Auto-Launch**
Set a launch date and time. A live countdown displays on the page, and when the clock hits zero, Maintenix disables maintenance mode automatically.

**Social Links**
Show Facebook, Instagram, X/Twitter, and LinkedIn icons on your maintenance page.

**Search Bot Bypass**
Let Googlebot and other major crawlers through while keeping human visitors on the maintenance page — good for SEO.

**Exclude Slugs & IPs**
Whitelist specific pages or IP addresses so they always see the live site.

**Custom CSS**
Full control over the maintenance page appearance without touching code.

= Who Is This For? =

* Freelance developers putting client sites under construction
* Agencies running site launches with a coming soon page
* Anyone who wants a lightweight maintenance plugin without the bloat

= Privacy =

Subscriber emails are stored in your own WordPress database. No data is sent to external servers. You are responsible for your own privacy policy and GDPR compliance.

== Installation ==

1. Upload the `maintenix` folder to `/wp-content/plugins/`.
2. Activate via **Plugins → Installed Plugins**.
3. Go to **Maintenix** in the WordPress admin sidebar.
4. Configure your settings and enable maintenance mode.

== Frequently Asked Questions ==

= Will admins be locked out? =
No. Logged-in administrators always see the real site.

= How do I let a client see the site without a login? =
Copy the Secret Bypass Link from the Access tab and send it to your client. One click sets a 7-day cookie.

= What happens when the countdown hits zero? =
Maintenance mode disables automatically on the next page load after the launch time.

= Where are subscriber emails stored? =
In your own WordPress database. No data leaves your server.

= Does this affect SEO? =
The maintenance page sends a 503 status with Retry-After headers so search engines know the outage is temporary. You can also enable Search Bot Bypass to let crawlers through entirely.

= How do I remove all plugin data? =
Delete the plugin via Plugins → Delete. The uninstall routine removes all database tables and options automatically.

== Screenshots ==

1. The maintenance page — dark theme with background image, logo, headline, countdown, and subscriber form.
2. General settings tab — enable/disable, headline, subheading, footer text, exclude list.
3. Design tab — background image upload, overlay, logo upload, colours, custom CSS.
4. Modules tab — countdown timer, subscriber list with CSV export, social links.
5. Access tab — secret bypass link, search bot bypass.

== Changelog ==

= 1.2.0 =
* Plugin renamed to Maintenix.
* Added: Tabbed admin UI — General, Design, Modules, Access.
* Added: Background image upload with overlay opacity slider.
* Added: Logo upload with configurable max width.
* Added: Footer text field.
* Added: Social links — Facebook, Instagram, X/Twitter, LinkedIn.
* Added: Search bot bypass toggle.
* Added: Exclude slugs/IPs list.
* Added: Separate browser tab title field.
* Improved: Admin bar ON/OFF badge.

= 1.1.0 =
* Added: Custom CSS field.
* Added: Reset to Defaults button.
* Added: Admin bar maintenance mode notice.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.2.0 =
Major update — tabbed admin UI, background image, logo upload, social links, and bot bypass. Plugin renamed to Maintenix.
