Version Description
- Changed: Show notification to install Backup WD plugin only on plugin pages.
Download this release
Release Info
Developer | webdorado |
Plugin | Contact Form by WD – responsive drag & drop contact form builder tool |
Version | 1.11.13 |
Comparing to | |
See all releases |
Code changes from version 1.11.12 to 1.11.13
- contact-form-maker.php +84 -54
- css/wd_bp_install.css +0 -41
- js/wd_bp_install.js +0 -12
- readme.txt +4 -1
contact-form-maker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Contact Form Maker
|
4 |
* Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: WordPress Contact Form Maker is a simple contact form builder, which allows the user with almost no knowledge of programming to create and edit different type of contact forms.
|
6 |
-
* Version: 1.11.
|
7 |
* Author: WebDorado Form Builder Team
|
8 |
* Author URI: https://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -11,7 +11,10 @@
|
|
11 |
define('WD_FMC_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
|
12 |
define('WD_FMC_URL', plugins_url(plugin_basename(dirname(__FILE__))));
|
13 |
define('WD_FMC_MAIN_FILE', plugin_basename(__FILE__));
|
14 |
-
define('WD_FMC_VERSION', '1.11.
|
|
|
|
|
|
|
15 |
// Plugin menu.
|
16 |
function form_maker_options_panel_fmc() {
|
17 |
if (!get_option('form_maker_pro_active', FALSE)) {
|
@@ -334,10 +337,6 @@ function form_maker_activate_fmc() {
|
|
334 |
add_option('fmc_settings', array('public_key' => $public_key, 'private_key' => $private_key, 'csv_delimiter' => ',', 'map_key' => ''));
|
335 |
}
|
336 |
}
|
337 |
-
// Check if notice or popup already exist for other plugins
|
338 |
-
if( get_option('wds_bk_notice_status') === false ) {
|
339 |
-
add_option('wds_bk_notice_status', '');
|
340 |
-
}
|
341 |
}
|
342 |
register_activation_hook(__FILE__, 'form_maker_activate_fmc');
|
343 |
|
@@ -796,58 +795,89 @@ function cfm_overview() {
|
|
796 |
}
|
797 |
add_action('init', 'cfm_overview');
|
798 |
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
|
|
805 |
}
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
*/
|
811 |
-
function wd_bp_install_notice() {
|
812 |
-
global $wd_bp_plugin_url;
|
813 |
-
$prefix = 'cfm';
|
814 |
-
$meta_value = get_option('wds_bk_notice_status');
|
815 |
-
if ($meta_value === '' || $meta_value === false) {
|
816 |
-
ob_start();
|
817 |
-
?>
|
818 |
-
<div class="notice notice-info" id="wd_bp_notice_cont">
|
819 |
-
<p>
|
820 |
-
<img id="wd_bp_logo_notice" src="<?php echo $wd_bp_plugin_url . '/images/logo.png'; ?>">
|
821 |
-
<?php _e("Hey! Install brand new FREE", $prefix) ?>
|
822 |
-
<a href="https://wordpress.org/plugins/backup-wd/" title="<?php _e("More details", $prefix) ?>"
|
823 |
-
target="_blank"><?php _e("Backup WD", $prefix) ?></a>
|
824 |
-
<?php _e("plugin to keep your forms and website safe.", $prefix) ?>
|
825 |
-
<a class="button button-primary"
|
826 |
-
href="<?php echo esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=backup-wd'), 'install-plugin_backup-wd')); ?>">
|
827 |
-
<span onclick="wd_bp_notice_install()"><?php _e("Install", $prefix); ?></span>
|
828 |
-
</a>
|
829 |
-
</p>
|
830 |
-
<button type="button" class="wd_bp_notice_dissmiss notice-dismiss"><span class="screen-reader-text"></span>
|
831 |
-
</button>
|
832 |
-
</div>
|
833 |
-
<script>wd_bp_url = '<?php echo add_query_arg(array('action' => 'wd_bp_dismiss',), admin_url('admin-ajax.php')); ?>'</script>
|
834 |
-
<?php
|
835 |
-
echo ob_get_clean();
|
836 |
-
}
|
837 |
}
|
838 |
|
839 |
-
|
840 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
841 |
}
|
|
|
842 |
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
function
|
850 |
-
update_option('
|
851 |
}
|
852 |
-
add_action('wp_ajax_wd_bp_dismiss', '
|
853 |
}
|
3 |
* Plugin Name: Contact Form Maker
|
4 |
* Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: WordPress Contact Form Maker is a simple contact form builder, which allows the user with almost no knowledge of programming to create and edit different type of contact forms.
|
6 |
+
* Version: 1.11.13
|
7 |
* Author: WebDorado Form Builder Team
|
8 |
* Author URI: https://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
define('WD_FMC_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
|
12 |
define('WD_FMC_URL', plugins_url(plugin_basename(dirname(__FILE__))));
|
13 |
define('WD_FMC_MAIN_FILE', plugin_basename(__FILE__));
|
14 |
+
define('WD_FMC_VERSION', '1.11.13');
|
15 |
+
define('WD_FMC_PREFIX', 'fmc');
|
16 |
+
define('WD_FMC_NICENAME', __( 'Contact Form Maker', WD_FMC_PREFIX ));
|
17 |
+
|
18 |
// Plugin menu.
|
19 |
function form_maker_options_panel_fmc() {
|
20 |
if (!get_option('form_maker_pro_active', FALSE)) {
|
337 |
add_option('fmc_settings', array('public_key' => $public_key, 'private_key' => $private_key, 'csv_delimiter' => ',', 'map_key' => ''));
|
338 |
}
|
339 |
}
|
|
|
|
|
|
|
|
|
340 |
}
|
341 |
register_activation_hook(__FILE__, 'form_maker_activate_fmc');
|
342 |
|
795 |
}
|
796 |
add_action('init', 'cfm_overview');
|
797 |
|
798 |
+
/**
|
799 |
+
* Show notice to install backup plugin
|
800 |
+
*/
|
801 |
+
function fmc_bp_install_notice() {
|
802 |
+
// Remove old notice.
|
803 |
+
if ( get_option('wds_bk_notice_status') !== FALSE ) {
|
804 |
+
update_option('wds_bk_notice_status', '1', 'no');
|
805 |
}
|
806 |
+
|
807 |
+
// Show notice only on plugin pages.
|
808 |
+
if ( !isset($_GET['page']) || strpos(esc_html($_GET['page']), '_fmc') === FALSE ) {
|
809 |
+
return '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
810 |
}
|
811 |
|
812 |
+
$meta_value = get_option('wd_bk_notice_status');
|
813 |
+
if ( $meta_value === '' || $meta_value === FALSE ) {
|
814 |
+
ob_start();
|
815 |
+
$prefix = WD_FMC_PREFIX;
|
816 |
+
$nicename = WD_FMC_NICENAME;
|
817 |
+
$url = WD_FMC_URL;
|
818 |
+
$dismiss_url = add_query_arg(array( 'action' => 'wd_bp_dismiss' ), admin_url('admin-ajax.php'));
|
819 |
+
$install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=backup-wd'), 'install-plugin_backup-wd'));
|
820 |
+
?>
|
821 |
+
<div class="notice notice-info" id="wd_bp_notice_cont">
|
822 |
+
<p>
|
823 |
+
<img id="wd_bp_logo_notice" src="<?php echo $url . '/images/logo.png'; ?>" />
|
824 |
+
<?php echo sprintf(__("%s advises: Install brand new FREE %s plugin to keep your forms and website safe.", $prefix), $nicename, '<a href="https://wordpress.org/plugins/backup-wd/" title="' . __("More details", $prefix) . '" target="_blank">' . __("Backup WD", $prefix) . '</a>'); ?>
|
825 |
+
<a class="button button-primary" href="<?php echo $install_url; ?>">
|
826 |
+
<span onclick="jQuery.post('<?php echo $dismiss_url; ?>');"><?php _e("Install", $prefix); ?></span>
|
827 |
+
</a>
|
828 |
+
</p>
|
829 |
+
<button type="button" class="wd_bp_notice_dissmiss notice-dismiss" onclick="jQuery('#wd_bp_notice_cont').hide(); jQuery.post('<?php echo $dismiss_url; ?>');"><span class="screen-reader-text"></span></button>
|
830 |
+
</div>
|
831 |
+
<style>
|
832 |
+
@media only screen and (max-width: 500px) {
|
833 |
+
body #wd_backup_logo {
|
834 |
+
max-width: 100%;
|
835 |
+
}
|
836 |
+
body #wd_bp_notice_cont p {
|
837 |
+
padding-right: 25px !important;
|
838 |
+
}
|
839 |
+
}
|
840 |
+
#wd_bp_logo_notice {
|
841 |
+
width: 40px;
|
842 |
+
float: left;
|
843 |
+
margin-right: 10px;
|
844 |
+
}
|
845 |
+
#wd_bp_notice_cont {
|
846 |
+
position: relative;
|
847 |
+
}
|
848 |
+
#wd_bp_notice_cont a {
|
849 |
+
margin: 0 5px;
|
850 |
+
}
|
851 |
+
#wd_bp_notice_cont .dashicons-dismiss:before {
|
852 |
+
content: "\f153";
|
853 |
+
background: 0 0;
|
854 |
+
color: #72777c;
|
855 |
+
display: block;
|
856 |
+
font: 400 16px/20px dashicons;
|
857 |
+
speak: none;
|
858 |
+
height: 20px;
|
859 |
+
text-align: center;
|
860 |
+
width: 20px;
|
861 |
+
-webkit-font-smoothing: antialiased;
|
862 |
+
-moz-osx-font-smoothing: grayscale;
|
863 |
+
}
|
864 |
+
.wd_bp_notice_dissmiss {
|
865 |
+
margin-top: 5px;
|
866 |
+
}
|
867 |
+
</style>
|
868 |
+
<?php
|
869 |
+
echo ob_get_clean();
|
870 |
}
|
871 |
+
}
|
872 |
|
873 |
+
if ( !is_dir(plugin_dir_path(__DIR__) . 'backup-wd') ) {
|
874 |
+
add_action('admin_notices', 'fmc_bp_install_notice');
|
875 |
+
}
|
876 |
+
|
877 |
+
if ( !function_exists('wd_bps_install_notice_status') ) {
|
878 |
+
// Add usermeta to db.
|
879 |
+
function wd_bps_install_notice_status() {
|
880 |
+
update_option('wd_bk_notice_status', '1', 'no');
|
881 |
}
|
882 |
+
add_action('wp_ajax_wd_bp_dismiss', 'wd_bps_install_notice_status');
|
883 |
}
|
css/wd_bp_install.css
DELETED
@@ -1,41 +0,0 @@
|
|
1 |
-
@media only screen and (max-width: 500px) {
|
2 |
-
body #wd_backup_logo {
|
3 |
-
max-width: 100%;
|
4 |
-
}
|
5 |
-
body #wd_bp_notice_cont p {
|
6 |
-
padding-right: 25px !important;
|
7 |
-
}
|
8 |
-
}
|
9 |
-
|
10 |
-
#wd_bp_logo_notice {
|
11 |
-
width: 40px;
|
12 |
-
float: left;
|
13 |
-
margin-right: 10px;
|
14 |
-
}
|
15 |
-
|
16 |
-
#wd_bp_notice_cont {
|
17 |
-
position: relative;
|
18 |
-
}
|
19 |
-
|
20 |
-
#wd_bp_notice_cont a {
|
21 |
-
margin: 0 5px;
|
22 |
-
}
|
23 |
-
|
24 |
-
#wd_bp_notice_cont .dashicons-dismiss:before {
|
25 |
-
content: "\f153";
|
26 |
-
background: 0 0;
|
27 |
-
color: #72777c;
|
28 |
-
display: block;
|
29 |
-
font: 400 16px/20px dashicons;
|
30 |
-
speak: none;
|
31 |
-
height: 20px;
|
32 |
-
text-align: center;
|
33 |
-
width: 20px;
|
34 |
-
-webkit-font-smoothing: antialiased;
|
35 |
-
-moz-osx-font-smoothing: grayscale;
|
36 |
-
}
|
37 |
-
|
38 |
-
.wd_bp_notice_dissmiss {
|
39 |
-
margin-top: 5px;
|
40 |
-
}
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/wd_bp_install.js
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function () {
|
2 |
-
/*Ajax hide notice forever */
|
3 |
-
jQuery(".wd_bp_notice_dissmiss").on("click", function () {
|
4 |
-
jQuery("#wd_bp_notice_cont").hide();
|
5 |
-
jQuery.post(wd_bp_url);
|
6 |
-
})
|
7 |
-
});
|
8 |
-
|
9 |
-
// Set option status 1 - never show again during install btn click in notice
|
10 |
-
function wd_bp_notice_install() {
|
11 |
-
jQuery.post(wd_bp_url);
|
12 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-contact-form-maker-plugin.
|
|
4 |
Tags: contact, contact form, email, forms, contact forms, custom form, feedback, form builder, form manager, form maker, forms builder, form builder wordpress
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 1.11.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -158,6 +158,9 @@ If you want to update the plugin while preserving your existing contact forms, y
|
|
158 |
|
159 |
== Changelog ==
|
160 |
|
|
|
|
|
|
|
161 |
= 1.11.12 =
|
162 |
* Added: Show notice to install Backup WD plugin.
|
163 |
|
4 |
Tags: contact, contact form, email, forms, contact forms, custom form, feedback, form builder, form manager, form maker, forms builder, form builder wordpress
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 1.11.13
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
158 |
|
159 |
== Changelog ==
|
160 |
|
161 |
+
= 1.11.13 =
|
162 |
+
* Changed: Show notification to install Backup WD plugin only on plugin pages.
|
163 |
+
|
164 |
= 1.11.12 =
|
165 |
* Added: Show notice to install Backup WD plugin.
|
166 |
|