Version Description
- 2017/03/13
- new theme - Lighthouse
- admin bar notice is no longer visible to non-admins
- minor fixes
Download this release
Release Info
Developer | WebFactory |
Plugin | Under Construction |
Version | 1.80 |
Comparing to | |
See all releases |
Code changes from version 1.75 to 1.80
- images/{cyber_chick.png → thumbnails/cyber_chick.png} +0 -0
- images/{cyber_chick_dark.png → thumbnails/cyber_chick_dark.png} +0 -0
- images/{dark.png → thumbnails/dark.png} +0 -0
- images/{forklift.png → thumbnails/forklift.png} +0 -0
- images/thumbnails/lighthouse.png +0 -0
- images/{loader.png → thumbnails/loader.png} +0 -0
- images/{mad_designer.png → thumbnails/mad_designer.png} +0 -0
- images/{more_coming_soon.png → thumbnails/more_coming_soon.png} +0 -0
- images/{people.png → thumbnails/people.png} +0 -0
- images/{plain_text.png → thumbnails/plain_text.png} +0 -0
- images/{rocket.png → thumbnails/rocket.png} +0 -0
- images/{sad_site.png → thumbnails/sad_site.png} +0 -0
- images/{safe.png → thumbnails/safe.png} +0 -0
- images/{under_construction.png → thumbnails/under_construction.png} +0 -0
- images/{under_construction_text.png → thumbnails/under_construction_text.png} +0 -0
- images/{windmill.png → thumbnails/windmill.png} +0 -0
- js/ucp-admin-pointers.js +1 -1
- readme.txt +14 -6
- themes/lighthouse/index.php +57 -0
- themes/lighthouse/lighthouse.png +0 -0
- themes/lighthouse/style.css +76 -0
- under-construction.php +15 -4
images/{cyber_chick.png → thumbnails/cyber_chick.png}
RENAMED
File without changes
|
images/{cyber_chick_dark.png → thumbnails/cyber_chick_dark.png}
RENAMED
File without changes
|
images/{dark.png → thumbnails/dark.png}
RENAMED
File without changes
|
images/{forklift.png → thumbnails/forklift.png}
RENAMED
File without changes
|
images/thumbnails/lighthouse.png
ADDED
Binary file
|
images/{loader.png → thumbnails/loader.png}
RENAMED
File without changes
|
images/{mad_designer.png → thumbnails/mad_designer.png}
RENAMED
File without changes
|
images/{more_coming_soon.png → thumbnails/more_coming_soon.png}
RENAMED
File without changes
|
images/{people.png → thumbnails/people.png}
RENAMED
File without changes
|
images/{plain_text.png → thumbnails/plain_text.png}
RENAMED
File without changes
|
images/{rocket.png → thumbnails/rocket.png}
RENAMED
File without changes
|
images/{sad_site.png → thumbnails/sad_site.png}
RENAMED
File without changes
|
images/{safe.png → thumbnails/safe.png}
RENAMED
File without changes
|
images/{under_construction.png → thumbnails/under_construction.png}
RENAMED
File without changes
|
images/{under_construction_text.png → thumbnails/under_construction_text.png}
RENAMED
File without changes
|
images/{windmill.png → thumbnails/windmill.png}
RENAMED
File without changes
|
js/ucp-admin-pointers.js
CHANGED
@@ -15,7 +15,7 @@ jQuery(document).ready(function($){
|
|
15 |
return true;
|
16 |
}
|
17 |
$(pointer.target).pointer({
|
18 |
-
content: '<h3>
|
19 |
position: {
|
20 |
edge: pointer.edge,
|
21 |
align: pointer.align
|
15 |
return true;
|
16 |
}
|
17 |
$(pointer.target).pointer({
|
18 |
+
content: '<h3>' + ucp.plugin_name + '</h3><p>' + pointer.content + '</p>',
|
19 |
position: {
|
20 |
edge: pointer.edge,
|
21 |
align: pointer.align
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: WebFactory
|
|
3 |
Tags: under construction page, coming soon page, maintenance, maintenance page, coming soon, maintenance mode, under construction mode, coming soon mode, site unavailable, under construction, landing page, construction, launch, launch page, offline, rtl
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.7
|
6 |
-
Stable tag: 1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -81,20 +81,28 @@ Or if needed, upload manually;
|
|
81 |
12. People at Work theme
|
82 |
13. Windmill theme
|
83 |
14. Sad Site theme
|
84 |
-
15.
|
85 |
-
16.
|
86 |
-
17.
|
87 |
-
18.
|
88 |
-
19.
|
|
|
89 |
|
90 |
|
91 |
== Changelog ==
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
= 1.75 =
|
94 |
* 2017/03/02
|
95 |
* new theme - Sad Site
|
96 |
* removed survey
|
97 |
* added new social icon: Tumblr
|
|
|
98 |
|
99 |
= 1.70 =
|
100 |
* 2017/02/22
|
3 |
Tags: under construction page, coming soon page, maintenance, maintenance page, coming soon, maintenance mode, under construction mode, coming soon mode, site unavailable, under construction, landing page, construction, launch, launch page, offline, rtl
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.7
|
6 |
+
Stable tag: 1.80
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
81 |
12. People at Work theme
|
82 |
13. Windmill theme
|
83 |
14. Sad Site theme
|
84 |
+
15. Lighthouse
|
85 |
+
16. Main settings
|
86 |
+
17. Design settings
|
87 |
+
18. Content settings
|
88 |
+
19. Access settings
|
89 |
+
20. Support
|
90 |
|
91 |
|
92 |
== Changelog ==
|
93 |
|
94 |
+
= 1.80 =
|
95 |
+
* 2017/03/13
|
96 |
+
* new theme - Lighthouse
|
97 |
+
* admin bar notice is no longer visible to non-admins
|
98 |
+
* minor fixes
|
99 |
+
|
100 |
= 1.75 =
|
101 |
* 2017/03/02
|
102 |
* new theme - Sad Site
|
103 |
* removed survey
|
104 |
* added new social icon: Tumblr
|
105 |
+
* we've crossed the 50k users mark
|
106 |
|
107 |
= 1.70 =
|
108 |
* 2017/02/22
|
themes/lighthouse/index.php
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* UnderConstructionPage
|
4 |
+
* Lighthouse theme
|
5 |
+
* (c) Web factory Ltd, 2015 - 2017
|
6 |
+
*/
|
7 |
+
|
8 |
+
|
9 |
+
// this is an include only WP file
|
10 |
+
if (!defined('ABSPATH')) {
|
11 |
+
die;
|
12 |
+
}
|
13 |
+
?>
|
14 |
+
<!DOCTYPE html>
|
15 |
+
<html lang="en">
|
16 |
+
<head>
|
17 |
+
<meta charset="utf-8">
|
18 |
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
19 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
20 |
+
<title>[title]</title>
|
21 |
+
<meta name="description" content="[description]" />
|
22 |
+
<meta name="generator" content="[generator]">
|
23 |
+
<link rel="stylesheet" href="[theme-url-common]css/bootstrap.min.css?v=[version]" type="text/css">
|
24 |
+
<link rel="stylesheet" href="[theme-url]style.css?v=[version]" type="text/css">
|
25 |
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,600,900">
|
26 |
+
<link rel="stylesheet" href="[theme-url-common]css/font-awesome.min.css?v=[version]" type="text/css">
|
27 |
+
[head]
|
28 |
+
</head>
|
29 |
+
|
30 |
+
<body>
|
31 |
+
<div id="hero-image">
|
32 |
+
<img src="[theme-url]lighthouse.png" alt="Lighthouse" title="Lighthouse">
|
33 |
+
</div>
|
34 |
+
<div class="container">
|
35 |
+
|
36 |
+
<div class="row">
|
37 |
+
<div class="col-xs-12 col-md-12 col-lg-12">
|
38 |
+
<h1>[heading1]</h1>
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
|
42 |
+
<div class="row">
|
43 |
+
<div class="col-xs-12 col-md-8 col-md-offset-2 col-lg-offset-2 col-lg-8">
|
44 |
+
<p class="content">[content]</p>
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
|
48 |
+
<div class="row" id="social">
|
49 |
+
<div class="col-xs-12 col-md-12 col-lg-12">
|
50 |
+
[social-icons]
|
51 |
+
</div>
|
52 |
+
</div>
|
53 |
+
|
54 |
+
</div>
|
55 |
+
[footer]
|
56 |
+
</body>
|
57 |
+
</html>
|
themes/lighthouse/lighthouse.png
ADDED
Binary file
|
themes/lighthouse/style.css
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* UnderConstructionPage
|
3 |
+
* Lighthouse theme CSS
|
4 |
+
* (c) Web factory Ltd, 2015 - 2017
|
5 |
+
*/
|
6 |
+
|
7 |
+
|
8 |
+
html {
|
9 |
+
height: 100%;
|
10 |
+
padding: 0;
|
11 |
+
margin: 0;
|
12 |
+
}
|
13 |
+
|
14 |
+
body {
|
15 |
+
font-weight: 400;
|
16 |
+
font-size: 14px;
|
17 |
+
line-height: 120%;
|
18 |
+
color: #2C3D55;
|
19 |
+
background: #98a8be;
|
20 |
+
padding: 0;
|
21 |
+
margin: 0;
|
22 |
+
background-repeat: no-repeat;
|
23 |
+
background-attachment: fixed;
|
24 |
+
}
|
25 |
+
|
26 |
+
#hero-image {
|
27 |
+
text-align: center;
|
28 |
+
margin: 20px auto 10px auto;
|
29 |
+
border-bottom: 5px solid #414042;
|
30 |
+
}
|
31 |
+
|
32 |
+
#hero-image img {
|
33 |
+
max-width: 80%;
|
34 |
+
}
|
35 |
+
|
36 |
+
h1 {
|
37 |
+
font-size: 34px;
|
38 |
+
color: #2C3D55;
|
39 |
+
font-family: "Nunito", sans-serif;
|
40 |
+
font-weight: 900;
|
41 |
+
margin: 20px 0 30px 0;
|
42 |
+
text-align: center;
|
43 |
+
}
|
44 |
+
|
45 |
+
.content {
|
46 |
+
text-align: center;
|
47 |
+
font-family: "Helvetica", "Arial", sans-serif;
|
48 |
+
}
|
49 |
+
|
50 |
+
#social {
|
51 |
+
text-align: center;
|
52 |
+
margin-top: 30px;
|
53 |
+
}
|
54 |
+
|
55 |
+
#social a i {
|
56 |
+
color: #2C3D55;
|
57 |
+
margin: 10px;
|
58 |
+
box-sizing: content-box;
|
59 |
+
}
|
60 |
+
|
61 |
+
#social a:hover i {
|
62 |
+
color: #e0632f;
|
63 |
+
}
|
64 |
+
|
65 |
+
@media(max-width:767px){
|
66 |
+
h1 {
|
67 |
+
font-size: 30px;
|
68 |
+
margin: 10px 0 30px 0;
|
69 |
+
}
|
70 |
+
#hero-image img {
|
71 |
+
max-width: 95%;
|
72 |
+
}
|
73 |
+
#hero-image {
|
74 |
+
border-bottom: 3px solid #414042;
|
75 |
+
}
|
76 |
+
}
|
under-construction.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin URI: https://underconstructionpage.com/
|
5 |
Description: Hide your site behind a great looking under construction page while you do maintenance work.
|
6 |
Author: Web factory Ltd
|
7 |
-
Version: 1.
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
Text Domain: under-construction-page
|
10 |
Domain Path: lang
|
@@ -208,6 +208,11 @@ class UCP {
|
|
208 |
|
209 |
// some URLs have to be accessible at all times
|
210 |
if ($_SERVER['REQUEST_URI'] == '/wp-admin' ||
|
|
|
|
|
|
|
|
|
|
|
211 |
$_SERVER['REQUEST_URI'] == '/wp-admin/' ||
|
212 |
$_SERVER['REQUEST_URI'] == '/wp-login.php') {
|
213 |
return true;
|
@@ -256,7 +261,7 @@ class UCP {
|
|
256 |
}
|
257 |
|
258 |
$js_localize = array('undocumented_error' => __('An undocumented error has occured. Please refresh the page and try again.', 'under-construction-page'),
|
259 |
-
'plugin_name' => __('
|
260 |
'settings_url' => admin_url('options-general.php?page=ucp'),
|
261 |
'whitelisted_users_placeholder' => 'Select whitelisted user(s)',
|
262 |
'open_features_survey' => $open_features_survey,
|
@@ -289,6 +294,7 @@ class UCP {
|
|
289 |
wp_enqueue_script('ucp-pointers', plugins_url('js/ucp-admin-pointers.js', __FILE__), array('jquery'), self::$version, true);
|
290 |
wp_enqueue_style('wp-pointer');
|
291 |
wp_localize_script('wp-pointer', 'ucp_pointers', $pointers);
|
|
|
292 |
}
|
293 |
} // admin_enqueue_scripts
|
294 |
|
@@ -633,6 +639,11 @@ class UCP {
|
|
633 |
// add admin bar notice when construction is enabled
|
634 |
static function admin_bar_notice() {
|
635 |
global $wp_admin_bar;
|
|
|
|
|
|
|
|
|
|
|
636 |
|
637 |
if (self::is_construction_mode_enabled(true)) {
|
638 |
$title = '<img style="height: 17px; margin-bottom: -4px; padding-right: 3px;" src="' . UCP_PLUGIN_URL . '/images/ucp_icon_enabled.png" alt="Under construction mode is enabled" title="Under construction mode is enabled"> <span class="ab-label">Under construction mode is <strong style="font-weight: bold;">enabled</strong></span>';
|
@@ -1055,9 +1066,9 @@ class UCP {
|
|
1055 |
$options = self::get_options();
|
1056 |
$default_options = self::default_options();
|
1057 |
|
1058 |
-
$img_path = UCP_PLUGIN_URL . 'images/';
|
1059 |
|
1060 |
-
$themes = array('mad_designer' => 'Mad Designer', 'plain_text' => 'Plain Text', 'under_construction' => 'Under Construction', 'dark' => 'Things Went Dark', 'forklift' => 'Forklift at Work', 'under_construction_text' => 'Under Construction Text', 'cyber_chick' => 'Cyber Chick', 'rocket' => 'Rocket Launch', 'loader' => 'Loader at Work', 'cyber_chick_dark' => 'Cyber Chick Dark', 'safe' => 'Safe', 'people' => 'People at Work', 'windmill' => 'Windmill', 'sad_site' => 'Sad Site');
|
1061 |
|
1062 |
echo '<table class="form-table">';
|
1063 |
echo '<tr valign="top">
|
4 |
Plugin URI: https://underconstructionpage.com/
|
5 |
Description: Hide your site behind a great looking under construction page while you do maintenance work.
|
6 |
Author: Web factory Ltd
|
7 |
+
Version: 1.80
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
Text Domain: under-construction-page
|
10 |
Domain Path: lang
|
208 |
|
209 |
// some URLs have to be accessible at all times
|
210 |
if ($_SERVER['REQUEST_URI'] == '/wp-admin' ||
|
211 |
+
$_SERVER['REQUEST_URI'] == '/feed/' ||
|
212 |
+
$_SERVER['REQUEST_URI'] == '/feed/rss/' ||
|
213 |
+
$_SERVER['REQUEST_URI'] == '/feed/rss2/' ||
|
214 |
+
$_SERVER['REQUEST_URI'] == '/feed/rdf/' ||
|
215 |
+
$_SERVER['REQUEST_URI'] == '/feed/atom/' ||
|
216 |
$_SERVER['REQUEST_URI'] == '/wp-admin/' ||
|
217 |
$_SERVER['REQUEST_URI'] == '/wp-login.php') {
|
218 |
return true;
|
261 |
}
|
262 |
|
263 |
$js_localize = array('undocumented_error' => __('An undocumented error has occured. Please refresh the page and try again.', 'under-construction-page'),
|
264 |
+
'plugin_name' => __('UnderConstructionPage', 'under-construction-page'),
|
265 |
'settings_url' => admin_url('options-general.php?page=ucp'),
|
266 |
'whitelisted_users_placeholder' => 'Select whitelisted user(s)',
|
267 |
'open_features_survey' => $open_features_survey,
|
294 |
wp_enqueue_script('ucp-pointers', plugins_url('js/ucp-admin-pointers.js', __FILE__), array('jquery'), self::$version, true);
|
295 |
wp_enqueue_style('wp-pointer');
|
296 |
wp_localize_script('wp-pointer', 'ucp_pointers', $pointers);
|
297 |
+
wp_localize_script('jquery', 'ucp', $js_localize);
|
298 |
}
|
299 |
} // admin_enqueue_scripts
|
300 |
|
639 |
// add admin bar notice when construction is enabled
|
640 |
static function admin_bar_notice() {
|
641 |
global $wp_admin_bar;
|
642 |
+
|
643 |
+
// only show to admins
|
644 |
+
if (!current_user_can('administrator')) {
|
645 |
+
return;
|
646 |
+
}
|
647 |
|
648 |
if (self::is_construction_mode_enabled(true)) {
|
649 |
$title = '<img style="height: 17px; margin-bottom: -4px; padding-right: 3px;" src="' . UCP_PLUGIN_URL . '/images/ucp_icon_enabled.png" alt="Under construction mode is enabled" title="Under construction mode is enabled"> <span class="ab-label">Under construction mode is <strong style="font-weight: bold;">enabled</strong></span>';
|
1066 |
$options = self::get_options();
|
1067 |
$default_options = self::default_options();
|
1068 |
|
1069 |
+
$img_path = UCP_PLUGIN_URL . 'images/thumbnails/';
|
1070 |
|
1071 |
+
$themes = array('mad_designer' => 'Mad Designer', 'plain_text' => 'Plain Text', 'under_construction' => 'Under Construction', 'dark' => 'Things Went Dark', 'forklift' => 'Forklift at Work', 'under_construction_text' => 'Under Construction Text', 'cyber_chick' => 'Cyber Chick', 'rocket' => 'Rocket Launch', 'loader' => 'Loader at Work', 'cyber_chick_dark' => 'Cyber Chick Dark', 'safe' => 'Safe', 'people' => 'People at Work', 'windmill' => 'Windmill', 'sad_site' => 'Sad Site', 'lighthouse' => 'Lighthouse');
|
1072 |
|
1073 |
echo '<table class="form-table">';
|
1074 |
echo '<tr valign="top">
|