Coming Soon Page & Maintenance Mode by SeedProd - Version 5.0.10

Version Description

  • Added the ability to make the bg image stay contained within the browser window.
Download this release

Release Info

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

Code changes from version 5.0.9 to 5.0.10

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.7.2
7
- Stable tag: 5.0.9
8
  Text Domain: coming-soon
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -13,7 +13,7 @@ The #1 Coming Soon Page, Under Construction & Maintenance Mode plugin for WordPr
13
 
14
  == Description ==
15
 
16
- Create a simple Coming Soon Page or Maintenance Mode Page. Work on your site in provite 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")
@@ -113,6 +113,9 @@ This is always a caching issue. Go to the caching plugin's setting page and clea
113
  4. Design Page
114
 
115
  == Changelog ==
 
 
 
116
  = 5.0.9 =
117
  * Fixed CSS issues
118
 
@@ -179,6 +182,9 @@ This is always a caching issue. Go to the caching plugin's setting page and clea
179
  * Initial Commit
180
 
181
  == Upgrade Notice ==
 
 
 
182
  = 5.0.9 =
183
  * Fixed CSS issues
184
 
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.8.1
7
+ Stable tag: 5.0.10
8
  Text Domain: coming-soon
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
14
  == Description ==
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")
113
  4. Design Page
114
 
115
  == Changelog ==
116
+ = 5.0.10 =
117
+ * Added the ability to make the bg image stay contained within the browser window.
118
+
119
  = 5.0.9 =
120
  * Fixed CSS issues
121
 
182
  * Initial Commit
183
 
184
  == Upgrade Notice ==
185
+ = 5.0.10 =
186
+ * Added the ability to make the bg image stay contained within the browser window.
187
+
188
  = 5.0.9 =
189
  * Fixed CSS issues
190
 
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.9
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.9'); // 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.10
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.10'); // 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' );
inc/config-settings.php CHANGED
@@ -199,6 +199,17 @@ function seed_csp4_get_options(){
199
  "default" => "1",
200
  );
201
 
 
 
 
 
 
 
 
 
 
 
 
202
  $seed_csp4_options[ ] = array(
203
  "type" => "checkbox",
204
  "id" => "bg_overlay",
199
  "default" => "1",
200
  );
201
 
202
+ $seed_csp4_options[ ] = array(
203
+ "type" => "select",
204
+ "id" => "bg_size",
205
+ "desc" => __('Cover (most users will use this setting), this setting will crop parts of the background that do not fit, Contain, this will force the background image to stay contained within the browser and parts that don\'t fit will show the background color.', 'coming-soon' ),
206
+ "label" => __( "Responsive Size", 'coming-soon' ),
207
+ "option_values" => array(
208
+ 'cover' => __( 'Cover', 'coming-soon' ),
209
+ 'contain' => __( 'Contain', 'coming-soon' ),
210
+ )
211
+ );
212
+
213
  $seed_csp4_options[ ] = array(
214
  "type" => "checkbox",
215
  "id" => "bg_overlay",
themes/default/functions.php CHANGED
@@ -88,10 +88,18 @@ function seed_csp4_head() {
88
  <?php if ( !empty( $bg_image ) ): ;?>
89
  <?php if ( isset( $bg_cover ) && in_array( '1', $bg_cover ) ) : ?>
90
  background: <?php echo $bg_color;?> url('<?php echo $bg_image; ?>') no-repeat top center fixed;
 
 
 
 
 
 
 
91
  -webkit-background-size: cover;
92
  -moz-background-size: cover;
93
  -o-background-size: cover;
94
  background-size: cover;
 
95
  <?php else: ?>
96
  background: <?php echo $bg_color;?> url('<?php echo $bg_image; ?>') <?php echo $bg_repeat;?> <?php echo $bg_position;?> <?php echo $bg_attahcment;?>;
97
  <?php endif ?>
88
  <?php if ( !empty( $bg_image ) ): ;?>
89
  <?php if ( isset( $bg_cover ) && in_array( '1', $bg_cover ) ) : ?>
90
  background: <?php echo $bg_color;?> url('<?php echo $bg_image; ?>') no-repeat top center fixed;
91
+ <?php if ( isset( $bg_size ) && $bg_size == 'contain' ) : ?>
92
+ -webkit-background-size: contain;
93
+ -moz-background-size: contain;
94
+ -o-background-size: contain;
95
+ background-size: contain;
96
+ <?php else : ?>
97
+
98
  -webkit-background-size: cover;
99
  -moz-background-size: cover;
100
  -o-background-size: cover;
101
  background-size: cover;
102
+ <?php endif ?>
103
  <?php else: ?>
104
  background: <?php echo $bg_color;?> url('<?php echo $bg_image; ?>') <?php echo $bg_repeat;?> <?php echo $bg_position;?> <?php echo $bg_attahcment;?>;
105
  <?php endif ?>