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

Version Description

Download this release

Release Info

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

Code changes from version 2.2.2 to 2.2.3

Files changed (5) hide show
  1. cmp-advanced.php +1 -0
  2. js/settings.js +2 -3
  3. niteo-cmp.php +5 -4
  4. readme.txt +11 -4
  5. themes/postery.zip +0 -0
cmp-advanced.php CHANGED
@@ -89,6 +89,7 @@ $niteoCS_roles = json_decode(get_option('niteoCS_roles', '[]'), true);
89
  ?>
90
 
91
  <div class="wrap">
 
92
 
93
  <div id="icon-users" class="icon32"></div>
94
 
89
  ?>
90
 
91
  <div class="wrap">
92
+
93
 
94
  <div id="icon-users" class="icon32"></div>
95
 
js/settings.js CHANGED
@@ -155,7 +155,7 @@ jQuery(document).ready(function($){
155
 
156
  $.post(ajaxurl, data, function(response) {
157
 
158
- var unsplash = jQuery.parseJSON(response);
159
 
160
  jQuery('#unsplash_img').remove();
161
 
@@ -193,10 +193,9 @@ jQuery(document).ready(function($){
193
  });
194
 
195
  } else {
196
- var error = jQuery.parseJSON(unsplash.body);
197
  jQuery('#test-unsplash').prop('disabled', false);
198
  jQuery('#test-unsplash').text('Display Unsplash Photo');
199
- jQuery('#unsplash-media').html('<p>Error '+unsplash.response+': <span style="text-transform:lowercase;">'+error.errors+' '+custom_str+'</span></p>');
200
  clearTimeout(loadingTimeout);
201
  }
202
 
155
 
156
  $.post(ajaxurl, data, function(response) {
157
 
158
+ var unsplash = JSON.parse(response);
159
 
160
  jQuery('#unsplash_img').remove();
161
 
193
  });
194
 
195
  } else {
 
196
  jQuery('#test-unsplash').prop('disabled', false);
197
  jQuery('#test-unsplash').text('Display Unsplash Photo');
198
+ jQuery('#unsplash-media').html('<p>Error '+unsplash.response+': <span style="text-transform:lowercase;">'+unsplash.body+'</span></p>');
199
  clearTimeout(loadingTimeout);
200
  }
201
 
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: 2.2.2
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -17,7 +17,7 @@ class niteo_cmp {
17
  public function __construct() {
18
  $this->author = 'NiteoThemes';
19
  $this->author_homepage = 'https://niteothemes.com';
20
- $this->version = '2.2.2';
21
  $this->dev = false;
22
  $this->plugins_dir_path = plugin_dir_path( __DIR__ );
23
  if ( $this->plugins_dir_path == './') {
@@ -770,8 +770,8 @@ class niteo_cmp {
770
  public function cmp_unsplash_api ( $query ) {
771
 
772
  $api_url = 'https://api.unsplash.com/'.$query.'&client_id=41f043163758cf2e898e8a868bc142c20bc3f5966e7abac4779ee684088092ab' ;
773
- // var_dump($api_url);
774
- if ( function_exists( 'wp_remote_ge' ) ) {
775
 
776
  $response = wp_remote_get( $api_url );
777
 
@@ -779,6 +779,7 @@ class niteo_cmp {
779
 
780
  $body = $response['body'];
781
  $data = array( 'response' => $response['response']['code'], 'body' => $body );
 
782
  } else {
783
  $data = array( 'response' => $response['response']['code'], 'body' => $response['response']['message'] );
784
  }
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: 2.2.3
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
17
  public function __construct() {
18
  $this->author = 'NiteoThemes';
19
  $this->author_homepage = 'https://niteothemes.com';
20
+ $this->version = '2.2.3';
21
  $this->dev = false;
22
  $this->plugins_dir_path = plugin_dir_path( __DIR__ );
23
  if ( $this->plugins_dir_path == './') {
770
  public function cmp_unsplash_api ( $query ) {
771
 
772
  $api_url = 'https://api.unsplash.com/'.$query.'&client_id=41f043163758cf2e898e8a868bc142c20bc3f5966e7abac4779ee684088092ab' ;
773
+
774
+ if ( function_exists( 'wp_remote_get' ) ) {
775
 
776
  $response = wp_remote_get( $api_url );
777
 
779
 
780
  $body = $response['body'];
781
  $data = array( 'response' => $response['response']['code'], 'body' => $body );
782
+
783
  } else {
784
  $data = array( 'response' => $response['response']['code'], 'body' => $response['response']['message'] );
785
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JF
4
  Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
- Stable tag: 2.2.2
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -110,15 +110,22 @@ CMP brings premium features for free, no PRO versions! It is very user friendly
110
 
111
 
112
 
113
- == Changelog ==<h4>CMP 2.2.2 - maintenance update</h4>
 
 
 
 
 
 
 
114
  <ul>
115
- <li>Resolve compatibility issue with latest Wordpress version when upload CMP field was not visible.</li>
116
  </ul>
117
 
118
 
119
  <h4>CMP 2.2.1 - maintenance update</h4>
120
  <ul>
121
- <li>Resolve issue with enqueuing header scripts - Google Analytics and etc. after update 2.2</li>
122
  </ul>
123
 
124
  <h4>CMP 2.2 - very sweet update :) </h4>
4
  Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
+ Stable tag: 2.2.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
110
 
111
 
112
 
113
+ == Changelog ==
114
+
115
+ <h4>CMP 2.2.3 - maintenance update</h4>
116
+ <ul>
117
+ <li>Resolved issue with not loading Unsplash images.</li>
118
+ </ul>
119
+
120
+ <h4>CMP 2.2.2 - maintenance update</h4>
121
  <ul>
122
+ <li>Resolved compatibility issue with latest Wordpress version when upload CMP field was not visible.</li>
123
  </ul>
124
 
125
 
126
  <h4>CMP 2.2.1 - maintenance update</h4>
127
  <ul>
128
+ <li>Resolved issue with enqueuing header scripts - Google Analytics and etc. after update 2.2</li>
129
  </ul>
130
 
131
  <h4>CMP 2.2 - very sweet update :) </h4>
themes/postery.zip CHANGED
Binary file