Version Description
Download this release
Release Info
Developer | WebFactory |
Plugin | Maintenance |
Version | 4.01 |
Comparing to | |
See all releases |
Code changes from version 4.0 to 4.01
- css/admin.css +0 -5
- images/accessibe-logo.png +0 -0
- includes/admin.php +0 -24
- includes/functions.php +2 -34
- js/init.js +0 -51
- load/index.php +5 -6
- maintenance.php +2 -60
- readme.txt +8 -2
- wf-flyout/config.php +4 -4
- wf-flyout/icons/301-logo.png +0 -0
- wf-flyout/wf-flyout.php +2 -2
css/admin.css
CHANGED
@@ -52,11 +52,6 @@
|
|
52 |
max-width: 100%;
|
53 |
}
|
54 |
|
55 |
-
#install-accessibe {
|
56 |
-
background: #136ef8;
|
57 |
-
padding: 10px;
|
58 |
-
}
|
59 |
-
|
60 |
#promo-sn img {
|
61 |
max-width: 80%;
|
62 |
display: block;
|
52 |
max-width: 100%;
|
53 |
}
|
54 |
|
|
|
|
|
|
|
|
|
|
|
55 |
#promo-sn img {
|
56 |
max-width: 80%;
|
57 |
display: block;
|
images/accessibe-logo.png
DELETED
Binary file
|
includes/admin.php
CHANGED
@@ -111,14 +111,6 @@ function mtnc_admin_print_custom_styles()
|
|
111 |
'mtnc',
|
112 |
array(
|
113 |
'path' => MTNC_URI,
|
114 |
-
'accessibe_install_url' => add_query_arg(
|
115 |
-
array(
|
116 |
-
'action' => 'mtnc_install_accessibe',
|
117 |
-
'rnd' => rand()
|
118 |
-
),
|
119 |
-
admin_url('admin.php')
|
120 |
-
),
|
121 |
-
'accessibe_dialog_upsell_title' => '<img style="max-height: 26px; vertical-align: text-bottom;" alt="accessiBe" title="accessiBe" src="' . MTNC_URI . 'images/accessibe-logo.png' . '">',
|
122 |
'cm_settings' => $cm_settings,
|
123 |
'site_url' => home_url(),
|
124 |
'first_install_date' => $firstInstallDateTimeTimeStamp,
|
@@ -265,20 +257,4 @@ function mtnc_generate_plugin_page()
|
|
265 |
</form>
|
266 |
</div>
|
267 |
<?php
|
268 |
-
// accessibe install dialog
|
269 |
-
echo '<div id="accessibe-upsell-dialog" style="display: none;" title="accessiBe"><span class="ui-helper-hidden-accessible"><input type="text"/></span>';
|
270 |
-
echo '<div style="padding: 0 20px; font-size: 15px;">';
|
271 |
-
echo '<ul class="mtnc-list">';
|
272 |
-
echo '<li>Make your site user-friendly for people with disabilities</li>';
|
273 |
-
echo '<li>Fully automated WordPress accessibility service</li>';
|
274 |
-
echo '<li>Protect your site from lawsuits and increase the audience</li>';
|
275 |
-
echo '<li>The free accessiBe plugin sets up in 5 minutes. No coding required</li>';
|
276 |
-
echo '<li>Compatible with all WordPress themes and plugins</li>';
|
277 |
-
echo '<li>AI-powered</li>';
|
278 |
-
echo '<li>7-day free trial available</li>';
|
279 |
-
echo '</ul>';
|
280 |
-
echo '<p class="textcenter upsell-footer"><br><a class="button button-primary" id="install-accessibe">Install & activate accessiBe to make your website more user-friendly</a></p>';
|
281 |
-
echo '</div>';
|
282 |
-
echo '</div>';
|
283 |
-
// accessibe install dialog
|
284 |
}
|
111 |
'mtnc',
|
112 |
array(
|
113 |
'path' => MTNC_URI,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
'cm_settings' => $cm_settings,
|
115 |
'site_url' => home_url(),
|
116 |
'first_install_date' => $firstInstallDateTimeTimeStamp,
|
257 |
</form>
|
258 |
</div>
|
259 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
}
|
includes/functions.php
CHANGED
@@ -298,25 +298,12 @@ function mtnc_add_review_top() {
|
|
298 |
echo $promo_text;
|
299 |
}
|
300 |
|
301 |
-
function mtnc_accessibe_side() {
|
302 |
-
$promo_text = '';
|
303 |
-
|
304 |
-
$promo_text .= '<p><b>20% of people who visit your site have a disability and can\'t use it properly.</b> Making your site accessible is required by law in many countries and you can face heavy fines for not doing it.</p><p>By using the <a href="#" class="open-accessibe-upsell">accessiBe plugin</a> and their accessiBe AI service you can make your site accessible. This will not only save you from fines but instantly grow your audience.</p>';
|
305 |
-
$promo_text .= '<p class="textcenter"><a href="#" class="open-accessibe-upsell"><img style="max-width: 80%;" src="' . MTNC_URI . 'images/accessibe-logo.png" alt="Install the accessiBe plugin" title="Install the accessiBe plugin"></a></p>';
|
306 |
-
|
307 |
-
echo $promo_text;
|
308 |
-
}
|
309 |
-
|
310 |
function mtnc_page_create_meta_boxes_widget_support()
|
311 |
{
|
312 |
global $mtnc_variable;
|
313 |
|
314 |
add_meta_box('promo-review2', __('Help us keep the plugin free & maintained', 'maintenance'), 'mtnc_review_box', $mtnc_variable->options_page, 'side', 'high');
|
315 |
|
316 |
-
if (!is_plugin_active('accessibe/accessiebe.php')) {
|
317 |
-
add_meta_box('accessibe-sidebar', 'Web accessibility is not a luxury in 2021!', 'mtnc_accessibe_side', $mtnc_variable->options_page, 'side', 'high');
|
318 |
-
}
|
319 |
-
|
320 |
if (!mtnc_is_sn_active()) {
|
321 |
add_meta_box('promo-sn', __('Protect your site from day one with Security Ninja', 'maintenance'), 'mtnc_promo_sn', $mtnc_variable->options_page, 'side', 'default');
|
322 |
}
|
@@ -360,7 +347,6 @@ function mtnc_add_data_fields($object, $box)
|
|
360 |
mtnc_generate_input_filed(__('Headline', 'maintenance'), 'heading', 'heading', $heading);
|
361 |
mtnc_generate_tinymce_filed(__('Description', 'maintenance'), 'description', 'description', $description);
|
362 |
mtnc_generate_input_filed(__('Footer Text', 'maintenance'), 'footer_text', 'footer_text', $footer_text);
|
363 |
-
mtnc_accessibe_option();
|
364 |
mtnc_smush_option();
|
365 |
mtnc_generate_check_filed(__('Show Some Love', 'maintenance'), __('Show a small link in the footer to let others know you\'re using this awesome & free plugin', 'maintenance'), 'show_some_love', 'show_some_love', !empty($mt_option['show_some_love']));
|
366 |
mtnc_generate_number_filed(__('Set Logo Width', 'maintenance'), 'logo_width', 'logo_width', $logo_width);
|
@@ -445,24 +431,6 @@ function mtnc_smush_option() {
|
|
445 |
}
|
446 |
} // mtnc_smush_option
|
447 |
|
448 |
-
function mtnc_accessibe_option() {
|
449 |
-
if (is_plugin_active('accessibe/accessiebe.php')) {
|
450 |
-
echo '<tr>';
|
451 |
-
echo '<th><label for="accessibe_support">Web Accessibility</label></th>';
|
452 |
-
echo '<td style="line-height: 1.5;">';
|
453 |
-
echo 'Configure <a href="' . admin_url('options-general.php?page=accessiBe') . '">web accessibility options</a>.';
|
454 |
-
echo '</td>';
|
455 |
-
echo '</tr>';
|
456 |
-
} else {
|
457 |
-
echo '<tr>';
|
458 |
-
echo '<th><label for="accessibe_support">Web Accessibility</label></th>';
|
459 |
-
echo '<td style="line-height: 1.5;">';
|
460 |
-
echo '<input type="checkbox" id="accessibe_support" type="checkbox" value="1" class="skip-save">Your maintenance page is currently <b>not fully accessible for over 20% of visitors who have a disability</b>.<br> Make your site accessible from day one by installing the free <a href="#" class="open-accessibe-upsell">accessiBe plugin.</a>';
|
461 |
-
echo '</td>';
|
462 |
-
echo '</tr>';
|
463 |
-
}
|
464 |
-
} // mtnc_accessibe_option
|
465 |
-
|
466 |
function mtnc_is_sn_active() {
|
467 |
if (!function_exists('is_plugin_active') || !function_exists('get_plugin_data')) {
|
468 |
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
@@ -2645,7 +2613,7 @@ function mtnc_add_exclude_pages_fields()
|
|
2645 |
$out_filed .= '<table class="form-table">';
|
2646 |
$out_filed .= '<tbody>';
|
2647 |
$out_filed .= '<tr valign="top">';
|
2648 |
-
$out_filed .= '<th colspan="2" scope="row">' . __('Select the page(s) to be displayed normally, excluded by maintenance mode
|
2649 |
$out_filed .= '</tr>';
|
2650 |
|
2651 |
foreach ($post_types as $post_slug => $type) {
|
@@ -2656,7 +2624,7 @@ function mtnc_add_exclude_pages_fields()
|
|
2656 |
}
|
2657 |
|
2658 |
$args = array(
|
2659 |
-
'posts_per_page' =>
|
2660 |
'orderby' => 'NAME',
|
2661 |
'order' => 'ASC',
|
2662 |
'post_type' => $post_slug,
|
298 |
echo $promo_text;
|
299 |
}
|
300 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
function mtnc_page_create_meta_boxes_widget_support()
|
302 |
{
|
303 |
global $mtnc_variable;
|
304 |
|
305 |
add_meta_box('promo-review2', __('Help us keep the plugin free & maintained', 'maintenance'), 'mtnc_review_box', $mtnc_variable->options_page, 'side', 'high');
|
306 |
|
|
|
|
|
|
|
|
|
307 |
if (!mtnc_is_sn_active()) {
|
308 |
add_meta_box('promo-sn', __('Protect your site from day one with Security Ninja', 'maintenance'), 'mtnc_promo_sn', $mtnc_variable->options_page, 'side', 'default');
|
309 |
}
|
347 |
mtnc_generate_input_filed(__('Headline', 'maintenance'), 'heading', 'heading', $heading);
|
348 |
mtnc_generate_tinymce_filed(__('Description', 'maintenance'), 'description', 'description', $description);
|
349 |
mtnc_generate_input_filed(__('Footer Text', 'maintenance'), 'footer_text', 'footer_text', $footer_text);
|
|
|
350 |
mtnc_smush_option();
|
351 |
mtnc_generate_check_filed(__('Show Some Love', 'maintenance'), __('Show a small link in the footer to let others know you\'re using this awesome & free plugin', 'maintenance'), 'show_some_love', 'show_some_love', !empty($mt_option['show_some_love']));
|
352 |
mtnc_generate_number_filed(__('Set Logo Width', 'maintenance'), 'logo_width', 'logo_width', $logo_width);
|
431 |
}
|
432 |
} // mtnc_smush_option
|
433 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
function mtnc_is_sn_active() {
|
435 |
if (!function_exists('is_plugin_active') || !function_exists('get_plugin_data')) {
|
436 |
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
2613 |
$out_filed .= '<table class="form-table">';
|
2614 |
$out_filed .= '<tbody>';
|
2615 |
$out_filed .= '<tr valign="top">';
|
2616 |
+
$out_filed .= '<th colspan="2" scope="row">' . __('Select the page(s) to be displayed normally, excluded by maintenance mode.', 'maintenance') . ' Please note that in order to prevent issues on sites with large number of posts we show only the first 200 entries for each post type (post, page, product,...).</th>';
|
2617 |
$out_filed .= '</tr>';
|
2618 |
|
2619 |
foreach ($post_types as $post_slug => $type) {
|
2624 |
}
|
2625 |
|
2626 |
$args = array(
|
2627 |
+
'posts_per_page' => 200,
|
2628 |
'orderby' => 'NAME',
|
2629 |
'order' => 'ASC',
|
2630 |
'post_type' => $post_slug,
|
js/init.js
CHANGED
@@ -114,57 +114,6 @@ jQuery(window).ready(function($) {
|
|
114 |
return false;
|
115 |
});
|
116 |
|
117 |
-
$('#accessibe_support').on('click change', function(e) {
|
118 |
-
e.preventDefault();
|
119 |
-
$(this).prop("checked", false);
|
120 |
-
|
121 |
-
$('.open-accessibe-upsell').first().trigger('click');
|
122 |
-
|
123 |
-
return false;
|
124 |
-
});
|
125 |
-
|
126 |
-
$('body').on('click', '.open-accessibe-upsell', function(e) {
|
127 |
-
e.preventDefault();
|
128 |
-
|
129 |
-
$(this).blur();
|
130 |
-
|
131 |
-
$('#accessibe-upsell-dialog').dialog('open');
|
132 |
-
|
133 |
-
return false;
|
134 |
-
});
|
135 |
-
|
136 |
-
$('#accessibe-upsell-dialog').dialog({'dialogClass': 'wp-dialog accessibe-upsell-dialog',
|
137 |
-
'modal': 1,
|
138 |
-
'resizable': false,
|
139 |
-
'title': 'Make your site accessible in just a few clicks',
|
140 |
-
'zIndex': 9999,
|
141 |
-
'width': 550,
|
142 |
-
'height': 'auto',
|
143 |
-
'show': 'fade',
|
144 |
-
'hide': 'fade',
|
145 |
-
'open': function(event, ui) {
|
146 |
-
maintenance_fix_dialog_close(event, ui);
|
147 |
-
$(this).siblings().find('span.ui-dialog-title').html(mtnc.accessibe_dialog_upsell_title);
|
148 |
-
},
|
149 |
-
'close': function(event, ui) { },
|
150 |
-
'autoOpen': false,
|
151 |
-
'closeOnEscape': true
|
152 |
-
});
|
153 |
-
$(window).resize(function(e) {
|
154 |
-
$('#accessibe-upsell-dialog').dialog("option", "position", {my: "center", at: "center", of: window});
|
155 |
-
});
|
156 |
-
|
157 |
-
|
158 |
-
jQuery('#install-accessibe').on('click',function(e){
|
159 |
-
$('#accessibe-upsell-dialog').dialog('close');
|
160 |
-
jQuery('body').append('<div style="width:550px;height:450px; position:fixed;top:10%;left:50%;margin-left:-275px; color:#444; background-color: #fbfbfb;border:1px solid #DDD; border-radius:4px;box-shadow: 0px 0px 0px 4000px rgba(0, 0, 0, 0.85);z-index: 9999999;"><iframe src="' + mtnc.accessibe_install_url + '" style="width:100%;height:100%;border:none;" /></div>');
|
161 |
-
jQuery('#wpwrap').css('pointer-events', 'none');
|
162 |
-
e.preventDefault();
|
163 |
-
return false;
|
164 |
-
});
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
/******************* */
|
169 |
|
170 |
wp.codeEditor.initialize(jQuery('#custom_css'), mtnc.cm_settings);
|
114 |
return false;
|
115 |
});
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
/******************* */
|
118 |
|
119 |
wp.codeEditor.initialize(jQuery('#custom_css'), mtnc.cm_settings);
|
load/index.php
CHANGED
@@ -25,8 +25,11 @@ if ( ! empty( $page_description ) ) {
|
|
25 |
$page_description = apply_filters( 'wpautop', stripslashes( $page_description ) );
|
26 |
}
|
27 |
|
28 |
-
|
29 |
-
$
|
|
|
|
|
|
|
30 |
if ( ! empty( $mt_options['bg_image_portrait'] ) ) {
|
31 |
$bg_image_portrait = wp_get_attachment_image_src( $mt_options['bg_image_portrait'], 'full' );
|
32 |
$bg_image_portrait = ! empty( $bg_image_portrait ) ? $bg_image_portrait[0] : false;
|
@@ -135,10 +138,6 @@ $google_fonts = mtnc_add_google_fonts();
|
|
135 |
if (!is_callable('is_plugin_active')) {
|
136 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
137 |
}
|
138 |
-
|
139 |
-
if (is_callable('is_plugin_active') && is_plugin_active('accessibe/accessiebe.php') && is_callable(array('Accessibe', 'render_js_in_footer'))) {
|
140 |
-
Accessibe::render_js_in_footer();
|
141 |
-
}
|
142 |
?>
|
143 |
|
144 |
</body>
|
25 |
$page_description = apply_filters( 'wpautop', stripslashes( $page_description ) );
|
26 |
}
|
27 |
|
28 |
+
if (!empty($mt_options['body_bg'])) {
|
29 |
+
$bg = wp_get_attachment_image_src( $mt_options['body_bg'], 'full' );
|
30 |
+
$body_bg = esc_url( $bg[0] );
|
31 |
+
}
|
32 |
+
|
33 |
if ( ! empty( $mt_options['bg_image_portrait'] ) ) {
|
34 |
$bg_image_portrait = wp_get_attachment_image_src( $mt_options['bg_image_portrait'], 'full' );
|
35 |
$bg_image_portrait = ! empty( $bg_image_portrait ) ? $bg_image_portrait[0] : false;
|
138 |
if (!is_callable('is_plugin_active')) {
|
139 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
140 |
}
|
|
|
|
|
|
|
|
|
141 |
?>
|
142 |
|
143 |
</body>
|
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.
|
7 |
Author: WebFactory Ltd
|
8 |
Author URI: https://www.webfactoryltd.com/
|
9 |
License: GPL2
|
@@ -48,8 +48,6 @@ class MTNC
|
|
48 |
add_action('init', array(&$this, 'mtnc_admin_bar'));
|
49 |
add_action('init', array(&$this, 'mtnc_set_global_options'), 1);
|
50 |
|
51 |
-
add_action('admin_action_mtnc_install_accessibe', array(&$this, 'install_accessibe'));
|
52 |
-
|
53 |
add_filter(
|
54 |
'plugin_action_links_' . plugin_basename(__FILE__),
|
55 |
array(&$this, 'plugin_action_links')
|
@@ -152,6 +150,7 @@ class MTNC
|
|
152 |
if (function_exists('rocket_clean_domain')) {
|
153 |
rocket_clean_domain();
|
154 |
}
|
|
|
155 |
}
|
156 |
|
157 |
public function mtnc_user_logout()
|
@@ -182,63 +181,6 @@ class MTNC
|
|
182 |
add_action('admin_bar_menu', 'mtnc_add_toolbar_items', 100);
|
183 |
}
|
184 |
|
185 |
-
// auto download / install / activate Accessibe plugin
|
186 |
-
static function install_accessibe() {
|
187 |
-
if (false === current_user_can('administrator')) {
|
188 |
-
wp_die('Sorry, you have to be an admin to run this action.');
|
189 |
-
}
|
190 |
-
|
191 |
-
$plugin_slug = 'accessibe/accessiebe.php';
|
192 |
-
$plugin_zip = 'https://downloads.wordpress.org/plugin/accessibe.latest-stable.zip';
|
193 |
-
|
194 |
-
@include_once ABSPATH . 'wp-admin/includes/plugin.php';
|
195 |
-
@include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
196 |
-
@include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
|
197 |
-
@include_once ABSPATH . 'wp-admin/includes/file.php';
|
198 |
-
@include_once ABSPATH . 'wp-admin/includes/misc.php';
|
199 |
-
echo '<style>
|
200 |
-
body{
|
201 |
-
font-family: sans-serif;
|
202 |
-
font-size: 14px;
|
203 |
-
line-height: 1.5;
|
204 |
-
color: #444;
|
205 |
-
}
|
206 |
-
</style>';
|
207 |
-
|
208 |
-
echo '<div style="margin: 20px; color:#444;">';
|
209 |
-
echo 'If things are not done in a minute <a target="_parent" href="' . admin_url('plugin-install.php?s=accessibe&tab=search&type=term') .'">install the plugin manually via Plugins page</a><br><br>';
|
210 |
-
echo 'Starting ...<br><br>';
|
211 |
-
|
212 |
-
wp_cache_flush();
|
213 |
-
$upgrader = new Plugin_Upgrader();
|
214 |
-
echo 'Check if accessiBe is already installed ... <br />';
|
215 |
-
if (self::is_plugin_installed($plugin_slug)) {
|
216 |
-
echo 'accessiBe is already installed! <br /><br />Making sure it\'s the latest version.<br />';
|
217 |
-
$upgrader->upgrade($plugin_slug);
|
218 |
-
$installed = true;
|
219 |
-
} else {
|
220 |
-
echo 'Installing accessiBe.<br />';
|
221 |
-
$installed = $upgrader->install($plugin_zip);
|
222 |
-
}
|
223 |
-
wp_cache_flush();
|
224 |
-
|
225 |
-
if (!is_wp_error($installed) && $installed) {
|
226 |
-
echo 'Activating accessiBe.<br />';
|
227 |
-
$activate = activate_plugin($plugin_slug);
|
228 |
-
|
229 |
-
if (is_null($activate)) {
|
230 |
-
echo 'accessiBe Activated.<br />';
|
231 |
-
|
232 |
-
echo '<script>setTimeout(function() { top.location = "admin.php?page=maintenance"; }, 1000);</script>';
|
233 |
-
echo '<br>If you are not redirected in a few seconds - <a href="admin.php?page=maintenance" target="_parent">click here</a>.';
|
234 |
-
}
|
235 |
-
} else {
|
236 |
-
echo 'Could not install accessiBe. You\'ll have to <a target="_parent" href="' . admin_url('plugin-install.php?s=accessibe&tab=search&type=term') .'">download and install manually</a>.';
|
237 |
-
}
|
238 |
-
|
239 |
-
echo '</div>';
|
240 |
-
} // install_accessibe
|
241 |
-
|
242 |
function is_plugin_installed($slug)
|
243 |
{
|
244 |
if (!function_exists('get_plugins')) {
|
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
|
48 |
add_action('init', array(&$this, 'mtnc_admin_bar'));
|
49 |
add_action('init', array(&$this, 'mtnc_set_global_options'), 1);
|
50 |
|
|
|
|
|
51 |
add_filter(
|
52 |
'plugin_action_links_' . plugin_basename(__FILE__),
|
53 |
array(&$this, 'plugin_action_links')
|
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()
|
181 |
add_action('admin_bar_menu', 'mtnc_add_toolbar_items', 100);
|
182 |
}
|
183 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
function is_plugin_installed($slug)
|
185 |
{
|
186 |
if (!function_exists('get_plugins')) {
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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.
|
7 |
Requires PHP: 5.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -14,7 +14,7 @@ Great looking maintenance, coming soon & under construction pages. Put your site
|
|
14 |
|
15 |
Maintenance plugin allows the WordPress site administrator to close the website for maintenance, enable "503 Service temporarily unavailable”, set a temporary page with authorization, which can be edited via the plugin settings. Easy customize the good look on all devices. Add your logo, background image, select the desired color, add text.
|
16 |
|
17 |
-
Need **200 pre-made themes** to build coming soon & landing pages faster? Have a look at our <a href="https://comingsoonwp.com/">Coming Soon & Maintenance Mode</a> plugin.
|
18 |
|
19 |
Let <a href="https://wordpress.org/plugins/security-ninja/">Security Ninja</a> take care of your site's security from day one! Run over 50 security tests with one click. Get a detailed report and automatically fix security issues.
|
20 |
|
@@ -88,6 +88,12 @@ Please post the question on the <a href="http://wordpress.org/support/plugin/mai
|
|
88 |
|
89 |
== Changelog ==
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
= v4.0 =
|
92 |
- 2021/01/30
|
93 |
- added flyout menu
|
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
|
14 |
|
15 |
Maintenance plugin allows the WordPress site administrator to close the website for maintenance, enable "503 Service temporarily unavailable”, set a temporary page with authorization, which can be edited via the plugin settings. Easy customize the good look on all devices. Add your logo, background image, select the desired color, add text.
|
16 |
|
17 |
+
Need **200+ pre-made themes** to build coming soon & landing pages faster? Have a look at our <a href="https://comingsoonwp.com/">Coming Soon & Maintenance Mode</a> plugin.
|
18 |
|
19 |
Let <a href="https://wordpress.org/plugins/security-ninja/">Security Ninja</a> take care of your site's security from day one! Run over 50 security tests with one click. Get a detailed report and automatically fix security issues.
|
20 |
|
88 |
|
89 |
== Changelog ==
|
90 |
|
91 |
+
= v4.01 =
|
92 |
+
- 2021/02/20
|
93 |
+
- added support for Cache Enabler plugin
|
94 |
+
- fixed a bug when background image isn't defined
|
95 |
+
- fixed issue on sites with large numbers of posts/pages/CPTs
|
96 |
+
|
97 |
= v4.0 =
|
98 |
- 2021/01/30
|
99 |
- added flyout menu
|
wf-flyout/config.php
CHANGED
@@ -9,13 +9,13 @@ $config['icon_image'] = 'maintenance.png';
|
|
9 |
$config['icon_padding'] = '0px';
|
10 |
$config['icon_size'] = '65px';
|
11 |
$config['menu_accent_color'] = '#dd3036';
|
12 |
-
|
13 |
|
14 |
$config['menu_items'] = array(
|
15 |
-
array('href' => 'https://
|
16 |
-
array('href' =>
|
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
|
19 |
array('href' => 'https://wordpress.org/support/plugin/maintenance/reviews/?filter=5#new-post', 'target' => '_blank', 'label' => 'Rate the Plugin', 'icon' => 'dashicons-thumbs-up'),
|
20 |
array('href' => 'https://wordpress.org/support/plugin/maintenance/#new-post', 'target' => '_blank', 'label' => 'Get Support', 'icon' => 'dashicons-sos'),
|
21 |
);
|
9 |
$config['icon_padding'] = '0px';
|
10 |
$config['icon_size'] = '65px';
|
11 |
$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'),
|
19 |
array('href' => 'https://wordpress.org/support/plugin/maintenance/reviews/?filter=5#new-post', 'target' => '_blank', 'label' => 'Rate the Plugin', 'icon' => 'dashicons-thumbs-up'),
|
20 |
array('href' => 'https://wordpress.org/support/plugin/maintenance/#new-post', 'target' => '_blank', 'label' => 'Get Support', 'icon' => 'dashicons-sos'),
|
21 |
);
|
wf-flyout/icons/301-logo.png
ADDED
Binary file
|
wf-flyout/wf-flyout.php
CHANGED
@@ -124,7 +124,7 @@ if (false == class_exists('wf_flyout')) {
|
|
124 |
|
125 |
$out = '';
|
126 |
$icons_url = plugin_dir_url($this->plugin_file) . 'wf-flyout/icons/';
|
127 |
-
$default_link_item = array('class' => '', 'href' => '#', 'target' => '_blank', 'label' => '', 'icon' => '');
|
128 |
|
129 |
$out .= '<div id="wff-overlay"></div>';
|
130 |
|
@@ -148,7 +148,7 @@ if (false == class_exists('wf_flyout')) {
|
|
148 |
$item['class'] = trim($item['class']);
|
149 |
}
|
150 |
|
151 |
-
$out .= '<a href="' . $item['href'] . '" class="wff-menu-item wff-menu-item-' . $i . ' ' . $item['class'] . '" target="_blank">';
|
152 |
$out .= '<span class="wff-label visible">' . $item['label'] . '</span>';
|
153 |
if (substr($item['icon'], 0, 9) == 'dashicons') {
|
154 |
$out .= '<span class="dashicons ' . $item['icon'] . '"></span>';
|
124 |
|
125 |
$out = '';
|
126 |
$icons_url = plugin_dir_url($this->plugin_file) . 'wf-flyout/icons/';
|
127 |
+
$default_link_item = array('class' => '', 'href' => '#', 'target' => '_blank', 'label' => '', 'icon' => '', 'data' => '');
|
128 |
|
129 |
$out .= '<div id="wff-overlay"></div>';
|
130 |
|
148 |
$item['class'] = trim($item['class']);
|
149 |
}
|
150 |
|
151 |
+
$out .= '<a ' . $item['data'] . ' href="' . $item['href'] . '" class="wff-menu-item wff-menu-item-' . $i . ' ' . $item['class'] . '" target="_blank">';
|
152 |
$out .= '<span class="wff-label visible">' . $item['label'] . '</span>';
|
153 |
if (substr($item['icon'], 0, 9) == 'dashicons') {
|
154 |
$out .= '<span class="dashicons ' . $item['icon'] . '"></span>';
|