Maintenance - Version 4.02

Version Description

Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Maintenance
Version 4.02
Comparing to
See all releases

Code changes from version 4.01 to 4.02

includes/functions.php CHANGED
@@ -352,7 +352,7 @@ function mtnc_add_data_fields($object, $box)
352
  mtnc_generate_number_filed(__('Set Logo Width', 'maintenance'), 'logo_width', 'logo_width', $logo_width);
353
  mtnc_generate_number_filed(__('Set Logo Height', 'maintenance'), 'logo_height', 'logo_height', $logo_height);
354
  mtnc_generate_image_filed(__('Logo', 'maintenance'), 'logo', 'logo', (int) $mt_option['logo'], 'boxes box-logo', __('Upload Logo', 'maintenance'), 'upload_logo upload_btn button');
355
- mtnc_generate_image_filed(__('Retina Logo', 'maintenance'), 'retina_logo', 'retina_logo', (int) $mt_option['retina_logo'], 'boxes box-logo', __('Upload Retina Logo', 'maintenance'), 'upload_logo upload_btn button');
356
  do_action('mtnc_background_field');
357
  mtnc_generate_image_filed(__('Background Image (portrait mode)', 'maintenance'), 'bg_image_portrait', 'bg_image_portrait', isset($mt_option['bg_image_portrait']) ? (int) $mt_option['bg_image_portrait'] : '', 'boxes box-logo', __('Upload image for portrait device orientation', 'maintenance'), 'upload_logo upload_btn button');
358
  mtnc_generate_image_filed(__('Page Preloader Image', 'maintenance'), 'preloader_img', 'preloader_img', isset($mt_option['preloader_img']) ? (int) $mt_option['preloader_img'] : '', 'boxes box-logo', __('Upload preloader', 'maintenance'), 'upload_logo upload_btn button');
352
  mtnc_generate_number_filed(__('Set Logo Width', 'maintenance'), 'logo_width', 'logo_width', $logo_width);
353
  mtnc_generate_number_filed(__('Set Logo Height', 'maintenance'), 'logo_height', 'logo_height', $logo_height);
354
  mtnc_generate_image_filed(__('Logo', 'maintenance'), 'logo', 'logo', (int) $mt_option['logo'], 'boxes box-logo', __('Upload Logo', 'maintenance'), 'upload_logo upload_btn button');
355
+ mtnc_generate_image_filed(__('Retina Logo (optional)', 'maintenance'), 'retina_logo', 'retina_logo', (int) $mt_option['retina_logo'], 'boxes box-logo', __('Upload Retina Logo', 'maintenance'), 'upload_logo upload_btn button');
356
  do_action('mtnc_background_field');
357
  mtnc_generate_image_filed(__('Background Image (portrait mode)', 'maintenance'), 'bg_image_portrait', 'bg_image_portrait', isset($mt_option['bg_image_portrait']) ? (int) $mt_option['bg_image_portrait'] : '', 'boxes box-logo', __('Upload image for portrait device orientation', 'maintenance'), 'upload_logo upload_btn button');
358
  mtnc_generate_image_filed(__('Page Preloader Image', 'maintenance'), 'preloader_img', 'preloader_img', isset($mt_option['preloader_img']) ? (int) $mt_option['preloader_img'] : '', 'boxes box-logo', __('Upload preloader', 'maintenance'), 'upload_logo upload_btn button');
load/css/style.css CHANGED
@@ -380,26 +380,6 @@ footer .center {
380
  max-width: 210px
381
  }
382
 
