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

Version Description

New: New year promo

Download this release

Release Info

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

Code changes from version 1.8.6 to 1.8.7

assets/wdhny.jpg ADDED
Binary file
css/notices.css CHANGED
@@ -6,6 +6,23 @@
6
  padding: 10px 40px 10px 125px;
7
  position: relative;
8
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  .fm-admin-notice a {
10
  color: #10738B;
11
  }
@@ -34,6 +51,12 @@
34
  font-weight: normal;
35
  margin: 5px 0;
36
  }
 
 
 
 
 
 
37
  .fm-notice-body:after {
38
  clear: both;
39
  content: "";
@@ -49,3 +72,16 @@
49
  .fm-blue {
50
  color: #10738B;
51
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  padding: 10px 40px 10px 125px;
7
  position: relative;
8
  }
9
+
10
+ .fm-admin-notice-promo {
11
+ background: #fff;
12
+ border-top: 4px;
13
+ display: block;
14
+ min-height: 68px;
15
+ padding: 10px 40px 0px 10px;
16
+ margin: 10px 0;
17
+ position: relative;
18
+ }
19
+
20
+ .fm-admin-notice-promo:after{
21
+ content: '';
22
+ display: table;
23
+ clear: both;
24
+ }
25
+
26
  .fm-admin-notice a {
27
  color: #10738B;
28
  }
51
  font-weight: normal;
52
  margin: 5px 0;
53
  }
