Contact Form Builder – a plugin for creating contact and feedback forms - Version 1.0.62

Version Description

  • Changed: Show notification to install Backup WD plugin only on plugin pages.
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Contact Form Builder – a plugin for creating contact and feedback forms
Version 1.0.62
Comparing to
See all releases

Code changes from version 1.0.61 to 1.0.62

contact-form-builder.php CHANGED
@@ -3,14 +3,16 @@
3
  * Plugin Name: Contact Form Builder
4
  * Plugin URI: http://web-dorado.com/products/wordpress-contact-form-builder.html
5
  * Description: Contact Form Builder is an advanced plugin to add contact forms into your website. It comes along with multiple default templates which can be customized.
6
- * Version: 1.0.61
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
11
  define('WD_CFM_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
12
  define('WD_CFM_URL', plugins_url(plugin_basename(dirname(__FILE__))));
13
- define('WD_CFM_VERSION', '1.0.61');
 
 
14
 
15
  // Plugin menu.
16
  function contact_form_maker_options_panel() {
@@ -160,11 +162,6 @@ function contact_form_maker_activate() {
160
  contact_form_maker_insert();
161
  add_option("wd_contact_form_maker_version", $new_version, '', 'no');
162
  }
163
- // Check if notice or popup already exist for other plugins
164
- if( get_option('wds_bk_notice_status') === false ) {
165
- add_option('wds_bk_notice_status', '');
166
- }
167
-
168
  }
169
  register_activation_hook(__FILE__, 'contact_form_maker_activate');
170
 
@@ -708,58 +705,89 @@ function fmc_overview() {
708
  }
709
  add_action('init', 'fmc_overview');
710
 
711
- if (!function_exists('wd_bp_install_notice')) {
712
- $wd_bp_plugin_url = WD_CFM_URL;
713
- function wd_bp_script_style() {
714
- global $wd_bp_plugin_url;
715
- wp_enqueue_script('wd_bck_install', $wd_bp_plugin_url . '/js/wd_bp_install.js', array('jquery'));
716
- wp_enqueue_style('wd_bck_install', $wd_bp_plugin_url . '/css/wd_bp_install.css');
 
717
  }
718
- add_action('admin_enqueue_scripts', 'wd_bp_script_style');
719
-
720
- /**
721
- * Show notice to install backup plugin
722
- */
723
- function wd_bp_install_notice() {
724
- global $wd_bp_plugin_url;
725
- $prefix = 'fmc';
726
- $meta_value = get_option('wds_bk_notice_status');
727
- if ($meta_value === '' || $meta_value === false) {
728
- ob_start();
729
- ?>
730
- <div class="notice notice-info" id="wd_bp_notice_cont">
731
- <p>
732
- <img id="wd_bp_logo_notice" src="<?php echo $wd_bp_plugin_url . '/images/logo.png'; ?>">
733
- <?php _e("Hey! Install brand new FREE", $prefix) ?>
734
- <a href="https://wordpress.org/plugins/backup-wd/" title="<?php _e("More details", $prefix) ?>"
735
- target="_blank"><?php _e("Backup WD", $prefix) ?></a>
736
- <?php _e("plugin to keep your forms and website safe.", $prefix) ?>
737
- <a class="button button-primary"
738
- href="<?php echo esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=backup-wd'), 'install-plugin_backup-wd')); ?>">
739
- <span onclick="wd_bp_notice_install()"><?php _e("Install", $prefix); ?></span>
740
- </a>
741
- </p>
742
- <button type="button" class="wd_bp_notice_dissmiss notice-dismiss"><span class="screen-reader-text"></span>
743
- </button>
744
- </div>
745
- <script>wd_bp_url = '<?php echo add_query_arg(array('action' => 'wd_bp_dismiss',), admin_url('admin-ajax.php')); ?>'</script>
746
- <?php
747
- echo ob_get_clean();
748
- }
749
  }
750
 
751
- if (!is_dir(plugin_dir_path(__DIR__) . 'backup-wd')) {
752
- add_action('admin_notices', 'wd_bp_install_notice');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
753
  }
 
754
 
755
- /**
756
- * Add usermeta to db
757
- *
758
- * empty: notice,
759
- * 1 : never show again
760
- */
761
- function wd_bp_install_notice_status() {
762
- update_option('wds_bk_notice_status', '1', 'no');
763
  }
764
- add_action('wp_ajax_wd_bp_dismiss', 'wd_bp_install_notice_status');
765
  }
3
  * Plugin Name: Contact Form Builder
4
  * Plugin URI: http://web-dorado.com/products/wordpress-contact-form-builder.html
5
  * Description: Contact Form Builder is an advanced plugin to add contact forms into your website. It comes along with multiple default templates which can be customized.
6
+ * Version: 1.0.62
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
11
  define('WD_CFM_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
12
  define('WD_CFM_URL', plugins_url(plugin_basename(dirname(__FILE__))));
13
+ define('WD_CFM_VERSION', '1.0.62');
14
+ define('WD_CFM_PREFIX', 'cfm');
15
+ define('WD_CFM_NICENAME', __( 'Contact Form Builder', WD_CFM_PREFIX ));
16
 
17
  // Plugin menu.
18
  function contact_form_maker_options_panel() {
162
  contact_form_maker_insert();
163
  add_option("wd_contact_form_maker_version", $new_version, '', 'no');
164
  }
 
 
 
 
 
165
  }
166
  register_activation_hook(__FILE__, 'contact_form_maker_activate');
167
 
705
  }
