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

Version Description

Download this release

Release Info

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

Code changes from version 4.0.12 to 4.0.13

img/thumbnails/oxygen_builder_thumbnail.jpg ADDED
Binary file
inc/cmp-update-process.php CHANGED
@@ -314,6 +314,19 @@ if ( version_compare($pre_update_version, CMP_VERSION ) < 0 ) {
314
  $update = true;
315
  }
316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  if ( $update == true ) {
318
  update_option('niteoCS_socialmedia', json_encode( $socialmedia) );
319
  }
314
  $update = true;
315
  }
316
 
317
+ // add wikipedia social media in 4.0.13 update
318
+ if ( !$this->niteo_in_array_r( 'twitch', $socialmedia, true ) ) {
319
+ $icon = array(
320
+ 'name' => 'twitch',
321
+ 'url' => '',
322
+ 'active' => '1',
323
+ 'hidden' => '1',
324
+ 'order' => 30,
325
+ );
326
+ array_push( $socialmedia, $icon );
327
+ $update = true;
328
+ }
329
+
330
  if ( $update == true ) {
331
  update_option('niteoCS_socialmedia', json_encode( $socialmedia) );
332
  }
inc/render/javascripts.php CHANGED
@@ -310,6 +310,7 @@ if ( in_array( $themeslug, $this->cmp_premium_themes_installed() ) ) {
310
 
311
  switch ($themeslug ) {
312
  case 'libra':
 
313
  case 'elementor': ?>
314
  var background= 'body';
315
  <?php
@@ -355,6 +356,7 @@ if ( in_array( $themeslug, $this->cmp_premium_themes_installed() ) ) {
355
  <?php
356
  switch ($themeslug ) {
357
  case 'libra':
 
358
  case 'elementor': ?>
359
  var $wrapper = $('#body');
360
  <?php
@@ -591,10 +593,11 @@ if ( get_option('niteoCS_subscribe_type', '2') == '2' && ( get_option('niteoCS_i
591
 
592
  <script>
593
  /* Subscribe form script */
594
- var ajaxurl = '<?php echo admin_url( 'admin-ajax.php' );?>';
 
 
595
  var security = '<?php echo wp_create_nonce( 'cmp-subscribe-action' );?>';
596
  var msg = '';
597
-
598
  subForm = function( form, resultElement, emailInput, firstnameInput, lastnameInput, token = '' ) {
599
  if ( emailInput.value !== '' ) {
600
  const firstname = firstnameInput === null ? '' : firstnameInput.value;
310
 
311
  switch ($themeslug ) {
312
  case 'libra':
313
+ case 'oxygen':
314
  case 'elementor': ?>
315
  var background= 'body';
316
  <?php
356
  <?php
357
  switch ($themeslug ) {
358
  case 'libra':
359
+ case 'oxygen':
360
  case 'elementor': ?>
361
  var $wrapper = $('#body');
362
  <?php
593
 
594
  <script>
595
  /* Subscribe form script */
596
+ var ajaxWpUrl = '<?php echo admin_url( 'admin-ajax.php' );?>';
597
+ var {pathname} = new URL(ajaxWpUrl);
598
+ var ajaxurl = `${location.protocol}//${location.hostname}${pathname}`;
599
  var security = '<?php echo wp_create_nonce( 'cmp-subscribe-action' );?>';
600
  var msg = '';
 
601
  subForm = function( form, resultElement, emailInput, firstnameInput, lastnameInput, token = '' ) {
602
  if ( emailInput.value !== '' ) {
603
  const firstname = firstnameInput === null ? '' : firstnameInput.value;
inc/settings/settings-social-media.php CHANGED
@@ -133,6 +133,10 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
133
  $title = 'Wikipedia';
134
  $url = 'https://wikipedia.org/';
135
  break;
 
 
 
 
136
  default:
137
  $title = ucfirst( $social['name'] );
138
  $url = 'https://'.$social['name'].'.com/profile';
133
  $title = 'Wikipedia';
134
  $url = 'https://wikipedia.org/';
135
  break;
136
+ case 'twitch':
137
+ $title = 'Twitch';
138
+ $url = 'https://twitch.tv/profile';
139
+ break;
140
  default:
141
  $title = ucfirst( $social['name'] );
142
  $url = 'https://'.$social['name'].'.com/profile';
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: 4.0.12
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -62,7 +62,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
62
 
63
  // define constants
64
  private function constants() {
65
- $this->define( 'CMP_VERSION', '4.0.12' );
66
  $this->define( 'CMP_DEBUG', false );
67
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
68
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
@@ -442,7 +442,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
442
  * @return array
443
  */
444
  public function cmp_builder_themes() {
445
- return array( 'divi', 'elementor' );
446
  }
447
 
448
  /**
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: 4.0.13
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
62
 
63
  // define constants
64
  private function constants() {
65
+ $this->define( 'CMP_VERSION', '4.0.13' );
66
  $this->define( 'CMP_DEBUG', false );
67
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
68
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
442
  * @return array
443
  */
444
  public function cmp_builder_themes() {
445
+ return array( 'divi', 'elementor', 'oxygen_builder' );
446
  }
447
 
448
  /**
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.7
8
- Stable tag: 4.0.12
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -160,6 +160,12 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
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 4.0.12 - 03-May-21</h4>
164
  <ul>
165
  <li>Resolved saving issue with W3 Total Cache plugin.</li>
5
  Requires at least: 3.0
6
  Requires PHP: 5.6
7
  Tested up to: 5.7
8
+ Stable tag: 4.0.13
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
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 4.0.13 - 03-May-21</h4>
164
+ <ul>
165
+ <li>Added Twitch TV social icon.</li>
166
+ <li>Updated JS AJAX URL with relative path, to avoid issues with CORS.</li>
167
+ </ul>
168
+
169
  <h4>CMP 4.0.12 - 03-May-21</h4>
170
  <ul>
171
  <li>Resolved saving issue with W3 Total Cache plugin.</li>
themes/oxygen.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ /*
2
+ Theme Name: CMP Oxygen
3
+ Description: <p>CMP Oxygen is the integration bridge between CMP Coming Soon Plugin and Oxygen theme builder. You can build any page by Oxygen and use it as a coming soon/maintenance page in CMP plugin. All CMP functionality is working - get power of CMP Plugin with Oxygen to build your custom great Coming Soon or Maintenance pages!</p>