Under Construction - Version 3.85

Version Description

  • 2021/01/13
  • removed Google+
  • removed WP 301 Redirects promo campaign
Download this release

Release Info

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

Code changes from version 3.83 to 3.85

Files changed (80) hide show
  1. css/ucp-admin.css +13 -1
  2. images/accessibe-logo.png +0 -0
  3. js/ucp-admin-pointers.js +1 -1
  4. js/ucp-admin.js +42 -1
  5. js/ucp-jquery-plugins.js +1 -1
  6. readme.txt +8 -3
  7. themes/000webhost/index.php +1 -1
  8. themes/000webhost/style.css +1 -1
  9. themes/ambulance/index.php +1 -1
  10. themes/ambulance/style.css +1 -1
  11. themes/bulldozer/index.php +1 -1
  12. themes/bulldozer/style.css +1 -1
  13. themes/christmas/index.php +1 -1
  14. themes/christmas/style.css +1 -1
  15. themes/clock/index.php +1 -1
  16. themes/clock/style.css +1 -1
  17. themes/closed/index.php +1 -1
  18. themes/closed/style.css +1 -1
  19. themes/css/common.css +1 -1
  20. themes/cyber_chick/index.php +1 -1
  21. themes/cyber_chick/style.css +1 -1
  22. themes/cyber_chick_dark/index.php +1 -1
  23. themes/cyber_chick_dark/style.css +1 -1
  24. themes/dark/index.php +1 -1
  25. themes/dark/style.css +1 -1
  26. themes/dumper_truck/index.php +1 -1
  27. themes/dumper_truck/style.css +1 -1
  28. themes/forklift/index.php +1 -1
  29. themes/forklift/style.css +1 -1
  30. themes/hard_worker/index.php +1 -1
  31. themes/hard_worker/style.css +1 -1
  32. themes/hot_air_baloon/index.php +1 -1
  33. themes/hot_air_baloon/style.css +1 -1
  34. themes/iot/index.php +1 -1
  35. themes/iot/style.css +1 -1
  36. themes/laptop/index.php +1 -1
  37. themes/laptop/style.css +1 -1
  38. themes/light_bulb/index.php +1 -1
  39. themes/light_bulb/style.css +1 -1
  40. themes/lighthouse/index.php +1 -1
  41. themes/lighthouse/style.css +1 -1
  42. themes/loader/index.php +1 -1
  43. themes/loader/style.css +1 -1
  44. themes/mad_designer/index.php +1 -1
  45. themes/mad_designer/style.css +1 -1
  46. themes/people/index.php +1 -1
  47. themes/people/style.css +1 -1
  48. themes/people_2/index.php +1 -1
  49. themes/people_2/style.css +1 -1
  50. themes/plain_text/index.php +1 -1
  51. themes/plain_text/style.css +1 -1
  52. themes/puzzles/index.php +1 -1
  53. themes/puzzles/style.css +1 -1
  54. themes/research/index.php +1 -1
  55. themes/research/style.css +1 -1
  56. themes/rocket/index.php +1 -1
  57. themes/rocket/style.css +1 -1
  58. themes/rocket_2/index.php +1 -1
  59. themes/rocket_2/style.css +1 -1
  60. themes/sad_site/index.php +1 -1
  61. themes/sad_site/style.css +1 -1
  62. themes/safe/index.php +1 -1
  63. themes/safe/style.css +1 -1
  64. themes/setup/index.php +1 -1
  65. themes/setup/style.css +1 -1
  66. themes/stop/index.php +1 -1
  67. themes/stop/style.css +1 -1
  68. themes/under_construction/index.php +1 -1
  69. themes/under_construction/style.css +1 -1
  70. themes/under_construction_text/index.php +1 -1
  71. themes/under_construction_text/style.css +1 -1
  72. themes/windmill/index.php +1 -1
  73. themes/windmill/style.css +1 -1
  74. themes/work_desk/index.php +1 -1
  75. themes/work_desk/style.css +1 -1
  76. ucp-license.php +1 -1
  77. under-construction.php +110 -18
  78. wp301/wp301-logo.png +0 -0
  79. wp301/wp301.js +0 -128
  80. wp301/wp301.php +0 -294
css/ucp-admin.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Main backend CSS
4
- * (c) Web factory Ltd, 2015 - 2020
5
  */
6
 
7
  @import url("//fonts.googleapis.com/css?family=Roboto:900");
@@ -41,6 +41,7 @@
41
  padding: 1px 12px;
42
  background-color: #fafafa;
43
  display: inline-block;
 
44
  }
45
 
46
  .settings_page_ucp .button:hover,
