Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 4.0.14 |
Comparing to | |
See all releases |
Code changes from version 4.0.13 to 4.0.14
- cmp-settings.php +2 -0
- inc/cmp-update-process.php +7 -7
- inc/render/graphic-background.php +2 -1
- niteo-cmp.php +6 -2
- readme.txt +5 -1
cmp-settings.php
CHANGED
@@ -498,8 +498,10 @@ if ( !get_option('niteoCS_socialmedia') ) {
|
|
498 |
'discord',
|
499 |
'goodreads',
|
500 |
'rss',
|
|
|
501 |
'imdb',
|
502 |
'wikipedia',
|
|
|
503 |
);
|
504 |
$i = 0;
|
505 |
$socialmedia = array();
|
498 |
'discord',
|
499 |
'goodreads',
|
500 |
'rss',
|
501 |
+
'tiktok',
|
502 |
'imdb',
|
503 |
'wikipedia',
|
504 |
+
'twitch'
|
505 |
);
|
506 |
$i = 0;
|
507 |
$socialmedia = array();
|
inc/cmp-update-process.php
CHANGED
@@ -247,7 +247,7 @@ if ( version_compare($pre_update_version, CMP_VERSION ) < 0 ) {
|
|
247 |
'url' => '',
|
248 |
'active' => '1',
|
249 |
'hidden' => '1',
|
250 |
-
'order' =>
|
251 |
);
|
252 |
array_push( $socialmedia, $discord );
|
253 |
$update = true;
|
@@ -259,7 +259,7 @@ if ( version_compare($pre_update_version, CMP_VERSION ) < 0 ) {
|
|
259 |
'url' => '',
|
260 |
'active' => '1',
|
261 |
'hidden' => '1',
|
262 |
-
'order' =>
|
263 |
);
|
264 |
array_push( $socialmedia, $discord );
|
265 |
$update = true;
|
@@ -271,7 +271,7 @@ if ( version_compare($pre_update_version, CMP_VERSION ) < 0 ) {
|
|
271 |
'url' => '',
|
272 |
'active' => '1',
|
273 |
'hidden' => '1',
|
274 |
-
'order' =>
|
275 |
);
|
276 |
array_push( $socialmedia, $rss );
|
277 |
$update = true;
|
@@ -284,7 +284,7 @@ if ( version_compare($pre_update_version, CMP_VERSION ) < 0 ) {
|
|
284 |
'url' => '',
|
285 |
'active' => '1',
|
286 |
'hidden' => '1',
|
287 |
-
'order' =>
|
288 |
);
|
289 |
array_push( $socialmedia, $tiktok );
|
290 |
$update = true;
|
@@ -296,7 +296,7 @@ if ( version_compare($pre_update_version, CMP_VERSION ) < 0 ) {
|
|
296 |
'url' => '',
|
297 |
'active' => '1',
|
298 |
'hidden' => '1',
|
299 |
-
'order' =>
|
300 |
);
|
301 |
array_push( $socialmedia, $icon );
|
302 |
$update = true;
|
@@ -308,7 +308,7 @@ if ( version_compare($pre_update_version, CMP_VERSION ) < 0 ) {
|
|
308 |
'url' => '',
|
309 |
'active' => '1',
|
310 |
'hidden' => '1',
|
311 |
-
'order' =>
|
312 |
);
|
313 |
array_push( $socialmedia, $icon );
|
314 |
$update = true;
|
@@ -321,7 +321,7 @@ if ( version_compare($pre_update_version, CMP_VERSION ) < 0 ) {
|
|
321 |
'url' => '',
|
322 |
'active' => '1',
|
323 |
'hidden' => '1',
|
324 |
-
'order' =>
|
325 |
);
|
326 |
array_push( $socialmedia, $icon );
|
327 |
$update = true;
|
247 |
'url' => '',
|
248 |
'active' => '1',
|
249 |
'hidden' => '1',
|
250 |
+
'order' => 25,
|
251 |
);
|
252 |
array_push( $socialmedia, $discord );
|
253 |
$update = true;
|
259 |
'url' => '',
|
260 |
'active' => '1',
|
261 |
'hidden' => '1',
|
262 |
+
'order' => 26,
|
263 |
);
|
264 |
array_push( $socialmedia, $discord );
|
265 |
$update = true;
|
271 |
'url' => '',
|
272 |
'active' => '1',
|
273 |
'hidden' => '1',
|
274 |
+
'order' => 27,
|
275 |
);
|
276 |
array_push( $socialmedia, $rss );
|
277 |
$update = true;
|
284 |
'url' => '',
|
285 |
'active' => '1',
|
286 |
'hidden' => '1',
|
287 |
+
'order' => 28,
|
288 |
);
|
289 |
array_push( $socialmedia, $tiktok );
|
290 |
$update = true;
|
296 |
'url' => '',
|
297 |
'active' => '1',
|
298 |
'hidden' => '1',
|
299 |
+
'order' => 29,
|
300 |
);
|
301 |
array_push( $socialmedia, $icon );
|
302 |
$update = true;
|
308 |
'url' => '',
|
309 |
'active' => '1',
|
310 |
'hidden' => '1',
|
311 |
+
'order' => 30,
|
312 |
);
|
313 |
array_push( $socialmedia, $icon );
|
314 |
$update = true;
|
321 |
'url' => '',
|
322 |
'active' => '1',
|
323 |
'hidden' => '1',
|
324 |
+
'order' => 31,
|
325 |
);
|
326 |
array_push( $socialmedia, $icon );
|
327 |
$update = true;
|
inc/render/graphic-background.php
CHANGED
@@ -10,12 +10,13 @@ if ( isset( $_GET['background'] ) && !empty($_GET['background']) ) {
|
|
10 |
}
|
11 |
|
12 |
// change theme slug if cmp_preview is set to preview another cmp theme
|
13 |
-
if ( isset( $_GET['cmp_theme'] ) && !empty( $_GET['cmp_theme'] ) ) {
|
14 |
$theme_slug = esc_attr($_GET['cmp_theme']);
|
15 |
} else {
|
16 |
$theme_slug = $this->cmp_selectedTheme();
|
17 |
}
|
18 |
|
|
|
19 |
if ( file_exists( $this->cmp_theme_dir( $theme_slug ).$theme_slug.'/img/'.$theme_slug.'_banner_'.$size.'.jpg' ) ) {
|
20 |
$default_img = $this->cmp_themeURL( $theme_slug ).$theme_slug.'/img/'.$theme_slug.'_banner_'.$size.'.jpg';
|
21 |
} elseif ( file_exists( $this->cmp_theme_dir( $theme_slug ).$theme_slug.'/img/'.$theme_slug.'_banner_'.$size.'.png' ) ) {
|
10 |
}
|
11 |
|
12 |
// change theme slug if cmp_preview is set to preview another cmp theme
|
13 |
+
if ( isset( $_GET['cmp_theme'] ) && !empty( $_GET['cmp_theme'] ) && in_array($_GET['cmp_theme'], $this->cmp_themes_available())) {
|
14 |
$theme_slug = esc_attr($_GET['cmp_theme']);
|
15 |
} else {
|
16 |
$theme_slug = $this->cmp_selectedTheme();
|
17 |
}
|
18 |
|
19 |
+
|
20 |
if ( file_exists( $this->cmp_theme_dir( $theme_slug ).$theme_slug.'/img/'.$theme_slug.'_banner_'.$size.'.jpg' ) ) {
|
21 |
$default_img = $this->cmp_themeURL( $theme_slug ).$theme_slug.'/img/'.$theme_slug.'_banner_'.$size.'.jpg';
|
22 |
} elseif ( file_exists( $this->cmp_theme_dir( $theme_slug ).$theme_slug.'/img/'.$theme_slug.'_banner_'.$size.'.png' ) ) {
|
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.0.
|
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.0.
|
66 |
$this->define( 'CMP_DEBUG', false );
|
67 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
68 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
@@ -782,6 +782,10 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
782 |
if ( isset($_GET['cmp_preview']) && $_GET['cmp_preview'] == 'true' ) {
|
783 |
$theme = isset( $_GET['cmp_theme'] ) ? $_GET['cmp_theme'] : $theme;
|
784 |
|
|
|
|
|
|
|
|
|
785 |
// finally render theme preview cmp_preview=true
|
786 |
if ( file_exists( $this->cmp_theme_dir( $theme ).$theme.'/'.$theme.'-theme.php') ) {
|
787 |
require_once ( $this->cmp_theme_dir( $theme ).$theme.'/'.$theme.'-theme.php' );
|
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.0.14
|
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.0.14' );
|
66 |
$this->define( 'CMP_DEBUG', false );
|
67 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
68 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
782 |
if ( isset($_GET['cmp_preview']) && $_GET['cmp_preview'] == 'true' ) {
|
783 |
$theme = isset( $_GET['cmp_theme'] ) ? $_GET['cmp_theme'] : $theme;
|
784 |
|
785 |
+
if ( !in_array($theme, $this->cmp_themes_available()) ) {
|
786 |
+
$theme = $this->cmp_selectedTheme();
|
787 |
+
}
|
788 |
+
|
789 |
// finally render theme preview cmp_preview=true
|
790 |
if ( file_exists( $this->cmp_theme_dir( $theme ).$theme.'/'.$theme.'-theme.php') ) {
|
791 |
require_once ( $this->cmp_theme_dir( $theme ).$theme.'/'.$theme.'-theme.php' );
|
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.7
|
8 |
-
Stable tag: 4.0.
|
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.0.13 - 03-May-21</h4>
|
164 |
<ul>
|
165 |
<li>Added Twitch TV social icon.</li>
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.7
|
8 |
+
Stable tag: 4.0.14
|
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.0.14 - 24-May-21</h4>
|
164 |
+
<ul>
|
165 |
+
<li>Resolved issue, when CMP could be bypassed by cmp_theme parameter.</li>
|
166 |
+
</ul>
|
167 |
<h4>CMP 4.0.13 - 03-May-21</h4>
|
168 |
<ul>
|
169 |
<li>Added Twitch TV social icon.</li>
|