CMP – Coming Soon & Maintenance Plugin by NiteoThemes - Version 3.7.1

Version Description

Download this release

Release Info

Developer niteo
Plugin Icon 128x128 CMP – Coming Soon & Maintenance Plugin by NiteoThemes
Version 3.7.1
Comparing to
See all releases

Code changes from version 3.7.0 to 3.7.1

img/thumbnails/divi/screenshot1.JPG ADDED
Binary file
img/thumbnails/divi/screenshot2.JPG ADDED
Binary file
img/thumbnails/divi_thumbnail.jpg ADDED
Binary file
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.7.0
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -66,7 +66,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
66
 
67
  // define constants
68
  private function constants() {
69
- $this->define( 'CMP_VERSION', '3.7.0' );
70
  $this->define( 'CMP_DEBUG', FALSE );
71
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
72
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
@@ -233,6 +233,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
233
  public function cmp_premium_themes() {
234
 
235
  $premium_themes = array();
 
236
  array_push( $premium_themes, array('name' => 'thor', 'url' => 'https://niteothemes.com/downloads/cmp-thor-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=delta', 'price' => '10') );
237
  array_push( $premium_themes, array('name' => 'delta', 'url' => 'https://niteothemes.com/downloads/cmp-delta-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=delta', 'price' => '10') );
238
  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') );
@@ -298,7 +299,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
298
  return;
299
  }
300
 
301
- wp_register_style( 'cmp-admin-head-style', plugins_url('/css/cmp-admin-head.css', __FILE__), '', CMP_VERSION);
302
  wp_register_script( 'cmp_admin_script', plugins_url('/js/cmp-admin-head.js', __FILE__), array('jquery'), CMP_VERSION);
303
 
304
  $roles_topbar = json_decode( get_option('niteoCS_roles_topbar', '[]'), true );
@@ -778,7 +779,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
778
 
779
  $class = '';
780
  $msg = '';
781
- $icon = '<img src="'.plugins_url('/img/cmp.png', __FILE__).'" alt="CMP Logo" class="cmp-logo">';
782
 
783
  $topbar_version = get_option('niteoCS_topbar_version', 'cmp-topbar-full');
784
 
@@ -1800,9 +1801,16 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1800
  public function cmp_get_pages() {
1801
  $page_titles = array();
1802
  $pages = array();
1803
- $page_ids = get_all_page_ids();
1804
 
1805
- foreach ($page_ids as $page_id ) {
 
 
 
 
 
 
 
 
1806
  array_push( $page_titles, get_the_title($page_id) );
1807
  }
1808
 
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.7.1
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
66
 
67
  // define constants
68
  private function constants() {
69
+ $this->define( 'CMP_VERSION', '3.7.1' );
70
  $this->define( 'CMP_DEBUG', FALSE );
71
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
72
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
233
  public function cmp_premium_themes() {
234
 
235
  $premium_themes = array();
236
+ array_push( $premium_themes, array('name' => 'divi', 'url' => 'https://niteothemes.com/downloads/cmp-divi-addon/?utm_source=cmp&utm_medium=referral&utm_campaign=divi', 'price' => '29') );
237
  array_push( $premium_themes, array('name' => 'thor', 'url' => 'https://niteothemes.com/downloads/cmp-thor-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=delta', 'price' => '10') );
238
  array_push( $premium_themes, array('name' => 'delta', 'url' => 'https://niteothemes.com/downloads/cmp-delta-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=delta', 'price' => '10') );
239
  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') );
299
  return;
300
  }
301
 
302
+ wp_register_style( 'cmp-admin-head-style', plugins_url('/css/cmp-admin-head.css', __FILE__), array(), CMP_VERSION);
303
  wp_register_script( 'cmp_admin_script', plugins_url('/js/cmp-admin-head.js', __FILE__), array('jquery'), CMP_VERSION);
304
 
305
  $roles_topbar = json_decode( get_option('niteoCS_roles_topbar', '[]'), true );
779
 
780
  $class = '';
781
  $msg = '';
782
+ $icon = '<img src="'.plugins_url('/img/cmp.png', __FILE__).'" alt="CMP Logo" class="cmp-logo" style="max-height: 23px">';
783
 
784
  $topbar_version = get_option('niteoCS_topbar_version', 'cmp-topbar-full');
785
 
1801
  public function cmp_get_pages() {
1802
  $page_titles = array();
1803
  $pages = array();
 
1804
 
1805
+ $published = get_pages(
1806
+ array (
1807
+ 'post_status' => 'publish,draft',
1808
+ )
1809
+ );
1810
+
1811
+ $page_ids = wp_list_pluck( $published, 'ID' );
1812
+
1813
+ foreach ( $page_ids as $page_id ) {
1814
  array_push( $page_titles, get_the_title($page_id) );
1815
  }
1816
 
readme.txt CHANGED
@@ -4,8 +4,8 @@ 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
  Requires PHP: 5.6
7
- Tested up to: 5.3
8
- Stable tag: 3.7.0
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -150,6 +150,11 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
150
  <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>
151
 
152
  == Changelog ==
 
 
 
 
 
153
 
154
  <h4>CMP 3.7.0 - 05-Mar-20</h4>
155
  <ul>
@@ -158,7 +163,6 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
158
  <li>Resolved issue with blurred Unsplash images on mobile devices. Great feature requested by @lchikamoto</li>
159
  </ul>
160
 
161
-
162
  <h4>CMP 3.6.15 - 19-Feb-20</h4>
163
  <ul>
164
  <li>Resolved bug with Heading animation settings.</li>
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Requires PHP: 5.6
7
+ Tested up to: 5.4
8
+ Stable tag: 3.7.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
150
  <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>
151
 
152
  == Changelog ==
153
+ <h4>CMP 3.7.1 - 12-Mar-20</h4>
154
+ <ul>
155
+ <li>Introducing CMP & Divi Integration!</li>
156
+ <li>Compatibility with WordPres 5.4</li>
157
+ </ul>
158
 
159
  <h4>CMP 3.7.0 - 05-Mar-20</h4>
160
  <ul>
163
  <li>Resolved issue with blurred Unsplash images on mobile devices. Great feature requested by @lchikamoto</li>
164
  </ul>
165
 
 
166
  <h4>CMP 3.6.15 - 19-Feb-20</h4>
167
  <ul>
168
  <li>Resolved bug with Heading animation settings.</li>
themes/divi.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ /*
2
+ Theme Name: Divi
3
+ Description: <p>CMP Divi is the integration bridge between CMP Coming Soon Plugin and Divi theme builder. You can build any page by Divi and use it as a coming soon/maintenance page in CMP plugin. We built a custom Countdown Divi Module with great features and design! Also all CMP functionality is working - get power of CMP Plugin with Divi to build your custom great Coming Soon or Maintenance pages!</p>