Version Description
- 2017/01/22
- 1 new theme - Loader
- added "Show Login Button" option
- added 1 social icons: Email
Download this release
Release Info
Developer | WebFactory |
Plugin | Under Construction |
Version | 1.50 |
Comparing to | |
See all releases |
Code changes from version 1.45 to 1.50
- css/ucp-admin.css +2 -2
- css/ucp-toolbar.css +0 -22
- images/loader.png +0 -0
- images/ucp_icon_disabled.png +0 -0
- images/ucp_icon_enabled.png +0 -0
- images/{under-construction-page-logo.png → ucp_logo.png} +0 -0
- js/ucp-admin-plugins.js +1 -1
- js/ucp-admin-pointers.js +1 -1
- js/ucp-admin.js +1 -1
- js/ucp-jquery-plugins.js +1 -1
- readme.txt +9 -1
- themes/css/common.css +43 -0
- themes/cyber_chick/index.php +2 -2
- themes/cyber_chick/style.css +1 -8
- themes/dark/index.php +2 -2
- themes/dark/style.css +1 -8
- themes/forklift/index.php +2 -2
- themes/forklift/style.css +2 -9
- themes/loader/background_grid.png +0 -0
- themes/loader/index.php +59 -0
- themes/loader/loader.png +0 -0
- themes/loader/style.css +77 -0
- themes/mad_designer/index.php +2 -2
- themes/mad_designer/style.css +1 -8
- themes/plain_text/index.php +2 -2
- themes/plain_text/style.css +1 -8
- themes/rocket/index.php +2 -2
- themes/rocket/style.css +1 -8
- themes/under_construction/index.php +3 -3
- themes/under_construction/style.css +1 -8
- themes/under_construction_text/index.php +2 -2
- themes/under_construction_text/style.css +1 -8
- under-construction.php +107 -49
css/ucp-admin.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
* Main backend CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
@@ -63,7 +63,7 @@ div.ucp-thumb img, .ucp-thumb-special img {
|
|
63 |
margin-left: 14px;
|
64 |
}
|
65 |
|
66 |
-
input[type=url]:invalid {
|
67 |
border-color: #EA1919;
|
68 |
-webkit-box-shadow: 0 0 2px rgba(234,25,25,1);
|
69 |
box-shadow: 0 0 2px rgba(234,25,25,1);
|
1 |
/*
|
2 |
+
* UnderConstructionPage
|
3 |
* Main backend CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
63 |
margin-left: 14px;
|
64 |
}
|
65 |
|
66 |
+
input[type=url]:invalid, input[type=email]:invalid {
|
67 |
border-color: #EA1919;
|
68 |
-webkit-box-shadow: 0 0 2px rgba(234,25,25,1);
|
69 |
box-shadow: 0 0 2px rgba(234,25,25,1);
|
css/ucp-toolbar.css
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* Under Construction
|
3 |
-
* WP toolbar CSS
|
4 |
-
* (c) Web factory Ltd, 2015 - 2016
|
5 |
-
*/
|
6 |
-
|
7 |
-
|
8 |
-
#wp-admin-bar-construction-mode.ucp-enabled .dashicons {
|
9 |
-
color: #02CA02;
|
10 |
-
font-family: dashicons;
|
11 |
-
font-size: 14px;
|
12 |
-
}
|
13 |
-
|
14 |
-
#wp-admin-bar-construction-mode.ucp-disabled .dashicons {
|
15 |
-
color: #EA1919;
|
16 |
-
font-family: dashicons;
|
17 |
-
font-size: 14px;
|
18 |
-
}
|
19 |
-
|
20 |
-
#wp-admin-bar-construction-mode strong {
|
21 |
-
font-weight: bold;
|
22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
images/loader.png
ADDED
Binary file
|
images/ucp_icon_disabled.png
ADDED
Binary file
|
images/ucp_icon_enabled.png
ADDED
Binary file
|
images/{under-construction-page-logo.png → ucp_logo.png}
RENAMED
File without changes
|
js/ucp-admin-plugins.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
* Backend plugins enhancement
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
1 |
/*
|
2 |
+
* UnderConstructionPage
|
3 |
* Backend plugins enhancement
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
js/ucp-admin-pointers.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
* Backend GUI pointers
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
1 |
/*
|
2 |
+
* UnderConstructionPage
|
3 |
* Backend GUI pointers
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
js/ucp-admin.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
* Main backend JS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
1 |
/*
|
2 |
+
* UnderConstructionPage
|
3 |
* Main backend JS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
js/ucp-jquery-plugins.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
* jQuery plugins
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
1 |
/*
|
2 |
+
* UnderConstructionPage
|
3 |
* jQuery plugins
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
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
|
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 |
|
@@ -25,6 +25,7 @@ A simple, no-nonsense plugin for all those situations when you have to hide the
|
|
25 |
* Description - page description, for SEO
|
26 |
* Headline - main headline/title
|
27 |
* Content - anything you need to display, from styled text to images
|
|
|
28 |
* Social icons/links - new ones are added with every update; let us know if we missed your favorite ones
|
29 |
* Facebook
|
30 |
* Twitter
|
@@ -35,6 +36,7 @@ A simple, no-nonsense plugin for all those situations when you have to hide the
|
|
35 |
* Dribbble
|
36 |
* Behance
|
37 |
* Instagram
|
|
|
38 |
* Whitelisted User Roles - user roles who see the site, instead of maintenance page
|
39 |
* Whitelisted Users - users who see the site, instead of maintenance page
|
40 |
|
@@ -74,6 +76,12 @@ Or if needed, upload manually;
|
|
74 |
|
75 |
== Changelog ==
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
= 1.45 =
|
78 |
* 2017/01/16
|
79 |
* 1 new theme - Rocket Launch
|
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
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.7
|
6 |
+
Stable tag: 1.50
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
25 |
* Description - page description, for SEO
|
26 |
* Headline - main headline/title
|
27 |
* Content - anything you need to display, from styled text to images
|
28 |
+
* Login Button - show a descrete link to the login form, or WP admin if you're logged in
|
29 |
* Social icons/links - new ones are added with every update; let us know if we missed your favorite ones
|
30 |
* Facebook
|
31 |
* Twitter
|
36 |
* Dribbble
|
37 |
* Behance
|
38 |
* Instagram
|
39 |
+
* Email
|
40 |
* Whitelisted User Roles - user roles who see the site, instead of maintenance page
|
41 |
* Whitelisted Users - users who see the site, instead of maintenance page
|
42 |
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= 1.50 =
|
80 |
+
* 2017/01/22
|
81 |
+
* 1 new theme - Loader
|
82 |
+
* added "Show Login Button" option
|
83 |
+
* added 1 social icons: Email
|
84 |
+
|
85 |
= 1.45 =
|
86 |
* 2017/01/16
|
87 |
* 1 new theme - Rocket Launch
|
themes/css/common.css
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* UnderConstructionPage
|
3 |
+
* Common frontend CSS
|
4 |
+
* (c) Web factory Ltd, 2015 - 2016
|
5 |
+
*/
|
6 |
+
|
7 |
+
|
8 |
+
#linkback {
|
9 |
+
font-size: small;
|
10 |
+
text-align: center;
|
11 |
+
opacity: 0.55;
|
12 |
+
margin: 10px;
|
13 |
+
}
|
14 |
+
|
15 |
+
#login-button {
|
16 |
+
position: relative;
|
17 |
+
right: 0;
|
18 |
+
bottom: 50px;
|
19 |
+
text-align: right;
|
20 |
+
}
|
21 |
+
|
22 |
+
#login-button a {
|
23 |
+
background-color: rgba(70, 70, 70, 1);
|
24 |
+
border-radius: 5px 0 0 5px;
|
25 |
+
opacity: 0.3;
|
26 |
+
padding: 10px;
|
27 |
+
color: #ffffff;
|
28 |
+
display: inline-block;
|
29 |
+
}
|
30 |
+
|
31 |
+
#login-button a:hover {
|
32 |
+
box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.3);
|
33 |
+
opacity: 1;
|
34 |
+
}
|
35 |
+
|
36 |
+
@media(max-width:767px){
|
37 |
+
#login-button {
|
38 |
+
bottom: 5px;
|
39 |
+
}
|
40 |
+
#login-button a {
|
41 |
+
padding: 5px;
|
42 |
+
}
|
43 |
+
}
|
themes/cyber_chick/index.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
*
|
4 |
* Chyber Chick theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
@@ -19,7 +19,7 @@ if (!defined('ABSPATH')) {
|
|
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="
|
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=Roboto:400,900">
|
1 |
<?php
|
2 |
/*
|
3 |
+
* UnderConstructionPage
|
4 |
* Chyber Chick theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
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="UnderConstructionPage plugin for WordPress">
|
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=Roboto:400,900">
|
themes/cyber_chick/style.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
* Mad Designer theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
@@ -65,13 +65,6 @@ h1 {
|
|
65 |
color: #e78967;
|
66 |
}
|
67 |
|
68 |
-
#linkback {
|
69 |
-
font-size: small;
|
70 |
-
text-align: center;
|
71 |
-
opacity: 0.55;
|
72 |
-
margin: 10px;
|
73 |
-
}
|
74 |
-
|
75 |
@media(max-width:767px){
|
76 |
h1 {
|
77 |
font-size: 30px;
|
1 |
/*
|
2 |
+
* UnderConstructionPage
|
3 |
* Mad Designer theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
65 |
color: #e78967;
|
66 |
}
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
@media(max-width:767px){
|
69 |
h1 {
|
70 |
font-size: 30px;
|
themes/dark/index.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
*
|
4 |
* Things Went Dark theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
@@ -19,7 +19,7 @@ if (!defined('ABSPATH')) {
|
|
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="
|
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=Roboto:400,900">
|
1 |
<?php
|
2 |
/*
|
3 |
+
* UnderConstructionPage
|
4 |
* Things Went Dark theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
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="UnderConstructionPage plugin for WordPress">
|
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=Roboto:400,900">
|
themes/dark/style.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
* Things Went Dark theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
@@ -61,13 +61,6 @@ h1 {
|
|
61 |
color: #cc6633;
|
62 |
}
|
63 |
|
64 |
-
#linkback {
|
65 |
-
font-size: small;
|
66 |
-
text-align: center;
|
67 |
-
opacity: 0.55;
|
68 |
-
margin: 10px;
|
69 |
-
}
|
70 |
-
|
71 |
@media(max-width:767px){
|
72 |
h1 {
|
73 |
font-size: 30px;
|
1 |
/*
|
2 |
+
* UnderConstructionPage
|
3 |
* Things Went Dark theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
61 |
color: #cc6633;
|
62 |
}
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
@media(max-width:767px){
|
65 |
h1 {
|
66 |
font-size: 30px;
|
themes/forklift/index.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
*
|
4 |
* Forklift theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
@@ -19,7 +19,7 @@ if (!defined('ABSPATH')) {
|
|
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="
|
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=Roboto:400,900">
|
1 |
<?php
|
2 |
/*
|
3 |
+
* UnderConstructionPage
|
4 |
* Forklift theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
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="UnderConstructionPage plugin for WordPress">
|
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=Roboto:400,900">
|
themes/forklift/style.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
* Forklift theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
@@ -63,14 +63,7 @@ h1 {
|
|
63 |
}
|
64 |
|
65 |
#social a:hover i {
|
66 |
-
color: #
|
67 |
-
}
|
68 |
-
|
69 |
-
#linkback {
|
70 |
-
font-size: small;
|
71 |
-
text-align: center;
|
72 |
-
opacity: 0.55;
|
73 |
-
margin: 10px;
|
74 |
}
|
75 |
|
76 |
@media(max-width:767px){
|
1 |
/*
|
2 |
+
* UnderConstructionPage
|
3 |
* Forklift theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
63 |
}
|
64 |
|
65 |
#social a:hover i {
|
66 |
+
color: #ffffff;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
}
|
68 |
|
69 |
@media(max-width:767px){
|
themes/loader/background_grid.png
ADDED
Binary file
|
themes/loader/index.php
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* UnderConstructionPage
|
4 |
+
* Loader theme
|
5 |
+
* (c) Web factory Ltd, 2015 - 2016
|
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="UnderConstructionPage plugin for WordPress">
|
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=Roboto:400,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 class="container">
|
32 |
+
<div class="row">
|
33 |
+
<div class="col-xs-12 col-md-12 col-lg-12">
|
34 |
+
<h1>[heading1]</h1>
|
35 |
+
</div>
|
36 |
+
</div>
|
37 |
+
</div>
|
38 |
+
|
39 |
+
<div id="hero-image">
|
40 |
+
<img src="[theme-url]loader.png" alt="Loader at Work" title="Loader at Work">
|
41 |
+
</div>
|
42 |
+
<div class="container">
|
43 |
+
|
44 |
+
<div class="row">
|
45 |
+
<div class="col-xs-12 col-md-8 col-md-offset-2 col-lg-offset-2 col-lg-8">
|
46 |
+
<p class="content">[content]</p>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
|
50 |
+
<div class="row" id="social">
|
51 |
+
<div class="col-xs-12 col-md-12 col-lg-12">
|
52 |
+
[social-icons]
|
53 |
+
</div>
|
54 |
+
</div>
|
55 |
+
|
56 |
+
</div>
|
57 |
+
[footer]
|
58 |
+
</body>
|
59 |
+
</html>
|
themes/loader/loader.png
ADDED
Binary file
|
themes/loader/style.css
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* UnderConstructionPage
|
3 |
+
* Loader theme CSS
|
4 |
+
* (c) Web factory Ltd, 2015 - 2016
|
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: #414042;
|
19 |
+
background: #d1dfeb; /* Old browsers */
|
20 |
+
background: -moz-linear-gradient(-45deg, #d1dfeb 0%,#d1dfeb 67%,#dee1e3 139%); /* FF3.6-15 */
|
21 |
+
background: -webkit-linear-gradient(-45deg, #d1dfeb 0%,#d1dfeb 67%,#dee1e3 139%); /* Chrome10-25,Safari5.1-6 */
|
22 |
+
background: url('background_grid.png'), linear-gradient(135deg, #d1dfeb 0%, #d1dfeb 55%, #dee1e3 139%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
|
23 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d1dfeb', endColorstr='#dee1e3',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
|
24 |
+
padding: 0;
|
25 |
+
margin: 0;
|
26 |
+
background-repeat: repeat;
|
27 |
+
background-attachment: fixed;
|
28 |
+
}
|
29 |
+
|
30 |
+
#hero-image {
|
31 |
+
text-align: center;
|
32 |
+
margin: 20px auto 40px auto;
|
33 |
+
border-bottom: 2px solid rgba(0, 0, 0, 1);
|
34 |
+
}
|
35 |
+
|
36 |
+
#hero-image img {
|
37 |
+
max-width: 80%;
|
38 |
+
}
|
39 |
+
|
40 |
+
h1 {
|
41 |
+
font-size: 34px;
|
42 |
+
color: #414042;
|
43 |
+
font-family: "Roboto", sans-serif;
|
44 |
+
font-weight: 900;
|
45 |
+
margin: 60px 0 30px 0;
|
46 |
+
text-align: center;
|
47 |
+
}
|
48 |
+
|
49 |
+
.content {
|
50 |
+
text-align: center;
|
51 |
+
font-family: "Helvetica", "Arial", sans-serif;
|
52 |
+
}
|
53 |
+
|
54 |
+
#social {
|
55 |
+
text-align: center;
|
56 |
+
margin-top: 30px;
|
57 |
+
}
|
58 |
+
|
59 |
+
#social a i {
|
60 |
+
color: #414042;
|
61 |
+
margin: 10px;
|
62 |
+
box-sizing: content-box;
|
63 |
+
}
|
64 |
+
|
65 |
+
#social a:hover i {
|
66 |
+
color: #ffc75e;
|
67 |
+
}
|
68 |
+
|
69 |
+
@media(max-width:767px){
|
70 |
+
h1 {
|
71 |
+
font-size: 30px;
|
72 |
+
margin: 10px 0 30px 0;
|
73 |
+
}
|
74 |
+
#hero-image img {
|
75 |
+
max-width: 95%;
|
76 |
+
}
|
77 |
+
}
|
themes/mad_designer/index.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
*
|
4 |
* Mad Designer theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
@@ -19,7 +19,7 @@ if (!defined('ABSPATH')) {
|
|
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="
|
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=Roboto:400,900">
|
1 |
<?php
|
2 |
/*
|
3 |
+
* UnderConstructionPage
|
4 |
* Mad Designer theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
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="UnderConstructionPage plugin for WordPress">
|
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=Roboto:400,900">
|
themes/mad_designer/style.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
* Mad Designer theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
@@ -65,13 +65,6 @@ h1 {
|
|
65 |
color: #e78967;
|
66 |
}
|
67 |
|
68 |
-
#linkback {
|
69 |
-
font-size: small;
|
70 |
-
text-align: center;
|
71 |
-
opacity: 0.55;
|
72 |
-
margin: 10px;
|
73 |
-
}
|
74 |
-
|
75 |
@media(max-width:767px){
|
76 |
h1 {
|
77 |
font-size: 30px;
|
1 |
/*
|
2 |
+
* UnderConstructionPage
|
3 |
* Mad Designer theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
65 |
color: #e78967;
|
66 |
}
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
@media(max-width:767px){
|
69 |
h1 {
|
70 |
font-size: 30px;
|
themes/plain_text/index.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
*
|
4 |
* Plain Text theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
@@ -19,7 +19,7 @@ if (!defined('ABSPATH')) {
|
|
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="
|
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=Montserrat:400,700">
|
1 |
<?php
|
2 |
/*
|
3 |
+
* UnderConstructionPage
|
4 |
* Plain Text theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
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="UnderConstructionPage plugin for WordPress">
|
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=Montserrat:400,700">
|
themes/plain_text/style.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
* Plain Text theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
@@ -78,13 +78,6 @@ h1 {
|
|
78 |
color: #de2a13;
|
79 |
}
|
80 |
|
81 |
-
#linkback {
|
82 |
-
font-size: small;
|
83 |
-
text-align: center;
|
84 |
-
opacity: 0.55;
|
85 |
-
margin: 10px;
|
86 |
-
}
|
87 |
-
|
88 |
@media(max-width:767px){
|
89 |
h1 {
|
90 |
font-size: 4rem;
|
1 |
/*
|
2 |
+
* UnderConstructionPage
|
3 |
* Plain Text theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
78 |
color: #de2a13;
|
79 |
}
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
@media(max-width:767px){
|
82 |
h1 {
|
83 |
font-size: 4rem;
|
themes/rocket/index.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
*
|
4 |
* Rocket theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
@@ -19,7 +19,7 @@ if (!defined('ABSPATH')) {
|
|
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="
|
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">
|
1 |
<?php
|
2 |
/*
|
3 |
+
* UnderConstructionPage
|
4 |
* Rocket theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
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="UnderConstructionPage plugin for WordPress">
|
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">
|
themes/rocket/style.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
* Rocket theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
@@ -66,13 +66,6 @@ h1 {
|
|
66 |
color: #E8C547;
|
67 |
}
|
68 |
|
69 |
-
#linkback {
|
70 |
-
font-size: small;
|
71 |
-
text-align: center;
|
72 |
-
opacity: 0.55;
|
73 |
-
margin: 10px;
|
74 |
-
}
|
75 |
-
|
76 |
@media(max-width:767px){
|
77 |
h1 {
|
78 |
font-size: 30px;
|
1 |
/*
|
2 |
+
* UnderConstructionPage
|
3 |
* Rocket theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
66 |
color: #E8C547;
|
67 |
}
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
@media(max-width:767px){
|
70 |
h1 {
|
71 |
font-size: 30px;
|
themes/under_construction/index.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
*
|
4 |
-
* Under
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
7 |
|
@@ -19,7 +19,7 @@ if (!defined('ABSPATH')) {
|
|
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="
|
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=Roboto:400,900">
|
1 |
<?php
|
2 |
/*
|
3 |
+
* UnderConstructionPage
|
4 |
+
* Under Construction theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
7 |
|
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="UnderConstructionPage plugin for WordPress">
|
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=Roboto:400,900">
|
themes/under_construction/style.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
* Under Construction theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
@@ -65,13 +65,6 @@ h1 {
|
|
65 |
color: #e78967;
|
66 |
}
|
67 |
|
68 |
-
#linkback {
|
69 |
-
font-size: small;
|
70 |
-
text-align: center;
|
71 |
-
opacity: 0.55;
|
72 |
-
margin: 10px;
|
73 |
-
}
|
74 |
-
|
75 |
@media(max-width:767px){
|
76 |
h1 {
|
77 |
font-size: 28px;
|
1 |
/*
|
2 |
+
* UnderConstructionPage
|
3 |
* Under Construction theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
65 |
color: #e78967;
|
66 |
}
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
@media(max-width:767px){
|
69 |
h1 {
|
70 |
font-size: 28px;
|
themes/under_construction_text/index.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
*
|
4 |
* Under Construction Text theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
@@ -19,7 +19,7 @@ if (!defined('ABSPATH')) {
|
|
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="
|
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=Roboto:400,900">
|
1 |
<?php
|
2 |
/*
|
3 |
+
* UnderConstructionPage
|
4 |
* Under Construction Text theme
|
5 |
* (c) Web factory Ltd, 2015 - 2016
|
6 |
*/
|
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="UnderConstructionPage plugin for WordPress">
|
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=Roboto:400,900">
|
themes/under_construction_text/style.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
* Under Construction Text theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
@@ -65,13 +65,6 @@ h1 {
|
|
65 |
color: #ffffff;
|
66 |
}
|
67 |
|
68 |
-
#linkback {
|
69 |
-
font-size: small;
|
70 |
-
text-align: center;
|
71 |
-
opacity: 0.55;
|
72 |
-
margin: 10px;
|
73 |
-
}
|
74 |
-
|
75 |
@media(max-width:767px) {
|
76 |
h1 {
|
77 |
font-size: 28px;
|
1 |
/*
|
2 |
+
* UnderConstructionPage
|
3 |
* Under Construction Text theme CSS
|
4 |
* (c) Web factory Ltd, 2015 - 2016
|
5 |
*/
|
65 |
color: #ffffff;
|
66 |
}
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
@media(max-width:767px) {
|
69 |
h1 {
|
70 |
font-size: 28px;
|
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
|
@@ -236,8 +236,6 @@ class UCP {
|
|
236 |
$open_features_survey = false;
|
237 |
}
|
238 |
|
239 |
-
wp_enqueue_style('ucp-toolbar', UCP_PLUGIN_URL . 'css/ucp-toolbar.css', array(), self::$version);
|
240 |
-
|
241 |
$js_localize = array('undocumented_error' => __('An undocumented error has occured. Please refresh the page and try again.', 'under-construction-page'),
|
242 |
'plugin_name' => __('UnderConstruction', 'under-construction-page'),
|
243 |
'settings_url' => admin_url('options-general.php?page=ucp'),
|
@@ -347,6 +345,18 @@ class UCP {
|
|
347 |
|
348 |
wp_send_json_success();
|
349 |
} // submit_survey_ajax
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
350 |
|
351 |
|
352 |
// parse shortcode alike variables
|
@@ -398,6 +408,9 @@ class UCP {
|
|
398 |
if (!empty($options['social_instagram'])) {
|
399 |
$out .= '<a href="' . $options['social_instagram'] . '" target="_blank"><i class="fa fa-instagram fa-3x"></i></a>';
|
400 |
}
|
|
|
|
|
|
|
401 |
|
402 |
return $out;
|
403 |
} // generate_social_icons
|
@@ -407,8 +420,11 @@ class UCP {
|
|
407 |
static function generate_head($options, $template_id) {
|
408 |
$out = '';
|
409 |
|
|
|
|
|
410 |
if (!empty($options['ga_tracking_id'])) {
|
411 |
-
$out .= "
|
|
|
412 |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
413 |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
414 |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
@@ -418,7 +434,7 @@ class UCP {
|
|
418 |
</script>";
|
419 |
}
|
420 |
|
421 |
-
return $out;
|
422 |
} // generate_head
|
423 |
|
424 |
|
@@ -426,7 +442,7 @@ class UCP {
|
|
426 |
static function generate_footer($options, $template_id) {
|
427 |
$out = '';
|
428 |
|
429 |
-
if ($options['linkback'] == 1) {
|
430 |
$tmp = md5(get_site_url());
|
431 |
if ($tmp[0] < 9) {
|
432 |
$out .= '<p id="linkback">Create stunning <a href="https://underconstructionpage.com/" target="_blank">under construction pages for WordPress</a> for free.</p>';
|
@@ -435,6 +451,17 @@ class UCP {
|
|
435 |
}
|
436 |
}
|
437 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
438 |
return $out;
|
439 |
} // generate_footer
|
440 |
|
@@ -564,10 +591,10 @@ class UCP {
|
|
564 |
global $wp_admin_bar;
|
565 |
|
566 |
if (self::is_construction_mode_enabled(true)) {
|
567 |
-
$title = '<
|
568 |
$class = 'ucp-enabled';
|
569 |
} else {
|
570 |
-
$title = '<
|
571 |
$class = 'ucp-disabled';
|
572 |
}
|
573 |
|
@@ -645,6 +672,8 @@ class UCP {
|
|
645 |
'social_dribbble' => '',
|
646 |
'social_behance' => '',
|
647 |
'social_instagram' => '',
|
|
|
|
|
648 |
'linkback' => '0',
|
649 |
'roles' => array('administrator'),
|
650 |
'whitelisted_users' => array()
|
@@ -673,6 +702,7 @@ class UCP {
|
|
673 |
case 'social_dribbble':
|
674 |
case 'social_behance':
|
675 |
case 'social_instagram':
|
|
|
676 |
$options[$key] = trim($value);
|
677 |
break;
|
678 |
case 'ga_tracking_id':
|
@@ -686,7 +716,7 @@ class UCP {
|
|
686 |
|
687 |
$options['roles'] = empty($options['roles'])? array(): $options['roles'];
|
688 |
$options['whitelisted_users'] = empty($options['whitelisted_users'])? array(): $options['whitelisted_users'];
|
689 |
-
$options = self::check_var_isset($options, array('status' => 0, 'linkback' => 0));
|
690 |
|
691 |
if (!empty($options['ga_tracking_id']) && preg_match('/^UA-\d{3,}-\d{1,3}$/', $options['ga_tracking_id']) === 0) {
|
692 |
add_settings_error('ucp', 'ga_tracking_id', 'Please enter a valid Google Analytics Tracking ID, or leave empty to disable tracking.');
|
@@ -849,6 +879,36 @@ class UCP {
|
|
849 |
echo '<p class="description">All HTML elements are allowed. Shortcodes are not parsed except <a href="#title">UC template ones</a>. Default: ' . $default_options['content'] . '</p>';
|
850 |
echo '</td></tr>';
|
851 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
852 |
echo '<tr valign="top">
|
853 |
<th scope="row"><label for="social_facebook">Facebook Page</label></th>
|
854 |
<td><input id="social_facebook" type="url" class="regular-text code" name="' . UCP_OPTIONS_KEY . '[social_facebook]" value="' . $options['social_facebook'] . '" placeholder="Facebook business or personal page URL">';
|
@@ -904,15 +964,9 @@ class UCP {
|
|
904 |
echo '</td></tr>';
|
905 |
|
906 |
echo '<tr valign="top">
|
907 |
-
<th scope="row"><label for="
|
908 |
-
<td><
|
909 |
-
|
910 |
-
<label class="onoffswitch-label" for="linkback">
|
911 |
-
<span class="onoffswitch-inner"></span>
|
912 |
-
<span class="onoffswitch-switch"></span>
|
913 |
-
</label>
|
914 |
-
</div>';
|
915 |
-
echo '<p class="description">Please help others learn about this free plugin by placing a small link in the footer. Thank you very much!</p>';
|
916 |
echo '</td></tr>';
|
917 |
|
918 |
echo '</table>';
|
@@ -925,7 +979,7 @@ class UCP {
|
|
925 |
|
926 |
$img_path = UCP_PLUGIN_URL . 'images/';
|
927 |
|
928 |
-
$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');
|
929 |
|
930 |
echo '<table class="form-table">';
|
931 |
echo '<tr valign="top">
|
@@ -1014,7 +1068,7 @@ class UCP {
|
|
1014 |
$default_options = self::default_options();
|
1015 |
|
1016 |
echo '<div class="wrap">
|
1017 |
-
<h1 class="ucp-logo"><img src="' . UCP_PLUGIN_URL . '/images/
|
1018 |
|
1019 |
echo '<form action="options.php" method="post" id="ucp_form">';
|
1020 |
settings_fields(UCP_OPTIONS_KEY);
|
@@ -1060,35 +1114,39 @@ class UCP {
|
|
1060 |
echo '<div id="features-survey-dialog" style="display: none;" title="Please help us make UCP better"><span class="ui-helper-hidden-accessible"><input type="text"/></span>';
|
1061 |
echo '<p>We strive to add at least one new feature to <span class="ucp-logo">UnderConstructionPage</span> every week and want to make it as usefull as possible.<br><b>What new features do you need the most?</b> Please choose two:</p>';
|
1062 |
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
|
|
|
|
|
|
|
|
1092 |
|
1093 |
$current_user = wp_get_current_user();
|
1094 |
echo '<div class="footer">';
|
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.50
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
Text Domain: under-construction-page
|
10 |
Domain Path: lang
|
236 |
$open_features_survey = false;
|
237 |
}
|
238 |
|
|
|
|
|
239 |
$js_localize = array('undocumented_error' => __('An undocumented error has occured. Please refresh the page and try again.', 'under-construction-page'),
|
240 |
'plugin_name' => __('UnderConstruction', 'under-construction-page'),
|
241 |
'settings_url' => admin_url('options-general.php?page=ucp'),
|
345 |
|
346 |
wp_send_json_success();
|
347 |
} // submit_survey_ajax
|
348 |
+
|
349 |
+
|
350 |
+
static function encode_email($email) {
|
351 |
+
$len = strlen($email);
|
352 |
+
$out = '';
|
353 |
+
|
354 |
+
for ($i = 0; $i < $len; $i++) {
|
355 |
+
$out .= '&#'. ord($email[$i]) . ';';
|
356 |
+
}
|
357 |
+
|
358 |
+
return $out;
|
359 |
+
} // encode_email
|
360 |
|
361 |
|
362 |
// parse shortcode alike variables
|
408 |
if (!empty($options['social_instagram'])) {
|
409 |
$out .= '<a href="' . $options['social_instagram'] . '" target="_blank"><i class="fa fa-instagram fa-3x"></i></a>';
|
410 |
}
|
411 |
+
if (!empty($options['social_email'])) {
|
412 |
+
$out .= '<a href="mailto:' . self::encode_email($options['social_email']) . '"><i class="fa fa-envelope fa-3x"></i></a>';
|
413 |
+
}
|
414 |
|
415 |
return $out;
|
416 |
} // generate_social_icons
|
420 |
static function generate_head($options, $template_id) {
|
421 |
$out = '';
|
422 |
|
423 |
+
$out .= '<link rel="stylesheet" href="' . trailingslashit(UCP_PLUGIN_URL . 'themes') . 'css/common.css?v=' . self::$version . '" type="text/css">';
|
424 |
+
|
425 |
if (!empty($options['ga_tracking_id'])) {
|
426 |
+
$out .= "
|
427 |
+
<script>
|
428 |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
429 |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
430 |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
434 |
</script>";
|
435 |
}
|
436 |
|
437 |
+
return trim($out);
|
438 |
} // generate_head
|
439 |
|
440 |
|
442 |
static function generate_footer($options, $template_id) {
|
443 |
$out = '';
|
444 |
|
445 |
+
if ($options['linkback'] == '1') {
|
446 |
$tmp = md5(get_site_url());
|
447 |
if ($tmp[0] < 9) {
|
448 |
$out .= '<p id="linkback">Create stunning <a href="https://underconstructionpage.com/" target="_blank">under construction pages for WordPress</a> for free.</p>';
|
451 |
}
|
452 |
}
|
453 |
|
454 |
+
if ($options['login_button'] == '1') {
|
455 |
+
if (is_user_logged_in()) {
|
456 |
+
$out .= '<div id="login-button" class="loggedin">';
|
457 |
+
$out .= '<a title="Open WordPress admin" href="' . get_site_url() . '/wp-admin/"><i class="fa fa-wordpress fa-2x" aria-hidden="true"></i></a>';
|
458 |
+
} else {
|
459 |
+
$out .= '<div id="login-button" class="loggedout">';
|
460 |
+
$out .= '<a title="Log in to WordPress admin" href="' . get_site_url() . '/wp-login.php"><i class="fa fa-wordpress fa-2x" aria-hidden="true"></i></a>';
|
461 |
+
}
|
462 |
+
$out .= '</div>';
|
463 |
+
}
|
464 |
+
|
465 |
return $out;
|
466 |
} // generate_footer
|
467 |
|
591 |
global $wp_admin_bar;
|
592 |
|
593 |
if (self::is_construction_mode_enabled(true)) {
|
594 |
+
$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>';
|
595 |
$class = 'ucp-enabled';
|
596 |
} else {
|
597 |
+
$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>';
|
598 |
$class = 'ucp-disabled';
|
599 |
}
|
600 |
|
672 |
'social_dribbble' => '',
|
673 |
'social_behance' => '',
|
674 |
'social_instagram' => '',
|
675 |
+
'social_email' => '',
|
676 |
+
'login_button' => '0',
|
677 |
'linkback' => '0',
|
678 |
'roles' => array('administrator'),
|
679 |
'whitelisted_users' => array()
|
702 |
case 'social_dribbble':
|
703 |
case 'social_behance':
|
704 |
case 'social_instagram':
|
705 |
+
case 'social_email':
|
706 |
$options[$key] = trim($value);
|
707 |
break;
|
708 |
case 'ga_tracking_id':
|
716 |
|
717 |
$options['roles'] = empty($options['roles'])? array(): $options['roles'];
|
718 |
$options['whitelisted_users'] = empty($options['whitelisted_users'])? array(): $options['whitelisted_users'];
|
719 |
+
$options = self::check_var_isset($options, array('status' => 0, 'linkback' => 0, 'login_button' => 0));
|
720 |
|
721 |
if (!empty($options['ga_tracking_id']) && preg_match('/^UA-\d{3,}-\d{1,3}$/', $options['ga_tracking_id']) === 0) {
|
722 |
add_settings_error('ucp', 'ga_tracking_id', 'Please enter a valid Google Analytics Tracking ID, or leave empty to disable tracking.');
|
879 |
echo '<p class="description">All HTML elements are allowed. Shortcodes are not parsed except <a href="#title">UC template ones</a>. Default: ' . $default_options['content'] . '</p>';
|
880 |
echo '</td></tr>';
|
881 |
|
882 |
+
echo '<tr valign="top">
|
883 |
+
<th scope="row"><label for="login_button">Login Button</label></th>
|
884 |
+
<td><div class="onoffswitch">
|
885 |
+
<input ' . self::checked(1, $options['login_button']) . ' type="checkbox" value="1" name="' . UCP_OPTIONS_KEY . '[login_button]" class="onoffswitch-checkbox" id="login_button">
|
886 |
+
<label class="onoffswitch-label" for="login_button">
|
887 |
+
<span class="onoffswitch-inner"></span>
|
888 |
+
<span class="onoffswitch-switch"></span>
|
889 |
+
</label>
|
890 |
+
</div>';
|
891 |
+
echo '<p class="description">Show a descrete link to the login form, or WP admin if you\'re logged in, in the lower right corner of the page.</p>';
|
892 |
+
echo '</td></tr>';
|
893 |
+
|
894 |
+
echo '<tr valign="top">
|
895 |
+
<th scope="row"><label for="linkback">Show Some Love</label></th>
|
896 |
+
<td><div class="onoffswitch">
|
897 |
+
<input ' . self::checked(1, $options['linkback']) . ' type="checkbox" value="1" name="' . UCP_OPTIONS_KEY . '[linkback]" class="onoffswitch-checkbox" id="linkback">
|
898 |
+
<label class="onoffswitch-label" for="linkback">
|
899 |
+
<span class="onoffswitch-inner"></span>
|
900 |
+
<span class="onoffswitch-switch"></span>
|
901 |
+
</label>
|
902 |
+
</div>';
|
903 |
+
echo '<p class="description">Please help others learn about this free plugin by placing a small link in the footer. Thank you very much!</p>';
|
904 |
+
echo '</td></tr>';
|
905 |
+
|
906 |
+
|
907 |
+
echo '</table>';
|
908 |
+
|
909 |
+
echo '<h2 class="title">Social & Contact Icons</h2>';
|
910 |
+
|
911 |
+
echo '<table class="form-table">';
|
912 |
echo '<tr valign="top">
|
913 |
<th scope="row"><label for="social_facebook">Facebook Page</label></th>
|
914 |
<td><input id="social_facebook" type="url" class="regular-text code" name="' . UCP_OPTIONS_KEY . '[social_facebook]" value="' . $options['social_facebook'] . '" placeholder="Facebook business or personal page URL">';
|
964 |
echo '</td></tr>';
|
965 |
|
966 |
echo '<tr valign="top">
|
967 |
+
<th scope="row"><label for="social_email">Email Address</label></th>
|
968 |
+
<td><input id="social_email" type="email" class="regular-text code" name="' . UCP_OPTIONS_KEY . '[social_email]" value="' . $options['social_email'] . '" placeholder="Contact email address">';
|
969 |
+
echo '<p class="description">Email will be encoded in HTML to protect it from spammers.</p>';
|
|
|
|
|
|
|
|
|
|
|
|
|
970 |
echo '</td></tr>';
|
971 |
|
972 |
echo '</table>';
|
979 |
|
980 |
$img_path = UCP_PLUGIN_URL . 'images/';
|
981 |
|
982 |
+
$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');
|
983 |
|
984 |
echo '<table class="form-table">';
|
985 |
echo '<tr valign="top">
|
1068 |
$default_options = self::default_options();
|
1069 |
|
1070 |
echo '<div class="wrap">
|
1071 |
+
<h1 class="ucp-logo"><img src="' . UCP_PLUGIN_URL . '/images/ucp_logo.png" alt="UnderConstructionPage" title="UnderConstructionPage">UnderConstructionPage</h1>';
|
1072 |
|
1073 |
echo '<form action="options.php" method="post" id="ucp_form">';
|
1074 |
settings_fields(UCP_OPTIONS_KEY);
|
1114 |
echo '<div id="features-survey-dialog" style="display: none;" title="Please help us make UCP better"><span class="ui-helper-hidden-accessible"><input type="text"/></span>';
|
1115 |
echo '<p>We strive to add at least one new feature to <span class="ucp-logo">UnderConstructionPage</span> every week and want to make it as usefull as possible.<br><b>What new features do you need the most?</b> Please choose two:</p>';
|
1116 |
|
1117 |
+
$questions = array();
|
1118 |
+
$questions[] = '<div class="question-wrapper" data-value="designs">' .
|
1119 |
+
'<div class="question"><b>More designs like the ones we already have</b><br>' .
|
1120 |
+
'<i>Fun, unique & made just for the UCP plugin</i></div>' .
|
1121 |
+
'<span class="dashicons dashicons-yes"></span>' .
|
1122 |
+
'</div>';
|
1123 |
+
|
1124 |
+
$questions[] = '<div class="question-wrapper" data-value="drag-drop">' .
|
1125 |
+
'<div class="question"><b>Drag & drop page designer</b><br>' .
|
1126 |
+
'<i>Countdown timers, progress bars, text, images - the complete package</i></div>' .
|
1127 |
+
'<span class="dashicons dashicons-yes"></span>' .
|
1128 |
+
'</div>';
|
1129 |
+
|
1130 |
+
$questions[] = '<div class="question-wrapper" data-value="analytics">' .
|
1131 |
+
'<div class="question"><b>Built-in analytics</b><br>' .
|
1132 |
+
'<i>No 3rd party service needed; simple & fast statistics in UCP admin</i></div>' .
|
1133 |
+
'<span class="dashicons dashicons-yes"></span>' .
|
1134 |
+
'</div>';
|
1135 |
+
|
1136 |
+
$questions[] = '<div class="question-wrapper" data-value="leads">' .
|
1137 |
+
'<div class="question"><b>Optin form on construction page</b><br>' .
|
1138 |
+
'<i>Collect visitors\' emails & add them to an autoresponder</i></div>' .
|
1139 |
+
'<span class="dashicons dashicons-yes"></span>' .
|
1140 |
+
'</div>';
|
1141 |
+
|
1142 |
+
$questions[] = '<div class="question-wrapper" data-value="custom">' .
|
1143 |
+
'<div class="question"><b>Something we missed? Enter the feature you need below:</b><br>' .
|
1144 |
+
'<input type="text" class="custom-input"></div>' .
|
1145 |
+
'<span class="dashicons dashicons-yes"></span>' .
|
1146 |
+
'</div>';
|
1147 |
+
|
1148 |
+
shuffle($questions);
|
1149 |
+
echo implode(' ', $questions);
|
1150 |
|
1151 |
$current_user = wp_get_current_user();
|
1152 |
echo '<div class="footer">';
|