CMP – Coming Soon & Maintenance Plugin by NiteoThemes - Version 1.3.0

Version Description

Download this release

Release Info

Developer niteo
Plugin Icon 128x128 CMP – Coming Soon & Maintenance Plugin by NiteoThemes
Version 1.3.0
Comparing to
See all releases

Code changes from version 1.2.1 to 1.3.0

cmp-options.php CHANGED
@@ -414,7 +414,7 @@ add_thickbox();
414
  // if not in available themes array, display buy button
415
  if ( !in_array( $premium_theme['name'], $theme_array) ) { ?>
416
 
417
- <a href="http://comingsoon.niteo.cz/?cmp_preview=true&theme=<?php echo esc_attr($premium_theme['name']);?>" target="_blank"><img src="<?php echo esc_url( plugins_url().'/'.$this->installedFolder.'\/themes/'. $premium_theme['name']. '_thumbnail.jpg' );?>" alt="<?php echo esc_attr(ucwords($premium_theme['name']));?> Premium Theme"></a>
418
  <a class="button" href="<?php echo esc_url($premium_theme['url']);?>" target="_blank">Buy for <?php echo esc_html($premium_theme['price']);?> USD</a>
419
  </div>
420
  <?php
414
  // if not in available themes array, display buy button
415
  if ( !in_array( $premium_theme['name'], $theme_array) ) { ?>
416
 
417
+ <a href="http://cmp.niteo.cz/?cmp_preview=true&theme=<?php echo esc_attr($premium_theme['name']);?>" target="_blank"><img src="<?php echo esc_url( plugins_url().'/'.$this->installedFolder.'\/themes/'. $premium_theme['name']. '_thumbnail.jpg' );?>" alt="<?php echo esc_attr(ucwords($premium_theme['name']));?> Premium Theme"></a>
418
  <a class="button" href="<?php echo esc_url($premium_theme['url']);?>" target="_blank">Buy for <?php echo esc_html($premium_theme['price']);?> USD</a>
419
  </div>
420
  <?php
cs_style.css CHANGED
@@ -13,7 +13,8 @@
13
  input[type="text"], textarea{width:100%;}
14
  .table-wrapper.customization,
15
  .table-wrapper.install,
16
- .table-wrapper.seo {
 
17
  display: none;
18
  }
19
  .upload-plugin.comingsoon .wp-upload-form {
@@ -68,7 +69,7 @@ input[type="text"], textarea{width:100%;}
68
  .table-wrapper h3 {padding-bottom: .5em;margin-bottom: 0;padding-left:1em;border-bottom:1px solid #dedede;}
69
  .table-wrapper table{padding:1em;}
70
  .logo-wrapper, .banner-wrapper {margin: 1em 0;}
71
- .logo-wrapper img {background-color: #efefef;}
72
  .logo-wrapper img, .banner-wrapper img,.thumbnail-holder img {max-width: 100%;}
73
  .thumbnail-holder {display: inline-block;max-width: 250px;padding:1em;margin:1em;text-align: center;border: 1px solid #efefef;}
74
  #font-example-wrapper {padding:1em;border:1px solid #dedede;}
13
  input[type="text"], textarea{width:100%;}
14
  .table-wrapper.customization,
15
  .table-wrapper.install,
16
+ .table-wrapper.seo,
17
+ .table-wrapper.custom_css {
18
  display: none;
19
  }
20
  .upload-plugin.comingsoon .wp-upload-form {
69
  .table-wrapper h3 {padding-bottom: .5em;margin-bottom: 0;padding-left:1em;border-bottom:1px solid #dedede;}
70
  .table-wrapper table{padding:1em;}
71
  .logo-wrapper, .banner-wrapper {margin: 1em 0;}
72
+ .logo-wrapper img {background-color: #efefef;padding:1em;}
73
  .logo-wrapper img, .banner-wrapper img,.thumbnail-holder img {max-width: 100%;}
74
  .thumbnail-holder {display: inline-block;max-width: 250px;padding:1em;margin:1em;text-align: center;border: 1px solid #efefef;}
75
  #font-example-wrapper {padding:1em;border:1px solid #dedede;}
niteo-cmp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
- Version: 1.2.1
7
  Author: NiteoThemes
8
  Author URI: http://www.niteo.cz
9
  Text Domain: cmp
@@ -112,10 +112,19 @@ class niteo_cmp {
112
  // for themes preview demos
113
  if ( isset($_GET['theme']) && !empty($_GET['theme']) ) {
114
  $theme_preview = $_GET['theme'];
115
- // render html theme page
116
- if ( file_exists($this->cmp_themePath().$theme_preview.'/'.$theme_preview.'-theme.php') ) {
117
- require_once ($this->cmp_themePath().$theme_preview.'/'.$theme_preview.'-theme.php');
118
- die();
 
 
 
 
 
 
 
 
 
119
  }
120
 
121
  }
@@ -299,6 +308,7 @@ class niteo_cmp {
299
  $premium_themes = array();
300
  array_push( $premium_themes, array('name' => 'frame', 'url' => 'https://creativemarket.com/NiteoThemes/1373921-CMP-Frame-Coming-Soon-WP-Theme', 'price' => '10') );
301
  array_push( $premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://creativemarket.com/NiteoThemes/1385251-CMP-Hardwork-Premium-Maintenance', 'price' => '10') );
 
302
  return $premium_themes;
303
  }
304
 
@@ -354,7 +364,7 @@ class niteo_cmp {
354
  $id = $url;
355
  }
356
 
357
- $unsplash_img = 'https://source.unsplash.com/'.$id.'/WIDTHxHEIGHT/';
358
  break;
359
 
360
  case '1':
@@ -492,7 +502,65 @@ class niteo_cmp {
492
 
493
  return $rgba;
494
  }
495
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
496
  function sanitize_checkbox( $input ) {
497
  return ( ( isset( $input ) && true == $input ) ? true : false );
498
  }
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
+ Version: 1.3.0
7
  Author: NiteoThemes
8
  Author URI: http://www.niteo.cz
9
  Text Domain: cmp
112
  // for themes preview demos
113
  if ( isset($_GET['theme']) && !empty($_GET['theme']) ) {
114
  $theme_preview = $_GET['theme'];
115
+ // if premium
116
+ if ( $this->niteo_in_array_r( $theme_preview, $this->cmp_plugin_premium() ) ) {
117
+ if ( file_exists(plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/'.$theme_preview.'/'.$theme_preview.'-theme.php') ) {
118
+ require_once (plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/'.$theme_preview.'/'.$theme_preview.'-theme.php');
119
+ die();
120
+ }
121
+
122
+ } else {
123
+ if ( file_exists(dirname(__FILE__) . '/themes/'.$theme_preview.'/'.$theme_preview.'-theme.php') ) {
124
+ require_once (dirname(__FILE__) . '/themes/'.$theme_preview.'/'.$theme_preview.'-theme.php');
125
+ die();
126
+ }
127
+
128
  }
129
 
130
  }
308
  $premium_themes = array();
309
  array_push( $premium_themes, array('name' => 'frame', 'url' => 'https://creativemarket.com/NiteoThemes/1373921-CMP-Frame-Coming-Soon-WP-Theme', 'price' => '10') );
310
  array_push( $premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://creativemarket.com/NiteoThemes/1385251-CMP-Hardwork-Premium-Maintenance', 'price' => '10') );
311
+ array_push( $premium_themes, array('name' => 'fifty', 'url' => 'https://creativemarket.com/NiteoThemes/1395745-CMP-Fifty-Maintenance-Landing-Page', 'price' => '10') );
312
  return $premium_themes;
313
  }
314
 
364
  $id = $url;
365
  }
366
 
367
+ $unsplash_img = 'https://source.unsplash.com/'.$id.'/WIDTHxHEIGHT/?';
368
  break;
369
 
370
  case '1':
502
 
503
  return $rgba;
504
  }
505
+
506
+ // convert hex to hsl css
507
+ function hex2hsl( $hex, $opacity ) {
508
+
509
+ if ( $hex[0] != '#' ) {
510
+ $rgba = explode( ',', $hex);
511
+ $rgba[3] = str_replace(')', '', $rgba[3]);
512
+ $rgba[3] = $rgba[3] - ( $opacity / 100 );
513
+ $rgba = $rgba[0] . ',' . $rgba[1] . ',' . $rgba[2] . ',' . $rgba[3] . ')';
514
+ return $rgba;
515
+ }
516
+
517
+ list( $red, $green, $blue ) = sscanf( $hex, '#%02x%02x%02x' );
518
+
519
+ $r = $red / 255.0;
520
+ $g = $green / 255.0;
521
+ $b = $blue / 255.0;
522
+ $H = 0;
523
+ $S = 0;
524
+ $V = 0;
525
+
526
+ $min = min( $r, $g, $b );
527
+ $max = max( $r, $g, $b );
528
+ $delta = ( $max - $min );
529
+
530
+ $L = ( $max + $min ) / 2.0;
531
+
532
+ if( $delta == 0 ) {
533
+ $H = 0;
534
+ $S = 0;
535
+ } else {
536
+ $S = $L > 0.5 ? $delta / ( 2 - $max - $min ) : $delta / ( $max + $min );
537
+
538
+ $dR = ( ( ( $max - $r ) / 6) + ( $delta / 2 ) ) / $delta;
539
+ $dG = ( ( ( $max - $g ) / 6) + ( $delta / 2 ) ) / $delta;
540
+ $dB = ( ( ( $max - $b ) / 6) + ( $delta / 2 ) ) / $delta;
541
+
542
+ if ( $r == $max )
543
+ $H = $dB - $dG;
544
+ else if( $g == $max )
545
+ $H = ( 1/3 ) + $dR - $dB;
546
+ else
547
+ $H = ( 2/3 ) + $dG - $dR;
548
+
549
+ if ( $H < 0 )
550
+ $H += 1;
551
+ if ( $H > 1 )
552
+ $H -= 1;
553
+ }
554
+ $HSL = array( 'hue' => round( ($H*360), 0 ), 'saturation'=> round( ($S*100), 0 ), 'luminosity' => round( ( $L*100 ), 0) );
555
+ $HSL = 'hsl( '. $HSL['hue'] .', '.( $HSL['saturation']) .'%, '. ( $HSL['luminosity'] - $opacity ) . '%)';
556
+ return $HSL;
557
+
558
+ }
559
+
560
+ function isMobile() {
561
+ return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
562
+ }
563
+
564
  function sanitize_checkbox( $input ) {
565
  return ( ( isset( $input ) && true == $input ) ? true : false );
566
  }
readme.txt CHANGED
@@ -4,11 +4,11 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JF
4
  Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
5
  Requires at least: 3.0
6
  Tested up to: 4.7.2
7
- Stable tag: 1.2.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Create and customize your own landing page for Coming soon Page or Maintenance mode including subscribe form with ease of few mouse clicks.
12
 
13
  == Description ==
14
 
@@ -19,6 +19,7 @@ Free plugin to create and customize your own Coming Soon or Maintenance landing
19
  <a href="http://cmp.niteo.cz/?cmp_preview=true&theme=hardwork" target="_blank">Click for preview of Hardwork Theme >></a>
20
  <a href="http://cmp.niteo.cz/?cmp_preview=true&theme=hardwork_premium" target="_blank">Click for preview of Hardwork Premium Theme >></a>
21
  <a href="http://cmp.niteo.cz/?cmp_preview=true&theme=frame" target="_blank">Click for preview of Frame Theme >></a>
 
22
 
23
  <h3>Features</h3>
24
  <ul>
@@ -54,7 +55,7 @@ Free plugin to create and customize your own Coming Soon or Maintenance landing
54
  <ul>
55
  <li>Navigate to the 'Add New' in the plugins dashboard</li>
56
  <li>Navigate to the 'Upload' area</li>
57
- <li>Download <code>cmp-coming-soon-maintenance.zip</code> and select <code>cmp-coming-soon-maintenance.zip</code> from your directory</li>
58
  <li>Click 'Install Now'</li>
59
  <li>Activate the plugin in the Plugin dashboard</li>
60
  <li>To Setup click Settings->CMP Settings and change the settings there</li>
@@ -64,8 +65,8 @@ Free plugin to create and customize your own Coming Soon or Maintenance landing
64
  <ul>
65
  <li>Navigate to the 'Add New' in the plugins dashboard</li>
66
  <li>Navigate to the 'Upload' area</li>
67
- <li>Download <code>cmp-coming-soon-maintenance.zip</code> and extract the <code>cmp-coming-soon-maintenance.zip</code> zip file to your computer</li>
68
- <li>Upload the extracted <code>cmp-coming-soon-maintenance</code> directory to the <code>/wp-content/plugins/</code> directory</li>
69
  <li>Activate the plugin in the Plugin dashboard</li>
70
  <li>To Setup click Settings->CMP Settings and change the settings there</li>
71
  </ul>
@@ -99,6 +100,12 @@ Free plugin to create and customize your own Coming Soon or Maintenance landing
99
 
100
 
101
  == Changelog ==
 
 
 
 
 
 
102
  <h4>1.2.1</h4>
103
  <ul>
104
  <li>Resolved issue when plugin update caused deletion of installed Premium themes.</li>
4
  Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
5
  Requires at least: 3.0
6
  Tested up to: 4.7.2
7
+ Stable tag: 1.3.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Free plugin to create and customize your own landing page for Coming soon Landing Page or Maintenance mode including Subscribe form, Unsplash background photos and many more features with ease of few mouse clicks.
12
 
13
  == Description ==
14
 
19
  <a href="http://cmp.niteo.cz/?cmp_preview=true&theme=hardwork" target="_blank">Click for preview of Hardwork Theme >></a>
20
  <a href="http://cmp.niteo.cz/?cmp_preview=true&theme=hardwork_premium" target="_blank">Click for preview of Hardwork Premium Theme >></a>
21
  <a href="http://cmp.niteo.cz/?cmp_preview=true&theme=frame" target="_blank">Click for preview of Frame Theme >></a>
22
+ <a href="http://cmp.niteo.cz/?cmp_preview=true&theme=fifty" target="_blank">Click for preview of Fifty Theme >></a>
23
 
24
  <h3>Features</h3>
25
  <ul>
55
  <ul>
56
  <li>Navigate to the 'Add New' in the plugins dashboard</li>
57
  <li>Navigate to the 'Upload' area</li>
58
+ <li>Download <code>comingsoon.zip</code> and select <code>comingsoon.zip</code> from your directory</li>
59
  <li>Click 'Install Now'</li>
60
  <li>Activate the plugin in the Plugin dashboard</li>
61
  <li>To Setup click Settings->CMP Settings and change the settings there</li>
65
  <ul>
66
  <li>Navigate to the 'Add New' in the plugins dashboard</li>
67
  <li>Navigate to the 'Upload' area</li>
68
+ <li>Download <code>comingsoon.zip</code> and extract the <code>comingsoon.zip</code> zip file to your computer</li>
69
+ <li>Upload the extracted <code>comingsoon</code> directory to the <code>/wp-content/plugins/</code> directory</li>
70
  <li>Activate the plugin in the Plugin dashboard</li>
71
  <li>To Setup click Settings->CMP Settings and change the settings there</li>
72
  </ul>
100
 
101
 
102
  == Changelog ==
103
+ <h4>1.3.0</h4>
104
+ <ul>
105
+ <li>New premium theme: Fifty.</li>
106
+ <li>Updated CSS styles for all free and premium Themes.</li>
107
+ <li>Migrated Thumbnails from comingsoon to cmp domain.</li>
108
+ </ul>
109
  <h4>1.2.1</h4>
110
  <ul>
111
  <li>Resolved issue when plugin update caused deletion of installed Premium themes.</li>
themes/construct/img/construct_thumbnail.jpg CHANGED
Binary file
themes/construct/style.css CHANGED
@@ -2,7 +2,7 @@ body{margin:0;}
2
  :focus {outline:none;}
3
  h1,h2,h3,h4,h5,h6{font-weight: 400;font-size:2em;}
4
  .section {padding: 50px 2em;text-align: center;position: relative;}
5
- .section-logo img {width: 500px;max-width: 100%;}
6
  .section-banner{height: 300px;}
7
  .section-body p{width:70%;max-width: 900px;margin:1em auto;}
8
  .section-social{background-color: #f8f8f8;}
2
  :focus {outline:none;}
3
  h1,h2,h3,h4,h5,h6{font-weight: 400;font-size:2em;}
4
  .section {padding: 50px 2em;text-align: center;position: relative;}
5
+ .section-logo img {max-width: 500px;}
6
  .section-banner{height: 300px;}
7
  .section-body p{width:70%;max-width: 900px;margin:1em auto;}
8
  .section-social{background-color: #f8f8f8;}
themes/fifty_thumbnail.jpg ADDED
Binary file
themes/frame_thumbnail.jpg CHANGED
Binary file
themes/hardwork/hardwork-theme.php CHANGED
@@ -22,6 +22,7 @@
22
  $unplash_feed = get_option('niteoCS_unsplash_feed', '0');
23
  $social_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
24
  $body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
 
25
 
26
  // override options if theme preview isset
27
  if ( isset( $theme_preview ) && $theme_preview == 'hardwork' ) {
@@ -30,6 +31,7 @@
30
  $logo_id = '8';
31
  $niteoCS_banner = '2';
32
  $body_title = 'We will be back soon!';
 
33
 
34
  }
35
 
@@ -215,18 +217,18 @@
215
  <?php
216
  }
217
  ?>
218
- <section class="section section-logo">
219
- <?php if ( isset($logo_url[0]) ) { ?>
220
- <img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
221
- <?php } ?>
222
- </section>
223
 
224
  <section class="section section-body">
 
 
 
 
 
225
  <?php if ( $body_title != '' ) { ?>
226
  <h2><?php echo esc_html( $body_title );?></h2>
227
  <?php } ?>
228
 
229
- <?php echo apply_filters('the_content', stripslashes(get_option('niteoCS_body')));?>
230
 
231
  </section>
232
 
22
  $unplash_feed = get_option('niteoCS_unsplash_feed', '0');
23
  $social_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
24
  $body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
25
+ $body = get_option('niteoCS_body');
26
 
27
  // override options if theme preview isset
28
  if ( isset( $theme_preview ) && $theme_preview == 'hardwork' ) {
31
  $logo_id = '8';
32
  $niteoCS_banner = '2';
33
  $body_title = 'We will be back soon!';
34
+ $body = '<p>Everti labores cu sea, ea eam choro semper, usu an quot vocibus euripidis. An vis porro insolens, ea graeci vulputate qui. Qui vidisse evertitur et, ea vis habemus fabellas. Everti labores cu sea, ea eam choro semper, usu an quot vocibus euripidis. An vis porro insolens, ea graeci vulputate qui. Qui vidisse evertitur et, ea vis habemus fabellas.</p>';
35
 
36
  }
37
 
217
  <?php
218
  }
219
  ?>
 
 
 
 
 
220
 
221
  <section class="section section-body">
222
+ <div class="logo-wrapper">
223
+ <?php if ( isset($logo_url[0]) ) { ?>
224
+ <img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
225
+ <?php } ?>
226
+ </div>
227
  <?php if ( $body_title != '' ) { ?>
228
  <h2><?php echo esc_html( $body_title );?></h2>
229
  <?php } ?>
230
 
231
+ <?php echo apply_filters('the_content', stripslashes($body));?>
232
 
233
  </section>
234
 
themes/hardwork/img/hardwork_thumbnail.jpg CHANGED
Binary file
themes/hardwork/style.css CHANGED
@@ -19,19 +19,30 @@ h1,h2,h3,h4,h5,h6{
19
  }
20
 
21
  .section-body {
22
- flex-grow: 10;
23
- }
24
-
25
- .section-social {
26
- padding-bottom: 15px;
27
- }
28
-
29
- .section-logo {
30
- padding-top: 50px;
31
- }
32
-
33
- .section-logo img {
34
- width: 500px;
 
 
 
 
 
 
 
 
 
 
 
35
  max-width: 100%;
36
  }
37
 
@@ -113,10 +124,15 @@ h1,h2,h3,h4,h5,h6{
113
  to {transform:rotate(360deg);}
114
  }
115
 
 
 
 
 
116
  @media only screen and (max-width : 560px) {
117
  .section {padding: 20px 10px;}
118
  .section-logo { padding-top: 20px;}
119
  h2 {font-size: 2.5em;}
120
  .section-body p {font-size: 1em;}
 
121
 
122
  }
19
  }
20
 
21
  .section-body {
22
+ display: -webkit-flex;
23
+ display: -moz-flex;
24
+ display: -ms-flex;
25
+ display: -o-flex;
26
+ display: flex;
27
+ justify-content: center;
28
+ -moz-justify-content: center;
29
+ -webkit-justify-content: center;
30
+ -webkit-flex-direction: column;
31
+ -moz-flex-direction: column;
32
+ flex-direction: column;
33
+ flex-grow: 10;
34
+ -webkit-flex-grow: 10;
35
+ -moz-flex-grow: 10;
36
+ }
37
+
38
+
39
+ .logo-wrapper {
40
+ padding: 50px 0;
41
+ max-width: 320px;
42
+ margin: 0 auto;
43
+ }
44
+
45
+ .logo-wrapper img {
46
  max-width: 100%;
47
  }
48
 
124
  to {transform:rotate(360deg);}
125
  }
126
 
127
+ @media only screen and (max-width : 1024px) {
128
+ .logo-wrapper { padding: 20px 0;}
129
+ }
130
+
131
  @media only screen and (max-width : 560px) {
132
  .section {padding: 20px 10px;}
133
  .section-logo { padding-top: 20px;}
134
  h2 {font-size: 2.5em;}
135
  .section-body p {font-size: 1em;}
136
+
137
 
138
  }
themes/hardwork_premium_thumbnail.jpg CHANGED
Binary file