Version Description
- 2021-02-21
- added support for Cache Enabler plugin
- code cleanup
Download this release
Release Info
Developer | WebFactory |
Plugin | Minimal Coming Soon & Maintenance Mode |
Version | 2.27 |
Comparing to | |
See all releases |
Code changes from version 2.26 to 2.27
- framework/admin/img/accessibe-logo.png +0 -0
- framework/admin/include/mailoptin.php +0 -119
- framework/admin/init.php +0 -71
- framework/admin/js/admin.js +0 -41
- framework/admin/settings.php +1 -0
- framework/admin/views/header.php +1 -1
- framework/admin/views/settings-basic.php +5 -16
- framework/admin/views/settings-pro.php +7 -23
- framework/admin/views/settings-themes.php +0 -7
- framework/admin/views/settings.php +0 -24
- framework/init.php +6 -1
- framework/public/views/html.php +0 -30
- minimal-coming-soon-maintenance-mode.php +1 -4
- readme.txt +10 -6
- wf-flyout/config.php +4 -4
- wf-flyout/icons/301-logo.png +0 -0
- wf-flyout/wf-flyout.php +2 -2
framework/admin/img/accessibe-logo.png
DELETED
Binary file
|
framework/admin/include/mailoptin.php
DELETED
@@ -1,119 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if (!defined('WPINC')) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
function csmm_mailoptin_settings($signals_csmm_options){
|
8 |
-
global $wpdb;
|
9 |
-
if(csmm_is_mailoptin_active()){
|
10 |
-
$mailoptin_campaigns = $wpdb->get_results('SELECT * FROM '.$wpdb->prefix.'mo_optin_campaigns');
|
11 |
-
|
12 |
-
echo '<label for="signals_csmm_mailoptin_campaign" class="signals-strong">MailOptin Campaign:</label>';
|
13 |
-
if (empty($mailoptin_campaigns)) {
|
14 |
-
echo '<p><a href="' . admin_url('admin.php?page=mailoptin-optin-campaigns') . '">Create your first optin</a> to start collecting leads and subscribers via in-content optins or popups.</p>';
|
15 |
-
} else {
|
16 |
-
echo '<select name="signals_csmm_mailoptin_campaign" id="signals_csmm_mailoptin_campaign">';
|
17 |
-
echo '<option value="0">Select Campaign</option>';
|
18 |
-
foreach($mailoptin_campaigns as $mailoptin_campaign) {
|
19 |
-
if ($mailoptin_campaign->optin_type == 'lightbox') {
|
20 |
-
$type = 'lightbox optin';
|
21 |
-
} else {
|
22 |
-
$type = 'content optin';
|
23 |
-
}
|
24 |
-
echo '<option value="'.$mailoptin_campaign->id.'" '.($signals_csmm_options['mailoptin_campaign'] == $mailoptin_campaign->id?'selected':'').'>'.$mailoptin_campaign->name . ' - ' . $type . '</option>';
|
25 |
-
} // foreach
|
26 |
-
echo '</select>';
|
27 |
-
echo '<p class="signals-form-help-block">Create, edit and manage optins on the <a href="' . admin_url('admin.php?page=mailoptin-optin-campaigns') . '">MailOptin campaigns page</a>. Lightbox optins are more prominent but some users find them annoying. Content box optins tend to generate leads of higher quality.</p>';
|
28 |
-
}
|
29 |
-
} else {
|
30 |
-
echo '<p class="signals-form-help-block"><a href="#" class="button button-primary open-mailoptin-upsell">Enable the free MailOptin plugin</a> to start creating in-content optin forms and popup optins. MailOptin is fully integrated into Coming Soon pages and offers numerous customization options.</p>';
|
31 |
-
}
|
32 |
-
|
33 |
-
// mailoptin install dialog
|
34 |
-
echo '<div id="csmm-mailoptin-upsell-dialog" style="display: none;" title="MailOptin"><span class="ui-helper-hidden-accessible"><input type="text"/></span>';
|
35 |
-
echo '<div style="padding: 20px; font-size: 14px;">';
|
36 |
-
echo '<ul class="normal-list">';
|
37 |
-
echo '<li>completely free plugin that integrates into Coming Soon pages</li>';
|
38 |
-
echo '<li>instantly start collecting leads & subscribers</li>';
|
39 |
-
echo '<li>use an in-content optin form</li>';
|
40 |
-
echo '<li>or try a popup/lightbox optin</li>';
|
41 |
-
echo '<li>easily connect with numerous leading autoresponder services</li>';
|
42 |
-
echo '<li>completely customize the look & feel of the optin form</li>';
|
43 |
-
echo '</ul>';
|
44 |
-
echo '<p class="upsell-footer"><a class="button button-primary" id="install-mailoptin">Install & activate MailOptin to start collecting leads</a></p>';
|
45 |
-
echo '</div>';
|
46 |
-
echo '</div>'; // mailoptin install dialog
|
47 |
-
}
|
48 |
-
|
49 |
-
|
50 |
-
function csmm_is_mailoptin_active() {
|
51 |
-
if ( ! function_exists( 'is_plugin_active' ) || ! function_exists( 'get_plugin_data' )) {
|
52 |
-
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
53 |
-
}
|
54 |
-
|
55 |
-
if(is_plugin_active('mailoptin/mailoptin.php')){
|
56 |
-
$mailoptin_info = get_plugin_data(ABSPATH.'wp-content/plugins/mailoptin/mailoptin.php');
|
57 |
-
if(version_compare($mailoptin_info['Version'],'1.2.10.1','<')){
|
58 |
-
return false;
|
59 |
-
} else {
|
60 |
-
return true;
|
61 |
-
}
|
62 |
-
} else {
|
63 |
-
return false;
|
64 |
-
}
|
65 |
-
|
66 |
-
}
|
67 |
-
|
68 |
-
function csmm_install_mailoptin() {
|
69 |
-
$plugin_slug = 'mailoptin/mailoptin.php';
|
70 |
-
$plugin_zip = 'https://downloads.wordpress.org/plugin/mailoptin.latest-stable.zip';
|
71 |
-
|
72 |
-
@include_once ABSPATH . 'wp-admin/includes/plugin.php';
|
73 |
-
@include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
74 |
-
@include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
|
75 |
-
@include_once ABSPATH . 'wp-admin/includes/file.php';
|
76 |
-
@include_once ABSPATH . 'wp-admin/includes/misc.php';
|
77 |
-
echo '<style>
|
78 |
-
body{
|
79 |
-
font-family: sans-serif;
|
80 |
-
font-size: 14px;
|
81 |
-
line-height: 1.5;
|
82 |
-
color: #444;
|
83 |
-
}
|
84 |
-
</style>';
|
85 |
-
|
86 |
-
echo '<div style="margin: 20px; color:#444;">';
|
87 |
-
echo 'If things are not done in a minute <a target="_parent" href="' . admin_url('plugin-install.php?s=mailoptin&tab=search&type=term') .'">install the plugin manually via Plugins page</a><br><br>';
|
88 |
-
echo 'Starting ...<br><br>';
|
89 |
-
|
90 |
-
wp_cache_flush();
|
91 |
-
$upgrader = new Plugin_Upgrader();
|
92 |
-
echo 'Check if MailOptin is already installed ... <br />';
|
93 |
-
if (csmm_is_plugin_installed($plugin_slug)) {
|
94 |
-
echo 'MailOptin is already installed! <br /><br />Making sure it\'s the latest version.<br />';
|
95 |
-
$upgrader->upgrade($plugin_slug);
|
96 |
-
$installed = true;
|
97 |
-
} else {
|
98 |
-
echo 'Installing MailOptin.<br />';
|
99 |
-
$installed = $upgrader->install($plugin_zip);
|
100 |
-
}
|
101 |
-
wp_cache_flush();
|
102 |
-
|
103 |
-
if (!is_wp_error($installed) && $installed) {
|
104 |
-
echo 'Activating MailOptin.<br />';
|
105 |
-
$activate = activate_plugin($plugin_slug);
|
106 |
-
|
107 |
-
if (is_null($activate)) {
|
108 |
-
echo 'MailOptin Activated.<br />';
|
109 |
-
echo '<script>setTimeout(function() { top.location = "options-general.php?page=maintenance_mode_options"; }, 800);</script>';
|
110 |
-
echo '<br>If you are not redirected in a few seconds - <a href="options-general.php?page=maintenance_mode_options" target="_parent">click here</a>.';
|
111 |
-
}
|
112 |
-
} else {
|
113 |
-
echo 'Could not install MailOptin. You\'ll have to <a target="_parent" href="' . admin_url('plugin-install.php?s=mailoptin&tab=search&type=term') .'">download and install manually</a>.';
|
114 |
-
}
|
115 |
-
|
116 |
-
echo '</div>';
|
117 |
-
} // replace
|
118 |
-
|
119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
framework/admin/init.php
CHANGED
@@ -45,73 +45,6 @@ function csmm_is_plugin_installed($slug)
|
|
45 |
}
|
46 |
}
|
47 |
|
48 |
-
// auto download / install / activate Accessibe plugin
|
49 |
-
function csmm_install_accessibe() {
|
50 |
-
if (false === current_user_can('administrator')) {
|
51 |
-
wp_die('Sorry, you have to be an admin to run this action.');
|
52 |
-
}
|
53 |
-
|
54 |
-
$plugin_slug = 'accessibe/accessiebe.php';
|
55 |
-
$plugin_zip = 'https://downloads.wordpress.org/plugin/accessibe.latest-stable.zip';
|
56 |
-
|
57 |
-
@include_once ABSPATH . 'wp-admin/includes/plugin.php';
|
58 |
-
@include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
59 |
-
@include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
|
60 |
-
@include_once ABSPATH . 'wp-admin/includes/file.php';
|
61 |
-
@include_once ABSPATH . 'wp-admin/includes/misc.php';
|
62 |
-
echo '<style>
|
63 |
-
body{
|
64 |
-
font-family: sans-serif;
|
65 |
-
font-size: 14px;
|
66 |
-
line-height: 1.5;
|
67 |
-
color: #444;
|
68 |
-
}
|
69 |
-
</style>';
|
70 |
-
|
71 |
-
echo '<div style="margin: 20px; color:#444;">';
|
72 |
-
echo 'If things are not done in a minute <a target="_parent" href="' . admin_url('plugin-install.php?s=accessibe&tab=search&type=term') .'">install the plugin manually via Plugins page</a><br><br>';
|
73 |
-
echo 'Starting ...<br><br>';
|
74 |
-
|
75 |
-
wp_cache_flush();
|
76 |
-
$upgrader = new Plugin_Upgrader();
|
77 |
-
echo 'Check if accessiBe is already installed ... <br />';
|
78 |
-
if (csmm_is_plugin_installed($plugin_slug)) {
|
79 |
-
echo 'accessiBe is already installed! <br /><br />Making sure it\'s the latest version.<br />';
|
80 |
-
$upgrader->upgrade($plugin_slug);
|
81 |
-
$installed = true;
|
82 |
-
} else {
|
83 |
-
echo 'Installing accessiBe.<br />';
|
84 |
-
$installed = $upgrader->install($plugin_zip);
|
85 |
-
}
|
86 |
-
wp_cache_flush();
|
87 |
-
|
88 |
-
if (!is_wp_error($installed) && $installed) {
|
89 |
-
echo 'Activating accessiBe.<br />';
|
90 |
-
$activate = activate_plugin($plugin_slug);
|
91 |
-
|
92 |
-
if (is_null($activate)) {
|
93 |
-
echo 'accessiBe Activated.<br />';
|
94 |
-
|
95 |
-
echo '<script>setTimeout(function() { top.location = "options-general.php?page=maintenance_mode_options"; }, 1000);</script>';
|
96 |
-
echo '<br>If you are not redirected in a few seconds - <a href="options-general.php?page=maintenance_mode_options" target="_parent">click here</a>.';
|
97 |
-
}
|
98 |
-
} else {
|
99 |
-
echo 'Could not install accessiBe. You\'ll have to <a target="_parent" href="' . admin_url('plugin-install.php?s=accessibe&tab=search&type=term') .'">download and install manually</a>.';
|
100 |
-
}
|
101 |
-
|
102 |
-
echo '</div>';
|
103 |
-
} // install_accessibe
|
104 |
-
|
105 |
-
// disabled till further notice
|
106 |
-
function csmm_chat_available()
|
107 |
-
{
|
108 |
-
if (0 && date('Y-m-d') >= '2018-10-01' && date('Y-m-d') <= '2018-10-14') {
|
109 |
-
return true;
|
110 |
-
} else {
|
111 |
-
return false;
|
112 |
-
}
|
113 |
-
} // csmm_chat_available
|
114 |
-
|
115 |
// enqueue JS and CSS files
|
116 |
function csmm_admin_scripts()
|
117 |
{
|
@@ -126,8 +59,6 @@ function csmm_admin_scripts()
|
|
126 |
wp_register_script('csmm-admin-base', CSMM_URL . '/framework/admin/js/admin.js', 'jquery', csmm_get_plugin_version(), true);
|
127 |
|
128 |
$mm_js_vars = array(
|
129 |
-
'accessibe_install_url' => add_query_arg(array('action' => 'csmm_install_accessibe', 'rnd' => rand(0,100)), admin_url('admin.php')),
|
130 |
-
'accessibe_dialog_upsell_title' => '<img style="max-height: 26px; vertical-align: text-bottom;" alt="accessiBe" title="accessiBe" src="' . CSMM_URL . '/framework/admin/img/accessibe-logo.png' . '">',
|
131 |
'mm_url' => 'https://assets.comingsoonwp.com/free-backgrounds/',
|
132 |
'mm_base_url' => CSMM_URL,
|
133 |
'mm_notice_nonce' => wp_create_nonce('csmm_notice_nonce'),
|
@@ -272,8 +203,6 @@ function csmm_plugin_admin_init()
|
|
272 |
add_action('admin_enqueue_scripts', 'csmm_enqueue_pointers', 100, 1);
|
273 |
|
274 |
add_action('admin_action_csmm_activate_theme', 'csmm_activate_theme');
|
275 |
-
|
276 |
-
add_action('admin_action_csmm_install_accessibe', 'csmm_install_accessibe');
|
277 |
} // csmm_plugin_admin_init
|
278 |
|
279 |
add_action('init', 'csmm_plugin_admin_init');
|
45 |
}
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
// enqueue JS and CSS files
|
49 |
function csmm_admin_scripts()
|
50 |
{
|
59 |
wp_register_script('csmm-admin-base', CSMM_URL . '/framework/admin/js/admin.js', 'jquery', csmm_get_plugin_version(), true);
|
60 |
|
61 |
$mm_js_vars = array(
|
|
|
|
|
62 |
'mm_url' => 'https://assets.comingsoonwp.com/free-backgrounds/',
|
63 |
'mm_base_url' => CSMM_URL,
|
64 |
'mm_notice_nonce' => wp_create_nonce('csmm_notice_nonce'),
|
203 |
add_action('admin_enqueue_scripts', 'csmm_enqueue_pointers', 100, 1);
|
204 |
|
205 |
add_action('admin_action_csmm_activate_theme', 'csmm_activate_theme');
|
|
|
|
|
206 |
} // csmm_plugin_admin_init
|
207 |
|
208 |
add_action('init', 'csmm_plugin_admin_init');
|
framework/admin/js/admin.js
CHANGED
@@ -665,46 +665,5 @@ function getMMUploader($text, $target) {
|
|
665 |
if (jQuery(".mm-countdown").length) {
|
666 |
mm_countdown_interval = setInterval(mm_update_timer, 1000);
|
667 |
}
|
668 |
-
|
669 |
-
$('#accessibe-upsell-dialog').dialog({'dialogClass': 'wp-dialog accessibe-upsell-dialog',
|
670 |
-
'modal': 1,
|
671 |
-
'resizable': false,
|
672 |
-
'title': 'Make your site accessible in just a few clicks',
|
673 |
-
'zIndex': 9999,
|
674 |
-
'width': 550,
|
675 |
-
'height': 'auto',
|
676 |
-
'show': 'fade',
|
677 |
-
'hide': 'fade',
|
678 |
-
'open': function(event, ui) {
|
679 |
-
csmm_fix_dialog_close(event, ui);
|
680 |
-
$(this).siblings().find('span.ui-dialog-title').html(mm_js_vars.accessibe_dialog_upsell_title);
|
681 |
-
},
|
682 |
-
'close': function(event, ui) { },
|
683 |
-
'autoOpen': false,
|
684 |
-
'closeOnEscape': true
|
685 |
-
});
|
686 |
-
|
687 |
-
$(window).resize(function(e) {
|
688 |
-
$('#accessibe-upsell-dialog').dialog("option", "position", {my: "center", at: "center", of: window});
|
689 |
-
});
|
690 |
-
|
691 |
-
|
692 |
-
jQuery('#csmm-install-accessibe').on('click',function(e){
|
693 |
-
$('#accessibe-upsell-dialog').dialog('close');
|
694 |
-
jQuery('body').append('<div style="width:550px;height:450px; position:fixed;top:10%;left:50%;margin-left:-275px; color:#444; background-color: #fbfbfb;border:1px solid #DDD; border-radius:4px;box-shadow: 0px 0px 0px 4000px rgba(0, 0, 0, 0.85);z-index: 9999999;"><iframe src="' + mm_js_vars.accessibe_install_url + '" style="width:100%;height:100%;border:none;" /></div>');
|
695 |
-
jQuery('#wpwrap').css('pointer-events', 'none');
|
696 |
-
e.preventDefault();
|
697 |
-
return false;
|
698 |
-
});
|
699 |
-
|
700 |
-
$('body').on('click', '.open-accessibe-upsell, .accessibe-form .switchery', function(e) {
|
701 |
-
e.preventDefault();
|
702 |
-
|
703 |
-
$(this).blur();
|
704 |
-
|
705 |
-
$('#accessibe-upsell-dialog').dialog('open');
|
706 |
-
|
707 |
-
return false;
|
708 |
-
});
|
709 |
}); // on ready
|
710 |
})(jQuery);
|
665 |
if (jQuery(".mm-countdown").length) {
|
666 |
mm_countdown_interval = setInterval(mm_update_timer, 1000);
|
667 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
668 |
}); // on ready
|
669 |
})(jQuery);
|
framework/admin/settings.php
CHANGED
@@ -226,6 +226,7 @@ function csmm_admin_settings() {
|
|
226 |
if (is_callable(array('Swift_Performance_Cache', 'clear_all_cache'))) {
|
227 |
Swift_Performance_Cache::clear_all_cache();
|
228 |
}
|
|
|
229 |
}
|
230 |
|
231 |
|
226 |
if (is_callable(array('Swift_Performance_Cache', 'clear_all_cache'))) {
|
227 |
Swift_Performance_Cache::clear_all_cache();
|
228 |
}
|
229 |
+
do_action('cache_enabler_clear_complete_cache');
|
230 |
}
|
231 |
|
232 |
|
framework/admin/views/header.php
CHANGED
@@ -18,7 +18,7 @@ if (!defined('WPINC')) {
|
|
18 |
<img src="<?php echo CSMM_URL; ?>/framework/admin/img/mm-icon-dark.png" class="signals-logo">
|
19 |
<p>
|
20 |
<strong><?php _e( 'Minimal Coming Soon & Maintenance Mode', 'signals' ); ?></strong>
|
21 |
-
<span><?php _e( 'by', 'signals' ); ?> <a href="http://www.webfactoryltd.com
|
22 |
</p>
|
23 |
|
24 |
<?php
|
18 |
<img src="<?php echo CSMM_URL; ?>/framework/admin/img/mm-icon-dark.png" class="signals-logo">
|
19 |
<p>
|
20 |
<strong><?php _e( 'Minimal Coming Soon & Maintenance Mode', 'signals' ); ?></strong>
|
21 |
+
<span><?php _e( 'by', 'signals' ); ?> <a href="http://www.webfactoryltd.com/" target="_blank"><?php _e( 'WebFactory Ltd', 'signals' ); ?></a></span>
|
22 |
</p>
|
23 |
|
24 |
<?php
|
framework/admin/views/settings-basic.php
CHANGED
@@ -75,17 +75,13 @@ if (!defined('WPINC')) {
|
|
75 |
<p class="signals-form-help-block"><?php _e( 'Provide anti-spam text for the maintenance page.', 'signals' ); ?></p>
|
76 |
</div>
|
77 |
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
<?php if (!is_plugin_active('accessibe/accessiebe.php')) { ?>
|
82 |
-
<input id="signals_csmm_accessibe" type="checkbox" class="signals-form-ios open-accessibe-upsell" name="signals_csmm_accessibe" value="1">
|
83 |
|
84 |
-
<p class="signals-form-help-block"
|
85 |
-
<?php } else {
|
86 |
-
echo '<p>Open <a href="' . admin_url('options-general.php?page=accessiBe') . '">accessiBe settings</a> to configure your site\'s accessibility.</p>';
|
87 |
-
} ?>
|
88 |
</div>
|
|
|
89 |
</div>
|
90 |
|
91 |
<div class="signals-double-group signals-clearfix">
|
@@ -95,13 +91,6 @@ if (!defined('WPINC')) {
|
|
95 |
|
96 |
<p class="signals-form-help-block"><?php _e( 'Show a discrete link to the login form, or WP admin if you\'re logged in, in the lower right corner of the page.', 'signals' ); ?></p>
|
97 |
</div>
|
98 |
-
|
99 |
-
<div class="signals-form-group">
|
100 |
-
<label for="signals_csmm_custom_login" class="signals-strong"><?php _e( 'Custom login URL', 'signals' ); ?></label>
|
101 |
-
<input type="text" name="signals_csmm_custom_login" id="signals_csmm_custom_login" value="<?php echo esc_attr_e( $signals_csmm_options['custom_login_url'] ); ?>" placeholder="<?php esc_attr_e( 'Custom login URL', 'signals' ); ?>" class="signals-form-control">
|
102 |
-
|
103 |
-
<p class="signals-form-help-block"><?php _e( 'In case you\'re using a plugin that customizes the default WP login URL, enter that URL above.', 'signals' ); ?></p>
|
104 |
-
</div>
|
105 |
</div>
|
106 |
|
107 |
<div class="signals-form-group signals-clearfix">
|
75 |
<p class="signals-form-help-block"><?php _e( 'Provide anti-spam text for the maintenance page.', 'signals' ); ?></p>
|
76 |
</div>
|
77 |
|
78 |
+
<div class="signals-form-group">
|
79 |
+
<label for="signals_csmm_custom_login" class="signals-strong"><?php _e( 'Custom login URL', 'signals' ); ?></label>
|
80 |
+
<input type="text" name="signals_csmm_custom_login" id="signals_csmm_custom_login" value="<?php echo esc_attr_e( $signals_csmm_options['custom_login_url'] ); ?>" placeholder="<?php esc_attr_e( 'Custom login URL', 'signals' ); ?>" class="signals-form-control">
|
|
|
|
|
81 |
|
82 |
+
<p class="signals-form-help-block"><?php _e( 'In case you\'re using a plugin that customizes the default WP login URL, enter that URL above.', 'signals' ); ?></p>
|
|
|
|
|
|
|
83 |
</div>
|
84 |
+
|
85 |
</div>
|
86 |
|
87 |
<div class="signals-double-group signals-clearfix">
|
91 |
|
92 |
<p class="signals-form-help-block"><?php _e( 'Show a discrete link to the login form, or WP admin if you\'re logged in, in the lower right corner of the page.', 'signals' ); ?></p>
|
93 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
</div>
|
95 |
|
96 |
<div class="signals-form-group signals-clearfix">
|
framework/admin/views/settings-pro.php
CHANGED
@@ -13,14 +13,6 @@ if (!defined('WPINC')) {
|
|
13 |
refined access control options.</p>
|
14 |
|
15 |
<div class="signals-section-content">
|
16 |
-
<?php
|
17 |
-
if (csmm_chat_available()) {
|
18 |
-
?>
|
19 |
-
<p class="below-pricing">Our agents are online and available for any questions you have about the PRO version! <a title="Chat with our support agents" style="margin: 0 0 0 15px;" href="#" class="signals-btn csmm-open-chat"><span style="font-size: 19px;" class="dashicons dashicons-format-chat"></span> <strong>Chat with Live Support</strong></a></p>
|
20 |
-
<?php
|
21 |
-
}
|
22 |
-
?>
|
23 |
-
|
24 |
<table id="features-table">
|
25 |
<tr>
|
26 |
<td>
|
@@ -129,17 +121,17 @@ if (!defined('WPINC')) {
|
|
129 |
<td>Advanced SEO Preview & Anaylsis</td>
|
130 |
</tr>
|
131 |
<tr>
|
132 |
-
<td>2+ Million Hi-Resolution Images</td>
|
133 |
-
<td>2+ Million Hi-Resolution Images</td>
|
134 |
-
<td>2+ Million Hi-Resolution Images</td>
|
135 |
</tr>
|
136 |
<tr>
|
137 |
-
<td>
|
138 |
-
<td>
|
139 |
-
<td>
|
140 |
</tr>
|
141 |
<tr>
|
142 |
-
<td><b>
|
143 |
<td class="not-available">n/a</td>
|
144 |
<td class="not-available">n/a</td>
|
145 |
</tr>
|
@@ -221,16 +213,8 @@ if (!defined('WPINC')) {
|
|
221 |
</tbody>
|
222 |
</table>
|
223 |
|
224 |
-
<?php
|
225 |
-
if (csmm_chat_available()) {
|
226 |
-
?>
|
227 |
-
<p class="below-pricing">Our agents are online and available for any questions you have about the PRO version! <a title="Chat with our support agents" style="margin: 0 0 0 15px;" href="#" class="signals-btn csmm-open-chat"><span style="font-size: 19px;" class="dashicons dashicons-format-chat"></span> <strong>Chat with Live Support</strong></a></p>
|
228 |
-
<?php
|
229 |
-
}
|
230 |
-
?>
|
231 |
<hr>
|
232 |
|
233 |
-
|
234 |
<div class="signals-form-group" id="tab-pro">
|
235 |
<?php
|
236 |
global $csmm_lc;
|
13 |
refined access control options.</p>
|
14 |
|
15 |
<div class="signals-section-content">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
<table id="features-table">
|
17 |
<tr>
|
18 |
<td>
|
121 |
<td>Advanced SEO Preview & Anaylsis</td>
|
122 |
</tr>
|
123 |
<tr>
|
124 |
+
<td>2.5+ Million Hi-Resolution Images</td>
|
125 |
+
<td>2.5+ Million Hi-Resolution Images</td>
|
126 |
+
<td>2.5+ Million Hi-Resolution Images</td>
|
127 |
</tr>
|
128 |
<tr>
|
129 |
+
<td>85+ PRO Templates</td>
|
130 |
+
<td>85+ PRO Templates</td>
|
131 |
+
<td>85+ PRO Templates</td>
|
132 |
</tr>
|
133 |
<tr>
|
134 |
+
<td><b>85+ Extra Agency Templates = 170+ Templates</b></td>
|
135 |
<td class="not-available">n/a</td>
|
136 |
<td class="not-available">n/a</td>
|
137 |
</tr>
|
213 |
</tbody>
|
214 |
</table>
|
215 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
<hr>
|
217 |
|
|
|
218 |
<div class="signals-form-group" id="tab-pro">
|
219 |
<?php
|
220 |
global $csmm_lc;
|
framework/admin/views/settings-themes.php
CHANGED
@@ -2154,13 +2154,6 @@ array_unshift($themes, array('name' => 'Default', 'name_clean' => 'default', 'st
|
|
2154 |
|
2155 |
<p>Filter themes: <input type="search" name="csmm-search-templates" id="csmm-search-templates" placeholder="Enter keyword" value="" class="skip-save"></p>
|
2156 |
|
2157 |
-
<?php
|
2158 |
-
if (!is_plugin_active('accessibe/accessiebe.php')) {
|
2159 |
-
echo '<p style="padding: 10px; border: 2px solid #fe2929;"><b>Make your website accessible to users with disabilities</b> - Having an accessible website is a must in 2021. It will not only save you from hefty fines but grow your audience too. Make your site accessible from day one! <a href="#" class="open-accessibe-upsell">Install the accessiBe plugin</a> from the wp.org repo, connect to their AI service and make your site more user-friendly.';
|
2160 |
-
echo '</p>';
|
2161 |
-
}
|
2162 |
-
?>
|
2163 |
-
|
2164 |
<div id="csmm-themes-wrapper" class="signals-section-content">
|
2165 |
<?php
|
2166 |
foreach ($themes as $theme) {
|
2154 |
|
2155 |
<p>Filter themes: <input type="search" name="csmm-search-templates" id="csmm-search-templates" placeholder="Enter keyword" value="" class="skip-save"></p>
|
2156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2157 |
<div id="csmm-themes-wrapper" class="signals-section-content">
|
2158 |
<?php
|
2159 |
foreach ($themes as $theme) {
|
framework/admin/views/settings.php
CHANGED
@@ -120,13 +120,6 @@ require_once 'header.php';
|
|
120 |
<button type="submit" name="signals_csmm_submit" class="signals-btn signals-btn-red"><strong><?php _e('Save Changes', 'signals'); ?></strong></button>
|
121 |
<a id="csmm-preview" style="margin: 0 0 0 15px;" href="<?php echo home_url(); ?>/?preview_coming_soon" class="signals-btn" target="_blank"><strong><?php _e('Preview Maintenance Page', 'signals'); ?></strong></a>
|
122 |
<a title="Check out 70+ pixel perfect themes and other great PRO features" style="margin: 0 0 0 15px;" href="#pro" class="signals-btn csmm-change-tab" target="_blank"><span style="font-size: 19px;" class="dashicons dashicons-star-filled"></span> <strong><?php _e('Go PRO', 'signals'); ?></strong></a>
|
123 |
-
<?php
|
124 |
-
if (csmm_chat_available()) {
|
125 |
-
?>
|
126 |
-
<a title="Chat with our support agents" style="margin: 0 0 0 15px;" href="#" class="signals-btn csmm-open-chat"><span style="font-size: 19px;" class="dashicons dashicons-format-chat"></span> <strong>Live Chat Support</strong></a>
|
127 |
-
<?php
|
128 |
-
}
|
129 |
-
?>
|
130 |
</p>
|
131 |
<p class="footer-buttons-right">
|
132 |
<a href="<?php echo csmm_generate_web_link('thank-you-for-creating'); ?>" target="_blank">Minimal Coming Soon & Maintenance Mode</a> v<?php echo csmm_get_plugin_version(); ?>. Please <a target="_blank" href="https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode/reviews/?filter=5#new-post" title="Let others know how you like the plugin">rate the plugin ★★★★★</a> Thank you!
|
@@ -137,21 +130,4 @@ require_once 'header.php';
|
|
137 |
</form><!-- form.signals-admin-form -->
|
138 |
|
139 |
<?php
|
140 |
-
// accessibe install dialog
|
141 |
-
echo '<div id="accessibe-upsell-dialog" style="display: none;" title="accessiBe"><span class="ui-helper-hidden-accessible"><input type="text"/></span>';
|
142 |
-
echo '<div style="padding: 20px; font-size: 15px;">';
|
143 |
-
echo '<ul class="normal-list">';
|
144 |
-
echo '<li>Make your site user-friendly for people with disabilities</li>';
|
145 |
-
echo '<li>Fully automated WordPress accessibility service</li>';
|
146 |
-
echo '<li>Protect your site from lawsuits and increase the audience</li>';
|
147 |
-
echo '<li>The free accessiBe plugin sets up in 5 minutes. No coding required</li>';
|
148 |
-
echo '<li>Compatible with all WordPress themes and plugins</li>';
|
149 |
-
echo '<li>AI-powered</li>';
|
150 |
-
echo '<li>7-day free trial available</li>';
|
151 |
-
echo '</ul>';
|
152 |
-
echo '<p class="upsell-footer"><a class="button button-primary" id="csmm-install-accessibe">Install & activate accessiBe to make your website more user-friendly</a></p>';
|
153 |
-
echo '</div>';
|
154 |
-
echo '</div>';
|
155 |
-
// accessibe install dialog
|
156 |
-
|
157 |
require_once 'footer.php';
|
120 |
<button type="submit" name="signals_csmm_submit" class="signals-btn signals-btn-red"><strong><?php _e('Save Changes', 'signals'); ?></strong></button>
|
121 |
<a id="csmm-preview" style="margin: 0 0 0 15px;" href="<?php echo home_url(); ?>/?preview_coming_soon" class="signals-btn" target="_blank"><strong><?php _e('Preview Maintenance Page', 'signals'); ?></strong></a>
|
122 |
<a title="Check out 70+ pixel perfect themes and other great PRO features" style="margin: 0 0 0 15px;" href="#pro" class="signals-btn csmm-change-tab" target="_blank"><span style="font-size: 19px;" class="dashicons dashicons-star-filled"></span> <strong><?php _e('Go PRO', 'signals'); ?></strong></a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
</p>
|
124 |
<p class="footer-buttons-right">
|
125 |
<a href="<?php echo csmm_generate_web_link('thank-you-for-creating'); ?>" target="_blank">Minimal Coming Soon & Maintenance Mode</a> v<?php echo csmm_get_plugin_version(); ?>. Please <a target="_blank" href="https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode/reviews/?filter=5#new-post" title="Let others know how you like the plugin">rate the plugin ★★★★★</a> Thank you!
|
130 |
</form><!-- form.signals-admin-form -->
|
131 |
|
132 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
require_once 'footer.php';
|
framework/init.php
CHANGED
@@ -142,7 +142,12 @@ add_action('init', array('CSMM', 'init'));
|
|
142 |
$page = '/';
|
143 |
}
|
144 |
|
145 |
-
|
|
|
|
|
|
|
|
|
|
|
146 |
|
147 |
if (!empty($anchor)) {
|
148 |
$anchor = '#' . trim($anchor, '#');
|
142 |
$page = '/';
|
143 |
}
|
144 |
|
145 |
+
if ($placement) {
|
146 |
+
$placement = trim($placement, '-');
|
147 |
+
$placement = '-' . $placement;
|
148 |
+
}
|
149 |
+
|
150 |
+
$parts = array_merge(array('ref' => 'csmm-free' . $placement), $params);
|
151 |
|
152 |
if (!empty($anchor)) {
|
153 |
$anchor = '#' . trim($anchor, '#');
|
framework/public/views/html.php
CHANGED
@@ -37,28 +37,6 @@ if (!defined('WPINC')) {
|
|
37 |
<?php require_once CSMM_PATH . '/framework/public/include/styles.php'; ?>
|
38 |
|
39 |
<?php
|
40 |
-
|
41 |
-
|
42 |
-
if (csmm_is_mailoptin_active() && $options['mailoptin_campaign'] > 0 && isset($options['mail_system_to_use']) && $options['mail_system_to_use'] == 'mo') {
|
43 |
-
echo '<script src="' . includes_url('/js/jquery/jquery.js') . '"></script>';
|
44 |
-
echo '<script type="text/javascript">
|
45 |
-
var mailoptin_globals = {
|
46 |
-
"admin_url":"' . admin_url() . '",
|
47 |
-
"public_js":"' . MAILOPTIN_ASSETS_URL . 'js/src",
|
48 |
-
"nonce":"' . wp_create_nonce('mailoptin-admin-nonce') . '",
|
49 |
-
"mailoptin_ajaxurl":"' . MailOptin\Core\AjaxHandler::get_endpoint() . '",
|
50 |
-
"ajaxurl":"' . admin_url('admin-ajax.php') . '",
|
51 |
-
"split_test_start_label":"Start Test",
|
52 |
-
"split_test_pause_label":"Pause Test",
|
53 |
-
"is_customize_preview":"false",
|
54 |
-
"disable_impression_tracking":"false",
|
55 |
-
"chosen_search_placeholder":"Type to search",
|
56 |
-
"js_confirm_text":"Are you sure you want to do this?",
|
57 |
-
"js_clear_stat_text":"Are you sure you want to do this? Clicking OK will delete all your optin analytics records."};
|
58 |
-
</script>';
|
59 |
-
echo '<script src="' . MAILOPTIN_ASSETS_URL . '/js/mailoptin.min.js"></script>';
|
60 |
-
}
|
61 |
-
|
62 |
// analytics
|
63 |
if (csmm_convert_ga($options['analytics'])) {
|
64 |
echo "<script>
|
@@ -172,10 +150,6 @@ if (!defined('WPINC')) {
|
|
172 |
$signals_arrange['form'] .= '</div>';
|
173 |
} // mailchimp_api && mailchimp_list
|
174 |
|
175 |
-
if (csmm_is_mailoptin_active() && $options['mailoptin_campaign'] > 0 && isset($options['mail_system_to_use']) && $options['mail_system_to_use'] == 'mo') {
|
176 |
-
$signals_arrange['form'] = MailOptin\Core\Admin\Customizer\OptinForm\OptinFormFactory::build($options['mailoptin_campaign']);
|
177 |
-
}
|
178 |
-
|
179 |
// Custom HTML
|
180 |
$signals_arrange['html'] = stripslashes($options['custom_html']);
|
181 |
|
@@ -209,10 +183,6 @@ if (!defined('WPINC')) {
|
|
209 |
}
|
210 |
echo '</div>';
|
211 |
}
|
212 |
-
|
213 |
-
if (is_plugin_active('accessibe/accessiebe.php') && is_callable(array('Accessibe', 'render_js_in_footer'))) {
|
214 |
-
Accessibe::render_js_in_footer();
|
215 |
-
}
|
216 |
?>
|
217 |
</body>
|
218 |
|
37 |
<?php require_once CSMM_PATH . '/framework/public/include/styles.php'; ?>
|
38 |
|
39 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
// analytics
|
41 |
if (csmm_convert_ga($options['analytics'])) {
|
42 |
echo "<script>
|
150 |
$signals_arrange['form'] .= '</div>';
|
151 |
} // mailchimp_api && mailchimp_list
|
152 |
|
|
|
|
|
|
|
|
|
153 |
// Custom HTML
|
154 |
$signals_arrange['html'] = stripslashes($options['custom_html']);
|
155 |
|
183 |
}
|
184 |
echo '</div>';
|
185 |
}
|
|
|
|
|
|
|
|
|
186 |
?>
|
187 |
</body>
|
188 |
|
minimal-coming-soon-maintenance-mode.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Minimal Coming Soon & Maintenance Mode
|
4 |
* Plugin URI: https://comingsoonwp.com/
|
5 |
* Description: Simply awesome coming soon & maintenance mode plugin. Super-simple to use. MailChimp support built-in.
|
6 |
-
* Version: 2.
|
7 |
* Requires at least: 4.0
|
8 |
* Requires PHP: 5.2
|
9 |
* Tested up to: 5.6
|
@@ -220,9 +220,6 @@ if (is_admin()) {
|
|
220 |
|
221 |
require CSMM_PATH . 'framework/public/init.php';
|
222 |
|
223 |
-
// MailOptin
|
224 |
-
require_once CSMM_PATH . 'framework/admin/include/mailoptin.php';
|
225 |
-
|
226 |
function csmm_get_plugin_version() {
|
227 |
$plugin_data = get_file_data(__FILE__, array('version' => 'Version'), 'plugin');
|
228 |
|
3 |
* Plugin Name: Minimal Coming Soon & Maintenance Mode
|
4 |
* Plugin URI: https://comingsoonwp.com/
|
5 |
* Description: Simply awesome coming soon & maintenance mode plugin. Super-simple to use. MailChimp support built-in.
|
6 |
+
* Version: 2.27
|
7 |
* Requires at least: 4.0
|
8 |
* Requires PHP: 5.2
|
9 |
* Tested up to: 5.6
|
220 |
|
221 |
require CSMM_PATH . 'framework/public/init.php';
|
222 |
|
|
|
|
|
|
|
223 |
function csmm_get_plugin_version() {
|
224 |
$plugin_data = get_file_data(__FILE__, array('version' => 'Version'), 'plugin');
|
225 |
|
readme.txt
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
=== Minimal Coming Soon & Maintenance Mode – Coming Soon Page ===
|
2 |
Contributors: WebFactory
|
3 |
-
Tags: coming soon, coming soon page, maintenance mode, maintenance mode page, coming soon mode, under construction, maintenance mode page, landing page,
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.2
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
-
|
12 |
|
13 |
== Description ==
|
14 |
The <a href="https://comingsoonwp.com/">Minimal Coming Soon & Maintenance Mode</a> plugin allows you to **quickly & easily** set up a **Coming Soon Page, Maintenance Mode Page**, Landing Page or Launch Page for your website. It's best to start any new site with a Coming Soon page and collect leads from day one!
|
@@ -29,7 +29,7 @@ You can collect leads and subscribers on your Coming Soon Page via the Mailchimp
|
|
29 |
* Option to preview the Coming Soon or maintenance page before activation
|
30 |
* <a href="https://comingsoonwp.com/">SEO preview and analysis tools</a> are available in the PRO version to make sure your coming soon site ranks as #1 from day zero
|
31 |
* Rearrange position of the page elements to your liking - simple drag&drop
|
32 |
-
* W3 Total Cache, WP Super Cache, Endurance Page Cache, SiteGround SuperCacher, WP Fastest Cache and Swift Performance Cache support
|
33 |
* Easily add Custom CSS and HTML
|
34 |
* Collect Emails with MailChimp on your coming soon page - full GDPR compliant API support built-in for free
|
35 |
* Plugin is GDPR compatible as it sets no cookies and displays an optional warning below the email field which users have to accept if they want to subscribe to the newsletter
|
@@ -82,6 +82,11 @@ Yes and no. When activated it enables itself across the entire WP-MU network.
|
|
82 |
|
83 |
== Changelog ==
|
84 |
|
|
|
|
|
|
|
|
|
|
|
85 |
= 2.26 =
|
86 |
* 2021-01-31
|
87 |
* added fly out menu
|
@@ -91,7 +96,6 @@ Yes and no. When activated it enables itself across the entire WP-MU network.
|
|
91 |
* updated Mailchimp API
|
92 |
* added new coming soon page background images
|
93 |
* minor fixes
|
94 |
-
* integration with accessiBe
|
95 |
|
96 |
= 2.22 =
|
97 |
* 2020-12-08
|
1 |
=== Minimal Coming Soon & Maintenance Mode – Coming Soon Page ===
|
2 |
Contributors: WebFactory
|
3 |
+
Tags: coming soon, coming soon page, maintenance mode, maintenance mode page, coming soon mode, under construction, maintenance mode page, landing page, subscribe form, maintenance, coming soon builder, coming soon status
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.2
|
6 |
+
Tested up to: 5.7
|
7 |
+
Stable tag: 2.27
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
+
Minimal Coming Soon & Maintenance Mode page! Create awesome Coming Soon Pages with a MailChimp form.
|
12 |
|
13 |
== Description ==
|
14 |
The <a href="https://comingsoonwp.com/">Minimal Coming Soon & Maintenance Mode</a> plugin allows you to **quickly & easily** set up a **Coming Soon Page, Maintenance Mode Page**, Landing Page or Launch Page for your website. It's best to start any new site with a Coming Soon page and collect leads from day one!
|
29 |
* Option to preview the Coming Soon or maintenance page before activation
|
30 |
* <a href="https://comingsoonwp.com/">SEO preview and analysis tools</a> are available in the PRO version to make sure your coming soon site ranks as #1 from day zero
|
31 |
* Rearrange position of the page elements to your liking - simple drag&drop
|
32 |
+
* W3 Total Cache, WP Super Cache, Endurance Page Cache, SiteGround SuperCacher, WP Fastest Cache, Cache Enabler, and Swift Performance Cache support
|
33 |
* Easily add Custom CSS and HTML
|
34 |
* Collect Emails with MailChimp on your coming soon page - full GDPR compliant API support built-in for free
|
35 |
* Plugin is GDPR compatible as it sets no cookies and displays an optional warning below the email field which users have to accept if they want to subscribe to the newsletter
|
82 |
|
83 |
== Changelog ==
|
84 |
|
85 |
+
= 2.27 =
|
86 |
+
* 2021-02-21
|
87 |
+
* added support for Cache Enabler plugin
|
88 |
+
* code cleanup
|
89 |
+
|
90 |
= 2.26 =
|
91 |
* 2021-01-31
|
92 |
* added fly out menu
|
96 |
* updated Mailchimp API
|
97 |
* added new coming soon page background images
|
98 |
* minor fixes
|
|
|
99 |
|
100 |
= 2.22 =
|
101 |
* 2020-12-08
|
wf-flyout/config.php
CHANGED
@@ -6,15 +6,15 @@ $config['icon_border'] = '1px solid #00000099';
|
|
6 |
$config['icon_right'] = '25px';
|
7 |
$config['icon_bottom'] = '75px';
|
8 |
$config['icon_image'] = 'csmm.png';
|
9 |
-
$config['icon_padding'] = '
|
10 |
$config['icon_size'] = '55px';
|
11 |
$config['menu_accent_color'] = '#fe2929';
|
12 |
-
$config['custom_css'] = '#wf-flyout .
|
13 |
|
14 |
$config['menu_items'] = array(
|
15 |
array('href' => 'https://comingsoonwp.com/?ref=wff-csmm&coupon=welcome', 'target' => '_blank', 'label' => 'Get Coming Soon PRO with 25% off', 'icon' => 'csmm.png', 'class' => 'csmm-icon accent'),
|
16 |
-
array('href' => 'https://
|
17 |
-
array('href' => '
|
18 |
array('href' => 'https://wpsticky.com/?ref=wff-csmm', 'target' => '_blank', 'label' => 'Make a menu sticky with WP Sticky', 'icon' => 'dashicons-admin-post'),
|
19 |
array('href' => 'https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode/reviews/?filter=5#new-post', 'target' => '_blank', 'label' => 'Rate the Plugin', 'icon' => 'dashicons-thumbs-up'),
|
20 |
array('href' => 'https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode/#new-post', 'target' => '_blank', 'label' => 'Get Support', 'icon' => 'dashicons-sos'),
|
6 |
$config['icon_right'] = '25px';
|
7 |
$config['icon_bottom'] = '75px';
|
8 |
$config['icon_image'] = 'csmm.png';
|
9 |
+
$config['icon_padding'] = '6px';
|
10 |
$config['icon_size'] = '55px';
|
11 |
$config['menu_accent_color'] = '#fe2929';
|
12 |
+
$config['custom_css'] = '#wf-flyout .csmm-icon .wff-icon img { max-width: 70%; } #wf-flyout .csmm-icon .wff-icon { line-height: 57px; }';
|
13 |
|
14 |
$config['menu_items'] = array(
|
15 |
array('href' => 'https://comingsoonwp.com/?ref=wff-csmm&coupon=welcome', 'target' => '_blank', 'label' => 'Get Coming Soon PRO with 25% off', 'icon' => 'csmm.png', 'class' => 'csmm-icon accent'),
|
16 |
+
array('href' => 'https://wp301redirects.com/?ref=wff-csmm&coupon=50off', 'label' => 'Fix 2 most common SEO issues on WordPress', 'icon' => '301-logo.png', 'class' => 'wp301-icon'),
|
17 |
+
array('href' => 'https://wpreset.com/?ref=wff-csmm&coupon=50off', 'target' => '_blank', 'label' => 'Get WP Reset PRO with 50% off', 'icon' => 'wp-reset.png'),
|
18 |
array('href' => 'https://wpsticky.com/?ref=wff-csmm', 'target' => '_blank', 'label' => 'Make a menu sticky with WP Sticky', 'icon' => 'dashicons-admin-post'),
|
19 |
array('href' => 'https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode/reviews/?filter=5#new-post', 'target' => '_blank', 'label' => 'Rate the Plugin', 'icon' => 'dashicons-thumbs-up'),
|
20 |
array('href' => 'https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode/#new-post', 'target' => '_blank', 'label' => 'Get Support', 'icon' => 'dashicons-sos'),
|
wf-flyout/icons/301-logo.png
ADDED
Binary file
|
wf-flyout/wf-flyout.php
CHANGED
@@ -124,7 +124,7 @@ if (false == class_exists('wf_flyout')) {
|
|
124 |
|
125 |
$out = '';
|
126 |
$icons_url = plugin_dir_url($this->plugin_file) . 'wf-flyout/icons/';
|
127 |
-
$default_link_item = array('class' => '', 'href' => '#', 'target' => '_blank', 'label' => '', 'icon' => '');
|
128 |
|
129 |
$out .= '<div id="wff-overlay"></div>';
|
130 |
|
@@ -148,7 +148,7 @@ if (false == class_exists('wf_flyout')) {
|
|
148 |
$item['class'] = trim($item['class']);
|
149 |
}
|
150 |
|
151 |
-
$out .= '<a href="' . $item['href'] . '" class="wff-menu-item wff-menu-item-' . $i . ' ' . $item['class'] . '" target="_blank">';
|
152 |
$out .= '<span class="wff-label visible">' . $item['label'] . '</span>';
|
153 |
if (substr($item['icon'], 0, 9) == 'dashicons') {
|
154 |
$out .= '<span class="dashicons ' . $item['icon'] . '"></span>';
|
124 |
|
125 |
$out = '';
|
126 |
$icons_url = plugin_dir_url($this->plugin_file) . 'wf-flyout/icons/';
|
127 |
+
$default_link_item = array('class' => '', 'href' => '#', 'target' => '_blank', 'label' => '', 'icon' => '', 'data' => '');
|
128 |
|
129 |
$out .= '<div id="wff-overlay"></div>';
|
130 |
|
148 |
$item['class'] = trim($item['class']);
|
149 |
}
|
150 |
|
151 |
+
$out .= '<a ' . $item['data'] . ' href="' . $item['href'] . '" class="wff-menu-item wff-menu-item-' . $i . ' ' . $item['class'] . '" target="_blank">';
|
152 |
$out .= '<span class="wff-label visible">' . $item['label'] . '</span>';
|
153 |
if (substr($item['icon'], 0, 9) == 'dashicons') {
|
154 |
$out .= '<span class="dashicons ' . $item['icon'] . '"></span>';
|