706
  add_action('init', 'fmc_overview');
707
 
708
+ /**
709
+ * Show notice to install backup plugin
710
+ */
711
+ function cfm_bp_install_notice() {
712
+ // Remove old notice.
713
+ if ( get_option('wds_bk_notice_status') !== FALSE ) {
714
+ update_option('wds_bk_notice_status', '1', 'no');
715
  }
716
+
717
+ // Show notice only on plugin pages.
718
+ if ( !isset($_GET['page']) || strpos(esc_html($_GET['page']), '_cfm') === FALSE ) {
719
+ return '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
720
  }
721
 
722
+ $meta_value = get_option('wd_bk_notice_status');
723
+ if ( $meta_value === '' || $meta_value === FALSE ) {
724
+ ob_start();
725
+ $prefix = WD_CFM_PREFIX;
726
+ $nicename = WD_CFM_NICENAME;
727
+ $url = WD_CFM_URL;
728
+ $dismiss_url = add_query_arg(array( 'action' => 'wd_bp_dismiss' ), admin_url('admin-ajax.php'));
729
+ $install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=backup-wd'), 'install-plugin_backup-wd'));
730
+ ?>
731
+ <div class="notice notice-info" id="wd_bp_notice_cont">
732
+ <p>
733
+ <img id="wd_bp_logo_notice" src="<?php echo $url . '/images/logo.png'; ?>" />
734
+ <?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>'); ?>
735
+ <a class="button button-primary" href="<?php echo $install_url; ?>">
736
+ <span onclick="jQuery.post('<?php echo $dismiss_url; ?>');"><?php _e("Install", $prefix); ?></span>
737
+ </a>
738
+ </p>
739
+ <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>
740
+ </div>
741
+ <style>
742
+ @media only screen and (max-width: 500px) {
743
+ body #wd_backup_logo {
744
+ max-width: 100%;
745
+ }
746
+ body #wd_bp_notice_cont p {
747
+ padding-right: 25px !important;
748
+ }
749
+ }
750
+ #wd_bp_logo_notice {
751
+ width: 40px;
752
+ float: left;
753
+ margin-right: 10px;
754
+ }
755
+ #wd_bp_notice_cont {
756
+ position: relative;
757
+ }
758
+ #wd_bp_notice_cont a {
759
+ margin: 0 5px;
760
+ }
761
+ #wd_bp_notice_cont .dashicons-dismiss:before {
762
+ content: "\f153";
763
+ background: 0 0;
764
+ color: #72777c;
765
+ display: block;
766
+ font: 400 16px/20px dashicons;
767
+ speak: none;
768
+ height: 20px;
769
+ text-align: center;
770
+ width: 20px;
771
+ -webkit-font-smoothing: antialiased;
772
+ -moz-osx-font-smoothing: grayscale;
773
+ }
774
+ .wd_bp_notice_dissmiss {
775
+ margin-top: 5px;
776
+ }
777
+ </style>
778
+ <?php
779
+ echo ob_get_clean();
780
  }
