Version Description
- 2018/05/29
- added support for cache clearing for Swift Performance Lite
- new theme - Dumper Truck
- asking for help with translations, again
Download this release
Release Info
Developer | WebFactory |
Plugin | Under Construction |
Version | 3.05 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.05
- images/thumbnails/dumper_truck.png +0 -0
- readme.txt +17 -10
- themes/dumper_truck/dumper_truck.png +0 -0
- themes/dumper_truck/index.php +56 -0
- themes/dumper_truck/style.css +79 -0
- under-construction.php +30 -21
images/thumbnails/dumper_truck.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: 3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -55,12 +55,12 @@ A simple, no-nonsense plugin for all those situations when you have to hide the
|
|
55 |
* Whitelisted User Roles - user roles who see the site, instead of maintenance page
|
56 |
* Whitelisted Users - users who see the site, instead of maintenance page
|
57 |
|
58 |
-
|
59 |
|
60 |
|
61 |
**What are others saying about the Under Construction Page plugin**
|
62 |
|
63 |
-
* <a href="https://www.webhostingsecretrevealed.net/blog/blogging-tips/how-to-grow-your-blog-before-it-is-born/">WHSR</a> wrote an in-depth guide on how to "Grow Your Blog Before It Is Born" featuring
|
64 |
* John Fraskos from <a href="https://codestag.com/setting-wordpress-theme-easily-create-construction-page/">Codestag</a> says it's "very friendly and easy to use"
|
65 |
* <a href="http://wppluginsify.com/interface-elements/professional-construction-page/">WP Pluginsify</a> wrote a review
|
66 |
* <a href="https://www.wpmayor.com/set-construction-page-wordpress/">WP Major</a> wrote a review too
|
@@ -68,7 +68,7 @@ UCP has a built-in support system. It requires no registration or any kind of me
|
|
68 |
* <a href="https://planetwp.com/underconstruction-page-plugin/">Planet WP</a> gave it 5/5 stars
|
69 |
* <a href="https://firstsiteguide.com/under-construction-page-review/">FirstSiteGuide</a> says: "a perfect choice"
|
70 |
* WPblog wrote a <a href="https://www.wpblog.com/quick-ways-to-put-wordpress-site-under-construction/">review</a> as well
|
71 |
-
* <a href="https://wptopdog.com/under-construction-plugin-review/">WP TopDog</a> had Daniel explain how to use
|
72 |
|
73 |
== Installation ==
|
74 |
|
@@ -120,15 +120,22 @@ Or if needed, upload manually;
|
|
120 |
29. Christmas theme
|
121 |
30. Hard Worker theme
|
122 |
31. Temporarily Closed theme
|
123 |
-
32.
|
124 |
-
33.
|
125 |
-
34.
|
126 |
-
35.
|
127 |
-
36.
|
|
|
128 |
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
= 3.0 =
|
133 |
* 2018/04/23
|
134 |
* added VK icon - a Russian social network
|
@@ -379,7 +386,7 @@ Or if needed, upload manually;
|
|
379 |
|
380 |
= 1.15 =
|
381 |
* 2016/09/05
|
382 |
-
*
|
383 |
* fixed major bugs
|
384 |
|
385 |
= 1.10 =
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 3.05
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
55 |
* Whitelisted User Roles - user roles who see the site, instead of maintenance page
|
56 |
* Whitelisted Users - users who see the site, instead of maintenance page
|
57 |
|
58 |
+
Under Construction Page has a built-in support system. It requires no registration or any kind of messing about; send a message to our support agents directly from within the plugin.
|
59 |
|
60 |
|
61 |
**What are others saying about the Under Construction Page plugin**
|
62 |
|
63 |
+
* <a href="https://www.webhostingsecretrevealed.net/blog/blogging-tips/how-to-grow-your-blog-before-it-is-born/">WHSR</a> wrote an in-depth guide on how to "Grow Your Blog Before It Is Born" featuring Under Construction Page
|
64 |
* John Fraskos from <a href="https://codestag.com/setting-wordpress-theme-easily-create-construction-page/">Codestag</a> says it's "very friendly and easy to use"
|
65 |
* <a href="http://wppluginsify.com/interface-elements/professional-construction-page/">WP Pluginsify</a> wrote a review
|
66 |
* <a href="https://www.wpmayor.com/set-construction-page-wordpress/">WP Major</a> wrote a review too
|
68 |
* <a href="https://planetwp.com/underconstruction-page-plugin/">Planet WP</a> gave it 5/5 stars
|
69 |
* <a href="https://firstsiteguide.com/under-construction-page-review/">FirstSiteGuide</a> says: "a perfect choice"
|
70 |
* WPblog wrote a <a href="https://www.wpblog.com/quick-ways-to-put-wordpress-site-under-construction/">review</a> as well
|
71 |
+
* <a href="https://wptopdog.com/under-construction-plugin-review/">WP TopDog</a> had Daniel explain how to use the Under Construction Page
|
72 |
|
73 |
== Installation ==
|
74 |
|
120 |
29. Christmas theme
|
121 |
30. Hard Worker theme
|
122 |
31. Temporarily Closed theme
|
123 |
+
32. Dumper Truck theme
|
124 |
+
33. Main settings
|
125 |
+
34. Design settings
|
126 |
+
35. Content settings
|
127 |
+
36. Access settings
|
128 |
+
37. Support
|
129 |
|
130 |
|
131 |
== Changelog ==
|
132 |
|
133 |
+
= 3.05 =
|
134 |
+
* 2018/05/29
|
135 |
+
* added support for cache clearing for Swift Performance Lite
|
136 |
+
* new theme - Dumper Truck
|
137 |
+
* asking for help with translations, again
|
138 |
+
|
139 |
= 3.0 =
|
140 |
* 2018/04/23
|
141 |
* added VK icon - a Russian social network
|
386 |
|
387 |
= 1.15 =
|
388 |
* 2016/09/05
|
389 |
+
* WebFactory took over development @ 10k installs & 70k downloads
|
390 |
* fixed major bugs
|
391 |
|
392 |
= 1.10 =
|
themes/dumper_truck/dumper_truck.png
ADDED
Binary file
|
themes/dumper_truck/index.php
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* UnderConstructionPage
|
4 |
+
* Dumper Truck theme
|
5 |
+
* (c) WebFactory 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 href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,900" rel="stylesheet">
|
24 |
+
[head]
|
25 |
+
</head>
|
26 |
+
|
27 |
+
<body>
|
28 |
+
<div class="container">
|
29 |
+
<div class="row">
|
30 |
+
<div class="col-xs-12 col-md-12 col-lg-12">
|
31 |
+
<h1>[heading1]</h1>
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
</div>
|
35 |
+
|
36 |
+
<div id="hero-image">
|
37 |
+
<img src="[theme-url]dumper_truck.png" alt="Dumper Truck at Work" title="Dumper Truck at Work">
|
38 |
+
</div>
|
39 |
+
<div class="container">
|
40 |
+
|
41 |
+
<div class="row">
|
42 |
+
<div class="col-xs-12 col-md-8 col-md-offset-2 col-lg-offset-2 col-lg-8">
|
43 |
+
<p class="content">[content]</p>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
|
47 |
+
<div class="row" id="social">
|
48 |
+
<div class="col-xs-12 col-md-12 col-lg-12">
|
49 |
+
[social-icons]
|
50 |
+
</div>
|
51 |
+
</div>
|
52 |
+
|
53 |
+
</div>
|
54 |
+
[footer]
|
55 |
+
</body>
|
56 |
+
</html>
|
themes/dumper_truck/style.css
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* UnderConstructionPage
|
3 |
+
* Dumper Truck theme CSS
|
4 |
+
* (c) WebFactory 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: #414042;
|
19 |
+
background-color: hsl(222, 40%, 64%);
|
20 |
+
background: linear-gradient(to bottom, hsla(222, 40%, 64%, 1) 0%, hsla(222, 60%, 64%, 1) 100%);
|
21 |
+
padding: 0;
|
22 |
+
margin: 0;
|
23 |
+
background-repeat: repeat;
|
24 |
+
background-attachment: fixed;
|
25 |
+
}
|
26 |
+
|
27 |
+
#hero-image {
|
28 |
+
text-align: center;
|
29 |
+
margin: 20px auto 40px auto;
|
30 |
+
border-bottom: 2px solid rgba(0, 0, 0, 0.9);
|
31 |
+
}
|
32 |
+
|
33 |
+
#hero-image img {
|
34 |
+
max-width: 80%;
|
35 |
+
max-height: 50vh;
|
36 |
+
margin-bottom: -2px;
|
37 |
+
}
|
38 |
+
|
39 |
+
h1 {
|
40 |
+
font-size: 34px;
|
41 |
+
color: #414042;
|
42 |
+
font-family: 'Roboto Mono', monospace;
|
43 |
+
font-weight: 900;
|
44 |
+
margin: 60px 0 30px 0;
|
45 |
+
text-align: center;
|
46 |
+
}
|
47 |
+
|
48 |
+
.content {
|
49 |
+
text-align: center;
|
50 |
+
font-family: "Helvetica", "Arial", sans-serif;
|
51 |
+
}
|
52 |
+
|
53 |
+
#social {
|
54 |
+
text-align: center;
|
55 |
+
margin-top: 30px;
|
56 |
+
}
|
57 |
+
|
58 |
+
#social a i {
|
59 |
+
color: #414042;
|
60 |
+
margin: 10px;
|
61 |
+
box-sizing: content-box;
|
62 |
+
}
|
63 |
+
|
64 |
+
#social a:hover i {
|
65 |
+
color: #ffba33;
|
66 |
+
}
|
67 |
+
|
68 |
+
@media(max-width:767px){
|
69 |
+
#hero-image {
|
70 |
+
border-bottom: 1px solid rgba(0, 0, 0, 0.7);
|
71 |
+
}
|
72 |
+
h1 {
|
73 |
+
font-size: 30px;
|
74 |
+
margin: 10px 0 30px 0;
|
75 |
+
}
|
76 |
+
#hero-image img {
|
77 |
+
max-width: 95%;
|
78 |
+
}
|
79 |
+
}
|
under-construction.php
CHANGED
@@ -3,9 +3,9 @@
|
|
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:
|
7 |
-
Version: 3.
|
8 |
-
Author URI:
|
9 |
Text Domain: under-construction-page
|
10 |
Domain Path: lang
|
11 |
|
@@ -303,7 +303,7 @@ class UCP {
|
|
303 |
}
|
304 |
|
305 |
// survey is shown min 5min after install
|
306 |
-
//
|
307 |
if (0 && empty($surveys['usage']) && time() - $meta['first_install'] > 300) {
|
308 |
$open_survey = true;
|
309 |
} else {
|
@@ -606,7 +606,7 @@ class UCP {
|
|
606 |
$out .= '<a title="Skype" href="skype:' . $options['social_skype'] . '?chat"><i class="fa fa-skype fa-3x"></i></a>';
|
607 |
}
|
608 |
if (!empty($options['social_whatsapp'])) {
|
609 |
-
$out .= '<a title="WhatsApp" href="whatsapp
|
610 |
}
|
611 |
if (!empty($options['social_telegram'])) {
|
612 |
$out .= '<a title="Telegram" href="' . $options['social_telegram'] . '"><i class="fa fa-telegram fa-3x"></i></a>';
|
@@ -815,9 +815,8 @@ class UCP {
|
|
815 |
return;
|
816 |
}
|
817 |
|
818 |
-
// todo translate
|
819 |
-
//
|
820 |
-
// disabled
|
821 |
if (false && empty($notices['dismiss_rate']) &&
|
822 |
(time() - $meta['first_install']) > (DAY_IN_SECONDS * 1.0)) {
|
823 |
$rate_url = 'https://wordpress.org/support/plugin/under-construction-page/reviews/?filter=5&rate=5#new-post';
|
@@ -839,10 +838,9 @@ class UCP {
|
|
839 |
}
|
840 |
|
841 |
// ask for translation
|
842 |
-
|
843 |
-
if (false && self::is_plugin_page() &&
|
844 |
empty($notices['dismiss_translate']) &&
|
845 |
-
(time() - $meta['first_install']) >
|
846 |
$translate_url = self::generate_web_link('translate-notification', 'translate-the-plugin/');
|
847 |
$dismiss_url = add_query_arg(array('action' => 'ucp_dismiss_notice', 'notice' => 'translate', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
|
848 |
|
@@ -861,7 +859,7 @@ class UCP {
|
|
861 |
$dismiss_url = add_query_arg(array('action' => 'ucp_dismiss_notice', 'notice' => 'olduser', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
|
862 |
|
863 |
echo '<div id="ucp_rate_notice" class="notice-info notice"><p>Hi' . $name . ',<br>';
|
864 |
-
echo 'We have a <a class="open-ucp-upsell" data-pro-ad="notification-olduser-text" href="#">special offer</a> only for <b>users like you</b> who\'ve been using the UnderConstructionPage for a
|
865 |
|
866 |
echo '<a href="#" style="vertical-align: baseline; margin-top: 15px;" class="button-primary open-ucp-upsell" data-pro-ad="notification-olduser-button">Upgrade to <b>PRO</b> now with a <b>SPECIAL DISCOUNT</b></a>';
|
867 |
echo ' <a href="' . esc_url($dismiss_url) . '"><small>' . __('I\'m not interested (remove this notice)', 'under-construction-page') . '</small></a>';
|
@@ -1033,10 +1031,6 @@ class UCP {
|
|
1033 |
array_unshift($links, $pro_link);
|
1034 |
array_unshift($links, $settings_link);
|
1035 |
|
1036 |
-
if (!empty($links['deactivate'])) {
|
1037 |
-
$links['deactivate'] = str_replace('href=',' data-under-construction-page="true" href=', $links['deactivate']);
|
1038 |
-
}
|
1039 |
-
|
1040 |
return $links;
|
1041 |
} // plugin_action_links
|
1042 |
|
@@ -1240,6 +1234,9 @@ class UCP {
|
|
1240 |
if (isset($GLOBALS['wp_fastest_cache']) && method_exists($GLOBALS['wp_fastest_cache'], 'deleteCache')) {
|
1241 |
$GLOBALS['wp_fastest_cache']->deleteCache(true);
|
1242 |
}
|
|
|
|
|
|
|
1243 |
}
|
1244 |
|
1245 |
return array_merge($old_options, $options);
|
@@ -1459,6 +1456,16 @@ class UCP {
|
|
1459 |
echo '<p class="description">Enable if you have a 3rd party shortcode you\'d like to use on the under construction page. This is a <a href="#" class="open-ucp-upsell" data-pro-ad="external_shortcodes">PRO feature</a>.</p>';
|
1460 |
echo '</td></tr>';
|
1461 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1462 |
echo '<tr valign="top" id="login_button_wrap">
|
1463 |
<th scope="row"><label for="login_button">' . __('Login Button', 'under-construction-page') . '</label></th>
|
1464 |
<td>';
|
@@ -1567,8 +1574,8 @@ class UCP {
|
|
1567 |
|
1568 |
echo '<tr valign="top" class="hidden">
|
1569 |
<th scope="row"><label for="social_whatsapp">' . __('WhatsApp Phone Number', 'under-construction-page') . '</label></th>
|
1570 |
-
<td><input id="social_whatsapp" type="text" class="regular-text code" name="' . UCP_OPTIONS_KEY . '[social_whatsapp]" value="' . esc_attr($options['social_whatsapp']) . '" placeholder="' . __('
|
1571 |
-
echo '<p class="description">' . __('WhatsApp phone number in
|
1572 |
echo '</td></tr>';
|
1573 |
|
1574 |
echo '<tr valign="top" class="hidden">
|
@@ -1593,8 +1600,9 @@ class UCP {
|
|
1593 |
|
1594 |
|
1595 |
static function get_themes() {
|
1596 |
-
$themes = array('
|
1597 |
'mad_designer' => __('Mad Designer', 'under-construction-page'),
|
|
|
1598 |
'plain_text' => __('Plain Text', 'under-construction-page'),
|
1599 |
'_pro_mountain' => __('Mountain Peak', 'under-construction-page'),
|
1600 |
'under_construction' => __('Under Construction', 'under-construction-page'),
|
@@ -1638,7 +1646,8 @@ class UCP {
|
|
1638 |
'_pro_pink-lips' => __('Pink Lips', 'under-construction-page'),
|
1639 |
'hard_worker' => __('Hard Worker', 'under-construction-page'),
|
1640 |
'closed' => __('Temporarily Closed', 'under-construction-page'),
|
1641 |
-
'_pro_animated-green' => __('Simple Green Animated', 'under-construction-page')
|
|
|
1642 |
|
1643 |
$themes = apply_filters('ucp_themes', $themes);
|
1644 |
|
@@ -2130,7 +2139,7 @@ class UCP {
|
|
2130 |
return 'welcome';
|
2131 |
}
|
2132 |
|
2133 |
-
if ((time() - $meta['first_install']) > DAY_IN_SECONDS *
|
2134 |
return 'olduser';
|
2135 |
}
|
2136 |
|
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: WebFactory Ltd
|
7 |
+
Version: 3.05
|
8 |
+
Author URI: https://www.webfactoryltd.com/
|
9 |
Text Domain: under-construction-page
|
10 |
Domain Path: lang
|
11 |
|
303 |
}
|
304 |
|
305 |
// survey is shown min 5min after install
|
306 |
+
// DISABLED
|
307 |
if (0 && empty($surveys['usage']) && time() - $meta['first_install'] > 300) {
|
308 |
$open_survey = true;
|
309 |
} else {
|
606 |
$out .= '<a title="Skype" href="skype:' . $options['social_skype'] . '?chat"><i class="fa fa-skype fa-3x"></i></a>';
|
607 |
}
|
608 |
if (!empty($options['social_whatsapp'])) {
|
609 |
+
$out .= '<a title="WhatsApp" href="https://api.whatsapp.com/send?phone=' . str_replace('+', '', $options['social_whatsapp']) . '"><i class="fa fa-whatsapp fa-3x"></i></a>';
|
610 |
}
|
611 |
if (!empty($options['social_telegram'])) {
|
612 |
$out .= '<a title="Telegram" href="' . $options['social_telegram'] . '"><i class="fa fa-telegram fa-3x"></i></a>';
|
815 |
return;
|
816 |
}
|
817 |
|
818 |
+
// ask for rating; todo translate strings
|
819 |
+
// DISABLED
|
|
|
820 |
if (false && empty($notices['dismiss_rate']) &&
|
821 |
(time() - $meta['first_install']) > (DAY_IN_SECONDS * 1.0)) {
|
822 |
$rate_url = 'https://wordpress.org/support/plugin/under-construction-page/reviews/?filter=5&rate=5#new-post';
|
838 |
}
|
839 |
|
840 |
// ask for translation
|
841 |
+
if (self::is_plugin_page() &&
|
|
|
842 |
empty($notices['dismiss_translate']) &&
|
843 |
+
(time() - $meta['first_install']) > 1) {
|
844 |
$translate_url = self::generate_web_link('translate-notification', 'translate-the-plugin/');
|
845 |
$dismiss_url = add_query_arg(array('action' => 'ucp_dismiss_notice', 'notice' => 'translate', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
|
846 |
|
859 |
$dismiss_url = add_query_arg(array('action' => 'ucp_dismiss_notice', 'notice' => 'olduser', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
|
860 |
|
861 |
echo '<div id="ucp_rate_notice" class="notice-info notice"><p>Hi' . $name . ',<br>';
|
862 |
+
echo 'We have a <a class="open-ucp-upsell" data-pro-ad="notification-olduser-text" href="#">special offer</a> only for <b>users like you</b> who\'ve been using the UnderConstructionPage for a longer period of time: a <b>special DISCOUNT</b> on our most popular lifetime licenses!<br>No nonsense! Pay once and use the plugin forever.<br><a class="open-ucp-upsell" data-pro-ad="notification-olduser-text" href="#">Upgrade now</a> to <b>PRO</b> & get more than 50+ extra features, 100+ premium themes and 400,000+ images.</p>';
|
863 |
|
864 |
echo '<a href="#" style="vertical-align: baseline; margin-top: 15px;" class="button-primary open-ucp-upsell" data-pro-ad="notification-olduser-button">Upgrade to <b>PRO</b> now with a <b>SPECIAL DISCOUNT</b></a>';
|
865 |
echo ' <a href="' . esc_url($dismiss_url) . '"><small>' . __('I\'m not interested (remove this notice)', 'under-construction-page') . '</small></a>';
|
1031 |
array_unshift($links, $pro_link);
|
1032 |
array_unshift($links, $settings_link);
|
1033 |
|
|
|
|
|
|
|
|
|
1034 |
return $links;
|
1035 |
} // plugin_action_links
|
1036 |
|
1234 |
if (isset($GLOBALS['wp_fastest_cache']) && method_exists($GLOBALS['wp_fastest_cache'], 'deleteCache')) {
|
1235 |
$GLOBALS['wp_fastest_cache']->deleteCache(true);
|
1236 |
}
|
1237 |
+
if (is_callable(array('Swift_Performance_Cache', 'clear_all_cache'))) {
|
1238 |
+
Swift_Performance_Cache::clear_all_cache();
|
1239 |
+
}
|
1240 |
}
|
1241 |
|
1242 |
return array_merge($old_options, $options);
|
1456 |
echo '<p class="description">Enable if you have a 3rd party shortcode you\'d like to use on the under construction page. This is a <a href="#" class="open-ucp-upsell" data-pro-ad="external_shortcodes">PRO feature</a>.</p>';
|
1457 |
echo '</td></tr>';
|
1458 |
|
1459 |
+
echo '<tr valign="top">
|
1460 |
+
<th scope="row"><label for="mailchimp">' . __('Collect Emails via MailChimp', 'under-construction-page') . '</label></th>
|
1461 |
+
<td>';
|
1462 |
+
echo '<div class="toggle-wrapper">
|
1463 |
+
<input type="checkbox" id="mailchimp" type="checkbox" value="1" class="skip-save open-ucp-upsell">
|
1464 |
+
<label for="mailchimp" class="toggle"><span class="toggle_handler"></span></label>
|
1465 |
+
</div>';
|
1466 |
+
echo '<p class="description">Enable if you want to collect user emails on the under construction page by using MailChimp. This is a <a href="#" class="open-ucp-upsell" data-pro-ad="mailchimp">PRO feature</a>.</p>';
|
1467 |
+
echo '</td></tr>';
|
1468 |
+
|
1469 |
echo '<tr valign="top" id="login_button_wrap">
|
1470 |
<th scope="row"><label for="login_button">' . __('Login Button', 'under-construction-page') . '</label></th>
|
1471 |
<td>';
|
1574 |
|
1575 |
echo '<tr valign="top" class="hidden">
|
1576 |
<th scope="row"><label for="social_whatsapp">' . __('WhatsApp Phone Number', 'under-construction-page') . '</label></th>
|
1577 |
+
<td><input id="social_whatsapp" type="text" class="regular-text code" name="' . UCP_OPTIONS_KEY . '[social_whatsapp]" value="' . esc_attr($options['social_whatsapp']) . '" placeholder="' . __('123-456-789', 'under-construction-page') . '">';
|
1578 |
+
echo '<p class="description">' . __('WhatsApp phone number in international format without + or 00 prefix.', 'under-construction-page') . '</p>';
|
1579 |
echo '</td></tr>';
|
1580 |
|
1581 |
echo '<tr valign="top" class="hidden">
|
1600 |
|
1601 |
|
1602 |
static function get_themes() {
|
1603 |
+
$themes = array('_pro_custom' => __('Build Your Own Custom Theme', 'under-construction-page'),
|
1604 |
'mad_designer' => __('Mad Designer', 'under-construction-page'),
|
1605 |
+
'_pro_relaxing-screensaver' => __('Fireworks Video Background', 'under-construction-page'),
|
1606 |
'plain_text' => __('Plain Text', 'under-construction-page'),
|
1607 |
'_pro_mountain' => __('Mountain Peak', 'under-construction-page'),
|
1608 |
'under_construction' => __('Under Construction', 'under-construction-page'),
|
1646 |
'_pro_pink-lips' => __('Pink Lips', 'under-construction-page'),
|
1647 |
'hard_worker' => __('Hard Worker', 'under-construction-page'),
|
1648 |
'closed' => __('Temporarily Closed', 'under-construction-page'),
|
1649 |
+
'_pro_animated-green' => __('Simple Green Animated', 'under-construction-page'),
|
1650 |
+
'dumper_truck' => __('Dumper Truck', 'under-construction-page'));
|
1651 |
|
1652 |
$themes = apply_filters('ucp_themes', $themes);
|
1653 |
|
2139 |
return 'welcome';
|
2140 |
}
|
2141 |
|
2142 |
+
if ((time() - $meta['first_install']) > DAY_IN_SECONDS * 35) {
|
2143 |
return 'olduser';
|
2144 |
}
|
2145 |
|