Coming Soon Page & Maintenance Mode by SeedProd - Version 5.0.0

Version Description

  • Added the ability to add custom html, dim background and help video.
Download this release

Release Info

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

Code changes from version 4.2.2 to 5.0.0

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.seedprod.com
4
  Tags: maintenance mode, coming soon, under construction, launch page, launch, maintenance, construction, offline, unavailable, coming soon page, under construction page, landing page
5
  Requires at least: 3.5.1
6
  Tested up to: 4.4.2
7
- Stable tag: 4.2.2
8
  Text Domain: coming-soon
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -114,6 +114,9 @@ This is always a caching issue. Go to the caching plugin's setting page and clea
114
  4. Design Page
115
 
116
  == Changelog ==
 
 
 
117
  = 4.2.1 =
118
  * Fixed undefined notice
119
 
@@ -151,6 +154,9 @@ This is always a caching issue. Go to the caching plugin's setting page and clea
151
  * Initial Commit
152
 
153
  == Upgrade Notice ==
 
 
 
154
  = 4.2.0 =
155
  * Language Packs
156
 
4
  Tags: maintenance mode, coming soon, under construction, launch page, launch, maintenance, construction, offline, unavailable, coming soon page, under construction page, landing page
5
  Requires at least: 3.5.1
6
  Tested up to: 4.4.2
7
+ Stable tag: 5.0.0
8
  Text Domain: coming-soon
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
114
  4. Design Page
115
 
116
  == Changelog ==
117
+ = 5.0.0 =
118
+ * Added the ability to add custom html, dim background and help video.
119
+
120
  = 4.2.1 =
121
  * Fixed undefined notice
122
 
154
  * Initial Commit
155
 
156
  == Upgrade Notice ==
157
+ = 5.0.0 =
158
+ * Added the ability to add custom html, dim background and help video.
159
+
160
  = 4.2.0 =
161
  * Language Packs
162
 
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: 4.2.2
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', '4.2.2'); // 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' );
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.0
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.0'); // 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' );
framework/framework.php CHANGED
@@ -113,8 +113,8 @@ class SEED_CSP4_ADMIN
113
  function create_menus( )
114
  {
115
  $this->plugin_screen_hook_suffix = add_options_page(
116
- __( "Coming Soon", 'coming-soon' ),
117
- __( "Coming Soon", 'coming-soon' ),
118
  'manage_options',
119
  'seed_csp4',
120
  array( &$this , 'option_page' )
@@ -170,11 +170,21 @@ class SEED_CSP4_ADMIN
170
  } elseif ( $c == 1 ) {
171
  $active = 'nav-tab-active';
172
  }
173
- echo '<a class="nav-tab ' . $active . '" href="?page=' . $menu_slug . '&tab=' . $v[ 'id' ] . '">' . $v[ 'label' ] . '</a>';
 
 
 
 
 
 
 
 
 
 
174
  $c++;
175
  }
176
  }
177
- echo '<a class="nav-tab seed_csp4-preview thickbox-preview" href="'.home_url().'?cs_preview=true&TB_iframe=true&width=640&height=632" title="'.__('&larr; Close Window','coming-soon').'">'.__('Live Preview','coming-soon').'</a>';
178
  if(defined('SEED_CSP_API_KEY') === false){
179
  echo '<a class="nav-tab seed_csp4-support" style="background-color: #444;color: #fff" 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" target="_blank"><i class="fa fa-star"></i> '.__('Upgrade to Pro for more Professional Features','coming-soon').'</a>';
180
  }
@@ -292,6 +302,19 @@ class SEED_CSP4_ADMIN
292
  <div id="postbox-container-1" class="postbox-container">
293
  <div id="side-sortables" class="meta-box-sortables ui-sortable">
294
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
 
296
  <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-banner-in-plugin" target="_blank"><img src="http://static.seedprod.com/ads/coming-soon-pro-sidebar.png" /></a>
297
  <br><br>
@@ -331,27 +354,27 @@ class SEED_CSP4_ADMIN
331
 
332
 
333
  <div class="postbox rss-postbox">
334
- <div class="handlediv" title="Click to toggle"><br /></div>
335
- <h3 class="hndle"><span><i class="fa fa-wordpress"></i>&nbsp;&nbsp;<?php _e('SeedProd Blog', 'ultimate-coming-soon-page') ?></span></h3>
336
- <div class="inside">
337
-
338
- <div class="rss-widget">
339
- <?php
340
- wp_widget_rss_output(array(
341
- 'url' => 'http://feeds.feedburner.com/seedprod/',
342
- 'title' => 'SeedProd Blog',
343
- 'items' => 3,
344
- 'show_summary' => 0,
345
- 'show_author' => 0,
346
- 'show_date' => 1,
347
- ));
348
- ?>
349
- <ul>
350
-
351
- </ul>
352
- </div>
353
- </div>
354
- </div>
355
 