@@ -1062,6 +1063,7 @@ h3.ucp-pro-logo span {
1062
  .ucp-upsell-dialog .ui-dialog-titlebar-close {
1063
  color: #fff;
1064
  height: 55px;
 
1065
  }
1066
  .ucp-upsell-dialog .ui-dialog-titlebar-close:hover {
1067
  color: #333;
@@ -1260,3 +1262,13 @@ option.weglot-promo {
1260
  .settings_page_ucp div.fs-notice {
1261
  display: none !important;
1262
  }
 
 
 
 
 
 
 
 
 
 
1
  /*
2
  * UnderConstructionPage
3
  * Main backend CSS
4
+ * (c) Web factory Ltd, 2015 - 2021
5
  */
6
 
7
  @import url("//fonts.googleapis.com/css?family=Roboto:900");
41
  padding: 1px 12px;
42
  background-color: #fafafa;
43
  display: inline-block;
44
+ max-width: 700px;
45
  }
46
 
47
  .settings_page_ucp .button:hover,
1063
  .ucp-upsell-dialog .ui-dialog-titlebar-close {
1064
  color: #fff;
1065
  height: 55px;
1066
+ font-size: 0px;
1067
  }
1068
  .ucp-upsell-dialog .ui-dialog-titlebar-close:hover {
1069
  color: #333;
1262
  .settings_page_ucp div.fs-notice {
1263
  display: none !important;
1264
  }
1265
+
1266
+ .accessibe-upsell-dialog .ui-dialog-titlebar {
1267
+ text-align: center;
1268
+ }
1269
+
1270
+ .settings_page_ucp .accessibe-upsell-dialog .button-primary {
1271
+ background-color: #136ef8;
1272
+ border: #136ef8;
1273
+ padding: 10px;
1274
+ }
images/accessibe-logo.png ADDED
Binary file
js/ucp-admin-pointers.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Backend GUI pointers
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Backend GUI pointers
4
+ * (c) WebFactory Ltd, 2015 - 2021
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 - 2020
5
  */
6
 
7
 
@@ -330,6 +330,37 @@ jQuery(document).ready(function($) {
330
  });
331
 
332
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
333
  // zebra on pricing table, per column
334
  $('#ucp-pricing-table').find('tr').each(function() {
335
  $(this).find('td').eq(1).addClass('hover');
@@ -392,6 +423,16 @@ jQuery(document).ready(function($) {
392
  return false;
393
  });
394
 
 
 
 
 
 
 
 
 
 
 
395
  $('.settings_page_ucp').on('click change', '.open-smush-install', function(e) {
396
  e.preventDefault();
397
 
1
  /*
2
  * UnderConstructionPage
3
  * Main backend JS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
330
  });
331
 
332
 
333
+ $('#accessibe-upsell-dialog').dialog({'dialogClass': 'wp-dialog ucp-dialog accessibe-upsell-dialog',
334
+ 'modal': 1,
335
+ 'resizable': false,
336
+ 'title': 'Make your site accessible in just a few clicks',
337
+ 'zIndex': 9999,
338
+ 'width': 550,
339
+ 'height': 'auto',
340
+ 'show': 'fade',
341
+ 'hide': 'fade',
342
+ 'open': function(event, ui) {
343
+ ucp_fix_dialog_close(event, ui);
344
+ $(this).siblings().find('span.ui-dialog-title').html(ucp.accessibe_dialog_upsell_title);
345
+ },
346
+ 'close': function(event, ui) { },
347
+ 'autoOpen': false,
348
+ 'closeOnEscape': true
349
+ });
350
+ $(window).resize(function(e) {
351
+ $('#accessibe-upsell-dialog').dialog("option", "position", {my: "center", at: "center", of: window});
352
+ });
353
+
354
+
355
+ jQuery('#install-accessibe').on('click',function(e){
356
+ $('#accessibe-upsell-dialog').dialog('close');
357
+ jQuery('body').append('<div style="width:550px;height:450px; position:fixed;top:10%;left:50%;margin-left:-275px; color:#444; background-color: #fbfbfb;border:1px solid #DDD; border-radius:4px;box-shadow: 0px 0px 0px 4000px rgba(0, 0, 0, 0.85);z-index: 9999999;"><iframe src="' + ucp.accessibe_install_url + '" style="width:100%;height:100%;border:none;" /></div>');
358
+ jQuery('#wpwrap').css('pointer-events', 'none');
359
+ e.preventDefault();
360
+ return false;
361
+ });
362
+
363
+
364
  // zebra on pricing table, per column
365
  $('#ucp-pricing-table').find('tr').each(function() {
366
  $(this).find('td').eq(1).addClass('hover');
423
  return false;
424
  });
425
 
426
+ $('.settings_page_ucp').on('click', '.open-accessibe-upsell', function(e) {
427
+ e.preventDefault();
428
+
429
+ $(this).blur();
430
+
431
+ $('#accessibe-upsell-dialog').dialog('open');
432
+
433
+ return false;
434
+ });
435
+
436
  $('.settings_page_ucp').on('click change', '.open-smush-install', function(e) {
437
  e.preventDefault();
438
 
js/ucp-jquery-plugins.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * jQuery plugins
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
  /**
1
  /*
2
  * UnderConstructionPage
3
  * jQuery plugins
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
  /**
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: coming soon page, under construction mode, under construction, under const
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
  Tested up to: 5.6
7
- Stable tag: 3.83
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -23,8 +23,9 @@ A simple, no-nonsense under construction plugin for all those situations when yo
23
 
24
  Thanks to our partnership with <a href="https://wordpress.org/plugins/weglot/">Weglot</a>, UCP is fully multilanguage ready and you can instantly translate your under construction page to 100+ languages with one click.
25
 
26
- Let <a href="https://wordpress.org/plugins/security-ninja/">Security Ninja</a> take care of your site's security from day one! Run over 50 security tests with one click. Get a detailed report and automatically fix security issues. Download it from the <a href="https://wordpress.org/plugins/security-ninja/">official wp.org repo</a> for free.
27
 
 
28
 
29
  **Options**
30
 
@@ -42,7 +43,6 @@ Let <a href="https://wordpress.org/plugins/security-ninja/">Security Ninja</a> t
42
  * Social icons/links - new ones are added with every update; let us know if we missed your favorite ones
43
  * Facebook
44
  * Twitter
45
- * Google+
46
  * LinkedIn
47
  * YouTube
48
  * Vimeo
@@ -138,6 +138,11 @@ Or if needed, upload manually;
138
 
139
  == Changelog ==
140
 
 
 
 
 
 
141
  = 3.83 =
142
  * 2020/10/27
143
  * removed automatic PRO license activation
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
  Tested up to: 5.6
7
+ Stable tag: 3.85
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
23
 
24
  Thanks to our partnership with <a href="https://wordpress.org/plugins/weglot/">Weglot</a>, UCP is fully multilanguage ready and you can instantly translate your under construction page to 100+ languages with one click.
25
 
26
+ Let <a href="https://wordpress.org/plugins/security-ninja/">Security Ninja</a> take care of your site's security from day one! Run over 50 security tests with one click. Get a detailed report and automatically fix security issues. Download it from the official wp.org repo for free.
27
 
28
+ Web accessibility is not an option in 2021! Making your site accessible to visitors with disabilities will save you from hefty fines and instantly grow your audience. That's why we've partnered with <a href="https://wordpress.org/plugins/accessibe/">accessiBe</a> - the fully automated AI service for web accessibility. Download their plugin from the official WP repository and make your site fully accessible in a few clicks.
29
 
30
  **Options**
31
 
43
  * Social icons/links - new ones are added with every update; let us know if we missed your favorite ones
44
  * Facebook
45
  * Twitter
 
46
  * LinkedIn
47
  * YouTube
48
  * Vimeo
138
 
139
  == Changelog ==
140
 
141
+ = 3.85 =
142
+ * 2021/01/13
143
+ * removed Google+
144
+ * removed WP 301 Redirects promo campaign
145
+
146
  = 3.83 =
147
  * 2020/10/27
148
  * removed automatic PRO license activation
themes/000webhost/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * 000webhost theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * 000webhost theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/000webhost/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * 000webhost theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * 000webhost theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/ambulance/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Ambulance theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Ambulance theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/ambulance/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Ambulance theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Ambulance theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/bulldozer/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Bulldozer theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Bulldozer theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/bulldozer/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Bulldozer theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Bulldozer theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/christmas/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Christmas theme
5
- * (c) Web factory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Christmas theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/christmas/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Christmas theme CSS
4
- * (c) Web factory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Christmas theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/clock/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Clock theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Clock theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/clock/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Clock CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Clock CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/closed/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Temporarily Closed theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Temporarily Closed theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/closed/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Temporarily Closed theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Temporarily Closed theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/css/common.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Common frontend CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Common frontend CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/cyber_chick/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Chyber Chick theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Chyber Chick theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/cyber_chick/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Cyber Chick theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Cyber Chick theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/cyber_chick_dark/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Cyber Chick Dark theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Cyber Chick Dark theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
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) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Cyber Chick Dark theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/dark/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Things Went Dark theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Things Went Dark theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/dark/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Things Went Dark theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Things Went Dark theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/dumper_truck/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Dumper Truck theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Dumper Truck theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/dumper_truck/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Dumper Truck theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Dumper Truck theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/forklift/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Forklift theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Forklift theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/forklift/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Forklift theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Forklift theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/hard_worker/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Hard Worker theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Hard Worker theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/hard_worker/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Hard Worker theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Hard Worker theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/hot_air_baloon/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Hot Air Baloon theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Hot Air Baloon theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/hot_air_baloon/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Hot Air Baloon theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Hot Air Baloon theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/iot/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Internet of Things theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Internet of Things theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/iot/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Internet of Things theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Internet of Things theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/laptop/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Laptop theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Laptop theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/laptop/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Laptop theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Laptop theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/light_bulb/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Light Bulb theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Light Bulb theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/light_bulb/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Light Bulb theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Light Bulb theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/lighthouse/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Lighthouse theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Lighthouse theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/lighthouse/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Lighthouse theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Lighthouse theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/loader/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Loader theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Loader theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/loader/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Loader theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Loader theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/mad_designer/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Mad Designer theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Mad Designer theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/mad_designer/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Mad Designer theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Mad Designer theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/people/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * People at Work theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * People at Work theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/people/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * People at Work theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * People at Work theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/people_2/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * People at Work #2 theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * People at Work #2 theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/people_2/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * People at Work #2 theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * People at Work #2 theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/plain_text/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Plain Text theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Plain Text theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/plain_text/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Plain Text theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Plain Text theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/puzzles/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Puzzles theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Puzzles theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/puzzles/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Puzzles theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Puzzles theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/research/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Research theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Research theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/research/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Research theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
  html {
1
  /*
2
  * UnderConstructionPage
3
  * Research theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
  html {
themes/rocket/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Rocket theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Rocket theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/rocket/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Rocket theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Rocket theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/rocket_2/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Rocket #2 theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Rocket #2 theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/rocket_2/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Rocket #2 theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Rocket #2 theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/sad_site/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Sad Site theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Sad Site theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/sad_site/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Sad Site theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Sad Site theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/safe/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Safe theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Safe theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/safe/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Safe theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Safe theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/setup/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Setup theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Setup theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/setup/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Setup theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Setup theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/stop/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Stop theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Stop theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/stop/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Stop theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Stop theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/under_construction/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Under Construction theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Under Construction theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/under_construction/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Under Construction theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Under Construction theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/under_construction_text/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Under Construction Text theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Under Construction Text theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
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) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Under Construction Text theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/windmill/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Windmill theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Windmill theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/windmill/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Windmill theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Windmill theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
themes/work_desk/index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * Work Desk theme
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
 
2
  /*
3
  * UnderConstructionPage
4
  * Work Desk theme
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
 
themes/work_desk/style.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * UnderConstructionPage
3
  * Work Desk theme CSS
4
- * (c) WebFactory Ltd, 2015 - 2020
5
  */
6
 
7
 
1
  /*
2
  * UnderConstructionPage
3
  * Work Desk theme CSS
4
+ * (c) WebFactory Ltd, 2015 - 2021
5
  */
6
 
7
 
ucp-license.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * UnderConstructionPage
4
  * PRO license related functions
5
- * (c) WebFactory Ltd, 2015 - 2020
6
  */
7
 
8
  class UCP_license extends UCP {
2
  /*
3
  * UnderConstructionPage
4
  * PRO license related functions
5
+ * (c) WebFactory Ltd, 2015 - 2021
6
  */
7
 
8
  class UCP_license extends UCP {
under-construction.php CHANGED
@@ -4,14 +4,14 @@
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.83
8
  Requires at least: 4.0
9
  Requires PHP: 5.2
10
  Tested up to: 5.6
11
  Author URI: https://www.webfactoryltd.com/
12
  Text Domain: under-construction-page
13
 
14
- Copyright 2015 - 2020 WebFactory Ltd (email: ucp@webfactoryltd.com)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License, version 2, as
@@ -44,9 +44,6 @@ define('UCP_SURVEYS_KEY', 'ucp_surveys');
44
 
45
  require_once UCP_PLUGIN_DIR . 'ucp-license.php';
46
 
47
- require_once 'wp301/wp301.php';
48
- new wf_wp301(__FILE__, 'settings_page_ucp');
49
-
50
 
51
  // main plugin class
52
  class UCP {
@@ -93,6 +90,7 @@ class UCP {
93
  add_action('admin_action_ucp_change_status', array(__CLASS__, 'change_status'));
94
  add_action('admin_action_ucp_reset_settings', array(__CLASS__, 'reset_settings'));
95
  add_action('admin_action_install_weglot', array(__CLASS__, 'install_weglot'));
 
96
 
97
  // enqueue admin scripts
98
  add_action('admin_enqueue_scripts', array(__CLASS__, 'admin_enqueue_scripts'), 100, 1);
@@ -330,7 +328,9 @@ class UCP {
330
  'is_activated' => UCP_license::is_activated(),
331
  'dialog_upsell_title' => '<img alt="' . __('UnderConstructionPage PRO', 'under-construction-page') . '" title="' . __('UnderConstructionPage PRO', 'under-construction-page') . '" src="' . UCP_PLUGIN_URL . 'images/ucp_pro_logo_white.png' . '">',
332
  'weglot_dialog_upsell_title' => '<img alt="' . __('Weglot', 'under-construction-page') . '" title="' . __('Weglot', 'under-construction-page') . '" src="' . UCP_PLUGIN_URL . 'images/weglot-logo-white.png' . '">',
 
333
  'weglot_install_url' => add_query_arg(array('action' => 'install_weglot'), admin_url('admin.php')),
 
334
  'nonce_dismiss_survey' => wp_create_nonce('ucp_dismiss_survey'),
335
  'nonce_submit_survey' => wp_create_nonce('ucp_submit_survey'),
336
  'nonce_submit_support_message' => wp_create_nonce('ucp_submit_support_message'),
@@ -532,9 +532,6 @@ class UCP {
532
  if (!empty($options['social_twitter'])) {
533
  $out .= '<a title="Twitter" href="' . $options['social_twitter'] . '" target="_blank"><i class="fa fa-twitter-square fa-3x"></i></a>';
534
  }
535
- if (!empty($options['social_google'])) {
536
- $out .= '<a title="Google+" href="' . $options['social_google'] . '" target="_blank"><i class="fa fa-google-plus-square fa-3x"></i></a>';
537
- }
538
  if (!empty($options['social_linkedin'])) {
539
  $out .= '<a title="LinkedIn" href="' . $options['social_linkedin'] . '" target="_blank"><i class="fa fa-linkedin-square fa-3x"></i></a>';
540
  }
@@ -650,6 +647,12 @@ class UCP {
650
 
651
  $out = apply_filters('ucp_footer', $out, $options, $template_id);
652
 
 
 
 
 
 
 
653
  return $out;
654
  } // generate_footer
655
 
@@ -1108,7 +1111,6 @@ class UCP {
1108
  'content' => __('Thank you for being patient. We are doing some work on the site and will be back shortly.', 'under-construction-page'),
1109
  'social_facebook' => '',
1110
  'social_twitter' => '',
1111
- 'social_google' => '',
1112
  'social_linkedin' => '',
1113
  'social_youtube' => '',
1114
  'social_vimeo' => '',
@@ -1144,7 +1146,6 @@ class UCP {
1144
  'content' => __('Powered by <a href="https://www.000webhost.com/" target="_blank">000webhost</a>.', 'under-construction-page'),
1145
  'social_facebook' => '',
1146
  'social_twitter' => '',
1147
- 'social_google' => '',
1148
  'social_linkedin' => '',
1149
  'social_youtube' => '',
1150
  'social_vimeo' => '',
@@ -1188,7 +1189,6 @@ class UCP {
1188
  case 'custom_css':
1189
  case 'social_facebook':
1190
  case 'social_twitter':
1191
- case 'social_google':
1192
  case 'social_linkedin':
1193
  case 'social_youtube':
1194
  case 'social_vimeo':
@@ -1452,6 +1452,25 @@ class UCP {
1452
  echo '<p class="description">' . __('Enter the unique tracking ID found in your GA tracking profile settings to track visits to pages.', 'under-construction-page') . '</p></div>';
1453
  echo '</td></tr>';
1454
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1455
  $reset_url = add_query_arg(array('action' => 'ucp_reset_settings', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
1456
  $reset_url = wp_nonce_url($reset_url, 'ucp_reset_settings');
1457
  echo '<tr valign="top">
@@ -1636,12 +1655,6 @@ class UCP {
1636
  echo '<p class="description">' . __('Complete URL, with https prefix, to Twitter profile page.', 'under-construction-page') . '</p>';
1637
  echo '</td></tr>';
1638
 
1639
- echo '<tr valign="top">
1640
- <th scope="row"><label for="social_google">' . __('Google Page', 'under-construction-page') . '</label></th>
1641
- <td><input id="social_google" type="url" class="regular-text code" name="' . UCP_OPTIONS_KEY . '[social_google]" value="' . esc_attr($options['social_google']) . '" placeholder="' . __('Google+ page URL', 'under-construction-page') . '">';
1642
- echo '<p class="description">' . __('Complete URL, with https prefix, to Google+ page.', 'under-construction-page') . '</p>';
1643
- echo '</td></tr>';
1644
-
1645
  echo '<tr valign="top">
1646
  <th scope="row"><label for="social_linkedin">' . __('LinkedIn Profile', 'under-construction-page') . '</label></th>
1647
  <td><input id="social_linkedin" type="url" class="regular-text code" name="' . UCP_OPTIONS_KEY . '[social_linkedin]" value="' . esc_attr($options['social_linkedin']) . '" placeholder="' . __('LinkedIn profile page URL', 'under-construction-page') . '">';
@@ -1798,6 +1811,11 @@ class UCP {
1798
  $img_path = UCP_PLUGIN_URL . 'images/thumbnails/';
1799
  $themes = self::get_themes();
1800
 
 
 
 
 
 
1801
  echo '<table class="form-table">';
1802
  echo '<tr valign="top">
1803
  <td colspan="2"><b style="margin-bottom: 10px; display: inline-block;">' . __('Theme', 'under-construction-page') . '</b> (<a target="_blank" href="' . self::generate_web_link('themes-browse-premium', 'templates') . '">browse 230+ premium themes</a>)<br>';
@@ -2134,6 +2152,22 @@ class UCP {
2134
  echo '</div>';
2135
  // weglot install dialog
2136
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2137
  $promo = self::is_promo_active();
2138
  if ($promo == 'welcome') {
2139
  $header = 'A <b>welcoming discount</b> has been applied to selected packages! It\'s <b>time limited</b> and available for only another <b class="ucp-countdown">59min 30sec</b>.';
@@ -2373,6 +2407,63 @@ class UCP {
2373
  echo '</div>';
2374
  } // install_weglot
2375
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2376
 
2377
  static function is_plugin_installed($slug) {
2378
  if (!function_exists('get_plugins')) {
@@ -2396,7 +2487,7 @@ class UCP {
2396
 
2397
  if (is_plugin_active('weglot/weglot.php')) {
2398
  $weglot_info = get_plugin_data(ABSPATH . 'wp-content/plugins/weglot/weglot.php');
2399
- if( version_compare($weglot_info['Version'], '2.5', '<')) {
2400
  return false;
2401
  } else {
2402
  return true;
@@ -2479,6 +2570,7 @@ class UCP {
2479
  $res = self::add_plugin_favs('eps-301-redirects', $res);
2480
  $res = self::add_plugin_favs('simple-author-box', $res);
2481
  $res = self::add_plugin_favs('security-ninja', $res);
 
2482
 
2483
  return $res;
2484
  } // plugins_api_result
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.85
8
  Requires at least: 4.0
9
  Requires PHP: 5.2
10
  Tested up to: 5.6
11
  Author URI: https://www.webfactoryltd.com/
12
  Text Domain: under-construction-page
13
 
14
+ Copyright 2015 - 2021 WebFactory Ltd (email: ucp@webfactoryltd.com)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License, version 2, as
44
 
45
  require_once UCP_PLUGIN_DIR . 'ucp-license.php';
46
 
 
 
 
47
 
48
  // main plugin class
49
  class UCP {
90
  add_action('admin_action_ucp_change_status', array(__CLASS__, 'change_status'));
91
  add_action('admin_action_ucp_reset_settings', array(__CLASS__, 'reset_settings'));
92
  add_action('admin_action_install_weglot', array(__CLASS__, 'install_weglot'));
93
+ add_action('admin_action_install_accessibe', array(__CLASS__, 'install_accessibe'));
94
 
95
  // enqueue admin scripts
96
  add_action('admin_enqueue_scripts', array(__CLASS__, 'admin_enqueue_scripts'), 100, 1);
328
  'is_activated' => UCP_license::is_activated(),
329
  'dialog_upsell_title' => '<img alt="' . __('UnderConstructionPage PRO', 'under-construction-page') . '" title="' . __('UnderConstructionPage PRO', 'under-construction-page') . '" src="' . UCP_PLUGIN_URL . 'images/ucp_pro_logo_white.png' . '">',
330
  'weglot_dialog_upsell_title' => '<img alt="' . __('Weglot', 'under-construction-page') . '" title="' . __('Weglot', 'under-construction-page') . '" src="' . UCP_PLUGIN_URL . 'images/weglot-logo-white.png' . '">',
331
+ 'accessibe_dialog_upsell_title' => '<img style="max-height: 26px; vertical-align: text-bottom;" alt="' . __('accessiBe', 'under-construction-page') . '" title="' . __('accessiBe', 'under-construction-page') . '" src="' . UCP_PLUGIN_URL . 'images/accessibe-logo.png' . '">',
332
  'weglot_install_url' => add_query_arg(array('action' => 'install_weglot'), admin_url('admin.php')),
333
+ 'accessibe_install_url' => add_query_arg(array('action' => 'install_accessibe'), admin_url('admin.php')),
334
  'nonce_dismiss_survey' => wp_create_nonce('ucp_dismiss_survey'),
335
  'nonce_submit_survey' => wp_create_nonce('ucp_submit_survey'),
336
  'nonce_submit_support_message' => wp_create_nonce('ucp_submit_support_message'),
532
  if (!empty($options['social_twitter'])) {
533
  $out .= '<a title="Twitter" href="' . $options['social_twitter'] . '" target="_blank"><i class="fa fa-twitter-square fa-3x"></i></a>';
534
  }
 
 
 
535
  if (!empty($options['social_linkedin'])) {
536
  $out .= '<a title="LinkedIn" href="' . $options['social_linkedin'] . '" target="_blank"><i class="fa fa-linkedin-square fa-3x"></i></a>';
537
  }
647
 
648
  $out = apply_filters('ucp_footer', $out, $options, $template_id);
649
 
650
+ if (is_plugin_active('accessibe/accessiebe.php') && is_callable(array('Accessibe', 'render_js_in_footer'))) {
651
+ ob_start();
652
+ Accessibe::render_js_in_footer();
653
+ $out .= ob_get_clean();
654
+ }
655
+
656
  return $out;
657
  } // generate_footer
658
 
1111
  'content' => __('Thank you for being patient. We are doing some work on the site and will be back shortly.', 'under-construction-page'),
1112
  'social_facebook' => '',
1113
  'social_twitter' => '',
 
1114
  'social_linkedin' => '',
1115
  'social_youtube' => '',
1116
  'social_vimeo' => '',
1146
  'content' => __('Powered by <a href="https://www.000webhost.com/" target="_blank">000webhost</a>.', 'under-construction-page'),
1147
  'social_facebook' => '',
1148
  'social_twitter' => '',
 
1149
  'social_linkedin' => '',
1150
  'social_youtube' => '',
1151
  'social_vimeo' => '',
1189
  case 'custom_css':
1190
  case 'social_facebook':
1191
  case 'social_twitter':
 
1192
  case 'social_linkedin':
1193
  case 'social_youtube':
1194
  case 'social_vimeo':
1452
  echo '<p class="description">' . __('Enter the unique tracking ID found in your GA tracking profile settings to track visits to pages.', 'under-construction-page') . '</p></div>';
1453
  echo '</td></tr>';
1454
 
1455
+ if (is_plugin_active('accessibe/accessiebe.php')) {
1456
+ echo '<tr id="accessibe-settings">';
1457
+ echo '<th><label for="accessibe">Site Accessibility</label></th>';
1458
+ echo '<td>';
1459
+ echo '<p>Open <a href="' . admin_url('options-general.php?page=accessiBe') . '">accessiBe settings</a> to configure your site\'s accessibility.</p>';
1460
+ echo '</td>';
1461
+ echo '</tr>';
1462
+ } else {
1463
+ echo '<tr>';
1464
+ echo '<th><label for="weglot_support">Site Accessibility</label></th>';
1465
+ echo '<td>';
1466
+ echo '<div class="toggle-wrapper">
1467
+ <input type="checkbox" id="accessibe" type="checkbox" value="1" class="skip-save open-accessibe-upsell">
1468
+ <label for="accessibe" class="toggle"><span class="toggle_handler"></span></label></div>';
1469
+ echo '<p>Your under construction page is currently not fully accessible for over 20% of visitors with dissabilities.<br> Make your site accessible from day one by installing the <a href="#" class="open-accessibe-upsell">accessiBe plugin.</a></p>';
1470
+ echo '</td>';
1471
+ echo '</tr>';
1472
+ } // accessibe not active
1473
+
1474
  $reset_url = add_query_arg(array('action' => 'ucp_reset_settings', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
1475
  $reset_url = wp_nonce_url($reset_url, 'ucp_reset_settings');
1476
  echo '<tr valign="top">
1655
  echo '<p class="description">' . __('Complete URL, with https prefix, to Twitter profile page.', 'under-construction-page') . '</p>';
1656
  echo '</td></tr>';
1657
 
 
 
 
 
 
 
1658
  echo '<tr valign="top">
1659
  <th scope="row"><label for="social_linkedin">' . __('LinkedIn Profile', 'under-construction-page') . '</label></th>
1660
  <td><input id="social_linkedin" type="url" class="regular-text code" name="' . UCP_OPTIONS_KEY . '[social_linkedin]" value="' . esc_attr($options['social_linkedin']) . '" placeholder="' . __('LinkedIn profile page URL', 'under-construction-page') . '">';
1811
  $img_path = UCP_PLUGIN_URL . 'images/thumbnails/';
1812
  $themes = self::get_themes();
1813
 
1814
+ if (!is_plugin_active('accessibe/accessiebe.php')) {
1815
+ echo '<div class="ucp-notice-small"><p><b>Make your website accessible to everyone</b> - Having an accessible website is a must in 2021. It will not only save you from hefty fines but grow your audience too. Make your site accessible from day one! <a href="#" class="open-accessibe-upsell">Install the accessiBe plugin</a> and make your site accessible in a few clicks.';
1816
+ echo '</p></div>';
1817
+ }
1818
+
1819
  echo '<table class="form-table">';
1820
  echo '<tr valign="top">
1821
  <td colspan="2"><b style="margin-bottom: 10px; display: inline-block;">' . __('Theme', 'under-construction-page') . '</b> (<a target="_blank" href="' . self::generate_web_link('themes-browse-premium', 'templates') . '">browse 230+ premium themes</a>)<br>';
2152
  echo '</div>';
2153
  // weglot install dialog
2154
 
2155
+ // accessibe install dialog
2156
+ echo '<div id="accessibe-upsell-dialog" style="display: none;" title="accessiBe"><span class="ui-helper-hidden-accessible"><input type="text"/></span>';
2157
+ echo '<div style="padding: 20px; font-size: 15px;">';
2158
+ echo '<ul class="ucp-list">';
2159
+ echo '<li>Fully automated WordPress accessibility plugin</li>';
2160
+ echo '<li>Protect your site from lawsuits and increase the audience</li>';
2161
+ echo '<li>Simple 5-minute set-up. No coding required</li>';
2162
+ echo '<li>Compatible with all WordPress themes and plugins</li>';
2163
+ echo '<li>AI-powered</li>';
2164
+ echo '<li>7-day free trial available</li>';
2165
+ echo '</ul>';
2166
+ echo '<p class="upsell-footer"><a class="button button-primary" id="install-accessibe">Install &amp; activate accessiBe to make your website accessible</a></p>';
2167
+ echo '</div>';
2168
+ echo '</div>';
2169
+ // accessibe install dialog
2170
+
2171
  $promo = self::is_promo_active();
2172
  if ($promo == 'welcome') {
2173
  $header = 'A <b>welcoming discount</b> has been applied to selected packages! It\'s <b>time limited</b> and available for only another <b class="ucp-countdown">59min 30sec</b>.';
2407
  echo '</div>';
2408
  } // install_weglot
2409
 
2410
+ // auto download / install / activate Accessibe plugin
2411
+ static function install_accessibe() {
2412
+ if (false === current_user_can('administrator')) {
2413
+ wp_die('Sorry, you have to be an admin to run this action.');
2414
+ }
2415
+
2416
+ $plugin_slug = 'accessibe/accessiebe.php';
2417
+ $plugin_zip = 'https://downloads.wordpress.org/plugin/accessibe.latest-stable.zip';
2418
+
2419
+ @include_once ABSPATH . 'wp-admin/includes/plugin.php';
2420
+ @include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
2421
+ @include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
2422
+ @include_once ABSPATH . 'wp-admin/includes/file.php';
2423
+ @include_once ABSPATH . 'wp-admin/includes/misc.php';
2424
+ echo '<style>
2425
+ body{
2426
+ font-family: sans-serif;
2427
+ font-size: 14px;
2428
+ line-height: 1.5;
2429
+ color: #444;
2430
+ }
2431
+ </style>';
2432
+
2433
+ echo '<div style="margin: 20px; color:#444;">';
2434
+ echo 'If things are not done in a minute <a target="_parent" href="' . admin_url('plugin-install.php?s=accessibe&tab=search&type=term') .'">install the plugin manually via Plugins page</a><br><br>';
2435
+ echo 'Starting ...<br><br>';
2436
+
2437
+ wp_cache_flush();
2438
+ $upgrader = new Plugin_Upgrader();
2439
+ echo 'Check if accessiBe is already installed ... <br />';
2440
+ if (self::is_plugin_installed($plugin_slug)) {
2441
+ echo 'accessiBe is already installed! <br /><br />Making sure it\'s the latest version.<br />';
2442
+ $upgrader->upgrade($plugin_slug);
2443
+ $installed = true;
2444
+ } else {
2445
+ echo 'Installing accessiBe.<br />';
2446
+ $installed = $upgrader->install($plugin_zip);
2447
+ }
2448
+ wp_cache_flush();
2449
+
2450
+ if (!is_wp_error($installed) && $installed) {
2451
+ echo 'Activating accessiBe.<br />';
2452
+ $activate = activate_plugin($plugin_slug);
2453
+
2454
+ if (is_null($activate)) {
2455
+ echo 'accessiBe Activated.<br />';
2456
+
2457
+ echo '<script>setTimeout(function() { top.location = "options-general.php?page=ucp"; }, 1000);</script>';
2458
+ echo '<br>If you are not redirected in a few seconds - <a href="options-general.php?page=ucp" target="_parent">click here</a>.';
2459
+ }
2460
+ } else {
2461
+ echo 'Could not install accessiBe. You\'ll have to <a target="_parent" href="' . admin_url('plugin-install.php?s=accessibe&tab=search&type=term') .'">download and install manually</a>.';
2462
+ }
2463
+
2464
+ echo '</div>';
2465
+ } // install_accessibe
2466
+
2467
 
2468
  static function is_plugin_installed($slug) {
2469
  if (!function_exists('get_plugins')) {
2487
 
2488
  if (is_plugin_active('weglot/weglot.php')) {
2489
  $weglot_info = get_plugin_data(ABSPATH . 'wp-content/plugins/weglot/weglot.php');
2490
+ if (version_compare($weglot_info['Version'], '2.5', '<')) {
2491
  return false;
2492
  } else {
2493
  return true;
2570
  $res = self::add_plugin_favs('eps-301-redirects', $res);
2571
  $res = self::add_plugin_favs('simple-author-box', $res);
2572
  $res = self::add_plugin_favs('security-ninja', $res);
2573
+ $res = self::add_plugin_favs('accessibe', $res);
2574
 
2575
  return $res;
2576
  } // plugins_api_result
wp301/wp301-logo.png DELETED
Binary file
wp301/wp301.js DELETED
@@ -1,128 +0,0 @@
1
- /**
2
- * Campaign for WP 301 Redirects PRO
3
- * (c) WebFactory Ltd, 2020
4
- */
5
-
6
- jQuery(document).ready(function ($) {
7
- $('#wp301promo_dismiss').on('click', function (e) {
8
- e.preventDefault();
9
-
10
- var slug = $(this).data('plugin-slug');
11
-
12
- $.get({
13
- url: ajaxurl,
14
- data: {
15
- action: 'wp301_promo_dismiss',
16
- slug: slug,
17
- _ajax_nonce: wp301_promo.nonce_wp301_promo_dismiss,
18
- },
19
- })
20
- .always(function (data) {})
21
- .done(function (data) {
22
- if (data.success) {
23
- if (slug == 'dashboard') {
24
- $('#wp301promo_widget').hide();
25
- } else {
26
- $('#wp301-dialog').dialog('close');
27
- }
28
- } else {
29
- alert('Sorry, something is not right. Please reload the page and try again.');
30
- }
31
- })
32
- .fail(function (data) {
33
- alert('Sorry, something is not right. Please reload the page and try again.');
34
- });
35
- }); // dismiss
36
-
37
-
38
- $('#wp301promo_submit').on('click', function (e) {
39
- e.preventDefault();
40
-
41
- var btn = $('#wp301promo_submit');
42
- var name = $('#wp301promo_name').val();
43
- var email = $('#wp301promo_email').val();
44
- var plugin = $('#wp301promo_plugin').val();
45
- var position = $('#wp301promo_position').val();
46
- var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
47
-
48
- if (name.length < 2 || name.length > 128) {
49
- $('#wp301promo_name').focus();
50
- alert('Please enter your name. Thank you 👍');
51
- return false;
52
- }
53
- if (!regex.test(email) || email.lenght > 128) {
54
- $('#wp301promo_email').focus();
55
- alert('Please enter a valid email address. Thank you 👍');
56
- return false;
57
- }
58
-
59
- $(btn).addClass('disabled');
60
- $.get({
61
- url: ajaxurl,
62
- data: {
63
- action: 'wp301_promo_submit',
64
- _ajax_nonce: wp301_promo.nonce_wp301_promo_submit,
65
- name: name,
66
- email: email,
67
- position: position,
68
- plugin: plugin,
69
- },
70
- })
71
- .always(function (data) {
72
- $(btn).removeClass('disabled');
73
- })
74
- .done(function (data) {
75
- if (data.success) {
76
- alert(data.data);
77
-
78
- if (position == 'dashboard') {
79
- $('#wp301promo_widget').hide();
80
- } else {
81
- $('#wp301-dialog').dialog('close');
82
- }
83
- } else {
84
- alert(data.data);
85
- }
86
- })
87
- .fail(function (data) {
88
- alert('Sorry, something is not right. Please reload the page and try again.');
89
- });
90
- });
91
-
92
-
93
- $('#wp301promo_name, #wp301promo_email').on('keypress', function (e) {
94
- if (e.which == 13) {
95
- $('#wp301promo_submit').trigger('click');
96
- }
97
- }); // on enter
98
-
99
-
100
- if (wp301_promo.open_popup && $('#wp301-dialog').length == 1) {
101
- $('#wp301-dialog').dialog({
102
- dialogClass: 'wp-dialog wp301-dialog',
103
- modal: true,
104
- resizable: false,
105
- width: 550,
106
- height: 'auto',
107
- show: 'fade',
108
- hide: 'fade',
109
- close: function (event, ui) {},
110
- open: function (event, ui) {
111
- $(this)
112
- .siblings()
113
- .find('span.ui-dialog-title')
114
- .html('Get a WP 301 Redirects PRO license for FREE <del>$158</del>');
115
- wp301_fix_dialog_close(event, ui);
116
- },
117
- autoOpen: true,
118
- closeOnEscape: false,
119
- });
120
- } // open dialog
121
- }); // jQuery ready
122
-
123
-
124
- function wp301_fix_dialog_close(event, ui) {
125
- jQuery('.ui-widget-overlay').bind('click', function () {
126
- jQuery('#' + event.target.id).dialog('close');
127
- });
128
- } // wp301_fix_dialog_close
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wp301/wp301.php DELETED
@@ -1,294 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Campaign for WP 301 Redirects PRO
5
- * (c) WebFactory Ltd, 2020
6
- */
7
-
8
-
9
- if (false == class_exists('wf_wp301')) {
10
- class wf_wp301
11
- {
12
- var $plugin_file = '';
13
- var $plugin_slug = '';
14
- var $plugin_screen = '';
15
- var $options = '';
16
-
17
-
18
- function __construct($plugin_file, $plugin_screen)
19
- {
20
- $this->plugin_file = $plugin_file;
21
- $this->plugin_slug = basename(dirname($plugin_file));
22
- $this->plugin_screen = $plugin_screen;
23
- $this->options = get_option('wp301promo', array());
24
-
25
- if (!is_admin() || !empty($this->options['email_submitted']) || date('Y-m-d') > '2020-12-15') {
26
- return;
27
- } else {
28
- add_action('admin_init', array($this, 'init'));
29
- }
30
- } // __construct
31
-
32
-
33
- function init()
34
- {
35
- add_action('wp_dashboard_setup', array($this, 'add_widget'));
36
- add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
37
- add_action('wp_ajax_wp301_promo_submit', array($this, 'ajax_submit'));
38
- add_action('wp_ajax_wp301_promo_dismiss', array($this, 'ajax_dismiss'));
39
- add_action('admin_footer', array($this, 'admin_footer'));
40
- } // init
41
-
42
-
43
- function admin_enqueue_scripts()
44
- {
45
- $screen = get_current_screen();
46
-
47
- if ($screen->base != 'dashboard' && $screen->id != $this->plugin_screen) {
48
- return;
49
- }
50
-
51
- if ($screen->base == 'dashboard' && !empty($this->options['popup_dismissed_dashboard'])) {
52
- return;
53
- }
54
-
55
- if ($screen->id == $this->plugin_screen) {
56
- wp_enqueue_style('wp-jquery-ui-dialog');
57
- wp_enqueue_script('jquery-ui-dialog');
58
- }
59
-
60
- wp_enqueue_script('wp301_promo', plugin_dir_url($this->plugin_file) . 'wp301/wp301.js');
61
-
62
- $js_vars = array(
63
- 'nonce_wp301_promo_submit' => wp_create_nonce('wp301_submit'),
64
- 'nonce_wp301_promo_dismiss' => wp_create_nonce('wp301_dismiss'),
65
- );
66
-
67
- if (empty($this->options['popup_dismissed_' . $this->plugin_slug])) {
68
- $js_vars['open_popup'] = true;
69
- }
70
-
71
- wp_localize_script('wp301_promo', 'wp301_promo', $js_vars);
72
- } // admin_enqueue_scripts
73
-
74
-
75
- function ajax_dismiss()
76
- {
77
- if (!wp_verify_nonce(@$_GET['_ajax_nonce'], 'wp301_dismiss')) {
78
- wp_send_json_error('Something is not right. Please reload the page and try again.');
79
- }
80
-
81
- $slug = substr(strip_tags(trim(@$_GET['slug'])), 0, 64);
82
-
83
- $this->options['popup_dismissed_' . $slug] = true;
84
- $tmp = update_option('wp301promo', $this->options);
85
-
86
- if ($tmp) {
87
- wp_send_json_success();
88
- } else {
89
- wp_send_json_error();
90
- }
91
- } // ajax_dismiss
92
-
93
-
94
- function ajax_submit()
95
- {
96
- if (!wp_verify_nonce(@$_GET['_ajax_nonce'], 'wp301_submit')) {
97
- wp_send_json_error('Something is not right. Please reload the page and try again.');
98
- }
99
-
100
- $email = strip_tags(trim(@$_GET['email']));
101
- $name = strip_tags(trim(@$_GET['name']));
102
- $plugin = strip_tags(trim(@$_GET['plugin'])) . '-' . strip_tags(trim(@$_GET['position']));
103
-
104
- if (!is_email($email)) {
105
- wp_send_json_error('Please enter a valid email address.');
106
- }
107
-
108
- $url = add_query_arg(array('name' => $name, 'email' => $email, 'plugin' => $plugin), 'https://wp301redirects.com/subscribe/');
109
-
110
- $response = wp_remote_get($url, array('timeout' => 25));
111
-
112
- if (is_wp_error($response)) {
113
- wp_send_json_error('Something is not right. Please reload the page and try again.');
114
- }
115
-
116
- $body = @json_decode(wp_remote_retrieve_body($response), true);
117
- if (empty($body['success'])) {
118
- wp_send_json_error('Something is not right. Please reload the page and try again.');
119
- }
120
-
121
- $this->options['email_submitted'] = true;
122
- update_option('wp301promo', $this->options);
123
- wp_send_json_success('Thank you for trusting us with your email! You\'ll hear from us soon 🚀');
124
- } // ajax_submit
125
-
126
-
127
- function add_widget()
128
- {
129
- if (!empty($this->options['popup_dismissed_dashboard'])) {
130
- return;
131
- }
132
-
133
- add_meta_box('wp301promo_widget', 'Get a WP 301 Redirects PRO license for FREE <del>$158</del>', array($this, 'widget_content'), 'dashboard', 'side', 'high');
134
- } // add_widget
135
-
136
-
137
- function widget_content()
138
- {
139
- $out = '';
140
-
141
- $out .= '<style>';
142
- $out .= '#wp301promo_widget .disabled { pointer-events: none; }';
143
- $out .= '#wp301promo_widget label { font-weight: normal; display: inline-block; width: 15%; margin-bottom: 10px; }';
144
- $out .= '#wp301promo_widget input { width: 74%; margin-bottom: 10px; }';
145
- $out .= '#wp301promo_widget .button-primary { padding: 14px 28px; text-decoration: none; line-height: 1; }';
146
- $out .= '#wp301promo_dismiss { font-style: italic; display: inline-block; color: #444; text-decoration: none; margin: 8px 0 0 0; }';
147
- $out .= '#wp301promo_dismiss:hover { text-decoration: underline; }';
148
- $out .= '#wp301promo_widget, #wp301promo_widget p { font-size: 14px; }';
149
- $out .= '#wp301promo_widget .title301 { font-weight: 600; margin: 10px 0 -10px 0; }';
150
- $out .= '#wp301promo_widget img { max-width: 45%; }';
151
- $out .= '#wp301promo_widget .center { text-align: center; }';
152
- $out .= '#wp301promo_email { margin-bottom: 0 !important; }';
153
- $out .= '#wp301promo_widget { background-color: #fafafa; }';
154
- $out .= '#wp301promo_widget li a { text-decoration: underline; }';
155
- $out .= '#wp301promo_widget .wp301inside { padding: 25px 12px 0px 12px; position: relative; }';
156
- $out .= '#wp301promo_widget p { margin-top: 14px; line-height: 1.5; }';
157
- $out .= '#wp301promo_widget small { margin-left: 17%; }';
158
- $out .= '#wp301promo_widget ul { font-size: 14px; margin: 0 0 20px 0; list-style-type: disc; list-style-position: inside; }';
159
- $out .= '#wp301promo_widget li { margin-bottom: 3px; }';
160
- $out .= '#wp301promo_submit span { display: none; text-decoration: none; margin-right: 10px; animation: wf-spin-animation 1.5s infinite linear; }';
161
- $out .= '#wp301promo_submit.disabled span { display: inline-block; }';
162
- $out .= '@keyframes wf-spin-animation {
163
- from { transform: rotate(0deg); }
164
- to { transform: rotate(360deg); }
165
- }';
166
- $out .= '#wp301promo_widget .inside { overflow: hidden; margin: 0; }
167
- .ribbon { margin: 0; padding: 11px 20px 10px 20px; background: #007cba; color: #FFF; font-weight: 800; position: absolute; top: -17px; right: -17px; transform: translateX(30%) translateY(0%) rotate(45deg); transform-origin: top left; letter-spacing: 1px; }
168
- .ribbon:before, .ribbon:after { content: ""; position: absolute; top:0; margin: 0 -1px; width: 100%; height: 100%; background: #007cba; }
169
- .ribbon:before { right:100%; }
170
- .ribbon:after { left:100%; }';
171
- $out .= '</style>';
172
-
173
- $plugin_url = plugin_dir_url($this->plugin_file);
174
-
175
- $out .= '<div class="ribbon">FREE</div>';
176
- $out .= '<div class="wp301inside">';
177
-
178
- $out .= '<div class="center"><a href="https://wp301redirects.com/free-license/?ref=free-' . $this->plugin_slug . '-dashboard" target="_blank"><img src="' . $plugin_url . 'wp301/wp301-logo.png' . '" alt="WP 301 Redirects PRO" title="WP 301 Redirects PRO"></a></div>';
179
-
180
- $out .= '<p>On November 6th <a href="https://www.webfactoryltd.com/" target="_blank">WebFactory Ltd</a> will give away a limited number of lifetime WP 301 Redirect PRO licenses, <b>each for 10 sites</b>. A $158 retail value! 🚀 Leave your email, we\'ll send you a link &amp; download your copy.</p><p style="margin-bottom: 0;"><b>What do I get?</b></p>';
181
-
182
- $out .= '<ul>';
183
- $out .= '<li>Automatically fix 404 errors &amp; URL typos</li>';
184
- $out .= '<li>Create advanced redirect rules &amp; control affiliate links</li>';
185
- $out .= '<li>Detailed log of all redirects &amp; 404s</li>';
186
- $out .= '<li>Manage all sites\' licenses from a central Dashboard</li>';
187
- $out .= '<li>Lifetime license for 10 sites. <a href="https://wp301redirects.com/free-license/?ref=free-' . $this->plugin_slug . '-dashboard" target="_blank">See all features</a></li>';
188
- $out .= '</ul>';
189
-
190
- $out .= '
191
- <div>
192
- <label for="wp301promo_name">Name:</label>
193
- <input type="text" name="wp301promo_name" id="wp301promo_name" placeholder="How shall we call you?"><br>
194
- <label for="wp301promo_email">Email:</label>
195
- <input type="text" name="wp301promo_email" id="wp301promo_email" placeholder="Your best email address to get the plugin"><br>
196
- <small>We hate spam as much as you do and never send it!</small>
197
- <input type="hidden" id="wp301promo_plugin" value="' . $this->plugin_slug . '">
198
- <input type="hidden" id="wp301promo_position" value="dashboard">
199
- </div>
200
-
201
- <p class="center">
202
- <a id="wp301promo_submit" class="button button-primary" href="#"><span class="dashicons dashicons-update"></span>I Want My FREE License <del>$158</del></a><br>
203
- <a id="wp301promo_dismiss" class="" href="#" data-plugin-slug="dashboard">I don\'t want a free license; don\'t show this again</a>
204
- </p>
205
- </div>';
206
-
207
- echo $out;
208
- } // widget_content
209
-
210
-
211
- function admin_footer()
212
- {
213
- $screen = get_current_screen();
214
- if ($screen->id != $this->plugin_screen) {
215
- return;
216
- }
217
-
218
- $out = '';
219
-
220
- $out .= '<style>';
221
- $out .= '#wp301promo_widget .disabled { pointer-events: none; }';
222
- $out .= '.wp301-dialog .ui-dialog-titlebar-close { visibility: hidden; }';
223
- $out .= '#wp301-dialog label { font-weight: normal; display: inline-block; width: 15%; margin-bottom: 10px; }';
224
- $out .= '#wp301-dialog input { width: 74%; margin-bottom: 10px; }';
225
- $out .= '#wp301-dialog .button-primary { background-color: #007cba; border: 1px solid #007cba; padding: 14px 28px; text-decoration: none; line-height: 1; }';
226
- $out .= '#wp301-dialog, #wp301-dialog p { font-size: 14px; }';
227
- $out .= '#wp301-dialog .title301 { font-size: 1.3em; font-weight: 600; margin: 10px 0 -10px 0; }';
228
- $out .= '#wp301-dialog img { max-width: 60%; }';
229
- $out .= '#wp301-dialog li a { text-decoration: underline; }';
230
- $out .= '#wp301-dialog small { margin-left: 16%; }';
231
- $out .= '#wp301-dialog .center { text-align: center; }';
232
- $out .= '#wp301-dialog, .wp301-dialog .ui-dialog-titlebar { background-color: #fafafa; }';
233
- $out .= '#wp301-dialog .wp301inside { padding: 12px 12px 0px 12px; }';
234
- $out .= '#wp301-dialog p { margin-top: 14px; line-height: 1.5; }';
235
- $out .= '#wp301-dialog ul { margin: 0 0 20px 0; list-style-type: disc; list-style-position: inside; }';
236
- $out .= '#wp301-dialog li { margin-bottom: 3px; }';
237
- $out .= '#wp301promo_dismiss { display: inline-block; color: #444; text-decoration: none; margin: 8px 0 0 0; }';
238
- $out .= '#wp301promo_dismiss:hover { text-decoration: underline; }';
239
- $out .= '#wp301promo_submit span { display: none; text-decoration: none; margin-right: 10px; animation: wf-spin-animation 1.5s infinite linear; }';
240
- $out .= '#wp301promo_submit.disabled span { display: inline-block; }';
241
- $out .= '@keyframes wf-spin-animation {
242
- from { transform: rotate(0deg); }
243
- to { transform: rotate(360deg); }
244
- }';
245
- $out .= '#wp301promo_widget .inside { overflow: hidden; margin: 0; }
246
- #wp301-dialog .ribbon { margin: 0; padding: 11px 20px 10px 20px; background: #007cba; color: #FFF; font-weight: 800; position: absolute; top: -17px; right: -17px; transform: translateX(30%) translateY(0%) rotate(45deg); transform-origin: top left; letter-spacing: 1px; }
247
- #wp301-dialog .ribbon:before, #wp301-dialog .ribbon:after { content: ""; position: absolute; top:0; margin: 0 -1px; width: 100%; height: 100%; background: #007cba; }
248
- #wp301-dialog .ribbon:before { right:100%; }
249
- #wp301-dialog .ribbon:after { left:100%; }';
250
- $out .= '</style>';
251
-
252
- $out .= '<div id="wp301-dialog" style="display: none;" title="Get a WP 301 Redirects PRO license for FREE"><span class="ui-helper-hidden-accessible"><input type="text"/></span>';
253
-
254
- $plugin_url = plugin_dir_url($this->plugin_file);
255
-
256
- $out .= '<div class="wp301inside">';
257
- $out .= '<div class="ribbon">FREE</div>';
258
-
259
- $out .= '<div class="center"><a href="https://wp301redirects.com/free-license/?ref=free-' . $this->plugin_slug . '-popup" target="_blank"><img src="' . $plugin_url . 'wp301/wp301-logo.png' . '" alt="WP 301 Redirects PRO" title="WP 301 Redirects PRO"></a></div>';
260
-
261
- $out .= '<p>On November 6th <a href="https://www.webfactoryltd.com/" target="_blank">WebFactory Ltd</a> will give away a limited number of lifetime WP 301 Redirect PRO licenses, <b>each for 10 sites</b>. A $158 retail value! 🚀 Leave your email, we\'ll send you a link &amp; download your copy.</p><p style="margin-bottom: 0;"><b>What do I get?</b></p>';
262
-
263
- $out .= '<ul>';
264
- $out .= '<li>Automatically fix 404 errors &amp; URL typos</li>';
265
- $out .= '<li>Create advanced redirect rules &amp; control affiliate links</li>';
266
- $out .= '<li>Detailed log of all redirects &amp; 404s</li>';
267
- $out .= '<li>Manage all sites\' licenses from a central Dashboard</li>';
268
- $out .= '<li>Lifetime license for 10 sites. <a href="https://wp301redirects.com/free-license/?ref=free-' . $this->plugin_slug . '-popup" target="_blank">See all features</a></li>';
269
- $out .= '</ul>';
270
-
271
- $out .= '
272
- <div>
273
- <label for="wp301promo_name">Name:</label>
274
- <input type="text" name="wp301promo_name" id="wp301promo_name" placeholder="How shall we call you?"><br>
275
- <label for="wp301promo_email">Email:</label>
276
- <input type="text" name="wp301promo_email" id="wp301promo_email" placeholder="Your best email address to get the plugin"><br>
277
- <small>We hate spam as much as you do and never send it!</small>
278
- <input type="hidden" id="wp301promo_plugin" value="' . $this->plugin_slug . '">
279
- <input type="hidden" id="wp301promo_position" value="popup">
280
- </div>
281
-
282
- <p class="center">
283
- <a id="wp301promo_submit" class="button button-primary" href="#"><span class="dashicons dashicons-update"></span>I Want My FREE License <del>$158</del></a><br>
284
- <a id="wp301promo_dismiss" class="" href="#" data-plugin-slug="' . $this->plugin_slug . '">I don\'t want a free license; don\'t show this again</a>
285
- </p>
286
-
287
- </div>';
288
-
289
- $out .= '</div>';
290
-
291
- echo $out;
292
- } // wp_footer
293
- } // wf_wp301
294
- }