Version Description
- 2017-06-05
- bug fixes
- UI enhancements
Download this release
Release Info
Developer | WebFactory |
Plugin | Minimal Coming Soon & Maintenance Mode |
Version | 1.25 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.25
framework/admin/init.php
CHANGED
@@ -50,12 +50,12 @@ add_action( 'admin_menu', 'csmm_add_menu' );
|
|
50 |
// Registering JS and CSS files over here
|
51 |
function csmm_admin_scripts() {
|
52 |
|
53 |
-
wp_register_style( 'csmm-admin-base', SIGNALS_CSMM_URL . '/framework/admin/css/admin.css', false,
|
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,
|
57 |
-
wp_register_script( 'csmm-admin-color', SIGNALS_CSMM_URL . '/framework/admin/js/colorpicker/jscolor.js', false,
|
58 |
-
wp_register_script( 'csmm-admin-base', SIGNALS_CSMM_URL . '/framework/admin/js/admin.js', 'jquery',
|
59 |
|
60 |
// Calling the files
|
61 |
wp_enqueue_style( 'csmm-admin-base' );
|
50 |
// Registering JS and CSS files over here
|
51 |
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, csmm_get_plugin_version() );
|
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 );
|
59 |
|
60 |
// Calling the files
|
61 |
wp_enqueue_style( 'csmm-admin-base' );
|
framework/admin/views/settings-basic.php
CHANGED
@@ -30,6 +30,22 @@
|
|
30 |
<p class="signals-form-help-block"><?php _e( 'Provide title for the maintenance page.', 'signals' ); ?></p>
|
31 |
</div>
|
32 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
<div class="signals-double-group signals-clearfix">
|
35 |
<div class="signals-form-group">
|
@@ -63,22 +79,6 @@
|
|
63 |
</div>
|
64 |
</div>
|
65 |
|
66 |
-
<div class="signals-double-group signals-clearfix">
|
67 |
-
<div class="signals-form-group">
|
68 |
-
<label for="signals_csmm_showlogged" class="signals-strong"><?php _e( 'Show normal website to logged in users?', 'signals' ); ?></label>
|
69 |
-
<input type="checkbox" class="signals-form-ios" name="signals_csmm_showlogged" value="1"<?php checked( '1', $signals_csmm_options['show_logged_in'] ); ?>>
|
70 |
-
|
71 |
-
<p class="signals-form-help-block"><?php _e( 'Enable this option if you want logged in users to view the website normally while visitors see the maintenance page.', 'signals' ); ?></p>
|
72 |
-
</div>
|
73 |
-
|
74 |
-
<div class="signals-form-group">
|
75 |
-
<label for="signals_csmm_excludese" class="signals-strong"><?php _e( 'Exclude Search Engines?', 'signals' ); ?></label>
|
76 |
-
<input type="checkbox" class="signals-form-ios" name="signals_csmm_excludese" id="signals_csmm_excludese" value="1"<?php checked( '1', $signals_csmm_options['exclude_se'] ); ?>>
|
77 |
-
|
78 |
-
<p class="signals-form-help-block"><?php _e( 'Do you want to exclude search engines from viewing maintenance page? This will enable search engines to view your regular website and not the Maintenance Mode page even if the plugin is enabled.', 'signals' ); ?></p>
|
79 |
-
</div>
|
80 |
-
</div>
|
81 |
-
|
82 |
<label class="signals-strong"><?php _e( 'Arrange Elements', 'signals' ); ?></label>
|
83 |
<p class="signals-form-help-block"><?php _e( 'Select the order in which you would like to display the sections on the maintenance page. To change the order, simply drag the items and arrange as per your preference.', 'signals' ); ?></p>
|
84 |
<div class="signals-elements">
|
30 |
<p class="signals-form-help-block"><?php _e( 'Provide title for the maintenance page.', 'signals' ); ?></p>
|
31 |
</div>
|
32 |
</div>
|
33 |
+
|
34 |
+
<div class="signals-double-group signals-clearfix">
|
35 |
+
<div class="signals-form-group">
|
36 |
+
<label for="signals_csmm_showlogged" class="signals-strong"><?php _e( 'Show normal website to logged in users?', 'signals' ); ?></label>
|
37 |
+
<input id="signals_csmm_showlogged" type="checkbox" class="signals-form-ios" name="signals_csmm_showlogged" value="1"<?php checked( '1', $signals_csmm_options['show_logged_in'] ); ?>>
|
38 |
+
|
39 |
+
<p class="signals-form-help-block"><?php _e( 'Enable this option if you want logged in users to view the website normally while visitors see the maintenance page.', 'signals' ); ?></p>
|
40 |
+
</div>
|
41 |
+
|
42 |
+
<div class="signals-form-group">
|
43 |
+
<label for="signals_csmm_excludese" class="signals-strong"><?php _e( 'Exclude Search Engines?', 'signals' ); ?></label>
|
44 |
+
<input type="checkbox" class="signals-form-ios" name="signals_csmm_excludese" id="signals_csmm_excludese" value="1"<?php checked( '1', $signals_csmm_options['exclude_se'] ); ?>>
|
45 |
+
|
46 |
+
<p class="signals-form-help-block"><?php _e( 'Do you want to exclude search engines from viewing maintenance page? This will enable search engines to view your regular website and not the Maintenance Mode page even if the plugin is enabled.', 'signals' ); ?></p>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
|
50 |
<div class="signals-double-group signals-clearfix">
|
51 |
<div class="signals-form-group">
|
79 |
</div>
|
80 |
</div>
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
<label class="signals-strong"><?php _e( 'Arrange Elements', 'signals' ); ?></label>
|
83 |
<p class="signals-form-help-block"><?php _e( 'Select the order in which you would like to display the sections on the maintenance page. To change the order, simply drag the items and arrange as per your preference.', 'signals' ); ?></p>
|
84 |
<div class="signals-elements">
|
framework/admin/views/settings-email.php
CHANGED
@@ -17,9 +17,10 @@
|
|
17 |
<div class="signals-section-content">
|
18 |
<div class="signals-form-group">
|
19 |
<label for="signals_csmm_api" class="signals-strong"><?php _e( 'MailChimp API', 'signals' ); ?></label>
|
20 |
-
<input type="text" name="signals_csmm_api" id="signals_csmm_api" value="<?php esc_attr_e( $signals_csmm_options['mailchimp_api'] ); ?>" placeholder="<?php esc_attr_e( 'MailChimp API', 'signals' ); ?>" class="signals-form-control">
|
21 |
|
22 |
-
<p class="signals-form-help-block"><?php _e( '
|
|
|
23 |
</div>
|
24 |
|
25 |
<div class="signals-form-group">
|
@@ -38,9 +39,9 @@
|
|
38 |
);
|
39 |
|
40 |
if ( ! $signals_lists ) {
|
41 |
-
echo '<p class="signals-form-help-block">' . __( '
|
42 |
} else if ( $signals_lists['total'] == 0 ) {
|
43 |
-
echo '<p class="signals-form-help-block">' . __( 'It seems that there is no list created for this account.
|
44 |
} else {
|
45 |
echo '<select name="signals_csmm_list" id="signals_csmm_list">';
|
46 |
|
@@ -49,10 +50,10 @@
|
|
49 |
}
|
50 |
|
51 |
echo '</select>';
|
52 |
-
echo '<p class="signals-form-help-block">' . __( 'Select
|
53 |
}
|
54 |
} else {
|
55 |
-
echo '<p class="signals-form-help-block">' . __( '
|
56 |
}
|
57 |
|
58 |
?>
|
17 |
<div class="signals-section-content">
|
18 |
<div class="signals-form-group">
|
19 |
<label for="signals_csmm_api" class="signals-strong"><?php _e( 'MailChimp API', 'signals' ); ?></label>
|
20 |
+
<input type="text" name="signals_csmm_api" id="signals_csmm_api" value="<?php esc_attr_e( $signals_csmm_options['mailchimp_api'] ); ?>" placeholder="<?php esc_attr_e( 'MailChimp API key', 'signals' ); ?>" class="signals-form-control">
|
21 |
|
22 |
+
<p class="signals-form-help-block"><?php _e( 'Enter your MailChimp API key.', 'signals' ); ?> Open your <a href="https://us2.admin.mailchimp.com/account/api/" target="_blank"><?php _e( 'MailChimp profile', 'signals' ); ?></a> <?php _e( 'to get the API key. If you don\'t want to enable the subscription option, leave this field blank.', 'signals' ); ?></p>
|
23 |
+
<p><button type="submit" name="signals_csmm_submit" class="signals-btn"><?php _e( 'Save API key & refresh mailing lists', 'signals' ); ?></button></p>
|
24 |
</div>
|
25 |
|
26 |
<div class="signals-form-group">
|
39 |
);
|
40 |
|
41 |
if ( ! $signals_lists ) {
|
42 |
+
echo '<p class="signals-form-help-block">' . __( '<b>Error</b> fetching mailing lists. Please make sure that the API key you entered is correct and try again.', 'signals' ) . '</p>';
|
43 |
} else if ( $signals_lists['total'] == 0 ) {
|
44 |
+
echo '<p class="signals-form-help-block">' . __( 'It seems that there is no list created for this account. Create one on the MailChimp website and then try again.', 'signals' ) . '</p>';
|
45 |
} else {
|
46 |
echo '<select name="signals_csmm_list" id="signals_csmm_list">';
|
47 |
|
50 |
}
|
51 |
|
52 |
echo '</select>';
|
53 |
+
echo '<p class="signals-form-help-block">' . __( 'Select the MailChimp list in which you want to store the subscriber data.', 'signals' ) . '</p>';
|
54 |
}
|
55 |
} else {
|
56 |
+
echo '<p class="signals-form-help-block">' . __( 'Enter your MailChimp API key in the field above and click "Save API key". Your lists will refresh and appear here.', 'signals' ) . '</p>';
|
57 |
}
|
58 |
|
59 |
?>
|
framework/public/include/functions.php
CHANGED
@@ -8,19 +8,24 @@
|
|
8 |
*/
|
9 |
|
10 |
function csmm_render_template( $options ) {
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
|
26 |
/**
|
8 |
*/
|
9 |
|
10 |
function csmm_render_template( $options ) {
|
11 |
+
if (function_exists('w3tc_pgcache_flush')) {
|
12 |
+
ob_end_clean();
|
13 |
+
w3tc_pgcache_flush();
|
14 |
+
}
|
15 |
+
if (function_exists('wp_cache_clean_cache')) {
|
16 |
+
global $file_prefix;
|
17 |
+
ob_end_clean();
|
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 |
|
31 |
/**
|
framework/public/views/html.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<?php if ( isset( $options['favicon'] ) && ! empty( $options['favicon'] ) ) : ?>
|
18 |
<link rel="shortcut icon" href="<?php echo esc_url_raw( $options['favicon'] ); ?>" />
|
19 |
<?php endif; ?>
|
20 |
-
<link rel="profile" href="
|
21 |
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
|
22 |
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
|
23 |
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
|
17 |
<?php if ( isset( $options['favicon'] ) && ! empty( $options['favicon'] ) ) : ?>
|
18 |
<link rel="shortcut icon" href="<?php echo esc_url_raw( $options['favicon'] ); ?>" />
|
19 |
<?php endif; ?>
|
20 |
+
<link rel="profile" href="https://gmpg.org/xfn/11">
|
21 |
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
|
22 |
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
|
23 |
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
|
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
|
@@ -14,7 +14,7 @@
|
|
14 |
*
|
15 |
*
|
16 |
* Minimal Coming Soon & Maintenance Mode Plugin
|
17 |
-
* Copyright (C) 2016, Web Factory Ltd - support@webfactoryltd.com
|
18 |
*
|
19 |
* This program is free software: you can redistribute it and/or modify
|
20 |
* it under the terms of the GNU General Public License as published by
|
@@ -47,7 +47,7 @@ define( 'SIGNALS_CSMM_PATH', plugin_dir_path( __FILE__ ) );
|
|
47 |
* For the plugin activation & de-activation.
|
48 |
* We are doing nothing over here.
|
49 |
*/
|
50 |
-
|
51 |
function csmm_plugin_activation() {
|
52 |
|
53 |
// Checking if the options exist in the database
|
@@ -61,7 +61,7 @@ function csmm_plugin_activation() {
|
|
61 |
'secondary_text' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra eu felis quis lobortis. Proin vitae rutrum nisl, ut ullamcorper quam. Praesent faucibus ligula ac nisl varius dictum. Maecenas iaculis posuere orci, sed consectetur augue.',
|
62 |
'antispam_text' => 'And yes, we hate spam too!',
|
63 |
'custom_login_url' => '',
|
64 |
-
'show_logged_in' => '
|
65 |
'exclude_se' => '1',
|
66 |
'arrange' => 'logo,header,secondary,form,html',
|
67 |
'analytics' => '',
|
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.25
|
8 |
* Author: WebFactory
|
9 |
* Author URI: http://www.webfactoryltd.com
|
10 |
* License: GPLv3
|
14 |
*
|
15 |
*
|
16 |
* Minimal Coming Soon & Maintenance Mode Plugin
|
17 |
+
* Copyright (C) 2016 - 2017, Web Factory Ltd - support@webfactoryltd.com
|
18 |
*
|
19 |
* This program is free software: you can redistribute it and/or modify
|
20 |
* it under the terms of the GNU General Public License as published by
|
47 |
* For the plugin activation & de-activation.
|
48 |
* We are doing nothing over here.
|
49 |
*/
|
50 |
+
|
51 |
function csmm_plugin_activation() {
|
52 |
|
53 |
// Checking if the options exist in the database
|
61 |
'secondary_text' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra eu felis quis lobortis. Proin vitae rutrum nisl, ut ullamcorper quam. Praesent faucibus ligula ac nisl varius dictum. Maecenas iaculis posuere orci, sed consectetur augue.',
|
62 |
'antispam_text' => 'And yes, we hate spam too!',
|
63 |
'custom_login_url' => '',
|
64 |
+
'show_logged_in' => '1',
|
65 |
'exclude_se' => '1',
|
66 |
'arrange' => 'logo,header,secondary,form,html',
|
67 |
'analytics' => '',
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
=== Minimal Coming Soon & Maintenance Mode
|
2 |
-
Tags: coming soon, coming soon page, launch page, maintenance mode, mailchimp
|
3 |
Contributors: WebFactory
|
|
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -13,7 +13,7 @@ Simple and flexible Coming Soon & Maintenance Mode plugin for any WordPress site
|
|
13 |
== Description ==
|
14 |
The Minimal Coming Soon & Maintenance Mode plugin allows you to quickly and 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
|
17 |
|
18 |
|
19 |
= Plugin Features =
|
@@ -40,12 +40,12 @@ It's simple + flexible and works with any WordPress theme & plugin Plus you have
|
|
40 |
|
41 |
== Installation ==
|
42 |
|
43 |
-
To manually install
|
44 |
|
45 |
1. Upload `minimal-coming-soon-maintenance-mode` folder to the `/wp-content/plugins/` directory.
|
46 |
2. Activate the plugin through the 'Plugins' menu in WordPress.
|
47 |
3. Go to the 'Maintenance Mode' under 'Admin' panel.
|
48 |
-
4. Configure the plugin and start
|
49 |
|
50 |
|
51 |
== Frequently Asked Questions ==
|
@@ -54,6 +54,10 @@ To manually install this plugin, please follow the instructions below.
|
|
54 |
|
55 |
Please use the <a href="https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode">support forum</a>. We read it all the time.
|
56 |
|
|
|
|
|
|
|
|
|
57 |
|
58 |
== Screenshots ==
|
59 |
|
@@ -66,6 +70,11 @@ Please use the <a href="https://wordpress.org/support/plugin/minimal-coming-soon
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
|
|
69 |
= 1.2 =
|
70 |
* 2016-11-22
|
71 |
* WebFactory took over development
|
1 |
+
=== Minimal Coming Soon & Maintenance Mode ===
|
|
|
2 |
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.25
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
13 |
== Description ==
|
14 |
The Minimal Coming Soon & Maintenance Mode plugin allows you to quickly and 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 |
|
18 |
|
19 |
= Plugin Features =
|
40 |
|
41 |
== Installation ==
|
42 |
|
43 |
+
To manually install the plugin, please do the following:
|
44 |
|
45 |
1. Upload `minimal-coming-soon-maintenance-mode` folder to the `/wp-content/plugins/` directory.
|
46 |
2. Activate the plugin through the 'Plugins' menu in WordPress.
|
47 |
3. Go to the 'Maintenance Mode' under 'Admin' panel.
|
48 |
+
4. Configure the plugin and start using it.
|
49 |
|
50 |
|
51 |
== Frequently Asked Questions ==
|
54 |
|
55 |
Please use the <a href="https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode">support forum</a>. We read it all the time.
|
56 |
|
57 |
+
= Emails not saving in MailChimp? =
|
58 |
+
|
59 |
+
Make sure that the name field in MailChimp (FNAME) is not mandatory. Configure it to an optional one.
|
60 |
+
|
61 |
|
62 |
== Screenshots ==
|
63 |
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 1.25 =
|
74 |
+
* 2017-06-05
|
75 |
+
* bug fixes
|
76 |
+
* UI enhancements
|
77 |
+
|
78 |
= 1.2 =
|
79 |
* 2016-11-22
|
80 |
* WebFactory took over development
|