Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 4.1.1 |
Comparing to | |
See all releases |
Code changes from version 4.1 to 4.1.1
- niteo-cmp.php +2 -2
- readme.txt +5 -1
- themes/construct/construct-defaults.php +0 -22
- themes/construct/construct-settings.php +28 -0
- themes/countdown/countdown-defaults.php +0 -21
- themes/countdown/countdown-settings.php +23 -0
- themes/hardwork/hardwork-defaults.php +0 -19
- themes/hardwork/hardwork-settings.php +23 -0
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: 4.1
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
@@ -62,7 +62,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
62 |
|
63 |
// define constants
|
64 |
private function constants() {
|
65 |
-
$this->define( 'CMP_VERSION', '4.1' );
|
66 |
$this->define( 'CMP_DEBUG', FALSE );
|
67 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
68 |
$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: 4.1.1
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
62 |
|
63 |
// define constants
|
64 |
private function constants() {
|
65 |
+
$this->define( 'CMP_VERSION', '4.1.1' );
|
66 |
$this->define( 'CMP_DEBUG', FALSE );
|
67 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
68 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: coming soon, coming soon page, launch page, maintenance mode, under constr
|
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.9
|
8 |
-
Stable tag: 4.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -160,6 +160,10 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
|
|
160 |
<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>
|
161 |
|
162 |
== Changelog ==
|
|
|
|
|
|
|
|
|
163 |
<h4>CMP 4.1 - 11-Mar-22</h4>
|
164 |
<ul>
|
165 |
<li>New CMP Theme Nova!</li>
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.9
|
8 |
+
Stable tag: 4.1.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
160 |
<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>
|
161 |
|
162 |
== Changelog ==
|
163 |
+
<h4>CMP 4.1.1 - 25-Mar-22</h4>
|
164 |
+
<ul>
|
165 |
+
<li>Resolved issue when using CF7 form in the CMP content and error message "This request is invalid"</li>
|
166 |
+
</ul>
|
167 |
<h4>CMP 4.1 - 11-Mar-22</h4>
|
168 |
<ul>
|
169 |
<li>New CMP Theme Nova!</li>
|
themes/construct/construct-defaults.php
CHANGED
@@ -12,28 +12,6 @@ $theme_supports = array(
|
|
12 |
);
|
13 |
|
14 |
|
15 |
-
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
16 |
-
|
17 |
-
if( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
|
18 |
-
die('Sorry, but this request is invalid');
|
19 |
-
}
|
20 |
-
if ( isset($_POST['niteoCS_active_color_'.$themeslug]) ) {
|
21 |
-
update_option('niteoCS_active_color['.$themeslug.']', sanitize_hex_color( $_POST['niteoCS_active_color_'.$themeslug]));
|
22 |
-
}
|
23 |
-
|
24 |
-
if ( isset($_POST['niteoCS_font_color_'.$themeslug]) ) {
|
25 |
-
update_option('niteoCS_font_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_font_color_'.$themeslug]));
|
26 |
-
}
|
27 |
-
|
28 |
-
if ( isset($_POST['niteoCS_background_color_'.$themeslug]) ) {
|
29 |
-
update_option('niteoCS_background_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_background_color_'.$themeslug]));
|
30 |
-
}
|
31 |
-
|
32 |
-
if ( isset($_POST['niteoCS_social_background_color_'.$themeslug]) ) {
|
33 |
-
update_option('niteoCS_social_background_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_social_background_color_'.$themeslug]));
|
34 |
-
}
|
35 |
-
}
|
36 |
-
|
37 |
// set theme defaults
|
38 |
$banner_type = get_option('niteoCS_banner', '2');
|
39 |
$active_color = get_option('niteoCS_active_color['.$themeslug.']', '#f37004');
|
12 |
);
|
13 |
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
// set theme defaults
|
16 |
$banner_type = get_option('niteoCS_banner', '2');
|
17 |
$active_color = get_option('niteoCS_active_color['.$themeslug.']', '#f37004');
|
themes/construct/construct-settings.php
CHANGED
@@ -1,5 +1,33 @@
|
|
1 |
<?php
|
2 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
?>
|
4 |
|
5 |
<div class="table-wrapper theme-setup">
|
1 |
<?php
|
2 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
3 |
+
|
4 |
+
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
5 |
+
|
6 |
+
if( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
|
7 |
+
die('Sorry, but this request is invalid');
|
8 |
+
}
|
9 |
+
if ( isset($_POST['niteoCS_active_color_'.$themeslug]) ) {
|
10 |
+
update_option('niteoCS_active_color['.$themeslug.']', sanitize_hex_color( $_POST['niteoCS_active_color_'.$themeslug]));
|
11 |
+
}
|
12 |
+
|
13 |
+
if ( isset($_POST['niteoCS_font_color_'.$themeslug]) ) {
|
14 |
+
update_option('niteoCS_font_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_font_color_'.$themeslug]));
|
15 |
+
}
|
16 |
+
|
17 |
+
if ( isset($_POST['niteoCS_background_color_'.$themeslug]) ) {
|
18 |
+
update_option('niteoCS_background_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_background_color_'.$themeslug]));
|
19 |
+
}
|
20 |
+
|
21 |
+
if ( isset($_POST['niteoCS_social_background_color_'.$themeslug]) ) {
|
22 |
+
update_option('niteoCS_social_background_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_social_background_color_'.$themeslug]));
|
23 |
+
}
|
24 |
+
}
|
25 |
+
|
26 |
+
$active_color = get_option('niteoCS_active_color['.$themeslug.']', '#f37004');
|
27 |
+
$font_color = get_option('niteoCS_font_color['.$themeslug.']', '#686868');
|
28 |
+
$background_color = get_option('niteoCS_background_color['.$themeslug.']', '#ffffff');
|
29 |
+
$social_background_color = get_option('niteoCS_social_background_color['.$themeslug.']', '#f8f8f8');
|
30 |
+
|
31 |
?>
|
32 |
|
33 |
<div class="table-wrapper theme-setup">
|
themes/countdown/countdown-defaults.php
CHANGED
@@ -12,26 +12,6 @@ $theme_supports = array(
|
|
12 |
'special_effects' => false,
|
13 |
);
|
14 |
|
15 |
-
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
16 |
-
|
17 |
-
if( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
|
18 |
-
die('Sorry, but this request is invalid');
|
19 |
-
}
|
20 |
-
|
21 |
-
|
22 |
-
if (isset($_POST['niteoCS_active_color_'.$themeslug])) {
|
23 |
-
update_option('niteoCS_active_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_active_color_'.$themeslug]));
|
24 |
-
}
|
25 |
-
|
26 |
-
if (isset($_POST['niteoCS_font_color_'.$themeslug])) {
|
27 |
-
update_option('niteoCS_font_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_font_color_'.$themeslug]));
|
28 |
-
}
|
29 |
-
|
30 |
-
|
31 |
-
if (isset($_POST['niteoCS_social_location']) && $_POST['niteoCS_social_location']) {
|
32 |
-
update_option('niteoCS_social_location', sanitize_text_field($_POST['niteoCS_social_location']));
|
33 |
-
}
|
34 |
-
}
|
35 |
|
36 |
|
37 |
// get theme defaults
|
@@ -39,7 +19,6 @@ $banner_type = get_option('niteoCS_banner', '2');
|
|
39 |
$niteoCS_gradient = get_option('niteoCS_gradient', '#1A2980:#26D0CE');
|
40 |
$active_color = get_option('niteoCS_active_color['.$themeslug.']', '#e82e1e');
|
41 |
$font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
|
42 |
-
|
43 |
$social_location = get_option('niteoCS_social_location', 'footer');
|
44 |
|
45 |
$heading_font = array(
|
12 |
'special_effects' => false,
|
13 |
);
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
|
17 |
// get theme defaults
|
19 |
$niteoCS_gradient = get_option('niteoCS_gradient', '#1A2980:#26D0CE');
|
20 |
$active_color = get_option('niteoCS_active_color['.$themeslug.']', '#e82e1e');
|
21 |
$font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
|
|
|
22 |
$social_location = get_option('niteoCS_social_location', 'footer');
|
23 |
|
24 |
$heading_font = array(
|
themes/countdown/countdown-settings.php
CHANGED
@@ -1,6 +1,29 @@
|
|
1 |
<?php
|
2 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
?>
|
5 |
|
6 |
<style>
|
1 |
<?php
|
2 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
3 |
+
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
4 |
|
5 |
+
if( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
|
6 |
+
die('Sorry, but this request is invalid');
|
7 |
+
}
|
8 |
+
|
9 |
+
|
10 |
+
if (isset($_POST['niteoCS_active_color_'.$themeslug])) {
|
11 |
+
update_option('niteoCS_active_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_active_color_'.$themeslug]));
|
12 |
+
}
|
13 |
+
|
14 |
+
if (isset($_POST['niteoCS_font_color_'.$themeslug])) {
|
15 |
+
update_option('niteoCS_font_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_font_color_'.$themeslug]));
|
16 |
+
}
|
17 |
+
|
18 |
+
|
19 |
+
if (isset($_POST['niteoCS_social_location']) && $_POST['niteoCS_social_location']) {
|
20 |
+
update_option('niteoCS_social_location', sanitize_text_field($_POST['niteoCS_social_location']));
|
21 |
+
}
|
22 |
+
}
|
23 |
+
|
24 |
+
$active_color = get_option('niteoCS_active_color['.$themeslug.']', '#e82e1e');
|
25 |
+
$font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
|
26 |
+
$social_location = get_option('niteoCS_social_location', 'footer');
|
27 |
?>
|
28 |
|
29 |
<style>
|
themes/hardwork/hardwork-defaults.php
CHANGED
@@ -11,25 +11,6 @@ $theme_supports = array(
|
|
11 |
'special_effects' => false,
|
12 |
);
|
13 |
|
14 |
-
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
15 |
-
|
16 |
-
if( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
|
17 |
-
die('Sorry, but this request is invalid');
|
18 |
-
}
|
19 |
-
if ( isset( $_POST['niteoCS_font_color_'.$themeslug] ) ) {
|
20 |
-
update_option('niteoCS_font_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_font_color_'.$themeslug]));
|
21 |
-
}
|
22 |
-
|
23 |
-
if ( isset( $_POST['niteoCS_footer_background_'.$themeslug] ) ) {
|
24 |
-
update_option('niteoCS_footer_background['.$themeslug.']', sanitize_hex_color( $_POST['niteoCS_footer_background_'.$themeslug]) );
|
25 |
-
}
|
26 |
-
|
27 |
-
|
28 |
-
if ( isset( $_POST['niteoCS_footer_background_opacity_'.$themeslug] ) ) {
|
29 |
-
update_option('niteoCS_footer_background_opacity['.$themeslug.']', sanitize_text_field( $_POST['niteoCS_footer_background_opacity_'.$themeslug]) );
|
30 |
-
}
|
31 |
-
}
|
32 |
-
|
33 |
$banner_type = get_option('niteoCS_banner', '2');
|
34 |
$banner_color = get_option('niteoCS_banner_color['.$themeslug.']', '#e5e5e5');
|
35 |
$font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
|
11 |
'special_effects' => false,
|
12 |
);
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
$banner_type = get_option('niteoCS_banner', '2');
|
15 |
$banner_color = get_option('niteoCS_banner_color['.$themeslug.']', '#e5e5e5');
|
16 |
$font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
|
themes/hardwork/hardwork-settings.php
CHANGED
@@ -1,6 +1,29 @@
|
|
1 |
<?php
|
2 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
?>
|
5 |
|
6 |
<style>
|
1 |
<?php
|
2 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
3 |
|
4 |
+
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
5 |
+
|
6 |
+
if( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
|
7 |
+
die('Sorry, but this request is invalid');
|
8 |
+
}
|
9 |
+
|
10 |
+
if ( isset( $_POST['niteoCS_font_color_'.$themeslug] ) ) {
|
11 |
+
update_option('niteoCS_font_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_font_color_'.$themeslug]));
|
12 |
+
}
|
13 |
+
|
14 |
+
if ( isset( $_POST['niteoCS_footer_background_'.$themeslug] ) ) {
|
15 |
+
update_option('niteoCS_footer_background['.$themeslug.']', sanitize_hex_color( $_POST['niteoCS_footer_background_'.$themeslug]) );
|
16 |
+
}
|
17 |
+
|
18 |
+
|
19 |
+
if ( isset( $_POST['niteoCS_footer_background_opacity_'.$themeslug] ) ) {
|
20 |
+
update_option('niteoCS_footer_background_opacity['.$themeslug.']', sanitize_text_field( $_POST['niteoCS_footer_background_opacity_'.$themeslug]) );
|
21 |
+
}
|
22 |
+
}
|
23 |
+
|
24 |
+
$font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
|
25 |
+
$footer_background = get_option('niteoCS_footer_background['.$themeslug.']', '#000000');
|
26 |
+
$footer_opacity = get_option('niteoCS_footer_background_opacity['.$themeslug.']', '0.4');
|
27 |
?>
|
28 |
|
29 |
<style>
|