Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 3.8.6 |
Comparing to | |
See all releases |
Code changes from version 3.8.5 to 3.8.6
- inc/render/language-switcher.php +2 -1
- niteo-cmp.php +3 -3
- readme.txt +13 -3
inc/render/language-switcher.php
CHANGED
@@ -6,13 +6,14 @@ $display_text = get_option('niteoCS_lang_switcher[text]', '1');
|
|
6 |
$current_lang_slug = $this->cmp_get_current_lang( 'slug' );
|
7 |
$current_lang_name = $this->cmp_get_current_lang( 'name' );
|
8 |
$class = !$display_flag || !$display_text ? ' no-padding-left' : '';
|
9 |
-
|
10 |
if ( function_exists('pll_the_languages') ) {
|
11 |
$translations = pll_the_languages( array( 'raw' => 1 ) );
|
12 |
$flag = pathinfo($translations[$current_lang_slug]['flag']);
|
13 |
|
14 |
} else if ( defined( 'ICL_SITEPRESS_VERSION' ) ) {
|
15 |
$translations = apply_filters( 'wpml_active_languages', NULL );
|
|
|
16 |
$flag = pathinfo( substr($translations[$current_lang_slug]['default_locale'], -2));
|
17 |
|
18 |
} else {
|
6 |
$current_lang_slug = $this->cmp_get_current_lang( 'slug' );
|
7 |
$current_lang_name = $this->cmp_get_current_lang( 'name' );
|
8 |
$class = !$display_flag || !$display_text ? ' no-padding-left' : '';
|
9 |
+
|
10 |
if ( function_exists('pll_the_languages') ) {
|
11 |
$translations = pll_the_languages( array( 'raw' => 1 ) );
|
12 |
$flag = pathinfo($translations[$current_lang_slug]['flag']);
|
13 |
|
14 |
} else if ( defined( 'ICL_SITEPRESS_VERSION' ) ) {
|
15 |
$translations = apply_filters( 'wpml_active_languages', NULL );
|
16 |
+
if ( empty($translations) ) return;
|
17 |
$flag = pathinfo( substr($translations[$current_lang_slug]['default_locale'], -2));
|
18 |
|
19 |
} else {
|
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' );
|
@@ -235,7 +235,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
235 |
}
|
236 |
|
237 |
// register strings from themes
|
238 |
-
if ( file_exists( $this->cmp_theme_dir( $themeslug ).$themeslug.'/translation-strings.php' ) ) {
|
239 |
require_once $this->cmp_theme_dir( $themeslug ).$themeslug.'/translation-strings.php';
|
240 |
}
|
241 |
}
|
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.6
|
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.6' );
|
67 |
$this->define( 'CMP_DEBUG', FALSE );
|
68 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
69 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
235 |
}
|
236 |
|
237 |
// register strings from themes
|
238 |
+
if ( file_exists( $this->cmp_theme_dir( $themeslug ).$themeslug.'/translation-strings.php' ) && function_exists('icl_register_string') ) {
|
239 |
require_once $this->cmp_theme_dir( $themeslug ).$themeslug.'/translation-strings.php';
|
240 |
}
|
241 |
}
|
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 |
|
@@ -21,7 +21,7 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
21 |
|
22 |
<p>TIP! Change to another CMP Theme, background or special effects in the right sidebar.</p>
|
23 |
|
24 |
-
<h3>Features</h3>
|
25 |
<ul>
|
26 |
<li>You can choose from 3 bundled free themes and 20+ downloadable themes - both freebies and premium - with completely different design. New CMP Theme is released every 1-2 months!</li>
|
27 |
<li>CMP plugin works with any WordPress Theme and on all desktop and mobile devices (yes it is 100% responsive!).</li>
|
@@ -48,7 +48,7 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
48 |
<li>Insert any Custom CSS code.</li>
|
49 |
</ul>
|
50 |
|
51 |
-
<h3>
|
52 |
<ul>
|
53 |
<li><a href="https://wordpress.org/plugins/insert-headers-and-footers/" target="_blank>Insert Headers and Footers</a> fully compatible.</li>
|
54 |
<li><a href="https://wordpress.org/plugins/simpleanalytics/" target="_blank>Simple Analytics</a> fully compatible.</li>
|
@@ -60,9 +60,14 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
60 |
<li>We are working on more plugins to be compatible with CMP - feel free to send us suggestions what plugin you might need together with CMP.</li>
|
61 |
</ul>
|
62 |
|
|
|
|
|
|
|
63 |
<h3>Administration page overview</h3>
|
64 |
https://www.youtube.com/watch?v=uxuJfHzwdtE
|
65 |
|
|
|
|
|
66 |
== Screenshots ==
|
67 |
1. CMP - Hardwork responsive
|
68 |
2. CMP - Mercury Theme
|
@@ -154,6 +159,11 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
|
|
154 |
<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>
|
155 |
|
156 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
157 |
<h4>CMP 3.8.5 - 01-Sept-20</h4>
|
158 |
<ul>
|
159 |
<li>New CMP Theme - Atlas! Check it out.</li>
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.5
|
8 |
+
Stable tag: 3.8.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
21 |
|
22 |
<p>TIP! Change to another CMP Theme, background or special effects in the right sidebar.</p>
|
23 |
|
24 |
+
<h3>Best Features</h3>
|
25 |
<ul>
|
26 |
<li>You can choose from 3 bundled free themes and 20+ downloadable themes - both freebies and premium - with completely different design. New CMP Theme is released every 1-2 months!</li>
|
27 |
<li>CMP plugin works with any WordPress Theme and on all desktop and mobile devices (yes it is 100% responsive!).</li>
|
48 |
<li>Insert any Custom CSS code.</li>
|
49 |
</ul>
|
50 |
|
51 |
+
<h3>Compatible Plugins</h3>
|
52 |
<ul>
|
53 |
<li><a href="https://wordpress.org/plugins/insert-headers-and-footers/" target="_blank>Insert Headers and Footers</a> fully compatible.</li>
|
54 |
<li><a href="https://wordpress.org/plugins/simpleanalytics/" target="_blank>Simple Analytics</a> fully compatible.</li>
|
60 |
<li>We are working on more plugins to be compatible with CMP - feel free to send us suggestions what plugin you might need together with CMP.</li>
|
61 |
</ul>
|
62 |
|
63 |
+
<h3>Customize WordPress Login Page?</h3>
|
64 |
+
<p>Check out our latest plugin for a login page customization - <a href="https://wordpress.org/plugins/clp-custom-login-page/">CLP - Custom Login Page</a>. It's super easy and awesome!</p>
|
65 |
+
|
66 |
<h3>Administration page overview</h3>
|
67 |
https://www.youtube.com/watch?v=uxuJfHzwdtE
|
68 |
|
69 |
+
|
70 |
+
|
71 |
== Screenshots ==
|
72 |
1. CMP - Hardwork responsive
|
73 |
2. CMP - Mercury Theme
|
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.6 - 09-Sept-20</h4>
|
163 |
+
<ul>
|
164 |
+
<li>Resolved PHP notices generated by WPML Language Switcher if there are not languages configured in WPML.</li>
|
165 |
+
</ul>
|
166 |
+
|
167 |
<h4>CMP 3.8.5 - 01-Sept-20</h4>
|
168 |
<ul>
|
169 |
<li>New CMP Theme - Atlas! Check it out.</li>
|