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

Version Description

Download this release

Release Info

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

Code changes from version 2.8.5 to 2.8.6

inc/class-cmp-render_settings.php CHANGED
@@ -32,7 +32,7 @@ if ( ! class_exists( 'cmp_render_settings' ) ) {
32
 
33
  <tr><th>
34
  <p class="cmp-submit">
35
- <input type="submit" name="submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>"/>
36
  </p>
37
  </th></tr>
38
 
32
 
33
  <tr><th>
34
  <p class="cmp-submit">
35
+ <input type="submit" name="submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" form="csoptions"/>
36
  </p>
37
  </th></tr>
38
 
js/cmp-admin-head.js CHANGED
@@ -1,11 +1,5 @@
1
  jQuery(document).ready(function($) {
2
 
3
- if ( jQuery('#cmp-status').is(':checked') ) {
4
- jQuery('#cmp-toggle-adminbar').addClass('status-1');
5
- } else {
6
- jQuery('#cmp-toggle-adminbar').removeClass('status-1');
7
- }
8
-
9
  // toggle cmp activation via menu bar ajax
10
  jQuery('#cmp-toggle-adminbar').click(function(e) {
11
  e.preventDefault();
1
  jQuery(document).ready(function($) {
2
 
 
 
 
 
 
 
3
  // toggle cmp activation via menu bar ajax
4
  jQuery('#cmp-toggle-adminbar').click(function(e) {
5
  e.preventDefault();
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: 2.8.5
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -66,7 +66,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
66
  private function constants() {
67
 
68
  // define constants
69
- $this->define( 'CMP_VERSION', '2.8.5' );
70
  $this->define( 'CMP_DEBUG', FALSE );
71
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
72
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
@@ -596,6 +596,26 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
596
  return false;
597
  }
598
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
599
  // create nonce for ajax request
600
  $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
601
 
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: 2.8.6
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
66
  private function constants() {
67
 
68
  // define constants
69
+ $this->define( 'CMP_VERSION', '2.8.6' );
70
  $this->define( 'CMP_DEBUG', FALSE );
71
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
72
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
596
  return false;
597
  }
598
 
599
+ // CMP PLUGIN ACTIVATION AND STATUS CHANGE SETTINGS!
600
+ if ( $_SERVER['REQUEST_METHOD'] == 'POST' && ( get_current_screen() && get_current_screen()->id == 'toplevel_page_cmp-settings' ) ) {
601
+
602
+ // verify nonce and user rights
603
+ if ( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
604
+ die('Sorry, but this request is invalid');
605
+ }
606
+
607
+ if ( isset($_POST['activate']) && is_numeric($_POST['activate']) ) {
608
+ update_option('niteoCS_activation', sanitize_text_field($_POST['activate']));
609
+ }
610
+
611
+ if ( isset($_POST['cmp_status']) ) {
612
+ update_option('niteoCS_status', $this->sanitize_checkbox($_POST['cmp_status']) );
613
+ } else {
614
+
615
+ update_option('niteoCS_status', false);
616
+ }
617
+ }
618
+
619
  // create nonce for ajax request
620
  $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
621
 
readme.txt CHANGED
@@ -4,17 +4,18 @@ 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: 4.9
7
- Stable tag: 2.8.5
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Custom Coming soon, Maintenance or Landing page with premium features for free.
12
-
13
 
14
  == Description ==
15
 
16
  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 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.
17
 
 
 
18
  <h3>Live Preview</h3>
19
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&utm_source=wordpress.org&utm_medium=referral" target="_blank">Click for CMP preview>></a>
20
 
@@ -22,28 +23,24 @@ CMP – Coming Soon & Maintenance plugin has all premium features you ever wishe
22
 
23
  <h3>Features</h3>
24
  <ul>
25
- <li>Many predefined Themes with completely different design</li>
26
- <li>Works with any WordPress Theme and on all desktop and mobile devices</li>
27
- <li>Fully responsive</li>
28
- <li>Customize Logo, Typography and Colors</li>
29
- <li>Setup custom Social Icons</li>
30
- <li>Selection of 100 most popular Google fonts with font customization like Font Weight, Letter Spacing and Line Height</li>
31
- <li>Predefined subscribe form to store emails in custom database with export to CSV or you can use any 3rd party plugin(Mailchimp, CF7 and etc)</li>
32
- <li>Select and display random beautiful images from most popular <a href="http://unsplash.com" target="_blank">Unsplash source</a> with built-in search API (random images, search by keyword, category, etc) or can use custom photos</li>
33
- <li>Fullscreen background media includes videos (YouTube, custom file video), images (Unsplash library, custom images), Patterns, color Gradients or solid Colors</li>
34
- <li>Setup Font loading animations on selected Themes</li>
35
- <li>CMP can be applied to specific pages (blacklist and whitelist)</li>
36
- <li>Customizable WordPress roles to bypass CMP</li>
37
- <li>Enable bypass URL parameter to bypass CMP page</li>
38
- <li>Configurable Countdown Action - disable plugin or redirect to another website</li>
39
- <li>Customize SEO meta tags to search engines and editable favicon</li>
40
- <li>Set response code to search engines (200, 503)</li>
41
- <li>Redirect Mode to redirect your website to another website with predefined timer</li>
42
- <li>Insert Google Analytics Code or any javascript</li>
43
- <li>Insert Custom CSS</li>
44
- <li>Uses HTML5 & CSS3</li>
45
- <li>Extandable by downloadable Themes.</li>
46
- <li>Fully translatable</li>
47
  </ul>
48
 
49
  == Screenshots ==
@@ -96,15 +93,18 @@ CMP – Coming Soon & Maintenance plugin has all premium features you ever wishe
96
 
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>503 or 200 HTTP codes, huh?</h4>
103
- <p>OK, it`s easy - if you want to display Coming Soon page you usually wants to search and crawling engines (like Google) to be able to index your website. In that case you need to response with 200 HTTP "OK" - set Coming Soon mode.</p>
104
- <p>On the other hand if you have your website already up and running but you are doing only a short maintenance it`s better to send out 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 to maintenance and do not lower your website SEO score.</p>
 
 
 
105
 
106
  <h4>Is it a bug? Noone likes BUGS!</h4>
107
- <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 we promise to fix it as soon as possible!</p>
108
 
109
  <h4>Features requests or you have new idea?</h4>
110
  <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,6 +114,12 @@ CMP – Coming Soon & Maintenance plugin has all premium features you ever wishe
114
  <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>
115
 
116
  == Changelog ==
 
 
 
 
 
 
117
  <h4>CMP 2.8.5 update</h4>
118
  <ul>
119
  <li>Resolved issue with 404 error after save settings on some server hostings. Big thanks to @darkbluesky and @superven15 for addresing this issue and help with troubleshooting!</li>
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
+ Stable tag: 2.8.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Display beautiful Coming soon, Maintenance or Landing page on your website, packed with premium features for free.
 
12
 
13
  == Description ==
14
 
15
  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 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.
16
 
17
+ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pages, User Roles Management, custom URL Bypass, Translation strings, custom Subscribers option and many more you would not believe it is free. No ADS too, guaranteed!
18
+
19
  <h3>Live Preview</h3>
20
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&utm_source=wordpress.org&utm_medium=referral" target="_blank">Click for CMP preview>></a>
21
 
23
 
24
  <h3>Features</h3>
25
  <ul>
26
+ <li>You can choose from 12 predefined Themes with completely different design. We try to develop new CPM Theme every month for you!</li>
27
+ <li>Our Plugin works with any WordPress Theme and on all desktop or mobile devices (yes it is 100% responsive).</li>
28
+ <li>Some of CMP themes supports custom Subscribe Form to store emails in your database or you can use your MailChimp account via MailChimp API integration.</li>
29
+ <li>Fullscreen background media supports Video (YouTube, custom file video), Images or Image Slider (Unsplash library, custom images), Patterns, Color Gradients or Solid Colors.</li>
30
+ <li>You can search from more than million of free beautiful professional photos from most popular <a href="http://unsplash.com" target="_blank">Unsplash source</a> with built-in search API (random images, search by keyword, category, etc).</li>
31
+ <li>You can set custom Logo, choose from 100 most popular Google fonts and customize Font Weight, Letter Spacing and Line Height.</li>
32
+ <li>Display beautiful icons for any Social network on your website.</li>
33
+ <li>Font loading CSS animations background 3D effects on selected Themes.</li>
34
+ <li>Landing page can be Enabled on specific pages only (Blacklist and Whitelist).</li>
35
+ <li>Customizable WordPress roles to bypass CMP.</li>
36
+ <li>You can generate bypass URL parameter to bypass CMP page for your customers.</li>
37
+ <li>Configurable Countdown Action - disable plugin or redirect to another website.</li>
38
+ <li>Customize SEO meta tags to search engines and editable favicon.</li>
39
+ <li>Set response code to search engines (200 OK, 503 Maintenance).</li>
40
+ <li>Redirect Mode to redirect your website to another website with predefined timer.</li>
41
+ <li>Insert Google Analytics Code or any Javascript code.</li>
42
+ <li>Insert any custom CSS code.</li>
43
+ <li>Plugin is fully translatable.</li>
 
 
 
 
44
  </ul>
45
 
46
  == Screenshots ==
93
 
94
 
95
  == Frequently Asked Questions ==
96
+ <h4>I can't see the landing page I've just activated!</h4>
97
  <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>
98
 
99
+ <h4>I can't activate or deactivate my landing page I've just activated!</h4>
100
+ <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 plugin and check your website again.</p>
101
+
102
+ <h4>What are 503 or 200 HTTP codes, huh?</h4>
103
+ <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>
104
+ <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>
105
 
106
  <h4>Is it a bug? Noone likes BUGS!</h4>
107
+ <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>
108
 
109
  <h4>Features requests or you have new idea?</h4>
110
  <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
  <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>
115
 
116
  == Changelog ==
117
+
118
+ <h4>CMP 2.8.6 update</h4>
119
+ <ul>
120
+ <li>Resolved issue with CMP admin bar icon showing of disabled Coming soon even when enabled in reality.</li>
121
+ </ul>
122
+
123
  <h4>CMP 2.8.5 update</h4>
124
  <ul>
125
  <li>Resolved issue with 404 error after save settings on some server hostings. Big thanks to @darkbluesky and @superven15 for addresing this issue and help with troubleshooting!</li>