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

Version Description

Download this release

Release Info

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

Code changes from version 3.2 to 3.2.1

cmp-settings.php CHANGED
@@ -618,7 +618,11 @@ add_thickbox();
618
  }
619
 
620
  // get thumbnail
621
- $thumbnail = plugins_url('/img/thumbnails/'. $theme_slug . '_thumbnail.jpg', __FILE__); ?>
 
 
 
 
622
 
623
  <div class="theme-wrapper<?php if ( $this->cmp_selectedTheme() == $theme_slug ) { echo ' active'; } ?>" data-security="<?php echo esc_attr($ajax_nonce);?>" data-type="<?php echo esc_attr($type);?>" data-purchased="1" data-slug="<?php echo esc_attr($theme_slug);?>" data-version="<?php echo esc_html($version);?>" data-remote_url="<?php echo esc_url(CMP_UPDATE_URL);?>">
624
  <div class="thumbnail-holder theme-details" style="background-image:url('<?php echo esc_url( $thumbnail ); ?>')"></div>
618
  }
619
 
620
  // get thumbnail
621
+ $thumbnail = plugins_url('/img/thumbnails/'. $theme_slug . '_thumbnail.jpg', __FILE__);
622
+
623
+ if ( !file_exists( CMP_PLUGIN_DIR . '/img/thumbnails/'. $theme_slug . '_thumbnail.jpg' ) ) {
624
+ $thumbnail = $this->cmp_themeURL( $themeslug ) . $theme_slug . '/img/thumbnail.jpg';
625
+ } ?>
626
 
627
  <div class="theme-wrapper<?php if ( $this->cmp_selectedTheme() == $theme_slug ) { echo ' active'; } ?>" data-security="<?php echo esc_attr($ajax_nonce);?>" data-type="<?php echo esc_attr($type);?>" data-purchased="1" data-slug="<?php echo esc_attr($theme_slug);?>" data-version="<?php echo esc_html($version);?>" data-remote_url="<?php echo esc_url(CMP_UPDATE_URL);?>">
628
  <div class="thumbnail-holder theme-details" style="background-image:url('<?php echo esc_url( $thumbnail ); ?>')"></div>
inc/class-cmp-render_html.php CHANGED
@@ -17,7 +17,6 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
17
  case 'fifty':
18
  case 'stylo':
19
  case 'apollo':
20
- case 'vega':
21
  $this->cmp_slider();
22
  return;
23
 
@@ -196,6 +195,23 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
196
  case '4':
197
  // Color
198
  $color = get_option('niteoCS_banner_color', '#e5e5e5');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  $html ='<div id="background-image" class="color loaded" style="background-color:'.esc_url( $color ).'"></div>';
200
  break;
201
 
@@ -618,6 +634,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
618
  case 'agency':
619
  case 'mercury':
620
  case 'stylo':
 
621
  $logo_type = 'text';
622
  break;
623
 
@@ -625,7 +642,6 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
625
  case 'hardwork_premium':
626
  case 'fifty':
627
  case 'element':
628
- case 'apollo':
629
  case 'countdown':
630
  $logo_type = 'graphic';
631
  break;
@@ -884,6 +900,8 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
884
 
885
  httpRequest.open('POST', ajaxurl, true);
886
  httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
 
 
887
  httpRequest.send('action=niteo_subscribe&ajax=true&form_honeypot=&email=' + emailInput.value + '&firstname=' + firstname + '&lastname=' + lastname);
888
  }
889
 
17
  case 'fifty':
18
  case 'stylo':
19
  case 'apollo':
 
20
  $this->cmp_slider();
21
  return;
22
 
195
  case '4':
196
  // Color
197
  $color = get_option('niteoCS_banner_color', '#e5e5e5');
198
+
199
+ // override color settings for theme preview
200
+ if ( isset($_GET['theme']) && !empty($_GET['theme']) ) {
201
+
202
+ $theme = esc_attr( $_GET['theme'] );
203
+ switch ( $theme ) {
204
+ case 'mercury':
205
+ case 'hardwork':
206
+ case 'hardwork_premium':
207
+ $color = '#2e4057';
208
+ break;
209
+
210
+ default:
211
+ break;
212
+ }
213
+ }
214
+
215
  $html ='<div id="background-image" class="color loaded" style="background-color:'.esc_url( $color ).'"></div>';
216
  break;
217
 
634
  case 'agency':
635
  case 'mercury':
636
  case 'stylo':
637
+ case 'apollo':
638
  $logo_type = 'text';
639
  break;
640
 