383
- .wpcf7 input,.wpcf7 textarea {
384
- color: inherit;
385
- background-color: rgba(113,113,113,0.6);
386
- padding: 10px 0
387
- }
388
-
389
- .wpcf7 .screen-reader-response {
390
- padding: 10px 5px
391
- }
392
-
393
- .wpcf7 .screen-reader-response ul {
394
- font-size: 14px;
395
- padding: 0 0 0 20px
396
- }
397
-
398
- .wpcf7 .wpcf7-not-valid-tip {
399
- padding-left: 10px;
400
- font-size: 11px
401
- }
402
-
403
  .ie8 .login-form input[type="text"],.ie8 .login-form input[type="password"],.ie7 .login-form input[type="text"],.ie7 .login-form input[type="password"] {
404
  background-color: #717171
405
  }
@@ -538,16 +518,6 @@ input[type="submit"]:hover{
538
  animation-timing-function: linear
539
  }
540
 
541
- .wpcf7 {
542
- max-width: 400px;
543
- margin: 0 auto
544
- }
545
-
546
- .wpcf7 input,.wpcf7 textarea {
547
- width: 100%;
548
- padding: 10px;
549
- box-sizing: border-box;
550
- }
551
  .site-title, .preloader i, .login-form, .login-form a.lost-pass, .btn-open-login-form, .site-content, .user-content-wrapper, .user-content, footer, .maintenance a{
552
  color: #ffffff;
553
  }
380
  max-width: 210px
381
  }
382
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
383
  .ie8 .login-form input[type="text"],.ie8 .login-form input[type="password"],.ie7 .login-form input[type="text"],.ie7 .login-form input[type="password"] {
384
  background-color: #717171
385
  }
518
  animation-timing-function: linear
519
  }
520
 
 
 
 
 
 
 
 
 
 
 
521
  .site-title, .preloader i, .login-form, .login-form a.lost-pass, .btn-open-login-form, .site-content, .user-content-wrapper, .user-content, footer, .maintenance a{
522
  color: #ffffff;
523
  }
load/functions.php CHANGED
@@ -139,32 +139,6 @@ function mtnc_add_custom_scripts()
139
 
140
  wp_script_add_data('jquery_ie', 'conditional', 'lte IE 10');
141
 
142
- if (class_exists('WPCF7')) {
143
- wp_register_script('_cf7scripts', MTNC_URI . '../contact-form-7/includes/js/scripts.js', '', filemtime(MTNC_DIR . '../contact-form-7/includes/js/scripts.js'), true);
144
- $wpcf7 = array(
145
- 'apiSettings' => array(
146
- 'root' => esc_url_raw(rest_url('contact-form-7/v1')),
147
- 'namespace' => 'contact-form-7/v1',
148
- ),
149
- 'recaptcha' => array(
150
- 'messages' => array(
151
- 'empty' =>
152
- __('Please verify that you are not a robot.', 'contact-form-7'),
153
- ),
154
- ),
155
- );
156
-
157
- if (defined('WP_CACHE') && WP_CACHE) {
158
- $wpcf7['cached'] = 1;
159
- }
160
-
161
- if (wpcf7_support_html5_fallback()) {
162
- $wpcf7['jqueryUi'] = 1;
163
- }
164
-
165
- wp_localize_script('_cf7scripts', 'wpcf7', $wpcf7);
166
- }
167
-
168
  if (!empty($mt_options['body_bg']) && empty($mt_options['gallery_array']['attachment_ids'])) {
169
  $bg = wp_get_attachment_image_src($mt_options['body_bg'], 'full');
170
  $js_options['body_bg'] = esc_url($bg[0]);
@@ -185,10 +159,6 @@ function mtnc_add_custom_scripts()
185
  $wp_scripts->do_items('_backstretch');
186
 
187
  $wp_scripts->do_items('_frontend');
188
-
189
- if (class_exists('WPCF7')) {
190
- $wp_scripts->do_items('_cf7scripts');
191
- }
192
  }
193
 
194
  add_action('load_custom_scripts', 'mtnc_add_custom_scripts', 15);
139
 
140
  wp_script_add_data('jquery_ie', 'conditional', 'lte IE 10');
