Contact Form by WPForms – Drag & Drop Form Builder for WordPress - Version 1.2.0.1

Version Description

  • Changed: Improved field and column gutter consistency
Download this release

Release Info

Developer jaredatch
Plugin Icon 128x128 Contact Form by WPForms – Drag & Drop Form Builder for WordPress
Version 1.2.0.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.0.1

assets/css/wpforms-base.css CHANGED
@@ -128,35 +128,35 @@
128
  /* User column classes */
129
  .wpforms-container .wpforms-first-half {
130
  float: left;
131
- width: 47%;
132
  clear: both;
133
  }
134
 
135
  .wpforms-container .wpforms-second-half,
136
  .wpforms-container .wpforms-last-half {
137
  float: right;
138
- width: 47%;
139
  clear: none;
140
  }
141
 
142
  .wpforms-container .wpforms-first-third {
143
  float: left;
144
- width: 29.333333%;
145
  clear: both;
146
  }
147
 
148
  .wpforms-container .wpforms-middle-third,
149
  .wpforms-container .wpforms-second-third {
150
  float: left;
151
- width: 29.333333%;
152
- margin-left: 6%;
153
  clear: none;
154
  }
155
 
156
  .wpforms-container .wpforms-last-third,
157
  .wpforms-container .wpforms-third-third {
158
  float: right;
159
- width: 29.333333%;
160
  clear: none;
161
  }
162
 
@@ -193,20 +193,20 @@
193
  /* Private */
194
  .wpforms-container .wpforms-one-half {
195
  float: left;
196
- width: 49%;
197
  margin-right: 2%;
198
  }
199
 
200
  .wpforms-container .wpforms-two-fifths {
201
  float: left;
202
- width: 39%;
203
- margin-right: 2%;
204
  }
205
 
206
  .wpforms-container .wpforms-one-fifth {
207
  float: left;
208
  width: 18%;
209
- margin-right: 2%;
210
  }
211
 
