Version Description
- 2017/12/05
- translation efforts are still in full swing
- new theme - Christmas
- minor changes
- we crossed the 890k downloads mark
Download this release
Release Info
| Developer | WebFactory |
| Plugin | |
| Version | 2.80 |
| Comparing to | |
| See all releases | |
Code changes from version 2.75 to 2.80
- css/ucp-admin.css +3 -2
- images/thumbnails/christmas.png +0 -0
- readme.txt +16 -6
- themes/christmas/index.php +58 -0
- themes/christmas/santa.png +0 -0
- themes/christmas/snow-bottom.png +0 -0
- themes/christmas/snow.png +0 -0
- themes/christmas/style.css +90 -0
- under-construction.php +33 -22
css/ucp-admin.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
/*
|
| 2 |
* UnderConstructionPage
|
| 3 |
* Main backend CSS
|
| 4 |
-
* (c) Web factory Ltd, 2015 -
|
| 5 |
*/
|
| 6 |
|
| 7 |
@import url('//fonts.googleapis.com/css?family=Roboto:900');
|
|
@@ -124,8 +124,9 @@ div.ucp-thumb.active span {
|
|
| 124 |
}
|
| 125 |
|
| 126 |
div.ucp-thumb img, .ucp-thumb-special img {
|
| 127 |
-
|
| 128 |
max-width: 100%;
|
|
|
|
| 129 |
}
|
| 130 |
|
| 131 |
.ucp-list {
|
| 1 |
/*
|
| 2 |
* UnderConstructionPage
|
| 3 |
* Main backend CSS
|
| 4 |
+
* (c) Web factory Ltd, 2015 - 2018
|
| 5 |
*/
|
| 6 |
|
| 7 |
@import url('//fonts.googleapis.com/css?family=Roboto:900');
|
| 124 |
}
|
| 125 |
|
| 126 |
div.ucp-thumb img, .ucp-thumb-special img {
|
| 127 |
+
margin-bottom: 6px;
|
| 128 |
max-width: 100%;
|
| 129 |
+
border: thin solid rgba(0, 0, 0, 0.35);
|
| 130 |
}
|
| 131 |
|
| 132 |
.ucp-list {
|
images/thumbnails/christmas.png
ADDED
|
Binary file
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: maintenance mode, maintenance page, coming soon page, landing page, under
|
|
| 4 |
Requires at least: 4.0
|
| 5 |
Requires PHP: 5.2
|
| 6 |
Tested up to: 4.9
|
| 7 |
-
Stable tag: 2.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -17,6 +17,8 @@ Create an Under Construction Page, Maintenance Mode Page or a Landing Page that
|
|
| 17 |
|
| 18 |
[youtube https://www.youtube.com/watch?v=fqqWrQENSDc]
|
| 19 |
|
|
|
|
|
|
|
| 20 |
A simple, no-nonsense plugin for all those situations when you have to hide the site behind an Under Construction page for a while. Live examples are available on the <a href="https://underconstructionpage.com/" rel="friend">Under Construction website</a>. Give us a shout on Twitter <a href="http://twitter.com/WebFactoryLtd">@WebFactoryLtd</a> or check out the <a href="https://youtu.be/fqqWrQENSDc">video</a>.
|
| 21 |
|
| 22 |
|
|
@@ -112,15 +114,23 @@ Or if needed, upload manually;
|
|
| 112 |
25. Stop theme
|
| 113 |
26. Clock theme
|
| 114 |
27. Bulldozer theme
|
| 115 |
-
28.
|
| 116 |
-
29.
|
| 117 |
-
30.
|
| 118 |
-
31.
|
| 119 |
-
32.
|
|
|
|
| 120 |
|
| 121 |
|
| 122 |
== Changelog ==
|
| 123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
= 2.75 =
|
| 125 |
* 2017/11/22
|
| 126 |
* translation efforts are in full swing
|
| 4 |
Requires at least: 4.0
|
| 5 |
Requires PHP: 5.2
|
| 6 |
Tested up to: 4.9
|
| 7 |
+
Stable tag: 2.80
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 17 |
|
| 18 |
[youtube https://www.youtube.com/watch?v=fqqWrQENSDc]
|
| 19 |
|
| 20 |
+
> > **PRO** version offers more than 100 extra features and options including the drag&drop builder, 300,000+ searchable images, 100+ templates, affiliate&traffic tracking, advanced access control, MailChimp, Zapier & universal autoresponder integration, and priority USA based support. Find out more on the <a href="https://underconstructionpage.com/">official plugin site</a>.
|
| 21 |
+
|
| 22 |
A simple, no-nonsense plugin for all those situations when you have to hide the site behind an Under Construction page for a while. Live examples are available on the <a href="https://underconstructionpage.com/" rel="friend">Under Construction website</a>. Give us a shout on Twitter <a href="http://twitter.com/WebFactoryLtd">@WebFactoryLtd</a> or check out the <a href="https://youtu.be/fqqWrQENSDc">video</a>.
|
| 23 |
|
| 24 |
|
| 114 |
25. Stop theme
|
| 115 |
26. Clock theme
|
| 116 |
27. Bulldozer theme
|
| 117 |
+
28. Christmas theme
|
| 118 |
+
29. Main settings
|
| 119 |
+
30. Design settings
|
| 120 |
+
31. Content settings
|
| 121 |
+
32. Access settings
|
| 122 |
+
33. Support
|
| 123 |
|
| 124 |
|
| 125 |
== Changelog ==
|
| 126 |
|
| 127 |
+
= 2.80 =
|
| 128 |
+
* 2017/12/05
|
| 129 |
+
* translation efforts are still in full swing
|
| 130 |
+
* new theme - Christmas
|
| 131 |
+
* minor changes
|
| 132 |
+
* we crossed the 890k downloads mark
|
| 133 |
+
|
| 134 |
= 2.75 =
|
| 135 |
* 2017/11/22
|
| 136 |
* translation efforts are in full swing
|
themes/christmas/index.php
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/*
|
| 3 |
+
* UnderConstructionPage
|
| 4 |
+
* Christmas theme
|
| 5 |
+
* (c) Web factory Ltd, 2015 - 2018
|
| 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="https://fonts.googleapis.com/css?family=Roboto:400,900">
|
| 24 |
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Mountains+of+Christmas:700">
|
| 25 |
+
[head]
|
| 26 |
+
</head>
|
| 27 |
+
|
| 28 |
+
<body>
|
| 29 |
+
<div id="hero-image">
|
| 30 |
+
<img src="[theme-url]santa.png" alt="Happy Holidays!" title="Happy Holidays!">
|
| 31 |
+
<div id="snow-bottom"></div>
|
| 32 |
+
</div>
|
| 33 |
+
<div class="container-wrap">
|
| 34 |
+
<div class="container">
|
| 35 |
+
|
| 36 |
+
<div class="row">
|
| 37 |
+
<div class="col-xs-12 col-md-12 col-lg-12">
|
| 38 |
+
<h1>[heading1]</h1>
|
| 39 |
+
</div>
|
| 40 |
+
</div>
|
| 41 |
+
|
| 42 |
+
<div class="row">
|
| 43 |
+
<div class="col-xs-12 col-md-8 col-md-offset-2 col-lg-offset-2 col-lg-8">
|
| 44 |
+
<p class="content">[content]</p>
|
| 45 |
+
</div>
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<div class="row" id="social">
|
| 49 |
+
<div class="col-xs-12 col-md-12 col-lg-12">
|
| 50 |
+
[social-icons]
|
| 51 |
+
</div>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
</div>
|
| 55 |
+
</div>
|
| 56 |
+
[footer]
|
| 57 |
+
</body>
|
| 58 |
+
</html>
|
themes/christmas/santa.png
ADDED
|
Binary file
|
themes/christmas/snow-bottom.png
ADDED
|
Binary file
|
themes/christmas/snow.png
ADDED
|
Binary file
|
themes/christmas/style.css
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* UnderConstructionPage
|
| 3 |
+
* Christmas theme CSS
|
| 4 |
+
* (c) Web factory Ltd, 2015 - 2018
|
| 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: #3f3e40;
|
| 19 |
+
background: #90d479;
|
| 20 |
+
padding: 0;
|
| 21 |
+
margin: 0;
|
| 22 |
+
background-repeat: no-repeat;
|
| 23 |
+
background-attachment: fixed;
|
| 24 |
+
background-color: #fff;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
#hero-image {
|
| 28 |
+
text-align: center;
|
| 29 |
+
margin: 0 auto 0 auto;
|
| 30 |
+
padding: 40px 0 0 0;
|
| 31 |
+
background-color: #41d1fd;
|
| 32 |
+
background-image: url(snow.png);
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
#hero-image img {
|
| 36 |
+
max-width: 35%;
|
| 37 |
+
margin: 0 0 -35px 0;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
#snow-bottom {
|
| 41 |
+
height: 27px;
|
| 42 |
+
background-image: url(snow-bottom.png);
|
| 43 |
+
background-repeat: no-repeat;
|
| 44 |
+
}
|
| 45 |
+
.container-wrap {
|
| 46 |
+
background-color: #fff;
|
| 47 |
+
padding: 20px 0;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
h1 {
|
| 51 |
+
font-size: 34px;
|
| 52 |
+
color: #ff7041;
|
| 53 |
+
font-family: 'Mountains of Christmas', cursive;
|
| 54 |
+
font-weight: 700;
|
| 55 |
+
margin: 30px 0 30px 0;
|
| 56 |
+
text-align: center;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
.content {
|
| 60 |
+
text-align: center;
|
| 61 |
+
font-family: "Helvetica", "Arial", sans-serif;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
#social {
|
| 65 |
+
text-align: center;
|
| 66 |
+
margin-top: 30px;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
#social a i {
|
| 70 |
+
color: #3f3e40;
|
| 71 |
+
margin: 10px;
|
| 72 |
+
box-sizing: content-box;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
#social a:hover i {
|
| 76 |
+
color: #ff7041;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
@media(max-width:767px){
|
| 80 |
+
h1 {
|
| 81 |
+
font-size: 30px;
|
| 82 |
+
margin: 10px 0 30px 0;
|
| 83 |
+
}
|
| 84 |
+
#hero-image img {
|
| 85 |
+
max-width: 95%;
|
| 86 |
+
}
|
| 87 |
+
#hero-image {
|
| 88 |
+
padding: 20px 0 0 0;
|
| 89 |
+
}
|
| 90 |
+
}
|
under-construction.php
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
/*
|
| 3 |
Plugin Name: Under Construction
|
| 4 |
Plugin URI: https://underconstructionpage.com/
|
| 5 |
-
Description: Put your site behind a great looking under construction
|
| 6 |
Author: Web factory Ltd
|
| 7 |
-
Version: 2.
|
| 8 |
Author URI: http://www.webfactoryltd.com/
|
| 9 |
Text Domain: under-construction-page
|
| 10 |
Domain Path: lang
|
| 11 |
|
| 12 |
-
Copyright 2015 -
|
| 13 |
|
| 14 |
This program is free software; you can redistribute it and/or modify
|
| 15 |
it under the terms of the GNU General Public License, version 2, as
|
|
@@ -408,6 +408,7 @@ class UCP {
|
|
| 408 |
$body .= "\r\n\r\nSite details:\r\n";
|
| 409 |
$body .= ' WordPress version: ' . get_bloginfo('version') . "\r\n";
|
| 410 |
$body .= ' UCP version: ' . self::$version . "\r\n";
|
|
|
|
| 411 |
$body .= ' Site URL: ' . get_bloginfo('url') . "\r\n";
|
| 412 |
$body .= ' WordPress URL: ' . get_bloginfo('wpurl') . "\r\n";
|
| 413 |
$body .= ' Theme: ' . $theme->get('Name') . ' v' . $theme->get('Version') . "\r\n";
|
|
@@ -633,6 +634,7 @@ class UCP {
|
|
| 633 |
static function generate_footer($options, $template_id) {
|
| 634 |
$out = '';
|
| 635 |
|
|
|
|
| 636 |
if ($options['linkback'] == '1') {
|
| 637 |
$tmp = md5(get_site_url());
|
| 638 |
if ($tmp[0] < '4') {
|
|
@@ -769,10 +771,11 @@ class UCP {
|
|
| 769 |
$current_user = wp_get_current_user();
|
| 770 |
|
| 771 |
$name = '';
|
| 772 |
-
if(!empty($current_user->user_firstname)) {
|
| 773 |
$name = ' ' . $current_user->user_firstname;
|
| 774 |
}
|
| 775 |
|
|
|
|
| 776 |
if (empty($notices['dismiss_rate']) &&
|
| 777 |
(time() - $meta['first_install']) > (DAY_IN_SECONDS * 1.0)) {
|
| 778 |
$rate_url = 'https://wordpress.org/support/plugin/under-construction-page/reviews/?filter=5&rate=5#new-post';
|
|
@@ -939,7 +942,9 @@ class UCP {
|
|
| 939 |
array_unshift($links, $pro_link);
|
| 940 |
array_unshift($links, $settings_link);
|
| 941 |
|
| 942 |
-
|
|
|
|
|
|
|
| 943 |
|
| 944 |
return $links;
|
| 945 |
} // plugin_action_links
|
|
@@ -966,7 +971,7 @@ class UCP {
|
|
| 966 |
return $text;
|
| 967 |
}
|
| 968 |
|
| 969 |
-
$text = '<i><a href="https://underconstructionpage.com/" title="' . __('Visit UCP\'s site for more info', 'under-construction-page') . '" target="_blank">UnderConstructionPage</a> v' . self::$version . ' by <a href="https://www.webfactoryltd.com/" title="' . __('Visit our site to get more great plugins', 'under-construction-page') . '" target="_blank">WebFactory Ltd</a>.</i> '. $text;
|
| 970 |
|
| 971 |
return $text;
|
| 972 |
} // admin_footer_text
|
|
@@ -986,7 +991,7 @@ class UCP {
|
|
| 986 |
|
| 987 |
// create the admin menu item
|
| 988 |
static function admin_menu() {
|
| 989 |
-
add_options_page('UnderConstruction', 'UnderConstruction', 'manage_options', 'ucp', array(__CLASS__, 'main_page'));
|
| 990 |
} // admin_menu
|
| 991 |
|
| 992 |
|
|
@@ -1099,10 +1104,6 @@ class UCP {
|
|
| 1099 |
if (function_exists('w3tc_pgcache_flush')) {
|
| 1100 |
w3tc_pgcache_flush();
|
| 1101 |
}
|
| 1102 |
-
if (function_exists('wp_cache_clean_cache')) {
|
| 1103 |
-
global $file_prefix;
|
| 1104 |
-
wp_cache_clean_cache($file_prefix);
|
| 1105 |
-
}
|
| 1106 |
if (function_exists('wp_cache_clear_cache')) {
|
| 1107 |
wp_cache_clear_cache();
|
| 1108 |
}
|
|
@@ -1249,7 +1250,7 @@ class UCP {
|
|
| 1249 |
echo '<tr valign="top">
|
| 1250 |
<th scope="row"><label for="">' . __('Reset Settings', 'under-construction-page') . '</label></th>
|
| 1251 |
<td>';
|
| 1252 |
-
echo '<a href="' . $reset_url . '" class="button button-secondary reset-settings">Reset all settings to default values</a>';
|
| 1253 |
echo '<p class="description">' . __('By resetting all settings to their default values any customizations you have done will be lost. There is no undo.', 'under-construction-page') . '</p>';
|
| 1254 |
echo '</td></tr>';
|
| 1255 |
|
|
@@ -1267,6 +1268,7 @@ class UCP {
|
|
| 1267 |
echo '<div class="ucp-tab-content">';
|
| 1268 |
echo '<table class="form-table">';
|
| 1269 |
|
|
|
|
| 1270 |
echo '<tr valign="top">
|
| 1271 |
<th scope="row"><label for="title">' . __('Title', 'under-construction-page') . '</label></th>
|
| 1272 |
<td><input type="text" id="title" class="regular-text" name="' . UCP_OPTIONS_KEY . '[title]" value="' . esc_attr($options['title']) . '" />';
|
|
@@ -1434,7 +1436,8 @@ class UCP {
|
|
| 1434 |
|
| 1435 |
|
| 1436 |
static function get_themes() {
|
| 1437 |
-
$themes = array('
|
|
|
|
| 1438 |
'plain_text' => __('Plain Text', 'under-construction-page'),
|
| 1439 |
'under_construction' => __('Under Construction', 'under-construction-page'),
|
| 1440 |
'dark' => __('Things Went Dark', 'under-construction-page'),
|
|
@@ -1461,6 +1464,7 @@ class UCP {
|
|
| 1461 |
'stop' => __('Stop', 'under-construction-page'),
|
| 1462 |
'clock' => __('Clock', 'under-construction-page'),
|
| 1463 |
'bulldozer' => __('Bulldozer at Work', 'under-construction-page'));
|
|
|
|
| 1464 |
$themes = apply_filters('ucp_themes', $themes);
|
| 1465 |
|
| 1466 |
return $themes;
|
|
@@ -1479,7 +1483,7 @@ class UCP {
|
|
| 1479 |
<td colspan="2"><b style="margin-bottom: 10px; display: inline-block;">' . __('Theme', 'under-construction-page') . '</b><br>';
|
| 1480 |
echo '<input type="hidden" id="theme_id" name="' . UCP_OPTIONS_KEY . '[theme]" value="' . $options['theme'] . '">';
|
| 1481 |
|
| 1482 |
-
echo '<div class="ucp-thumb-special"><a href="' . self::generate_web_link('thumb-build-theme') . '" target="_blank"><img src="' . $img_path . 'more_coming_soon.png" alt="Build your own custom theme with our drag & drop editor" title="Build your own custom theme with our drag & drop editor"></a><span>Build your own custom theme</span></div>';
|
| 1483 |
|
| 1484 |
foreach ($themes as $theme_id => $theme_name) {
|
| 1485 |
if ($theme_id === $options['theme']) {
|
|
@@ -1526,6 +1530,12 @@ class UCP {
|
|
| 1526 |
echo '<div class="ucp-tab-content">';
|
| 1527 |
echo '<table class="form-table">';
|
| 1528 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1529 |
echo '<tr valign="top" id="whitelisted-roles">
|
| 1530 |
<th scope="row">' . __('Whitelisted User Roles', 'under-construction-page') . '</th>
|
| 1531 |
<td>';
|
|
@@ -1622,6 +1632,7 @@ class UCP {
|
|
| 1622 |
echo '<p class="description">Our support agents need this info to provide faster & better support. The following data will be added to your message;</p>';
|
| 1623 |
echo '<p>WordPress version: <code>' . get_bloginfo('version') . '</code><br>';
|
| 1624 |
echo 'UCP Version: <code>' . self::$version . '</code><br>';
|
|
|
|
| 1625 |
echo 'Site URL: <code>' . get_bloginfo('url') . '</code><br>';
|
| 1626 |
echo 'WordPress URL: <code>' . get_bloginfo('wpurl') . '</code><br>';
|
| 1627 |
echo 'Theme: <code>' . $theme->get('Name') . ' v' . $theme->get('Version') . '</code><br>';
|
|
@@ -1644,7 +1655,7 @@ class UCP {
|
|
| 1644 |
echo '<h3 class="ucp-pro-logo"><a href="' . self::generate_web_link('pro-tab-logo') . '" target="_blank"><img src="' . UCP_PLUGIN_URL . 'images/ucp_pro_logo.png" alt="UnderConstructionPage PRO" title="UnderConstructionPage"></a></h3>';
|
| 1645 |
|
| 1646 |
echo '<div id="ucp-earlybird"><span>Build <b>landing pages, coming soon pages, maintenance & under construction pages</b> faster & easier!</span>';
|
| 1647 |
-
echo '<p class="textcenter"><a target="_blank" href="' . self::generate_web_link('pro-tab-
|
| 1648 |
echo '</div>';
|
| 1649 |
|
| 1650 |
echo '<h3 class="ucp-small-title">Some of the features available in the PRO version</h3>';
|
|
@@ -1824,34 +1835,34 @@ class UCP {
|
|
| 1824 |
echo '<div id="ucp-deactivate-survey" style="display: none;" title="Please help us make UCP better"><span class="ui-helper-hidden-accessible"><input type="text"/></span>';
|
| 1825 |
|
| 1826 |
echo '<div class="question-wrapper-assistance" data-value="urgent">' .
|
| 1827 |
-
'<div class="question"><b>Something\'s not working? We offer URGENT assistance!</b><br><a href="' . $support_link . '" class="button">Send a priority ticket to our friendly support agents</a><br><small><i>average response time is under
|
| 1828 |
|
| 1829 |
echo '<p class="textcenter"><br>We want to improve! Please tell us:<br><b>Why are you deactivating <span class="ucp-logo">UnderConstructionPage</span>?</b></p>';
|
| 1830 |
|
| 1831 |
$questions = array();
|
| 1832 |
$questions[] = '<div class="question-wrapper" data-value="temporary">' .
|
| 1833 |
-
'<div class="question">It\'s a temporary deactivation
|
| 1834 |
'</div>';
|
| 1835 |
|
| 1836 |
$questions[] = '<div class="question-wrapper" data-value="not-working">' .
|
| 1837 |
-
'<div class="question">Plugin is not working
|
| 1838 |
'</div>';
|
| 1839 |
|
| 1840 |
$questions[] = '<div class="question-wrapper" data-value="wrong-plugin">' .
|
| 1841 |
-
'<div class="question">Plugin is not what I thought it is
|
| 1842 |
'</div>';
|
| 1843 |
|
| 1844 |
$questions[] = '<div class="question-wrapper" data-value="site-live">' .
|
| 1845 |
-
'<div class="question">It served its purpose - site is now live
|
| 1846 |
'</div>';
|
| 1847 |
|
| 1848 |
$questions[] = '<div class="question-wrapper" data-value="missing-feature">' .
|
| 1849 |
-
'<div class="question">It doesn\'t have all the features I need
|
| 1850 |
'</div>';
|
| 1851 |
|
| 1852 |
shuffle($questions);
|
| 1853 |
$questions[] = '<div class="question-wrapper" data-value="other">' .
|
| 1854 |
-
'<div class="question">Something else
|
| 1855 |
'</div>';
|
| 1856 |
echo implode(' ', $questions);
|
| 1857 |
|
| 2 |
/*
|
| 3 |
Plugin Name: Under Construction
|
| 4 |
Plugin URI: https://underconstructionpage.com/
|
| 5 |
+
Description: Put your site behind a great looking under construction, coming soon, maintenance mode or landing page.
|
| 6 |
Author: Web factory Ltd
|
| 7 |
+
Version: 2.80
|
| 8 |
Author URI: http://www.webfactoryltd.com/
|
| 9 |
Text Domain: under-construction-page
|
| 10 |
Domain Path: lang
|
| 11 |
|
| 12 |
+
Copyright 2015 - 2018 Web factory Ltd (email: ucp@webfactoryltd.com)
|
| 13 |
|
| 14 |
This program is free software; you can redistribute it and/or modify
|
| 15 |
it under the terms of the GNU General Public License, version 2, as
|
| 408 |
$body .= "\r\n\r\nSite details:\r\n";
|
| 409 |
$body .= ' WordPress version: ' . get_bloginfo('version') . "\r\n";
|
| 410 |
$body .= ' UCP version: ' . self::$version . "\r\n";
|
| 411 |
+
$body .= ' PHP version: ' . PHP_VERSION . "\r\n";
|
| 412 |
$body .= ' Site URL: ' . get_bloginfo('url') . "\r\n";
|
| 413 |
$body .= ' WordPress URL: ' . get_bloginfo('wpurl') . "\r\n";
|
| 414 |
$body .= ' Theme: ' . $theme->get('Name') . ' v' . $theme->get('Version') . "\r\n";
|
| 634 |
static function generate_footer($options, $template_id) {
|
| 635 |
$out = '';
|
| 636 |
|
| 637 |
+
// todo translate
|
| 638 |
if ($options['linkback'] == '1') {
|
| 639 |
$tmp = md5(get_site_url());
|
| 640 |
if ($tmp[0] < '4') {
|
| 771 |
$current_user = wp_get_current_user();
|
| 772 |
|
| 773 |
$name = '';
|
| 774 |
+
if (!empty($current_user->user_firstname)) {
|
| 775 |
$name = ' ' . $current_user->user_firstname;
|
| 776 |
}
|
| 777 |
|
| 778 |
+
// todo translate
|
| 779 |
if (empty($notices['dismiss_rate']) &&
|
| 780 |
(time() - $meta['first_install']) > (DAY_IN_SECONDS * 1.0)) {
|
| 781 |
$rate_url = 'https://wordpress.org/support/plugin/under-construction-page/reviews/?filter=5&rate=5#new-post';
|
| 942 |
array_unshift($links, $pro_link);
|
| 943 |
array_unshift($links, $settings_link);
|
| 944 |
|
| 945 |
+
if (!empty($links['deactivate'])) {
|
| 946 |
+
$links['deactivate'] = str_replace('href=',' data-under-construction-page="true" href=', $links['deactivate']);
|
| 947 |
+
}
|
| 948 |
|
| 949 |
return $links;
|
| 950 |
} // plugin_action_links
|
| 971 |
return $text;
|
| 972 |
}
|
| 973 |
|
| 974 |
+
$text = '<i><a href="https://underconstructionpage.com/" title="' . __('Visit UCP\'s site for more info', 'under-construction-page') . '" target="_blank">' . __('UnderConstructionPage', 'under-construction-page') . '</a> v' . self::$version . ' by <a href="https://www.webfactoryltd.com/" title="' . __('Visit our site to get more great plugins', 'under-construction-page') . '" target="_blank">' . __('WebFactory Ltd', 'under-construction-page') . '</a>.</i> '. $text;
|
| 975 |
|
| 976 |
return $text;
|
| 977 |
} // admin_footer_text
|
| 991 |
|
| 992 |
// create the admin menu item
|
| 993 |
static function admin_menu() {
|
| 994 |
+
add_options_page(__('UnderConstruction', 'under-construction-page'), __('UnderConstruction', 'under-construction-page'), 'manage_options', 'ucp', array(__CLASS__, 'main_page'));
|
| 995 |
} // admin_menu
|
| 996 |
|
| 997 |
|
| 1104 |
if (function_exists('w3tc_pgcache_flush')) {
|
| 1105 |
w3tc_pgcache_flush();
|
| 1106 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1107 |
if (function_exists('wp_cache_clear_cache')) {
|
| 1108 |
wp_cache_clear_cache();
|
| 1109 |
}
|
| 1250 |
echo '<tr valign="top">
|
| 1251 |
<th scope="row"><label for="">' . __('Reset Settings', 'under-construction-page') . '</label></th>
|
| 1252 |
<td>';
|
| 1253 |
+
echo '<a href="' . $reset_url . '" class="button button-secondary reset-settings">' . __('Reset all settings to default values', 'under-construction-page') . '</a>';
|
| 1254 |
echo '<p class="description">' . __('By resetting all settings to their default values any customizations you have done will be lost. There is no undo.', 'under-construction-page') . '</p>';
|
| 1255 |
echo '</td></tr>';
|
| 1256 |
|
| 1268 |
echo '<div class="ucp-tab-content">';
|
| 1269 |
echo '<table class="form-table">';
|
| 1270 |
|
| 1271 |
+
// todo translate
|
| 1272 |
echo '<tr valign="top">
|
| 1273 |
<th scope="row"><label for="title">' . __('Title', 'under-construction-page') . '</label></th>
|
| 1274 |
<td><input type="text" id="title" class="regular-text" name="' . UCP_OPTIONS_KEY . '[title]" value="' . esc_attr($options['title']) . '" />';
|
| 1436 |
|
| 1437 |
|
| 1438 |
static function get_themes() {
|
| 1439 |
+
$themes = array('christmas' => __('Christmas Greetings', 'under-construction-page'),
|
| 1440 |
+
'mad_designer' => __('Mad Designer', 'under-construction-page'),
|
| 1441 |
'plain_text' => __('Plain Text', 'under-construction-page'),
|
| 1442 |
'under_construction' => __('Under Construction', 'under-construction-page'),
|
| 1443 |
'dark' => __('Things Went Dark', 'under-construction-page'),
|
| 1464 |
'stop' => __('Stop', 'under-construction-page'),
|
| 1465 |
'clock' => __('Clock', 'under-construction-page'),
|
| 1466 |
'bulldozer' => __('Bulldozer at Work', 'under-construction-page'));
|
| 1467 |
+
|
| 1468 |
$themes = apply_filters('ucp_themes', $themes);
|
| 1469 |
|
| 1470 |
return $themes;
|
| 1483 |
<td colspan="2"><b style="margin-bottom: 10px; display: inline-block;">' . __('Theme', 'under-construction-page') . '</b><br>';
|
| 1484 |
echo '<input type="hidden" id="theme_id" name="' . UCP_OPTIONS_KEY . '[theme]" value="' . $options['theme'] . '">';
|
| 1485 |
|
| 1486 |
+
echo '<div class="ucp-thumb-special"><a href="' . self::generate_web_link('thumb-build-theme') . '" target="_blank"><img src="' . $img_path . 'more_coming_soon.png" alt="' . __('Build your own custom theme with our drag & drop editor', 'under-construction-page') . '" title="' . __('Build your own custom theme with our drag & drop editor', 'under-construction-page') . '"></a><span>' . __('Build your own custom theme', 'under-construction-page') . '</span></div>';
|
| 1487 |
|
| 1488 |
foreach ($themes as $theme_id => $theme_name) {
|
| 1489 |
if ($theme_id === $options['theme']) {
|
| 1530 |
echo '<div class="ucp-tab-content">';
|
| 1531 |
echo '<table class="form-table">';
|
| 1532 |
|
| 1533 |
+
echo '<tr valign="top">
|
| 1534 |
+
<th scope="row">' . __('Whitelisted IP Addresses', 'under-construction-page') . '</th>
|
| 1535 |
+
<td>';
|
| 1536 |
+
echo 'Whitelisting users by IP address, enabling UCP only on certain pages, expiring direct access links, and many more features are available in <a href="' . self::generate_web_link('access-whitelisted-ip') . '" target="_blank">UnderConstructionPage PRO</a>.';
|
| 1537 |
+
echo '<td></tr>';
|
| 1538 |
+
|
| 1539 |
echo '<tr valign="top" id="whitelisted-roles">
|
| 1540 |
<th scope="row">' . __('Whitelisted User Roles', 'under-construction-page') . '</th>
|
| 1541 |
<td>';
|
| 1632 |
echo '<p class="description">Our support agents need this info to provide faster & better support. The following data will be added to your message;</p>';
|
| 1633 |
echo '<p>WordPress version: <code>' . get_bloginfo('version') . '</code><br>';
|
| 1634 |
echo 'UCP Version: <code>' . self::$version . '</code><br>';
|
| 1635 |
+
echo 'PHP Version: <code>' . PHP_VERSION . '</code><br>';
|
| 1636 |
echo 'Site URL: <code>' . get_bloginfo('url') . '</code><br>';
|
| 1637 |
echo 'WordPress URL: <code>' . get_bloginfo('wpurl') . '</code><br>';
|
| 1638 |
echo 'Theme: <code>' . $theme->get('Name') . ' v' . $theme->get('Version') . '</code><br>';
|
| 1655 |
echo '<h3 class="ucp-pro-logo"><a href="' . self::generate_web_link('pro-tab-logo') . '" target="_blank"><img src="' . UCP_PLUGIN_URL . 'images/ucp_pro_logo.png" alt="UnderConstructionPage PRO" title="UnderConstructionPage"></a></h3>';
|
| 1656 |
|
| 1657 |
echo '<div id="ucp-earlybird"><span>Build <b>landing pages, coming soon pages, maintenance & under construction pages</b> faster & easier!</span>';
|
| 1658 |
+
echo '<p class="textcenter"><a target="_blank" href="' . self::generate_web_link('pro-tab-20-discount', '', array('coupon' => 'welcome')) . '" class="button button-primary button-large">Get <b>PRO</b> now with a special <b>20% discount</b>!</a></p>';
|
| 1659 |
echo '</div>';
|
| 1660 |
|
| 1661 |
echo '<h3 class="ucp-small-title">Some of the features available in the PRO version</h3>';
|
| 1835 |
echo '<div id="ucp-deactivate-survey" style="display: none;" title="Please help us make UCP better"><span class="ui-helper-hidden-accessible"><input type="text"/></span>';
|
| 1836 |
|
| 1837 |
echo '<div class="question-wrapper-assistance" data-value="urgent">' .
|
| 1838 |
+
'<div class="question"><b>Something\'s not working? We offer URGENT assistance!</b><br><a href="' . $support_link . '" class="button">Send a priority ticket to our friendly support agents</a><br><small><i>average response time is under 20 minutes</i></small></div>' . '</div>';
|
| 1839 |
|
| 1840 |
echo '<p class="textcenter"><br>We want to improve! Please tell us:<br><b>Why are you deactivating <span class="ucp-logo">UnderConstructionPage</span>?</b></p>';
|
| 1841 |
|
| 1842 |
$questions = array();
|
| 1843 |
$questions[] = '<div class="question-wrapper" data-value="temporary">' .
|
| 1844 |
+
'<div class="question">It\'s a temporary deactivation, I\'m debugging something</div>' .
|
| 1845 |
'</div>';
|
| 1846 |
|
| 1847 |
$questions[] = '<div class="question-wrapper" data-value="not-working">' .
|
| 1848 |
+
'<div class="question">Plugin is not working<div class="details">Please tell us what exactly is not working: <input type="text" class="normal-text ucp-deactivation-details"></div></div>' .
|
| 1849 |
'</div>';
|
| 1850 |
|
| 1851 |
$questions[] = '<div class="question-wrapper" data-value="wrong-plugin">' .
|
| 1852 |
+
'<div class="question">Plugin is not what I thought it is, I need a different plugin</div>' .
|
| 1853 |
'</div>';
|
| 1854 |
|
| 1855 |
$questions[] = '<div class="question-wrapper" data-value="site-live">' .
|
| 1856 |
+
'<div class="question">It served its purpose - site is now live</div>' .
|
| 1857 |
'</div>';
|
| 1858 |
|
| 1859 |
$questions[] = '<div class="question-wrapper" data-value="missing-feature">' .
|
| 1860 |
+
'<div class="question">It doesn\'t have all the features I need<div class="details">Please tell us what features are missing: <input type="text" class="normal-text ucp-deactivation-details"></div></div>' .
|
| 1861 |
'</div>';
|
| 1862 |
|
| 1863 |
shuffle($questions);
|
| 1864 |
$questions[] = '<div class="question-wrapper" data-value="other">' .
|
| 1865 |
+
'<div class="question">Something else<div class="details">Please tell us the reason: <input type="text" class="normal-text ucp-deactivation-details"></div></div>' .
|
| 1866 |
'</div>';
|
| 1867 |
echo implode(' ', $questions);
|
| 1868 |
|
