=== Website Maintenance - PTI ===
Contributors: ptiwebtech2025
Tags: maintenance mode, coming soon, site offline, under construction, lead capture
Requires at least: 5.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html


Modern WordPress Maintenance Mode & Coming Soon suite with responsive templates, live countdown, lead capture, and advanced access controls.

== Description ==
 Website Maintenance - PTI  is a next-generation WordPress maintenance mode and coming soon suite. Whether you are performing routine maintenance, major theme migrations, or launching a brand-new website, this plugin gives you the ultimate combination of visual excellence and powerful site management.

### Key Features:
✅ Modern Admin Dashboard  – Intuitive, tabbed management interface built with high-end design tokens, quick status toggling, and instant feedback.
✅Stunning Frontend Templates  – Handcrafted, mobile-first, and ultra-responsive:
    1.Aurora Glass  – Frosted glassmorphism card with ambient glow orbs and floating countdown units.
    2.Minimal Elegance  – Editorial agency aesthetic with brand hero, status badge, and direct contact buttons.
    3.Cyber Pulse  – Futuristic dark theme with neon blue accents, countdown cards, and deployment progress bar.
    4.Creative Canvas  – Fullscreen cinematic hero wallpaper with top navigation and bottom social bar.
✅Email Lead Capture / Subscribers  – Capture visitor emails while in maintenance mode. Built-in subscriber manager with 1-click  Export to CSV  and optional admin email alerts.
✅Live Countdown & Progress Bar  – Dynamic Days/Hours/Minutes/Seconds digit cards with automatic or manual progress bar tracking.
✅Auto-Disable on Zero  – Automatically turn off maintenance mode and make your website live when the countdown hits zero.
✅Advanced Access Control & Whitelisting :
    Role Whitelisting (choose which roles, e.g. Administrator, Editor, etc. can view live site).
    IP Address Whitelisting (allow developers or clients to browse normally without logging in).
    Secret Bypass Link (1-click copy with 24-hour cookie generation and instant token reset).
✅Scope Selection  – Put the whole site or only specific target pages into maintenance mode.
✅SEO Safe & Mode Switcher  – Choose between `503 Service Unavailable` (for temporary maintenance) and `200 OK` (for pre-launch Coming Soon pages).
✅Complete Branding Customization  – Custom Logo uploader with width control, custom Favicon, background gradient presets, custom wallpaper upload, and color pickers.
✅Direct Contact & Social Profiles  – Integrated buttons for Email, Phone, WhatsApp, and social media links (Facebook, X/Twitter, Instagram, LinkedIn, YouTube, GitHub).
✅1-Click Live Preview  – Test all templates directly in your browser without logging out or opening incognito tabs.
✅Custom Code Injection  – Monospace code editors for custom CSS and JavaScript.

== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/website-maintenance-pti/` directory, or install the plugin through the WordPress Plugins screen directly.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Configure the settings under **Settings → Maintenance Mode** in the WordPress admin panel.
4. Enable maintenance mode and customize your message, countdown timer, and template as needed.

== Frequently Asked Questions ==
= How do I exclude specific pages from maintenance mode? =
You can use the settings panel to select specific pages or apply the `ptiwmm_selected_pages_filter` filter in your code.

= Will search engines index my maintenance page? =
You can choose between HTTP `503 Service Unavailable` (for temporary maintenance to protect SEO) or HTTP `200 OK` (for Coming Soon pre-launch pages) in the settings.

= Can administrators and specific roles still see the live site? =
Yes, you can whitelist specific user roles (like Administrator, Editor, etc.) and even specific IP addresses, or use the 1-click Secret Bypass Link.

= Can I capture subscriber emails during maintenance? =
Yes, version 2.0.0 features built-in Email Lead Capture with an integrated subscriber manager and 1-click CSV export.

= Can I customize CSS or JavaScript? =
Yes, custom CSS and JavaScript editors are provided directly inside the admin settings panel.

== Screenshots ==
1. General & Access Configuration - Status toggle, HTTP 503/200 mode, maintenance scope, and Role/IP whitelisting.
2. Design & Branding Settings - Custom logo upload, favicon, browser title, and copywriting.
3. Background & Color Palette - Custom background image/gradient, dark overlay slider, and color pickers.
4. Live Countdown & Progress Bar - Real-time countdown timer, launch date/time picker, auto-disable on zero, and progress bar options.
5. Frontend Templates - Selection of 4 handcrafted, mobile-responsive modern templates with live preview.
6. SEO & Custom Script Injection - Robots meta tag, OpenGraph social share image, Google Analytics, and custom CSS/JS editors.

== Changelog ==
= 2.0.0 =
* Complete redesign of Admin Dashboard with modern UI, tabbed layout, quick status switch, and toast notifications.
* Redesigned 4 modern, mobile-responsive frontend templates (Aurora Glass, Minimal Elegance, Cyber Pulse, Creative Canvas).
* Added Email Lead Capture form with AJAX submission, subscriber management table, and CSV export.
* Added Role Whitelisting and IP Whitelisting.
* Added Auto-Disable on Countdown expiration.
* Added 1-Click Live Preview mode for admins.
* Added custom Logo, Favicon, Social links, and Direct Contact pills.
* Improved asset isolation to prevent third-party plugins from breaking maintenance screen.
* Maintained 100% backward compatibility with all previous settings and options.

= 1.0.3 =
* Maintenance fixes and minor updates.

== Upgrade Notice ==
= 2.0.0 =
Major upgrade featuring a completely redesigned admin dashboard, 4 modern frontend templates, email lead capture, role/IP whitelisting, and secret bypass link.

