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

Version Description

Download this release

Release Info

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

Code changes from version 3.8.9 to 3.9.0

cmp-settings.php CHANGED
@@ -467,7 +467,7 @@ if ( $page_filter == '1' ) {
467
  $page_filter = '2';
468
  }
469
  }
470
-
471
  // create default social media if they do not exists
472
  if ( !get_option('niteoCS_socialmedia') ) {
473
  $social_icons = array(
@@ -495,7 +495,8 @@ if ( !get_option('niteoCS_socialmedia') ) {
495
  'github',
496
  'snapchat',
497
  'spotify',
498
- 'discord'
 
499
  );
500
  $i = 0;
501
  $socialmedia = array();
467
  $page_filter = '2';
468
  }
469
  }
470
+ delete_option( 'niteoCS_socialmedia' );
471
  // create default social media if they do not exists
472
  if ( !get_option('niteoCS_socialmedia') ) {
473
  $social_icons = array(
495
  'github',
496
  'snapchat',
497
  'spotify',
498
+ 'discord',
499
+ 'goodreads',
500
  );
501
  $i = 0;
502
  $socialmedia = array();
cmp-sidebar.php CHANGED
@@ -21,7 +21,7 @@ if ( !file_exists( CMP_PLUGIN_DIR . 'img/thumbnails/'. $slug . '_thumbnail.jpg'
21
  <img src="<?php echo plugins_url('/img/paul.jpg', __FILE__);?>" alt="Paul, NiteoThemes">
22
  </p>
23
 
24
- <p><?php echo sprintf(__('If you really love our CMP plugin you can also donate few %s by clicking Donate button below.', 'cmp-coming-soon-maintenance'), '<i class="fas fa-dollar-sign"></i><i class="fas fa-dollar-sign"></i><i class="fas fa-dollar-sign"></i>');?> <i class="far fa-smile-beam"></i></p>
25
 
26
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
27
  <input type="hidden" name="cmd" value="_s-xclick">
@@ -34,7 +34,7 @@ if ( !file_exists( CMP_PLUGIN_DIR . 'img/thumbnails/'. $slug . '_thumbnail.jpg'
34
  <div class="clp-widget widget" style="padding: 0;">
35
  <h3 ><?php _e('Check out our other plugins!', 'cmp-coming-soon-maintenance');?></h3>
36
  <a href="https://wordpress.org/plugins/clp-custom-login-page/" target="_blank"><img src="<?php echo plugins_url('/img/clp-banner.jpg', __FILE__);?>" alt="CLP - Custom Login Page" style="max-width:100%;vertical-align:top"></a>
37
- <p><a href="https://wordpress.org/plugins/clp-custom-login-page/" target="_blank" style="text-decoration:none">CLP - Custom Login Page</a> - <?php _e('Awesome plugin to customize WordPress Login Page!', 'cmp-coming-soon-maintenance');?></p>
38
  </div>
39
 
40
  <div class="cmp-rate-us widget">
21
  <img src="<?php echo plugins_url('/img/paul.jpg', __FILE__);?>" alt="Paul, NiteoThemes">
22
  </p>
23
 
24
+ <p><?php echo sprintf(__('If you love our CMP plugin please donate few %s by clicking Donate button.', 'cmp-coming-soon-maintenance'), '<i class="fas fa-dollar-sign"></i><i class="fas fa-dollar-sign"></i><i class="fas fa-dollar-sign"></i>');?> <i class="far fa-smile-beam"></i></p>
25
 
26
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
27
  <input type="hidden" name="cmd" value="_s-xclick">
34
  <div class="clp-widget widget" style="padding: 0;">
35
  <h3 ><?php _e('Check out our other plugins!', 'cmp-coming-soon-maintenance');?></h3>
36
  <a href="https://wordpress.org/plugins/clp-custom-login-page/" target="_blank"><img src="<?php echo plugins_url('/img/clp-banner.jpg', __FILE__);?>" alt="CLP - Custom Login Page" style="max-width:100%;vertical-align:top"></a>
37
+ <p style="padding: 0 2em"><a href="https://wordpress.org/plugins/clp-custom-login-page/" target="_blank" style="text-decoration:none">CLP - Custom Login Page</a> - <?php _e('Awesome plugin to customize WordPress Login Page!', 'cmp-coming-soon-maintenance');?></p>
38
  </div>
39
 
40
  <div class="cmp-rate-us widget">
css/cmp-admin-head.css CHANGED
@@ -1,10 +1,10 @@
1
  #wpadminbar .cmp-logo {
2
  position: absolute;
3
  display: inline-block;
4
- height: 20px;
5
- padding-right: 5px;
6
- top: 6px;
7
- left: 7px;
8
  }
9
 
10
  #wpadminbar #wp-admin-bar-cmp-admin-notice a {
@@ -100,7 +100,7 @@
100
  #wpadminbar .cmp-logo {
101
  height: 28px;
102
  top: 9px;
103
- left: 10px;
104
  }
105
  }
106
 
1
  #wpadminbar .cmp-logo {
2
  position: absolute;
3
  display: inline-block;
4
+ height: 18px;
5
+ padding-right: 0px;
6
+ top: 7px;
7
+ left: 13px;
8
  }
9
 
10
  #wpadminbar #wp-admin-bar-cmp-admin-notice a {
100
  #wpadminbar .cmp-logo {
101
  height: 28px;
102
  top: 9px;
103
+ left: 18px;
104
  }
