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

Version Description

Download this release

Release Info

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

Code changes from version 3.7.5 to 3.7.5.1

cmp-settings.php CHANGED
@@ -73,6 +73,9 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
73
  if (isset($_POST['niteoCS_text_logo'])) {
74
  update_option('niteoCS_text_logo', sanitize_text_field($_POST['niteoCS_text_logo']));
75
  }
 
 
 
76
 
77
  if (isset($_POST['niteoCS_font_headings_'.$themeslug])) {
78
  update_option('niteoCS_font_headings['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_'.$themeslug]));
@@ -399,6 +402,7 @@ $niteoCS_logo_id = get_option('niteoCS_logo_id');
399
  $niteoCS_text_logo = stripslashes(get_option('niteoCS_text_logo', get_bloginfo( 'name', 'display' )));
400
  $niteoCS_logo_custom_size = get_option('niteoCS_logo_custom_size', '0');
401
  $niteoCS_logo_size = get_option('niteoCS_logo_size', '100');
 
402
  $niteoCS_heading_animation = get_option('niteoCS_heading_animation['.$themeslug.']', 'fadeInDown');
403
  $niteoCS_content_animation = get_option('niteoCS_content_animation['.$themeslug.']', 'fadeInUp');
404
 
73
  if (isset($_POST['niteoCS_text_logo'])) {
74
  update_option('niteoCS_text_logo', sanitize_text_field($_POST['niteoCS_text_logo']));
75
  }
76
+ if (isset($_POST['niteoCS_logo_link'])) {
77
+ update_option('niteoCS_logo_link', esc_url_raw($_POST['niteoCS_logo_link']));
78
+ }
79
 
80
  if (isset($_POST['niteoCS_font_headings_'.$themeslug])) {
81
  update_option('niteoCS_font_headings['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_'.$themeslug]));
402
  $niteoCS_text_logo = stripslashes(get_option('niteoCS_text_logo', get_bloginfo( 'name', 'display' )));
403
  $niteoCS_logo_custom_size = get_option('niteoCS_logo_custom_size', '0');
404
  $niteoCS_logo_size = get_option('niteoCS_logo_size', '100');
405
+ $logo_link = get_option('niteoCS_logo_link', get_site_url() );
406
  $niteoCS_heading_animation = get_option('niteoCS_heading_animation['.$themeslug.']', 'fadeInDown');
407
  $niteoCS_content_animation = get_option('niteoCS_content_animation['.$themeslug.']', 'fadeInUp');
408
 
inc/cmp-update-process.php CHANGED
@@ -7,7 +7,7 @@ if ( !get_option( 'niteoCS_version' ) ) {
7
  update_option( 'niteoCS_version', CMP_VERSION );
8
  }
9
 
10
- if ( version_compare( get_option('niteoCS_version'), CMP_VERSION ) <= 0 ) {
11
 
12
  $current_theme = get_option('niteoCS_theme', 'countdown');
13
  $premium_themes = $this->cmp_premium_themes_installed();
7
  update_option( 'niteoCS_version', CMP_VERSION );
8
  }
9
 
10
+ if ( version_compare( get_option('niteoCS_version'), CMP_VERSION ) < 0 ) {
11
 
12
  $current_theme = get_option('niteoCS_theme', 'countdown');
13
  $premium_themes = $this->cmp_premium_themes_installed();
inc/render/logo.php CHANGED
@@ -4,7 +4,7 @@ $logo_type = get_option('niteoCS_logo_type', 'text');
4
 
5
  $html = '';
6
  $class = ( $class != '' ) ? ' ' . $class : $class;
7
-
8
  switch ( $logo_type ) {
9
  case 'graphic':
10
  // get logo id
@@ -16,14 +16,14 @@ switch ( $logo_type ) {
16
  }
17
 
18
  if ( isset($logo_url[0]) ) {
19
- $html = '<div class="logo-wrapper image' . esc_attr( $class ) . '"><a href="'. esc_url( get_site_url() ) .'" style="text-decoration:none"><img src="'.esc_url( $logo_url[0] ).'" class="graphic-logo" alt="logo"></a></div>';
20
  }
21
  break;
22
 
23
  case 'text':
24
  $text_logo = stripslashes(get_option('niteoCS_text_logo', get_bloginfo( 'name', 'display' )));
25
 
26
- $html = '<div class="logo-wrapper text text-logo-wrapper' . esc_attr( $class ) . '"><a href="'. esc_url( get_site_url() ) .'" style="text-decoration:none;color:inherit"><h1 class="text-logo">'.esc_html( $text_logo ).'</h1></a></div>';
27
  break;
28
 
29
  case 'disabled':
4
 
5
  $html = '';
6
  $class = ( $class != '' ) ? ' ' . $class : $class;
7
+ $logo_link = get_option('niteoCS_logo_link', get_site_url() );
8
  switch ( $logo_type ) {
9
  case 'graphic':
10
  // get logo id
16
  }
17
 
18
  if ( isset($logo_url[0]) ) {
19
+ $html = '<div class="logo-wrapper image' . esc_attr( $class ) . '"><a href="'. esc_url( $logo_link ) .'" style="text-decoration:none"><img src="'.esc_url( $logo_url[0] ).'" class="graphic-logo" alt="logo"></a></div>';
20
  }
21
  break;
22
 
23
  case 'text':
24
  $text_logo = stripslashes(get_option('niteoCS_text_logo', get_bloginfo( 'name', 'display' )));
25
 
26
+ $html = '<div class="logo-wrapper text text-logo-wrapper' . esc_attr( $class ) . '"><a href="'. esc_url( $logo_link) .'" style="text-decoration:none;color:inherit"><h1 class="text-logo">'.esc_html( $text_logo ).'</h1></a></div>';
27
  break;
28
 
29
  case 'disabled':
inc/settings/settings-logo.php CHANGED
@@ -35,8 +35,8 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
35
 
36
  <td>
37
  <fieldset class="cmp-logo-switch text">
38
- <p>
39
- <input type="text" class="widefat" id="niteoCS-text-logo" name="niteoCS_text_logo" placeholder="<?php _e('Click to set..', 'cmp-coming-soon-maintenance');?>" value="<?php echo esc_attr($niteoCS_text_logo); ?>" />
40
  </p>
41
  </fieldset>
42
 
@@ -61,6 +61,11 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
61
  </fieldset>
62
 
63
  </fieldset>
 
 
 
 
 
64
 
65
 
66
 
35
 
36
  <td>
37
  <fieldset class="cmp-logo-switch text">
38
+ <p style="margin:-2em 0">
39
+ <input type="text" class="widefat" id="niteoCS-text-logo" name="niteoCS_text_logo" style="padding:0" placeholder="<?php _e('Click to set..', 'cmp-coming-soon-maintenance');?>" value="<?php echo esc_attr($niteoCS_text_logo); ?>" />
40
  </p>
41
  </fieldset>
42
 
61
  </fieldset>
62
 
63
  </fieldset>
64
+
65
+ <fieldset class="cmp-logo-switch text graphic" style="margin-top:1em">
66
+ <h4><?php _e('Logo Link URL', 'cmp-coming-soon-maintenance');?></h4>
67
+ <input type="text" class="widefat" id="niteoCS-logo-link" name="niteoCS_logo_link" placeholder="<?php _e('Custom Logo Link', 'cmp-coming-soon-maintenance');?>" value="<?php echo esc_url($logo_link); ?>" />
68
+ </fieldset>
69
 
70
 
71
 
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.5
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.7.5' );
67
  $this->define( 'CMP_DEBUG', FALSE );
68
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
69
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
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.5.1
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.7.5.1' );
67
  $this->define( 'CMP_DEBUG', FALSE );
68
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
69
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
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.4
8
- Stable tag: 3.7.5
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -152,7 +152,13 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
152
  <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>
153
 
154
  == Changelog ==
155
- <h4>CMP 3.7.5 - 22-April-20</h4>
 
 
 
 
 
 
156
  <ul>
157
  <li>Added Multilanguage functionality via Polylang and WPML support.</li>
158
  </ul>
5
  Requires at least: 3.0
6
  Requires PHP: 5.6
7
  Tested up to: 5.4
8
+ Stable tag: 3.7.5.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
152
  <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>
153
 
154
  == Changelog ==
155
+ <h4>CMP 3.7.5.1 - xx- May-20</h4>
156
+ <ul>
157
+ <li>Resolved issue with Construct theme background image.</li>
158
+ <li>New option to set custom Logo link URL - suggested by @ct001</li>
159
+ <li>Resolved issue with Google fonts not loading.</li>
160
+ </ul>
161
+ <h4>CMP 3.7.5 - 09-May-20</h4>
162
  <ul>
163
  <li>Added Multilanguage functionality via Polylang and WPML support.</li>
164
  </ul>
themes/construct/construct-theme.php CHANGED
@@ -21,7 +21,12 @@
21
  echo $html->cmp_get_seo();
22
  }
23
 
24
- $html->cmp_enqueue_styles( $themeslug, false , false, $banner_type, true, false); ?>
 
 
 
 
 
25
 
26
  <style>
27
  body,input, select, textarea, button {font-family:'<?php echo esc_attr( $content_font['family'] );?>', 'sans-serif';color:<?php echo esc_attr( $font_color ); ?>;}
@@ -76,7 +81,7 @@
76
  } ?>
77
  </section>
78
 
79
- <div id="banner-wrapper">
80
  <?php
81
  if ( method_exists ( $html, 'cmp_background' ) ) {
82
  echo $html->cmp_background( $banner_type, $themeslug );
@@ -129,11 +134,13 @@
129
  if ( $banner_type != 5 && $banner_type != 4 ) { ?>
130
  <script type='text/javascript' src='<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug .'/paraxify.min.js';?>'></script>
131
  <script>
132
- // run paraxify
133
- myParaxify = paraxify('.image', {
134
- speed: 1,
135
- boost: 0.5
136
- });
 
 
137
  </script>
138
 
139
  <?php
21
  echo $html->cmp_get_seo();
22
  }
23
 
24
+ $html->cmp_enqueue_styles( $themeslug, false , false, $banner_type, true, false);
25
+
26
+ // render google fonts link
27
+ if ( method_exists ( $html, 'cmp_get_fonts' ) ) {
28
+ echo $html->cmp_get_fonts( $heading_font, $content_font );
29
+ } ?>
30
 
31
  <style>
32
  body,input, select, textarea, button {font-family:'<?php echo esc_attr( $content_font['family'] );?>', 'sans-serif';color:<?php echo esc_attr( $font_color ); ?>;}
81
  } ?>
82
  </section>
83
 
84
+ <div id="background-wrapper">
85
  <?php
86
  if ( method_exists ( $html, 'cmp_background' ) ) {
87
  echo $html->cmp_background( $banner_type, $themeslug );
134
  if ( $banner_type != 5 && $banner_type != 4 ) { ?>
135
  <script type='text/javascript' src='<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug .'/paraxify.min.js';?>'></script>
136
  <script>
137
+ setTimeout(() => {
138
+ // run paraxify
139
+ myParaxify = paraxify('.image', {
140
+ speed: 1,
141
+ boost: 0.5
142
+ });
143
+ }, 2000);
144
  </script>
145
 
146
  <?php
themes/construct/style.css CHANGED
@@ -78,7 +78,7 @@ section {
78
  max-height: 300px;
79
  }
80
 
81
- #banner-wrapper {
82
  height: 700px;
83
  overflow: hidden;
84
  position: relative;
@@ -346,7 +346,7 @@ div.wpcf7-response-output {
346
  }
347
 
348
  @media only screen and (max-width: 1920px) {
349
- #banner-wrapper {
350
  height: 500px;
351
  }
352
  }
@@ -358,7 +358,7 @@ div.wpcf7-response-output {
358
  h1:not(.text-logo), h2, h3, h4, h5, h6, .text-logo-wrapper {
359
  font-size: 1.8em!important;
360
  }
361
- #banner-wrapper {
362
  height: 300px;
363
  }
364
  }
@@ -367,7 +367,7 @@ div.wpcf7-response-output {
367
  body {
368
  font-size: 15px!important;
369
  }
370
- #banner-wrapper {
371
  height: 250px;
372
  }
373
  .social-list a {
@@ -392,7 +392,7 @@ div.wpcf7-response-output {
392
  .section:not(.section-banner) {
393
  padding: 20px 10px;
394
  }
395
- #banner-wrapper {
396
  height: 250px;
397
  }
398
  body {
78
  max-height: 300px;
79
  }
80
 
81
+ #background-wrapper {
82
  height: 700px;
83
  overflow: hidden;
84
  position: relative;
346
  }
347
 
348
  @media only screen and (max-width: 1920px) {
349
+ #background-wrapper {
350
  height: 500px;
351
  }
352
  }
358
  h1:not(.text-logo), h2, h3, h4, h5, h6, .text-logo-wrapper {
359
  font-size: 1.8em!important;
360
  }
361
+ #background-wrapper {
362
  height: 300px;
363
  }
364
  }
367
  body {
368
  font-size: 15px!important;
369
  }
370
+ #background-wrapper {
371
  height: 250px;
372
  }
