Version Description
- 2017/04/24
- new theme - Light Bulb
- continued work on marking strings for translation
Download this release
Release Info
Developer | WebFactory |
Plugin | Under Construction |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 1.96 to 2.0
- images/thumbnails/light_bulb.png +0 -0
- readme.txt +13 -7
- themes/light_bulb/index.php +75 -0
- themes/light_bulb/light_bulb_off.png +0 -0
- themes/light_bulb/light_bulb_on.png +0 -0
- themes/light_bulb/style.css +113 -0
- under-construction.php +11 -12
images/thumbnails/light_bulb.png
ADDED
Binary file
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Under Construction ===
|
2 |
-
Contributors: WebFactory
|
3 |
Tags: maintenance mode, maintenance page, coming soon page, landing page, under construction
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.7
|
6 |
-
Stable tag:
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -88,15 +88,21 @@ Or if needed, upload manually;
|
|
88 |
16. Hot Air Baloon
|
89 |
17. People at Work #2 theme
|
90 |
18. Rocket Launch #2 theme
|
91 |
-
19.
|
92 |
-
20.
|
93 |
-
21.
|
94 |
-
22.
|
95 |
-
23.
|
|
|
96 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
|
|
100 |
= 1.96 =
|
101 |
* 2017/04/12
|
102 |
* new theme - Rocket Launch #2
|
1 |
=== Under Construction ===
|
2 |
+
Contributors: WebFactory, UnderConstructionPage
|
3 |
Tags: maintenance mode, maintenance page, coming soon page, landing page, under construction
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.7
|
6 |
+
Stable tag: 2.0
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
88 |
16. Hot Air Baloon
|
89 |
17. People at Work #2 theme
|
90 |
18. Rocket Launch #2 theme
|
91 |
+
19. Light Bulb theme
|
92 |
+
20. Main settings
|
93 |
+
21. Design settings
|
94 |
+
22. Content settings
|
95 |
+
23. Access settings
|
96 |
+
24. Support
|
97 |
|
98 |
|
99 |
== Changelog ==
|
100 |
|
101 |
+
= 2.0 =
|
102 |
+
* 2017/04/24
|
103 |
+
* new theme - Light Bulb
|
104 |
+
* continued work on marking strings for translation
|
105 |
+
|
106 |
= 1.96 =
|
107 |
* 2017/04/12
|
108 |
* new theme - Rocket Launch #2
|
themes/light_bulb/index.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* UnderConstructionPage
|
4 |
+
* Light Bulb 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:400,900">
|
26 |
+
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="crossorigin="anonymous"></script>
|
27 |
+
[head]
|
28 |
+
</head>
|
29 |
+
|
30 |
+
<body>
|
31 |
+
<div class="container top-container">
|
32 |
+
<div class="row display-table">
|
33 |
+
<div class="col-lg-offset-1 col-xs-12 col-md-12 col-lg-5 display-cell">
|
34 |
+
<h1>[heading1]</h1>
|
35 |
+
</div>
|
36 |
+
<div class="col-xs-12 col-md-12 col-lg-5 display-cell">
|
37 |
+
<div id="hero-image">
|
38 |
+
<img class="fadein" src="[theme-url]light_bulb_off.png" alt="Switching on the site soon ..." title="Switching on the site soon ...">
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
|
44 |
+
<div class="container">
|
45 |
+
<div class="row">
|
46 |
+
<div class="col-xs-12 col-md-8 col-md-offset-2 col-lg-offset-2 col-lg-8">
|
47 |
+
<p class="content">[content]</p>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
|
51 |
+
<div class="row" id="social">
|
52 |
+
<div class="col-xs-12 col-md-12 col-lg-12">
|
53 |
+
[social-icons]
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
+
|
57 |
+
</div>
|
58 |
+
[footer]
|
59 |
+
<script type="text/javascript">
|
60 |
+
jQuery(function($) {
|
61 |
+
var std = $('.fadein').attr('src');
|
62 |
+
var hover = std.replace('_off', '_on');
|
63 |
+
$('.fadein').clone().insertAfter('.fadein').attr('src', hover).removeClass('fadein').siblings().css({
|
64 |
+
position:'absolute'
|
65 |
+
});
|
66 |
+
$('.fadein').mouseenter(function() {
|
67 |
+
$('.fadein').stop().fadeTo(600, 0);
|
68 |
+
}).mouseleave(function() {
|
69 |
+
$('.fadein').stop().fadeTo(400, 1);
|
70 |
+
});
|
71 |
+
|
72 |
+
});
|
73 |
+
</script>
|
74 |
+
</body>
|
75 |
+
</html>
|
themes/light_bulb/light_bulb_off.png
ADDED
Binary file
|
themes/light_bulb/light_bulb_on.png
ADDED
Binary file
|
themes/light_bulb/style.css
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* UnderConstructionPage
|
3 |
+
* Light Bulb 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: #2e2e2e; /* #b9b9b9; */
|
19 |
+
|
20 |
+
|
21 |
+
background: #8e9eab; /* fallback for old browsers */
|
22 |
+
background: -webkit-linear-gradient(to right, #eef2f3, #8e9eab); /* Chrome 10-25, Safari 5.1-6 */
|
23 |
+
background: linear-gradient(to right, #eef2f3, #8e9eab); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
|
24 |
+
|
25 |
+
|
26 |
+
padding: 0;
|
27 |
+
margin: 0;
|
28 |
+
height: 100%;
|
29 |
+
}
|
30 |
+
|
31 |
+
.top-container {
|
32 |
+
padding: 50px 0;
|
33 |
+
}
|
34 |
+
|
35 |
+
#hero-image {
|
36 |
+
text-align: center;
|
37 |
+
}
|
38 |
+
|
39 |
+
#hero-image img {
|
40 |
+
max-width: 80%;
|
41 |
+
}
|
42 |
+
|
43 |
+
.display-table {
|
44 |
+
display: table;
|
45 |
+
table-layout: fixed;
|
46 |
+
}
|
47 |
+
|
48 |
+
.display-cell {
|
49 |
+
display: table-cell;
|
50 |
+
vertical-align: middle;
|
51 |
+
float: none;
|
52 |
+
}
|
53 |
+
|
54 |
+
h1 {
|
55 |
+
font-size: 34px;
|
56 |
+
color: #2e2e2e;
|
57 |
+
font-family: "Nunito", sans-serif;
|
58 |
+
font-weight: 900;
|
59 |
+
margin: 20px 0 30px 0;
|
60 |
+
text-align: right;
|
61 |
+
}
|
62 |
+
|
63 |
+
.content {
|
64 |
+
text-align: center;
|
65 |
+
font-family: "Helvetica", "Arial", sans-serif;
|
66 |
+
}
|
67 |
+
|
68 |
+
#social {
|
69 |
+
text-align: center;
|
70 |
+
margin-top: 30px;
|
71 |
+
}
|
72 |
+
|
73 |
+
#social a i {
|
74 |
+
color: #414042;
|
75 |
+
margin: 10px;
|
76 |
+
box-sizing: content-box;
|
77 |
+
}
|
78 |
+
|
79 |
+
#social a:hover i {
|
80 |
+
color: #f9b91a;
|
81 |
+
}
|
82 |
+
|
83 |
+
@media(max-width:767px) {
|
84 |
+
h1 {
|
85 |
+
font-size: 28px;
|
86 |
+
margin: 10px 0 30px 0;
|
87 |
+
}
|
88 |
+
#hero-image img {
|
89 |
+
max-width: 95%;
|
90 |
+
}
|
91 |
+
}
|
92 |
+
|
93 |
+
@media (max-width: 1200px) {
|
94 |
+
h1 {
|
95 |
+
text-align: center;
|
96 |
+
padding: 0 20px;
|
97 |
+
}
|
98 |
+
.display-table {
|
99 |
+
display: initial;
|
100 |
+
table-layout: auto;
|
101 |
+
}
|
102 |
+
.display-cell {
|
103 |
+
display: block;
|
104 |
+
vertical-align: middle;
|
105 |
+
float: none;
|
106 |
+
}
|
107 |
+
#hero-image img {
|
108 |
+
max-height: 250px
|
109 |
+
}
|
110 |
+
.top-container {
|
111 |
+
padding: 25px 0;
|
112 |
+
}
|
113 |
+
}
|
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:
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
Text Domain: under-construction-page
|
10 |
Domain Path: lang
|
@@ -333,8 +333,8 @@ class UCP {
|
|
333 |
// submit survey
|
334 |
static function submit_survey_ajax() {
|
335 |
check_ajax_referer('ucp_submit_survey');
|
336 |
-
|
337 |
-
|
338 |
$meta = self::get_meta();
|
339 |
$surveys = get_option(UCP_SURVEYS_KEY);
|
340 |
|
@@ -525,7 +525,7 @@ class UCP {
|
|
525 |
$vars['theme-url'] = trailingslashit(UCP_PLUGIN_URL . 'themes/' . $template_id);
|
526 |
$vars['theme-url-common'] = trailingslashit(UCP_PLUGIN_URL . 'themes');
|
527 |
$vars['title'] = self::parse_vars($options['title']);
|
528 |
-
$vars['generator'] = 'Free UnderConstructionPage plugin for WordPress';
|
529 |
$vars['heading1'] = self::parse_vars($options['heading1']);
|
530 |
$vars['content'] = nl2br(self::parse_vars($options['content']));
|
531 |
$vars['description'] = self::parse_vars($options['description']);
|
@@ -611,8 +611,8 @@ class UCP {
|
|
611 |
|
612 |
echo '<div id="ucp_rate_notice" class="notice-info notice is-dismissible"><p>Hi! We saw you\'ve been using <b class="ucp-logo" style="font-weight: bold;">UnderConstructionPage</b> plugin for a few days and wanted to ask for your help to <b>make the plugin better</b>.<br>We just need a minute of your time to rate the plugin. Thank you!';
|
613 |
|
614 |
-
echo '<br><a target="_blank" href="' . esc_url($rate_url) . '" style="vertical-align: baseline; margin-top: 15px;" class="button-primary">Help make the plugin better by rating it</a>';
|
615 |
-
echo ' <a href="' . esc_url($dismiss_url) . '">I\'ve already rated the plugin</a>';
|
616 |
echo '</p></div>';
|
617 |
}
|
618 |
} // notices
|
@@ -653,10 +653,10 @@ class UCP {
|
|
653 |
}
|
654 |
|
655 |
if (self::is_construction_mode_enabled(true)) {
|
656 |
-
$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>';
|
657 |
$class = 'ucp-enabled';
|
658 |
} else {
|
659 |
-
$title = '<img style="height: 17px; margin-bottom: -4px; padding-right: 3px;" src="' . UCP_PLUGIN_URL . '/images/ucp_icon_disabled.png" alt="Under construction mode is disabled" title="Under construction mode is disabled"> <span class="ab-label">Under construction mode is <strong style="font-weight: bold;">disabled</strong></span>';
|
660 |
$class = 'ucp-disabled';
|
661 |
}
|
662 |
|
@@ -672,8 +672,6 @@ class UCP {
|
|
672 |
|
673 |
// show under construction notice on WP login form
|
674 |
static function login_message($message) {
|
675 |
-
$options = get_option('wf_mm');
|
676 |
-
|
677 |
if (self::is_construction_mode_enabled(true)) {
|
678 |
$message .= '<div class="message">' . __('Under construction mode is <b>enabled</b>.', 'under-construction-page') . '</div>';
|
679 |
}
|
@@ -684,7 +682,7 @@ class UCP {
|
|
684 |
|
685 |
// add settings link to plugins page
|
686 |
static function plugin_action_links($links) {
|
687 |
-
$settings_link = '<a href="' . admin_url('options-general.php?page=ucp') . '" title="' . __('UnderConstruction Settings', 'under-construction-page') . '">Settings</a>';
|
688 |
array_unshift($links, $settings_link);
|
689 |
|
690 |
return $links;
|
@@ -1100,7 +1098,8 @@ class UCP {
|
|
1100 |
'lighthouse' => __('Lighthouse', 'under-construction-page'),
|
1101 |
'hot_air_baloon' => __('Hot Air Baloon', 'under-construction-page'),
|
1102 |
'people_2' => __('People at Work #2', 'under-construction-page'),
|
1103 |
-
'rocket_2' => __('Rocket Launch #2', 'under-construction-page')
|
|
|
1104 |
|
1105 |
echo '<table class="form-table">';
|
1106 |
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: 2.0
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
Text Domain: under-construction-page
|
10 |
Domain Path: lang
|
333 |
// submit survey
|
334 |
static function submit_survey_ajax() {
|
335 |
check_ajax_referer('ucp_submit_survey');
|
336 |
+
|
337 |
+
$options = self::get_options();
|
338 |
$meta = self::get_meta();
|
339 |
$surveys = get_option(UCP_SURVEYS_KEY);
|
340 |
|
525 |
$vars['theme-url'] = trailingslashit(UCP_PLUGIN_URL . 'themes/' . $template_id);
|
526 |
$vars['theme-url-common'] = trailingslashit(UCP_PLUGIN_URL . 'themes');
|
527 |
$vars['title'] = self::parse_vars($options['title']);
|
528 |
+
$vars['generator'] = __('Free UnderConstructionPage plugin for WordPress', 'under-construction-page');
|
529 |
$vars['heading1'] = self::parse_vars($options['heading1']);
|
530 |
$vars['content'] = nl2br(self::parse_vars($options['content']));
|
531 |
$vars['description'] = self::parse_vars($options['description']);
|
611 |
|
612 |
echo '<div id="ucp_rate_notice" class="notice-info notice is-dismissible"><p>Hi! We saw you\'ve been using <b class="ucp-logo" style="font-weight: bold;">UnderConstructionPage</b> plugin for a few days and wanted to ask for your help to <b>make the plugin better</b>.<br>We just need a minute of your time to rate the plugin. Thank you!';
|
613 |
|
614 |
+
echo '<br><a target="_blank" href="' . esc_url($rate_url) . '" style="vertical-align: baseline; margin-top: 15px;" class="button-primary">' . __('Help make the plugin better by rating it', 'under-construction-page') . '</a>';
|
615 |
+
echo ' <a href="' . esc_url($dismiss_url) . '">' . __('I\'ve already rated the plugin', 'under-construction-page') . '</a>';
|
616 |
echo '</p></div>';
|
617 |
}
|
618 |
} // notices
|
653 |
}
|
654 |
|
655 |
if (self::is_construction_mode_enabled(true)) {
|
656 |
+
$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', 'under-construction-page') . '" title="' . __('Under construction mode is enabled', 'under-construction-page') . '"> <span class="ab-label">' . __('Under construction mode is', 'under-construction-page') . ' <strong style="font-weight: bold;">' . __('enabled', 'under-construction-page') . '</strong></span>';
|
657 |
$class = 'ucp-enabled';
|
658 |
} else {
|
659 |
+
$title = '<img style="height: 17px; margin-bottom: -4px; padding-right: 3px;" src="' . UCP_PLUGIN_URL . '/images/ucp_icon_disabled.png" alt="' . __('Under construction mode is disabled', 'under-construction-page') . '" title="' . __('Under construction mode is disabled', 'under-construction-page') . '"> <span class="ab-label">' . __('Under construction mode is', 'under-construction-page') . ' <strong style="font-weight: bold;">' . __('disabled', 'under-construction-page') . '</strong></span>';
|
660 |
$class = 'ucp-disabled';
|
661 |
}
|
662 |
|
672 |
|
673 |
// show under construction notice on WP login form
|
674 |
static function login_message($message) {
|
|
|
|
|
675 |
if (self::is_construction_mode_enabled(true)) {
|
676 |
$message .= '<div class="message">' . __('Under construction mode is <b>enabled</b>.', 'under-construction-page') . '</div>';
|
677 |
}
|
682 |
|
683 |
// add settings link to plugins page
|
684 |
static function plugin_action_links($links) {
|
685 |
+
$settings_link = '<a href="' . admin_url('options-general.php?page=ucp') . '" title="' . __('UnderConstruction Settings', 'under-construction-page') . '">' . __('Settings', 'under-construction-page') . '</a>';
|
686 |
array_unshift($links, $settings_link);
|
687 |
|
688 |
return $links;
|
1098 |
'lighthouse' => __('Lighthouse', 'under-construction-page'),
|
1099 |
'hot_air_baloon' => __('Hot Air Baloon', 'under-construction-page'),
|
1100 |
'people_2' => __('People at Work #2', 'under-construction-page'),
|
1101 |
+
'rocket_2' => __('Rocket Launch #2', 'under-construction-page'),
|
1102 |
+
'light_bulb' => __('Light Bulb', 'under-construction-page'));
|
1103 |
|
1104 |
echo '<table class="form-table">';
|
1105 |
echo '<tr valign="top">
|