356
  </div>
357
  </div>
113
  function create_menus( )
114
  {
115
  $this->plugin_screen_hook_suffix = add_options_page(
116
+ __( "Coming Soon Page & Maintenance Mode", 'coming-soon' ),
117
+ __( "Coming Soon Page & Maintenance Mode", 'coming-soon' ),
118
  'manage_options',
119
  'seed_csp4',
120
  array( &$this , 'option_page' )
170
  } elseif ( $c == 1 ) {
171
  $active = 'nav-tab-active';
172
  }
173
+ echo '<a class="nav-tab ' . $active . '" href="?page=' . $menu_slug . '&tab=' . $v[ 'id' ] . '">';
174
+ if($v[ 'id' ] == 'seed_csp4_setting'){
175
+ echo '<i class="fa fa-edit"></i> ';
176
+ }
177
+ if($v[ 'id' ] == 'seed_csp4_design'){
178
+ echo '<i class="fa fa-image"></i> ';
179
+ }
180
+ if($v[ 'id' ] == 'seed_csp4_advanced'){
181
+ echo '<i class="fa fa-code"></i> ';
182
+ }
183
+ echo $v[ 'label' ] . '</a>';
184
  $c++;
185
  }
186
  }
187
+ echo '<a class="nav-tab seed_csp4-preview thickbox-preview" target="_blank" href="'.home_url().'?cs_preview=true&TB_iframe=true&width=640&height=632" title="'.__('&larr; Close Window','coming-soon').'"><i class="fa fa-external-link"></i> '.__('Live Preview','coming-soon').'</a>';
188
  if(defined('SEED_CSP_API_KEY') === false){
189
  echo '<a class="nav-tab seed_csp4-support" style="background-color: #444;color: #fff" 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" target="_blank"><i class="fa fa-star"></i> '.__('Upgrade to Pro for more Professional Features','coming-soon').'</a>';
190
  }
302
  <div id="postbox-container-1" class="postbox-container">
303
  <div id="side-sortables" class="meta-box-sortables ui-sortable">
304
 
305
+ <div class="postbox ">
306
+ <div class="handlediv" title="Click to toggle"><br /></div>
307
+ <h3 class="hndle"><span><i class="fa fa-rocket"></i>&nbsp;&nbsp;<?php _e('Getting Started Video - 60 sec', 'coming-soon') ?></span></h3>
308
+ <div class="inside">
309
+ <div class="">
310
+ <iframe width="250" height="188" src="https://www.youtube.com/embed/hcY0M0IYcAE" frameborder="0" allowfullscreen></iframe>
311
+ </div>
312
+ </div>
313
+ </div>
314
+
315
+
316
+
317
+
318
 
319
  <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-banner-in-plugin" target="_blank"><img src="http://static.seedprod.com/ads/coming-soon-pro-sidebar.png" /></a>
320
  <br><br>
354
 
355
 
356
  <div class="postbox rss-postbox">
357
+ <div class="handlediv" title="Click to toggle"><br /></div>
358
+ <h3 class="hndle"><span><i class="fa fa-wordpress"></i>&nbsp;&nbsp;<?php _e('SeedProd Blog', 'ultimate-coming-soon-page') ?></span></h3>
359
+ <div class="inside">
360
+
361
+ <div class="rss-widget">
362
+ <?php
363
+ wp_widget_rss_output(array(
364
+ 'url' => 'http://feeds.feedburner.com/seedprod/',
365
+ 'title' => 'SeedProd Blog',
366
+ 'items' => 3,
367
+ 'show_summary' => 0,
368
+ 'show_author' => 0,
369
+ 'show_date' => 1,
370
+ ));
371
+ ?>
372
+ <ul>
373
+
374
+ </ul>
375
+ </div>
376
+ </div>
377
+ </div>
378
 
379
  </div>
380
  </div>
inc/class-seed-csp4.php CHANGED
@@ -189,23 +189,26 @@ class SEED_CSP4{
189
  }
190
 
191
  // render template tags
192
-
193
- $template = $this->get_default_template();
194
- require_once( SEED_CSP4_PLUGIN_PATH.'/themes/default/functions.php' );
195
- $template_tags = array(
196
- '{Title}' => seed_csp4_title(),
197
- '{MetaDescription}' => seed_csp4_metadescription(),
198
- '{Privacy}' => seed_csp4_privacy(),
199
- '{Favicon}' => seed_csp4_favicon(),
200
- '{CustomCSS}' => seed_csp4_customcss(),
201
- '{Head}' => seed_csp4_head(),
202
- '{Footer}' => seed_csp4_footer(),
203
- '{Logo}' => seed_csp4_logo(),
204
- '{Headline}' => seed_csp4_headline(),
205
- '{Description}' => seed_csp4_description(),
206
- '{Credit}' => seed_csp4_credit(),
207
- );
208
- echo strtr($template, $template_tags);
 
 
 
