Version Description
- Admin bar bug fix
- Css fix
Download this release
Release Info
Developer | fruitfulcode |
Plugin | Maintenance |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.2.1
- index.php +11 -7
- lib/index.php +3 -3
- lib/options.php +3 -3
- page-options.php +2 -2
- readme.txt +7 -3
index.php
CHANGED
@@ -3,12 +3,12 @@
|
|
3 |
Plugin Name: Maintenance
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/maintenance/
|
5 |
Description: Take your site down from public view with a click of a button hiding the site when you need to change a few things or run an upgrade, making it only accessible by login and password. There is also an area to add a custom message which will be shown to the users while your site is down. Users stay on the same page when they input wrong initials.
|
6 |
-
Version: 1.2
|
7 |
Author: fruitfulcode
|
8 |
Author URI: http://fruitfulcode.com
|
9 |
License: GPL2
|
10 |
*/
|
11 |
-
/* Copyright
|
12 |
|
13 |
This program is free software; you can redistribute it and/or modify
|
14 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -31,13 +31,17 @@
|
|
31 |
include_once 'functions.php';
|
32 |
|
33 |
$mt_options = mt_get_option();
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
38 |
}
|
39 |
|
40 |
-
|
|
|
41 |
|
42 |
add_action( 'template_redirect', 'mt_template_redirect' );
|
43 |
add_action( 'admin_menu', 'dashboard_menu' );
|
3 |
Plugin Name: Maintenance
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/maintenance/
|
5 |
Description: Take your site down from public view with a click of a button hiding the site when you need to change a few things or run an upgrade, making it only accessible by login and password. There is also an area to add a custom message which will be shown to the users while your site is down. Users stay on the same page when they input wrong initials.
|
6 |
+
Version: 1.2.1
|
7 |
Author: fruitfulcode
|
8 |
Author URI: http://fruitfulcode.com
|
9 |
License: GPL2
|
10 |
*/
|
11 |
+
/* Copyright 2013 Fruitful Code (email : support@fruitfulcode.com)
|
12 |
|
13 |
This program is free software; you can redistribute it and/or modify
|
14 |
it under the terms of the GNU General Public License, version 2, as
|
31 |
include_once 'functions.php';
|
32 |
|
33 |
$mt_options = mt_get_option();
|
34 |
+
|
35 |
+
if ($mt_options['state'] == "maintenance") {
|
36 |
+
if (($mt_options['lib_options']['admin_bar_enabled'] == "1")) {
|
37 |
+
add_filter('show_admin_bar', '__return_true');
|
38 |
+
} else {
|
39 |
+
add_filter('show_admin_bar', '__return_false');
|
40 |
+
}
|
41 |
}
|
42 |
|
43 |
+
|
44 |
+
/*maintenance mode is active*/
|
45 |
|
46 |
add_action( 'template_redirect', 'mt_template_redirect' );
|
47 |
add_action( 'admin_menu', 'dashboard_menu' );
|
lib/index.php
CHANGED
@@ -175,12 +175,12 @@ $(window).load(function() {
|
|
175 |
<form name="loginform" id="loginform" class="login-form" method="post">
|
176 |
|
177 |
<div class="header">
|
178 |
-
<h1><?php echo $mt_lib['heading']; ?></h1>
|
179 |
-
<span><?php echo $mt_lib['time_text']; ?></span>
|
180 |
</div>
|
181 |
|
182 |
<div class="content">
|
183 |
-
<div class="<?php echo $class_login;
|
184 |
<div class="<?php echo $class_password; ?>"></div>
|
185 |
<div class="inputs">
|
186 |
<input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1); ?>" size="20" class="input username" placeholder="Username"/>
|
175 |
<form name="loginform" id="loginform" class="login-form" method="post">
|
176 |
|
177 |
<div class="header">
|
178 |
+
<h1><?php echo stripslashes($mt_lib['heading']); ?></h1>
|
179 |
+
<span><?php echo stripslashes($mt_lib['time_text']); ?></span>
|
180 |
</div>
|
181 |
|
182 |
<div class="content">
|
183 |
+
<div class="<?php echo $class_login; ?>"></div>
|
184 |
<div class="<?php echo $class_password; ?>"></div>
|
185 |
<div class="inputs">
|
186 |
<input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1); ?>" size="20" class="input username" placeholder="Username"/>
|
lib/options.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php global $mt_option; $lib_options = ''; $lib_options = $mt_option['lib_options']; ?>
|
2 |
<div class="option-box">
|
3 |
<label for="page_title"><?php _e('Page title', 'maintenance');?></label>
|
4 |
-
<input type="text" id="page_title" name="lib_options[page_title]" value="<?php echo ( isset( $lib_options['page_title'] ) ) ? $lib_options['page_title'] : _e('Website is under construction', 'maintenance'); ?>" />
|
5 |
</div>
|
6 |
<div class="option-box">
|
7 |
<label for="heading"><?php _e('Headline', 'maintenance');?></label>
|
8 |
-
<input type="text" id="heading" name="lib_options[heading]" value="<?php echo ( isset( $lib_options['heading'] ) ) ? $lib_options['heading'] : _e('Customer login', 'maintenance'); ?>" />
|
9 |
</div>
|
10 |
<div class="option-box">
|
11 |
<label for="time_text"><?php _e('Description', 'maintenance');?></label>
|
12 |
-
<input type="text" id="time_text" name="lib_options[time_text]" value="<?php echo ( isset( $lib_options['time_text'] ) ) ? $lib_options['time_text'] : _e('Please login to see website', 'maintenance'); ?>" />
|
13 |
<div class="option-box">
|
14 |
<label for="theme_logo"><?php _e('Logo', 'maintenance');?></label>
|
15 |
<input type="file" id="theme_logo" name="lib_options[logo]" />
|
1 |
<?php global $mt_option; $lib_options = ''; $lib_options = $mt_option['lib_options']; ?>
|
2 |
<div class="option-box">
|
3 |
<label for="page_title"><?php _e('Page title', 'maintenance');?></label>
|
4 |
+
<input type="text" id="page_title" name="lib_options[page_title]" value="<?php echo ( isset( $lib_options['page_title'] ) ) ? stripslashes($lib_options['page_title']) : _e('Website is under construction', 'maintenance'); ?>" />
|
5 |
</div>
|
6 |
<div class="option-box">
|
7 |
<label for="heading"><?php _e('Headline', 'maintenance');?></label>
|
8 |
+
<input type="text" id="heading" name="lib_options[heading]" value="<?php echo ( isset( $lib_options['heading'] ) ) ? stripslashes($lib_options['heading']) : _e('Customer login', 'maintenance'); ?>" />
|
9 |
</div>
|
10 |
<div class="option-box">
|
11 |
<label for="time_text"><?php _e('Description', 'maintenance');?></label>
|
12 |
+
<input type="text" id="time_text" name="lib_options[time_text]" value="<?php echo ( isset( $lib_options['time_text'] ) ) ? stripslashes($lib_options['time_text']) : _e('Please login to see website', 'maintenance'); ?>" />
|
13 |
<div class="option-box">
|
14 |
<label for="theme_logo"><?php _e('Logo', 'maintenance');?></label>
|
15 |
<input type="file" id="theme_logo" name="lib_options[logo]" />
|
page-options.php
CHANGED
@@ -51,8 +51,8 @@
|
|
51 |
<a href="mailto:support@fruitfulcode.com" title="<?php _e('Contact Support', 'maintenance');?>" target="_blank">
|
52 |
<?php _e('Contact Support', 'maintenance');?>
|
53 |
</a><br>
|
54 |
-
<a href="http://codecanyon.net/item/maintenance-wordpress-plugin/2781350" title="<?php _e('Premium version', 'maintenance');?>" target="_blank">
|
55 |
-
<?php _e('
|
56 |
</a><br>
|
57 |
</div>
|
58 |
<!-- End Contact Support-->
|
51 |
<a href="mailto:support@fruitfulcode.com" title="<?php _e('Contact Support', 'maintenance');?>" target="_blank">
|
52 |
<?php _e('Contact Support', 'maintenance');?>
|
53 |
</a><br>
|
54 |
+
<a href="http://codecanyon.net/item/maintenance-wordpress-plugin/2781350?ref=fruitfulcode" title="<?php _e('Premium version', 'maintenance');?>" target="_blank">
|
55 |
+
<?php _e('PURCHASE EXTENDED VERSION', 'maintenance');?>
|
56 |
</a><br>
|
57 |
</div>
|
58 |
<!-- End Contact Support-->
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: fruitfulcode
|
|
3 |
Donate link: http://fruitfulcode.com/
|
4 |
Tags: maintenance, login, under-construction, administration, offline, unavailable, landing page
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 3.5
|
7 |
-
Stable tag: 1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -23,7 +23,7 @@ Take your site down from public view with a click of a button hiding the site wh
|
|
23 |
<h3>Extended version</h3>
|
24 |
|
25 |
You can purchase an extended version of our plug-in and support our team <br>
|
26 |
-
<a target="_blank" href="http://codecanyon.net/item/maintenance-wordpress-plugin/2781350">
|
27 |
|
28 |
== Installation ==
|
29 |
|
@@ -48,6 +48,10 @@ No, it will be display error on current maintenance page, without redirect to wp
|
|
48 |
|
49 |
== Changelog ==
|
50 |
|
|
|
|
|
|
|
|
|
51 |
= 1.2 =
|
52 |
* Translation ready
|
53 |
* Add Russian language
|
3 |
Donate link: http://fruitfulcode.com/
|
4 |
Tags: maintenance, login, under-construction, administration, offline, unavailable, landing page
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 3.5.1
|
7 |
+
Stable tag: 1.2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
23 |
<h3>Extended version</h3>
|
24 |
|
25 |
You can purchase an extended version of our plug-in and support our team <br>
|
26 |
+
<a target="_blank" href="http://codecanyon.net/item/maintenance-wordpress-plugin/2781350?ref=fruitfulcode">Purchase extended maintenance</a>
|
27 |
|
28 |
== Installation ==
|
29 |
|
48 |
|
49 |
== Changelog ==
|
50 |
|
51 |
+
= 1.2.1 =
|
52 |
+
* Admin bar bug fix
|
53 |
+
* Css fix
|
54 |
+
|
55 |
= 1.2 =
|
56 |
* Translation ready
|
57 |
* Add Russian language
|