=== Surf7 Simple Maintenance Mode ===
Contributors: surf7net
Tags: maintenance mode, under construction, site maintenance, maintenance
Requires at least: 5.0
Tested up to: 6.7.1
Requires PHP: 7.0
Stable tag: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Enable maintenance mode with one click. Logged-in users can view the site; others see a custom message or are redirected.

== Description ==

**Surf7 Simple Maintenance Mode** is a straightforward plugin that allows you to put your WordPress website into maintenance mode with just one click. When maintenance mode is enabled:

- Only logged-in users (any role) can access the frontend.
- Non-logged-in users will either see a predefined message or be redirected to a specific URL.

**Features:**

- **Easy Activation:** Enable or disable maintenance mode from the WordPress dashboard.
- **Custom Maintenance Message:** Set a personalized message to display to visitors.
- **Redirect Option:** Redirect visitors to another URL if desired.
- **Access Control:** Only logged-in users can view the site when maintenance mode is active.

**Use Cases:**

- Performing website updates or maintenance tasks.
- Launching a new website or making significant changes.
- Temporarily restricting access to the public.

== Installation ==

1. **Upload the Plugin Files:**

   - Upload the `surf7-simple-maintenance-mode` folder to the `/wp-content/plugins/` directory.
   - Alternatively, install the plugin through the WordPress plugins screen directly by navigating to **Plugins** > **Add New**, searching for "Surf7 Simple Maintenance Mode," and clicking **Install Now**.

2. **Activate the Plugin:**

   - Activate the plugin through the **Plugins** screen in WordPress.

3. **Configure the Settings:**

   - Go to **Settings** > **Maintenance Mode**.
   - Enable maintenance mode by checking the **Enable Maintenance Mode** option.
   - Set a custom maintenance message or specify a redirect URL.
   - Click **Save Changes**.

== Frequently Asked Questions ==

= How do I enable maintenance mode? =

- Navigate to **Settings** > **Maintenance Mode** in your WordPress dashboard.
- Check the **Enable Maintenance Mode** option.
- Click **Save Changes**.

= Can I customize the maintenance message? =

- Yes, you can set a custom message in the **Maintenance Message** field on the settings page.

= How do I redirect visitors to another URL? =

- Enter the full URL (including `http://` or `https://`) in the **Redirect URL** field on the settings page.
- Leave the field empty if you prefer to display the maintenance message instead.

= Will logged-in users be affected by maintenance mode? =

- No, logged-in users (any role) can access the site normally when maintenance mode is enabled.

= Is this plugin compatible with the latest version of WordPress and PHP? =

- Yes, the plugin is tested up to WordPress version 6.3 and requires PHP 7.0 or higher.

== Screenshots ==

1. **Settings Page:** The maintenance mode settings page where you can enable the mode, set a custom message, or specify a redirect URL.
   - ![Settings Page](assets/screenshot-1.png)

2. **Maintenance Message Display:** An example of the maintenance message displayed to non-logged-in users.
   - ![Maintenance Message](assets/screenshot-2.png)

== Changelog ==

= 1.0 =
* Initial release of Surf7 Simple Maintenance Mode.

== Upgrade Notice ==

= 1.0 =
* First release.

== Additional Notes ==

**License**

This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License, or any later version.

**Support**

For support and feature requests, please visit the [support forum](https://wordpress.org/support/plugin/surf7-simple-maintenance-mode/).

== Arbitrary Section ==

You can remove this section or use it to provide any additional information that doesn't fit into the other categories.

== A Brief Markdown Example ==

This plugin supports **Markdown**, which allows you to format your text using simple syntax. For example:

- **Bold Text**
- *Italic Text*
- [Links](https://example.com)

