Coming Soon, Under Construction & Maintenance Page - Version 1.56

Version Description

  • 2019/08/07
  • NotificationX integration
  • bug fix with notification - we apologize :(
Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Coming Soon, Under Construction & Maintenance Page
Version 1.56
Comparing to
See all releases

Code changes from version 1.55 to 1.56

admin/includes/class-ot-cleanup.php CHANGED
@@ -46,19 +46,21 @@ if ( ! class_exists( 'OT_Cleanup' ) ) {
46
  }
47
 
48
 
49
- public function admin_footer() {
50
- if(!nifty_is_notificationx_really_setup_and_active()) {
51
- echo '<div id="notificationx-popup">
52
- <div class="notificationx-popup-icon"><img alt="Notification X" src="' . OT_URL . '/assets/images/nx-icon.png' . '"></div>
53
- <div class="notificationx-popup-text">435 people rated <br />
54
- <div class="notificationx-popup-title">Notification X</div>
55
- <div class="notificationx-popup-stars"><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span></div>
56
- </div>
57
- <div class="notitificationx-popup-desc">Put a notification like this on your page to instantly influence your visitors</div>
58
- <div class="notificationx-popup-close"><span class="dashicons dashicons-no"></span></div>
59
- </div>';
 
 
 
60
  }
61
- }
62
 
63
  /**
64
  * Adds the cleanup styles to the admin head
46
  }
47
 
48
 
49
+ public function admin_footer() {
50
+ $screen = get_current_screen();
51
+
52
+ if(!nifty_is_notificationx_really_setup_and_active() && $screen->id == 'toplevel_page_niftycs-options') {
53
+ echo '<div id="notificationx-popup">
54
+ <div class="notificationx-popup-icon"><img alt="Notification X" src="' . OT_URL . '/assets/images/nx-icon.png' . '"></div>
55
+ <div class="notificationx-popup-text">435 people rated <br />
56
+ <div class="notificationx-popup-title">Notification X</div>
57
+ <div class="notificationx-popup-stars"><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span></div>
58
+ </div>
59
+ <div class="notitificationx-popup-desc">Put a notification like this on your page to instantly influence your visitors</div>
60
+ <div class="notificationx-popup-close"><span class="dashicons dashicons-no"></span></div>
61
+ </div>';
62
+ }
63
  }
 
64
 
65
  /**
66
  * Adds the cleanup styles to the admin head
nifty-coming-soon.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Nifty Coming Soon & Maintenance page
4
  Plugin URI: https://wordpress.org/plugins/nifty-coming-soon-and-under-construction-page/
5
  Description: Easy to set up Coming Soon, Maintenance and Under Construction page. It features Responsive design, Countdown timer, Animations, Live Preview, Background Slider, Subscription form and more.
6
- Version: 1.55
7
  Author: WebFactory Ltd
8
  Author URI: https://webfactoryltd.com/
9
  License: GPLv3
@@ -40,6 +40,8 @@ function nifty_cs_custom_menu()
40
 
41
 
42
  function nifty_cs_redirect_x(){
 
 
43
  $request_uri = trailingslashit(strtolower(@parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)));
44
  // some URLs have to be accessible at all times
45
  if ($request_uri == '/wp-admin/' ||
@@ -50,11 +52,11 @@ function nifty_cs_redirect_x(){
50
  $request_uri == '/feed/atom/' ||
51
  $request_uri == '/admin/' ||
52
  $request_uri == '/login/' ||
53
- $request_uri == '/wp-login.php') {
 
54
  return;
55
  }
56
-
57
-
58
  // Check if the coming soon mode is enabled in the general settings
59
  $value = ot_get_option( 'coming_soon_mode_on___off' );
60
 
@@ -174,7 +176,8 @@ function nifty_cs_redirect()
174
  $request_uri == '/feed/atom/' ||
175
  $request_uri == '/admin/' ||
176
  $request_uri == '/login/' ||
177
- $request_uri == '/wp-login.php') {
 
178
  return;
179
  }
180
 
3
  Plugin Name: Nifty Coming Soon & Maintenance page
4
  Plugin URI: https://wordpress.org/plugins/nifty-coming-soon-and-under-construction-page/
5
  Description: Easy to set up Coming Soon, Maintenance and Under Construction page. It features Responsive design, Countdown timer, Animations, Live Preview, Background Slider, Subscription form and more.
6
+ Version: 1.56
7
  Author: WebFactory Ltd
8
  Author URI: https://webfactoryltd.com/
9
  License: GPLv3
40
 
41
 
42
  function nifty_cs_redirect_x(){
43
+
44
+
45
  $request_uri = trailingslashit(strtolower(@parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)));
46
  // some URLs have to be accessible at all times
47
  if ($request_uri == '/wp-admin/' ||
52
  $request_uri == '/feed/atom/' ||
53
  $request_uri == '/admin/' ||
54
  $request_uri == '/login/' ||
55
+ $request_uri == '/wp-login.php' ||
56
+ strpos($request_uri,'/wp-login.php') !== false ) {
57
  return;
58
  }
59
+
 
60
  // Check if the coming soon mode is enabled in the general settings
61
  $value = ot_get_option( 'coming_soon_mode_on___off' );
62
 
176
  $request_uri == '/feed/atom/' ||
177
  $request_uri == '/admin/' ||
178
  $request_uri == '/login/' ||
179
+ $request_uri == '/wp-login.php' ||
180
+ strpos($request_uri,'/wp-login.php') !== false) {
181
  return;
182
  }
183
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Coming Soon & Maintenance Page ===
2
  Contributors: WebFactory, wpreset, underconstructionpage, googlemapswidget
3
  Tags: coming soon, coming soon page, launch page, maintenance mode, maintenance page, coming soon mode, under construction, maintenance mode page, landing page, offline page, subscribe form, maintenance
4
  Tested up to: 5.2
5
  License: GPLv3
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
- Stable tag: 1.55
8
  Requires PHP: 5.2
9
 
10
  Nifty Coming Soon & Maintenance Page creates awesome Coming Soon & Maintenance Pages with premium features for free.
@@ -87,9 +87,10 @@ As from the update of 1.0.9, the plugin offers the way to Live Preview you're Co
87
 
88
  == Changelog ==
89
 
90
- = 1.55 =
91
  * 2019/08/07
92
  * NotificationX integration
 
93
 
94
  = 1.54 =
95
  * 2019/06/10
1
+ === Coming Soon & Maintenance Mode Page ===
2
  Contributors: WebFactory, wpreset, underconstructionpage, googlemapswidget
3
  Tags: coming soon, coming soon page, launch page, maintenance mode, maintenance page, coming soon mode, under construction, maintenance mode page, landing page, offline page, subscribe form, maintenance
4
  Tested up to: 5.2
5
  License: GPLv3
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
+ Stable tag: 1.56
8
  Requires PHP: 5.2
9
 
10
  Nifty Coming Soon & Maintenance Page creates awesome Coming Soon & Maintenance Pages with premium features for free.
87
 
88
  == Changelog ==
89
 
90
+ = 1.56 =
91
  * 2019/08/07
92
  * NotificationX integration
93
+ * bug fix with notification - we apologize :(
94
 
95
  = 1.54 =
96
  * 2019/06/10