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

Version Description

Download this release

Release Info

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

Code changes from version 3.2.1 to 3.2.2

fonts/FontAwesome.otf CHANGED
Binary file
inc/class-cmp-render_html.php CHANGED
@@ -1190,6 +1190,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1190
  <!-- blur effect -->
1191
  <style>
1192
  #background-image,.slide-background,.video-banner {filter:blur(<?php echo esc_attr($blur);?>px);transform:scale(1.1);}
 
1193
  #background-wrapper, .slick-slider {overflow:hidden;}
1194
  #background-image:not(.slide) {background-attachment: initial;}
1195
  </style>
@@ -1202,6 +1203,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1202
  .wp-video {margin: 0 auto;}
1203
  .wp-video-shortcode {max-width: 100%;}
1204
  </style>
 
 
 
 
1205
 
1206
  <?php
1207
  // check for premium themes special effects
@@ -1638,9 +1643,16 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1638
  if ( !$jquery ) {
1639
  echo '<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" Crossorigin="anonymous"></script>';
1640
  $jquery = TRUE;
 
 
 
 
 
 
 
 
1641
  } ?>
1642
 
1643
- <!-- CF7 script -->
1644
  <script>
1645
  /* <![CDATA[ */
1646
  var wpcf7 = {"apiSettings":{"root":"<?php echo $site_url;?>\/wp-json\/contact-form-7\/v1","namespace":"contact-form-7\/v1"},"recaptcha":{"messages":{"empty":"Please verify that you are not a robot."}}};
1190
  <!-- blur effect -->
1191
  <style>
1192
  #background-image,.slide-background,.video-banner {filter:blur(<?php echo esc_attr($blur);?>px);transform:scale(1.1);}
1193
+ .background-overlay {transform:scale(1.1);}
1194
  #background-wrapper, .slick-slider {overflow:hidden;}
1195
  #background-image:not(.slide) {background-attachment: initial;}
1196
  </style>
1203
  .wp-video {margin: 0 auto;}
1204
  .wp-video-shortcode {max-width: 100%;}
1205
  </style>
1206
+
1207
+ <style>
1208
+ .grecaptcha-badge {display: none;}
1209
+ </style>
1210
 
1211
  <?php
1212
  // check for premium themes special effects
1643
  if ( !$jquery ) {
1644
  echo '<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" Crossorigin="anonymous"></script>';
1645
  $jquery = TRUE;
1646
+ }
1647
+ $sitekeys = WPCF7::get_option( 'recaptcha');
1648
+ if ($sitekeys) {
1649
+ $sitekeys = array_keys( $sitekeys ); ?>
1650
+ <!-- CF7 Recaptcha script -->
1651
+ <script type='text/javascript' src='https://www.google.com/recaptcha/api.js?render=<?php echo esc_attr($sitekeys[0]);?>&#038;ver=3.0'></script>
1652
+ <script>!function(e,t){var a=function(){e.execute("<?php echo esc_attr($sitekeys[0]);?>",{action:"homepage"}).then(function(e){for(var t=document.getElementsByTagName("form"),a=0;a<t.length;a++)for(var n=t[a].getElementsByTagName("input"),r=0;r<n.length;r++){var c=n[r];if("g-recaptcha-response"===c.getAttribute("name")){c.setAttribute("value",e);break}}})};e.ready(a),document.addEventListener("wpcf7submit",a,!1)}(grecaptcha);</script>
1653
+ <?php
1654
  } ?>
1655
 
 
1656
  <script>
1657
  /* <![CDATA[ */
1658
  var wpcf7 = {"apiSettings":{"root":"<?php echo $site_url;?>\/wp-json\/contact-form-7\/v1","namespace":"contact-form-7\/v1"},"recaptcha":{"messages":{"empty":"Please verify that you are not a robot."}}};
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.2.1
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -65,7 +65,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
65
 
66
  private function constants() {
67
  // define constants
68
- $this->define( 'CMP_VERSION', '3.2.1' );
69
  $this->define( 'CMP_DEBUG', FALSE );
70
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
71
  $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.2.2
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
65
 
66
  private function constants() {
67
  // define constants
68
+ $this->define( 'CMP_VERSION', '3.2.2' );
69
  $this->define( 'CMP_DEBUG', FALSE );
70
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
71
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: niteo
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JFJ8NCBYLW&lc=US&item_name=NiteoThemes&item_number=comingsoon&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
- Tested up to: 5.0
7
- Stable tag: 3.2.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -123,6 +123,11 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
123
  <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>
124
 
125
  == Changelog ==
 
 
 
 
 
126
  <h4>CMP 3.2.1 - 07-Feb-19</h4>
127
  <ul>
128
  <li>Minor style changes when using Blur and Bubbles background effects together.</li>
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JFJ8NCBYLW&lc=US&item_name=NiteoThemes&item_number=comingsoon&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
+ Tested up to: 5.1
7
+ Stable tag: 3.2.2
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
123
  <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>
124
 
125
  == Changelog ==
126
+ <h4>CMP 3.2.2 - 18-Feb-19</h4>
127
+ <ul>
128
+ <li>Added Support for CF7 with Google Recaptcha v3.</li>
129
+ </ul>
130
+
131
  <h4>CMP 3.2.1 - 07-Feb-19</h4>
132
  <ul>
133
  <li>Minor style changes when using Blur and Bubbles background effects together.</li>