=== Maintenance Buddy ===
Contributors: alvin.lamkey
Tags: maintenance, under construction, branding
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.2
Stable tag: 0.1.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A friendly maintenance sign for your website. Four templates, your logo, and a way for visitors to reach you.

== Description ==

Give visitors a clear, friendly maintenance page while you work on your WordPress site. Maintenance Buddy includes four ready-to-use designs, your own branding, and optional contact details. Administrators can continue working while visitors see the maintenance page.

* Four responsive templates: Straight to the Point, Under the Hood, Pardon Our Pixels, and Fresh Coat.
* Custom logo, business name, headline, message, and colors with automatic text contrast.
* Optional public email and phone details with clickable contact links.
* Private live preview, plus saved-page preview without JavaScript.
* Visitors see maintenance; users with manage_options can view and edit the site.
* HTTP 503, Retry-After, and no-cache headers for maintenance responses.
* Dashboard and admin toolbar reminders while enabled.
* Maintenance is OFF after installation and reactivation.
* Confirmed reset restores all defaults and turns maintenance off; Media Library images are kept.
* Settings fields ask browsers not to autofill (browser behavior may vary).

No tracking, external fonts, visitor records, licensing server, or paid account is required. A logo URL you select is loaded by the visitor's browser. The plugin does not send email or place calls: contact links open the visitor's own applications.

== Installation ==

1. Install Maintenance Buddy from Plugins > Add New Plugin, or upload the plugin ZIP using Upload Plugin.
2. Activate Maintenance Buddy. The public site remains open.
3. Open Settings > Maintenance Buddy. Choose a template, edit your details, and save with maintenance off.
4. Preview the saved page. When ready, check Enable maintenance mode and save.
5. Clear hosting/CDN caches and check a private browser window. Your signed-in administrator still sees the real site.
6. Uncheck Enable maintenance mode, save, and clear caches to reopen the site. Deactivating the plugin also turns maintenance off.

== Frequently Asked Questions ==

= What is covered? =
WordPress front-end pages, posts, search, 404 pages, feeds, and sitemaps display the maintenance response. Public REST API requests return a 503 JSON error; authenticated administrators retain API access. XML-RPC is unavailable while maintenance is enabled.

Login, password reset, wp-admin, WordPress AJAX, and scheduled tasks remain available. Direct media URLs, static files, and responses served by a cache before WordPress runs are outside the plugin's control. This is a presentation tool, not access protection for confidential files. Other plugins can expose their own routes before this plugin's front-end hook.

= What about caching and integrations? =
The plugin sends no-store headers and asks WP Rocket, W3 Total Cache, WP Super Cache, and LiteSpeed Cache to purge when settings change, if their APIs are present. These integrations need testing on your own setup. Host/CDN caches still need a manual purge when switching modes. Check both enabled and disabled states while logged out.

Maintenance blocks public REST integrations and XML-RPC clients; test webhooks and store workflows on staging before using it on a busy site. AJAX and scheduled/background tasks continue running. It does not freeze orders, create backups, or make live editing equivalent to staging.

= How do I recover access? =
WordPress login and the dashboard stay available. Deactivate Maintenance Buddy in Plugins to reopen the site. If dashboard access is unavailable for another reason, rename wp-content/plugins/maintenance-buddy using your host's file manager, or add define( 'TBF_MB_DISABLE', true ); above the stop-editing line in wp-config.php. Clear hosting/CDN caches afterward. Remove that constant when normal control is wanted again.

= What happens to settings? =
Deactivation preserves your design but turns maintenance off. Reactivation starts off. Deleting the plugin deletes its settings; images remain in the Media Library. Individual-site activation is supported; network-wide activation is not supported.

= Is an account or payment required? =
No. All included features work locally without a paid account, license key, or external service.

= Does the plugin collect visitor information? =
No analytics, tracking, or visitor records are collected. Contact links open the visitor's email or phone application. If you choose an externally hosted logo URL, visitors' browsers request that image from its host. Use your WordPress Media Library to host the logo on your own site.

== Credits ==

Maintenance Buddy is developed by The Buddy Foundry. The bundled code, styles, illustrations, and Maintenance Buddy logo are distributed under GPL-2.0-or-later. The license text is included in LICENSE.txt. The plugin bundles no third-party libraries or remote assets.

== Changelog ==

= 0.1.3 =
Prepared for the WordPress.org Plugin Directory. Removed the direct-distribution Update URI, updated the listing and version labels, clarified translation context, and tightened reset input handling. Existing designs and settings are preserved.

= 0.1.2 =
Added the Maintenance Buddy logo to the settings header. Visitor pages continue to use your chosen branding.

= 0.1.1 =
Added an administrator-only, confirmed reset to defaults and browser autofill hints.

= 0.1.0 =
Initial draft for testing.

== Upgrade Notice ==

= 0.1.3 =
Prepares Maintenance Buddy for WordPress.org distribution and improves reset input handling. Your saved design and maintenance setting are preserved during an ordinary plugin update.
