Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 3.8.9 |
Comparing to | |
See all releases |
Code changes from version 3.8.8 to 3.8.9
- cmp-translate.php +3 -0
- inc/settings/settings-background.php +1 -1
- niteo-cmp.php +8 -9
- readme.txt +6 -2
cmp-translate.php
CHANGED
@@ -7,6 +7,7 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
7 |
die('Sorry, but this request is invalid');
|
8 |
}
|
9 |
$translation = json_decode( get_option('niteoCS_translation'), true );
|
|
|
10 |
$translation[0]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_0'] );
|
11 |
$translation[1]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_1'] );
|
12 |
$translation[2]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_2'] );
|
@@ -20,6 +21,8 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
20 |
$translation[10]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_10'] );
|
21 |
$translation[11]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_11'] );
|
22 |
$translation[12]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_12'] );
|
|
|
|
|
23 |
|
24 |
update_option('niteoCS_translation', wp_json_encode( $translation ));
|
25 |
}
|
7 |
die('Sorry, but this request is invalid');
|
8 |
}
|
9 |
$translation = json_decode( get_option('niteoCS_translation'), true );
|
10 |
+
|
11 |
$translation[0]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_0'] );
|
12 |
$translation[1]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_1'] );
|
13 |
$translation[2]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_2'] );
|
21 |
$translation[10]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_10'] );
|
22 |
$translation[11]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_11'] );
|
23 |
$translation[12]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_12'] );
|
24 |
+
$translation[13]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_13'] );
|
25 |
+
$translation[14]['translation'] = sanitize_text_field( $_POST['niteoCS_translate_14'] );
|
26 |
|
27 |
update_option('niteoCS_translation', wp_json_encode( $translation ));
|
28 |
}
|
inc/settings/settings-background.php
CHANGED
@@ -194,7 +194,7 @@ $mobile_banner_custom_id = get_option('niteoCS_mobile_banner_id', '');
|
|
194 |
<!-- mobile devices images -->
|
195 |
<fieldset class="background-type-switch custom_banner x0">
|
196 |
<label for="cmp-custom-mobile-imgs">
|
197 |
-
<input type="checkbox" class="custom-mobile-imgs" name="niteoCS_custom_mobile_imgs" id="cmp-custom-mobile-imgs" value="1" <?php checked('1', $custom_mobile_imgs);?>><?php _e('Display
|
198 |
<br><br>
|
199 |
</label>
|
200 |
|
194 |
<!-- mobile devices images -->
|
195 |
<fieldset class="background-type-switch custom_banner x0">
|
196 |
<label for="cmp-custom-mobile-imgs">
|
197 |
+
<input type="checkbox" class="custom-mobile-imgs" name="niteoCS_custom_mobile_imgs" id="cmp-custom-mobile-imgs" value="1" <?php checked('1', $custom_mobile_imgs);?>><?php _e('Display different image on Mobile devices(upload button is below)', 'cmp-coming-soon-maintenance');?>
|
198 |
<br><br>
|
199 |
</label>
|
200 |
|
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.8.
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
@@ -63,7 +63,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
63 |
|
64 |
// define constants
|
65 |
private function constants() {
|
66 |
-
$this->define( 'CMP_VERSION', '3.8.
|
67 |
$this->define( 'CMP_DEBUG', FALSE );
|
68 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
69 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
@@ -135,17 +135,16 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
135 |
* Admin Init - register and enqueue scripts nad styles
|
136 |
*/
|
137 |
public function cmp_adminInit() {
|
|
|
|
|
138 |
|
139 |
-
|
|
|
140 |
|
141 |
-
|
142 |
-
require_once( 'inc/class-cmp-feedback.php' );
|
143 |
|
144 |
-
|
145 |
-
require_once('inc/class-cmp-render_settings.php');
|
146 |
|
147 |
-
$this->render_settings = new cmp_render_settings();
|
148 |
-
|
149 |
wp_register_style( 'cmp-style', plugins_url('/css/cmp-settings-style'.CMP_ASSET_SUFFIX.'.css', __FILE__),'', CMP_VERSION );
|
150 |
wp_register_style( 'cmp-font-awesome', plugins_url('/css/font-awesome.min.css', __FILE__) );
|
151 |
wp_register_style( 'countdown_flatpicker_css', plugins_url('/css/flatpickr.min.css', __FILE__) );
|
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.8.9
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
63 |
|
64 |
// define constants
|
65 |
private function constants() {
|
66 |
+
$this->define( 'CMP_VERSION', '3.8.9' );
|
67 |
$this->define( 'CMP_DEBUG', FALSE );
|
68 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
69 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
135 |
* Admin Init - register and enqueue scripts nad styles
|
136 |
*/
|
137 |
public function cmp_adminInit() {
|
138 |
+
// include feedback class
|
139 |
+
require_once( 'inc/class-cmp-feedback.php' );
|
140 |
|
141 |
+
// ini render-settings class
|
142 |
+
require_once('inc/class-cmp-render_settings.php');
|
143 |
|
144 |
+
$this->render_settings = new cmp_render_settings();
|
|
|
145 |
|
146 |
+
if ( current_user_can('administrator') ) {
|
|
|
147 |
|
|
|
|
|
148 |
wp_register_style( 'cmp-style', plugins_url('/css/cmp-settings-style'.CMP_ASSET_SUFFIX.'.css', __FILE__),'', CMP_VERSION );
|
149 |
wp_register_style( 'cmp-font-awesome', plugins_url('/css/font-awesome.min.css', __FILE__) );
|
150 |
wp_register_style( 'countdown_flatpicker_css', plugins_url('/css/flatpickr.min.css', __FILE__) );
|
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.5
|
8 |
-
Stable tag: 3.8.
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -159,10 +159,14 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
|
|
159 |
<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>
|
160 |
|
161 |
== Changelog ==
|
|
|
|
|
|
|
|
|
162 |
<h4>CMP 3.8.8 - 14-Oct-20</h4>
|
163 |
<ul>
|
164 |
<li>New CMP Theme: Scout</li>
|
165 |
-
<li>
|
166 |
</ul>
|
167 |
<h4>CMP 3.8.7 - 04-Oct-20</h4>
|
168 |
<ul>
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.5
|
8 |
+
Stable tag: 3.8.9
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
159 |
<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>
|
160 |
|
161 |
== Changelog ==
|
162 |
+
<h4>CMP 3.8.9 - 02-Nov-20</h4>
|
163 |
+
<ul>
|
164 |
+
<li>Resolved issue when translation settings of "You must agree with our Terms and Conditions." and "Oops! Email is empty." messages could not be translated./li>
|
165 |
+
</ul>
|
166 |
<h4>CMP 3.8.8 - 14-Oct-20</h4>
|
167 |
<ul>
|
168 |
<li>New CMP Theme: Scout</li>
|
169 |
+
<li>Added new subscribe error messages - when there is no email inserted and GDPR checkbox not checked.</li>
|
170 |
</ul>
|
171 |
<h4>CMP 3.8.7 - 04-Oct-20</h4>
|
172 |
<ul>
|