Version Description
- Bug fixes
- Improved styling for WordPress 3.8
Download this release
Release Info
Developer | bobriley |
Plugin | EZP Maintenance Mode |
Version | 0.6.3 |
Comparing to | |
See all releases |
Code changes from version 0.6.2 to 0.6.3
- classes/class-easy-pie-mm-constants.php +1 -1
- classes/class-easy-pie-mm-utility.php +42 -38
- classes/class-easy-pie-mm.php +3 -10
- easy-pie-maintenance-mode.php +1 -1
- pages/page-options.php +3 -3
- readme.txt +9 -2
- styles/easy-pie-styles.css +1 -0
classes/class-easy-pie-mm-constants.php
CHANGED
@@ -35,7 +35,7 @@ if (!class_exists('Easy_Pie_MM_Constants')) {
|
|
35 |
const OPTION_NAME = 'easy-pie-mm-options';
|
36 |
const MAIN_PAGE_KEY = 'easy-pie-mm-main-page';
|
37 |
const PLUGIN_SLUG = 'easy-pie-maintenance-mode';
|
38 |
-
const PLUGIN_VERSION = "0.6.
|
39 |
|
40 |
/* Pseudo constants */
|
41 |
|
35 |
const OPTION_NAME = 'easy-pie-mm-options';
|
36 |
const MAIN_PAGE_KEY = 'easy-pie-mm-main-page';
|
37 |
const PLUGIN_SLUG = 'easy-pie-maintenance-mode';
|
38 |
+
const PLUGIN_VERSION = "0.6.3"; // RSR Version
|
39 |
|
40 |
/* Pseudo constants */
|
41 |
|
classes/class-easy-pie-mm-utility.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
/*
|
3 |
Easy Pie Maintenance Mode Plugin
|
4 |
Copyright (C) 2013, Synthetic Thought LLC
|
@@ -7,7 +8,7 @@
|
|
7 |
Easy Pie Maintenance Mode Plugin is distributed under the GNU General Public License, Version 3,
|
8 |
June 2007. Copyright (C) 2007 Free Software Foundation, Inc., 51 Franklin
|
9 |
St, Fifth Floor, Boston, MA 02110, USA
|
10 |
-
|
11 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
12 |
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
13 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
@@ -18,7 +19,7 @@
|
|
18 |
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
19 |
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
20 |
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
21 |
-
*/
|
22 |
|
23 |
require_once("class-easy-pie-mm-constants.php");
|
24 |
|
@@ -42,7 +43,7 @@ if (!class_exists('Easy_Pie_MM_Utility')) {
|
|
42 |
public static function init() {
|
43 |
|
44 |
$__dir__ = dirname(__FILE__);
|
45 |
-
|
46 |
self::$MINI_THEMES_STANDARD_DIRECTORY = $__dir__ . "/../mini-themes/";
|
47 |
self::$MINI_THEMES_USER_DIRECTORY = (WP_CONTENT_DIR . "/" . Easy_Pie_MM_Constants::PLUGIN_SLUG . "/mini-themes/");
|
48 |
|
@@ -109,53 +110,56 @@ if (!class_exists('Easy_Pie_MM_Utility')) {
|
|
109 |
$manifest_array = array();
|
110 |
$dirs = glob($directory . "*", GLOB_ONLYDIR);
|
111 |
|
112 |
-
|
|
|
|
|
|
|
|
|
113 |
|
114 |
-
|
|
|
115 |
|
116 |
-
|
117 |
-
$manifest_path = $dir . "/manifest.json";
|
118 |
|
119 |
-
|
120 |
|
121 |
-
|
122 |
|
123 |
-
|
|
|
124 |
|
125 |
-
|
|
|
126 |
} else {
|
127 |
|
128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
}
|
130 |
-
} else {
|
131 |
-
|
132 |
-
// Manifest not present so assumption is they just want a generic mini-theme
|
133 |
-
$manifest = new stdClass();
|
134 |
-
|
135 |
-
self::add_property($manifest, 'title', basename($dir));
|
136 |
-
self::add_property($manifest, 'page', 'index.html');
|
137 |
-
self::add_property($manifest, 'description', 'User Mini Theme');
|
138 |
-
self::add_property($manifest, 'author_name', '');
|
139 |
-
self::add_property($manifest, 'website_url', '');
|
140 |
-
self::add_property($manifest, 'google_plus_author_url', '');
|
141 |
-
self::add_property($manifest, 'original_release_date', '2013/01/01');
|
142 |
-
self::add_property($manifest, 'latest_version_date', '2013/01/01');
|
143 |
-
self::add_property($manifest, 'version', '1.0.0');
|
144 |
-
self::add_property($manifest, 'release_notes', '');
|
145 |
-
self::add_property($manifest, 'screenshot', self::$MINI_THEMES_IMAGES_URL . "user-defined.png");
|
146 |
-
self::add_property($manifest, 'autodownload', false);
|
147 |
-
self::add_property($manifest, 'responsive', true);
|
148 |
-
}
|
149 |
|
150 |
-
|
151 |
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
|
158 |
-
|
|
|
159 |
}
|
160 |
}
|
161 |
|
1 |
<?php
|
2 |
+
|
3 |
/*
|
4 |
Easy Pie Maintenance Mode Plugin
|
5 |
Copyright (C) 2013, Synthetic Thought LLC
|
8 |
Easy Pie Maintenance Mode Plugin is distributed under the GNU General Public License, Version 3,
|
9 |
June 2007. Copyright (C) 2007 Free Software Foundation, Inc., 51 Franklin
|
10 |
St, Fifth Floor, Boston, MA 02110, USA
|
11 |
+
|
12 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
13 |
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
14 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
19 |
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
20 |
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
21 |
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
22 |
+
*/
|
23 |
|
24 |
require_once("class-easy-pie-mm-constants.php");
|
25 |
|
43 |
public static function init() {
|
44 |
|
45 |
$__dir__ = dirname(__FILE__);
|
46 |
+
|
47 |
self::$MINI_THEMES_STANDARD_DIRECTORY = $__dir__ . "/../mini-themes/";
|
48 |
self::$MINI_THEMES_USER_DIRECTORY = (WP_CONTENT_DIR . "/" . Easy_Pie_MM_Constants::PLUGIN_SLUG . "/mini-themes/");
|
49 |
|
110 |
$manifest_array = array();
|
111 |
$dirs = glob($directory . "*", GLOB_ONLYDIR);
|
112 |
|
113 |
+
if ($dirs != FALSE) {
|
114 |
+
|
115 |
+
sort($dirs);
|
116 |
+
|
117 |
+
foreach ($dirs as $dir) {
|
118 |
|
119 |
+
$manifest = null;
|
120 |
+
$manifest_path = $dir . "/manifest.json";
|
121 |
|
122 |
+
if (file_exists($manifest_path)) {
|
|
|
123 |
|
124 |
+
$manifest_text = file_get_contents($manifest_path);
|
125 |
|
126 |
+
if ($manifest_text != false) {
|
127 |
|
128 |
+
$manifest = json_decode($manifest_text);
|
129 |
+
} else {
|
130 |
|
131 |
+
self::debug(self::__("problem reading manifest in ") . $dir . "(" . $dirs . ")");
|
132 |
+
}
|
133 |
} else {
|
134 |
|
135 |
+
// Manifest not present so assumption is they just want a generic mini-theme
|
136 |
+
$manifest = new stdClass();
|
137 |
+
|
138 |
+
self::add_property($manifest, 'title', basename($dir));
|
139 |
+
self::add_property($manifest, 'page', 'index.html');
|
140 |
+
self::add_property($manifest, 'description', 'User Mini Theme');
|
141 |
+
self::add_property($manifest, 'author_name', '');
|
142 |
+
self::add_property($manifest, 'website_url', '');
|
143 |
+
self::add_property($manifest, 'google_plus_author_url', '');
|
144 |
+
self::add_property($manifest, 'original_release_date', '2013/01/01');
|
145 |
+
self::add_property($manifest, 'latest_version_date', '2013/01/01');
|
146 |
+
self::add_property($manifest, 'version', '1.0.0');
|
147 |
+
self::add_property($manifest, 'release_notes', '');
|
148 |
+
self::add_property($manifest, 'screenshot', self::$MINI_THEMES_IMAGES_URL . "user-defined.png");
|
149 |
+
self::add_property($manifest, 'autodownload', false);
|
150 |
+
self::add_property($manifest, 'responsive', true);
|
151 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
|
153 |
+
if ($manifest != null) {
|
154 |
|
155 |
+
// RSR TODO: Have a way to give each item a unique key if it conflicts..?
|
156 |
+
self::add_property($manifest, 'key', basename($dir));
|
157 |
+
self::add_property($manifest, 'dir', $dir);
|
158 |
+
self::add_property($manifest, 'manifest_path', $manifest_path);
|
159 |
+
self::add_property($manifest, 'mini_theme_url', $mini_theme_base_url . $manifest->key);
|
160 |
|
161 |
+
array_push($manifest_array, $manifest);
|
162 |
+
}
|
163 |
}
|
164 |
}
|
165 |
|
classes/class-easy-pie-mm.php
CHANGED
@@ -313,7 +313,7 @@ if (!class_exists('Easy_Pie_MM')) {
|
|
313 |
$id = $args['id'];
|
314 |
$optionExpression = Easy_Pie_MM_Constants::OPTION_NAME . "[" . $subkey . "]";
|
315 |
$currentValue = $options[$subkey];
|
316 |
-
$size =
|
317 |
|
318 |
if (array_key_exists('size', $args)) {
|
319 |
$size = $args['size'];
|
@@ -333,7 +333,7 @@ if (!class_exists('Easy_Pie_MM')) {
|
|
333 |
$currentValue = $options[$subkey];
|
334 |
?>
|
335 |
<div>
|
336 |
-
<textarea cols="
|
337 |
<p><small><?php $this->_e("HTML tags are allowed. e.g. Add <br/> for break."); ?></small></p>
|
338 |
</div>
|
339 |
<?php
|
@@ -418,14 +418,7 @@ if (!class_exists('Easy_Pie_MM')) {
|
|
418 |
}
|
419 |
|
420 |
public function render_active_theme_selector($args) {
|
421 |
-
|
422 |
-
|
423 |
-
$__dir__ = dirname(__FILE__);
|
424 |
-
|
425 |
-
$path = $__dir__ . "../mini-themes/";
|
426 |
-
|
427 |
-
$dirs = glob($path . "*", GLOB_ONLYDIR);
|
428 |
-
|
429 |
$options = get_option(Easy_Pie_MM_Constants::OPTION_NAME);
|
430 |
$subkey = $args['subkey'];
|
431 |
$id = $args['id'];
|
313 |
$id = $args['id'];
|
314 |
$optionExpression = Easy_Pie_MM_Constants::OPTION_NAME . "[" . $subkey . "]";
|
315 |
$currentValue = $options[$subkey];
|
316 |
+
$size = 66;
|
317 |
|
318 |
if (array_key_exists('size', $args)) {
|
319 |
$size = $args['size'];
|
333 |
$currentValue = $options[$subkey];
|
334 |
?>
|
335 |
<div>
|
336 |
+
<textarea cols="66" rows="5" id="<?php echo $id; ?>" name='<?php echo $optionExpression; ?>'><?php echo $currentValue; ?></textarea>
|
337 |
<p><small><?php $this->_e("HTML tags are allowed. e.g. Add <br/> for break."); ?></small></p>
|
338 |
</div>
|
339 |
<?php
|
418 |
}
|
419 |
|
420 |
public function render_active_theme_selector($args) {
|
421 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
422 |
$options = get_option(Easy_Pie_MM_Constants::OPTION_NAME);
|
423 |
$subkey = $args['subkey'];
|
424 |
$id = $args['id'];
|
easy-pie-maintenance-mode.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Easy Pie Maintenance Mode
|
4 |
Plugin URI: http://easypiewp.com/easy-pie-maintenance-mode-faq/
|
5 |
Description: Lets people know that your site is temporarily down.
|
6 |
-
Version: 0.6.
|
7 |
Author: Bob Riley
|
8 |
Author URI: http://www.easypiewp.com
|
9 |
Text Domain: easy-pie-maintenance-mode
|
3 |
Plugin Name: Easy Pie Maintenance Mode
|
4 |
Plugin URI: http://easypiewp.com/easy-pie-maintenance-mode-faq/
|
5 |
Description: Lets people know that your site is temporarily down.
|
6 |
+
Version: 0.6.3
|
7 |
Author: Bob Riley
|
8 |
Author URI: http://www.easypiewp.com
|
9 |
Text Domain: easy-pie-maintenance-mode
|
pages/page-options.php
CHANGED
@@ -21,14 +21,14 @@
|
|
21 |
settings_fields(Easy_Pie_MM_Constants::MAIN_PAGE_KEY);
|
22 |
do_settings_sections(Easy_Pie_MM_Constants::MAIN_PAGE_KEY);
|
23 |
?>
|
24 |
-
<div style="margin-top: 25px; width:
|
25 |
<div class="handlediv" title="Click to toggle" onclick="easyPie.MM.toggleAdvancedBox();"><br></div>
|
26 |
<h3 style="height:25px; margin-bottom:0px; padding-left: 10px; padding-top:9px;" class="hndl" onclick="easyPie.MM.toggleAdvancedBox();"><span style="font-weight:bold"><?php Easy_Pie_MM_Utility::_e('Advanced Settings'); ?><span></h3>
|
27 |
<table id="easy-pie-mm-advanced" style="display:none" class="form-table">
|
28 |
<tr valign="top">
|
29 |
-
<th scope="row"><?php Easy_Pie_MM_Utility::_e("Custom CSS") ?></th><td>
|
30 |
<div>
|
31 |
-
<textarea cols="
|
32 |
<p><small><strong><?php Easy_Pie_MM_Utility::_e("Page styling varies greatly. ")?></strong><?php Easy_Pie_MM_Utility::_e("Update custom CSS when switching mini-themes."); ?></small></p>
|
33 |
</div>
|
34 |
</td>
|
21 |
settings_fields(Easy_Pie_MM_Constants::MAIN_PAGE_KEY);
|
22 |
do_settings_sections(Easy_Pie_MM_Constants::MAIN_PAGE_KEY);
|
23 |
?>
|
24 |
+
<div style="margin-top: 25px; width:784px" class="postbox easy-pie-mm-toggle">
|
25 |
<div class="handlediv" title="Click to toggle" onclick="easyPie.MM.toggleAdvancedBox();"><br></div>
|
26 |
<h3 style="height:25px; margin-bottom:0px; padding-left: 10px; padding-top:9px;" class="hndl" onclick="easyPie.MM.toggleAdvancedBox();"><span style="font-weight:bold"><?php Easy_Pie_MM_Utility::_e('Advanced Settings'); ?><span></h3>
|
27 |
<table id="easy-pie-mm-advanced" style="display:none" class="form-table">
|
28 |
<tr valign="top">
|
29 |
+
<th scope="row" style="padding-left:9px;"><?php Easy_Pie_MM_Utility::_e("Custom CSS") ?></th><td>
|
30 |
<div>
|
31 |
+
<textarea cols="67" rows="9" id="easy-pie-mm-field-junk" name="easy-pie-mm-options[css]"><?php echo $option_array["css"]; ?></textarea>
|
32 |
<p><small><strong><?php Easy_Pie_MM_Utility::_e("Page styling varies greatly. ")?></strong><?php Easy_Pie_MM_Utility::_e("Update custom CSS when switching mini-themes."); ?></small></p>
|
33 |
</div>
|
34 |
</td>
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Easy Pie Maintenance Mode ===
|
2 |
Contributors: bobriley
|
3 |
Donate link: http://easypiewp.com/donate/
|
4 |
-
Tags: maintenance,
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 3.
|
7 |
Stable tag: 0.6.2
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -82,6 +82,10 @@ Then, please [let me know](mailto:bob@easypiewp.com) what's going on, with as mu
|
|
82 |
|
83 |
== Changelog ==
|
84 |
|
|
|
|
|
|
|
|
|
85 |
= 0.6.2 =
|
86 |
* Bugfix: User theme directory wasn't created on startup
|
87 |
* Bugfix: Hiding logo if not defined
|
@@ -105,6 +109,9 @@ Then, please [let me know](mailto:bob@easypiewp.com) what's going on, with as mu
|
|
105 |
|
106 |
== Upgrade Notice ==
|
107 |
|
|
|
|
|
|
|
108 |
= 0.6.2 =
|
109 |
Fixed upgrade bug that prevented viewing themes on admin panel.
|
110 |
|
1 |
=== Easy Pie Maintenance Mode ===
|
2 |
Contributors: bobriley
|
3 |
Donate link: http://easypiewp.com/donate/
|
4 |
+
Tags: maintenance, admin, administration, construction, under construction, maintenance mode, offline, unavailable, launch
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 3.8
|
7 |
Stable tag: 0.6.2
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
82 |
|
83 |
== Changelog ==
|
84 |
|
85 |
+
= 0.6.3 =
|
86 |
+
* Bug fixes
|
87 |
+
* Improved styling for WordPress 3.8
|
88 |
+
|
89 |
= 0.6.2 =
|
90 |
* Bugfix: User theme directory wasn't created on startup
|
91 |
* Bugfix: Hiding logo if not defined
|
109 |
|
110 |
== Upgrade Notice ==
|
111 |
|
112 |
+
= 0.6.3 =
|
113 |
+
Small bug fixes & improved styling for WordPress 3.8
|
114 |
+
|
115 |
= 0.6.2 =
|
116 |
Fixed upgrade bug that prevented viewing themes on admin panel.
|
117 |
|
styles/easy-pie-styles.css
CHANGED
@@ -13,6 +13,7 @@
|
|
13 |
/*.bx-viewport { border-bottom: solid #AAA 1px; border-top: solid #AAA 1px;}*/
|
14 |
|
15 |
.bx-wrapper { margin: 0 0 20px 0!important }
|
|
|
16 |
#easy-pie-mm-bxslider-pager img { margin-top:-10px; margin-right:1px; border: 1px solid #AAA; height:71px; width:98%;}
|
17 |
|
18 |
.bx-prev { left: -45px!important;}
|
13 |
/*.bx-viewport { border-bottom: solid #AAA 1px; border-top: solid #AAA 1px;}*/
|
14 |
|
15 |
.bx-wrapper { margin: 0 0 20px 0!important }
|
16 |
+
.bx-wrapper .bx-caption span { padding: 5px; padding-bottom:19px;}
|
17 |
#easy-pie-mm-bxslider-pager img { margin-top:-10px; margin-right:1px; border: 1px solid #AAA; height:71px; width:98%;}
|
18 |
|
19 |
.bx-prev { left: -45px!important;}
|