642
  case 'hardwork_premium':
643
  case 'fifty':
644
  case 'element':
 
645
  case 'countdown':
646
  $logo_type = 'graphic';
647
  break;
900
 
901
  httpRequest.open('POST', ajaxurl, true);
902
  httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
903
+ httpRequest.setRequestHeader("Access-Control-Allow-Origin", "*");
904
+
905
  httpRequest.send('action=niteo_subscribe&ajax=true&form_honeypot=&email=' + emailInput.value + '&firstname=' + firstname + '&lastname=' + lastname);
906
  }
907
 
inc/cmp-update-process.php CHANGED
@@ -89,40 +89,40 @@ if ( version_compare( get_option('niteoCS_version'), CMP_VERSION ) < 0 ) {
89
 
90
  // add telegram social media in 2.8.7 update
91
  if ( !$this->niteo_in_array_r( 'xing', $socialmedia, true ) ) {
92
- $telegram = array(
93
  'name' => 'xing',
94
  'url' => '',
95
  'active' => '1',
96
  'hidden' => '1',
97
  'order' => '21',
98
  );
99
- array_push( $socialmedia, $telegram );
100
  $update = true;
101
  }
102
 
103
  // add github social media in 3.1 update
104
  if ( !$this->niteo_in_array_r( 'github', $socialmedia, true ) ) {
105
- $telegram = array(
106
  'name' => 'github',
107
  'url' => '',
108
  'active' => '1',
109
  'hidden' => '1',
110
  'order' => '22',
111
  );
112
- array_push( $socialmedia, $telegram );
113
  $update = true;
114
  }
115
 
116
  // add github social media in 3.1 update
117
  if ( !$this->niteo_in_array_r( 'snapchat', $socialmedia, true ) ) {
118
- $telegram = array(
119
  'name' => 'snapchat',
120
  'url' => '',
121
  'active' => '1',
122
  'hidden' => '1',
123
  'order' => '23',
124
  );
125
- array_push( $socialmedia, $telegram );
126
  $update = true;
127
  }
128
 
89
 
90
  // add telegram social media in 2.8.7 update
91
  if ( !$this->niteo_in_array_r( 'xing', $socialmedia, true ) ) {
92
+ $xing = array(
93
  'name' => 'xing',
94
  'url' => '',
95
  'active' => '1',
96
  'hidden' => '1',
97
  'order' => '21',
98
  );
99
+ array_push( $socialmedia, $xing );
100
  $update = true;
101
  }
102
 
103
  // add github social media in 3.1 update
104
  if ( !$this->niteo_in_array_r( 'github', $socialmedia, true ) ) {
105
+ $github = array(
106
  'name' => 'github',
107
  'url' => '',
108
  'active' => '1',
109
  'hidden' => '1',
110
  'order' => '22',
111
  );
112
+ array_push( $socialmedia, $github );
113
  $update = true;
114
  }
115
 
116
  // add github social media in 3.1 update
117
  if ( !$this->niteo_in_array_r( 'snapchat', $socialmedia, true ) ) {
118
+ $snapchat = array(
119
  'name' => 'snapchat',
120
  'url' => '',
121
  'active' => '1',
122
  'hidden' => '1',
123
  'order' => '23',
124
  );
125
+ array_push( $socialmedia, $snapchat );
126
  $update = true;
127
  }
128
 
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.2
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.2' );
69
  $this->define( 'CMP_DEBUG', FALSE );
70
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
71
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
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.2.1
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.2.1' );
69
  $this->define( 'CMP_DEBUG', FALSE );
70
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
71
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.0
7
- Stable tag: 3.2
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -97,26 +97,38 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
97
 
98
  == Frequently Asked Questions ==
99
  <h4>I can't see the landing page I've just activated!</h4>
100
- <p>As long as you're logged in as admin, you cannot see it. That`s the purpose of our plugin - it displays Maintenance or Landing page only to non-logged or non-admin logged visitors of your page. By this way you can work on your real website and display different page to your visitors. You can preview the page by clicking on "preview" tab, loggout from Wordpress or access your website from different browser.</p>
101
 
102
- <h4>I can't activate or deactivate my landing page I've just activated!</h4>
103
- <p>We did our best to cooperate with all most used caching plugins, but sometimes it just does not work as expected. Please make sure you delete cache from your favourite caching plugin and check your website again.</p>
 
 
 
 
 
 
104
 
105
  <h4>What are 503 or 200 HTTP codes, huh?</h4>
106
  <p>OK, it`s easy - if you want to display Coming Soon page you usually wants to search engines (like Google) to be able to index your website. In that case you want the response code set to 200 HTTP "OK" - set Coming Soon mode or Landing Page.</p>
107
  <p>On the other hand if you have your website already up and running but you are doing only a short maintenance it is better to send response 503 HTTP Service Unavailable code. By that way you make sure the search engines do not index your temporarily website while it's down for a short maintenance and do not lower your website SEO score.</p>
108
 
109
- <h4>Is it a bug? Noone likes BUGS!</h4>
110
- <p>This is awkward and shame on us:(. Fortunately we are nice guys and if you let us know about it trough <a href="https://niteothemes.com">NiteoThemes website</a> contact form or WordPress Support Forum we promise to fix it as soon as possible!</p>
111
 
112
- <h4>Features requests or you have new idea?</h4>
113
- <p>That`s perfect because we want to make our plugin great and to fit exactly your needs! Just let us know <a href="https://niteothemes.com">NiteoThemes website</a> contact form and we might include it in next plugin update!</p>
114
 
115
 
116
- <h4>I really like your plugin and I want to support it!</h4>
117
- <p>Everyone loves supports and great feedback! If you find our plugin helpful, you can go to wordpress.org and rate it! alternatively you can click on Donate button :)</p>
118
 
