Form Maker by WD – user-friendly drag & drop Form Builder plugin - Version 1.7.80

Version Description

Changed: Notices

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Form Maker by WD – user-friendly drag & drop Form Builder plugin
Version 1.7.80
Comparing to
See all releases

Code changes from version 1.7.79 to 1.7.80

Files changed (3) hide show
  1. form-maker.php +2 -2
  2. form_maker_notices_class.php +28 -3
  3. readme.txt +4 -1
form-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
- * Version: 1.7.79
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -269,7 +269,7 @@ function register_fmemailverification_cpt(){
269
  // Activate plugin.
270
  function form_maker_activate() {
271
  $version = get_option("wd_form_maker_version");
272
- $new_version = '1.7.79';
273
  global $wpdb;
274
  if (!$version) {
275
  add_option("wd_form_maker_version", $new_version, '', 'no');
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
+ * Version: 1.7.80
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
269
  // Activate plugin.
270
  function form_maker_activate() {
271
  $version = get_option("wd_form_maker_version");
272
+ $new_version = '1.7.80';
273
  global $wpdb;
274
  if (!$version) {
275
  add_option("wd_form_maker_version", $new_version, '', 'no');
form_maker_notices_class.php CHANGED
@@ -30,7 +30,7 @@ class FM_Notices {
30
 
31
  // Runs the admin notice temp ignore function incase a temp dismiss link has been clicked
32
  add_action( 'admin_init', array( $this, 'admin_notice_temp_ignore' ) );
33
-
34
  }
35
 
36
  // Checks to ensure notices aren't disabled and the user has the correct permissions.
@@ -100,8 +100,9 @@ class FM_Notices {
100
  // Ensure the notice hasn't been hidden and that the current date is after the start date
101
  if ($admin_display_check == 0 && strtotime( $admin_display_start ) <= strtotime( $current_date )) {
102
 
103
- // Get remaining query string
104
- $query_str = esc_url( add_query_arg( 'fm_admin_notice_ignore', $slug ) );
 
105
 
106
  // Admin notice display output
107
  echo '<div class="update-nag fm-admin-notice">';
@@ -216,6 +217,30 @@ class FM_Notices {
216
  public function special_parameters( $admin_notices ) {
217
  // Intentionally left blank
218
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219
 
220
  }
221
 
30
 
31
  // Runs the admin notice temp ignore function incase a temp dismiss link has been clicked
32
  add_action( 'admin_init', array( $this, 'admin_notice_temp_ignore' ) );
33
+ add_action('admin_notices', array($this, 'wd_admin_notices'));
34
  }
35
 
36
  // Checks to ensure notices aren't disabled and the user has the correct permissions.
100
  // Ensure the notice hasn't been hidden and that the current date is after the start date
101
  if ($admin_display_check == 0 && strtotime( $admin_display_start ) <= strtotime( $current_date )) {
102
 
103
+ // Get remaining query string
104
+ $query_str = (isset($admin_notices[$slug]['later_link']) ? $admin_notices[$slug]['later_link'] : esc_url(add_query_arg('fm_admin_notice_ignore', $slug)));
105
+
106
 
107
  // Admin notice display output
108
  echo '<div class="update-nag fm-admin-notice">';
217
  public function special_parameters( $admin_notices ) {
218
  // Intentionally left blank
219
  }
220
+ public function wd_admin_notices() {
221
+ $two_week_review_ignore = add_query_arg(array('fm_admin_notice_ignore' => 'two_week_review'));
222
+ $two_week_review_temp = add_query_arg(array('fm_admin_notice_temp_ignore' => 'two_week_review', 'int' => 14));
223
+ $notices['two_week_review'] = array(
224
+ 'title' => __('Leave A Review?', 'fm'),
225
+ 'msg' => sprintf(__('We hope you\'ve enjoyed using WordPress %s! Would you consider leaving us a review on WordPress.org?', 'fm'), 'Form Maker'),
226
+ 'link' => '<li><span class="dashicons dashicons-external"></span><a href="https://wordpress.org/support/view/plugin-reviews/form-maker?filter=5" target="_blank">' . __('Sure! I\'d love to!', 'fm') . '</a></li>
227
+ <li><span class="dashicons dashicons-smiley"></span><a href="' . $two_week_review_ignore . '"> ' . __('I\'ve already left a review', 'fm') . '</a></li>
228
+ <li><span class="dashicons dashicons-calendar-alt"></span><a href="' . $two_week_review_temp . '">' . __('Maybe Later', 'fm') . '</a></li>
229
+ <li><span class="dashicons dashicons-dismiss"></span><a href="' . $two_week_review_ignore . '">' . __('Never show again', 'fm') . '</a></li>',
230
+ 'later_link' => $two_week_review_temp,
231
+ 'int' => 14
232
+ );
233
+ $one_week_support = add_query_arg(array('fm_admin_notice_ignore' => 'one_week_support'));
234
+ $notices['one_week_support'] = array(
235
+ 'title' => __('Hey! How\'s It Going?', 'fm'),
236
+ 'msg' => sprintf(__('Thank you for using WordPress %s! We hope that you\'ve found everything you need, but if you have any questions:', 'fm'), 'Form Maker'),
237
+ 'link' => '<li><span class="dashicons dashicons-media-text"></span><a target="_blank" href="https://web-dorado.com/forum/26-form-maker.html">' . __('Check out User Guide', 'fm') . '</a></li>
238
+ <li><span class="dashicons dashicons-sos"></span><a target="_blank" href="https://web-dorado.com/wordpress-form-maker/creating-form.html">' . __('Get Some Help', 'fm') . '</a></li>
239
+ <li><span class="dashicons dashicons-dismiss"></span><a href="' . $one_week_support . '">' . __('Never show again', 'fm') . '</a></li>',
240
+ 'int' => 7
241
+ );
242
+ $this->admin_notice($notices);
243
+ }
244
 
245
  }
246
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-form.html
4
  Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, formular, formulario, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha
5
  Requires at least: 3.4
6
  Tested up to: 4.3
7
- Stable tag: 1.7.79
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -294,6 +294,9 @@ The Form Maker (Pro version) has simple PayPal integration. This allows the user
294
 
295
  == Changelog ==
296
 
 
 
 
297
  = 1.7.79 =
298
  Fixed: Bug in update
299
 
4
  Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, formular, formulario, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha
5
  Requires at least: 3.4
6
  Tested up to: 4.3
7
+ Stable tag: 1.7.80
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
294
 
295
  == Changelog ==
296
 
297
+ = 1.7.80 =
298
+ Changed: Notices
299
+
300
  = 1.7.79 =
301
  Fixed: Bug in update
302