Under Construction - Version 1.75

Version Description

  • 2017/03/02
  • new theme - Sad Site
  • removed survey
  • added new social icon: Tumblr
Download this release

Release Info

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

Code changes from version 1.70 to 1.75

css/ucp-admin.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Main backend CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
  @import url('//fonts.googleapis.com/css?family=Roboto:900');
1
  /*
2
  * UnderConstructionPage
3
  * Main backend CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
  @import url('//fonts.googleapis.com/css?family=Roboto:900');
images/sad_site.png ADDED
Binary file
js/ucp-admin-plugins.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Backend plugins enhancement
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Backend plugins enhancement
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
js/ucp-admin-pointers.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Backend GUI pointers
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Backend GUI pointers
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
js/ucp-admin.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Main backend JS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Main backend JS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
js/ucp-jquery-plugins.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * jQuery plugins
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
  /**
1
  /*
2
  * UnderConstructionPage
3
  * jQuery plugins
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
  /**
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, rtl
4
  Requires at least: 4.0
5
  Tested up to: 4.7
6
- Stable tag: 1.70
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -43,6 +43,7 @@ A simple, no-nonsense plugin for all those situations when you have to hide the
43
  * Phone
44
  * Skype
45
  * WhatsApp
 
46
  * Whitelisted User Roles - user roles who see the site, instead of maintenance page
47
  * Whitelisted Users - users who see the site, instead of maintenance page
48
 
@@ -79,14 +80,22 @@ Or if needed, upload manually;
79
  11. Safe theme
80
  12. People at Work theme
81
  13. Windmill theme
82
- 14. Main settings
83
- 15. Design settings
84
- 16. Content settings
85
- 17. Access settings
 
 
86
 
87
 
88
  == Changelog ==
89
 
 
 
 
 
 
 
90
  = 1.70 =
91
  * 2017/02/22
92
  * new theme - Windmill
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, rtl
4
  Requires at least: 4.0
5
  Tested up to: 4.7
6
+ Stable tag: 1.75
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
43
  * Phone
44
  * Skype
45
  * WhatsApp
46
+ * Tumblr
47
  * Whitelisted User Roles - user roles who see the site, instead of maintenance page
48
  * Whitelisted Users - users who see the site, instead of maintenance page
49
 
80
  11. Safe theme
81
  12. People at Work theme
82
  13. Windmill theme
83
+ 14. Sad Site theme
84
+ 15. Main settings
85
+ 16. Design settings
86
+ 17. Content settings
87
+ 18. Access settings
88
+ 19. Support
89
 
90
 
91
  == Changelog ==
92
 
93
+ = 1.75 =
94
+ * 2017/03/02
95
+ * new theme - Sad Site
96
+ * removed survey
97
+ * added new social icon: Tumblr
98
+
99
  = 1.70 =
100
  * 2017/02/22
101
  * new theme - Windmill
themes/css/common.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Common frontend CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Common frontend CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
themes/cyber_chick/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Chyber Chick theme
5
- * (c) Web factory Ltd, 2015 - 2016
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Chyber Chick theme
5
+ * (c) Web factory Ltd, 2015 - 2017
6
  */
7
 
8
 
themes/cyber_chick/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Mad Designer theme CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Mad Designer theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
themes/cyber_chick_dark/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Cyber Chick Dark theme
5
- * (c) Web factory Ltd, 2015 - 2016
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Cyber Chick Dark theme
5
+ * (c) Web factory Ltd, 2015 - 2017
6
  */
7
 
8
 
themes/cyber_chick_dark/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Cyber Chick Dark theme CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Cyber Chick Dark theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
themes/dark/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Things Went Dark theme
5
- * (c) Web factory Ltd, 2015 - 2016
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Things Went Dark theme
5
+ * (c) Web factory Ltd, 2015 - 2017
6
  */
7
 
8
 