119
  == Changelog ==
 
 
 
 
 
 
120
  <h4>CMP 3.2 - 25-Jan-19</h4>
121
  <ul>
122
  <li>Added new CMP Theme: Mercury - enjoy our latest CMP Theme guys!</li>
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Tested up to: 5.0
7
+ Stable tag: 3.2.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
97
 
98
  == Frequently Asked Questions ==
99
  <h4>I can't see the landing page I've just activated!</h4>
100
+ <p>As long as you're logged in as admin, you cannot see it. That`s the purpose of our plugin - it displays Maintenance or Coming Soon page only to guest visitors of your page. Meanwhile you can work on your real website and display CMP Landing Page to your visitors. You can preview the page by clicking on "preview" tab, logout from Wordpress or access your website from a different browser.</p>
101
 
102
+ <h4>I can still see the landing page I've just deactivated!</h4>
103
+ <p>Please make sure to delete cache from your caching plugin, hosting provider and browser as well. Then check your website again. We did our best to cooperate with all most used caching plugins, but sometimes it just does not work as expected and you still need to delete it manually in caching plugin option.</p>
104
+
105
+ <h4>I love the landing page so much, can I use it forever?</h4>
106
+ <p>Yes of course! You can use CMP landing pages as your main splash page! Just make sure to set CMP plugin to "Coming Soon & Landing Page" mode which returns correct response codes to web search engines.</p>
107
+
108
+ <h4>How can I translate text on buttons, countdown text and others?</h4>
109
+ <p>Simply check out CMP Settings > CMP Translation sub-menu where you can translate or modify all these texts!</p>
110
 
111
  <h4>What are 503 or 200 HTTP codes, huh?</h4>
112
  <p>OK, it`s easy - if you want to display Coming Soon page you usually wants to search engines (like Google) to be able to index your website. In that case you want the response code set to 200 HTTP "OK" - set Coming Soon mode or Landing Page.</p>
113
  <p>On the other hand if you have your website already up and running but you are doing only a short maintenance it is better to send response 503 HTTP Service Unavailable code. By that way you make sure the search engines do not index your temporarily website while it's down for a short maintenance and do not lower your website SEO score.</p>
114
 
115
+ <h4>Is it a bug? No one likes BUGS! How can I report it?</h4>
116
+ <p>This is awkward and shame on us:(. Fortunately we are friendly guys and if you let us know about it on WordPress Support Forum we promise to fix it as soon as possible!</p>
117
 
118
+ <h4>I have a perfect idea for new features!</h4>
119
+ <p>That's great! We are happy to hear about any feature or idea you might have to make our plugin perfect! Just let us know <a href="https://niteothemes.com">NiteoThemes website</a> and we will discuss it!</p>
120
 
121
 
122
+ <h4>I really love your plugin and I want to support it!</h4>
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.2.1 - 07-Feb-19</h4>
127
+ <ul>
128
+ <li>Minor style changes when using Blur and Bubbles background effects together.</li>
129
+ <li>Resolved issue with subscriber form error on some hostings.</li>
130
+ </ul>
131
+
132
  <h4>CMP 3.2 - 25-Jan-19</h4>
133
  <ul>
134
  <li>Added new CMP Theme: Mercury - enjoy our latest CMP Theme guys!</li>