Version Description
(18/01/2022) = * Misc: 900 000 Active Installs Celebrations! * Misc: WordPress 5.9 compatibility * Fix: jQuery UI CSS theme reference from jQuery CDN * Misc: Text fixes in the dashboard
Download this release
Release Info
Developer | creativethemeshq |
Plugin | WP Maintenance Mode |
Version | 2.4.2 |
Comparing to | |
See all releases |
Code changes from version 2.4.1 to 2.4.2
- assets/images/recommended/pulsetic.jpeg +0 -0
- changelog.txt +6 -0
- includes/classes/wp-maintenance-mode-admin.php +5 -4
- includes/classes/wp-maintenance-mode.php +1 -1
- includes/functions/helpers.php +6 -0
- readme.txt +8 -2
- views/promo-pulsetic.php +19 -0
- views/settings.php +4 -4
- wp-maintenance-mode.php +1 -1
assets/images/recommended/pulsetic.jpeg
ADDED
Binary file
|
changelog.txt
CHANGED
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
= 2.4.1 (20/07/2021) =
|
2 |
* Misc: WordPress 5.8 compatibility
|
3 |
|
1 |
+
= 2.4.2 (18/01/2022) =
|
2 |
+
* Misc: 900 000 Active Installs Celebrations!
|
3 |
+
* Misc: WordPress 5.9 compatibility
|
4 |
+
* Fix: jQuery UI CSS theme reference from jQuery CDN
|
5 |
+
* Misc: Text fixes in the dashboard
|
6 |
+
|
7 |
= 2.4.1 (20/07/2021) =
|
8 |
* Misc: WordPress 5.8 compatibility
|
9 |
|
includes/classes/wp-maintenance-mode-admin.php
CHANGED
@@ -79,12 +79,13 @@ if ( ! class_exists( 'WP_Maintenance_Mode_Admin' ) ) {
|
|
79 |
return;
|
80 |
}
|
81 |
|
|
|
82 |
$screen = get_current_screen();
|
83 |
if ( $this->plugin_screen_hook_suffix === $screen->id ) {
|
84 |
$wp_scripts = wp_scripts();
|
85 |
$ui = $wp_scripts->query( 'jquery-ui-core' );
|
86 |
|
87 |
-
wp_enqueue_style( $this->plugin_slug . '-admin-jquery-ui-styles', '//
|
88 |
wp_enqueue_style( $this->plugin_slug . '-admin-chosen', WPMM_CSS_URL . 'chosen' . WPMM_ASSETS_SUFFIX . '.css', array(), WP_Maintenance_Mode::VERSION );
|
89 |
wp_enqueue_style( $this->plugin_slug . '-admin-timepicker-addon-script', WPMM_CSS_URL . 'jquery-ui-timepicker-addon' . WPMM_ASSETS_SUFFIX . '.css', array(), WP_Maintenance_Mode::VERSION );
|
90 |
wp_enqueue_style( $this->plugin_slug . '-admin-styles', WPMM_CSS_URL . 'style-admin' . WPMM_ASSETS_SUFFIX . '.css', array( 'wp-color-picker' ), WP_Maintenance_Mode::VERSION );
|
@@ -606,10 +607,10 @@ if ( ! class_exists( 'WP_Maintenance_Mode_Admin' ) ) {
|
|
606 |
// delete wpmm_notice
|
607 |
delete_option( 'wpmm_notice' );
|
608 |
|
609 |
-
// notice for
|
610 |
ob_start();
|
611 |
-
include_once wpmm_get_template_path( 'promo-
|
612 |
-
$notices['promo-
|
613 |
'class' => 'wpmm_notices updated notice is-dismissible',
|
614 |
'msg' => ob_get_clean(),
|
615 |
);
|
79 |
return;
|
80 |
}
|
81 |
|
82 |
+
|
83 |
$screen = get_current_screen();
|
84 |
if ( $this->plugin_screen_hook_suffix === $screen->id ) {
|
85 |
$wp_scripts = wp_scripts();
|
86 |
$ui = $wp_scripts->query( 'jquery-ui-core' );
|
87 |
|
88 |
+
wp_enqueue_style( $this->plugin_slug . '-admin-jquery-ui-styles', '//code.jquery.com/ui/' . ( ! empty( $ui->ver ) ? $ui->ver : '1.11.4' ) . '/themes/smoothness/jquery-ui' . WPMM_ASSETS_SUFFIX . '.css', array(), WP_Maintenance_Mode::VERSION );
|
89 |
wp_enqueue_style( $this->plugin_slug . '-admin-chosen', WPMM_CSS_URL . 'chosen' . WPMM_ASSETS_SUFFIX . '.css', array(), WP_Maintenance_Mode::VERSION );
|
90 |
wp_enqueue_style( $this->plugin_slug . '-admin-timepicker-addon-script', WPMM_CSS_URL . 'jquery-ui-timepicker-addon' . WPMM_ASSETS_SUFFIX . '.css', array(), WP_Maintenance_Mode::VERSION );
|
91 |
wp_enqueue_style( $this->plugin_slug . '-admin-styles', WPMM_CSS_URL . 'style-admin' . WPMM_ASSETS_SUFFIX . '.css', array( 'wp-color-picker' ), WP_Maintenance_Mode::VERSION );
|
607 |
// delete wpmm_notice
|
608 |
delete_option( 'wpmm_notice' );
|
609 |
|
610 |
+
// notice for pulsetic
|
611 |
ob_start();
|
612 |
+
include_once wpmm_get_template_path( 'promo-pulsetic.php' );
|
613 |
+
$notices['promo-pulsetic'] = array(
|
614 |
'class' => 'wpmm_notices updated notice is-dismissible',
|
615 |
'msg' => ob_get_clean(),
|
616 |
);
|
includes/classes/wp-maintenance-mode.php
CHANGED
@@ -6,7 +6,7 @@ if ( ! class_exists( 'WP_Maintenance_Mode' ) ) {
|
|
6 |
|
7 |
class WP_Maintenance_Mode {
|
8 |
|
9 |
-
const VERSION = '2.4.
|
10 |
|
11 |
protected $plugin_slug = 'wp-maintenance-mode';
|
12 |
protected $plugin_settings;
|
6 |
|
7 |
class WP_Maintenance_Mode {
|
8 |
|
9 |
+
const VERSION = '2.4.2';
|
10 |
|
11 |
protected $plugin_slug = 'wp-maintenance-mode';
|
12 |
protected $plugin_settings;
|
includes/functions/helpers.php
CHANGED
@@ -108,6 +108,12 @@ function wpmm_get_banner_url( $filename ) {
|
|
108 |
*/
|
109 |
function wpmm_get_banners() {
|
110 |
return array(
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
array(
|
112 |
'title' => 'Blocksy',
|
113 |
'link' => 'https://creativethemes.com/blocksy/',
|
108 |
*/
|
109 |
function wpmm_get_banners() {
|
110 |
return array(
|
111 |
+
array(
|
112 |
+
'title' => 'Pulsetic',
|
113 |
+
'link' => 'https://pulsetic.com/',
|
114 |
+
'image' => 'pulsetic.jpeg',
|
115 |
+
'utm' => true,
|
116 |
+
),
|
117 |
array(
|
118 |
'title' => 'Blocksy',
|
119 |
'link' => 'https://creativethemes.com/blocksy/',
|
readme.txt
CHANGED
@@ -6,8 +6,8 @@ Author: Designmodo
|
|
6 |
Author URI: https://designmodo.com/
|
7 |
Tags: maintenance mode, admin, administration, unavailable, coming soon, multisite, landing page, under construction, contact form, subscribe, countdown
|
8 |
Requires at least: 3.5
|
9 |
-
Tested up to: 5.
|
10 |
-
Stable tag: 2.4.
|
11 |
Requires PHP: 5.6
|
12 |
License: GPL-2.0+
|
13 |
|
@@ -79,6 +79,12 @@ Notice: `wp-cron.php` is excluded by default.
|
|
79 |
|
80 |
== Changelog ==
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
= 2.4.1 (20/07/2021) =
|
83 |
* Misc: WordPress 5.8 compatibility
|
84 |
|
6 |
Author URI: https://designmodo.com/
|
7 |
Tags: maintenance mode, admin, administration, unavailable, coming soon, multisite, landing page, under construction, contact form, subscribe, countdown
|
8 |
Requires at least: 3.5
|
9 |
+
Tested up to: 5.9
|
10 |
+
Stable tag: 2.4.2
|
11 |
Requires PHP: 5.6
|
12 |
License: GPL-2.0+
|
13 |
|
79 |
|
80 |
== Changelog ==
|
81 |
|
82 |
+
= 2.4.2 (18/01/2022) =
|
83 |
+
* Misc: 900 000 Active Installs Celebrations!
|
84 |
+
* Misc: WordPress 5.9 compatibility
|
85 |
+
* Fix: jQuery UI CSS theme reference from jQuery CDN
|
86 |
+
* Misc: Text fixes in the dashboard
|
87 |
+
|
88 |
= 2.4.1 (20/07/2021) =
|
89 |
* Misc: WordPress 5.8 compatibility
|
90 |
|
views/promo-pulsetic.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Promo Pulsetic
|
4 |
+
*
|
5 |
+
* @version 2.4.0
|
6 |
+
*/
|
7 |
+
|
8 |
+
defined( 'ABSPATH' ) || exit;
|
9 |
+
?>
|
10 |
+
<strong><?php esc_html_e( 'Is Your Website Down? We\'ll Alert You!
|
11 |
+
', 'wp-maintenance-mode' ); ?></strong>
|
12 |
+
|
13 |
+
<br /><br />
|
14 |
+
<?php esc_html_e( 'Get website downtime alerts by phone call, SMS, email or Slack if your website is down. Create beautiful status pages & incident management reports and keep your visitors updated.', 'wp-maintenance-mode' ); ?>
|
15 |
+
<br /><br />
|
16 |
+
|
17 |
+
<a class="button button-primary" href="<?php echo esc_url( wpmm_get_utmized_url( 'https://pulsetic.com/', array( 'source' => 'noticewpmm' ) ) ); ?>" target="_blank">
|
18 |
+
<?php esc_html_e( 'Monitor Your Website and Create Status Pages', 'wp-maintenance-mode' ); ?>
|
19 |
+
</a>
|
views/settings.php
CHANGED
@@ -85,7 +85,7 @@ defined( 'ABSPATH' ) || exit;
|
|
85 |
<option value="<?php echo esc_attr( $role_key ); ?>"<?php echo wpmm_multiselect( (array) $this->plugin_settings['general']['backend_role'], $role_key ); ?>><?php echo esc_html( $role_name ); ?></option>
|
86 |
<?php } ?>
|
87 |
</select>
|
88 |
-
<p class="description"><?php esc_html_e( 'Which user role is allowed to access the backend of
|
89 |
</td>
|
90 |
</tr>
|
91 |
<tr valign="top">
|
@@ -98,7 +98,7 @@ defined( 'ABSPATH' ) || exit;
|
|
98 |
<option value="<?php echo esc_attr( $role_key ); ?>"<?php echo wpmm_multiselect( (array) $this->plugin_settings['general']['frontend_role'], $role_key ); ?>><?php echo esc_html( $role_name ); ?></option>
|
99 |
<?php } ?>
|
100 |
</select>
|
101 |
-
<p class="description"><?php esc_html_e( 'Which user role is allowed to access the frontend of
|
102 |
</td>
|
103 |
</tr>
|
104 |
<tr valign="top">
|
@@ -119,7 +119,7 @@ defined( 'ABSPATH' ) || exit;
|
|
119 |
</th>
|
120 |
<td>
|
121 |
<input type="text" value="<?php echo esc_url( $this->plugin_settings['general']['redirection'] ); ?>" name="options[general][redirection]" />
|
122 |
-
<p class="description"><?php esc_html_e( 'If you want to redirect a user (with no access to Dashboard/Backend) to a URL (different from WordPress Dashboard URL) after login, then define a URL (incl.
|
123 |
</td>
|
124 |
</tr>
|
125 |
<tr valign="top">
|
@@ -642,7 +642,7 @@ defined( 'ABSPATH' ) || exit;
|
|
642 |
<tbody>
|
643 |
<tr valign="top">
|
644 |
<td colspan="2">
|
645 |
-
<h4><?php esc_html_e( 'Setup the conversation steps to capture more subscribers with this friendly way of asking email
|
646 |
<p><?php esc_html_e( 'You may also want to use these wildcards: {bot_name} and {visitor_name} to make the conversation even more realistic.', 'wp-maintenance-mode' ); ?></p>
|
647 |
<p><?php esc_html_e( 'It is also ok if you don\'t fill in all the conversation steps if you don\'t need to.', 'wp-maintenance-mode' ); ?></p>
|
648 |
<p><?php esc_html_e( 'If you want to see the list of subscribers, go to Modules » Subscribe » Export as CSV.', 'wp-maintenance-mode' ); ?></p>
|
85 |
<option value="<?php echo esc_attr( $role_key ); ?>"<?php echo wpmm_multiselect( (array) $this->plugin_settings['general']['backend_role'], $role_key ); ?>><?php echo esc_html( $role_name ); ?></option>
|
86 |
<?php } ?>
|
87 |
</select>
|
88 |
+
<p class="description"><?php esc_html_e( 'Which user role is allowed to access the backend of the website? Administrators will always have access.', 'wp-maintenance-mode' ); ?></p>
|
89 |
</td>
|
90 |
</tr>
|
91 |
<tr valign="top">
|
98 |
<option value="<?php echo esc_attr( $role_key ); ?>"<?php echo wpmm_multiselect( (array) $this->plugin_settings['general']['frontend_role'], $role_key ); ?>><?php echo esc_html( $role_name ); ?></option>
|
99 |
<?php } ?>
|
100 |
</select>
|
101 |
+
<p class="description"><?php esc_html_e( 'Which user role is allowed to access the frontend of the website? Administrators will always have access.', 'wp-maintenance-mode' ); ?></p>
|
102 |
</td>
|
103 |
</tr>
|
104 |
<tr valign="top">
|
119 |
</th>
|
120 |
<td>
|
121 |
<input type="text" value="<?php echo esc_url( $this->plugin_settings['general']['redirection'] ); ?>" name="options[general][redirection]" />
|
122 |
+
<p class="description"><?php esc_html_e( 'If you want to redirect a user (with no access to Dashboard/Backend) to a URL (different from WordPress Dashboard URL) after login, then define a URL (incl. https://)', 'wp-maintenance-mode' ); ?></p>
|
123 |
</td>
|
124 |
</tr>
|
125 |
<tr valign="top">
|
642 |
<tbody>
|
643 |
<tr valign="top">
|
644 |
<td colspan="2">
|
645 |
+
<h4><?php esc_html_e( 'Setup the conversation steps to capture more subscribers with this friendly way of asking email addresses.', 'wp-maintenance-mode' ); ?></h4>
|
646 |
<p><?php esc_html_e( 'You may also want to use these wildcards: {bot_name} and {visitor_name} to make the conversation even more realistic.', 'wp-maintenance-mode' ); ?></p>
|
647 |
<p><?php esc_html_e( 'It is also ok if you don\'t fill in all the conversation steps if you don\'t need to.', 'wp-maintenance-mode' ); ?></p>
|
648 |
<p><?php esc_html_e( 'If you want to see the list of subscribers, go to Modules » Subscribe » Export as CSV.', 'wp-maintenance-mode' ); ?></p>
|
wp-maintenance-mode.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin Name: WP Maintenance Mode
|
6 |
* Plugin URI: https://designmodo.com/
|
7 |
* Description: Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
|
8 |
-
* Version: 2.4.
|
9 |
* Author: Designmodo
|
10 |
* Author URI: https://designmodo.com/
|
11 |
* Twitter: designmodo
|
5 |
* Plugin Name: WP Maintenance Mode
|
6 |
* Plugin URI: https://designmodo.com/
|
7 |
* Description: Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
|
8 |
+
* Version: 2.4.2
|
9 |
* Author: Designmodo
|
10 |
* Author URI: https://designmodo.com/
|
11 |
* Twitter: designmodo
|