Under Construction - Version 2.05

Version Description

  • 2017/05/03
  • new theme - Ambulance
  • we've crossed 300k downloads
  • added filters to ease integrations and customizations
  • fixed bug with telephone number link/icon not working on Android
Download this release

Release Info

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

Code changes from version 2.0 to 2.05

css/ucp-admin.css CHANGED
@@ -28,6 +28,10 @@
28
  padding: 15px 10px 20px 0;
29
  }
30
 
 
 
 
 
31
  .settings_page_ucp h1:hover img {
32
  transform: rotate(360deg);
33
  }
@@ -45,8 +49,8 @@
45
  }
46
 
47
  div.ucp-thumb, .ucp-thumb-special {
48
- width: 250px;
49
- margin: 0 20px 15px 0;
50
  display: inline-block;
51
  text-align: center;
52
  padding: 10px;
28
  padding: 15px 10px 20px 0;
29
  }
30
 
31
+ #ucp_design .form-table th {
32
+ width: 100px;
33
+ }
34
+
35
  .settings_page_ucp h1:hover img {
36
  transform: rotate(360deg);
37
  }
49
  }
50
 
51
  div.ucp-thumb, .ucp-thumb-special {
52
+ width: 300px;
53
+ margin: 0 10px 5px 0;
54
  display: inline-block;
55
  text-align: center;
56
  padding: 10px;
images/thumbnails/ambulance.png ADDED
Binary file
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: WebFactory, UnderConstructionPage
3
  Tags: maintenance mode, maintenance page, coming soon page, landing page, under construction
4
  Requires at least: 4.0
5
  Tested up to: 4.7
6
- Stable tag: 2.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -24,7 +24,7 @@ A simple, no-nonsense plugin for all those situations when you have to hide the
24
  * Under construction mode - off / on
25
  * End date & time - automatically disable construction mode on a set date
26
  * Google Analytics Tracking ID - enable tracking via Google Analytics
27
- * Theme - a new one is added with each update, <a href="https://wordpress.org/plugins/under-construction-page/screenshots/">see screenshots of available themes</a>
28
  * Custom CSS - adjust any part of the page to fit your needs
29
  * Title - page title, for SEO
30
  * Description - page description, for SEO
@@ -89,15 +89,23 @@ Or if needed, upload manually;
89
  17. People at Work #2 theme
90
  18. Rocket Launch #2 theme
91
  19. Light Bulb theme
92
- 20. Main settings
93
- 21. Design settings
94
- 22. Content settings
95
- 23. Access settings
96
- 24. Support
 
97
 
98
 
99
  == Changelog ==
100
 
 
 
 
 
 
 
 
101
  = 2.0 =
102
  * 2017/04/24
103
  * new theme - Light Bulb
3
  Tags: maintenance mode, maintenance page, coming soon page, landing page, under construction
4
  Requires at least: 4.0
5
  Tested up to: 4.7
6
+ Stable tag: 2.05
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
24
  * Under construction mode - off / on
25
  * End date & time - automatically disable construction mode on a set date
26
  * Google Analytics Tracking ID - enable tracking via Google Analytics
27
+ * Theme - a new one is added with each update, <a href="https://underconstructionpage.com/">test all available themes</a>
28
  * Custom CSS - adjust any part of the page to fit your needs
29
  * Title - page title, for SEO
30
  * Description - page description, for SEO
89
  17. People at Work #2 theme
90
  18. Rocket Launch #2 theme
91
  19. Light Bulb theme
92
+ 20. Ambulance theme
93
+ 21. Main settings
94
+ 22. Design settings
95
+ 23. Content settings
96
+ 24. Access settings
97
+ 25. Support
98
 
99
 
100
  == Changelog ==
101
 
102
+ = 2.05 =
103
+ * 2017/05/03
104
+ * new theme - Ambulance
105
+ * we've crossed 300k downloads
106
+ * added filters to ease integrations and customizations
107
+ * fixed bug with telephone number link/icon not working on Android
108
+
109
  = 2.0 =
110
  * 2017/04/24
111
  * new theme - Light Bulb
themes/ambulance/ambulance.png ADDED
Binary file
themes/ambulance/index.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * UnderConstructionPage
4
+ * Ambulance 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=Roboto:400,900">
26
+ [head]
27
+ </head>
28
+
29
+ <body>
30
+ <div class="container">
31
+ <div class="row">
32
+ <div class="col-xs-12 col-md-12 col-lg-12">
33
+ <h1>[heading1]</h1>
34
+ </div>
35
+ </div>
36
+ </div>
37
+
38
+ <div id="hero-image">
39
+ <img src="[theme-url]ambulance.png" alt="Our site is getting some much needed care" title="Our site is getting some much needed care">
40
+ </div>
41
+ <div class="container">
42
+
43
+ <div class="row">
44
+ <div class="col-xs-12 col-md-8 col-md-offset-2 col-lg-offset-2 col-lg-8">
45
+ <p class="content">[content]</p>
46
+ </div>
47
+ </div>
48
+
49
+ <div class="row" id="social">
50
+ <div class="col-xs-12 col-md-12 col-lg-12">
51
+ [social-icons]
52
+ </div>
53
+ </div>
54
+
55
+ </div>
56
+ [footer]
57
+ </body>
58
+ </html>
themes/ambulance/style.css ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * UnderConstructionPage
3
+ * Ambulance theme CSS
4
+ * (c) Web factory Ltd, 2015 - 2017
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: #292929;
19
+ background: #d1dfeb;
20
+ padding: 0;
21
+ margin: 0;
22
+ background-repeat: repeat;
23
+ background-attachment: fixed;
24
+ }
25
+
26
+ #hero-image {
27
+ text-align: center;
28
+ margin: 20px auto 40px auto;
29
+ border-bottom: 2px solid #bdbfc1;
30
+ }
31
+
32
+ #hero-image img {
33
+ max-width: 80%;
34
+ }
35
+
36
+ h1 {
37
+ font-size: 34px;
38
+ color: #d86221;
39
+ font-family: "Roboto", sans-serif;
40
+ font-weight: 900;
41
+ margin: 60px 0 30px 0;
42
+ text-align: center;
43
+ }
44
+
45
+ .content {
46
+ text-align: center;
47
+ font-family: "Helvetica", "Arial", sans-serif;
48
+ }
49
+
50
+ #social {
51
+ text-align: center;
52
+ margin-top: 30px;
53
+ }
54
+
55
+ #social a i {
56
+ color: #292929;
57
+ margin: 10px;
58
+ box-sizing: content-box;
59
+ }
60
+
61
+ #social a:hover i {
62
+ color: #d86221;
63
+ }
64
+
65
+ @media(max-width:767px){
66
+ h1 {
67
+ font-size: 30px;
68
+ margin: 10px 0 30px 0;
69
+ }
70
+ #hero-image img {
71
+ max-width: 95%;
72
+ }
73
+ }
under-construction.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: https://underconstructionpage.com/
5
  Description: Hide your site behind a great looking under construction page while you do maintenance work.