141
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  if (!empty($mt_options['body_bg']) && empty($mt_options['gallery_array']['attachment_ids'])) {
143
  $bg = wp_get_attachment_image_src($mt_options['body_bg'], 'full');
144
  $js_options['body_bg'] = esc_url($bg[0]);
159
  $wp_scripts->do_items('_backstretch');
160
 
161
  $wp_scripts->do_items('_frontend');
 
 
 
 
162
  }
163
 
164
  add_action('load_custom_scripts', 'mtnc_add_custom_scripts', 15);
load/index.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  $mess_arr = array();
3
- $ebody_class = null;
4
  $mess_arr = mtnc_get_custom_login_code();
5
  if ( ! empty( $mess_arr[0] ) ) {
6
  $ebody_class = 'error';
@@ -83,7 +83,7 @@ $google_fonts = mtnc_add_google_fonts();
83
  ?>
84
  </head>
85
 
86
- <body <?php body_class( 'maintenance ' . $ebody_class ); ?>>
87
 
88
  <?php do_action( 'before_main_container' ); ?>
89
  <div class="main-container">
1
  <?php
2
  $mess_arr = array();
3
+ $ebody_class = '';
4
  $mess_arr = mtnc_get_custom_login_code();
5
  if ( ! empty( $mess_arr[0] ) ) {
6
  $ebody_class = 'error';
83
  ?>
84
  </head>
85
 
86
+ <body class="maintenance <?php echo $ebody_class; ?>">
87
 
88
  <?php do_action( 'before_main_container' ); ?>
89
  <div class="main-container">
load/js/jquery.frontend.js CHANGED
@@ -35,7 +35,7 @@ jQuery(document).ready(function() {
35
  }
36
  });
37
 
38
- jQuery(window).load(function() {
39
  jQuery('#content').center();
40
 
41
  jQuery('.main-container > div:not(".preloader")').each(function() {
35
  }
36
  });
37
 
38
+ jQuery(window).on('load', function() {
39
  jQuery('#content').center();
40
 
41
  jQuery('.main-container > div:not(".preloader")').each(function() {
load/js/jquery.frontend.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(){jQuery(window).resize();jQuery('.main-container > div:not(".preloader")').each(function(){jQuery(this).css({visibility:"visible"})});if(jQuery("#btn-open-login-form").length>0){jQuery("#btn-open-login-form").on("click",function(){jQuery("body").toggleClass("open-login-form");if(jQuery(this).find("i").hasClass("fi-lock")){jQuery(this).find("i").removeClass();jQuery(this).find("i").addClass("fi-unlock")}else{jQuery(this).find("i").removeClass();jQuery(this).find("i").addClass("fi-lock")}})}});jQuery(window).load(function(){jQuery("#content").center();jQuery('.main-container > div:not(".preloader")').each(function(){jQuery(this).css({visibility:"visible"})});setTimeout(function(){jQuery(".main-container > .preloader").fadeOut(300,function(){jQuery(".login-form-container").fadeIn(600)})},1e3)});jQuery(window).resize(function(){jQuery("#content").center();var window_w=jQuery(".logotype").width();jQuery(".logo").css("max-width",window_w+"px");jQuery(".logo-retina").css("max-width",window_w+"px")});jQuery.fn.center=function(){var window_h=Math.max(0,(jQuery(window).height()-jQuery(this).outerHeight())/2+jQuery(window).scrollTop());var content_h=jQuery(".logotype").height();if(window_h>content_h){this.css("position","absolute");this.css("top",window_h+"px")}else{this.css("position","relative");this.css("top","0")}return this};
1
+ jQuery(document).ready(function(){jQuery(window).resize();jQuery('.main-container > div:not(".preloader")').each(function(){jQuery(this).css({visibility:"visible"})});if(jQuery("#btn-open-login-form").length>0){jQuery("#btn-open-login-form").on("click",function(){jQuery("body").toggleClass("open-login-form");if(jQuery(this).find("i").hasClass("fi-lock")){jQuery(this).find("i").removeClass();jQuery(this).find("i").addClass("fi-unlock")}else{jQuery(this).find("i").removeClass();jQuery(this).find("i").addClass("fi-lock")}})}});jQuery(window).on('load', function(){jQuery("#content").center();jQuery('.main-container > div:not(".preloader")').each(function(){jQuery(this).css({visibility:"visible"})});setTimeout(function(){jQuery(".main-container > .preloader").fadeOut(300,function(){jQuery(".login-form-container").fadeIn(600)})},1e3)});jQuery(window).resize(function(){jQuery("#content").center();var window_w=jQuery(".logotype").width();jQuery(".logo").css("max-width",window_w+"px");jQuery(".logo-retina").css("max-width",window_w+"px")});jQuery.fn.center=function(){var window_h=Math.max(0,(jQuery(window).height()-jQuery(this).outerHeight())/2+jQuery(window).scrollTop());var content_h=jQuery(".logotype").height();if(window_h>content_h){this.css("position","absolute");this.css("top",window_h+"px")}else{this.css("position","relative");this.css("top","0")}return this};
maintenance.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Maintenance
4
  Plugin URI: https://wpmaintenancemode.com/
5
  Description: Put your site in maintenance mode, away from the public view. Use maintenance plugin if your website is in development or you need to change a few things, run an upgrade. Make it only accessible to logged in users.
6
- Version: 4.01
7
  Author: WebFactory Ltd
8
  Author URI: https://www.webfactoryltd.com/
9
  License: GPL2
@@ -125,6 +125,7 @@ class MTNC
125
  if (method_exists('LiteSpeed_Cache_API', 'purge_all')) {
126
  LiteSpeed_Cache_API::purge_all();
127
  }
 
128
  if (class_exists('Endurance_Page_Cache')) {
129
  $epc = new Endurance_Page_Cache;
130
  $epc->purge_all();
@@ -150,7 +151,7 @@ class MTNC
150
  if (function_exists('rocket_clean_domain')) {
151
  rocket_clean_domain();
152
  }
153
- do_action( 'cache_enabler_clear_complete_cache' );
154
  }
155
 
156
  public function mtnc_user_logout()
3
  Plugin Name: Maintenance
4
  Plugin URI: https://wpmaintenancemode.com/
5
  Description: Put your site in maintenance mode, away from the public view. Use maintenance plugin if your website is in development or you need to change a few things, run an upgrade. Make it only accessible to logged in users.
6
+ Version: 4.02
7
  Author: WebFactory Ltd
8
  Author URI: https://www.webfactoryltd.com/
9
  License: GPL2
125
  if (method_exists('LiteSpeed_Cache_API', 'purge_all')) {
126
  LiteSpeed_Cache_API::purge_all();
127
  }
128
+ do_action('litespeed_purge_all');
129
  if (class_exists('Endurance_Page_Cache')) {
130
  $epc = new Endurance_Page_Cache;
131
  $epc->purge_all();
151
  if (function_exists('rocket_clean_domain')) {
152
  rocket_clean_domain();
153
  }
154
+ do_action('cache_enabler_clear_complete_cache');
155
  }
156
 
157
  public function mtnc_user_logout()
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: WebFactory
3
  Tags: maintenance, maintenance mode, maintenance page, coming soon, coming soon page, under construction, under construction page
4
  Requires at least: 4.0
5
- Tested up to: 5.6
6
- Stable tag: 4.01
7
  Requires PHP: 5.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -88,6 +88,11 @@ Please post the question on the <a href="http://wordpress.org/support/plugin/mai
88
 
89
  == Changelog ==
90
 
 
 
 
 
 
91
  = v4.01 =
92
  - 2021/02/20
93
  - added support for Cache Enabler plugin
2
  Contributors: WebFactory
3
  Tags: maintenance, maintenance mode, maintenance page, coming soon, coming soon page, under construction, under construction page
4
  Requires at least: 4.0
5
+ Tested up to: 5.7
6
+ Stable tag: 4.02
7
  Requires PHP: 5.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
88
 
89
  == Changelog ==
90
 
91
+ = v4.02 =
92
+ - 2021/03/06
93
+ - JS fixes on frontend
94
+ - Contact Form 7 conflict fix
95
+
96
  = v4.01 =
97
  - 2021/02/20
98
  - added support for Cache Enabler plugin
wf-flyout/config.php CHANGED
@@ -12,7 +12,7 @@ $config['menu_accent_color'] = '#dd3036';
12
  $config['custom_css'] = '#wf-flyout .wff-menu-item .dashicons.dashicons-universal-access { font-size: 30px; padding: 0px 10px 0px 0; } #wf-flyout .ucp-icon .wff-icon img { max-width: 66%; } #wf-flyout .ucp-icon .wff-icon { line-height: 57px; } #wf-flyout .wpr-icon .wff-icon { line-height: 62px; } #wf-flyout .wp301-icon .wff-icon img { max-width: 66%; } #wf-flyout .wp301-icon .wff-icon { line-height: 57px; }';
13
 
14
  $config['menu_items'] = array(
15
- array('href' => 'https://wp301redirects.com/?ref=wff-maintenance&coupon=50off', 'label' => 'Fix 2 most common SEO issues on WordPress', 'icon' => '301-logo.png', 'class' => 'wp301-icon'),
16
  array('href' => 'https://wpreset.com/?ref=wff-maintenance&coupon=50off', 'target' => '_blank', 'label' => 'Get WP Reset PRO with 50% off', 'icon' => 'wp-reset.png', 'class' => 'wpr-icon'),
17
  array('href' => 'https://underconstructionpage.com/?ref=wff-maintenance&coupon=welcome', 'target' => '_blank', 'label' => 'Create the perfect Under Construction Page', 'icon' => 'ucp.png', 'class' => 'ucp-icon'),
18
  array('href' => 'https://wpsticky.com/?ref=wff-maintenance', 'target' => '_blank', 'label' => 'Make any element (header, widget, menu) sticky with WP Sticky', 'icon' => 'dashicons-admin-post'),
12
  $config['custom_css'] = '#wf-flyout .wff-menu-item .dashicons.dashicons-universal-access { font-size: 30px; padding: 0px 10px 0px 0; } #wf-flyout .ucp-icon .wff-icon img { max-width: 66%; } #wf-flyout .ucp-icon .wff-icon { line-height: 57px; } #wf-flyout .wpr-icon .wff-icon { line-height: 62px; } #wf-flyout .wp301-icon .wff-icon img { max-width: 66%; } #wf-flyout .wp301-icon .wff-icon { line-height: 57px; }';
13
 
14
  $config['menu_items'] = array(
15
+ array('href' => 'https://wp301redirects.com/?ref=wff-maintenance&coupon=50off', 'label' => 'Fix 2 most common SEO issues on WordPress that most people ignore', 'icon' => '301-logo.png', 'class' => 'wp301-icon'),
16
  array('href' => 'https://wpreset.com/?ref=wff-maintenance&coupon=50off', 'target' => '_blank', 'label' => 'Get WP Reset PRO with 50% off', 'icon' => 'wp-reset.png', 'class' => 'wpr-icon'),
17
  array('href' => 'https://underconstructionpage.com/?ref=wff-maintenance&coupon=welcome', 'target' => '_blank', 'label' => 'Create the perfect Under Construction Page', 'icon' => 'ucp.png', 'class' => 'ucp-icon'),
18
  array('href' => 'https://wpsticky.com/?ref=wff-maintenance', 'target' => '_blank', 'label' => 'Make any element (header, widget, menu) sticky with WP Sticky', 'icon' => 'dashicons-admin-post'),