themes/dark/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Things Went Dark theme CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Things Went Dark theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
themes/forklift/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Forklift theme
5
- * (c) Web factory Ltd, 2015 - 2016
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Forklift theme
5
+ * (c) Web factory Ltd, 2015 - 2017
6
  */
7
 
8
 
themes/forklift/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Forklift theme CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Forklift theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
themes/loader/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Loader theme
5
- * (c) Web factory Ltd, 2015 - 2016
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Loader theme
5
+ * (c) Web factory Ltd, 2015 - 2017
6
  */
7
 
8
 
themes/loader/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Loader theme CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Loader theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
themes/mad_designer/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Mad Designer theme
5
- * (c) Web factory Ltd, 2015 - 2016
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Mad Designer theme
5
+ * (c) Web factory Ltd, 2015 - 2017
6
  */
7
 
8
 
themes/mad_designer/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Mad Designer theme CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Mad Designer theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
themes/people/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * People at Work theme
5
- * (c) Web factory Ltd, 2015 - 2016
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * People at Work theme
5
+ * (c) Web factory Ltd, 2015 - 2017
6
  */
7
 
8
 
themes/people/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * People at Work theme CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * People at Work theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
themes/plain_text/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Plain Text theme
5
- * (c) Web factory Ltd, 2015 - 2016
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Plain Text theme
5
+ * (c) Web factory Ltd, 2015 - 2017
6
  */
7
 
8
 
themes/plain_text/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Plain Text theme CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Plain Text theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
themes/rocket/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Rocket theme
5
- * (c) Web factory Ltd, 2015 - 2016
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Rocket theme
5
+ * (c) Web factory Ltd, 2015 - 2017
6
  */
7
 
8
 
themes/rocket/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Rocket theme CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Rocket theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
themes/sad_site/index.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * UnderConstructionPage
4
+ * Sad Site theme
5
+ * (c) Web factory Ltd, 2015 - 2017
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="[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">
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
+
32
+ <div class="container">
33
+
34
+ <div class="row" id="header_image">
35
+ <div class="col-xs-12 col-md-8 col-md-offset-2 col-lg-offset-2 col-lg-8">
36
+ <img src="[theme-url]sad_site.jpg" alt="Sad Site is under construction :(" title="Sad Site is under construction :(">
37
+ </div>
38
+ </div>
39
+
40
+ <div class="row">
41
+ <div class="col-xs-12 col-md-8 col-md-offset-2 col-lg-offset-2 col-lg-8">
42
+ <h1>[heading1]</h1>
43
+ </div>
44
+ </div>
45
+
46
+ <div class="row">
47
+ <div class="col-xs-12 col-md-8 col-md-offset-2 col-lg-offset-2 col-lg-8">
48
+ <p class="content">[content]</p>
49
+ </div>
50
+ </div>
51
+
52
+ <div class="row" id="social">
53
+ <div class="col-xs-12 col-md-8 col-md-offset-2 col-lg-offset-2 col-lg-8">
54
+ [social-icons]
55
+ </div>
56
+ </div>
57
+
58
+ </div>
59
+ [footer]
60
+ </body>
61
+ </html>
themes/sad_site/sad_site.jpg ADDED
Binary file
themes/sad_site/style.css ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * UnderConstructionPage
3
+ * Sad Site theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
+ */
6
+
7
+
8
+ body {
9
+ font-weight: 400;
10
+ font-size: 1.25rem;
11
+ line-height: 1.65em;
12
+ color: #bcbec0;
13
+ background: #f1f2f2;
14
+ text-rendering: optimizeLegibility;
15
+ }
16
+
17
+ #header_image {
18
+ margin: 25px 0;
19
+ text-align: center;
20
+ }
21
+
22
+ #header_image img {
23
+ max-width: 100%;
24
+ }
25
+
26
+ h1 {
27
+ font-size: 4.5rem;
28
+ color: #23272a;
29
+ font-family: "Montserrat", "Helvetica-Neue", "Helvetica", "Arial", "san-serif";
30
+ font-weight: 700;
31
+ letter-spacing: 0;
32
+ text-transform: none;
33
+ padding: 0;
34
+ margin: 0 0 1.5rem 0;
35
+ text-align: center;
36
+ }
37
+
38
+ .content {
39
+ text-align: center;
40
+ font-size: 1.875rem;
41
+ color: #949697;
42
+ letter-spacing: 2px;
43
+ margin-top: 20px;
44
+ font-family: "Montserrat", "Helvetica-Neue", "Helvetica", "Arial", "sans-serif";
45
+ }
46
+
47
+ #social {
48
+ text-align: center;
49
+ margin-top: 3rem;
50
+ }
51
+
52
+ #social a i {
53
+ color: #949697;
54
+ margin: 10px;
55
+ box-sizing: content-box;
56
+ }
57
+
58
+ #social a:hover i {
59
+ color: #47d2e9;
60
+ }
61
+
62
+ @media(max-width:767px){
63
+ h1 {
64
+ font-size: 4rem;
65
+ margin: 0 0 1.5rem 0;
66
+ }
67
+ }
themes/safe/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Safe theme
5
- * (c) Web factory Ltd, 2015 - 2016
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Safe theme
5
+ * (c) Web factory Ltd, 2015 - 2017
6
  */