6
  Author: Web factory Ltd
7
- Version: 2.0
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: under-construction-page
10
  Domain Path: lang
@@ -386,6 +386,8 @@ class UCP {
386
 
387
  // parse shortcode alike variables
388
  static function parse_vars($string) {
 
 
389
  $vars = array('site-title' => get_bloginfo('name'),
390
  'site-tagline' => get_bloginfo('description'),
391
  'site-description' => get_bloginfo('description'),
@@ -398,6 +400,8 @@ class UCP {
398
  $string = str_ireplace($var_name, $var_value, $string);
399
  }
400
 
 
 
401
  return $string;
402
  } // parse_vars
403
 
@@ -449,7 +453,7 @@ class UCP {
449
  $out .= '<a title="Email" href="mailto:' . self::encode_email($options['social_email']) . '"><i class="fa fa-envelope fa-3x"></i></a>';
450
  }
451
  if (!empty($options['social_phone'])) {
452
- $out .= '<a title="Phone" href="callto:' . $options['social_phone'] . '"><i class="fa fa-phone-square fa-3x"></i></a>';
453
  }
454
 
455
  return $out;
@@ -480,6 +484,8 @@ class UCP {
480
  $out .= "\n" . '<style type="text/css">' . $options['custom_css'] . '</style>';
481
  }
482
 
 
 
483
  return trim($out);
484
  } // generate_head
485
 
@@ -510,6 +516,8 @@ class UCP {
510
  $out .= '</div>';
511
  }
512
 
 
 
513
  return $out;
514
  } // generate_footer
