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

Version Description

Download this release

Release Info

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

Code changes from version 3.4.3 to 3.4.4

cmp-translate.php CHANGED
@@ -13,9 +13,9 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
13
  2 => array('id' => 2, 'string' => 'Hours', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_2'] )),
14
  3 => array('id' => 3, 'string' => 'Days', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_3'] )),
15
  4 => array('id' => 4, 'string' => 'Insert your email address.', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_4'] )),
16
- 5 => array('id' => 5, 'string' => 'This Email address has already been on our subscriber list.', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_5'] )),
17
- 6 => array('id' => 6, 'string' => 'Please insert valid Email address.', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_6'] )),
18
- 7 => array('id' => 7, 'string' => 'Thank you, your sign-up request was successful!', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_7'] )),
19
  8 => array('id' => 8, 'string' => 'Submit', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_8'] )),
20
  9 => array('id' => 9, 'string' => 'Scroll', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_9'] )),
21
  10 => array('id' => 10, 'string' => 'First Name', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_10'] )),
@@ -34,9 +34,9 @@ if ( !get_option('niteoCS_translation') ) {
34
  2 => array('id' => 2, 'string' => 'Hours', 'translation' => 'Hours' ),
35
  3 => array('id' => 3, 'string' => 'Days', 'translation' => 'Days' ),
36
  4 => array('id' => 4, 'string' => 'Insert your email address.', 'translation' => 'Insert your email address.' ),
37
- 5 => array('id' => 5, 'string' => 'This Email address has already been on our subscriber list.', 'translation' => 'This Email address has already been on our subscriber list.'),
38
- 6 => array('id' => 6, 'string' => 'Please insert valid Email address.', 'translation' => 'Please insert valid Email address.'),
39
- 7 => array('id' => 7, 'string' => 'Thank you, your sign-up request was successful!', 'translation' => 'Thank you, your sign-up request was successful!'),
40
  8 => array('id' => 8, 'string' => 'Submit', 'translation' => 'Submit'),
41
  9 => array('id' => 9, 'string' => 'Scroll', 'translation' => 'Scroll'),
42
  10 => array('id' => 10, 'string' => 'First Name', 'translation' => 'First Name'),
13
  2 => array('id' => 2, 'string' => 'Hours', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_2'] )),
14
  3 => array('id' => 3, 'string' => 'Days', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_3'] )),
15
  4 => array('id' => 4, 'string' => 'Insert your email address.', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_4'] )),
16
+ 5 => array('id' => 5, 'string' => 'Oops! This email address is already on our list.', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_5'] )),
17
+ 6 => array('id' => 6, 'string' => 'Oops! We need a valid address. Please try again.', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_6'] )),
18
+ 7 => array('id' => 7, 'string' => 'Thank you! Your sign up request was successful.', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_7'] )),
19
  8 => array('id' => 8, 'string' => 'Submit', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_8'] )),
20
  9 => array('id' => 9, 'string' => 'Scroll', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_9'] )),
21
  10 => array('id' => 10, 'string' => 'First Name', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_10'] )),
34
  2 => array('id' => 2, 'string' => 'Hours', 'translation' => 'Hours' ),
35
  3 => array('id' => 3, 'string' => 'Days', 'translation' => 'Days' ),
36
  4 => array('id' => 4, 'string' => 'Insert your email address.', 'translation' => 'Insert your email address.' ),
37
+ 5 => array('id' => 5, 'string' => 'Oops! This email address is already on our list', 'translation' => 'Oops! This email address is already on our list.'),
38
+ 6 => array('id' => 6, 'string' => 'Oops! We need a valid address. Please try again.', 'translation' => 'Oops! We need a valid address. Please try again.'),
39
+ 7 => array('id' => 7, 'string' => 'Thank you! Your sign up request was successful.', 'translation' => 'Thank you! Your sign up request was successful.'),
40
  8 => array('id' => 8, 'string' => 'Submit', 'translation' => 'Submit'),
41
  9 => array('id' => 9, 'string' => 'Scroll', 'translation' => 'Scroll'),
42
  10 => array('id' => 10, 'string' => 'First Name', 'translation' => 'First Name'),
img/thumbnails/juno/screenshot1.jpg ADDED
Binary file
img/thumbnails/juno/screenshot2.jpg ADDED
Binary file
img/thumbnails/juno/screenshot3.jpg ADDED
Binary file
img/thumbnails/juno/screenshot4.jpg ADDED
Binary file
img/thumbnails/juno_thumbnail.jpg CHANGED
Binary file
inc/class-cmp-render_html.php CHANGED
@@ -166,7 +166,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
166
  container = document.getElementById("banner-wrapper");
167
  }
168
 
169
- container.appendChild(image);
170
 
171
  var unsplashImg = new Image();
172
 
@@ -666,12 +666,12 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
666
  $logo_type = 'text';
667
  break;
668
 
669
-
670
  case 'hardwork_premium':
671
  case 'fifty':
672
  case 'element':
673
  case 'countdown':
674
  case 'pluto':
 
675
  $logo_type = 'graphic';
676
  break;
677
 
@@ -696,6 +696,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
696
  $logo_id = '33';
697
  break;
698
 
 
 
 
 
699
  default:
700
  break;
701
  }
@@ -776,15 +780,16 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
776
  $placeholder = 'SUBSCRIBE US';
777
  $niteoCS_subscribe_label = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';
778
  break;
779
- case 'hardwork_premium' :
780
  $submit = 'Subscribe';
781
  $niteoCS_subscribe_label = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';
782
  break;
783
- case 'agency' :
784
  $niteoCS_subscribe_label = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.';
785
  break;
786
- case 'mercury' :
787
- $niteoCS_subscribe_label = 'Yes, take me there. We HATES spam!';
 
788
  break;
789
  default:
790
  break;
@@ -1392,7 +1397,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1392
 
1393
  $ver = $this->cmp_theme_version( $themeslug );
1394
 
1395
- if ( $gutenberg !== 'none' ) {
1396
  echo '<link rel="stylesheet" href="'.includes_url('/css/dist/block-library/style.min.css').'" type="text/css" media="all" />' . PHP_EOL;
1397
  }
1398
 
166
  container = document.getElementById("banner-wrapper");
167
  }
168
 
169
+ container.insertAdjacentElement('afterbegin', image);
170
 
171
  var unsplashImg = new Image();
172
 
666
  $logo_type = 'text';
667
  break;
668
 
 
669
  case 'hardwork_premium':
670
  case 'fifty':
671
  case 'element':
672
  case 'countdown':
673
  case 'pluto':
674
+ case 'juno':
675
  $logo_type = 'graphic';
676
  break;
677
 
696
  $logo_id = '33';
697
  break;
698
 
699
+ case 'juno':
700
+ $logo_id = '72';
701
+ break;
702
+
703
  default:
704
  break;
705
  }
780
  $placeholder = 'SUBSCRIBE US';
781
  $niteoCS_subscribe_label = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';
782
  break;
783
+ case 'hardwork_premium':
784
  $submit = 'Subscribe';
785
  $niteoCS_subscribe_label = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';
786
  break;
787
+ case 'agency':
788
  $niteoCS_subscribe_label = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.';
789
  break;
790
+ case 'mercury':
791
+ case 'juno':
792
+ $niteoCS_subscribe_label = 'Yes, take me there. We HATE spam!';
793
  break;
794
  default:
795
  break;
1397
 
1398
  $ver = $this->cmp_theme_version( $themeslug );
1399
 
1400
+ if ( $gutenberg === true ) {
1401
  echo '<link rel="stylesheet" href="'.includes_url('/css/dist/block-library/style.min.css').'" type="text/css" media="all" />' . PHP_EOL;
1402
  }
1403
 
js/preview-iframe.js CHANGED
@@ -25,6 +25,7 @@ $( document ).ready(function() {
25
  "postery" : '1',
26
  "stylo" : '1',
27
  "vega" : '1',
 
28
  "pluto" : '4'
29
  }
30
 
25
  "postery" : '1',
26
  "stylo" : '1',
27
  "vega" : '1',
28
+ "juno" : '1',
29
  "pluto" : '4'
30
  }
31
 
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: 3.4.3
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -65,7 +65,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
65
 
66
  private function constants() {
67
  // define constants
68
- $this->define( 'CMP_VERSION', '3.4.3' );
69
  $this->define( 'CMP_DEBUG', FALSE );
70
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
71
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
@@ -184,7 +184,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
184
  * @return array
185
  */
186
  public function cmp_countdown_themes() {
187
- return array( 'frame', 'countdown', 'postery', 'countdown2', 'stylo', 'element', 'apollo', 'vega', 'agency', 'pluto' );
188
  }
189
 
190
  /**
@@ -226,7 +226,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
226
 
227
  $premium_themes = array();
228
 
229
- // array_push( $premium_themes, array('name' => 'juno', 'url' => 'https://niteothemes.com/downloads/cmp-juno-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=juno', 'price' => '10') );
230
 
231
  array_push( $premium_themes, array('name' => 'pluto', 'url' => 'https://niteothemes.com/downloads/cmp-pluto-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=pluto', 'price' => '10') );
232
 
@@ -1305,9 +1305,9 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1305
  $response_duplicate = $translation[5]['translation'];
1306
  $response_invalid = $translation[6]['translation'];
1307
  } else {
1308
- $response_ok = 'Thank you, your sign-up request was successful!';
1309
- $response_duplicate = 'This Email address has already been on our subscriber list.';
1310
- $response_invalid = 'Please insert valid Email address.';
1311
  }
1312
 
1313
  $ajax = ( isset( $_POST['ajax'] ) && $_POST['ajax'] == TRUE ) ? TRUE : FALSE;
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: 3.4.4
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
65
 
66
  private function constants() {
67
  // define constants
68
+ $this->define( 'CMP_VERSION', '3.4.4' );
69
  $this->define( 'CMP_DEBUG', FALSE );
70
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
71
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
184
  * @return array
185
  */
186
  public function cmp_countdown_themes() {
187
+ return array( 'frame', 'countdown', 'postery', 'countdown2', 'stylo', 'element', 'apollo', 'vega', 'agency', 'pluto', 'juno' );
188
  }
189
 
190
  /**
226
 
227
  $premium_themes = array();
228
 
229
+ array_push( $premium_themes, array('name' => 'juno', 'url' => 'https://niteothemes.com/downloads/cmp-juno-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=juno', 'price' => '10') );
230
 
231
  array_push( $premium_themes, array('name' => 'pluto', 'url' => 'https://niteothemes.com/downloads/cmp-pluto-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=pluto', 'price' => '10') );
232
 
1305
  $response_duplicate = $translation[5]['translation'];
1306
  $response_invalid = $translation[6]['translation'];
1307
  } else {
1308
+ $response_ok = 'Thank you! Your sign up request was successful.';
1309
+ $response_duplicate = 'Oops! This email address is already on our list.';
1310
+ $response_invalid = 'Oops! We need a valid address. Please try again.';
1311
  }
1312
 
1313
  $ajax = ( isset( $_POST['ajax'] ) && $_POST['ajax'] == TRUE ) ? TRUE : FALSE;
readme.txt CHANGED
@@ -4,11 +4,11 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JF
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Tested up to: 5.1
7
- Stable tag: 3.4.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Display beautiful Coming soon(under construction), Maintenance or Landing page on your website, packed with premium features for free.
12
 
13
  == Description ==
14
  CMP – Coming Soon & Maintenance plugin has all premium features you ever wished for, and it is free! It is also super fast and user friendly. You can activate your Maintenance, Coming soon(under construction) or Landing page with a single click. But it is also customizable in many ways - you can select a layout from predefined Themes, set custom logo, background graphics (including YouTube videos or Unsplash images), custom content, subscribe forms, popular social networks icons, typography, colors, SEO, and many more.
@@ -63,6 +63,7 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
63
  18. CMP - Agency Theme
64
  19. CMP - Mercury Theme
65
  20. CMP - Pluto Theme
 
66
 
67
 
68
  == Installation ==
@@ -123,6 +124,11 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
123
  <p>Nothing is better than a good feedback! Please go to <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/">Plugin reviews</a> and rate it! Alternatively you can click on a Donate button too!:)</p>
124
 
125
  == Changelog ==
 
 
 
 
 
126
  <h4>CMP 3.4.3 - 25-Mar-19</h4>
127
  <ul>
128
  <li>Resolved Unsplash Image overlay issues. Thanks to @heartwired for noticing!</li>
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Tested up to: 5.1
7
+ Stable tag: 3.4.4
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Beautiful Coming soon, Maintenance or Landing page on your website, packed with premium features for free.
12
 
13
  == Description ==
14
  CMP – Coming Soon & Maintenance plugin has all premium features you ever wished for, and it is free! It is also super fast and user friendly. You can activate your Maintenance, Coming soon(under construction) or Landing page with a single click. But it is also customizable in many ways - you can select a layout from predefined Themes, set custom logo, background graphics (including YouTube videos or Unsplash images), custom content, subscribe forms, popular social networks icons, typography, colors, SEO, and many more.
63
  18. CMP - Agency Theme
64
  19. CMP - Mercury Theme
65
  20. CMP - Pluto Theme
66
+ 21. CMP - Juno Theme
67
 
68
 
69
  == Installation ==
124
  <p>Nothing is better than a good feedback! Please go to <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/">Plugin reviews</a> and rate it! Alternatively you can click on a Donate button too!:)</p>
125
 
126
  == Changelog ==
127
+ <h4>CMP 3.4.4 - 05-April-19</h4>
128
+ <ul>
129
+ <liNew CMP Theme: Juno! Enjoy as usual :) </li>
130
+ </ul>
131
+
132
  <h4>CMP 3.4.3 - 25-Mar-19</h4>
133
  <ul>
134
  <li>Resolved Unsplash Image overlay issues. Thanks to @heartwired for noticing!</li>
themes/juno.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ /*
2
+ Theme Name: Juno
3
+ Description: <p>Juno is perfect for agencies or individuals that need to set up professional looking landing or coming soon page for early visitors while their website is under development or maintenance. You can display the post, set the counter, social media and stay in touch with your visitors via the subscribe form.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
4
+