105
  }
106
 
img/cmp.png CHANGED
Binary file
inc/cmp-update-process.php CHANGED
@@ -252,6 +252,18 @@ if ( version_compare($pre_update_version, CMP_VERSION ) < 0 ) {
252
  array_push( $socialmedia, $discord );
253
  $update = true;
254
  }
 
 
 
 
 
 
 
 
 
 
 
 
255
 
256
  if ( $update == true ) {
257
  update_option('niteoCS_socialmedia', json_encode( $socialmedia) );
252
  array_push( $socialmedia, $discord );
253
  $update = true;
254
  }
255
+ // add Goodreads social media in 3.9.0 update
256
+ if ( !$this->niteo_in_array_r( 'goodreads', $socialmedia, true ) ) {
257
+ $discord = array(
258
+ 'name' => 'goodreads',
259
+ 'url' => '',
260
+ 'active' => '1',
261
+ 'hidden' => '1',
262
+ 'order' => 25,
263
+ );
264
+ array_push( $socialmedia, $discord );
265
+ $update = true;
266
+ }
267
 
268
  if ( $update == true ) {
269
  update_option('niteoCS_socialmedia', json_encode( $socialmedia) );
inc/render/footer.php CHANGED
@@ -44,4 +44,10 @@ if ( get_option('niteoCS_subscribe_type', '2') === '3' && defined('MAILOPTIN_VER
44
  </script>
45
  <script type='text/javascript' src='<?php echo MAILOPTIN_ASSETS_URL;?>js/mailoptin.min.js?ver=<?php echo MAILOPTIN_VERSION_NUMBER;?>'></script>
46
  <?php
47
- }
 
 
 
 
 
 
44
  </script>
45
  <script type='text/javascript' src='<?php echo MAILOPTIN_ASSETS_URL;?>js/mailoptin.min.js?ver=<?php echo MAILOPTIN_VERSION_NUMBER;?>'></script>
46
  <?php
47
+ }
48
+
49
+ // scripts for Plugin Name Weglot
50
+ if ( is_plugin_active( 'weglot/weglot.php' ) && defined('WEGLOT_VERSION') ) { ?>
51
+ <script src='https://cmp.weglot-translate.com/wp-content/plugins/weglot/dist/front-js.js?ver=<?php echo WEGLOT_VERSION;?>' id='wp-weglot-js-js'></script>
52
+ <?php
53
+ }
inc/render/head-scripts.php CHANGED
@@ -62,4 +62,16 @@ if ( ( function_exists('cn_cookies_accepted') && get_option('cmp_cookie_notice_c
62
  default:
63
  break;
64
  }
 
 
 
 
 
 
 
 
 
 
 
 
65
  }
62
  default:
63
  break;
64
  }
65
+ }
66
+
67
+ // Styles for Plugin Name Weglot
68
+ if ( is_plugin_active( 'weglot/weglot.php' ) && defined('WEGLOT_VERSION') ) { ?>
69
+
70
+ <link rel='stylesheet' id='weglot-css-css' href='https://cmp.weglot-translate.com/wp-content/plugins/weglot/dist/css/front-css.css?ver=<?php echo WEGLOT_VERSION;?>' media='' />
71
+ <style>
72
+ aside.country-selector.weglot-dropdown.weglot-default.weglot-invert span {
73
+ color: black!important;
74
+ }
75
+ </style>
76
+ <?php
77
  }