781
+ }
782
 
783
+ if ( !is_dir(plugin_dir_path(__DIR__) . 'backup-wd') ) {
784
+ add_action('admin_notices', 'cfm_bp_install_notice');
785
+ }
786
+
787
+ if ( !function_exists('wd_bps_install_notice_status') ) {
788
+ // Add usermeta to db.
789
+ function wd_bps_install_notice_status() {
790
+ update_option('wd_bk_notice_status', '1', 'no');
791
  }
792
+ add_action('wp_ajax_wd_bp_dismiss', 'wd_bps_install_notice_status');
793
  }
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
@@ -3,8 +3,8 @@ Contributors: webdorado
3
  Donate link: http://web-dorado.com/products/wordpress-contact-form-builder.html
4
  Tags: contact form, contact forms, contact, feedback, form manager, captcha, custom form, email, form, form builder, forms, survey
5
  Requires at least: 3.4
6
- Tested up to: 4.8
7
- Stable tag: 1.0.61
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -138,6 +138,9 @@ After downloading the ZIP file,
138
 
139
  == Changelog ==
140
 
 
 
 
141
  = 1.0.61 =
142
  * Added: Show notice to install Backup WD plugin.
143
 
@@ -369,12 +372,12 @@ Try using standard emails (Gmail/Yahoo/Hotmail and etc.) or an email which uses
369
  Check with your hosting provider whether you have your PHP mail activated or not.
370
  If these options do not work, please install STMP plugin (e.g. http://wordpress.org/plugins/webriti-smtp-mail/). The authentication details for the Gmail are the following:
371
  Mailer: smtp
 
 
372
  SMTP Authentication: yes
373
  SMTP Security: SSL
374
- SMTP Port: 465
375
  SMTP Username: your gmail full address
376
  SMTP Password: your gmail password
377
- SMTP Host: smtp.gmail.com
378
 
379
  After installation please use the test option. If the test email failed contact your hosting provider to fix the issue.
380
 
3
  Donate link: http://web-dorado.com/products/wordpress-contact-form-builder.html
4
  Tags: contact form, contact forms, contact, feedback, form manager, captcha, custom form, email, form, form builder, forms, survey
5
  Requires at least: 3.4
6
+ Tested up to: 4.9
7
+ Stable tag: 1.0.62
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
138
 
139
  == Changelog ==
140
 
141
+ = 1.0.62 =
142
+ * Changed: Show notification to install Backup WD plugin only on plugin pages.
143
+
144
  = 1.0.61 =
145
  * Added: Show notice to install Backup WD plugin.
146
 
372
  Check with your hosting provider whether you have your PHP mail activated or not.
373
  If these options do not work, please install STMP plugin (e.g. http://wordpress.org/plugins/webriti-smtp-mail/). The authentication details for the Gmail are the following:
374
  Mailer: smtp
375
+ SMTP Port: 465
376
+ SMTP Host: smtp.gmail.com
377
  SMTP Authentication: yes
378
  SMTP Security: SSL
 
379
  SMTP Username: your gmail full address
380
  SMTP Password: your gmail password
 
381
 
382
  After installation please use the test option. If the test email failed contact your hosting provider to fix the issue.
383