Version Description
Download this release
Release Info
Developer | smartcat |
Plugin | WP Construction Mode |
Version | 1.7 |
Comparing to | |
See all releases |
Code changes from version 1.6 to 1.7
- form.php +77 -15
- images/bg_pattern.png +0 -0
- library/construction.php +37 -35
- readme.txt +3 -1
- screenshot-1.png +0 -0
- style/style.css +72 -15
- style/style_css.php +3 -0
- under-construction.php +35 -2
form.php
CHANGED
@@ -1,10 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<style>
|
2 |
.left{ float: left;}
|
3 |
.right {float: right;}
|
4 |
.center{text-align: center;}
|
5 |
.width70{ width: 70%;}
|
6 |
.width25{ width: 25%;}
|
7 |
-
|
8 |
#gopro{
|
9 |
width: 100%;
|
10 |
display: block;
|
@@ -57,13 +75,16 @@
|
|
57 |
color: red;
|
58 |
font-style: italic;
|
59 |
}
|
|
|
|
|
|
|
60 |
</style>
|
61 |
|
62 |
<div id="wrapper">
|
63 |
<div id="gopro">
|
64 |
<div class="left">
|
65 |
<h1><b>WP Construction / Maintenance Mode</b></h1>
|
66 |
-
<div><em>Why go pro?</em> More Icons, More Colors
|
67 |
</div>
|
68 |
<div class="right">
|
69 |
<a href="http://smartcatdesign.net/wp-construction-mode-pro-wordpress-plugin/" target="_blank" class="button-primary" style="padding: 40px;line-height: 0;font-size: 20px">GO PRO NOW</a>
|
@@ -110,7 +131,7 @@
|
|
110 |
<table class="widefat">
|
111 |
<thead>
|
112 |
<tr>
|
113 |
-
<th colspan="2">
|
114 |
</tr>
|
115 |
</thead>
|
116 |
<tbody>
|
@@ -143,12 +164,53 @@
|
|
143 |
|
144 |
</select>
|
145 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
<tr>
|
147 |
<td><?php _e('Logo') ?></td>
|
148 |
<td>
|
149 |
<input type="text" name="wuc_logo" value="<?php echo $wuc_logo ?>" placeholder="<?php _e('Enter image path/url or leave blank for no logo'); ?>"/>
|
150 |
</td>
|
151 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
<tr>
|
153 |
<td><?php _e('Title') ?></td>
|
154 |
<td>
|
@@ -162,7 +224,7 @@
|
|
162 |
</td>
|
163 |
</tr>
|
164 |
<tr>
|
165 |
-
<td><?php _e('Loading Animation')?></td>
|
166 |
<td>
|
167 |
<select name='wuc_load_animate'>
|
168 |
<option value='no'>None</option>
|
@@ -182,31 +244,31 @@
|
|
182 |
</thead>
|
183 |
<tbody>
|
184 |
<tr>
|
185 |
-
<td><?php _e('Facebook URL')?></td>
|
186 |
<td>
|
187 |
<input type="text" name="wuc_facebook" value="<?php echo $wuc_facebook ?>" placeholder="<?php _e('Enter Facebook URL or leave blank for no icon'); ?>"/>
|
188 |
</td>
|
189 |
</tr>
|
190 |
<tr>
|
191 |
-
<td><?php _e('Google Plus URL')?></td>
|
192 |
<td>
|
193 |
<input type="text" name="wuc_gplus" value="<?php echo $wuc_gplus ?>" placeholder="<?php _e('Enter Google Plus URL or leave blank for no icon'); ?>"/>
|
194 |
</td>
|
195 |
</tr>
|
196 |
<tr>
|
197 |
-
<td><?php _e('Twitter URL')?></td>
|
198 |
<td>
|
199 |
<input type="text" name="wuc_twitter" value="<?php echo $wuc_twitter ?>" placeholder="<?php _e('Enter Twitter URL or leave blank for no icon'); ?>"/>
|
200 |
</td>
|
201 |
</tr>
|
202 |
<tr>
|
203 |
-
<td><?php _e('Email Address')?></td>
|
204 |
<td>
|
205 |
<input type="text" name="wuc_email" value="<?php echo $wuc_email ?>" placeholder="<?php _e('Enter email address or leave blank for no icon'); ?>"/>
|
206 |
</td>
|
207 |
</tr>
|
208 |
<tr>
|
209 |
-
<td><?php _e('Hover Animation')?></td>
|
210 |
<td>
|
211 |
<select name='wuc_social_animate'>
|
212 |
<option value='no'>No</option>
|
@@ -216,37 +278,37 @@
|
|
216 |
</td>
|
217 |
</tr>
|
218 |
<tr>
|
219 |
-
<td><?php _e('Instagram')?></td>
|
220 |
<td>
|
221 |
<input type="text" name="#" placeholder="<?php _e('Enter Instagram URL or leave blank for no icon'); ?>" disabled/><span class='proversion'>Pro Version</span>
|
222 |
</td>
|
223 |
</tr>
|
224 |
<tr>
|
225 |
-
<td><?php _e('Digg')?></td>
|
226 |
<td>
|
227 |
<input type="text" placeholder="<?php _e('Enter Digg URL or leave blank for no icon'); ?>" disabled/><span class='proversion'>Pro Version</span>
|
228 |
</td>
|
229 |
</tr>
|
230 |
<tr>
|
231 |
-
<td><?php _e('Flickr')?></td>
|
232 |
<td>
|
233 |
<input type="text" placeholder="<?php _e('Enter Flickr URL or leave blank for no icon'); ?>" disabled/><span class='proversion'>Pro Version</span>
|
234 |
</td>
|
235 |
</tr>
|
236 |
<tr>
|
237 |
-
<td><?php _e('Skype')?></td>
|
238 |
<td>
|
239 |
<input type="text" placeholder="<?php _e('Enter Skype URL or leave blank for no icon'); ?>" disabled/><span class='proversion'>Pro Version</span>
|
240 |
</td>
|
241 |
</tr>
|
242 |
<tr>
|
243 |
-
<td><?php _e('Tumblr')?></td>
|
244 |
<td>
|
245 |
<input type="text" placeholder="<?php _e('Enter Tumblr URL or leave blank for no icon'); ?>" disabled/><span class='proversion'>Pro Version</span>
|
246 |
</td>
|
247 |
</tr>
|
248 |
<tr>
|
249 |
-
<td><?php _e('Youtube')?></td>
|
250 |
<td>
|
251 |
<input type="text" placeholder="<?php _e('Enter Youtube URL or leave blank for no icon'); ?>" disabled/><span class='proversion'>Pro Version</span>
|
252 |
</td>
|
1 |
+
<script>
|
2 |
+
jQuery(function() {
|
3 |
+
jQuery('#wuc_loading').change(function() {
|
4 |
+
if (jQuery(this).val() == 'progress') {
|
5 |
+
jQuery('.choose-progress').show();
|
6 |
+
jQuery('.choose-time').hide();
|
7 |
+
|
8 |
+
} else {
|
9 |
+
jQuery('.choose-progress').hide();
|
10 |
+
}
|
11 |
+
});
|
12 |
+
<?php if ($wuc_loading == 'timer') { ?>
|
13 |
+
jQuery('.choose-time').show();
|
14 |
+
<?php } elseif ($wuc_loading == 'progress') { ?>
|
15 |
+
jQuery('.choose-progress').show();
|
16 |
+
<?php } ?>
|
17 |
+
});
|
18 |
+
</script>
|
19 |
<style>
|
20 |
.left{ float: left;}
|
21 |
.right {float: right;}
|
22 |
.center{text-align: center;}
|
23 |
.width70{ width: 70%;}
|
24 |
.width25{ width: 25%;}
|
25 |
+
.width50{ width: 50%;}
|
26 |
#gopro{
|
27 |
width: 100%;
|
28 |
display: block;
|
75 |
color: red;
|
76 |
font-style: italic;
|
77 |
}
|
78 |
+
.choose-progress{
|
79 |
+
display: none;
|
80 |
+
}
|
81 |
</style>
|
82 |
|
83 |
<div id="wrapper">
|
84 |
<div id="gopro">
|
85 |
<div class="left">
|
86 |
<h1><b>WP Construction / Maintenance Mode</b></h1>
|
87 |
+
<div><em>Why go pro?</em> Animated Progress Bar, Countdown Timer, More Icons, More Colors and Animations</div>
|
88 |
</div>
|
89 |
<div class="right">
|
90 |
<a href="http://smartcatdesign.net/wp-construction-mode-pro-wordpress-plugin/" target="_blank" class="button-primary" style="padding: 40px;line-height: 0;font-size: 20px">GO PRO NOW</a>
|
131 |
<table class="widefat">
|
132 |
<thead>
|
133 |
<tr>
|
134 |
+
<th colspan="2">General Settings</th>
|
135 |
</tr>
|
136 |
</thead>
|
137 |
<tbody>
|
164 |
|
165 |
</select>
|
166 |
</td>
|
167 |
+
</tr>
|
168 |
+
<tr>
|
169 |
+
<td><?php _e('Loading Style') ?></td>
|
170 |
+
<td>
|
171 |
+
<select name="wuc_loading" id="wuc_loading">
|
172 |
+
<option value="timer" disabled>Countdown Timer - Pro Version</option>
|
173 |
+
<option value="progress" <?php echo ($wuc_loading == 'progress') ? 'selected=selected' : ''; ?>>Progress Bar</option>
|
174 |
+
<option value="none" <?php echo ($wuc_loading == 'none') ? 'selected=selected' : ''; ?>>None</option>
|
175 |
+
</select>
|
176 |
+
|
177 |
+
</td>
|
178 |
+
</tr>
|
179 |
+
<tr class="choose-progress">
|
180 |
+
<td><?php _e('Percentage Complete') ?></td>
|
181 |
+
<td>
|
182 |
+
<select name="wuc_progress">
|
183 |
+
<option value="10" <?php echo ($wuc_progress == '10') ? 'selected=selected' : '' ?>>10%</option>
|
184 |
+
<option value="20" <?php echo ($wuc_progress == '20') ? 'selected=selected' : '' ?>>20%</option>
|
185 |
+
<option value="30" <?php echo ($wuc_progress == '30') ? 'selected=selected' : '' ?>>30%</option>
|
186 |
+
<option value="40" <?php echo ($wuc_progress == '40') ? 'selected=selected' : '' ?>>40%</option>
|
187 |
+
<option value="50" <?php echo ($wuc_progress == '50') ? 'selected=selected' : '' ?>>50%</option>
|
188 |
+
<option value="60" <?php echo ($wuc_progress == '60') ? 'selected=selected' : '' ?>>60%</option>
|
189 |
+
<option value="70" <?php echo ($wuc_progress == '70') ? 'selected=selected' : '' ?>>70%</option>
|
190 |
+
<option value="80" <?php echo ($wuc_progress == '80') ? 'selected=selected' : '' ?>>80%</option>
|
191 |
+
<option value="90" <?php echo ($wuc_progress == '90') ? 'selected=selected' : '' ?>>90%</option>
|
192 |
+
</select>
|
193 |
+
</td
|
194 |
+
</table>
|
195 |
+
<table class="widefat">
|
196 |
+
<thead>
|
197 |
+
<tr>
|
198 |
+
<th colspan="2">Appearance</th>
|
199 |
+
</tr>
|
200 |
+
</thead>
|
201 |
+
<tbody>
|
202 |
<tr>
|
203 |
<td><?php _e('Logo') ?></td>
|
204 |
<td>
|
205 |
<input type="text" name="wuc_logo" value="<?php echo $wuc_logo ?>" placeholder="<?php _e('Enter image path/url or leave blank for no logo'); ?>"/>
|
206 |
</td>
|
207 |
</tr>
|
208 |
+
<tr>
|
209 |
+
<td><?php _e('Background Image') ?></td>
|
210 |
+
<td>
|
211 |
+
<input type="text" name="wuc_background" value="<?php echo $wuc_background ?>" placeholder="<?php _e('Enter image path/url or leave blank for default background'); ?>"/>
|
212 |
+
</td>
|
213 |
+
</tr>
|
214 |
<tr>
|
215 |
<td><?php _e('Title') ?></td>
|
216 |
<td>
|
224 |
</td>
|
225 |
</tr>
|
226 |
<tr>
|
227 |
+
<td><?php _e('Loading Animation') ?></td>
|
228 |
<td>
|
229 |
<select name='wuc_load_animate'>
|
230 |
<option value='no'>None</option>
|
244 |
</thead>
|
245 |
<tbody>
|
246 |
<tr>
|
247 |
+
<td><?php _e('Facebook URL') ?></td>
|
248 |
<td>
|
249 |
<input type="text" name="wuc_facebook" value="<?php echo $wuc_facebook ?>" placeholder="<?php _e('Enter Facebook URL or leave blank for no icon'); ?>"/>
|
250 |
</td>
|
251 |
</tr>
|
252 |
<tr>
|
253 |
+
<td><?php _e('Google Plus URL') ?></td>
|
254 |
<td>
|
255 |
<input type="text" name="wuc_gplus" value="<?php echo $wuc_gplus ?>" placeholder="<?php _e('Enter Google Plus URL or leave blank for no icon'); ?>"/>
|
256 |
</td>
|
257 |
</tr>
|
258 |
<tr>
|
259 |
+
<td><?php _e('Twitter URL') ?></td>
|
260 |
<td>
|
261 |
<input type="text" name="wuc_twitter" value="<?php echo $wuc_twitter ?>" placeholder="<?php _e('Enter Twitter URL or leave blank for no icon'); ?>"/>
|
262 |
</td>
|
263 |
</tr>
|
264 |
<tr>
|
265 |
+
<td><?php _e('Email Address') ?></td>
|
266 |
<td>
|
267 |
<input type="text" name="wuc_email" value="<?php echo $wuc_email ?>" placeholder="<?php _e('Enter email address or leave blank for no icon'); ?>"/>
|
268 |
</td>
|
269 |
</tr>
|
270 |
<tr>
|
271 |
+
<td><?php _e('Hover Animation') ?></td>
|
272 |
<td>
|
273 |
<select name='wuc_social_animate'>
|
274 |
<option value='no'>No</option>
|
278 |
</td>
|
279 |
</tr>
|
280 |
<tr>
|
281 |
+
<td><?php _e('Instagram') ?></td>
|
282 |
<td>
|
283 |
<input type="text" name="#" placeholder="<?php _e('Enter Instagram URL or leave blank for no icon'); ?>" disabled/><span class='proversion'>Pro Version</span>
|
284 |
</td>
|
285 |
</tr>
|
286 |
<tr>
|
287 |
+
<td><?php _e('Digg') ?></td>
|
288 |
<td>
|
289 |
<input type="text" placeholder="<?php _e('Enter Digg URL or leave blank for no icon'); ?>" disabled/><span class='proversion'>Pro Version</span>
|
290 |
</td>
|
291 |
</tr>
|
292 |
<tr>
|
293 |
+
<td><?php _e('Flickr') ?></td>
|
294 |
<td>
|
295 |
<input type="text" placeholder="<?php _e('Enter Flickr URL or leave blank for no icon'); ?>" disabled/><span class='proversion'>Pro Version</span>
|
296 |
</td>
|
297 |
</tr>
|
298 |
<tr>
|
299 |
+
<td><?php _e('Skype') ?></td>
|
300 |
<td>
|
301 |
<input type="text" placeholder="<?php _e('Enter Skype URL or leave blank for no icon'); ?>" disabled/><span class='proversion'>Pro Version</span>
|
302 |
</td>
|
303 |
</tr>
|
304 |
<tr>
|
305 |
+
<td><?php _e('Tumblr') ?></td>
|
306 |
<td>
|
307 |
<input type="text" placeholder="<?php _e('Enter Tumblr URL or leave blank for no icon'); ?>" disabled/><span class='proversion'>Pro Version</span>
|
308 |
</td>
|
309 |
</tr>
|
310 |
<tr>
|
311 |
+
<td><?php _e('Youtube') ?></td>
|
312 |
<td>
|
313 |
<input type="text" placeholder="<?php _e('Enter Youtube URL or leave blank for no icon'); ?>" disabled/><span class='proversion'>Pro Version</span>
|
314 |
</td>
|
images/bg_pattern.png
ADDED
Binary file
|
library/construction.php
CHANGED
@@ -5,46 +5,48 @@
|
|
5 |
*
|
6 |
*/
|
7 |
?>
|
8 |
-
|
9 |
-
<div id="wuc-wrapper">
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
<div class="center">
|
18 |
<h2 class="title">
|
19 |
<?php echo $set_msg; ?>
|
20 |
</h2>
|
21 |
<h3 class="subtitle">
|
22 |
<?php echo $set_caption; ?>
|
23 |
</h3>
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
46 |
</div>
|
47 |
</div>
|
48 |
-
</div>
|
49 |
-
|
50 |
-
|
5 |
*
|
6 |
*/
|
7 |
?>
|
8 |
+
<div class='wuc-overlay'>
|
9 |
+
<div id="wuc-wrapper">
|
10 |
+
|
11 |
+
<div id="wuc-box">
|
12 |
+
<div class="wuc-logo center">
|
13 |
+
<?php if ($wuc_logo != "") { ?>
|
14 |
+
<img src="<?php echo $wuc_logo; ?>" width="200px"/>
|
15 |
+
<?php } ?>
|
16 |
+
</div>
|
|
|
17 |
<h2 class="title">
|
18 |
<?php echo $set_msg; ?>
|
19 |
</h2>
|
20 |
<h3 class="subtitle">
|
21 |
<?php echo $set_caption; ?>
|
22 |
</h3>
|
23 |
+
<div class="wuc-progress">
|
24 |
+
<div class="wuc-progress-bar" style="width: <?php echo $wuc_progress; ?>%"></div>
|
25 |
+
<div class="wuc-progress-number"><?php echo $wuc_progress; ?>% complete</div>
|
26 |
+
</div>
|
27 |
+
<div class="wuc_icons">
|
28 |
+
<?php if ($wuc_facebook != '') { ?>
|
29 |
+
<a href="<?php echo $wuc_facebook; ?>" target="_blank">
|
30 |
+
<img src="<?php echo plugins_url() ?>/wp-construction-mode/images/fb.png"/>
|
31 |
+
</a>
|
32 |
+
<?php } ?>
|
33 |
+
<?php if ($wuc_gplus != '') { ?>
|
34 |
+
<a href="<?php echo $wuc_gplus; ?>" target="_blank">
|
35 |
+
<img src="<?php echo plugins_url() ?>/wp-construction-mode/images/google.png"/>
|
36 |
+
</a>
|
37 |
+
<?php } ?>
|
38 |
+
<?php if ($wuc_twitter != '') { ?>
|
39 |
+
<a href="<?php echo $wuc_twitter; ?>" target="_blank">
|
40 |
+
<img src="<?php echo plugins_url() ?>/wp-construction-mode/images/twitter.png"/>
|
41 |
+
</a>
|
42 |
+
<?php } ?>
|
43 |
+
<?php if ($wuc_email != '') { ?>
|
44 |
+
<a href="mailto:<?php echo $wuc_email; ?>" target="_blank">
|
45 |
+
<img src="<?php echo plugins_url() ?>/wp-construction-mode/images/email.png"/>
|
46 |
+
</a>
|
47 |
+
<?php } ?>
|
48 |
+
</div>
|
49 |
+
<div id="wuc-footer"></div>
|
50 |
</div>
|
51 |
</div>
|
52 |
+
</div>
|
|
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://smartcatdesign.net
|
|
4 |
Tags: construction,maintenance,page,admin,under construction,under maintenance,coming soon,administrator,custom message,social,facebook,twitter,google plus,gplus,email,icons,link,instagram,digg,flickr,skype,tumblr,youtube
|
5 |
Requires at least: 3.2
|
6 |
Tested up to: 3.81
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Set entire website or specific page under construction or maintenance for all viewers except Admin
|
@@ -50,3 +50,5 @@ bug fixes, pro version released
|
|
50 |
fix bug with blank urls
|
51 |
= 1.6 =
|
52 |
Minor css fixes
|
|
|
|
4 |
Tags: construction,maintenance,page,admin,under construction,under maintenance,coming soon,administrator,custom message,social,facebook,twitter,google plus,gplus,email,icons,link,instagram,digg,flickr,skype,tumblr,youtube
|
5 |
Requires at least: 3.2
|
6 |
Tested up to: 3.81
|
7 |
+
Stable tag: 1.6
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Set entire website or specific page under construction or maintenance for all viewers except Admin
|
50 |
fix bug with blank urls
|
51 |
= 1.6 =
|
52 |
Minor css fixes
|
53 |
+
= 1.7 =
|
54 |
+
Background
|
screenshot-1.png
CHANGED
Binary file
|
style/style.css
CHANGED
@@ -14,37 +14,42 @@
|
|
14 |
position: fixed;
|
15 |
top: 0;
|
16 |
left: 0;
|
17 |
-
background: url('../images/
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
background-size: cover;
|
19 |
-
|
|
|
|
|
|
|
20 |
}
|
21 |
#wuc-wrapper a{
|
22 |
text-decoration: none;
|
23 |
}
|
24 |
-
|
25 |
-
|
26 |
-
margin: 20px auto;
|
27 |
-
|
28 |
-
}
|
29 |
#wuc-box{
|
30 |
width: 50%;
|
31 |
-
margin:
|
32 |
-
background: #363E41;
|
33 |
-
background: rgba(54,62,65,0.6);
|
34 |
-
border: 1px solid #e5e5e5;
|
35 |
-
box-shadow: 0 1px 5px #464646;
|
36 |
color: #ffffff;
|
37 |
padding: 20px;
|
38 |
z-index: 9999;
|
|
|
39 |
}
|
40 |
#wuc-box .title{
|
41 |
-
font-
|
42 |
-
|
43 |
-
margin: 25px 0;
|
44 |
}
|
45 |
#wuc-box .subtitle{
|
46 |
font-size: 20px;
|
47 |
margin: 15px 0;
|
|
|
|
|
|
|
48 |
}
|
49 |
#wuc-box .wuc_icons{
|
50 |
margin: 50px auto 0 auto;
|
@@ -62,3 +67,55 @@
|
|
62 |
-moz-transition: 0.4s all ease;
|
63 |
-webkit-transition: 0.4s all ease;
|
64 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
position: fixed;
|
15 |
top: 0;
|
16 |
left: 0;
|
17 |
+
background-image: url('../images/bg_pattern.png');
|
18 |
+
z-index: 9991;
|
19 |
+
}
|
20 |
+
.wuc-overlay{
|
21 |
+
width: 100%;
|
22 |
+
height: 100%;
|
23 |
+
background-repeat: no-repeat;
|
24 |
background-size: cover;
|
25 |
+
z-index: 999;
|
26 |
+
position: absolute;
|
27 |
+
top: 0;
|
28 |
+
left: 0;
|
29 |
}
|
30 |
#wuc-wrapper a{
|
31 |
text-decoration: none;
|
32 |
}
|
33 |
+
|
34 |
+
|
|
|
|
|
|
|
35 |
#wuc-box{
|
36 |
width: 50%;
|
37 |
+
margin: 0 auto;
|
|
|
|
|
|
|
|
|
38 |
color: #ffffff;
|
39 |
padding: 20px;
|
40 |
z-index: 9999;
|
41 |
+
position: relative;
|
42 |
}
|
43 |
#wuc-box .title{
|
44 |
+
font-family: 'Open Sans', sans-serif;
|
45 |
+
text-align: center;
|
|
|
46 |
}
|
47 |
#wuc-box .subtitle{
|
48 |
font-size: 20px;
|
49 |
margin: 15px 0;
|
50 |
+
text-align: center;
|
51 |
+
font-family: 'Open Sans', sans-serif;
|
52 |
+
height: 10%;
|
53 |
}
|
54 |
#wuc-box .wuc_icons{
|
55 |
margin: 50px auto 0 auto;
|
67 |
-moz-transition: 0.4s all ease;
|
68 |
-webkit-transition: 0.4s all ease;
|
69 |
}
|
70 |
+
.wuc-progress{
|
71 |
+
width: 100%;
|
72 |
+
height: 20px;
|
73 |
+
display: block;
|
74 |
+
background: rgba(0,0,0,.4);
|
75 |
+
border-top: 1px solid rgba(0,0,0,.8);
|
76 |
+
-webkit-box-shadow: 0 1px 3px rgba(255,255,255,.2), inset 0 1px 5px rgba(0,0,0,.7);
|
77 |
+
box-shadow: 0 1px 3px rgba(255,255,255,.2), inset 0 1px 5px rgba(0,0,0,.7);
|
78 |
+
padding: 2px;
|
79 |
+
-webkit-box-sizing: border-box;
|
80 |
+
-moz-box-sizing: border-box;
|
81 |
+
-ms-box-sizing: border-box;
|
82 |
+
box-sizing: border-box;
|
83 |
+
border-radius: 5px;
|
84 |
+
}
|
85 |
+
.wuc-progress-bar{
|
86 |
+
float: left;
|
87 |
+
height: 100%;
|
88 |
+
width: 0;
|
89 |
+
border-radius: 5px;
|
90 |
+
background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
|
91 |
+
background-color: #5bc0de;
|
92 |
+
background-size: 40px 40px;
|
93 |
+
}
|
94 |
+
.wuc-progress-number{
|
95 |
+
float: left;
|
96 |
+
height: 100%;
|
97 |
+
line-height: 15px;
|
98 |
+
font-size: 12px;
|
99 |
+
margin-left: 5px;
|
100 |
+
}
|
101 |
+
/*-------Responsive---------*/
|
102 |
+
@media(min-width: 980px){
|
103 |
+
#wuc-wrapper .wuc-logo{
|
104 |
+
width: 100%;
|
105 |
+
height: 20%;
|
106 |
+
margin: 20px auto;
|
107 |
+
}
|
108 |
+
#wuc-box .title{
|
109 |
+
font-weight: 200;
|
110 |
+
font-size: 34px;
|
111 |
+
margin: 30px 0;
|
112 |
+
}
|
113 |
+
#wuc-box .subtitle{
|
114 |
+
font-size: 20px;
|
115 |
+
margin: 30px 0;
|
116 |
+
}
|
117 |
+
#wuc-box{
|
118 |
+
width: 750px;
|
119 |
+
height: 100%;
|
120 |
+
}
|
121 |
+
}
|
style/style_css.php
CHANGED
@@ -9,5 +9,8 @@
|
|
9 |
*/
|
10 |
?>
|
11 |
<style>
|
|
|
|
|
|
|
12 |
|
13 |
</style>
|
9 |
*/
|
10 |
?>
|
11 |
<style>
|
12 |
+
.wuc-overlay{
|
13 |
+
background-image: url('<?php echo $wuc_background;?>');
|
14 |
+
}
|
15 |
|
16 |
</style>
|
under-construction.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Construction Mode
|
4 |
Plugin URI: http://smartcatdesign.net/under-construction-maintenance-mode-free-wordpress-plugin/
|
5 |
Description: Display a customizable Under Construction or Coming Soon page for all users who are not logged in. Perfect for developing on a live server!
|
6 |
-
Version: 1.
|
7 |
Author: SmartCat
|
8 |
Author URI: http://smartcatdesign.net
|
9 |
License: GPL v2
|
@@ -57,6 +57,9 @@ function under_construction_action() {
|
|
57 |
$wuc_twitter = get_option('wuc_twitter');
|
58 |
$wuc_gplus = get_option('wuc_gplus');
|
59 |
$wuc_facebook = get_option('wuc_facebook');
|
|
|
|
|
|
|
60 |
require_once('form.php');
|
61 |
}
|
62 |
|
@@ -142,6 +145,30 @@ function set_under_construction() {
|
|
142 |
$autoload = 'no';
|
143 |
add_option('wuc_email', 'http://smartcatdesign.net', $deprecated, $autoload);
|
144 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
}
|
146 |
|
147 |
function show_uc() {
|
@@ -158,6 +185,9 @@ function show_uc() {
|
|
158 |
$wuc_twitter = get_option('wuc_twitter');
|
159 |
$wuc_gplus = get_option('wuc_gplus');
|
160 |
$wuc_facebook = get_option('wuc_facebook');
|
|
|
|
|
|
|
161 |
$current_user = wp_get_current_user();
|
162 |
|
163 |
|
@@ -175,7 +205,10 @@ function show_uc() {
|
|
175 |
}
|
176 |
}
|
177 |
}
|
178 |
-
wp_register_style( 'wuc_style', plugins_url() . '/wp-construction-mode/style/style.css', false, '1.
|
|
|
|
|
|
|
179 |
wp_enqueue_style( 'wuc_style' );
|
180 |
add_action('wp_head', 'show_uc');
|
181 |
?>
|
3 |
Plugin Name: WP Construction Mode
|
4 |
Plugin URI: http://smartcatdesign.net/under-construction-maintenance-mode-free-wordpress-plugin/
|
5 |
Description: Display a customizable Under Construction or Coming Soon page for all users who are not logged in. Perfect for developing on a live server!
|
6 |
+
Version: 1.7
|
7 |
Author: SmartCat
|
8 |
Author URI: http://smartcatdesign.net
|
9 |
License: GPL v2
|
57 |
$wuc_twitter = get_option('wuc_twitter');
|
58 |
$wuc_gplus = get_option('wuc_gplus');
|
59 |
$wuc_facebook = get_option('wuc_facebook');
|
60 |
+
$wuc_background = get_option('wuc_background');
|
61 |
+
$wuc_loading = get_option('wuc_loading');
|
62 |
+
$wuc_progress = get_option('wuc_progress');
|
63 |
require_once('form.php');
|
64 |
}
|
65 |
|
145 |
$autoload = 'no';
|
146 |
add_option('wuc_email', 'http://smartcatdesign.net', $deprecated, $autoload);
|
147 |
}
|
148 |
+
$new_value10 = ($_REQUEST['wuc_background'] == "") ? '' : $_REQUEST['wuc_background'];
|
149 |
+
if (get_option('wuc_background') !== false) {
|
150 |
+
update_option('wuc_background', $new_value10);
|
151 |
+
} else {
|
152 |
+
$deprecated = null;
|
153 |
+
$autoload = 'no';
|
154 |
+
add_option('wuc_background', '', $deprecated, $autoload);
|
155 |
+
}
|
156 |
+
$new_value19 = ($_REQUEST['wuc_loading'] == "") ? '' : $_REQUEST['wuc_loading'];
|
157 |
+
if (get_option('wuc_loading') !== false) {
|
158 |
+
update_option('wuc_loading', $new_value19);
|
159 |
+
} else {
|
160 |
+
$deprecated = null;
|
161 |
+
$autoload = 'no';
|
162 |
+
add_option('wuc_loading', 'timer', $deprecated, $autoload);
|
163 |
+
}
|
164 |
+
$new_value20 = ($_REQUEST['wuc_progress'] == "") ? '' : $_REQUEST['wuc_progress'];
|
165 |
+
if (get_option('wuc_progress') !== false) {
|
166 |
+
update_option('wuc_progress', $new_value20);
|
167 |
+
} else {
|
168 |
+
$deprecated = null;
|
169 |
+
$autoload = 'no';
|
170 |
+
add_option('wuc_progress', '10', $deprecated, $autoload);
|
171 |
+
}
|
172 |
}
|
173 |
|
174 |
function show_uc() {
|
185 |
$wuc_twitter = get_option('wuc_twitter');
|
186 |
$wuc_gplus = get_option('wuc_gplus');
|
187 |
$wuc_facebook = get_option('wuc_facebook');
|
188 |
+
$wuc_background = get_option('wuc_background');
|
189 |
+
$wuc_loading = get_option('wuc_loading');
|
190 |
+
$wuc_progress = get_option('wuc_progress');
|
191 |
$current_user = wp_get_current_user();
|
192 |
|
193 |
|
205 |
}
|
206 |
}
|
207 |
}
|
208 |
+
wp_register_style( 'wuc_style', plugins_url() . '/wp-construction-mode/style/style.css', false, '1.7' );
|
209 |
+
wp_register_style( 'wuc_font', 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400,600', false);
|
210 |
+
|
211 |
+
wp_enqueue_style( 'wuc_font' );
|
212 |
wp_enqueue_style( 'wuc_style' );
|
213 |
add_action('wp_head', 'show_uc');
|
214 |
?>
|