212
  .wpforms-container div.wpforms-last {
128
  /* User column classes */
129
  .wpforms-container .wpforms-first-half {
130
  float: left;
131
+ width: 48%;
132
  clear: both;
133
  }
134
 
135
  .wpforms-container .wpforms-second-half,
136
  .wpforms-container .wpforms-last-half {
137
  float: right;
138
+ width: 48%;
139
  clear: none;
140
  }
141
 
142
  .wpforms-container .wpforms-first-third {
143
  float: left;
144
+ width: 30.666666667%;
145
  clear: both;
146
  }
147
 
148
  .wpforms-container .wpforms-middle-third,
149
  .wpforms-container .wpforms-second-third {
150
  float: left;
151
+ width: 30.666666667%;
152
+ margin-left: 4%;
153
  clear: none;
154
  }
155
 
156
  .wpforms-container .wpforms-last-third,
157
  .wpforms-container .wpforms-third-third {
158
  float: right;
159
+ width: 30.666666667%;
160
  clear: none;
161
  }
162
 
193
  /* Private */
194
  .wpforms-container .wpforms-one-half {
195
  float: left;
196
+ width: 48%;
197
  margin-right: 2%;
198
  }
199
 
200
  .wpforms-container .wpforms-two-fifths {
201
  float: left;
202
+ width: 37%;
203
+ margin-right: 4%;
204
  }
205
 
206
  .wpforms-container .wpforms-one-fifth {
207
  float: left;
208
  width: 18%;
209
+ margin-right: 4%;
210
  }
211
 
212
  .wpforms-container div.wpforms-last {
assets/css/wpforms-full.css CHANGED
@@ -206,35 +206,35 @@ div.wpforms-container-full .wpforms-form .wpforms-field-row:after {
206
  /* User column classes */
207
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-first-half {
208
  float: left;
209
- width: 47%;
210
  clear: both;
211
  }
212
 
213
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-second-half,
214
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-last-half {
215
  float: right;
216
- width: 47%;
217
  clear: none;
218
  }
219
 
220
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-first-third {
221
  float: left;
222
- width: 29.333333%;
223
  clear: both;
224
  }
225
 
226
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-middle-third,
227
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-second-third {
228
  float: left;
229
- width: 29.333333%;
230
- margin-left: 6%;
231
  clear: none;
232
  }
233
 
234
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-last-third,
235
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-third-third {
236
  float: right;
237
- width: 29.333333%;
238
  clear: none;
239
  }
240
 
@@ -271,20 +271,20 @@ div.wpforms-container-full .wpforms-form .wpforms-list-3-columns ul li {
271
  /* Private */
272
  div.wpforms-container-full .wpforms-form .wpforms-one-half {
273
  float: left;
274
- width: 49%;
275
  margin-right: 2%;
276
  }
277
 
278
  div.wpforms-container-full .wpforms-form .wpforms-two-fifths {
279
  float: left;
280
- width: 39%;
281
- margin-right: 2%;
282
  }
283
 
284
  div.wpforms-container-full .wpforms-form .wpforms-one-fifth {
285
  float: left;
286
  width: 18%;
287
- margin-right: 2%;
288
  }
289
 
290
  div.wpforms-container-full .wpforms-form div.wpforms-last {
206
  /* User column classes */
207
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-first-half {
208
  float: left;
209
+ width: 48%;
210
  clear: both;
211
  }
212
 
213
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-second-half,
214
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-last-half {
215
  float: right;
216
+ width: 48%;
217
  clear: none;
218
  }
219
 
220
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-first-third {
221
  float: left;
222
+ width: 30.666666667%;
223
  clear: both;
224
  }
225
 
226
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-middle-third,
227
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-second-third {
228
  float: left;
229
+ width: 30.666666667%;
230
+ margin-left: 4%;
231
  clear: none;
232
  }
233
 
234
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-last-third,
235
  div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-third-third {
236
  float: right;
237
+ width: 30.666666667%;
238
  clear: none;
239
  }
240
 
271
  /* Private */
272
  div.wpforms-container-full .wpforms-form .wpforms-one-half {
273
  float: left;
274
+ width: 48%;
275
  margin-right: 2%;
276
  }
277
 
278
  div.wpforms-container-full .wpforms-form .wpforms-two-fifths {
279
  float: left;
280
+ width: 37%;
281
+ margin-right: 4%;
282
  }
283
 
284
  div.wpforms-container-full .wpforms-form .wpforms-one-fifth {
285
  float: left;
286
  width: 18%;
287
+ margin-right: 4%;
288
  }
289
 
290
  div.wpforms-container-full .wpforms-form div.wpforms-last {
lite/admin-builder-lite.js CHANGED
@@ -75,7 +75,7 @@
75
  confirmButton: wpforms_builder_lite.upgrade_button,
76
  columnClass: 'modal-wide',
77
  confirm: function () {
78
- window.open('https://wpforms.com/lite-upgrade/?utm_source=WordPress&utm_medium=link&utm_campaign=liteplugin','_blank');
79
  },
80
  });
81
  },
75
  confirmButton: wpforms_builder_lite.upgrade_button,
76
  columnClass: 'modal-wide',
77
  confirm: function () {
78
+ window.open(wpforms_builder_lite.upgrade_url,'_blank');
79
  },
80
  });
81
  },
lite/lite.php CHANGED
@@ -9,6 +9,37 @@
9
  * @copyright Copyright (c) 2016, WPForms LLC