7
 
8
 
themes/safe/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Safe theme CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Safe theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
themes/under_construction/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Under Construction theme
5
- * (c) Web factory Ltd, 2015 - 2016
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Under Construction theme
5
+ * (c) Web factory Ltd, 2015 - 2017
6
  */
7
 
8
 
themes/under_construction/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Under Construction theme CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Under Construction theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
themes/under_construction_text/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Under Construction Text theme
5
- * (c) Web factory Ltd, 2015 - 2016
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Under Construction Text theme
5
+ * (c) Web factory Ltd, 2015 - 2017
6
  */
7
 
8
 
themes/under_construction_text/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Under Construction Text theme CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Under Construction Text theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
themes/windmill/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Windmill theme
5
- * (c) Web factory Ltd, 2015 - 2016
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Windmill theme
5
+ * (c) Web factory Ltd, 2015 - 2017
6
  */
7
 
8
 
themes/windmill/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Windmill theme CSS
4
- * (c) Web factory Ltd, 2015 - 2016
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Windmill theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
5
  */
6
 
7
 
under-construction.php CHANGED
@@ -4,12 +4,12 @@
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.70
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: under-construction-page
10
  Domain Path: lang
11
 
12
- Copyright 2015 - 2016 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
@@ -248,7 +248,8 @@ class UCP {
248
  $meta = self::get_meta();
249
 
250
  // features survey is shown min 5min after install
251
- if (empty($surveys['features']) && current_time('timestamp') - $meta['first_install'] > 300) {
 
252
  $open_features_survey = true;
253
  } else {
254
  $open_features_survey = false;
@@ -426,6 +427,9 @@ class UCP {
426
  if (!empty($options['social_instagram'])) {
427
  $out .= '<a title="Instagram" href="' . $options['social_instagram'] . '" target="_blank"><i class="fa fa-instagram fa-3x"></i></a>';
428
  }
 
 
 
429
  if (!empty($options['social_skype'])) {
430
  $out .= '<a title="Skype" href="skype:' . $options['social_skype'] . '?chat"><i class="fa fa-skype fa-3x"></i></a>';
431
  }
@@ -534,6 +538,14 @@ class UCP {
534
  $options = self::get_options();
535
  $current_user = wp_get_current_user();
536
 
 
 
 
 
 
 
 
 
537
  // just check if it's generally enabled
538
  if ($settings_only) {
539
  if ($options['status']) {
@@ -586,8 +598,8 @@ class UCP {
586
 
587
  echo '<div id="ucp_rate_notice" class="notice-info notice is-dismissible"><p>Hi! We saw you\'ve been using <b class="ucp-logo" style="font-weight: bold;">UnderConstructionPage</b> plugin for a few days and wanted to ask for your help to <b>make the plugin better</b>.<br>We just need a minute of your time to rate the plugin. Thank you!';
588
 
589
- echo '<br><a target="_blank" href="' . esc_url($rate_url) . '" style="vertical-align: baseline; margin-top: 15px;" class="button-primary">Help us out &amp; rate the plugin</a>';
590
- echo '&nbsp;&nbsp;<a href="' . esc_url($dismiss_url) . '">I\'ve already rated the plugin</a>';
591
  echo '</p></div>';
592
  }
593
  } // notices
@@ -705,6 +717,7 @@ class UCP {
705
  'social_dribbble' => '',
706
  'social_behance' => '',
707
  'social_instagram' => '',
 
708
  'social_email' => '',
709
  'social_phone' => '',
710
  'social_skype' => '',
@@ -739,6 +752,7 @@ class UCP {
739
  case 'social_dribbble':
740
  case 'social_behance':
741
  case 'social_instagram':
 
742
  case 'social_email':
743
  case 'social_phone':
744
  case 'social_skype':
@@ -1003,6 +1017,12 @@ class UCP {
1003
  echo '<p class="description">Complete URL, with http prefix, to Instagram profile.</p>';
1004
  echo '</td></tr>';
1005
 
 
 
 
 
 
 
1006
  echo '<tr valign="top">
1007
  <th scope="row"><label for="social_skype">Skype Username</label></th>
1008
  <td><input id="social_skype" type="text" class="regular-text code" name="' . UCP_OPTIONS_KEY . '[social_skype]" value="' . esc_attr($options['social_skype']) . '" placeholder="Skype username / account name">';
@@ -1037,7 +1057,7 @@ class UCP {
1037
 
1038
  $img_path = UCP_PLUGIN_URL . 'images/';
1039
 
1040
- $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', 'cyber_chick_dark' => 'Cyber Chick Dark', 'safe' => 'Safe', 'people' => 'People at Work', 'windmill' => 'Windmill');
1041
 
1042
  echo '<table class="form-table">';
1043
  echo '<tr valign="top">
@@ -1143,7 +1163,14 @@ class UCP {
1143
 
1144
  $options = self::get_options();
1145
  $default_options = self::default_options();
 
1146
 
 
 
 
 
 
 
1147
  echo '<div class="wrap">
1148
  <h1 class="ucp-logo"><img src="' . UCP_PLUGIN_URL . '/images/ucp_logo.png" alt="UnderConstructionPage" title="UnderConstructionPage">UnderConstructionPage</h1>';
1149
 
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.75
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: under-construction-page
10
  Domain Path: lang
11
 
12
+ Copyright 2015 - 2017 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
248
  $meta = self::get_meta();
249
 
250
  // features survey is shown min 5min after install
251
+ // disabled till a new survey comes along
252
+ if (false && empty($surveys['features']) && current_time('timestamp') - $meta['first_install'] > 300) {
253
  $open_features_survey = true;
254
  } else {
255
  $open_features_survey = false;
427
  if (!empty($options['social_instagram'])) {
428
  $out .= '<a title="Instagram" href="' . $options['social_instagram'] . '" target="_blank"><i class="fa fa-instagram fa-3x"></i></a>';
429
  }
430
+ if (!empty($options['social_tumblr'])) {
431
+ $out .= '<a title="Tumblr" href="' . $options['social_tumblr'] . '" target="_blank"><i class="fa fa-tumblr-square fa-3x"></i></a>';
432
+ }
433
  if (!empty($options['social_skype'])) {
434
  $out .= '<a title="Skype" href="skype:' . $options['social_skype'] . '?chat"><i class="fa fa-skype fa-3x"></i></a>';
435
  }
538
  $options = self::get_options();
539
  $current_user = wp_get_current_user();
540
 
541
+ // just to be on the safe side
542
+ if (defined('DOING_CRON') && DOING_CRON) {
543
+ return false;
544
+ }
545
+ if (defined('DOING_AJAX') && DOING_AJAX) {
546
+ return false;
547
+ }
548
+
549
  // just check if it's generally enabled
550
  if ($settings_only) {
551
  if ($options['status']) {
598
 
599
  echo '<div id="ucp_rate_notice" class="notice-info notice is-dismissible"><p>Hi! We saw you\'ve been using <b class="ucp-logo" style="font-weight: bold;">UnderConstructionPage</b> plugin for a few days and wanted to ask for your help to <b>make the plugin better</b>.<br>We just need a minute of your time to rate the plugin. Thank you!';
600
 
601
+ echo '<br><a target="_blank" href="' . esc_url($rate_url) . '" style="vertical-align: baseline; margin-top: 15px;" class="button-primary">Help make the plugin better by rating it</a>';
602
+ echo '&nbsp;&nbsp;&nbsp;&nbsp;<a href="' . esc_url($dismiss_url) . '">I\'ve already rated the plugin</a>';
603
  echo '</p></div>';
604
  }
605
  } // notices
717
  'social_dribbble' => '',
718
  'social_behance' => '',
719
  'social_instagram' => '',
720
+ 'social_tumblr' => '',
721
  'social_email' => '',
722
  'social_phone' => '',
723
  'social_skype' => '',
752
  case 'social_dribbble':
753
  case 'social_behance':
754
  case 'social_instagram':
755
+ case 'social_tumblr':
756
  case 'social_email':
757
  case 'social_phone':
758
  case 'social_skype':
1017
  echo '<p class="description">Complete URL, with http prefix, to Instagram profile.</p>';
1018
  echo '</td></tr>';
1019
 
1020
+ echo '<tr valign="top">
1021
+ <th scope="row"><label for="social_tumblr">Tumblr Blog</label></th>
1022
+ <td><input id="social_tumblr" type="url" class="regular-text code" name="' . UCP_OPTIONS_KEY . '[social_tumblr]" value="' . esc_attr($options['social_tumblr']) . '" placeholder="Tumblr blog URL">';
1023
+ echo '<p class="description">Complete URL, with http prefix, to Tumblr blog.</p>';
1024
+ echo '</td></tr>';
1025
+
1026
  echo '<tr valign="top">
1027
  <th scope="row"><label for="social_skype">Skype Username</label></th>
1028
  <td><input id="social_skype" type="text" class="regular-text code" name="' . UCP_OPTIONS_KEY . '[social_skype]" value="' . esc_attr($options['social_skype']) . '" placeholder="Skype username / account name">';
1057
 
1058
  $img_path = UCP_PLUGIN_URL . 'images/';
1059
 
1060
+ $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', 'cyber_chick_dark' => 'Cyber Chick Dark', 'safe' => 'Safe', 'people' => 'People at Work', 'windmill' => 'Windmill', 'sad_site' => 'Sad Site');
1061
 
1062
  echo '<table class="form-table">';
1063
  echo '<tr valign="top">
1163
 
1164
  $options = self::get_options();
1165
  $default_options = self::default_options();
1166
+ $pointers = get_option(UCP_POINTERS_KEY);
1167
 
1168
+ // auto remove welcome pointer when options are opened
1169
+ if (isset($pointers['welcome'])) {
1170
+ unset($pointers['welcome']);
1171
+ update_option(UCP_POINTERS_KEY, $pointers);
1172
+ }
1173
+
1174
  echo '<div class="wrap">
1175
  <h1 class="ucp-logo"><img src="' . UCP_PLUGIN_URL . '/images/ucp_logo.png" alt="UnderConstructionPage" title="UnderConstructionPage">UnderConstructionPage</h1>';
1176