Version Description
Download this release
Release Info
Developer | smartcat |
Plugin | WP Construction Mode |
Version | 1.92 |
Comparing to | |
See all releases |
Code changes from version 1.91 to 1.92
- img/smartcat.png +0 -0
- inc/smartkit/sk.php +208 -0
- readme.txt +5 -4
- under-construction.php +26 -4
img/smartcat.png
ADDED
Binary file
|
inc/smartkit/sk.php
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<style>
|
2 |
+
|
3 |
+
#gopro{
|
4 |
+
width: 100%;
|
5 |
+
display: block;
|
6 |
+
clear: both;
|
7 |
+
padding: 10px;
|
8 |
+
margin: 10px 8px 15px 5px;
|
9 |
+
border: 1px solid #e1e1e1;
|
10 |
+
background: #464646;
|
11 |
+
color: #ffffff;
|
12 |
+
overflow: hidden;
|
13 |
+
}
|
14 |
+
#wrapper{
|
15 |
+
border: 1px solid #f0f0f0;
|
16 |
+
width: 95%;
|
17 |
+
|
18 |
+
}
|
19 |
+
#wrapper{
|
20 |
+
border: 1px solid #f0f0f0;
|
21 |
+
width: 95%;
|
22 |
+
|
23 |
+
}
|
24 |
+
table.widefat{
|
25 |
+
margin-bottom: 15px;
|
26 |
+
}
|
27 |
+
table.widefat th{
|
28 |
+
font-weight: bold;
|
29 |
+
}
|
30 |
+
table.widefat tr{
|
31 |
+
transition: 0.3s all ease-in-out;
|
32 |
+
-moz-transition: 0.3s all ease-in-out;
|
33 |
+
-webkit-transition: 0.3s all ease-in-out;
|
34 |
+
}
|
35 |
+
table.widefat tr:hover{
|
36 |
+
/*background: #E6E6E6;*/
|
37 |
+
}
|
38 |
+
|
39 |
+
#wrapper input[type='text']{
|
40 |
+
width: 80%;
|
41 |
+
transition: 0.3s all ease-in-out;
|
42 |
+
-moz-transition: 0.3s all ease-in-out;
|
43 |
+
-webkit-transition: 0.3s all ease-in-out;
|
44 |
+
}
|
45 |
+
#wrapper input[type='text']:focus{
|
46 |
+
border: 1px solid #1784c9;
|
47 |
+
box-shadow: 0 0 7px #1784c9;
|
48 |
+
-moz-box-shadow: 0 0 5px #1784c9;
|
49 |
+
-webkit-box-shadow: 0 0 5px #1784c9;
|
50 |
+
}
|
51 |
+
#wrapper input[type='text'].small-text{
|
52 |
+
width: 20%;
|
53 |
+
}
|
54 |
+
.proversion{
|
55 |
+
color: red;
|
56 |
+
font-style: italic;
|
57 |
+
}
|
58 |
+
.choose-progress{
|
59 |
+
display: none;
|
60 |
+
}
|
61 |
+
.sc_popup_mode{
|
62 |
+
display: inline-block;
|
63 |
+
width: 15px;
|
64 |
+
height: 15px;
|
65 |
+
border-radius: 100%;
|
66 |
+
position: relative;
|
67 |
+
top: 2px;
|
68 |
+
box-shadow: 0 0 3px #333;
|
69 |
+
-moz-box-shadow: 0 0 3px #333;
|
70 |
+
-webkit-box-shadow: 0 0 3px #333;
|
71 |
+
}
|
72 |
+
|
73 |
+
.sc_popup_mode_off{
|
74 |
+
background: #F54412;
|
75 |
+
}
|
76 |
+
.sc_popup_mode_live{
|
77 |
+
background: #84E11F;
|
78 |
+
}
|
79 |
+
.sc_popup_mode_test{
|
80 |
+
background: #FF9717;
|
81 |
+
}
|
82 |
+
.left{ float: left;}
|
83 |
+
.right {float: right;}
|
84 |
+
.center{text-align: center;}
|
85 |
+
.width70{ width: 70%;}
|
86 |
+
.width25{ width: 25% !important;}
|
87 |
+
.width15{ width: 15% !important;}
|
88 |
+
.width50{ width: 50%;}
|
89 |
+
.width100{ width: 100%;}
|
90 |
+
.larger{ font-size: larger;}
|
91 |
+
.bold{ font-weight: bold;}
|
92 |
+
.editcursor{ cursor: text}
|
93 |
+
|
94 |
+
.miniColors-trigger {
|
95 |
+
height: 22px;
|
96 |
+
width: 22px;
|
97 |
+
background: url(<?php echo SC_SOCIAL_SLIDER_PATH; ?>images/trigger.png) center no-repeat;
|
98 |
+
vertical-align: middle;
|
99 |
+
margin: 0 .25em;
|
100 |
+
display: inline-block;
|
101 |
+
outline: none;
|
102 |
+
}
|
103 |
+
|
104 |
+
.miniColors-selector {
|
105 |
+
position: absolute;
|
106 |
+
width: 175px;
|
107 |
+
height: 150px;
|
108 |
+
background: #FFF;
|
109 |
+
border: solid 1px #BBB;
|
110 |
+
-moz-box-shadow: 0 0 6px rgba(0, 0, 0, .25);
|
111 |
+
-webkit-box-shadow: 0 0 6px rgba(0, 0, 0, .25);
|
112 |
+
box-shadow: 0 0 6px rgba(0, 0, 0, .25);
|
113 |
+
-moz-border-radius: 5px;
|
114 |
+
-webkit-border-radius: 5px;
|
115 |
+
border-radius: 5px;
|
116 |
+
padding: 5px;
|
117 |
+
z-index: 999999;
|
118 |
+
}
|
119 |
+
|
120 |
+
.miniColors-selector.black {
|
121 |
+
background: #000;
|
122 |
+
border-color: #000;
|
123 |
+
}
|
124 |
+
|
125 |
+
.miniColors-colors {
|
126 |
+
position: absolute;
|
127 |
+
top: 5px;
|
128 |
+
left: 5px;
|
129 |
+
width: 150px;
|
130 |
+
height: 150px;
|
131 |
+
background: url(<?php echo SC_SOCIAL_SLIDER_PATH; ?>images/gradient.png) center no-repeat;
|
132 |
+
cursor: crosshair;
|
133 |
+
}
|
134 |
+
|
135 |
+
.miniColors-hues {
|
136 |
+
position: absolute;
|
137 |
+
top: 5px;
|
138 |
+
left: 160px;
|
139 |
+
width: 20px;
|
140 |
+
height: 150px;
|
141 |
+
background: url(<?php echo SC_SOCIAL_SLIDER_PATH; ?>images/rainbow.png) center no-repeat;
|
142 |
+
cursor: crosshair;
|
143 |
+
}
|
144 |
+
|
145 |
+
.miniColors-colorPicker {
|
146 |
+
position: absolute;
|
147 |
+
width: 11px;
|
148 |
+
height: 11px;
|
149 |
+
background: url(<?php echo SC_SOCIAL_SLIDER_PATH; ?>images/circle.gif) center no-repeat;
|
150 |
+
}
|
151 |
+
|
152 |
+
.miniColors-huePicker {
|
153 |
+
position: absolute;
|
154 |
+
left: -3px;
|
155 |
+
width: 26px;
|
156 |
+
height: 3px;
|
157 |
+
background: url(<?php echo SC_SOCIAL_SLIDER_PATH; ?>images/line.gif) center no-repeat;
|
158 |
+
}
|
159 |
+
.mytr{
|
160 |
+
border-bottom: 1px solid #cccccc;
|
161 |
+
}
|
162 |
+
</style>
|
163 |
+
|
164 |
+
<div id="wrapper">
|
165 |
+
<div id="gopro">
|
166 |
+
<div class="left width50">
|
167 |
+
<h1><b>SMARTKIT</b></h1>
|
168 |
+
<div>
|
169 |
+
Lightweight power tools for your WordPress site
|
170 |
+
</div>
|
171 |
+
<div>
|
172 |
+
<!--<em>Why go pro? The pro version allows you to change the widget location to the right side of the screen, and adds different templates to the widget</em>-->
|
173 |
+
</div>
|
174 |
+
</div>
|
175 |
+
<div class="right">
|
176 |
+
<!--<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>-->
|
177 |
+
</div>
|
178 |
+
</div>
|
179 |
+
<div class="width25 right">
|
180 |
+
<p class="width100">
|
181 |
+
|
182 |
+
</p>
|
183 |
+
<table class="widefat">
|
184 |
+
<thead>
|
185 |
+
<tr>
|
186 |
+
<th><b>Looking for Support?</b> </th>
|
187 |
+
</tr>
|
188 |
+
<tr>
|
189 |
+
<td>
|
190 |
+
If you have any questions, please head to my <a target="_blank" href="http://smartcatdesign.net/support/">website</a>, or use the <a target="_blank" href="http://wordpress.org/plugins/our-team-enhanced/">support forums</a> on WordPress.org. <br><br>
|
191 |
+
If you need priority support, or specific customization, please <a href="http://smartcatdesign.net">contact me.</a>
|
192 |
+
</td>
|
193 |
+
</tr>
|
194 |
+
<tr>
|
195 |
+
<td>
|
196 |
+
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2FSmartcatDesign&width&layout=button&action=like&show_faces=false&share=false&height=35&appId=233286813420319" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:35px;" allowTransparency="true"></iframe
|
197 |
+
</td>
|
198 |
+
</tr>
|
199 |
+
</thead>
|
200 |
+
</table>
|
201 |
+
</div>
|
202 |
+
|
203 |
+
<div class="width70 left welcome-panel">
|
204 |
+
<h2>We're currently working on this section! More features coming in the next update</h2>
|
205 |
+
</div>
|
206 |
+
<div class="clear"></div>
|
207 |
+
|
208 |
+
</div>
|
readme.txt
CHANGED
@@ -4,10 +4,10 @@ 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: 4.0
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
-
|
11 |
== Description ==
|
12 |
|
13 |
Set entire website or specific page under construction or maintenance. Admin can still view the site, perfect for developing new websites or pages. <br>
|
@@ -17,7 +17,6 @@ Set entire website or specific page under construction or maintenance. Admin can
|
|
17 |
<em>Recently added features:</em><br>
|
18 |
- Change Background: this feature will allow you to choose a background color, or set an image as a background<br>
|
19 |
- Progress Bar & Timer: This will add a progress bar to notify people how long till your site is ready<br>
|
20 |
-
- Support Forum: Do you have any question? Requests? Need Help? <a href="http://smartcatdesign.net/support/">Visit the support forum here</a> <br>
|
21 |
|
22 |
== Installation ==
|
23 |
|
@@ -51,4 +50,6 @@ Minor css fixes
|
|
51 |
= 1.7 =
|
52 |
Background
|
53 |
= 1.8 =
|
54 |
-
progress bar bug fix
|
|
|
|
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: 4.0
|
7 |
+
Stable tag: 1.91
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
+
Hide your site behind an appealing Under Construction template while you build it's being built!
|
11 |
== Description ==
|
12 |
|
13 |
Set entire website or specific page under construction or maintenance. Admin can still view the site, perfect for developing new websites or pages. <br>
|
17 |
<em>Recently added features:</em><br>
|
18 |
- Change Background: this feature will allow you to choose a background color, or set an image as a background<br>
|
19 |
- Progress Bar & Timer: This will add a progress bar to notify people how long till your site is ready<br>
|
|
|
20 |
|
21 |
== Installation ==
|
22 |
|
50 |
= 1.7 =
|
51 |
Background
|
52 |
= 1.8 =
|
53 |
+
progress bar bug fix
|
54 |
+
= 1.91 = security fix
|
55 |
+
= 1.92 = responsive fix, dashboard change
|
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
|
@@ -29,7 +29,7 @@ add_action('admin_init', 'wuc_activation_redirect');
|
|
29 |
function wuc_activation_redirect() {
|
30 |
if (get_option('wuc_activation_redirect', false)) {
|
31 |
delete_option('wuc_activation_redirect');
|
32 |
-
wp_redirect(admin_url('
|
33 |
}
|
34 |
}
|
35 |
|
@@ -45,8 +45,30 @@ function admin_action(){
|
|
45 |
}
|
46 |
|
47 |
function under_construction_menu() {
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
function under_construction_action() {
|
52 |
$option_name1 = 'set_opt';
|
@@ -55,7 +77,7 @@ function under_construction_action() {
|
|
55 |
switch ($_REQUEST['act']) {
|
56 |
case "save":
|
57 |
set_under_construction();
|
58 |
-
echo '<div class="updated below-h2" id="message" style="position:relative; clear:both;"><p>Under Construction: ' . ($_REQUEST['set_opt']) . '</p></div>';
|
59 |
break;
|
60 |
default:
|
61 |
}
|
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.92
|
7 |
Author: SmartCat
|
8 |
Author URI: http://smartcatdesign.net
|
9 |
License: GPL v2
|
29 |
function wuc_activation_redirect() {
|
30 |
if (get_option('wuc_activation_redirect', false)) {
|
31 |
delete_option('wuc_activation_redirect');
|
32 |
+
wp_redirect(admin_url('admin.php?page=smartkit_construction'));
|
33 |
}
|
34 |
}
|
35 |
|
45 |
}
|
46 |
|
47 |
function under_construction_menu() {
|
48 |
+
|
49 |
+
global $menu;
|
50 |
+
$found = FALSE;
|
51 |
+
foreach( $menu as $menu_item ) :
|
52 |
+
if( 'smartkit_menu' == $menu_item[2] ) :
|
53 |
+
$found = TRUE;
|
54 |
+
endif;
|
55 |
+
endforeach;
|
56 |
+
|
57 |
+
if(!$found)
|
58 |
+
add_menu_page('Smartkit', 'Smartkit', 'manage_options', 'smartkit_menu', 'smartkit_meow', SC_WUC_PATH . 'img/smartcat.png' );
|
59 |
+
|
60 |
+
add_submenu_page('smartkit_menu', 'Under Construction', 'Construction Mode', 'manage_options', 'smartkit_construction', 'under_construction_action');
|
61 |
+
|
62 |
+
// add_menu_page('Under Construction', 'Under Construction', 'administrator', 'under-construction.php', 'under_construction_action', plugins_url('under_construction.png', __FILE__));
|
63 |
}
|
64 |
+
/*
|
65 |
+
* Create smartkit menu
|
66 |
+
*/
|
67 |
+
if( !function_exists('smartkit_meow') ) :
|
68 |
+
function smartkit_meow(){
|
69 |
+
include_once 'inc/smartkit/sk.php';
|
70 |
+
}
|
71 |
+
endif;
|
72 |
|
73 |
function under_construction_action() {
|
74 |
$option_name1 = 'set_opt';
|
77 |
switch ($_REQUEST['act']) {
|
78 |
case "save":
|
79 |
set_under_construction();
|
80 |
+
echo '<div class="updated below-h2" id="message" style="position:relative; clear:both;"><p>Under Construction: ' . esc_html( $_REQUEST['set_opt'] ) . '</p></div>';
|
81 |
break;
|
82 |
default:
|
83 |
}
|