Version Description
- 2017-06-20
- bug fixes
- WP-CLI support
Download this release
Release Info
Developer | WebFactory |
Plugin | Minimal Coming Soon & Maintenance Mode |
Version | 1.30 |
Comparing to | |
See all releases |
Code changes from version 1.25 to 1.30
framework/admin/init.php
CHANGED
@@ -52,7 +52,7 @@ function csmm_admin_scripts() {
|
|
52 |
|
53 |
wp_register_style( 'csmm-admin-base', SIGNALS_CSMM_URL . '/framework/admin/css/admin.css', false, csmm_get_plugin_version() );
|
54 |
|
55 |
-
wp_register_script( 'csmm-webfonts', '//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js', false
|
56 |
wp_register_script( 'csmm-admin-editor', SIGNALS_CSMM_URL . '/framework/admin/js/editor/ace.js', false, csmm_get_plugin_version(), true );
|
57 |
wp_register_script( 'csmm-admin-color', SIGNALS_CSMM_URL . '/framework/admin/js/colorpicker/jscolor.js', false, csmm_get_plugin_version(), true );
|
58 |
wp_register_script( 'csmm-admin-base', SIGNALS_CSMM_URL . '/framework/admin/js/admin.js', 'jquery', csmm_get_plugin_version(), true );
|
52 |
|
53 |
wp_register_style( 'csmm-admin-base', SIGNALS_CSMM_URL . '/framework/admin/css/admin.css', false, csmm_get_plugin_version() );
|
54 |
|
55 |
+
wp_register_script( 'csmm-webfonts', '//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js', false );
|
56 |
wp_register_script( 'csmm-admin-editor', SIGNALS_CSMM_URL . '/framework/admin/js/editor/ace.js', false, csmm_get_plugin_version(), true );
|
57 |
wp_register_script( 'csmm-admin-color', SIGNALS_CSMM_URL . '/framework/admin/js/colorpicker/jscolor.js', false, csmm_get_plugin_version(), true );
|
58 |
wp_register_script( 'csmm-admin-base', SIGNALS_CSMM_URL . '/framework/admin/js/admin.js', 'jquery', csmm_get_plugin_version(), true );
|
framework/public/include/functions.php
CHANGED
@@ -8,23 +8,23 @@
|
|
8 |
*/
|
9 |
|
10 |
function csmm_render_template( $options ) {
|
11 |
-
if (
|
12 |
ob_end_clean();
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
15 |
if (function_exists('wp_cache_clean_cache')) {
|
16 |
global $file_prefix;
|
17 |
-
|
18 |
-
wp_cache_clean_cache($file_prefix);
|
19 |
}
|
20 |
if (function_exists('wp_cache_clear_cache')) {
|
21 |
-
ob_end_clean();
|
22 |
wp_cache_clear_cache();
|
23 |
}
|
24 |
if (class_exists('Endurance_Page_Cache')) {
|
25 |
-
ob_end_clean();
|
26 |
$epc = new Endurance_Page_Cache;
|
27 |
-
$epc->purge_all();
|
28 |
}
|
29 |
|
30 |
|
8 |
*/
|
9 |
|
10 |
function csmm_render_template( $options ) {
|
11 |
+
if (ob_get_length() > 0 ) {
|
12 |
ob_end_clean();
|
13 |
+
}
|
14 |
+
|
15 |
+
if (function_exists('w3tc_pgcache_flush')) {
|
16 |
+
w3tc_pgcache_flush();
|
17 |
+
}
|
18 |
if (function_exists('wp_cache_clean_cache')) {
|
19 |
global $file_prefix;
|
20 |
+
wp_cache_clean_cache($file_prefix);
|
|
|
21 |
}
|
22 |
if (function_exists('wp_cache_clear_cache')) {
|
|
|
23 |
wp_cache_clear_cache();
|
24 |
}
|
25 |
if (class_exists('Endurance_Page_Cache')) {
|
|
|
26 |
$epc = new Endurance_Page_Cache;
|
27 |
+
$epc->purge_all();
|
28 |
}
|
29 |
|
30 |
|
framework/public/init.php
CHANGED
@@ -12,7 +12,7 @@ require_once 'include/functions.php';
|
|
12 |
|
13 |
|
14 |
function csmm_plugin_init() {
|
15 |
-
|
16 |
add_action('wp_ajax_csmm_subscribe', 'csmm_subscribe');
|
17 |
add_action('wp_ajax_csmm_subscribe_hide', 'csmm_subscribe_hide');
|
18 |
|
@@ -45,6 +45,9 @@ function csmm_plugin_init() {
|
|
45 |
$signals_csmm_options['custom_login_url'] = NULL;
|
46 |
}
|
47 |
|
|
|
|
|
|
|
48 |
|
49 |
// Not for the backend
|
50 |
// Only modifies the frontend of the system
|
@@ -107,16 +110,16 @@ function csmm_subscribe() {
|
|
107 |
'name' => @$_GET['name'],
|
108 |
'email' => @$_GET['email']), 'http://www.webfactoryltd.com/maintenance-mode/subscribe.php');
|
109 |
$response = wp_remote_get(esc_url_raw($url), $request_params);
|
110 |
-
|
111 |
if (is_wp_error($response)) {
|
112 |
wp_send_json_error();
|
113 |
} else {
|
114 |
-
wp_send_json_success();
|
115 |
}
|
116 |
} // csmm_subscribe
|
117 |
|
118 |
function csmm_subscribe_hide() {
|
119 |
set_transient('csmm_subscribe_hide', true, DAY_IN_SECONDS * 90);
|
120 |
-
|
121 |
wp_send_json_success();
|
122 |
} // csmm_subscribe_hide
|
12 |
|
13 |
|
14 |
function csmm_plugin_init() {
|
15 |
+
|
16 |
add_action('wp_ajax_csmm_subscribe', 'csmm_subscribe');
|
17 |
add_action('wp_ajax_csmm_subscribe_hide', 'csmm_subscribe_hide');
|
18 |
|
45 |
$signals_csmm_options['custom_login_url'] = NULL;
|
46 |
}
|
47 |
|
48 |
+
if (defined('WP_CLI') && WP_CLI) {
|
49 |
+
return;
|
50 |
+
}
|
51 |
|
52 |
// Not for the backend
|
53 |
// Only modifies the frontend of the system
|
110 |
'name' => @$_GET['name'],
|
111 |
'email' => @$_GET['email']), 'http://www.webfactoryltd.com/maintenance-mode/subscribe.php');
|
112 |
$response = wp_remote_get(esc_url_raw($url), $request_params);
|
113 |
+
|
114 |
if (is_wp_error($response)) {
|
115 |
wp_send_json_error();
|
116 |
} else {
|
117 |
+
wp_send_json_success();
|
118 |
}
|
119 |
} // csmm_subscribe
|
120 |
|
121 |
function csmm_subscribe_hide() {
|
122 |
set_transient('csmm_subscribe_hide', true, DAY_IN_SECONDS * 90);
|
123 |
+
|
124 |
wp_send_json_success();
|
125 |
} // csmm_subscribe_hide
|
framework/public/views/blank.php
CHANGED
@@ -69,6 +69,7 @@
|
|
69 |
$signals_response = $signals_connect->call( 'lists/subscribe', array(
|
70 |
'id' => $options['mailchimp_list'],
|
71 |
'email' => array( 'email' => $signals_email ),
|
|
|
72 |
'send_welcome' => true
|
73 |
) );
|
74 |
|
69 |
$signals_response = $signals_connect->call( 'lists/subscribe', array(
|
70 |
'id' => $options['mailchimp_list'],
|
71 |
'email' => array( 'email' => $signals_email ),
|
72 |
+
//'double_optin' => true,
|
73 |
'send_welcome' => true
|
74 |
) );
|
75 |
|
minimal-coming-soon-maintenance-mode.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Minimal Coming Soon & Maintenance Mode
|
5 |
* Plugin URI: https://wordpress.org/plugins/minimal-coming-soon-maintenance-mode/
|
6 |
* Description: Simply awesome coming soon & maintenance mode plugin for your WordPress blog. Try it to know why there is no other plugin like this one.
|
7 |
-
* Version: 1.
|
8 |
* Author: WebFactory
|
9 |
* Author URI: http://www.webfactoryltd.com
|
10 |
* License: GPLv3
|
@@ -161,4 +161,4 @@ function csmm_get_plugin_version() {
|
|
161 |
$plugin_data = get_file_data(__FILE__, array('version' => 'Version'), 'plugin');
|
162 |
|
163 |
return $plugin_data['version'];
|
164 |
-
} // csmm_get_plugin_version
|
4 |
* Plugin Name: Minimal Coming Soon & Maintenance Mode
|
5 |
* Plugin URI: https://wordpress.org/plugins/minimal-coming-soon-maintenance-mode/
|
6 |
* Description: Simply awesome coming soon & maintenance mode plugin for your WordPress blog. Try it to know why there is no other plugin like this one.
|
7 |
+
* Version: 1.30
|
8 |
* Author: WebFactory
|
9 |
* Author URI: http://www.webfactoryltd.com
|
10 |
* License: GPLv3
|
161 |
$plugin_data = get_file_data(__FILE__, array('version' => 'Version'), 'plugin');
|
162 |
|
163 |
return $plugin_data['version'];
|
164 |
+
} // csmm_get_plugin_version
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: WebFactory
|
|
3 |
Tags: coming soon, coming soon page, launch page, maintenance mode, mailchimp
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.8
|
6 |
-
Stable tag: 1.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -11,7 +11,7 @@ Simple and flexible Coming Soon & Maintenance Mode plugin for any WordPress site
|
|
11 |
|
12 |
|
13 |
== Description ==
|
14 |
-
The Minimal Coming Soon & Maintenance Mode plugin allows you to quickly
|
15 |
|
16 |
It's simple + flexible and works with any WordPress theme & plugin, plus you'll have full control over the frontend of the website and can modify almost every aspect of it per your preference. Easily conncets with MailChimp so that you can collect emails from visitors.
|
17 |
|
@@ -70,6 +70,11 @@ Make sure that the name field in MailChimp (FNAME) is not mandatory. Configure i
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
|
|
|
|
|
|
|
|
|
|
73 |
= 1.25 =
|
74 |
* 2017-06-05
|
75 |
* bug fixes
|
3 |
Tags: coming soon, coming soon page, launch page, maintenance mode, mailchimp
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.8
|
6 |
+
Stable tag: 1.30
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
11 |
|
12 |
|
13 |
== Description ==
|
14 |
+
The Minimal Coming Soon & Maintenance Mode plugin allows you to **quickly & easily** set up a Coming Soon or Launch Page for your website.
|
15 |
|
16 |
It's simple + flexible and works with any WordPress theme & plugin, plus you'll have full control over the frontend of the website and can modify almost every aspect of it per your preference. Easily conncets with MailChimp so that you can collect emails from visitors.
|
17 |
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 1.30 =
|
74 |
+
* 2017-06-20
|
75 |
+
* bug fixes
|
76 |
+
* WP-CLI support
|
77 |
+
|
78 |
= 1.25 =
|
79 |
* 2017-06-05
|
80 |
* bug fixes
|