Coming Soon Page & Maintenance Mode by SeedProd - Version 5.0.20

Version Description

  • Tweak - Autoclear popular caches.
Download this release

Release Info

Developer seedprod
Plugin Icon 128x128 Coming Soon Page & Maintenance Mode by SeedProd
Version 5.0.20
Comparing to
See all releases

Code changes from version 5.0.19 to 5.0.20

Files changed (4) hide show
  1. README.txt +10 -6
  2. coming-soon.php +45 -2
  3. framework/review.php +9 -6
  4. inc/config-settings.php +2 -2
README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: seedprod
3
  Donate link: http://www.seedprod.com
4
  Tags: maintenance mode, coming soon page, coming soon, under construction, launch page, launch, maintenance, construction, offline, unavailable, under construction page, landing page
5
  Requires at least: 3.5.1
6
- Tested up to: 4.9.4
7
- Stable tag: 5.0.19
8
  Text Domain: coming-soon
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -15,9 +15,7 @@ The #1 Coming Soon Page, Under Construction & Maintenance Mode plugin for WordPr
15
 
16
  Create a simple Coming Soon Page or Maintenance Mode Page. Work on your site in private while visitors see a "Coming Soon" or "Maintenance Mode" page.
17
 
18
- * [Upgrade to the Coming Soon Pro Version Now! »](http://www.seedprod.com?utm_source=wordpress.org&utm_medium=link&utm_campaign=coming-soon-pro-from-wordpress.org "Coming Soon Page Pro Version")
19
- * [View a Coming Soon Page Live Demo »](http://demo.seedprod.com/coming-soon-pro/ "Coming Soon Page Demo")
20
- * [Read Reviews »](https://www.seedprod.com/testimonials/ "Ultimate Coming Soon Page WordPress Plugin")
21
 
22
  ### Benefits, Features and Options:
23
 
@@ -35,7 +33,7 @@ Create a simple Coming Soon Page or Maintenance Mode Page. Work on your site in
35
 
36
  * Works with any WordPress theme
37
  * Visible only to non logged in users
38
- * Secret link for your clients to view the upcoming website without logging in
39
  * Search Engine Optimized with customizable meta tags
40
  * Mobile Ready responsive design and layout
41
  * Maintenance Mode with Automatic Screenshot
@@ -116,6 +114,9 @@ This is always a caching issue. Go to the caching plugin's setting page and clea
116
  4. Design Page
117
 
118
  == Changelog ==
 
 
 
119
  = 5.0.19 =
120
  * fixed z-index issue with supersize loader and focus link color
121
 
@@ -209,6 +210,9 @@ This is always a caching issue. Go to the caching plugin's setting page and clea
209
  * Initial Commit
210
 
211
  == Upgrade Notice ==
 
 
 
212
  = 5.0.19 =
213
  * fixed z-index issue with supersize loader and focus link color
214
 
3
  Donate link: http://www.seedprod.com
4
  Tags: maintenance mode, coming soon page, coming soon, under construction, launch page, launch, maintenance, construction, offline, unavailable, under construction page, landing page
5
  Requires at least: 3.5.1
6
+ Tested up to: 4.9.5
7
+ Stable tag: 5.0.20
8
  Text Domain: coming-soon
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
16
  Create a simple Coming Soon Page or Maintenance Mode Page. Work on your site in private while visitors see a "Coming Soon" or "Maintenance Mode" page.
17
 
18
+ * [Upgrade to Coming Soon Page Pro to Unlock All the Features ! »](http://www.seedprod.com?utm_source=wordpress.org&utm_medium=link&utm_campaign=coming-soon-pro-from-wordpress.org "Coming Soon Page Pro Version")
 
 
19
 
20
  ### Benefits, Features and Options:
21
 
33
 
34
  * Works with any WordPress theme
35
  * Visible only to non logged in users
36
+ * Secret bypass link for your clients to view the upcoming website without logging in
37
  * Search Engine Optimized with customizable meta tags
38
  * Mobile Ready responsive design and layout
39
  * Maintenance Mode with Automatic Screenshot
114
  4. Design Page
115
 
116
  == Changelog ==
117
+ = 5.0.20 =
118
+ * Tweak - Autoclear popular caches.
119
+
120
  = 5.0.19 =
121
  * fixed z-index issue with supersize loader and focus link color
122
 
210
  * Initial Commit
211
 
212
  == Upgrade Notice ==
213
+ = 5.0.20 =
214
+ * Tweak - Autoclear popular caches.
215
+
216
  = 5.0.19 =
217
  * fixed z-index issue with supersize loader and focus link color
218
 
coming-soon.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Coming Soon Page & Maintenance Mode by SeedProd
4
  * Plugin URI: http://www.seedprod.com
5
  * Description: The #1 Coming Soon Page, Under Construction & Maintenance Mode plugin for WordPress.
6
- * Version: 5.0.19
7
  * Author: SeedProd
8
  * Author URI: http://www.seedprod.com
9
  * Text Domain: coming-soon
@@ -21,7 +21,7 @@ define( 'SEED_CSP4_SHORTNAME', 'seed_csp4' ); // Used to reference namespace fun
21
  define( 'SEED_CSP4_SLUG', 'coming-soon/coming-soon.php' ); // Used for settings link.
22
  define( 'SEED_CSP4_TEXTDOMAIN', 'coming-soon' ); // Your textdomain
23
  define( 'SEED_CSP4_PLUGIN_NAME', __( 'Coming Soon Page & Maintenance Mode by SeedProd', 'coming-soon' ) ); // Plugin Name shows up on the admin settings screen.
24
- define( 'SEED_CSP4_VERSION', '5.0.19'); // Plugin Version Number. Recommend you use Semantic Versioning http://semver.org/
25
  define( 'SEED_CSP4_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // Example output: /Applications/MAMP/htdocs/wordpress/wp-content/plugins/seed_csp4/
26
  define( 'SEED_CSP4_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); // Example output: http://localhost:8888/wordpress/wp-content/plugins/seed_csp4/
27
  define( 'SEED_CSP4_TABLENAME', 'seed_csp4_subscribers' );
@@ -104,6 +104,49 @@ if( is_admin() ) {
104
  }
105
 
106
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
 
109
 
3
  * Plugin Name: Coming Soon Page & Maintenance Mode by SeedProd
4
  * Plugin URI: http://www.seedprod.com
5
  * Description: The #1 Coming Soon Page, Under Construction & Maintenance Mode plugin for WordPress.
6
+ * Version: 5.0.20
7
  * Author: SeedProd
8
  * Author URI: http://www.seedprod.com
9
  * Text Domain: coming-soon
21
  define( 'SEED_CSP4_SLUG', 'coming-soon/coming-soon.php' ); // Used for settings link.
22
  define( 'SEED_CSP4_TEXTDOMAIN', 'coming-soon' ); // Your textdomain
23
  define( 'SEED_CSP4_PLUGIN_NAME', __( 'Coming Soon Page & Maintenance Mode by SeedProd', 'coming-soon' ) ); // Plugin Name shows up on the admin settings screen.
24
+ define( 'SEED_CSP4_VERSION', '5.0.20'); // Plugin Version Number. Recommend you use Semantic Versioning http://semver.org/
25
  define( 'SEED_CSP4_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // Example output: /Applications/MAMP/htdocs/wordpress/wp-content/plugins/seed_csp4/
26
  define( 'SEED_CSP4_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); // Example output: http://localhost:8888/wordpress/wp-content/plugins/seed_csp4/
27
  define( 'SEED_CSP4_TABLENAME', 'seed_csp4_subscribers' );
104
  }
105
 
106
 
107
+ // Clear Popular Caches
108
+ add_action( 'update_option_seed_csp4_settings_content', 'seed_csp4_clear_known_caches', 10, 2 );
109
+
110
+ function seed_csp4_clear_known_caches($o,$n){
111
+ try {
112
+ if(isset($o['status']) && isset($n['status'])){
113
+ if($o['status'] != $n['status']){
114
+
115
+ // Clear Litespeed cache
116
+ method_exists( 'LiteSpeed_Cache_API', 'purge_all' ) && LiteSpeed_Cache_API::purge_all() ;
117
+
118
+ // WP Super Cache
119
+ if ( function_exists( 'wp_cache_clear_cache' ) ) {
120
+ wp_cache_clear_cache();
121
+ }
122
+
123
+ // W3 Total Cahce
124
+ if ( function_exists( 'w3tc_pgcache_flush' ) ) {
125
+ w3tc_pgcache_flush();
126
+ }
127
+
128
+ // Site ground
129
+ if ( class_exists( 'SG_CachePress_Supercacher' ) && method_exists( 'SG_CachePress_Supercacher ', 'purge_cache' )) {
130
+ SG_CachePress_Supercacher::purge_cache(true);
131
+ }
132
+
133
+ // Endurance Cache
134
+ if ( class_exists( 'Endurance_Page_Cache' ) ) {
135
+ $e = new Endurance_Page_Cache;
136
+ $e->purge_all();
137
+ }
138
+
139
+ // WP Fastest Cache
140
+ if ( isset($GLOBALS['wp_fastest_cache'] ) && method_exists( $GLOBALS['wp_fastest_cache'], 'deleteCache') ) {
141
+ $GLOBALS['wp_fastest_cache']->deleteCache(true);
142
+ }
143
+
144
+ }
145
+ }
146
+ } catch (Exception $e) {}
147
+ }
148
+
149
+
150
 
151
 
152
 
framework/review.php CHANGED
@@ -18,7 +18,9 @@ function seed_csp4_admin_footer( $text ) {
18
  return $text;
19
  }
20
 
 
21
  add_action( 'admin_notices', 'seed_csp4_review' );
 
22
  function seed_csp4_review() {
23
 
24
  // Verify that we can do a check for reviews.
@@ -37,7 +39,8 @@ function seed_csp4_review() {
37
  $load = true;
38
  } else {
39
  // Check if it has been dismissed or not.
40
- if ( (isset( $review['dismissed'] ) && ! $review['dismissed']) && (isset( $review['time'] ) && (($review['time'] + DAY_IN_SECONDS) <= $time) && $settings['status'] > 0) ) {
 
41
  $load = true;
42
  }
43
  }
@@ -66,12 +69,12 @@ function seed_csp4_review() {
66
  // We have a candidate! Output a review message.
67
  ?>
68
  <div class="notice notice-info is-dismissible seed-csp4-review-notice">
69
- <p><?php printf(__( 'Hey %s, I noticed you created a %s with our plugin - that’s awesome! Could you please do me a BIG favor and give it a 5-star rating on WordPress to help us spread the word?', 'coming-soon' ),$fname, $page_type); ?></p>
70
- <p><strong><?php _e( '~ John Turner<br>SeedProd', 'coming-soon' ); ?></strong></p>
71
  <p>
72
- <a href="https://wordpress.org/support/plugin/coming-soon/reviews/?filter=5#new-post" class="seed-csp4-dismiss-review-notice seed-csp4-review-out" target="_blank" rel="noopener"><?php _e( 'Ok, you deserve it', 'coming-soon' ); ?></a><br>
73
- <a href="#" class="seed-csp4-dismiss-review-notice" target="_blank" rel="noopener"><?php _e( 'Nope, maybe later', 'coming-soon' ); ?></a><br>
74
- <a href="#" class="seed-csp4-dismiss-review-notice" target="_blank" rel="noopener"><?php _e( 'I already did', 'coming-soon' ); ?></a><br>
75
  </p>
76
  </div>
77
  <script type="text/javascript">
18
  return $text;
19
  }
20
 
21
+ if(!empty($_GET['page']) && $_GET['page'] == 'seed_csp4'){
22
  add_action( 'admin_notices', 'seed_csp4_review' );
23
+ }
24
  function seed_csp4_review() {
25
 
26
  // Verify that we can do a check for reviews.
39
  $load = true;
40
  } else {
41
  // Check if it has been dismissed or not.
42
+ //if ( (isset( $review['dismissed'] ) && ! $review['dismissed']) && (isset( $review['time'] ) && (($review['time'] + DAY_IN_SECONDS) <= $time) && $settings['status'] > 0) ) {
43
+ if ( (isset( $review['dismissed'] ) && ! $review['dismissed']) ) {
44
  $load = true;
45
  }
46
  }
69
  // We have a candidate! Output a review message.
70
  ?>
71
  <div class="notice notice-info is-dismissible seed-csp4-review-notice">
72
+ <p><?php printf(__( 'Hey %s, <br><br>I just want to say "Thank you" using this free plugin. If you have any questions post it to our <a href="https://wordpress.org/support/plugin/coming-soon">support forums</a>.<br><br>Also check out the &#8594; <a href="https://www.seedprod.com/ultimate-coming-soon-page-vs-coming-soon-pro/?utm_source=coming-soon-plugin&utm_medium=link&utm_campaign=coming-soon-special-offer">special upgrade offer</a> we have going on right now for the Pro Verison.<br><br>Hope you have a great %s! Cheers', 'coming-soon' ),ucfirst($fname), date('l') ); ?></p>
73
+ <p><strong><?php _e( '--<br> John Turner<br><a href="https://www.seedprod.com/ultimate-coming-soon-page-vs-coming-soon-pro/?utm_source=coming-soon-plugin&utm_medium=link&utm_campaign=coming-soon-special-offer-brand">SeedProd.com</a>', 'coming-soon' ); ?></strong></p>
74
  <p>
75
+ <!-- <a href="https://wordpress.org/support/plugin/coming-soon/reviews/?filter=5#new-post" class="seed-csp4-dismiss-review-notice seed-csp4-review-out" target="_blank" rel="noopener"><?php _e( 'Ok, you deserve it', 'coming-soon' ); ?></a><br> -->
76
+ <a href="#" class="seed-csp4-dismiss-review-notice" target="_blank" rel="noopener"><?php _e( 'Dismiss Notice', 'coming-soon' ); ?></a><br>
77
+ <!-- <a href="#" class="seed-csp4-dismiss-review-notice" target="_blank" rel="noopener"><?php _e( 'I already did', 'coming-soon' ); ?></a><br> -->
78
  </p>
79
  </div>
80
  <script type="text/javascript">
inc/config-settings.php CHANGED
@@ -53,7 +53,7 @@ function seed_csp4_get_options(){
53
  '1' => __( 'Enable Coming Soon Mode', 'coming-soon' ),
54
  '2' => __( 'Enable Maintenance Mode', 'coming-soon' )
55
  ),
56
- "desc" => __( "When you are logged in you'll see your normal website. Logged out visitors will see the Coming Soon or Maintenance page. Coming Soon Mode will be available to search engines if your site is not private. Maintenance Mode will notify search engines that the site is unavailable. <a href='https://www.seedprod.com/coming-soon-vs-maintenance-mode/' target='_blank'>Learn the difference between Coming Soon and Maintenance Mode</a>", 'coming-soon' ),
57
  "default_value" => "0"
58
  );
59
 
@@ -98,7 +98,7 @@ function seed_csp4_get_options(){
98
  "type" => "wpeditor",
99
  "id" => "description",
100
  "label" => __( "Message", 'coming-soon' ),
101
- "desc" => __( "Tell the visitor what to expect from your site. Check out the Pro Version if you need ShortCode support.", 'coming-soon' ),
102
  "class" => "large-text"
103
  );
104
 
53
  '1' => __( 'Enable Coming Soon Mode', 'coming-soon' ),
54
  '2' => __( 'Enable Maintenance Mode', 'coming-soon' )
55
  ),
56
+ "desc" => __( "When you are logged in you'll see your normal website. Logged out visitors will see the Coming Soon or Maintenance page. Coming Soon Mode will be available to search engines if your site is not private. Maintenance Mode will notify search engines that the site is unavailable. <a href='https://www.seedprod.com/coming-soon-vs-maintenance-mode/?utm_source=coming-soon-plugin&utm_medium=link&utm_campaign=cc-vs-mm' target='_blank'>Learn the difference between Coming Soon and Maintenance Mode</a>", 'coming-soon' ),
57
  "default_value" => "0"
58
  );
59
 
98
  "type" => "wpeditor",
99
  "id" => "description",
100
  "label" => __( "Message", 'coming-soon' ),
101
+ "desc" => __( "Need Shortcode Support? <a href='https://www.seedprod.com/ultimate-coming-soon-page-vs-coming-soon-pro/?utm_source=coming-soon-plugin&utm_medium=banner&utm_campaign=coming-soon-link-in-plugin'>Check out the Pro Verion</a> which supports shortcodes and adds many more features.", 'coming-soon' ),
102
  "class" => "large-text"
103
  );
104