373
  .social-list a {
392
  .section:not(.section-banner) {
393
  padding: 20px 10px;
394
  }
395
+ #background-wrapper {
396
  height: 250px;
397
  }
398
  body {
themes/countdown/countdown-theme.php CHANGED
@@ -21,6 +21,11 @@
21
 
22
  $html->cmp_enqueue_styles( $themeslug, false , false, $banner_type, true, false);
23
 
 
 
 
 
 
24
  // get theme related settings
25
  $font_color_light = $this->hex2hsl( $font_color, '20' );
26
 
21
 
22
  $html->cmp_enqueue_styles( $themeslug, false , false, $banner_type, true, false);
23
 
24
+ // render google fonts link
25
+ if ( method_exists ( $html, 'cmp_get_fonts' ) ) {
26
+ echo $html->cmp_get_fonts( $heading_font, $content_font );
27
+ }
28
+
29
  // get theme related settings
30
  $font_color_light = $this->hex2hsl( $font_color, '20' );
31
 
themes/hardwork/hardwork-theme.php CHANGED
@@ -22,9 +22,12 @@
22
  }
23
 
24
  $html->cmp_enqueue_styles( $themeslug, false , false, $banner_type, true, false);
25
- ?>
26
 
27
-
 
 
 
 
28
  <style>
29
  body,input {font-family:'<?php echo esc_attr($content_font['family']);?>', 'sans-serif';color:<?php echo esc_attr( $font_color ); ?>;}
30
  <?php
22
  }
23
 
24
  $html->cmp_enqueue_styles( $themeslug, false , false, $banner_type, true, false);
 
25
 
26
+ // render google fonts link
27
+ if ( method_exists ( $html, 'cmp_get_fonts' ) ) {
28
+ echo $html->cmp_get_fonts( $heading_font, $content_font );
29
+ } ?>
30
+
31
  <style>
32
  body,input {font-family:'<?php echo esc_attr($content_font['family']);?>', 'sans-serif';color:<?php echo esc_attr( $font_color ); ?>;}
33
  <?php