Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 2.6.1 |
Comparing to | |
See all releases |
Code changes from version 2.6 to 2.6.1
cmp-coming-soon-maintenance/inc/class-cmp-render_html.php
CHANGED
@@ -93,16 +93,20 @@ class cmp_render_html extends niteo_cmp {
|
|
93 |
|
94 |
if ( isset( $body[0] ) ) {
|
95 |
foreach ( $body as $item ) {
|
96 |
-
$unsplash_url
|
|
|
97 |
}
|
98 |
} else {
|
99 |
-
$unsplash_url
|
|
|
100 |
}
|
101 |
|
102 |
ob_start(); ?>
|
103 |
|
104 |
<script>
|
105 |
-
var unsplash_img = '<?php echo esc_url( $unsplash_url );?>';
|
|
|
|
|
106 |
var width = document.documentElement.clientWidth;
|
107 |
var height = document.documentElement.clientHeight;
|
108 |
var dimension = 'w=' + width;
|
@@ -120,6 +124,18 @@ class cmp_render_html extends niteo_cmp {
|
|
120 |
}
|
121 |
|
122 |
container.innerHTML = banner;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
</script>
|
124 |
<?php
|
125 |
|
93 |
|
94 |
if ( isset( $body[0] ) ) {
|
95 |
foreach ( $body as $item ) {
|
96 |
+
$unsplash_url = $item['urls']['raw'];
|
97 |
+
$unsplash_download = $item['links']['download_location'];
|
98 |
}
|
99 |
} else {
|
100 |
+
$unsplash_url = $body['urls']['raw'];
|
101 |
+
$unsplash_download = $item['links']['download_location'];
|
102 |
}
|
103 |
|
104 |
ob_start(); ?>
|
105 |
|
106 |
<script>
|
107 |
+
var unsplash_img = '<?php echo esc_url( $unsplash_url );?>';
|
108 |
+
var unsplash_download = '<?php echo esc_url( $unsplash_download );?>';
|
109 |
+
|
110 |
var width = document.documentElement.clientWidth;
|
111 |
var height = document.documentElement.clientHeight;
|
112 |
var dimension = 'w=' + width;
|
124 |
}
|
125 |
|
126 |
container.innerHTML = banner;
|
127 |
+
|
128 |
+
// define get function for external URL
|
129 |
+
function Get(yourUrl){
|
130 |
+
var Httpreq = new XMLHttpRequest(); // a new request
|
131 |
+
Httpreq.open("GET",yourUrl,false);
|
132 |
+
Httpreq.send(null);
|
133 |
+
return Httpreq.responseText;
|
134 |
+
}
|
135 |
+
|
136 |
+
// trigger Unsplash download to meet API requirements
|
137 |
+
var json_obj = JSON.parse(Get(unsplash_download + '?client_id=41f043163758cf2e898e8a868bc142c20bc3f5966e7abac4779ee684088092ab'));
|
138 |
+
|
139 |
</script>
|
140 |
<?php
|
141 |
|
cmp-coming-soon-maintenance/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.6
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
@@ -1083,7 +1083,7 @@ class niteo_cmp {
|
|
1083 |
// mailchimp API call
|
1084 |
case 'mailchimp':
|
1085 |
$api_key = esc_attr( get_option('niteoCS_mailchimp_apikey') );
|
1086 |
-
$list_id = esc_attr( get_option('
|
1087 |
$email = $_POST['email'];
|
1088 |
$status = 'subscribed'; // subscribed, cleaned, pending
|
1089 |
|
@@ -1115,10 +1115,6 @@ class niteo_cmp {
|
|
1115 |
$response = $mailchimp->get_error_message();
|
1116 |
}
|
1117 |
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
break;
|
1123 |
|
1124 |
default:
|
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.6.1
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
1083 |
// mailchimp API call
|
1084 |
case 'mailchimp':
|
1085 |
$api_key = esc_attr( get_option('niteoCS_mailchimp_apikey') );
|
1086 |
+
$list_id = esc_attr( get_option('niteoCS_mailchimp_list_selected') );
|
1087 |
$email = $_POST['email'];
|
1088 |
$status = 'subscribed'; // subscribed, cleaned, pending
|
1089 |
|
1115 |
$response = $mailchimp->get_error_message();
|
1116 |
}
|
1117 |
|
|
|
|
|
|
|
|
|
1118 |
break;
|
1119 |
|
1120 |
default:
|
cmp-coming-soon-maintenance/readme.txt
CHANGED
@@ -112,6 +112,12 @@ CMP plugin offers premium features for free, no PRO versions! With blazing speed
|
|
112 |
<p>Everyone loves supports and great feedback! If you find our plugin helpful, you can go to wordpress.org and rate it! alternatively you can click on Donate button :)</p>
|
113 |
|
114 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
<h4>CMP 2.6 - Mailchimp integration and bug fixes!</h4>
|
116 |
<ul>
|
117 |
<li>CMP default subscribe form can be integrated directly to Mailchimp via their API now. Woot!</li>
|
112 |
<p>Everyone loves supports and great feedback! If you find our plugin helpful, you can go to wordpress.org and rate it! alternatively you can click on Donate button :)</p>
|
113 |
|
114 |
== Changelog ==
|
115 |
+
<h4>CMP 2.6.1 - maintenance update</h4>
|
116 |
+
<ul>
|
117 |
+
<li>Resolved 404 errpr while using MailChimp integration introduced in 2.6 update - it should all works as expected now!</li>
|
118 |
+
<li>Unsplash API changes to meet the API new requirements - no need to worry much about this.</li>
|
119 |
+
</ul>
|
120 |
+
|
121 |
<h4>CMP 2.6 - Mailchimp integration and bug fixes!</h4>
|
122 |
<ul>
|
123 |
<li>CMP default subscribe form can be integrated directly to Mailchimp via their API now. Woot!</li>
|
cmp-coming-soon-maintenance/sftp-config.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
// The tab key will cycle through the settings when first created
|
3 |
+
// Visit http://wbond.net/sublime_packages/sftp/settings for help
|
4 |
+
|
5 |
+
// sftp, ftp or ftps
|
6 |
+
"type": "sftp",
|
7 |
+
|
8 |
+
"save_before_upload": true,
|
9 |
+
"upload_on_save": true,
|
10 |
+
"sync_down_on_open": false,
|
11 |
+
"sync_skip_deletes": false,
|
12 |
+
"sync_same_age": true,
|
13 |
+
"confirm_downloads": false,
|
14 |
+
"confirm_sync": false,
|
15 |
+
"confirm_overwrite_newer": false,
|
16 |
+
|
17 |
+
"host": "niteothemes.com",
|
18 |
+
"user": "root",
|
19 |
+
"password": "Lj8?bE}#WMRBE71w",
|
20 |
+
"port": "22",
|
21 |
+
|
22 |
+
"remote_path": "/var/www/html/dev/wp-content/plugins/cmp-coming-soon-maintenance",
|
23 |
+
"ignore_regexes": [
|
24 |
+
"\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
|
25 |
+
"sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
|
26 |
+
"\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"
|
27 |
+
],
|
28 |
+
//"file_permissions": "664",
|
29 |
+
//"dir_permissions": "775",
|
30 |
+
|
31 |
+
//"extra_list_connections": 0,
|
32 |
+
|
33 |
+
"connect_timeout": 30,
|
34 |
+
//"keepalive": 120,
|
35 |
+
//"ftp_passive_mode": true,
|
36 |
+
//"ftp_obey_passive_host": false,
|
37 |
+
//"ssh_key_file": "~/.ssh/id_rsa",
|
38 |
+
//"sftp_flags": ["-F", "/path/to/ssh_config"],
|
39 |
+
|
40 |
+
//"preserve_modification_times": false,
|
41 |
+
//"remote_time_offset_in_hours": 0,
|
42 |
+
//"remote_encoding": "utf-8",
|
43 |
+
//"remote_locale": "C",
|
44 |
+
//"allow_config_upload": false,
|
45 |
+
}
|