Version Description
Download this release
Release Info
Developer | Muneeb |
Plugin | WP Maintenance Mode / Coming Soon Page Builder |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.1
- config.php +1 -1
- css/admin-settings.css +5 -0
- images/banner.png +0 -0
- images/minimal-temp.png +0 -0
- images/simple-temp.png +0 -0
- includes/classes/class-wpmmp-settings.php +10 -8
- includes/classes/class-wpmmp-theme-handler.php +3 -0
- readme.txt +21 -5
- views/admin-settings/general-meta-box.php +18 -15
- wp-wpmmp.php +1 -1
config.php
CHANGED
@@ -32,4 +32,4 @@ define( 'WPMMP_PLUGIN_JS_DIRECTORY', WPMMP_PLUGIN_PATH .
|
|
32 |
|
33 |
define( 'WPMMP_PLUGIN_MAIN_FILE', WPMMP_PLUGIN_PATH . 'wp-wpmmp.php' );
|
34 |
|
35 |
-
define( 'WPMMP_PLUGIN_VERSION', '1
|
32 |
|
33 |
define( 'WPMMP_PLUGIN_MAIN_FILE', WPMMP_PLUGIN_PATH . 'wp-wpmmp.php' );
|
34 |
|
35 |
+
define( 'WPMMP_PLUGIN_VERSION', '2.1' );
|
css/admin-settings.css
CHANGED
@@ -128,4 +128,9 @@ table.wpmmp_input tbody tr td.label label {
|
|
128 |
-moz-box-shadow: 3px 3px 5px 6px #ccc;
|
129 |
-webkit-box-shadow: 3px 3px 5px 6px #ccc;
|
130 |
box-shadow: 3px 3px 5px 6px #ccc;
|
|
|
|
|
|
|
|
|
|
|
131 |
}
|
128 |
-moz-box-shadow: 3px 3px 5px 6px #ccc;
|
129 |
-webkit-box-shadow: 3px 3px 5px 6px #ccc;
|
130 |
box-shadow: 3px 3px 5px 6px #ccc;
|
131 |
+
}
|
132 |
+
|
133 |
+
.wpmmp-banner-paid-image {
|
134 |
+
margin-top: 10px;
|
135 |
+
width: 98%;
|
136 |
}
|
images/banner.png
ADDED
Binary file
|
images/minimal-temp.png
ADDED
Binary file
|
images/simple-temp.png
ADDED
Binary file
|
includes/classes/class-wpmmp-settings.php
CHANGED
@@ -54,7 +54,7 @@ class Wpmmp_Settings {
|
|
54 |
|
55 |
$menu_slug = 'wpmmp-settings';
|
56 |
|
57 |
-
|
58 |
|
59 |
}
|
60 |
|
@@ -115,6 +115,8 @@ class Wpmmp_Settings {
|
|
115 |
|
116 |
$themes = wpmmp_get_themes();
|
117 |
|
|
|
|
|
118 |
$this->add_meta_boxes();
|
119 |
|
120 |
if ( ! isset( $_GET['tab'] ) )
|
@@ -144,9 +146,9 @@ class Wpmmp_Settings {
|
|
144 |
|
145 |
if ( $tab == 'settings' ) {
|
146 |
|
147 |
-
$settings['status'] = $_POST['settings']['status'];
|
148 |
|
149 |
-
$theme = $_POST['settings']['theme'];
|
150 |
|
151 |
$settings['theme'] = $theme;
|
152 |
|
@@ -168,7 +170,7 @@ class Wpmmp_Settings {
|
|
168 |
else
|
169 |
$settings['progress_bar'] = false;
|
170 |
|
171 |
-
$settings['progress_bar_range'] = $_POST['settings']['progress_bar_range'];
|
172 |
|
173 |
$settings['countdown_time'] = stripslashes($_POST['settings']['countdown_time']);
|
174 |
|
@@ -223,11 +225,11 @@ class Wpmmp_Settings {
|
|
223 |
|
224 |
$default_settings = array(
|
225 |
'status' => 'disabled',
|
226 |
-
'theme' => 'default-
|
227 |
'title' => get_bloginfo( 'blogname' ) . ' is down',
|
228 |
'heading1' => 'We are down for maintenance',
|
229 |
'heading2' => 'We will be here soon',
|
230 |
-
'content' => '
|
231 |
'countdown_timer' => false,
|
232 |
'countdown_time' => date('Y/m/d H:i a', time() ),
|
233 |
'progress_bar' => false,
|
@@ -296,7 +298,7 @@ class Wpmmp_Settings {
|
|
296 |
|
297 |
}
|
298 |
|
299 |
-
$settings_link = admin_url( '
|
300 |
|
301 |
include wpmmp_view_path( 'admin-settings/plugin_actiavtion_notice' );
|
302 |
|
@@ -304,7 +306,7 @@ class Wpmmp_Settings {
|
|
304 |
|
305 |
function add_settings_link( $links ) {
|
306 |
|
307 |
-
$settings_link = admin_url( '
|
308 |
|
309 |
$settings_link = sprintf( '<a href="%s">Settings</a>', $settings_link );
|
310 |
|
54 |
|
55 |
$menu_slug = 'wpmmp-settings';
|
56 |
|
57 |
+
add_object_page( $page_title, $menu_title, $capability, $menu_slug, array( $this, 'settings_page' ), 'dashicons-hammer' );
|
58 |
|
59 |
}
|
60 |
|
115 |
|
116 |
$themes = wpmmp_get_themes();
|
117 |
|
118 |
+
echo "<a target='_blank' href='http://rocketplugins.com/wordpress-maintenance-mode-plugin/'><img class='wpmmp-banner-paid-image' src='". wpmmp_image_url( 'banner.png' ). "'/></a>";
|
119 |
+
|
120 |
$this->add_meta_boxes();
|
121 |
|
122 |
if ( ! isset( $_GET['tab'] ) )
|
146 |
|
147 |
if ( $tab == 'settings' ) {
|
148 |
|
149 |
+
$settings['status'] = stripslashes($_POST['settings']['status']);
|
150 |
|
151 |
+
$theme = stripslashes($_POST['settings']['theme']);
|
152 |
|
153 |
$settings['theme'] = $theme;
|
154 |
|
170 |
else
|
171 |
$settings['progress_bar'] = false;
|
172 |
|
173 |
+
$settings['progress_bar_range'] = stripslashes($_POST['settings']['progress_bar_range']);
|
174 |
|
175 |
$settings['countdown_time'] = stripslashes($_POST['settings']['countdown_time']);
|
176 |
|
225 |
|
226 |
$default_settings = array(
|
227 |
'status' => 'disabled',
|
228 |
+
'theme' => 'default-4',
|
229 |
'title' => get_bloginfo( 'blogname' ) . ' is down',
|
230 |
'heading1' => 'We are down for maintenance',
|
231 |
'heading2' => 'We will be here soon',
|
232 |
+
'content' => 'Add Maintenance/Coming Soon Message here',
|
233 |
'countdown_timer' => false,
|
234 |
'countdown_time' => date('Y/m/d H:i a', time() ),
|
235 |
'progress_bar' => false,
|
298 |
|
299 |
}
|
300 |
|
301 |
+
$settings_link = admin_url( 'admin.php?page=wpmmp-settings' );
|
302 |
|
303 |
include wpmmp_view_path( 'admin-settings/plugin_actiavtion_notice' );
|
304 |
|
306 |
|
307 |
function add_settings_link( $links ) {
|
308 |
|
309 |
+
$settings_link = admin_url( 'admin.php?page=wpmmp-settings' );
|
310 |
|
311 |
$settings_link = sprintf( '<a href="%s">Settings</a>', $settings_link );
|
312 |
|
includes/classes/class-wpmmp-theme-handler.php
CHANGED
@@ -180,6 +180,9 @@ class Wpmmp_Theme_Handler {
|
|
180 |
|
181 |
}
|
182 |
|
|
|
|
|
|
|
183 |
list( $cd_date, $cd_hr_min ) = explode( 'T', $settings['countdown_time'] );
|
184 |
|
185 |
$cd_date = str_replace( '-' , '/', $cd_date);
|
180 |
|
181 |
}
|
182 |
|
183 |
+
if ( ! isset($settings['countdown_time']) )
|
184 |
+
$settings['countdown_time'] = '';
|
185 |
+
|
186 |
list( $cd_date, $cd_hr_min ) = explode( 'T', $settings['countdown_time'] );
|
187 |
|
188 |
$cd_date = str_replace( '-' , '/', $cd_date);
|
readme.txt
CHANGED
@@ -4,21 +4,37 @@ Donate link: http://rocketplugins.com/wordpress-maintenance-mode-plugin/
|
|
4 |
Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, offline, site offline, unavailable, under construction, underconstruction, wordpress maintenance mode, wordpress under construction,theme
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Adds a responsive maintenance page to your site that lets visitors know your site is down.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
Adds a maintenance page
|
|
|
|
|
15 |
|
16 |
-
Option to choose from 4 different responsive themes. Every theme supports <strong>countdown timer([pro version feature](http://rocketplugins.com/wordpress-maintenance-mode-plugin/))</strong>, <strong>progress bar</strong>, custom html and you can add your own custom content using the visual editor on maintenance mode page with WordPress shortcodes support.
|
17 |
|
18 |
-
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
-
|
|
|
22 |
|
23 |
<strong>For more advanced features, themes and to get guaranteed support be sure to check out our premium version of the plugin, [WordPress maintenance mode pro plugin](http://rocketplugins.com/wordpress-maintenance-mode-plugin/)</strong>
|
24 |
|
4 |
Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, offline, site offline, unavailable, under construction, underconstruction, wordpress maintenance mode, wordpress under construction,theme
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 2.1
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Adds a responsive maintenance page to your site that lets visitors know your site is down.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
Adds a maintenance page or a coming soon page on your site that will let your visitors know you are making some awesome changes. Simply enable the maintenance mode from the plugin settings and in less than a minute you can put your site in maintenance mode.
|
15 |
+
|
16 |
+
With progress bar and countdown timer([pro version feature](http://rocketplugins.com/wordpress-maintenance-mode-plugin/))</strong> the visitors will be informed about the time left in launch.
|
17 |
|
|
|
18 |
|
19 |
+
<b>Features</b>
|
20 |
|
21 |
+
* Simple & easy to use interface - perfect for non tech users, developers & clients!
|
22 |
+
* Create beautiful maintenance mode page for your website
|
23 |
+
* Create beautiful coming soon mode page for your website
|
24 |
+
* Change heading
|
25 |
+
* Change sub-heading
|
26 |
+
* Set custom title for maintenance mode or coming coon page
|
27 |
+
* SEO Optimized
|
28 |
+
* Enable Disable maintenance or coming soon mode
|
29 |
+
* Add Progress bar to landing page
|
30 |
+
* Enable HTTP 503 header
|
31 |
+
* Control RSS Feed Access
|
32 |
+
* Admins can make changes easily without getting maintenance mode page.
|
33 |
+
* Other users then admins and visitors will get a beautiful responsive coming soon page.
|
34 |
+
* Visual editor for changing content
|
35 |
|
36 |
+
|
37 |
+
Option to choose from 4 different responsive themes. Every theme supports <strong>countdown timer([pro version feature](http://rocketplugins.com/wordpress-maintenance-mode-plugin/))</strong>, <strong>progress bar</strong>, custom html and you can add your own custom content using the visual editor on maintenance mode page with WordPress shortcodes support.
|
38 |
|
39 |
<strong>For more advanced features, themes and to get guaranteed support be sure to check out our premium version of the plugin, [WordPress maintenance mode pro plugin](http://rocketplugins.com/wordpress-maintenance-mode-plugin/)</strong>
|
40 |
|
views/admin-settings/general-meta-box.php
CHANGED
@@ -29,27 +29,30 @@
|
|
29 |
</td>
|
30 |
<td>
|
31 |
<ul id="wpmmp-themes">
|
32 |
-
<li>
|
33 |
-
<a href="http://rocketplugins.com/wordpress-maintenance-mode-plugin/" target="_blank"> <img style="height: 208px" src="<?php echo wpmmp_image_url( 'alissa-1.png' ) ?>" />
|
34 |
-
<p><input <?php checked( 'alissa', $settings['theme'] ) ?> type="radio" name="settings[theme]" value="alissa" /> <strong>Paid Theme</strong></p></a>
|
35 |
-
</li>
|
36 |
|
37 |
<li>
|
38 |
-
<img src="<?php echo wpmmp_image_url( 'default-
|
39 |
-
<p><input <?php checked( 'default-
|
40 |
</li>
|
|
|
41 |
<li>
|
42 |
-
<img src="<?php echo wpmmp_image_url( '
|
43 |
-
<p><input <?php checked( '
|
44 |
</li>
|
|
|
45 |
<li>
|
46 |
-
<img src="<?php echo wpmmp_image_url( '
|
47 |
-
<p><input <?php checked( '
|
48 |
</li>
|
|
|
49 |
<li>
|
50 |
-
<img src="<?php echo wpmmp_image_url( '
|
51 |
-
<p><input <?php checked( '
|
52 |
</li>
|
|
|
|
|
|
|
|
|
53 |
|
54 |
<?php foreach ( $themes as $theme ): ?>
|
55 |
<?php endforeach; ?>
|
@@ -104,12 +107,12 @@
|
|
104 |
|
105 |
<td class="label">
|
106 |
<label>
|
107 |
-
<?php _e( '
|
108 |
</label>
|
109 |
<p class="description"></p>
|
110 |
</td>
|
111 |
<td>
|
112 |
-
<?php wp_editor( $settings['content'], 'gcontent-settings', array( 'textarea_name' => 'settings[content]', 'textarea_rows' => 7 ) ) ?>
|
113 |
</td>
|
114 |
|
115 |
</tr>
|
@@ -121,7 +124,7 @@
|
|
121 |
<?php _e( 'Countdown timer', 'wpmmp' ) ?>
|
122 |
</label>
|
123 |
<?php if ( ! defined( 'WPMMP_PRO_VERSION_ENABLED' ) ): ?>
|
124 |
-
<p class="description"><?php _e( '
|
125 |
<?php endif; ?>
|
126 |
</td>
|
127 |
|
29 |
</td>
|
30 |
<td>
|
31 |
<ul id="wpmmp-themes">
|
|
|
|
|
|
|
|
|
32 |
|
33 |
<li>
|
34 |
+
<img src="<?php echo wpmmp_image_url( 'default-4.jpg' ) ?>" />
|
35 |
+
<p><input <?php checked( 'default-4', $settings['theme'] ) ?> type="radio" name="settings[theme]" value="default-4" /><strong>Free Theme</strong></p>
|
36 |
</li>
|
37 |
+
|
38 |
<li>
|
39 |
+
<a href="http://rocketplugins.com/wordpress-maintenance-mode-plugin/" target="_blank"> <img style="height: 208px" src="<?php echo wpmmp_image_url( 'alissa-1.png' ) ?>" />
|
40 |
+
<p><input disabled <?php checked( 'alissa', $settings['theme'] ) ?> type="radio" name="settings[theme]" value="alissa" /> <strong>Paid Theme</strong></p></a>
|
41 |
</li>
|
42 |
+
|
43 |
<li>
|
44 |
+
<a href="http://rocketplugins.com/wordpress-maintenance-mode-plugin/" target="_blank"> <img style="height: 208px" src="<?php echo wpmmp_image_url( 'minimal-temp.png' ) ?>" />
|
45 |
+
<p><input disabled <?php checked( 'alissa', $settings['theme'] ) ?> type="radio" name="settings[theme]" value="Minimal" /> <strong>Paid Theme</strong></p></a>
|
46 |
</li>
|
47 |
+
|
48 |
<li>
|
49 |
+
<a href="http://rocketplugins.com/wordpress-maintenance-mode-plugin/" target="_blank"> <img style="height: 208px" src="<?php echo wpmmp_image_url( 'simple-temp.png' ) ?>" />
|
50 |
+
<p><input disabled <?php checked( 'alissa', $settings['theme'] ) ?> type="radio" name="settings[theme]" value="Stunning Coming Soon" /> <strong>Paid Theme</strong></p></a>
|
51 |
</li>
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
|
57 |
<?php foreach ( $themes as $theme ): ?>
|
58 |
<?php endforeach; ?>
|
107 |
|
108 |
<td class="label">
|
109 |
<label>
|
110 |
+
<?php _e( 'Message', 'wpmmp' ); ?>
|
111 |
</label>
|
112 |
<p class="description"></p>
|
113 |
</td>
|
114 |
<td>
|
115 |
+
<?php wp_editor( $settings['content'], 'gcontent-settings', array( 'textarea_name' => 'settings[content]', 'textarea_rows' => 7, 'teeny' => true, 'media_buttons' => false, 'quicktags' => false ) ) ?>
|
116 |
</td>
|
117 |
|
118 |
</tr>
|
124 |
<?php _e( 'Countdown timer', 'wpmmp' ) ?>
|
125 |
</label>
|
126 |
<?php if ( ! defined( 'WPMMP_PRO_VERSION_ENABLED' ) ): ?>
|
127 |
+
<a target="_blank" href="http://rocketplugins.com/wordpress-maintenance-mode-plugin/"><p style="color: red" class="description"><?php _e( 'Purchase the premium version to get access to this premium feature.', 'wpmmp') ?></p></a>
|
128 |
<?php endif; ?>
|
129 |
</td>
|
130 |
|
wp-wpmmp.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://rocketplugins.com/wordpress-maintenance-mode-plugin/
|
|
5 |
Description: Adds a responsive maintenance page to your site that lets visitors know your site is down.
|
6 |
Author: Muneeb
|
7 |
Author URI: http://rocketplugins.com/wordpress-maintenance-mode-plugin/
|
8 |
-
Version: 2.
|
9 |
Copyright: 2013 Muneeb ur Rehman http://muneeb.me
|
10 |
**/
|
11 |
|
5 |
Description: Adds a responsive maintenance page to your site that lets visitors know your site is down.
|
6 |
Author: Muneeb
|
7 |
Author URI: http://rocketplugins.com/wordpress-maintenance-mode-plugin/
|
8 |
+
Version: 2.1
|
9 |
Copyright: 2013 Muneeb ur Rehman http://muneeb.me
|
10 |
**/
|
11 |
|