Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 3.4.3 |
Comparing to | |
See all releases |
Code changes from version 3.4.2 to 3.4.3
- img/thumbnails/juno_thumbnail.jpg +0 -0
- inc/class-cmp-render_html.php +22 -9
- inc/cmp-activation-notice.php +37 -0
- js/settings.js +3 -7
- niteo-cmp.php +39 -6
- readme.txt +8 -1
img/thumbnails/juno_thumbnail.jpg
ADDED
Binary file
|
inc/class-cmp-render_html.php
CHANGED
@@ -804,6 +804,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
804 |
}
|
805 |
|
806 |
$submit = ( ( $this->cmp_selectedTheme() == 'postery' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'postery' ) ) ? '' : $submit;
|
|
|
807 |
$submit = ( ( $this->cmp_selectedTheme() == 'agency' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'agency' ) ) ? '' : $submit;
|
808 |
|
809 |
?>
|
@@ -896,7 +897,12 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
896 |
|
897 |
<script>
|
898 |
/* Subscribe form script */
|
899 |
-
|
|
|
|
|
|
|
|
|
|
|
900 |
var security = '<?php echo wp_create_nonce( 'cmp-subscribe-action' );?>';
|
901 |
var msg = '';
|
902 |
|
@@ -1142,7 +1148,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1142 |
|
1143 |
$subset = array_unique( array_merge( $heading_subsets, $content_subsets ) );
|
1144 |
|
1145 |
-
return '<link href="https://fonts.googleapis.com/css?family='. esc_attr( str_replace(' ', '+', $heading_font['family']) ) .':400,700,'. esc_attr(str_replace('italic', 'i', $heading_font['variant'] )) .'%7C'. esc_attr( str_replace(' ', '+', $content_font['family']) ) .':400,400i,700,'. esc_attr(str_replace('italic', '', $content_font['variant'] )) .','. esc_attr(str_replace('italic', '', $content_font['variant'] )) .'i&subset=' . implode(',', $subset) . '" rel="stylesheet">';
|
1146 |
}
|
1147 |
|
1148 |
/**
|
@@ -1233,7 +1239,11 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1233 |
?>
|
1234 |
<!-- blur effect -->
|
1235 |
<style>
|
1236 |
-
#background-image
|
|
|
|
|
|
|
|
|
1237 |
.background-overlay {transform:scale(1.1);}
|
1238 |
#background-wrapper, .slick-slider {overflow:hidden;}
|
1239 |
#background-image:not(.slide) {background-attachment: initial;}
|
@@ -1376,26 +1386,29 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1376 |
/**
|
1377 |
* @since 3.2
|
1378 |
* echo CSS styles to head
|
1379 |
-
*
|
1380 |
* @return void
|
1381 |
**/
|
1382 |
-
public function cmp_enqueue_styles( $themeslug = 'hardwork', $font_ani = 'none', $slider = '0', $banner_type = '2', $fa = false ) {
|
1383 |
|
1384 |
$ver = $this->cmp_theme_version( $themeslug );
|
1385 |
|
|
|
|
|
|
|
|
|
1386 |
// theme stylesheet
|
1387 |
-
echo '<link rel="stylesheet" href="' . $this->cmp_themeURL( $themeslug ) . $themeslug.'/style.css?v='.$ver . '" type="text/css" media="all">';
|
1388 |
|
1389 |
if ( $font_ani !== 'none' ) {
|
1390 |
-
echo '<link rel="stylesheet" href="'. esc_url( $this->cmp_asset_url('/css/animate.min.css') ) . '">';
|
1391 |
}
|
1392 |
|
1393 |
if ( $slider == '1' && ($banner_type == '0' || $banner_type == '1') ) {
|
1394 |
-
echo '<link href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css" rel="stylesheet">';
|
1395 |
}
|
1396 |
|
1397 |
if ( $fa === true ) {
|
1398 |
-
echo '<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" >';
|
1399 |
}
|
1400 |
|
1401 |
}
|
804 |
}
|
805 |
|
806 |
$submit = ( ( $this->cmp_selectedTheme() == 'postery' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'postery' ) ) ? '' : $submit;
|
807 |
+
$submit = ( ( $this->cmp_selectedTheme() == 'juno' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'juno' ) ) ? '' : $submit;
|
808 |
$submit = ( ( $this->cmp_selectedTheme() == 'agency' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'agency' ) ) ? '' : $submit;
|
809 |
|
810 |
?>
|
897 |
|
898 |
<script>
|
899 |
/* Subscribe form script */
|
900 |
+
<?php
|
901 |
+
$url = parse_url( admin_url() );
|
902 |
+
$path = isset($url['path']) ? $url['path'] : '/wp-admin/';
|
903 |
+
?>
|
904 |
+
|
905 |
+
var ajaxurl = '<?php echo esc_attr($path);?>admin-ajax.php';
|
906 |
var security = '<?php echo wp_create_nonce( 'cmp-subscribe-action' );?>';
|
907 |
var msg = '';
|
908 |
|
1148 |
|
1149 |
$subset = array_unique( array_merge( $heading_subsets, $content_subsets ) );
|
1150 |
|
1151 |
+
return '<link href="https://fonts.googleapis.com/css?family='. esc_attr( str_replace(' ', '+', $heading_font['family']) ) .':400,700,'. esc_attr(str_replace('italic', 'i', $heading_font['variant'] )) .'%7C'. esc_attr( str_replace(' ', '+', $content_font['family']) ) .':400,400i,700,'. esc_attr(str_replace('italic', '', $content_font['variant'] )) .','. esc_attr(str_replace('italic', '', $content_font['variant'] )) .'i&subset=' . implode(',', $subset) . '" rel="stylesheet">' . PHP_EOL;
|
1152 |
}
|
1153 |
|
1154 |
/**
|
1239 |
?>
|
1240 |
<!-- blur effect -->
|
1241 |
<style>
|
1242 |
+
#background-image,
|
1243 |
+
.slide-background,
|
1244 |
+
.video-banner {filter:blur(<?php echo esc_attr($blur);?>px);}
|
1245 |
+
#background-image,
|
1246 |
+
.video-banner,
|
1247 |
.background-overlay {transform:scale(1.1);}
|
1248 |
#background-wrapper, .slick-slider {overflow:hidden;}
|
1249 |
#background-image:not(.slide) {background-attachment: initial;}
|
1386 |
/**
|
1387 |
* @since 3.2
|
1388 |
* echo CSS styles to head
|
|
|
1389 |
* @return void
|
1390 |
**/
|
1391 |
+
public function cmp_enqueue_styles( $themeslug = 'hardwork', $font_ani = 'none', $slider = '0', $banner_type = '2', $fa = false, $gutenberg = false ) {
|
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 |
+
|
1399 |
// theme stylesheet
|
1400 |
+
echo '<link rel="stylesheet" href="' . $this->cmp_themeURL( $themeslug ) . $themeslug.'/style.css?v='.$ver . '" type="text/css" media="all">' . PHP_EOL;
|
1401 |
|
1402 |
if ( $font_ani !== 'none' ) {
|
1403 |
+
echo '<link rel="stylesheet" href="'. esc_url( $this->cmp_asset_url('/css/animate.min.css') ) . '">' . PHP_EOL;
|
1404 |
}
|
1405 |
|
1406 |
if ( $slider == '1' && ($banner_type == '0' || $banner_type == '1') ) {
|
1407 |
+
echo '<link href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css" rel="stylesheet">' . PHP_EOL;
|
1408 |
}
|
1409 |
|
1410 |
if ( $fa === true ) {
|
1411 |
+
echo '<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" >' . PHP_EOL;
|
1412 |
}
|
1413 |
|
1414 |
}
|
inc/cmp-activation-notice.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* CMP Activation botice template
|
4 |
+
*/
|
5 |
+
?>
|
6 |
+
|
7 |
+
<style>
|
8 |
+
.cmp-feedback.updated {border-left-color: #18a0d2;position: relative;min-height: 90px;}
|
9 |
+
.cmp-notice-icon {float: left;margin-right: 1em;margin-top: 1em;}
|
10 |
+
.cmp-leave-feedback {text-align: right;position: absolute;right: 1em;bottom: 1em;}
|
11 |
+
@media screen and (max-width: 1366px) { .cmp-leave-feedback {position: relative;bottom: initial;margin: 1em 0;} }
|
12 |
+
</style>
|
13 |
+
|
14 |
+
<div class="cmp-feedback updated activation">
|
15 |
+
<div class="cmp-notice-icon">
|
16 |
+
<img src="<?php echo plugins_url('../img/cmp.png', __FILE__);?>" alt="CMP Logo" class="cmp-logo">
|
17 |
+
</div>
|
18 |
+
|
19 |
+
<h3><?php _e('Thank you for installing CMP - Coming soon & Maintenance Plugin!', 'cmp-coming-soon-maintenance');?></h3>
|
20 |
+
<span><?php printf( esc_html__( 'You can customize the Coming Soon Page in %1$s or activate the Coming Soon Mode by Top bar CMP icon right away!', 'cmp-coming-soon-maintenance' ), '<a href="'. admin_url() . 'admin.php?page=cmp-settings">CMP Settings</a>'); ?></span>
|
21 |
+
<div class="cmp-leave-feedback">
|
22 |
+
<div><a href="#dismiss" class="cmp-activation-dismiss"><?php echo esc_html__( 'Dismiss', 'cmp-coming-soon-maintenance' ); ?></a></div>
|
23 |
+
</div>
|
24 |
+
</div>
|
25 |
+
|
26 |
+
<script type="text/javascript">
|
27 |
+
jQuery(document).ready( function($) {
|
28 |
+
$(document).on( 'click', '.cmp-activation-dismiss', function( event ) {
|
29 |
+
event.preventDefault();
|
30 |
+
$.post( ajaxurl, {
|
31 |
+
action: 'cmp_ajax_dismiss_activation_notice',
|
32 |
+
nonce: '<?php echo wp_create_nonce( 'cmp-coming-soon-maintenance-nonce' ); ?>'
|
33 |
+
});
|
34 |
+
$('.cmp-feedback.activation').remove();
|
35 |
+
});
|
36 |
+
});
|
37 |
+
</script>
|
js/settings.js
CHANGED
@@ -238,17 +238,13 @@ jQuery(document).ready(function($) {
|
|
238 |
var unsplash = jQuery.parseJSON(unsplash.body);
|
239 |
|
240 |
if (unsplash[0]) {
|
241 |
-
var img =
|
242 |
-
unsplash[0]["urls"]["raw"] +
|
243 |
-
"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588";
|
244 |
var author = unsplash[0]["user"]["name"];
|
245 |
var author_url = unsplash[0]["user"]["links"]["html"];
|
246 |
var img_url = unsplash[0]["links"]["html"];
|
247 |
var img_id = unsplash[0]["id"];
|
248 |
} else {
|
249 |
-
var img =
|
250 |
-
unsplash["urls"]["raw"] +
|
251 |
-
"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588";
|
252 |
var author = unsplash["user"]["name"];
|
253 |
var author_url = unsplash["user"]["links"]["html"];
|
254 |
var img_url = unsplash["links"]["html"];
|
@@ -290,7 +286,7 @@ jQuery(document).ready(function($) {
|
|
290 |
"<p>Error " +
|
291 |
unsplash.response +
|
292 |
': <span style="text-transform:lowercase;">' +
|
293 |
-
unsplash.body +
|
294 |
"</span></p>"
|
295 |
);
|
296 |
clearTimeout(loadingTimeout);
|
238 |
var unsplash = jQuery.parseJSON(unsplash.body);
|
239 |
|
240 |
if (unsplash[0]) {
|
241 |
+
var img = unsplash[0]["urls"]["raw"] + "?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588";
|
|
|
|
|
242 |
var author = unsplash[0]["user"]["name"];
|
243 |
var author_url = unsplash[0]["user"]["links"]["html"];
|
244 |
var img_url = unsplash[0]["links"]["html"];
|
245 |
var img_id = unsplash[0]["id"];
|
246 |
} else {
|
247 |
+
var img =unsplash["urls"]["raw"] + "?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588";
|
|
|
|
|
248 |
var author = unsplash["user"]["name"];
|
249 |
var author_url = unsplash["user"]["links"]["html"];
|
250 |
var img_url = unsplash["links"]["html"];
|
286 |
"<p>Error " +
|
287 |
unsplash.response +
|
288 |
': <span style="text-transform:lowercase;">' +
|
289 |
+
JSON.parse(unsplash.body).errors +
|
290 |
"</span></p>"
|
291 |
);
|
292 |
clearTimeout(loadingTimeout);
|
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.
|
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.
|
69 |
$this->define( 'CMP_DEBUG', FALSE );
|
70 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
71 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
@@ -100,6 +100,9 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
100 |
add_action( 'wp_ajax_cmp_get_post_detail', array( $this, 'cmp_get_post_detail' ) );
|
101 |
add_action( 'wp_ajax_nopriv_cmp_get_post_detail', array( $this, 'cmp_get_post_detail' ) );
|
102 |
add_action( 'wp_ajax_cmp_check_update', array( $this, 'cmp_check_update' ) );
|
|
|
|
|
|
|
103 |
|
104 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this,'add_action_links' ) );
|
105 |
|
@@ -223,9 +226,11 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
223 |
|
224 |
$premium_themes = array();
|
225 |
|
|
|
|
|
226 |
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') );
|
227 |
|
228 |
-
array_push( $premium_themes, array('name' => 'mercury', 'url' => 'https://niteothemes.com/downloads/cmp-mercury-theme/?
|
229 |
|
230 |
array_push( $premium_themes, array('name' => 'agency', 'url' => 'https://niteothemes.com/downloads/cmp-agency-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=agency', 'price' => '15') );
|
231 |
|
@@ -445,12 +450,12 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
445 |
|
446 |
/**
|
447 |
* Return CMP active status 0 or 1
|
448 |
-
*
|
449 |
* @since 3.1.2
|
450 |
* @return string
|
451 |
*/
|
452 |
public function cmp_active() {
|
453 |
-
return get_option('niteoCS_status') === '0' ? '0': '1';
|
454 |
}
|
455 |
|
456 |
/**
|
@@ -823,6 +828,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
823 |
update_option($option['name'], $option['value']);
|
824 |
}
|
825 |
|
|
|
|
|
826 |
// delete archive
|
827 |
delete_option('niteoCS_archive');
|
828 |
}
|
@@ -1465,6 +1472,9 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
1465 |
|
1466 |
|
1467 |
public function cmp_admin_notice() {
|
|
|
|
|
|
|
1468 |
if ( isset($_GET['page']) && ($_GET['page'] == 'cmp-settings' || $_GET['page'] == 'cmp-translate' || $_GET['page'] == 'cmp-advanced') ) {
|
1469 |
if (isset($_GET['status']) && $_GET['status'] == 'settings-saved') {
|
1470 |
$status = 'success';
|
@@ -1473,6 +1483,14 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
1473 |
echo '<div class="notice notice-'.$status.' is-dismissible"><p>'.$message.'.</p></div>';
|
1474 |
}
|
1475 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1476 |
return;
|
1477 |
}
|
1478 |
|
@@ -1789,7 +1807,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
1789 |
|
1790 |
$page_wl_custom = json_decode(get_option('niteoCS_page_whitelist_custom', '[]'), true);
|
1791 |
|
1792 |
-
if ( !empty( $page_wl_custom ) && in_array( $current_url
|
1793 |
return true;
|
1794 |
}
|
1795 |
|
@@ -2159,6 +2177,21 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
2159 |
'url' => get_the_permalink( $id ),
|
2160 |
));
|
2161 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2162 |
}
|
2163 |
|
2164 |
endif;
|
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 |
|
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' );
|
100 |
add_action( 'wp_ajax_cmp_get_post_detail', array( $this, 'cmp_get_post_detail' ) );
|
101 |
add_action( 'wp_ajax_nopriv_cmp_get_post_detail', array( $this, 'cmp_get_post_detail' ) );
|
102 |
add_action( 'wp_ajax_cmp_check_update', array( $this, 'cmp_check_update' ) );
|
103 |
+
add_action( 'wp_ajax_cmp_ajax_dismiss_activation_notice', array( $this, 'cmp_ajax_dismiss_activation_notice' ) );
|
104 |
+
|
105 |
+
|
106 |
|
107 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this,'add_action_links' ) );
|
108 |
|
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 |
|
233 |
+
array_push( $premium_themes, array('name' => 'mercury', 'url' => 'https://niteothemes.com/downloads/cmp-mercury-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=mercury', 'price' => '10') );
|
234 |
|
235 |
array_push( $premium_themes, array('name' => 'agency', 'url' => 'https://niteothemes.com/downloads/cmp-agency-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=agency', 'price' => '15') );
|
236 |
|
450 |
|
451 |
/**
|
452 |
* Return CMP active status 0 or 1
|
453 |
+
* Default is 0 after CMP plugin installation
|
454 |
* @since 3.1.2
|
455 |
* @return string
|
456 |
*/
|
457 |
public function cmp_active() {
|
458 |
+
return get_option('niteoCS_status', '0') === '0' ? '0': '1';
|
459 |
}
|
460 |
|
461 |
/**
|
828 |
update_option($option['name'], $option['value']);
|
829 |
}
|
830 |
|
831 |
+
update_option( 'niteoCS_activation_notice', false );
|
832 |
+
|
833 |
// delete archive
|
834 |
delete_option('niteoCS_archive');
|
835 |
}
|
1472 |
|
1473 |
|
1474 |
public function cmp_admin_notice() {
|
1475 |
+
global $pagenow;
|
1476 |
+
|
1477 |
+
// display save messages
|
1478 |
if ( isset($_GET['page']) && ($_GET['page'] == 'cmp-settings' || $_GET['page'] == 'cmp-translate' || $_GET['page'] == 'cmp-advanced') ) {
|
1479 |
if (isset($_GET['status']) && $_GET['status'] == 'settings-saved') {
|
1480 |
$status = 'success';
|
1483 |
echo '<div class="notice notice-'.$status.' is-dismissible"><p>'.$message.'.</p></div>';
|
1484 |
}
|
1485 |
}
|
1486 |
+
|
1487 |
+
// display activation notice
|
1488 |
+
if ( !get_option( 'niteoCS_activation_notice' ) ) {
|
1489 |
+
if ( ( $pagenow == 'plugins.php') ) {
|
1490 |
+
// load the notices view
|
1491 |
+
require_once( dirname( __FILE__) . '/inc/cmp-activation-notice.php' );
|
1492 |
+
}
|
1493 |
+
}
|
1494 |
return;
|
1495 |
}
|
1496 |
|
1807 |
|
1808 |
$page_wl_custom = json_decode(get_option('niteoCS_page_whitelist_custom', '[]'), true);
|
1809 |
|
1810 |
+
if ( !empty( $page_wl_custom ) && in_array( $current_url, $page_wl_custom ) ) {
|
1811 |
return true;
|
1812 |
}
|
1813 |
|
2177 |
'url' => get_the_permalink( $id ),
|
2178 |
));
|
2179 |
}
|
2180 |
+
|
2181 |
+
/**
|
2182 |
+
* Dismiss activation notice
|
2183 |
+
*
|
2184 |
+
* @since 3.4.3
|
2185 |
+
* @access public
|
2186 |
+
* @return void
|
2187 |
+
*/
|
2188 |
+
function cmp_ajax_dismiss_activation_notice() {
|
2189 |
+
check_ajax_referer( 'cmp-coming-soon-maintenance-nonce', 'nonce' );
|
2190 |
+
// user has dismissed the welcome notice
|
2191 |
+
update_option( 'niteoCS_activation_notice', true );
|
2192 |
+
wp_die();
|
2193 |
+
exit;
|
2194 |
+
}
|
2195 |
}
|
2196 |
|
2197 |
endif;
|
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.1
|
7 |
-
Stable tag: 3.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -123,6 +123,13 @@ 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.2 - 13-Mar-19</h4>
|
127 |
<ul>
|
128 |
<li>Corrected PHP syntax in Whitelist Settings causing Fatal Error on PHP! Thanks million times to @n10s</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.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
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>
|
129 |
+
<li>CMP Coming soon mode is now disabled after plugin activation by default. Activation notice has been added. Thanks to @heartwired again!</li>
|
130 |
+
<li>Updated Subscribe message formatting, if JavaScript is forbidden.</li>
|
131 |
+
</ul>
|
132 |
+
|
133 |
<h4>CMP 3.4.2 - 13-Mar-19</h4>
|
134 |
<ul>
|
135 |
<li>Corrected PHP syntax in Whitelist Settings causing Fatal Error on PHP! Thanks million times to @n10s</li>
|