209
  exit();
210
 
211
  }
189
  }
190
 
191
  // render template tags
192
+ if(empty($html)){
193
+ $template = $this->get_default_template();
194
+ require_once( SEED_CSP4_PLUGIN_PATH.'/themes/default/functions.php' );
195
+ $template_tags = array(
196
+ '{Title}' => seed_csp4_title(),
197
+ '{MetaDescription}' => seed_csp4_metadescription(),
198
+ '{Privacy}' => seed_csp4_privacy(),
199
+ '{Favicon}' => seed_csp4_favicon(),
200
+ '{CustomCSS}' => seed_csp4_customcss(),
201
+ '{Head}' => seed_csp4_head(),
202
+ '{Footer}' => seed_csp4_footer(),
203
+ '{Logo}' => seed_csp4_logo(),
204
+ '{Headline}' => seed_csp4_headline(),
205
+ '{Description}' => seed_csp4_description(),
206
+ '{Credit}' => seed_csp4_credit(),
207
+ );
208
+ echo strtr($template, $template_tags);
209
+ }else{
210
+ echo $html;
211
+ }
212
  exit();
213
 
214
  }
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.", 'coming-soon' ),
57
  "default_value" => "0"
58
  );
59
 
@@ -184,7 +184,7 @@ function seed_csp4_get_options(){
184
  $seed_csp4_options[ ] = array(
185
  "type" => "upload",
186
  "id" => "bg_image",
187
- "desc" => "<a href='http://demo.seedprod.com/coming-soon-pro/?utm_source=coming-soon-plugin&utm_medium=link&utm_campaign=Free%20Backgrounds' target='_blank'>Looking for FREE backgrounds?</a>",
188
  "label" => __( "Background Image", 'coming-soon' ),
189
  );
190
 
@@ -199,6 +199,17 @@ function seed_csp4_get_options(){
199
  "default" => "1",
200
  );
201
 
 
 
 
 
 
 
 
 
 
 
 
202
  $seed_csp4_options[ ] = array(
203
  "type" => "select",
204
  "id" => "bg_repeat",
@@ -387,6 +398,14 @@ function seed_csp4_get_options(){
387
  "class" => "large-text"
388
  );
389
 
 
 
 
 
 
 
 
 
390
 
391
  return $seed_csp4_options;
392
 
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
 
184
  $seed_csp4_options[ ] = array(
185
  "type" => "upload",
186
  "id" => "bg_image",
187
+ "desc" => "<a href='http://demo.seedprod.com/coming-soon-pro/?utm_source=coming-soon-plugin&utm_medium=link&utm_campaign=Free%20Backgrounds' target='_blank'>Looking for FREE backgrounds?</a> Make sure to select the full size image to prevent a blurry or pixelated image.",
188
  "label" => __( "Background Image", 'coming-soon' ),
189
  );
190
 
199
  "default" => "1",
200
  );
201
 
202
+ $seed_csp4_options[ ] = array(
203
+ "type" => "checkbox",
204
+ "id" => "bg_overlay",
205
+ "label" => __( "Dim Background", 'coming-soon' ),
206
+ "desc" => __("This will add an overlay over your image dimming it.", 'coming-soon'),
207
+ "option_values" => array(
208
+ '1' => __( 'Yes', 'coming-soon' ),
209
+ ),
210
+ "default" => "1",
211
+ );
212
+
213
  $seed_csp4_options[ ] = array(
214
  "type" => "select",
215
  "id" => "bg_repeat",
398
  "class" => "large-text"
399
  );
400
 
401
+ $seed_csp4_options[ ] = array(
402
+ "type" => "textarea",
403
+ "id" => "html",
404
+ "label" => __( "Custom HTML", 'coming-soon' ),
405
+ "desc" => __("The will replace the plugin's template with your custom html.", 'coming-soon'),
406
+ "class" => "large-text"
407
+ );
408
+
409
 
410
  return $seed_csp4_options;
411
 
themes/default/functions.php CHANGED
@@ -110,6 +110,11 @@ function seed_csp4_head() {
110
  background: transparent;
111
  <?php endif; ?>
112
  }
 
 
 
 
 
113
 
114
  <?php if ( !empty( $max_width ) ):?>
115
  #seed-csp4-content{
110
  background: transparent;
111
  <?php endif; ?>
112
  }
113
+ <?php if ( !empty( $bg_overlay ) ): ;?>
114
+ .seed-csp4 body{
115
+ background-color: rgba(0,0,0,0.5);
116
+ }
117
+ <?php endif ?>
118
 
119
  <?php if ( !empty( $max_width ) ):?>
120
  #seed-csp4-content{