515
 
@@ -533,6 +541,8 @@ class UCP {
533
  $vars['head'] = self::generate_head($options, $template_id);
534
  $vars['footer'] = self::generate_footer($options, $template_id);
535
 
 
 
536
  ob_start();
537
  require UCP_PLUGIN_DIR . 'themes/' . $template_id . '/index.php';
538
  $template = ob_get_clean();
@@ -542,6 +552,8 @@ class UCP {
542
  $template = str_ireplace($var_name, $var_value, $template);
543
  }
544
 
 
 
545
  return $template;
546
  } // get_template
547
 
@@ -1099,7 +1111,8 @@ class UCP {
1099
  'hot_air_baloon' => __('Hot Air Baloon', 'under-construction-page'),
1100
  'people_2' => __('People at Work #2', 'under-construction-page'),
1101
  'rocket_2' => __('Rocket Launch #2', 'under-construction-page'),
1102
- 'light_bulb' => __('Light Bulb', 'under-construction-page'));
 
1103
 
1104
  echo '<table class="form-table">';
1105
  echo '<tr valign="top">
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: 2.05
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: under-construction-page
10
  Domain Path: lang
386
 
387
  // parse shortcode alike variables
388
  static function parse_vars($string) {
389
+ $org_string = $string;
390
+
391
  $vars = array('site-title' => get_bloginfo('name'),
392
  'site-tagline' => get_bloginfo('description'),
393
  'site-description' => get_bloginfo('description'),
400
  $string = str_ireplace($var_name, $var_value, $string);
401
  }
402
 
403
+ $string = apply_filters('ucp_parse_vars', $string, $org_string, $vars);
404
+
405
  return $string;
406
  } // parse_vars
407
 
453
  $out .= '<a title="Email" href="mailto:' . self::encode_email($options['social_email']) . '"><i class="fa fa-envelope fa-3x"></i></a>';
454
  }
455
  if (!empty($options['social_phone'])) {
456
+ $out .= '<a title="Phone" href="tel:' . $options['social_phone'] . '"><i class="fa fa-phone-square fa-3x"></i></a>';
457
  }
458
 
459
  return $out;
484
  $out .= "\n" . '<style type="text/css">' . $options['custom_css'] . '</style>';
485
  }
486
 
487
+ $out = apply_filters('ucp_head', $out, $options, $template_id);
488
+
489
  return trim($out);
490
  } // generate_head
491
 
516
  $out .= '</div>';
517
  }
518
 
519
+ $out = apply_filters('ucp_footer', $out, $options, $template_id);
520
+
521
  return $out;
522
  } // generate_footer
523
 
541
  $vars['head'] = self::generate_head($options, $template_id);
542
  $vars['footer'] = self::generate_footer($options, $template_id);
543
 
544
+ $vars = apply_filters('ucp_get_template_vars', $vars, $template_id, $options);
545
+
546
  ob_start();
547
  require UCP_PLUGIN_DIR . 'themes/' . $template_id . '/index.php';
548
  $template = ob_get_clean();
552
  $template = str_ireplace($var_name, $var_value, $template);
553
  }
554
 
555
+ $template = apply_filters('ucp_get_template', $template, $vars, $options);
556
+
557
  return $template;
558
  } // get_template
559
 
1111
  'hot_air_baloon' => __('Hot Air Baloon', 'under-construction-page'),
1112
  'people_2' => __('People at Work #2', 'under-construction-page'),
1113
  'rocket_2' => __('Rocket Launch #2', 'under-construction-page'),
1114
+ 'light_bulb' => __('Light Bulb', 'under-construction-page'),
1115
+ 'ambulance' => __('Ambulance', 'under-construction-page'));
1116
 
1117
  echo '<table class="form-table">';
1118
  echo '<tr valign="top">