Under Construction - Version 3.88

Version Description

  • 2021/02/20
  • 500,000 installations hit on 2021/01/31
  • added support for Cache Enabler plugin
Download this release

Release Info

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

Code changes from version 3.87 to 3.88

css/ucp-admin.css CHANGED
@@ -1027,7 +1027,7 @@ Any+Time is a trademark of Andrew M. Andrews III */
1027
 
1028
  .ucp-pro-feature p {
1029
  margin: 10px 0 0 0;
1030
- text-align: justify;
1031
  }
1032
 
1033
  h3.ucp-pro-logo {
@@ -1262,13 +1262,3 @@ option.weglot-promo {
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
- }
1027
 
1028
  .ucp-pro-feature p {
1029
  margin: 10px 0 0 0;
1030
+ text-align: left;
1031
  }
1032
 
1033
  h3.ucp-pro-logo {
1262
  .settings_page_ucp div.fs-notice {
1263
  display: none !important;
1264
  }
 
 
 
 
 
 
 
 
 
 
images/accessibe-logo.png DELETED
Binary file
images/mailoptin-logo-white.png DELETED
Binary file
js/ucp-admin.js CHANGED
@@ -329,38 +329,6 @@ jQuery(document).ready(function($) {
329
  return false;
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,16 +391,6 @@ jQuery(document).ready(function($) {
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
 
329
  return false;
330
  });
331
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
332
  // zebra on pricing table, per column
333
  $('#ucp-pricing-table').find('tr').each(function() {
334
  $(this).find('td').eq(1).addClass('hover');
391
  return false;
392
  });
393
 
 
 
 
 
 
 
 
 
 
 
394
  $('.settings_page_ucp').on('click change', '.open-smush-install', function(e) {
395
  e.preventDefault();
396
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: WebFactory
3
  Tags: coming soon page, under construction mode, under construction, under construction page, coming soon, maintenance mode, maintenance page, launch page, coming soon mode, maintenance mode page, offline page, maintenance, landing page
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
- Tested up to: 5.6
7
- Stable tag: 3.87
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -57,7 +57,7 @@ Thanks to our partnership with <a href="https://wordpress.org/plugins/weglot/">W
57
  * Whitelisted User Roles - user roles who see the site, instead of under construction page
58
  * Whitelisted Users - users who see the site, instead of under construction page
59
 
60
- Under Construction Page is compatible with the following caching plugins: W3 Total Cache, WP Super Cache, Endurance Page Cache, SiteGround SuperCacher, WP Fastest Cache, Swift Performance Cache, WP Rocket, and Hummingbird cache.
61
 
62
 
63
  **What are others saying about the Under Construction Page plugin**
@@ -134,6 +134,11 @@ Or if needed, upload manually;
134
 
135
  == Changelog ==
136
 
 
 
 
 
 
137
  = 3.87 =
138
  * 2021/01/30
139
  * removed promo for WF plugins
3
  Tags: coming soon page, under construction mode, under construction, under construction page, coming soon, maintenance mode, maintenance page, launch page, coming soon mode, maintenance mode page, offline page, maintenance, landing page
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
+ Tested up to: 5.8
7
+ Stable tag: 3.88
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
57
  * Whitelisted User Roles - user roles who see the site, instead of under construction page
58
  * Whitelisted Users - users who see the site, instead of under construction page
59
 
60
+ Under Construction Page is compatible with the following caching plugins: W3 Total Cache, WP Super Cache, Endurance Page Cache, SiteGround SuperCacher, WP Fastest Cache, Swift Performance Cache, WP Rocket, Cache Enabler, and Hummingbird cache.
61
 
62
 
63
  **What are others saying about the Under Construction Page plugin**
134
 
135
  == Changelog ==
136
 
137
+ = 3.88 =
138
+ * 2021/02/20
139
+ * 500,000 installations hit on 2021/01/31
140
+ * added support for Cache Enabler plugin
141
+
142
  = 3.87 =
143
  * 2021/01/30
144
  * removed promo for WF plugins
under-construction.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: https://underconstructionpage.com/
5
  Description: Put your site behind a great looking under construction, coming soon, maintenance mode or landing page.
6
  Author: WebFactory Ltd
7
- Version: 3.87
8
  Requires at least: 4.0
9
  Requires PHP: 5.2
10
  Tested up to: 5.6
@@ -92,7 +92,6 @@ class UCP {
92
  add_action('admin_action_ucp_change_status', array(__CLASS__, 'change_status'));
93
  add_action('admin_action_ucp_reset_settings', array(__CLASS__, 'reset_settings'));
94
  add_action('admin_action_install_weglot', array(__CLASS__, 'install_weglot'));
95
- add_action('admin_action_install_accessibe', array(__CLASS__, 'install_accessibe'));
96
 
97
  // enqueue admin scripts
98
  add_action('admin_enqueue_scripts', array(__CLASS__, 'admin_enqueue_scripts'), 100, 1);
@@ -327,9 +326,7 @@ class UCP {
327
  'is_activated' => UCP_license::is_activated(),
328
  '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' . '">',
329
  'weglot_dialog_upsell_title' => '<img alt="' . __('Weglot', 'under-construction-page') . '" title="' . __('Weglot', 'under-construction-page') . '" src="' . UCP_PLUGIN_URL . 'images/weglot-logo-white.png' . '">',
330
- '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' . '">',
331
  'weglot_install_url' => add_query_arg(array('action' => 'install_weglot'), admin_url('admin.php')),
332
- 'accessibe_install_url' => add_query_arg(array('action' => 'install_accessibe'), admin_url('admin.php')),
333
  'nonce_dismiss_survey' => wp_create_nonce('ucp_dismiss_survey'),
334
  'nonce_submit_survey' => wp_create_nonce('ucp_submit_survey'),
335
  'nonce_submit_support_message' => wp_create_nonce('ucp_submit_support_message'),
@@ -646,12 +643,6 @@ class UCP {
646
 
647
  $out = apply_filters('ucp_footer', $out, $options, $template_id);
648
 
649
- if (is_plugin_active('accessibe/accessiebe.php') && is_callable(array('Accessibe', 'render_js_in_footer'))) {
650
- ob_start();
651
- Accessibe::render_js_in_footer();
652
- $out .= ob_get_clean();
653
- }
654
-
655
  return $out;
656
  } // generate_footer
657
 
@@ -829,7 +820,7 @@ class UCP {
829
  $dismiss_url = add_query_arg(array('action' => 'ucp_dismiss_notice', 'notice' => 'welcome', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
830
 
831
  echo '<div id="ucp_rate_notice" class="notice-info notice"><p>Hi' . $name . ',<br>';
832
- echo 'We have a <a class="open-ucp-upsell" data-pro-ad="notification-welcome-text" href="#">special time-sensitive offer</a> available just for another <b class="ucp-countdown">59min</b>! A <b>20% DISCOUNT</b> on our most popular lifetime licenses!<br>No nonsense! Pay once and use the plugin forever. <a class="open-ucp-upsell" data-pro-ad="notification-welcome-text2" href="#">Get</a> more than 50+ extra features, 220+ premium themes and over a million professional images.</p>';
833
 
834
  echo '<a href="#" class="button-primary open-ucp-upsell" data-pro-ad="notification-welcome-button">Upgrade to PRO now with a SPECIAL 20% WELCOME DISCOUNT</a>';
835
  echo '&nbsp;&nbsp;&nbsp;&nbsp;<a href="' . esc_url($dismiss_url) . '"><small>' . __('I\'m not interested (remove this notice)', 'under-construction-page') . '</small></a>';
@@ -844,7 +835,7 @@ class UCP {
844
  $dismiss_url = add_query_arg(array('action' => 'ucp_dismiss_notice', 'notice' => 'olduser', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
845
 
846
  echo '<div id="ucp_rate_notice" class="notice-info notice"><p>Hi' . $name . ',<br>';
847
- echo 'We have a <a class="open-ucp-upsell" data-pro-ad="notification-olduser-text" href="#">special offer</a> only for <b>users like you</b> who\'ve been using the UnderConstructionPage for a longer period of time: a <b>special DISCOUNT</b> on our most popular lifetime licenses!<br>No nonsense! Pay once and use the plugin forever.<br><a class="open-ucp-upsell" data-pro-ad="notification-olduser-text" href="#">Upgrade now</a> to <b>PRO</b> &amp; get more than 50+ extra features, 220+ premium themes and over a million HD images.</p>';
848
 
849
  echo '<a href="#" class="button-primary open-ucp-upsell" data-pro-ad="notification-olduser-button">Upgrade to PRO now with a SPECIAL DISCOUNT</a>';
850
  echo '&nbsp;&nbsp;&nbsp;&nbsp;<a href="' . esc_url($dismiss_url) . '"><small>' . __('I\'m not interested (remove this notice)', 'under-construction-page') . '</small></a>';
@@ -1130,46 +1121,7 @@ class UCP {
1130
  'whitelisted_users' => array()
1131
  );
1132
 
1133
- $defaults_000 = array('status' => '1',
1134
- 'license_key' => '',
1135
- 'license_active' => false,
1136
- 'license_expires' => '1900-01-01',
1137
- 'license_type' => '',
1138
- 'end_date' => '',
1139
- 'ga_tracking_id' => '',
1140
- 'theme' => '000webhost',
1141
- 'custom_css' => '',
1142
- 'title' => '[site-title] is under construction',
1143
- 'description' => '[site-tagline]',
1144
- 'heading1' => __('We\'re building our brand new site', 'under-construction-page'),
1145
- 'content' => __('Powered by <a href="https://www.000webhost.com/" target="_blank">000webhost</a>.', 'under-construction-page'),
1146
- 'social_facebook' => '',
1147
- 'social_twitter' => '',
1148
- 'social_linkedin' => '',
1149
- 'social_youtube' => '',
1150
- 'social_vimeo' => '',
1151
- 'social_pinterest' => '',
1152
- 'social_dribbble' => '',
1153
- 'social_behance' => '',
1154
- 'social_instagram' => '',
1155
- 'social_tumblr' => '',
1156
- 'social_vk' => '',
1157
- 'social_email' => '',
1158
- 'social_phone' => '',
1159
- 'social_skype' => '',
1160
- 'social_telegram' => '',
1161
- 'social_whatsapp' => '',
1162
- 'login_button' => '1',
1163
- 'linkback' => '0',
1164
- 'whitelisted_roles' => array('administrator'),
1165
- 'whitelisted_users' => array()
1166
- );
1167
-
1168
- if (stripos($_SERVER['HTTP_HOST'], '000webhost') !== false) {
1169
- return $defaults_000;
1170
- } else {
1171
- return $defaults;
1172
- }
1173
  } // default_options
1174
 
1175
 
@@ -1309,6 +1261,7 @@ class UCP {
1309
  if (function_exists('rocket_clean_domain')) {
1310
  rocket_clean_domain();
1311
  }
 
1312
  } // empty_cache
1313
 
1314
 
@@ -1383,12 +1336,13 @@ class UCP {
1383
  $page = '/';
1384
  }
1385
 
1386
- if (stripos($_SERVER['HTTP_HOST'], '000webhost') !== false) {
1387
- $parts = array_merge(array('utm_source' => 'ucp-free-000webhost', 'utm_medium' => 'plugin', 'utm_content' => $placement, 'utm_campaign' => 'ucp-free-v' . self::$version), $params);
1388
- } else {
1389
- $parts = array_merge(array('utm_source' => 'ucp-free', 'utm_medium' => 'plugin', 'utm_content' => $placement, 'utm_campaign' => 'ucp-free-v' . self::$version), $params);
1390
  }
1391
 
 
 
1392
  if (!empty($anchor)) {
1393
  $anchor = '#' . trim($anchor, '#');
1394
  }
@@ -1453,25 +1407,6 @@ class UCP {
1453
  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>';
1454
  echo '</td></tr>';
1455
 
1456
- if (is_plugin_active('accessibe/accessiebe.php')) {
1457
- echo '<tr id="accessibe-settings">';
1458
- echo '<th><label for="accessibe">Site Accessibility</label></th>';
1459
- echo '<td>';
1460
- echo '<p>Open <a href="' . admin_url('options-general.php?page=accessiBe') . '">accessiBe settings</a> to configure your site\'s accessibility.</p>';
1461
- echo '</td>';
1462
- echo '</tr>';
1463
- } else {
1464
- echo '<tr>';
1465
- echo '<th><label for="weglot_support">Site Accessibility</label></th>';
1466
- echo '<td>';
1467
- echo '<div class="toggle-wrapper">
1468
- <input type="checkbox" id="accessibe" type="checkbox" value="1" class="skip-save open-accessibe-upsell">
1469
- <label for="accessibe" class="toggle"><span class="toggle_handler"></span></label></div>';
1470
- echo '<p>Over 20% of people that use the Internet have a disability. They need help accessing sites that the rest of us take for granted. Your under construction page is currently not fully accessible to them. Make your site accessible from day one to everybody by installing the <a href="#" class="open-accessibe-upsell">accessiBe plugin</a> powered by AI-enhanced accessiBe service. It enhances accessibility &amp; usability of any site.</p>';
1471
- echo '</td>';
1472
- echo '</tr>';
1473
- } // accessibe not active
1474
-
1475
  $reset_url = add_query_arg(array('action' => 'ucp_reset_settings', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
1476
  $reset_url = wp_nonce_url($reset_url, 'ucp_reset_settings');
1477
  echo '<tr valign="top">
@@ -1812,11 +1747,6 @@ class UCP {
1812
  $img_path = UCP_PLUGIN_URL . 'images/thumbnails/';
1813
  $themes = self::get_themes();
1814
 
1815
- if (!is_plugin_active('accessibe/accessiebe.php')) {
1816
- echo '<div class="ucp-notice-small"><p><b>Make your website accessible to users with disabilities</b> - Having an accessible website is a must in 2021. It will not only save you from hefty fines but grow your audience too because over 20% of users have a disability. Make your site accessible and user-friendly from day one by using the <a href="#" class="open-accessibe-upsell">accessiBe service &amp; plugin</a>.';
1817
- echo '</p></div>';
1818
- }
1819
-
1820
  echo '<table class="form-table">';
1821
  echo '<tr valign="top">
1822
  <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>';
@@ -2153,23 +2083,6 @@ class UCP {
2153
  echo '</div>';
2154
  // weglot install dialog
2155
 
2156
- // accessibe install dialog
2157
- echo '<div id="accessibe-upsell-dialog" style="display: none;" title="accessiBe"><span class="ui-helper-hidden-accessible"><input type="text"/></span>';
2158
- echo '<div style="padding: 20px; font-size: 15px;">';
2159
- echo '<ul class="ucp-list">';
2160
- echo '<li>Make your site user-friendly for people with disabilities</li>';
2161
- echo '<li>Fully automated WordPress accessibility service</li>';
2162
- echo '<li>Protect your site from lawsuits and increase the audience</li>';
2163
- echo '<li>The free accessiBe plugin sets up in 5 minutes. No coding required</li>';
2164
- echo '<li>Compatible with all WordPress themes and plugins</li>';
2165
- echo '<li>AI-powered</li>';
2166
- echo '<li>7-day free trial available</li>';
2167
- echo '</ul>';
2168
- echo '<p class="upsell-footer"><a class="button button-primary" id="install-accessibe">Install &amp; activate accessiBe to make your website accessible</a></p>';
2169
- echo '</div>';
2170
- echo '</div>';
2171
- // accessibe install dialog
2172
-
2173
  $promo = self::is_promo_active();
2174
  if ($promo == 'welcome') {
2175
  $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>.';
@@ -2203,7 +2116,7 @@ class UCP {
2203
  echo '</div>';
2204
 
2205
  echo '<div class="ucp-pro-feature">';
2206
- echo '<span>1 Million+ HD Searchable Images</span>';
2207
  echo '<p>There\'s nothing worse than googling for hours just to find that the perfect image you need is either copyrighted or too small. Enjoy a vast library of 4K+ sized images - categorized &amp; copyright free!</p>';
2208
  echo '</div>';
2209
 
@@ -2278,12 +2191,12 @@ class UCP {
2278
  <td>Drag&amp;Drop Builder</td>
2279
  </tr>
2280
  <tr>
2281
- <td>130+ PRO Templates</td>
2282
- <td>130+ PRO Templates</td>
2283
- <td>130+ PRO Templates</td>
2284
  </tr>
2285
  <tr>
2286
- <td>90+ Agency Templates</td>
2287
  <td><span class="dashicons dashicons-no"></td>
2288
  <td><span class="dashicons dashicons-no"></td>
2289
  </tr>
@@ -2409,63 +2322,6 @@ class UCP {
2409
  echo '</div>';
2410
  } // install_weglot
2411
 
2412
- // auto download / install / activate Accessibe plugin
2413
- static function install_accessibe() {
2414
- if (false === current_user_can('administrator')) {
2415
- wp_die('Sorry, you have to be an admin to run this action.');
2416
- }
2417
-
2418
- $plugin_slug = 'accessibe/accessiebe.php';
2419
- $plugin_zip = 'https://downloads.wordpress.org/plugin/accessibe.latest-stable.zip';
2420
-
2421
- @include_once ABSPATH . 'wp-admin/includes/plugin.php';
2422
- @include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
2423
- @include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
2424
- @include_once ABSPATH . 'wp-admin/includes/file.php';
2425
- @include_once ABSPATH . 'wp-admin/includes/misc.php';
2426
- echo '<style>
2427
- body{
2428
- font-family: sans-serif;
2429
- font-size: 14px;
2430
- line-height: 1.5;
2431
- color: #444;
2432
- }
2433
- </style>';
2434
-
2435
- echo '<div style="margin: 20px; color:#444;">';
2436
- 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>';
2437
- echo 'Starting ...<br><br>';
2438
-
2439
- wp_cache_flush();
2440
- $upgrader = new Plugin_Upgrader();
2441
- echo 'Check if accessiBe is already installed ... <br />';
2442
- if (self::is_plugin_installed($plugin_slug)) {
2443
- echo 'accessiBe is already installed! <br /><br />Making sure it\'s the latest version.<br />';
2444
- $upgrader->upgrade($plugin_slug);
2445
- $installed = true;
2446
- } else {
2447
- echo 'Installing accessiBe.<br />';
2448
- $installed = $upgrader->install($plugin_zip);
2449
- }
2450
- wp_cache_flush();
2451
-
2452
- if (!is_wp_error($installed) && $installed) {
2453
- echo 'Activating accessiBe.<br />';
2454
- $activate = activate_plugin($plugin_slug);
2455
-
2456
- if (is_null($activate)) {
2457
- echo 'accessiBe Activated.<br />';
2458
-
2459
- echo '<script>setTimeout(function() { top.location = "options-general.php?page=ucp"; }, 1000);</script>';
2460
- echo '<br>If you are not redirected in a few seconds - <a href="options-general.php?page=ucp" target="_parent">click here</a>.';
2461
- }
2462
- } else {
2463
- 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>.';
2464
- }
2465
-
2466
- echo '</div>';
2467
- } // install_accessibe
2468
-
2469
 
2470
  static function is_plugin_installed($slug) {
2471
  if (!function_exists('get_plugins')) {
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.88
8
  Requires at least: 4.0
9
  Requires PHP: 5.2
10
  Tested up to: 5.6
92
  add_action('admin_action_ucp_change_status', array(__CLASS__, 'change_status'));
93
  add_action('admin_action_ucp_reset_settings', array(__CLASS__, 'reset_settings'));
94
  add_action('admin_action_install_weglot', array(__CLASS__, 'install_weglot'));
 
95
 
96
  // enqueue admin scripts
97
  add_action('admin_enqueue_scripts', array(__CLASS__, 'admin_enqueue_scripts'), 100, 1);
326
  'is_activated' => UCP_license::is_activated(),
327
  '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' . '">',
328
  'weglot_dialog_upsell_title' => '<img alt="' . __('Weglot', 'under-construction-page') . '" title="' . __('Weglot', 'under-construction-page') . '" src="' . UCP_PLUGIN_URL . 'images/weglot-logo-white.png' . '">',
 
329
  'weglot_install_url' => add_query_arg(array('action' => 'install_weglot'), admin_url('admin.php')),
 
330
  'nonce_dismiss_survey' => wp_create_nonce('ucp_dismiss_survey'),
331
  'nonce_submit_survey' => wp_create_nonce('ucp_submit_survey'),
332
  'nonce_submit_support_message' => wp_create_nonce('ucp_submit_support_message'),
643
 
644
  $out = apply_filters('ucp_footer', $out, $options, $template_id);
645
 
 
 
 
 
 
 
646
  return $out;
647
  } // generate_footer
648
 
820
  $dismiss_url = add_query_arg(array('action' => 'ucp_dismiss_notice', 'notice' => 'welcome', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
821
 
822
  echo '<div id="ucp_rate_notice" class="notice-info notice"><p>Hi' . $name . ',<br>';
823
+ echo 'We have a <a class="open-ucp-upsell" data-pro-ad="notification-welcome-text" href="#">special time-sensitive offer</a> available just for another <b class="ucp-countdown">59min</b>! A <b>20% DISCOUNT</b> on our most popular lifetime licenses!<br>No nonsense! Pay once and use the plugin forever. <a class="open-ucp-upsell" data-pro-ad="notification-welcome-text2" href="#">Get</a> more than 50+ extra features, 250+ premium themes and over two million professional images.</p>';
824
 
825
  echo '<a href="#" class="button-primary open-ucp-upsell" data-pro-ad="notification-welcome-button">Upgrade to PRO now with a SPECIAL 20% WELCOME DISCOUNT</a>';
826
  echo '&nbsp;&nbsp;&nbsp;&nbsp;<a href="' . esc_url($dismiss_url) . '"><small>' . __('I\'m not interested (remove this notice)', 'under-construction-page') . '</small></a>';
835
  $dismiss_url = add_query_arg(array('action' => 'ucp_dismiss_notice', 'notice' => 'olduser', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
836
 
837
  echo '<div id="ucp_rate_notice" class="notice-info notice"><p>Hi' . $name . ',<br>';
838
+ echo 'We have a <a class="open-ucp-upsell" data-pro-ad="notification-olduser-text" href="#">special offer</a> only for <b>users like you</b> who\'ve been using the UnderConstructionPage for a longer period of time: a <b>special DISCOUNT</b> on our most popular lifetime licenses!<br>No nonsense! Pay once and use the plugin forever.<br><a class="open-ucp-upsell" data-pro-ad="notification-olduser-text" href="#">Upgrade now</a> to <b>PRO</b> &amp; get more than 50+ extra features, 220+ premium themes and over two million HD images.</p>';
839
 
840
  echo '<a href="#" class="button-primary open-ucp-upsell" data-pro-ad="notification-olduser-button">Upgrade to PRO now with a SPECIAL DISCOUNT</a>';
841
  echo '&nbsp;&nbsp;&nbsp;&nbsp;<a href="' . esc_url($dismiss_url) . '"><small>' . __('I\'m not interested (remove this notice)', 'under-construction-page') . '</small></a>';
1121
  'whitelisted_users' => array()
1122
  );
1123
 
1124
+ return $defaults;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1125
  } // default_options
1126
 
1127
 
1261
  if (function_exists('rocket_clean_domain')) {
1262
  rocket_clean_domain();
1263
  }
1264
+ do_action('cache_enabler_clear_complete_cache');
1265
  } // empty_cache
1266
 
1267
 
1336
  $page = '/';
1337
  }
1338
 
1339
+ if ($placement) {
1340
+ $placement = trim($placement, '-');
1341
+ $placement = '-' . $placement;
 
1342
  }
1343
 
1344
+ $parts = array_merge(array('ref' => 'ucp-free' . $placement), $params);
1345
+
1346
  if (!empty($anchor)) {
1347
  $anchor = '#' . trim($anchor, '#');
1348
  }
1407
  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>';
1408
  echo '</td></tr>';
1409
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1410
  $reset_url = add_query_arg(array('action' => 'ucp_reset_settings', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
1411
  $reset_url = wp_nonce_url($reset_url, 'ucp_reset_settings');
1412
  echo '<tr valign="top">
1747
  $img_path = UCP_PLUGIN_URL . 'images/thumbnails/';
1748
  $themes = self::get_themes();
1749
 
 
 
 
 
 
1750
  echo '<table class="form-table">';
1751
  echo '<tr valign="top">
1752
  <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>';
2083
  echo '</div>';
2084
  // weglot install dialog
2085
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2086
  $promo = self::is_promo_active();
2087
  if ($promo == 'welcome') {
2088
  $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>.';
2116
  echo '</div>';
2117
 
2118
  echo '<div class="ucp-pro-feature">';
2119
+ echo '<span>2.5+ Million HD Searchable Images</span>';
2120
  echo '<p>There\'s nothing worse than googling for hours just to find that the perfect image you need is either copyrighted or too small. Enjoy a vast library of 4K+ sized images - categorized &amp; copyright free!</p>';
2121
  echo '</div>';
2122
 
2191
  <td>Drag&amp;Drop Builder</td>
2192
  </tr>
2193
  <tr>
2194
+ <td>120+ PRO Templates</td>
2195
+ <td>120+ PRO Templates</td>
2196
+ <td>120+ PRO Templates</td>
2197
  </tr>
2198
  <tr>
2199
+ <td>110+ Agency Templates</td>
2200
  <td><span class="dashicons dashicons-no"></td>
2201
  <td><span class="dashicons dashicons-no"></td>
2202
  </tr>
2322
  echo '</div>';
2323
  } // install_weglot
2324
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2325
 
2326
  static function is_plugin_installed($slug) {
2327
  if (!function_exists('get_plugins')) {
wf-flyout/config.php CHANGED
@@ -11,6 +11,7 @@ $config['custom_css'] = '';
11
 
12
  $config['menu_items'] = array(
13
  array('href' => 'https://underconstructionpage.com/?ref=wff-ucp&coupon=welcome', 'target' => '_blank', 'label' => 'Get UnderConstrucionPage PRO with 20% OFF', 'icon' => 'dashicons-star-filled', 'class' => 'accent'),
 
14
  array('href' => 'https://wpsticky.com/?ref=wff-ucp', 'target' => '_blank', 'label' => 'Make a menu sticky with WP Sticky', 'icon' => 'dashicons-admin-post'),
15
  array('href' => 'https://wpreset.com/?ref=wff-ucp', 'target' => '_blank', 'label' => 'Need to start over? Get WP Reset', 'icon' => 'wp-reset.png'),
16
  array('href' => 'https://wordpress.org/support/plugin/under-construction-page/reviews/?filter=5#new-post', 'target' => '_blank', 'label' => 'Rate the Plugin', 'icon' => 'dashicons-thumbs-up'),
11
 
12
  $config['menu_items'] = array(
13
  array('href' => 'https://underconstructionpage.com/?ref=wff-ucp&coupon=welcome', 'target' => '_blank', 'label' => 'Get UnderConstrucionPage PRO with 20% OFF', 'icon' => 'dashicons-star-filled', 'class' => 'accent'),
14
+ array('href' => 'https://wp301redirects.com/?ref=wff-ucp&coupon=50off', 'label' => 'Fix 2 most common SEO issues on WordPress', 'icon' => '301-logo.png', 'class' => 'wp301-icon'),
15
  array('href' => 'https://wpsticky.com/?ref=wff-ucp', 'target' => '_blank', 'label' => 'Make a menu sticky with WP Sticky', 'icon' => 'dashicons-admin-post'),
16
  array('href' => 'https://wpreset.com/?ref=wff-ucp', 'target' => '_blank', 'label' => 'Need to start over? Get WP Reset', 'icon' => 'wp-reset.png'),
17
  array('href' => 'https://wordpress.org/support/plugin/under-construction-page/reviews/?filter=5#new-post', 'target' => '_blank', 'label' => 'Rate the Plugin', 'icon' => 'dashicons-thumbs-up'),
wf-flyout/icons/301-logo.png ADDED
Binary file
wf-flyout/wf-flyout.php CHANGED
@@ -124,7 +124,7 @@ if (false == class_exists('wf_flyout')) {
124
 
125
  $out = '';
126
  $icons_url = plugin_dir_url($this->plugin_file) . 'wf-flyout/icons/';
127
- $default_link_item = array('class' => '', 'href' => '#', 'target' => '_blank', 'label' => '', 'icon' => '');
128
 
129
  $out .= '<div id="wff-overlay"></div>';
130
 
@@ -148,7 +148,7 @@ if (false == class_exists('wf_flyout')) {
148
  $item['class'] = trim($item['class']);
149
  }
150
 
151
- $out .= '<a href="' . $item['href'] . '" class="wff-menu-item wff-menu-item-' . $i . ' ' . $item['class'] . '" target="_blank">';
152
  $out .= '<span class="wff-label visible">' . $item['label'] . '</span>';
153
  if (substr($item['icon'], 0, 9) == 'dashicons') {
154
  $out .= '<span class="dashicons ' . $item['icon'] . '"></span>';
124
 
125
  $out = '';
126
  $icons_url = plugin_dir_url($this->plugin_file) . 'wf-flyout/icons/';
127
+ $default_link_item = array('class' => '', 'href' => '#', 'target' => '_blank', 'label' => '', 'icon' => '', 'data' => '');
128
 
129
  $out .= '<div id="wff-overlay"></div>';
130
 
148
  $item['class'] = trim($item['class']);
149
  }
150
 
151
+ $out .= '<a ' . $item['data'] . ' href="' . $item['href'] . '" class="wff-menu-item wff-menu-item-' . $i . ' ' . $item['class'] . '" target="_blank">';
152
  $out .= '<span class="wff-label visible">' . $item['label'] . '</span>';
153
  if (substr($item['icon'], 0, 9) == 'dashicons') {
154
  $out .= '<span class="dashicons ' . $item['icon'] . '"></span>';