10
  */
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  /**
14
  * Display additional templates available in the paid version
@@ -208,6 +239,7 @@ function wpfl_builder_enqueues() {
208
  'upgrade_title' => __( 'is a PRO Feature', 'wpforms' ),
209
  'upgrade_message' => __( 'We\'re sorry, %name% is not available on your plan.<br><br>Please upgrade to the PRO plan to unlock all these awesome features.', 'wpforms' ),
210
  'upgrade_button' => __( 'Upgrade to PRO', 'wpforms' ),
 
211
  )
212
  );
213
  }
@@ -223,6 +255,8 @@ function wpfl_entries_page() {
223
  if ( !isset( $_GET['page'] ) || 'wpforms-entries' != $_GET['page'] ) {
224
  return;
225
  }
 
 
226
  ?>
227
 
228
  <div id="wpforms-entries" class="wrap">
@@ -232,7 +266,7 @@ function wpfl_entries_page() {
232
  <div class="notice notice-info below-h2">
233
  <p><strong>Entry management and storage is a PRO feature.</strong></p>
234
  <p>Please upgrade to the PRO plan to unlock it and more awesome features.</p>
235
- <p><a href="https://wpforms.com/lite-upgrade/?utm_source=WordPress&amp;utm_medium=link&amp;utm_campaign=liteplugin" class="button button-primary" target="_blank">Upgrade Now</a></p>
236
  </div>
237
  </div>
238
  <?php
@@ -275,7 +309,7 @@ function wpfl_addons_page() {
275
  if ( !isset( $_GET['page'] ) || 'wpforms-addons' != $_GET['page'] ) {
276
  return;
277
  }
278
- $upgrade = 'https://wpforms.com/lite-upgrade/?utm_source=WordPress&utm_medium=link&utm_campaign=liteplugin';
279
  ?>
280
 
281
  <div id="wpforms-addons" class="wrap">
@@ -285,7 +319,7 @@ function wpfl_addons_page() {
285
  <div class="notice notice-info below-h2">
286
  <p><strong>Form Addons are a PRO feature.</strong></p>
287
  <p>Please upgrade to the PRO plan to unlock them and more awesome features.</p>
288
- <p><a href="https://wpforms.com/lite-upgrade/" class="button button-primary">Upgrade Now</a></p>
289
  </div>
290
  <div class="wpforms-addon-item wpforms-addon-status-upgrade wpforms-first">
291
  <div class="wpforms-addon-image"><img src="https://wpforms.com/images/addon-icon-aweber.png"></div>
9
  * @copyright Copyright (c) 2016, WPForms LLC
10
  */
11
 
12
+ /**
13
+ * Provide upgrade URL.
14
+ *
15
+ * @since 1.2.0
16
+ */
17
+ function wpfl_upgrade_link() {
18
+
19
+ // Check if there's a constant.
20
+ $shareasale_id = '';
21
+ if ( defined( 'WPFORMS_SHAREASALE_ID' ) ) {
22
+ $shareasale_id = WPFORMS_SHAREASALE_ID;
23
+ }
24
+
25
+ // If there's no constant, check if there's an option.
26
+ if ( empty( $shareasale_id ) ) {
27
+ $shareasale_id = get_option( 'wpforms_shareasale_id', '' );
28
+ }
29
+
30
+ // Whether we have an ID or not, filter the ID.
31
+ $shareasale_id = apply_filters( 'wpforms_shareasale_id', $shareasale_id );
32
+
33
+ // If at this point we still don't have an ID, we really don't have one!
34
+ // Just return the standard upgrade URL.
35
+ if ( empty( $shareasale_id ) ) {
36
+ return 'https://wpforms.com/lite-upgrade/?utm_source=WordPress&amp;utm_medium=link&amp;utm_campaign=liteplugin';
37
+ }
38
+
39
+ // If here, we have a ShareASale ID
40
+ // Return ShareASale URL with redirect.
41
+ return 'http://www.shareasale.com/r.cfm?B=837827&U=' . $shareasale_id . '&M=64312&urllink=';
42
+ }
43
 
