Under Construction - Version 3.10

Version Description

  • 2018/06/19
  • minor bug fixes
  • removed translation help notice
  • added welcome notice
  • we're at 1,445,311 downloads
Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Under Construction
Version 3.10
Comparing to
See all releases

Code changes from version 3.05 to 3.10

Files changed (3) hide show
  1. css/ucp-admin.css +0 -4
  2. readme.txt +14 -7
  3. under-construction.php +36 -9
css/ucp-admin.css CHANGED
@@ -204,10 +204,6 @@ div.ucp-thumb.active {
204
  border: 2px solid rgba(255, 121, 0, 0.7);
205
  }
206
 
207
- div.ucp-thumb:hover, div.ucp-thumb-special:hover {
208
- border: 2px solid rgba(255, 121, 0, 0.7);
209
- }
210
-
211
  div.ucp-thumb.active span {
212
  font-weight: 500;
213
  }
204
  border: 2px solid rgba(255, 121, 0, 0.7);
205
  }
206
 
 
 
 
 
207
  div.ucp-thumb.active span {
208
  font-weight: 500;
209
  }
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.05
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -13,21 +13,21 @@ The fastest & simplest Under Construction Page, Landing Page, Maintenance Mode &
13
 
14
  == Description ==
15
 
16
- Create an Under Construction Page, Maintenance Mode Page, Coming Soon Page or a Landing Page that takes **less than a minute to install & configure**. This plugin won't waste your time! UCP is simple, fast, efficient & user-friendly with <a href="https://underconstructionpage.com/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=top#designs">great designs</a>.
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, 400,000+ hi-res 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/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=official-site">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/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=website" 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
 
25
  **Options**
26
 
27
- * Under construction mode - off / on
28
  * Automatic End date & time - automatically disable construction mode on a set date
29
  * Google Analytics Tracking ID - enable tracking via Google Analytics
30
- * Theme - a new one is added with each update, <a href="https://underconstructionpage.com/templates/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=available-themes">test all available themes (30+)</a>
31
  * Custom CSS - adjust any part of the page to fit your needs
32
  * Title - page title, for SEO
33
  * Description - page description, for SEO
@@ -55,7 +55,7 @@ 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
- 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**
@@ -105,7 +105,7 @@ Or if needed, upload manually;
105
  14. Windmill theme
106
  15. Sad Site theme
107
  16. Lighthouse
108
- 17. Hot Air Baloon
109
  18. People at Work #2 theme
110
  19. Rocket Launch #2 theme
111
  20. Light Bulb theme
@@ -130,6 +130,13 @@ Or if needed, upload manually;
130
 
131
  == Changelog ==
132
 
 
 
 
 
 
 
 
133
  = 3.05 =
134
  * 2018/05/29
135
  * added support for cache clearing for Swift Performance Lite
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
  Tested up to: 4.9
7
+ Stable tag: 3.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
13
 
14
  == Description ==
15
 
16
+ Create an Under Construction Page, Maintenance Mode Page, Coming Soon Page or a Landing Page that takes **less than a minute to install & configure**. This plugin won't waste your time! UCP is simple, fast, efficient & user-friendly with <a href="https://underconstructionpage.com/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=great-designs#designs">great templates</a> users love.
17
 
