=== Super Easy Maintenance Mode - Coming Soon & Under Construction ===
Contributors: elenovadigital
Tags: coming soon page, coming soon mode, maintenance page, maintenance mode, under construction
Requires at least: 5.2
Tested up to: 6.8
Requires PHP: 7.2
Stable tag: 1.0.7
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: super-easy-maintenance-mode
Domain Path: /languages

Enable coming soon page, maintenance mode, under construction page in just one click toggle.

== Description ==
= Coming Soon Page, Under Construction, Maintenance Mode WordPress Plugin =
Super Easy Maintenance Mode allows you to easily toggle your WordPress site’s maintenance mode with customizable options, scheduling, and reporting. You can enable or disable maintenance mode, whitelist specific IPs and user roles, and customize various design settings for the maintenance page.

This plugin ensures that you can effortlessly create polished and visually appealing maintenance pages, even without any coding knowledge. Our team has worked hard to deliver a user-friendly solution that makes setting up under-construction pages quick and simple. Whether you’re preparing for a new website launch, performing regular updates, or addressing critical maintenance, this plugin has you covered.

= Responsive Coming Soon, Maintenance, Under Construction Page Design =
The Super Easy Maintenance Mode, Coming Soon Plugin provides creative, modern, and responsive designs for your maintenance pages. Under construction pages are carefully crafted to look great on all devices, from desktops to smartphones. This ensures that your website maintains a professional and attractive appearance regardless of how visitors access it.

= Versatile Functionality = 
This plugin is ideal for a wide range of scenarios. Whether you need to create maintenance mode pages for scheduled updates, design coming soon pages to build anticipation for a new website, or set up under-construction pages to inform visitors about ongoing work, this plugin delivers the tools and flexibility required for any situation.

= Ease of Use =
Even if you lack technical expertise, you can create beautiful Coming Soon pages effortlessly with this plugin. It is designed to work seamlessly with all WordPress themes and other plugins, eliminating any compatibility issues and ensuring a hassle-free setup process. Its intuitive interface allows you to configure and customize your pages in just a few clicks.

= Key Advantages =

- **Inform Visitors**: Keep your audience updated about new launches or ongoing updates with professional-looking maintenance pages that effectively communicate your message.
- **Engage Users**: Create Under construction pages that include, engaging visuals, and Social media icons to maintain interest and build anticipation.
- **Seamless Access for Administrators**: Ensure that authorized users can manage and view the site’s front end during maintenance without disruption to their workflow.
- **Maintain Professionalism**: Showcase your website’s commitment to quality by displaying polished and responsive pages even during downtime due to updates. 

The Super Easy Maintenance Mode Plugin is a fast, reliable, and user-friendly solution, designed to cater to all your maintenance page needs while keeping your website’s professionalism intact.

== Features ==

* **Enable or Disable Maintenance Mode**: Quickly toggle between maintenance and live mode.
* **Whitelisting by IP**: Allow specific IP addresses to access the site even when maintenance mode is enabled.
* **Whitelisting by User Role**: Grant access to specific user roles (e.g., Admins) during maintenance.
* **Customizable Background**: Set background colors or upload a custom background image for your maintenance page.
* **Customizable Content Block**: Control the background color of the main content block.
* **Background Opacity Control**: Adjust the opacity of the background overlay for a more subtle effect.
* **Custom Text Styling**: Easily change the text color for headers, paragraphs, and other text elements.
* **Customizable Buttons**: Modify button colors, text, and hover effects to match your branding.
* **Contact Email Display**: Show an email address for users to contact you while the site is under maintenance.
* **Custom Footer**: Add copyright text or any custom message at the bottom of the page.
* **Social Media Links**: Display links to your social media profiles (Facebook, Twitter, Instagram, LinkedIn).
* **Custom Logo and Header**: Upload your logo and set a custom header text for the maintenance page.
* **Customizable Button Text**: Change the button text displayed on the maintenance page.
* **Meta Title & Description**: Set custom meta title and description for SEO optimization while in maintenance mode.
  * **Meta Title**: The title that will appear in search engine results when the site is in maintenance mode.
  * **Meta Description**: The description that will be shown in search engine results while the site is in maintenance mode.


== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/super-easy-maintenance-mode/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to the 'Maintenance Mode' menu in the WordPress admin panel to configure the settings.