44
  /**
45
  * Display additional templates available in the paid version
239
  'upgrade_title' => __( 'is a PRO Feature', 'wpforms' ),
240
  'upgrade_message' => __( 'We\'re sorry, %name% is not available on your plan.<br><br>Please upgrade to the PRO plan to unlock all these awesome features.', 'wpforms' ),
241
  'upgrade_button' => __( 'Upgrade to PRO', 'wpforms' ),
242
+ 'upgrade_url' => wpfl_upgrade_link()
243
  )
244
  );
245
  }
255
  if ( !isset( $_GET['page'] ) || 'wpforms-entries' != $_GET['page'] ) {
256
  return;
257
  }
258
+
259
+ $upgrade = wpfl_upgrade_link();
260
  ?>
261
 
262
  <div id="wpforms-entries" class="wrap">
266
  <div class="notice notice-info below-h2">
267
  <p><strong>Entry management and storage is a PRO feature.</strong></p>
268
  <p>Please upgrade to the PRO plan to unlock it and more awesome features.</p>
269
+ <p><a href="<?php echo $upgrade; ?>" class="button button-primary" target="_blank">Upgrade Now</a></p>
270
  </div>
271
  </div>
272
  <?php
309
  if ( !isset( $_GET['page'] ) || 'wpforms-addons' != $_GET['page'] ) {
310
  return;
311
  }
312
+ $upgrade = wpfl_upgrade_link();
313
  ?>
314
 
315
  <div id="wpforms-addons" class="wrap">
319
  <div class="notice notice-info below-h2">
320
  <p><strong>Form Addons are a PRO feature.</strong></p>
321
  <p>Please upgrade to the PRO plan to unlock them and more awesome features.</p>
322
+ <p><a href="<?php echo $upgrade; ?>" class="button button-primary">Upgrade Now</a></p>
323
  </div>
324
  <div class="wpforms-addon-item wpforms-addon-status-upgrade wpforms-first">
325
  <div class="wpforms-addon-image"><img src="https://wpforms.com/images/addon-icon-aweber.png"></div>
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: wpforms, jaredatch, smub
3
  Tags: contact form, contact form plugin, contact button, contact me, custom form, custom contact form, form builder, form manager, form, forms builder, forms creator, captcha, recaptcha, Akismet, email form, web form, feedback form, payment form, survey form, donation form, email submit form, message form, mailchimp, mailchimp form, aweber, aweber form, paypal, paypal form, stripe, stripe form, getresponse, getresponse form, email subscription, contact form widget
4
  Requires at least: 4.4
5
- Tested up to: 4.5
6
  Stable tag: trunk
7
  License: GNU General Public License v2.0 or later
8
 
@@ -159,6 +159,9 @@ Syed Balkhi
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 1.2.0 =
163
  * Added: Form preview
164
  * Added: Column classes for Checkbox and Multiple choice inputs
2
  Contributors: wpforms, jaredatch, smub
3
  Tags: contact form, contact form plugin, contact button, contact me, custom form, custom contact form, form builder, form manager, form, forms builder, forms creator, captcha, recaptcha, Akismet, email form, web form, feedback form, payment form, survey form, donation form, email submit form, message form, mailchimp, mailchimp form, aweber, aweber form, paypal, paypal form, stripe, stripe form, getresponse, getresponse form, email subscription, contact form widget
4
  Requires at least: 4.4
5
+ Tested up to: 4.5.2
6
  Stable tag: trunk
7
  License: GNU General Public License v2.0 or later
8
 
159
 
160
  == Changelog ==
161
 
162
+ = 1.2.0.1 =
163
+ * Changed: Improved field and column gutter consistency
164
+
165
  = 1.2.0 =
166
  * Added: Form preview
167
  * Added: Column classes for Checkbox and Multiple choice inputs
wpforms.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Beginner friendly WordPress contact form plugin. Use our Drag & Drop form builder to create your WordPress forms.
6
  * Author: WPForms
7
  * Author URI: https://wpforms.com
8
- * Version: 1.2.0
9
  * Text Domain: wpforms
10
  * Domain Path: languages
11
  *
@@ -54,7 +54,7 @@ final class WPForms_Lite {
54
  * @since 1.0.0
55
  * @var sting
56
  */
57
- private $version = '1.2.0';
58
 
59
  /**
60
  * The form data handler instance.
5
  * Description: Beginner friendly WordPress contact form plugin. Use our Drag & Drop form builder to create your WordPress forms.
6
  * Author: WPForms
7
  * Author URI: https://wpforms.com
8
+ * Version: 1.2.0.1
9
  * Text Domain: wpforms
10
  * Domain Path: languages
11
  *
54
  * @since 1.0.0
55
  * @var sting
56
  */
57
+ private $version = '1.2.0.1';
58
 
59
  /**
60
  * The form data handler instance.