18
  [youtube https://www.youtube.com/watch?v=fqqWrQENSDc]
19
 
20
+ > **PRO** version offers more than 50 extra features and options including the drag&drop builder, 400,000+ hi-res 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/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=official-site">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/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=website" 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
 
25
  **Options**
26
 
27
+ * Under construction mode - on / off
28
  * Automatic End date & time - automatically disable construction mode on a set date
29
  * Google Analytics Tracking ID - enable tracking via Google Analytics
30
+ * Theme - a new one is added with each update, <a href="https://underconstructionpage.com/templates/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme&utm_content=available-themes">test all available themes (35+)</a>
31
  * Custom CSS - adjust any part of the page to fit your needs
32
  * Title - page title, for SEO
33
  * Description - page description, for SEO
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. It's compatible with the following caching plugins: W3 Total Cache, WP Super Cache, Endurance Page Cache, SiteGround SuperCacher, WP Fastest Cache and Swift Performance Cache.
59
 
60
 
61
  **What are others saying about the Under Construction Page plugin**
105
  14. Windmill theme
106
  15. Sad Site theme
107
  16. Lighthouse
108
+ 17. Hot Air Balloon
109
  18. People at Work #2 theme
110
  19. Rocket Launch #2 theme
111
  20. Light Bulb theme
130
 
131
  == Changelog ==
132
 
133
+ = 3.10 =
134
+ * 2018/06/19
135
+ * minor bug fixes
136
+ * removed translation help notice
137
+ * added welcome notice
138
+ * we're at 1,445,311 downloads
139
+
140
  = 3.05 =
141
  * 2018/05/29
142
  * added support for cache clearing for Swift Performance Lite
under-construction.php CHANGED
@@ -4,7 +4,7 @@
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
@@ -815,8 +815,8 @@ class UCP {
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';
@@ -837,8 +837,9 @@ class UCP {
837
  $shown = true;
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/');
@@ -851,6 +852,22 @@ class UCP {
851
  echo '</p></div>';
852
  $shown = true;
853
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
854
 
855
  // promo for old users
856
  if (self::is_plugin_page() &&
@@ -894,6 +911,10 @@ class UCP {
894
  $notices['dismiss_olduser'] = true;
895
  }
896
 
 
 
 
 
897
  update_option(UCP_NOTICES_KEY, $notices);
898
 
899
  if (!empty($_GET['redirect'])) {
@@ -1402,7 +1423,7 @@ class UCP {
1402
  echo '<div class="ucp-tab-content">';
1403
  echo '<table class="form-table">';
1404
 
1405
- // todo translate
1406
  echo '<tr valign="top">
1407
  <th scope="row"><label for="title">' . __('Title', 'under-construction-page') . '</label></th>
1408
  <td><input type="text" id="title" class="regular-text" name="' . UCP_OPTIONS_KEY . '[title]" value="' . esc_attr($options['title']) . '" />';
@@ -1413,7 +1434,7 @@ class UCP {
1413
  <li><code>[site-tagline]</code> - blog tagline, as set in <a href="options-general.php">Options - General</a></li>
1414
  <li><code>[site-url]</code> - site address (URL), as set in <a href="options-general.php">Options - General</a></li>
1415
  <li><code>[wp-url]</code> - WordPress address (URL), as set in <a href="options-general.php">Options - General</a></li>
1416
- <li><code>[site-login-url]</code> - URL to site login page</li>
1417
  </ul>';
1418
  echo '</td></tr>';
1419
 
@@ -1486,6 +1507,12 @@ class UCP {
1486
  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>';
1487
  echo '</td></tr>';
1488
 
 
 
 
 
 
 
1489
 
1490
  echo '</table>';
1491
 
@@ -1604,7 +1631,7 @@ class UCP {
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'),
1609
  'dark' => __('Things Went Dark', 'under-construction-page'),
1610
  '_pro_watch-company' => __('The Watch Store', 'under-construction-page'),
@@ -1640,7 +1667,7 @@ class UCP {
1640
  '_pro_fitness-studio' => __('Fitness Studio Landing Page', 'under-construction-page'),
1641
  'stop' => __('Stop', 'under-construction-page'),
1642
  'clock' => __('Clock', 'under-construction-page'),
1643
- '_pro_simple-office-theme' => __('Simple Office', 'under-construction-page'),
1644
  'bulldozer' => __('Bulldozer at Work', 'under-construction-page'),
1645
  'christmas' => __('Christmas Greetings', 'under-construction-page'),
1646
  '_pro_pink-lips' => __('Pink Lips', 'under-construction-page'),
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.10
8
  Author URI: https://www.webfactoryltd.com/
9
  Text Domain: under-construction-page
10
  Domain Path: lang
815
  return;
816
  }
817
 
818
+ // ask for rating; disabled
819
+ // todo: translate strings
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';
837
  $shown = true;
838
  }
839
 
840
+ // todo: ask for translation
841
+ // disabled till further notice
842
+ if (false && self::is_plugin_page() &&
843
  empty($notices['dismiss_translate']) &&
844
  (time() - $meta['first_install']) > 1) {
845
  $translate_url = self::generate_web_link('translate-notification', 'translate-the-plugin/');
852
  echo '</p></div>';
853
  $shown = true;
854
  }
855
+
856
+ // promo for new users
857
+ // todo: translate
858
+ if (self::is_plugin_page() &&
859
+ empty($notices['dismiss_welcome']) &&
860
+ !$shown && $promo == 'welcome') {
861
+ $dismiss_url = add_query_arg(array('action' => 'ucp_dismiss_notice', 'notice' => 'welcome', '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-welcome-text" href="#">special time-sensitive offer</a> available only for another <b class="ucp-countdown">59min</b>! A <b>20% DISCOUNT</b> on our most popular lifetime licenses!<br>No nonsense! Pay once and use the plugin forever. <a class="open-ucp-upsell" data-pro-ad="notification-welcome-text2" href="#">Get</a> more than 50+ extra features, 100+ premium themes and 400,000+ professional images.</p>';
865
+
866
+ echo '<a href="#" style="vertical-align: baseline; margin-top: 15px;" class="button-primary open-ucp-upsell" data-pro-ad="notification-welcome-button">Upgrade to <b>PRO</b> now with a <b>SPECIAL WELCOME DISCOUNT</b></a>';
867
+ echo '&nbsp;&nbsp;&nbsp;&nbsp;<a href="' . esc_url($dismiss_url) . '"><small>' . __('I\'m not interested (remove this notice)', 'under-construction-page') . '</small></a>';
868
+ echo '</p></div>';
869
+ $shown = true;
870
+ }
871
 
872
  // promo for old users
873
  if (self::is_plugin_page() &&
911
  $notices['dismiss_olduser'] = true;
912
  }
913
 
914
+ if ($_GET['notice'] == 'welcome') {
915
+ $notices['dismiss_welcome'] = true;
916
+ }
917
+
918
  update_option(UCP_NOTICES_KEY, $notices);
919
 
920
  if (!empty($_GET['redirect'])) {
1423
  echo '<div class="ucp-tab-content">';
1424
  echo '<table class="form-table">';
1425
 
1426
+ // todo: translate
1427
  echo '<tr valign="top">
1428
  <th scope="row"><label for="title">' . __('Title', 'under-construction-page') . '</label></th>
1429
  <td><input type="text" id="title" class="regular-text" name="' . UCP_OPTIONS_KEY . '[title]" value="' . esc_attr($options['title']) . '" />';
1434
  <li><code>[site-tagline]</code> - blog tagline, as set in <a href="options-general.php">Options - General</a></li>
1435
  <li><code>[site-url]</code> - site address (URL), as set in <a href="options-general.php">Options - General</a></li>
1436
  <li><code>[wp-url]</code> - WordPress address (URL), as set in <a href="options-general.php">Options - General</a></li>
1437
+ <li><code>[site-login-url]</code> - URL of the default site login page</li>
1438
  </ul>';
1439
  echo '</td></tr>';
1440
 
1507
  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>';
1508
  echo '</td></tr>';
1509
 
1510
+ echo '<tr valign="top">
1511
+ <th scope="row"><label for="custom_footer_code">' . __('Custom Footer Code', 'under-construction-page') . '</label></th>
1512
+ <td>';
1513
+ echo '<textarea data-autoresize="1" rows="3" id="custom_footer_code" class="code large-text skip-save disabled open-ucp-upsell" name="" placeholder=""></textarea>';
1514
+ echo '<p class="description">Paste any 3rd party code here such as tracking scripts or tracking pixels. Be sure to include &lt;script&gt; tags as nothing is added automatically.<br>This is NOT a place to add Google Analytics code. Please use the <a href="#ga_tracking_id_toggle" class="change_tab" data-tab="0">GA Tracking setting</a> for that. This is a <a href="#" class="open-ucp-upsell" data-pro-ad="footer_code">PRO feature</a>.</p>';
1515
+ echo '</td></tr>';
1516
 
1517
  echo '</table>';
1518
 
1631
  'mad_designer' => __('Mad Designer', 'under-construction-page'),
1632
  '_pro_relaxing-screensaver' => __('Fireworks Video Background', 'under-construction-page'),
1633
  'plain_text' => __('Plain Text', 'under-construction-page'),
1634
+ '_pro_simple-office-theme' => __('Simple Office', 'under-construction-page'),
1635
  'under_construction' => __('Under Construction', 'under-construction-page'),
1636
  'dark' => __('Things Went Dark', 'under-construction-page'),
1637
  '_pro_watch-company' => __('The Watch Store', 'under-construction-page'),
1667
  '_pro_fitness-studio' => __('Fitness Studio Landing Page', 'under-construction-page'),
1668
  'stop' => __('Stop', 'under-construction-page'),
1669
  'clock' => __('Clock', 'under-construction-page'),
1670
+ '_pro_mountain' => __('Mountain Peak', 'under-construction-page'),
1671
  'bulldozer' => __('Bulldozer at Work', 'under-construction-page'),
1672
  'christmas' => __('Christmas Greetings', 'under-construction-page'),
1673
  '_pro_pink-lips' => __('Pink Lips', 'under-construction-page'),