54
+
55
+ .fm-close-promo{
56
+ position: absolute;
57
+ top: 5px;
58
+ right: 5px;
59
+ }
60
  .fm-notice-body:after {
61
  clear: both;
62
  content: "";
72
  .fm-blue {
73
  color: #10738B;
74
  }
75
+
76
+ .fm_hny{
77
+ background: url("../assets/wdhny.jpg") no-repeat;
78
+ background-position: center;
79
+ background-size: 800px 200px;
80
+ height: 200px;
81
+ max-width: 100%;
82
+ }
83
+
84
+ .fm_hny a{
85
+ display: block;
86
+ height: 100%;
87
+ }
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.8.6
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.8.6';
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.8.7
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.8.7';
273
  global $wpdb;
274
  if (!$version) {
275
  add_option("wd_form_maker_version", $new_version, '', 'no');
form_maker_notices_class.php CHANGED
@@ -74,6 +74,8 @@ class FM_Notices {
74
  $current_date = current_time( "n/j/Y" );
75
  $start = ( isset( $admin_notices[ $slug ]['start'] ) ? $admin_notices[ $slug ]['start'] : $current_date );
76
  $start = date( "n/j/Y", strtotime( $start ) );
 
 
77
  $date_array = explode( '/', $start );
78
  $interval = ( isset( $admin_notices[ $slug ]['int'] ) ? $admin_notices[ $slug ]['int'] : 0 );
79
  $date_array[1] += $interval;
@@ -103,7 +105,7 @@ class FM_Notices {
103
 
104
  // Get remaining query string
105
  $query_str = (isset($admin_notices[$slug]['later_link']) ? $admin_notices[$slug]['later_link'] : esc_url(add_query_arg('fm_admin_notice_ignore', $slug)));
106
-
107
  // Admin notice display output
108
  echo '<div class="update-nag fm-admin-notice">';
109
  echo '<div class="fm-notice-logo"></div>';
@@ -118,7 +120,17 @@ class FM_Notices {
118
  </ul>';
119
  echo '<a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>';
120
  echo '</div>';
121
-
 
 
 
 
 
 
 
 
 
 
122
  $this->notice_spam += 1;
123
  $output_css = true;
124
  }
@@ -218,6 +230,15 @@ class FM_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(
74
  $current_date = current_time( "n/j/Y" );
75
  $start = ( isset( $admin_notices[ $slug ]['start'] ) ? $admin_notices[ $slug ]['start'] : $current_date );
76
  $start = date( "n/j/Y", strtotime( $start ) );
77
+ $end = ( isset( $admin_notices[ $slug ]['end'] ) ? $admin_notices[ $slug ]['end'] : $start );
78
+ $end = date( "n/j/Y", strtotime( $end ) );
79
  $date_array = explode( '/', $start );
80
  $interval = ( isset( $admin_notices[ $slug ]['int'] ) ? $admin_notices[ $slug ]['int'] : 0 );
81
  $date_array[1] += $interval;
105
 
106
  // Get remaining query string
107
  $query_str = (isset($admin_notices[$slug]['later_link']) ? $admin_notices[$slug]['later_link'] : esc_url(add_query_arg('fm_admin_notice_ignore', $slug)));
108
+ if ( strpos( $slug, 'promo' ) === false ) {
109
  // Admin notice display output
110
  echo '<div class="update-nag fm-admin-notice">';
111
  echo '<div class="fm-notice-logo"></div>';
120
  </ul>';
121
  echo '<a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>';
122
  echo '</div>';
123
+ } else {
124
+ if ( strtotime( $end ) >= strtotime( $current_date ) ) {
125
+ echo '<div class=" fm-admin-notice-promo">';
126
+ echo $admin_display_msg;
127
+ echo '<ul class="fm-notice-body-promo fm-blue">
128
+ ' . $admin_display_link . '
129
+ </ul>';
130
+ echo '<a href="' . $query_str . '" class="dashicons dashicons-dismiss fm-close-promo"></a>';
131
+ echo '</div>';
132
+ }
133
+ }
134
  $this->notice_spam += 1;
135
  $output_css = true;
136
  }
230
  // Intentionally left blank
231
  }
232
  public function wd_admin_notices() {
233
+ $promo_close = add_query_arg( array( 'fm_admin_notice_ignore' => 'fm_new_year_promo' ) );
234
+ $notices['fm_new_year_promo'] = array(
235
+ 'title' => __( 'Hey! How\'s It Going?', 'form-maker' ),
236
+ 'msg' => '<div class="fm_hny"><a href="https://web-dorado.com/products/wordpress-form.html?source=promo" target="_blank"></a></div>',
237
+ 'link' => '<li><span class="dashicons dashicons-dismiss"></span><a href="' . $promo_close . '">' . __( 'Never show again' ,'form-maker' ) . '</a></li>',
238
+ 'start' => '2015-12-31',
239
+ 'end' => '2016-01-01',
240
+ 'int' => 0
241
+ );
242
  $two_week_review_ignore = add_query_arg(array('fm_admin_notice_ignore' => 'two_week_review'));
243
  $two_week_review_temp = add_query_arg(array('fm_admin_notice_temp_ignore' => 'two_week_review', 'int' => 14));
244
  $notices['two_week_review'] = array(
notices.php CHANGED
@@ -3,7 +3,15 @@
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
  function fm_admin_notices( $notices ) {
6
-
 
 
 
 
 
 
 
 
7
  $one_week_support = add_query_arg( array( 'fm_admin_notice_ignore' => 'one_week_support' ) );
8
  $notices['one_week_support'] = array(
9
  'title' => __( 'Hey! How\'s It Going?', 'form-maker' ),
@@ -27,7 +35,7 @@ function fm_admin_notices( $notices ) {
27
  'int' => 14
28
  );
29
 
30
-
31
  return $notices;
32
  }
33
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
  function fm_admin_notices( $notices ) {
6
+ $promo_close = add_query_arg( array( 'fm_admin_notice_ignore' => 'fm_new_year_promo' ) );
7
+ $notices['fm_new_year_promo'] = array(
8
+ 'title' => __( 'Hey! How\'s It Going?', 'form-maker' ),
9
+ 'msg' => '<div class="fm_hny"><a href="https://web-dorado.com/products/wordpress-form.html?source=promo" target="_blank"></a></div>',
10
+ 'link' => '<li><span class="dashicons dashicons-dismiss"></span><a href="' . $promo_close . '">' . __( 'Never show again' ,'form-maker' ) . '</a></li>',
11
+ 'start' => '2015-12-31',
12
+ 'end' => '2016-01-01',
13
+ 'int' => 0
14
+ );
15
  $one_week_support = add_query_arg( array( 'fm_admin_notice_ignore' => 'one_week_support' ) );
16
  $notices['one_week_support'] = array(
17
  'title' => __( 'Hey! How\'s It Going?', 'form-maker' ),
35
  'int' => 14
36
  );
37
 
38
+
39
  return $notices;
40
  }
41
 
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, pdf, mysql
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
- Stable tag: 1.8.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -300,6 +300,9 @@ The Form Maker (Pro version) has simple PayPal integration. This allows the user
300
 
301
  == Changelog ==
302
 
 
 
 
303
  = 1.8.6 =
304
  Changed: Reset button
305
  Fixed: Bug with scrolling in new field pop up
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, pdf, mysql
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
+ Stable tag: 1.8.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
300
 
301
  == Changelog ==
302
 
303
+ = 1.8.7 =
304
+ New: New year promo
305
+
306
  = 1.8.6 =
307
  Changed: Reset button
308
  Fixed: Bug with scrolling in new field pop up