== Frequently Asked Questions ==

= How do I enable or disable maintenance mode? =
You can toggle maintenance mode ON or OFF from the plugin settings page under the 'Maintenance Mode' menu.

= How can I whitelist specific IPs or user roles? =
You can enter IPs one per line in the 'Whitelisted IPs' field or add user roles (comma-separated) in the 'Whitelisted User Roles' field.

= Can I customize the maintenance page design? =
Yes, the plugin allows you to customize header text, paragraph text, button text, background color, text colors, and even upload a custom background image.

= Where can I view the maintenance mode reports? =
You can view maintenance mode reports under the 'Reports' submenu of the 'Maintenance Mode' menu in the admin panel.

== Screenshots ==

1. **Settings Panel:** Easily toggle and customize maintenance mode options.
2. **Maintenance Page Example:** View how your visitors see the site during maintenance.

== Changelog ==

= 1.0.7 =
* **Fixes and Improvements**:
  * Fixed plugin copyright text field issues
  * Fixed Plugin main block glass effect color issues
  * Improved plugin security

= 1.0.6 =
* **Fixes and Improvements**:
  * Fixed plugin file issues
  * Improved plugin security

= 1.0.5 =
* **UI/UX Improvements**:
  * Completely redesigned admin settings page with a modern, professional interface.
  * Fixed tab styling to prevent global CSS conflicts with other plugins and WordPress admin.
  * Improved visual hierarchy and spacing throughout the settings interface.
  * Enhanced color picker controls with better visual feedback.

* **Social Media Updates**:
  * Updated Twitter to X (Twitter) to reflect the platform's rebranding.
  * Updated social media icon to match the new X branding.

* **Feature Enhancements**:
  * SEO settings (meta title and description) are now automatically disabled when maintenance mode is turned off.
  * Meta tags are only injected into the page when maintenance mode is active and users should see the maintenance page.
  * Improved background image selection interface with visual previews.
  * Enhanced user role selection with better autocomplete functionality.

* **Security Enhancements**:
  * Added comprehensive nonce verification for all form submissions.
  * Implemented strict capability checks (`manage_options`) throughout the plugin.
  * Enhanced input validation and sanitization for all user inputs including:
    - IP address validation with security checks against file upload attacks.
    - User role validation against valid WordPress roles.
    - Social media URL validation and sanitization.
    - Image file type and size validation (5MB max, proper MIME type checking).
    - Image dimension validation (minimum 50x50px, maximum 5000x5000px).
  * Secured AJAX requests with proper nonce validation.
  * Improved client IP detection with validation.
  * Added protection against various attack vectors including XSS and file upload exploits.

* **Code Quality**:
  * Refactored code for better maintainability and performance.
  * Improved error handling and user feedback.
  * Enhanced admin bar menu with proper escaping and sanitization.
  * Optimized asset loading with conditional enqueuing.

= 1.0.4 =
* Added tabbed layout on the admin settings page for improved navigation.
* Introduced background image selection with visual previews and active state highlighting.
* Implemented "type and select" autocomplete feature for user role selection.
* Enhanced plugin UI/UX with cleaner layout, improved spacing, and interactive controls.
* Optimized form behavior for better accessibility and usability.

= 1.0.3 =
* Added responsive design with media queries to ensure the plugin's maintenance page adapts to various screen sizes, including tablets and mobile devices.
* Improved user experience across all devices.

= 1.0.2 =
* **New Features**:
  * Added options for setting **Facebook URL**, **Twitter URL**, **Instagram URL**, and **LinkedIn URL** to display social media links on the maintenance page.
  * Added customization for **Meta Title** and **Meta Description** to improve SEO during maintenance mode. The meta title and description will be shown in search engine results, even when the site is in maintenance mode.
  * Added settings for **Main Block Background Color** and **Background Opacity** for more styling options on the maintenance page.

* **Fixes and Improvements**:
  * Enhanced sanitization and validation for settings inputs to ensure proper handling of user data.

= 1.0.1 =
* Improved background image handling: The plugin now uses a default image.
* Added the ability to display social media icons on the maintenance page for better user engagement.
* Enhanced user experience with additional customization options for the maintenance page.
* Optimized input sanitization and validation for improved security and functionality.

= 1.0.0 =
* Initial release.


== Credits ==

Developed by [Elenova Digital](https://elenovadigital.com/).