inc/render/login-icon.php CHANGED
@@ -9,5 +9,5 @@ if ( $custom_login_url ) {
9
  } ?>
10
 
11
  <div id="login-icon">
12
- <a href="<?php echo esc_url( $login_url );?>"><img src="<?php echo CMP_PLUGIN_URL . '/img/login-icon.svg';?>"/></a>
13
  </div>
9
  } ?>
10
 
11
  <div id="login-icon">
12
+ <a href="<?php echo esc_url( $login_url );?>"><img src="<?php echo CMP_PLUGIN_URL . 'img/login-icon.svg';?>"/></a>
13
  </div>
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.9
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.9' );
67
  $this->define( 'CMP_DEBUG', FALSE );
68
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
69
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
@@ -656,8 +656,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
656
  function cmp_admin_css() { ?>
657
  <style type="text/css" media="screen">
658
  #toplevel_page_cmp-settings img {
659
- max-width: 20px!important;
660
- padding-top: 6px!important;
661
  }
662
  </style>
663
  <?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: 3.9.0
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.9.0' );
67
  $this->define( 'CMP_DEBUG', FALSE );
68
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
69
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
656
  function cmp_admin_css() { ?>
657
  <style type="text/css" media="screen">
658
  #toplevel_page_cmp-settings img {
659
+ max-width: 14px!important;
660
+ padding-top: 5px!important;
661
  }
662
  </style>
663
  <?php
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JF
4
  Tags: coming soon, coming soon page, launch page, maintenance mode, under construction
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
 
@@ -57,6 +57,7 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
57
  <li><a href="https://wordpress.org/plugins/mailoptin/" target="_blank">MailOptin – WordPress Popup, Optin Form, Email Newsletter Plugin</a> fully integrated.</li>
58
  <li><a href="https://wordpress.org/plugins/wps-hide-login/" target="_blank">WPS Hide Login full automatic compatibility.</li>
59
  <li><a href="https://wordpress.org/plugins/cookie-notice/" target="_blank">Cookie Notice for GDPR & CCPA full automatic compatibility.</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
 
@@ -159,6 +160,12 @@ 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.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>
4
  Tags: coming soon, coming soon page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Requires PHP: 5.6
7
+ Tested up to: 5.6
8
+ Stable tag: 3.9.0
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
57
  <li><a href="https://wordpress.org/plugins/mailoptin/" target="_blank">MailOptin – WordPress Popup, Optin Form, Email Newsletter Plugin</a> fully integrated.</li>
58
  <li><a href="https://wordpress.org/plugins/wps-hide-login/" target="_blank">WPS Hide Login full automatic compatibility.</li>
59
  <li><a href="https://wordpress.org/plugins/cookie-notice/" target="_blank">Cookie Notice for GDPR & CCPA full automatic compatibility.</li>
60
+ <li><a href="https://wordpress.org/plugins/weglot/" target="_blank">Translate WP website – Weglot Translate full automatic compatibility.</li>
61
  <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>
62
  </ul>
63
 
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 3.9.0 - 21-Nov-20</h4>
164
+ <ul>
165
+ <li>Added compatibility with Weglot plugin./li>
166
+ <li>Added Goodreads social icon to social settings./li>
167
+ <li>WordPress 5.6 compatibility./li>
168
+ </ul>
169
  <h4>CMP 3.8.9 - 02-Nov-20</h4>
170
  <ul>
171
  <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>