Custom Contact Forms - Version 6.1

Version Description

Download this release

Release Info

Developer tlovett1
Plugin Icon 128x128 Custom Contact Forms
Version 6.1
Comparing to
See all releases

Code changes from version 6.0.3 to 6.1

README.md CHANGED
@@ -3,8 +3,7 @@ Custom Contact Forms [![Build Status](https://travis-ci.org/tlovett1/custom-cont
3
 
4
  Build beautiful custom forms the WordPress way.
5
 
6
- __Note: Version 6.0 breaks backwards compatibility. This means you will need to rebuild your forms when upgrading to 6.0.
7
- It's worth it; I promise!__
8
 
9
  ## Purpose
10
 
3
 
4
  Build beautiful custom forms the WordPress way.
5
 
6
+ __Note: Version 6.0 breaks backwards compatibility. You will need to perform a database update after upgrading from anything pre 6.0. You may also need to reconfigure some of your forms.__
 
7
 
8
  ## Purpose
9
 
classes/class-ccf-form-manager.php CHANGED
@@ -68,7 +68,7 @@ class CCF_Form_Manager {
68
  <div class="right">
69
  <a aria-hidden="true" data-icon="&#xe602;" class="delete"></a>
70
  </div>
71
- <span class="label"><%- label %></span>
72
  </h4>
73
 
74
  <div class="preview"></div>
@@ -118,17 +118,17 @@ class CCF_Form_Manager {
118
  <div class="section-content">
119
  <p>
120
  <label for="ccf_form_title"><?php esc_html_e( 'Form Title:', 'custom-contact-forms' ); ?></label>
121
- <input class="widefat form-title" id="ccf_form_title" name="title" type="text" value="<%- form.title %>">
122
  </p>
123
 
124
  <p>
125
  <label for="ccf_form_description"><?php esc_html_e( 'Form Description:', 'custom-contact-forms' ); ?></label>
126
- <textarea class="widefat form-description" id="ccf_form_description" name="description"><%- form.description %></textarea>
127
  </p>
128
 
129
  <p>
130
  <label for="ccf_form_button_text"><?php esc_html_e( 'Button Text:', 'custom-contact-forms' ); ?></label>
131
- <input class="widefat form-button-text" id="ccf_form_button_text" name="text" type="text" value="<%- form.buttonText %>">
132
  </p>
133
 
134
  <p>
@@ -141,11 +141,11 @@ class CCF_Form_Manager {
141
  </p>
142
  <p class="completion-redirect-url">
143
  <label for="ccf_form_completion_redirect_url"><?php esc_html_e( 'Redirect URL:', 'custom-contact-forms' ); ?></label>
144
- <input class="widefat form-completion-redirect-url" id="ccf_form_completion_redirect_url" name="text" type="text" value="<%- form.completionRedirectUrl %>">
145
  </p>
146
  <p class="completion-message">
147
  <label for="ccf_form_completion_message"><?php esc_html_e( 'Completion Message:', 'custom-contact-forms' ); ?></label>
148
- <textarea class="widefat form-completion-message" id="ccf_form_completion_message" name="completion-message"><%- form.completionMessage %></textarea>
149
  </p>
150
 
151
  <p>
@@ -158,7 +158,7 @@ class CCF_Form_Manager {
158
  </p>
159
  <p class="email-notification-addresses">
160
  <label for="ccf_form_email_notification_addresses"><?php esc_html_e( 'Email Addresses (comma separated):', 'custom-contact-forms' ); ?></label>
161
- <input class="widefat form-email-notification-addresses" id="ccf_form_email_notification_addresses" name="email-notification-addresses" value="<%- form.emailNotificationAddresses %>">
162
  </p>
163
  </div>
164
  </script>
@@ -170,12 +170,12 @@ class CCF_Form_Manager {
170
  </script>
171
 
172
  <script type="text/html" id="ccf-pagination-template">
173
- <span class="num-items"><%- totalObjects %> <?php esc_html_e( 'items', 'custom-contact-forms' ); ?></span>
174
 
175
  <a class="first <% if ( currentPage <= 1 ) { %>disabled<% } %>">&laquo;</a>
176
  <a class="prev <% if ( currentPage <= 1 ) { %>disabled<% } %>">&lsaquo;</a>
177
 
178
- <span class="pages"><%- currentPage %> of <%- totalPages %></span>
179
 
180
  <a class="next <% if ( currentPage >= totalPages ) { %>disabled<% } %>">&rsaquo;</a>
181
  <a class="last <% if ( currentPage >= totalPages ) { %>disabled<% } %>">&raquo;</a>
@@ -223,15 +223,15 @@ class CCF_Form_Manager {
223
  <div class="section-content">
224
  <div>
225
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug', 'custom-contact-forms' ); ?> (a-z, 0-9, -, _):</label>
226
- <input id="ccf-field-slug" class="field-slug" type="text" value="<%- field.slug %>">
227
  </div>
228
  <div>
229
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
230
- <input id="ccf-field-label" class="field-label" type="text" value="<%- field.label %>">
231
  </div>
232
  <div>
233
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
234
- <input id="ccf-field-value" class="field-value" type="text" value="<%- field.value %>">
235
  </div>
236
  <div>
237
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
@@ -247,11 +247,11 @@ class CCF_Form_Manager {
247
  <div class="section-content">
248
  <div>
249
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
250
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
251
  </div>
252
  <div>
253
  <label for="ccf-field-placeholder"><?php esc_html_e( 'Placeholder Text:', 'custom-contact-forms' ); ?></label>
254
- <input id="ccf-field-placeholder" class="field-placeholder" type="text" value="<%- field.placeholder %>">
255
  </div>
256
  </div>
257
  </div>
@@ -263,15 +263,15 @@ class CCF_Form_Manager {
263
  <div class="section-content">
264
  <div>
265
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug', 'custom-contact-forms' ); ?> (a-z, 0-9, -, _):</label>
266
- <input id="ccf-field-slug" class="field-slug" type="text" value="<%- field.slug %>">
267
  </div>
268
  <div>
269
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
270
- <input id="ccf-field-label" class="field-label" type="text" value="<%- field.label %>">
271
  </div>
272
  <div>
273
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
274
- <input id="ccf-field-value" class="field-value" type="text" value="<%- field.value %>">
275
  </div>
276
  <div>
277
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
@@ -287,11 +287,11 @@ class CCF_Form_Manager {
287
  <div class="section-content">
288
  <div>
289
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
290
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
291
  </div>
292
  <div>
293
  <label for="ccf-field-placeholder"><?php esc_html_e( 'Placeholder Text:', 'custom-contact-forms' ); ?></label>
294
- <input id="ccf-field-placeholder" class="field-placeholder" type="text" value="<%- field.placeholder %>">
295
  </div>
296
  </div>
297
  </div>
@@ -303,7 +303,7 @@ class CCF_Form_Manager {
303
  <div class="section-content">
304
  <div>
305
  <label for="ccf-field-html"><?php esc_html_e( 'HTML Content:', 'custom-contact-forms' ); ?></label>
306
- <textarea id="ccf-field-html" class="field-html"><%- field.html %></textarea>
307
  </div>
308
  </div>
309
  </div>
@@ -312,7 +312,7 @@ class CCF_Form_Manager {
312
  <div class="section-content">
313
  <div>
314
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
315
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
316
  </div>
317
  </div>
318
  </div>
@@ -324,11 +324,11 @@ class CCF_Form_Manager {
324
  <div class="section-content">
325
  <div>
326
  <label for="ccf-field-heading"><?php esc_html_e( 'Heading:', 'custom-contact-forms' ); ?></label>
327
- <input id="ccf-field-heading" class="field-heading" type="text" value="<%- field.heading %>">
328
  </div>
329
  <div>
330
  <label for="ccf-field-subheading"><?php esc_html_e( 'Sub Heading:', 'custom-contact-forms' ); ?></label>
331
- <textarea id="ccf-field-subheading" class="field-subheading" type="text"><%- field.subheading %></textarea>
332
  </div>
333
  </div>
334
  </div>
@@ -337,7 +337,7 @@ class CCF_Form_Manager {
337
  <div class="section-content">
338
  <div>
339
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
340
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
341
  </div>
342
  </div>
343
  </div>
@@ -349,15 +349,15 @@ class CCF_Form_Manager {
349
  <div class="section-content">
350
  <div>
351
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug', 'custom-contact-forms' ); ?> (a-z, 0-9, -, _):</label>
352
- <input id="ccf-field-slug" class="field-slug" type="text" value="<%- field.slug %>">
353
  </div>
354
  <div>
355
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
356
- <input id="ccf-field-label" class="field-label" type="text" value="<%- field.label %>">
357
  </div>
358
  <div>
359
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
360
- <input id="ccf-field-value" class="field-value" type="text" value="<%- field.value %>">
361
  </div>
362
  <div>
363
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
@@ -373,11 +373,11 @@ class CCF_Form_Manager {
373
  <div class="section-content">
374
  <div>
375
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
376
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
377
  </div>
378
  <div>
379
  <label for="ccf-field-placeholder"><?php esc_html_e( 'Placeholder Text:', 'custom-contact-forms' ); ?></label>
380
- <input id="ccf-field-placeholder" class="field-placeholder" type="text" value="<%- field.placeholder %>">
381
  </div>
382
  </div>
383
  </div>
@@ -389,11 +389,11 @@ class CCF_Form_Manager {
389
  <div class="section-content">
390
  <div>
391
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
392
- <input id="ccf-field-slug" class="field-slug" type="text" value="<%- field.slug %>">
393
  </div>
394
  <div>
395
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
396
- <input id="ccf-field-value" class="field-value" type="text" value="<%- field.value %>">
397
  </div>
398
  </div>
399
  </div>
@@ -402,7 +402,7 @@ class CCF_Form_Manager {
402
  <div class="section-content">
403
  <div>
404
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
405
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
406
  </div>
407
  </div>
408
  </div>
@@ -414,11 +414,11 @@ class CCF_Form_Manager {
414
  <div class="section-content">
415
  <div>
416
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
417
- <input id="ccf-field-slug" class="field-slug" type="text" value="<%- field.slug %>">
418
  </div>
419
  <div>
420
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
421
- <input id="ccf-field-label" class="field-label" type="text" value="<%- field.label %>">
422
  </div>
423
  <div>
424
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
@@ -434,7 +434,7 @@ class CCF_Form_Manager {
434
  <div class="section-content">
435
  <div>
436
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
437
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
438
  </div>
439
  </div>
440
  </div>
@@ -446,16 +446,16 @@ class CCF_Form_Manager {
446
  <div class="section-content">
447
  <div>
448
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
449
- <input id="ccf-field-slug" class="field-slug" type="text" value="<%- field.slug %>">
450
  </div>
451
  <div>
452
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
453
- <input id="ccf-field-label" class="field-label" type="text" value="<%- field.label %>">
454
  </div>
455
  <% if ( ! field.showTime ) { %>
456
  <div>
457
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
458
- <input id="ccf-field-value" class="field-value" type="text" value="<%- field.value %>">
459
  </div>
460
  <% } %>
461
  <div>
@@ -480,12 +480,12 @@ class CCF_Form_Manager {
480
  <div class="section-content">
481
  <div>
482
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
483
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
484
  </div>
485
  <% if ( ! ( field.showTime && field.showDate ) ) { %>
486
  <div>
487
  <label for="ccf-field-placeholder"><?php esc_html_e( 'Placeholder Text:', 'custom-contact-forms' ); ?></label>
488
- <input id="ccf-field-placeholder" class="field-placeholder" type="text" value="<%- field.placeholder %>">
489
  </div>
490
  <% } %>
491
  </div>
@@ -498,15 +498,15 @@ class CCF_Form_Manager {
498
  <div class="section-content">
499
  <div>
500
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
501
- <input id="ccf-field-slug" class="field-slug" type="text" value="<%- field.slug %>">
502
  </div>
503
  <div>
504
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
505
- <input id="ccf-field-label" class="field-label" type="text" value="<%- field.label %>">
506
  </div>
507
  <div>
508
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
509
- <input id="ccf-field-value" class="field-value" type="text" value="<%- field.value %>">
510
  </div>
511
  <div>
512
  <label for="ccf-field-phone-format"><?php esc_html_e( 'Format:', 'custom-contact-forms' ); ?></label>
@@ -529,11 +529,11 @@ class CCF_Form_Manager {
529
  <div class="section-content">
530
  <div>
531
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
532
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
533
  </div>
534
  <div>
535
  <label for="ccf-field-placeholder"><?php esc_html_e( 'Placeholder Text:', 'custom-contact-forms' ); ?></label>
536
- <input id="ccf-field-placeholder" class="field-placeholder" type="text" value="<%- field.placeholder %>">
537
  </div>
538
  </div>
539
  </div>
@@ -545,11 +545,11 @@ class CCF_Form_Manager {
545
  <div class="section-content">
546
  <div>
547
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
548
- <input id="ccf-field-slug" class="field-slug" type="text" value="<%- field.slug %>">
549
  </div>
550
  <div>
551
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
552
- <input id="ccf-field-label" class="field-label" type="text" value="<%- field.label %>">
553
  </div>
554
  <div>
555
  <label for="ccf-field-address-type"><?php esc_html_e( 'Type:', 'custom-contact-forms' ); ?></label>
@@ -572,7 +572,7 @@ class CCF_Form_Manager {
572
  <div class="section-content">
573
  <div>
574
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
575
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
576
  </div>
577
  </div>
578
  </div>
@@ -584,16 +584,16 @@ class CCF_Form_Manager {
584
  <div class="section-content">
585
  <div>
586
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
587
- <input id="ccf-field-slug" class="field-slug" type="text" value="<%- field.slug %>">
588
  </div>
589
  <div>
590
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
591
- <input id="ccf-field-label" class="field-label" type="text" value="<%- field.label %>">
592
  </div>
593
  <% if ( ! field.emailConfirmation ) { %>
594
  <div>
595
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
596
- <input id="ccf-field-value" class="field-value" type="text" value="<%- field.value %>">
597
  </div>
598
  <% } %>
599
  <div>
@@ -617,12 +617,12 @@ class CCF_Form_Manager {
617
  <div class="section-content">
618
  <div>
619
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
620
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
621
  </div>
622
  <% if ( ! field.emailConfirmation ) { %>
623
  <div>
624
  <label for="ccf-field-placeholder"><?php esc_html_e( 'Placeholder Text:', 'custom-contact-forms' ); ?></label>
625
- <input id="ccf-field-placeholder" class="field-placeholder" type="text" value="<%- field.placeholder %>">
626
  </div>
627
  <% } %>
628
  </div>
@@ -632,8 +632,8 @@ class CCF_Form_Manager {
632
  <script type="text/html" id="ccf-field-choice-template">
633
  <a aria-hidden="true" data-icon="&#xe606;" class="move"></a>
634
  <input class="choice-selected" <% if ( choice.selected ) { %>checked<% } %> name="selected" type="checkbox" value="1">
635
- <input class="choice-label" type="text" placeholder="<?php esc_html_e( 'Label', 'custom-contact-forms' ); ?>" value="<%- choice.label %>">
636
- <input class="choice-value" type="text" placeholder="<?php esc_html_e( 'Value', 'custom-contact-forms' ); ?>" value="<%- choice.value %>">
637
  <a aria-hidden="true" data-icon="&#xe605;" class="add"></a>
638
  <a aria-hidden="true" data-icon="&#xe604;" class="delete"></a>
639
  </script>
@@ -644,11 +644,11 @@ class CCF_Form_Manager {
644
  <div class="section-content">
645
  <div>
646
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
647
- <input id="ccf-field-slug" class="field-slug" type="text" value="<%- field.slug %>">
648
  </div>
649
  <div>
650
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
651
- <input id="ccf-field-label" class="field-label" type="text" value="<%- field.label %>">
652
  </div>
653
  <div>
654
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
@@ -669,7 +669,7 @@ class CCF_Form_Manager {
669
  <div class="section-content">
670
  <div>
671
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
672
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
673
  </div>
674
  </div>
675
  </div>
@@ -681,11 +681,11 @@ class CCF_Form_Manager {
681
  <div class="section-content">
682
  <div>
683
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
684
- <input id="ccf-field-slug" class="field-slug" type="text" value="<%- field.slug %>">
685
  </div>
686
  <div>
687
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
688
- <input id="ccf-field-label" class="field-label" type="text" value="<%- field.label %>">
689
  </div>
690
  <div>
691
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
@@ -706,7 +706,7 @@ class CCF_Form_Manager {
706
  <div class="section-content">
707
  <div>
708
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
709
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
710
  </div>
711
  </div>
712
  </div>
@@ -718,11 +718,11 @@ class CCF_Form_Manager {
718
  <div class="section-content">
719
  <div>
720
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
721
- <input id="ccf-field-slug" class="field-slug" type="text" value="<%- field.slug %>">
722
  </div>
723
  <div>
724
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
725
- <input id="ccf-field-label" class="field-label" type="text" value="<%- field.label %>">
726
  </div>
727
  <div>
728
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
@@ -743,7 +743,7 @@ class CCF_Form_Manager {
743
  <div class="section-content">
744
  <div>
745
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
746
- <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%- field.className %>">
747
  </div>
748
  </div>
749
  </div>
@@ -756,30 +756,30 @@ class CCF_Form_Manager {
756
  </script>
757
 
758
  <script type="text/html" id="ccf-single-line-text-preview-template">
759
- <label><%- field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
760
- <input disabled type="text" placeholder="<%- field.placeholder %>" value="<%- field.value %>">
761
  </script>
762
 
763
  <script type="text/html" id="ccf-paragraph-text-preview-template">
764
- <label><%- field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
765
- <textarea placeholder="<%- field.placeholder %>" disabled><%- field.value %></textarea>
766
  </script>
767
 
768
  <script type="text/html" id="ccf-dropdown-preview-template">
769
- <label><%- field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
770
  <select>
771
  <% if ( field.choices.length === 0 || ( field.choices.length === 1 && ! field.choices.at( 0 ).get( 'label' ) && ! field.choices.at( 0 ).get( 'value' ) ) ) { %>
772
  <option><?php esc_html_e( 'An example choice', 'custom-contact-forms' ); ?></option>
773
  <%} else { %>
774
  <% field.choices.each( function( choice ) { %>
775
- <option value="<%- choice.get( 'value' ) %>"><%- choice.get( 'label' ) %></option>
776
  <% }); %>
777
  <% } %>
778
  </select>
779
  </script>
780
 
781
  <script type="text/html" id="ccf-radio-preview-template">
782
- <label><%- field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
783
  <% if ( field.choices.length === 0 || ( field.choices.length === 1 && ! field.choices.at( 0 ).get( 'label' ) && ! field.choices.at( 0 ).get( 'value' ) ) ) { %>
784
  <div>
785
  <input type="radio" value="1" checked="checked"> <label><?php esc_html_e( 'An example choice', 'custom-contact-forms' ); ?></label>
@@ -787,14 +787,14 @@ class CCF_Form_Manager {
787
  <%} else { %>
788
  <% field.choices.each( function( choice ) { %>
789
  <div class="choice">
790
- <input type="radio" value="<%- choice.get( 'value' ) %>" <% if ( choice.get( 'selected' ) ) { %>checked="checked"<% } %>> <label><%- choice.get( 'label' ) %></label>
791
  </div>
792
  <% }); %>
793
  <% } %>
794
  </script>
795
 
796
  <script type="text/html" id="ccf-checkboxes-preview-template">
797
- <label><%- field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
798
  <% if ( field.choices.length === 0 || ( field.choices.length === 1 && ! field.choices.at( 0 ).get( 'label' ) && ! field.choices.at( 0 ).get( 'value' ) ) ) { %>
799
  <div>
800
  <input type="checkbox" value="1" checked="checked"> <label><?php esc_html_e( 'An example choice', 'custom-contact-forms' ); ?></label>
@@ -802,7 +802,7 @@ class CCF_Form_Manager {
802
  <%} else { %>
803
  <% field.choices.each( function( choice ) { %>
804
  <div class="choice">
805
- <input type="checkbox" value="<%- choice.get( 'value' ) %>" <% if ( choice.get( 'selected' ) ) { %>checked="checked"<% } %>> <label><%- choice.get( 'label' ) %></label>
806
  </div>
807
  <% }); %>
808
  <% } %>
@@ -818,13 +818,13 @@ class CCF_Form_Manager {
818
 
819
  <script type="text/html" id="ccf-section-header-preview-template">
820
  <div class="heading">
821
- <% if ( field.heading ) { %><%- field.heading %><% } else { %><?php esc_html_e( 'Section Heading', 'custom-contact-forms' ); ?><% } %>
822
  </div>
823
- <div class="subheading"><% if ( field.subheading ) { %><%- field.subheading %><% } else { %><?php esc_html_e( 'This is the sub-heading text.', 'custom-contact-forms' ); ?><% } %></div>
824
  </script>
825
 
826
  <script type="text/html" id="ccf-name-preview-template">
827
- <label><%- field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
828
  <div class="left">
829
  <input type="text">
830
  <label class="sub-label"><?php esc_html_e( 'First', 'custom-contact-forms' ); ?></label>
@@ -836,9 +836,9 @@ class CCF_Form_Manager {
836
  </script>
837
 
838
  <script type="text/html" id="ccf-date-preview-template">
839
- <label><%- field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
840
  <% if ( field.showDate && ! field.showTime ) { %>
841
- <input value="<%- field.value %>" class="ccf-datepicker" disabled type="text">
842
  <% } else if ( ! field.showDate && field.showTime ) { %>
843
  <div class="full">
844
  <div class="hour">
@@ -881,7 +881,7 @@ class CCF_Form_Manager {
881
  </script>
882
 
883
  <script type="text/html" id="ccf-address-preview-template">
884
- <label><%- field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
885
  <% if ( field.addressType === 'us' ) { %>
886
  <div class="full">
887
  <input type="text">
@@ -940,9 +940,9 @@ class CCF_Form_Manager {
940
  </script>
941
 
942
  <script type="text/html" id="ccf-email-preview-template">
943
- <label><%- field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
944
  <% if ( ! field.emailConfirmation ) { %>
945
- <input placeholder="<% if ( field.placeholder ) { %><%- field.placeholder %><% } else { %><?php esc_html_e( 'email@example.com', 'custom-contact-forms' ); ?><% } %>" disabled type="text" value="<%- field.value %>">
946
  <% } else { %>
947
  <div class="left">
948
  <input type="text">
@@ -956,34 +956,34 @@ class CCF_Form_Manager {
956
  </script>
957
 
958
  <script type="text/html" id="ccf-website-preview-template">
959
- <label><%- field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
960
- <input placeholder="<% if ( field.placeholder ) { %><%- field.placeholder %><% } else { %>http://<% } %>" disabled type="text" value="<%- field.value %>">
961
  </script>
962
 
963
  <script type="text/html" id="ccf-phone-preview-template">
964
- <label><%- field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
965
- <input placeholder="<% if ( field.placeholder ) { %><%- field.placeholder %><% } else { %>(301) 101-8976<% } %>" disabled type="text" value="<%- field.value %>">
966
  </script>
967
 
968
  <script type="text/html" id="ccf-existing-form-table-row-template">
969
 
970
- <td><%- form.ID %></td>
971
  <td>
972
- <a class="edit edit-form title" data-view="form-pane" data-form-id="<%- form.ID %>" href="#form-pane-<%- form.ID %>"><% if ( form.title ) { %><%- form.title %><% } else { %><%- '<?php esc_html_e( '(No title)', 'custom-contact-forms' ); ?>' %><% } %></a>
973
  <div class="actions">
974
- <a class="edit edit-form" data-view="form-pane" data-form-id="<%- form.ID %>" href="#form-pane-<%- form.ID %>"><?php esc_html_e( 'Edit', 'custom-contact-forms' ); ?></a> |
975
  <a class="insert-form-button"><?php esc_html_e( 'Insert into post', 'custom-contact-forms' ); ?></a> |
976
  <a class="delete"><?php esc_html_e( 'Trash', 'custom-contact-forms' ); ?></a>
977
  </div>
978
  </td>
979
  <td>
980
- <%- utils.getPrettyPostDate( form.date ) %>
981
  </td>
982
  <td>
983
- <%- form.author.username %>
984
  </td>
985
  <td>
986
- <%- form.fields.length %>
987
  </td>
988
  <td>
989
  0
@@ -991,25 +991,25 @@ class CCF_Form_Manager {
991
  </script>
992
 
993
  <script type="text/html" id="ccf-form-mce-preview">
994
- <div class="ccf-form-preview form-id-<%- form.ID %>">
995
  <% if ( form.title ) { %>
996
- <h2><%- form.title %></h2>
997
  <% } %>
998
 
999
  <% if ( form.description && form.description != '' ) { %>
1000
- <p><%- form.description %></p>
1001
  <% } %>
1002
 
1003
  <% if ( form.fields ) { %>
1004
  <% _.each( form.fields, function( field ) { %>
1005
- <div class="field <%- field.type %> field-<%- field.ID %>">
1006
  <%= field.preview %>
1007
  </div>
1008
  <% } ); %>
1009
  <% } %>
1010
 
1011
  <div class="field-submit">
1012
- <input type="button" value="<%- form.buttonText %>">
1013
  </div>
1014
  </div>
1015
  </script>
@@ -1025,11 +1025,11 @@ class CCF_Form_Manager {
1025
  <thead>
1026
  <tr>
1027
  <% _.each( columns, function( column ) { %>
1028
- <th scope="col" class="manage-column column-<%- column %>">
1029
  <% if ( 'date' === column ) { %>
1030
  <?php esc_html_e( 'Date', 'custom-contact-forms' ); ?>
1031
  <% } else { %>
1032
- <%- column %>
1033
  <% } %>
1034
  </th>
1035
  <% } ); %>
@@ -1039,11 +1039,11 @@ class CCF_Form_Manager {
1039
  <tfoot>
1040
  <tr>
1041
  <% _.each( columns, function( column ) { %>
1042
- <th scope="col" class="manage-column column-<%- column %>">
1043
  <% if ( 'date' === column ) { %>
1044
  <?php esc_html_e( 'Date', 'custom-contact-forms' ); ?>
1045
  <% } else { %>
1046
- <%- column %>
1047
  <% } %>
1048
  </th>
1049
  <% } ); %>
@@ -1053,7 +1053,7 @@ class CCF_Form_Manager {
1053
 
1054
  <tbody class="submission-rows">
1055
  <tr>
1056
- <td colspan="<%- columns.length + 1 %>">
1057
  <div class="spinner"></div>
1058
  </td>
1059
  </tr>
@@ -1065,17 +1065,17 @@ class CCF_Form_Manager {
1065
  <script type="text/html" id="ccf-submission-row-template">
1066
  <% _.each( currentColumns, function( column ) { %>
1067
  <% if ( 'date' === column ) { %>
1068
- <td colspan="1"><%- utils.getPrettyPostDate( submission.date ) %></td>
1069
  <% } else { %>
1070
  <td colspan="1">
1071
  <% if ( submission.data[column] ) { %>
1072
  <% if ( submission.data[column] instanceof Object ) { var output = '', i = 0; %>
1073
  <% if ( utils.isFieldDate( submission.data[column] ) ) { %>
1074
- <%- utils.getPrettyFieldDate( submission.data[column] ) %>
1075
  <% } else if ( utils.isFieldName( submission.data[column] ) ) { %>
1076
- <%- utils.getPrettyFieldName( submission.data[column] ) %>
1077
  <% } else if ( utils.isFieldAddress( submission.data[column] ) ) { %>
1078
- <%- utils.wordChop( utils.getPrettyFieldAddress( submission.data[column] ), 30 ) %>
1079
  <% } else { %>
1080
  <% for ( var key in submission.data[column] ) { if ( submission.data[column].hasOwnProperty( key ) ) {
1081
  if ( i > 0 ) {
@@ -1085,10 +1085,10 @@ class CCF_Form_Manager {
1085
 
1086
  i++;
1087
  } } %>
1088
- <%- utils.wordChop( output, 30 ) %>
1089
  <% } %>
1090
  <% } else { %>
1091
- <%- utils.wordChop( submission.data[column] ) %>
1092
  <% } %>
1093
  <% } else { %>
1094
  <span><?php esc_html_e( '-', 'custom-contact-forms' ); ?></span>
@@ -1097,37 +1097,37 @@ class CCF_Form_Manager {
1097
  <% } %>
1098
  <% } ); %>
1099
  <td class="actions">
1100
- <a href="#TB_inline?height=300&amp;width=400&amp;inlineId=submission-content" data-submission-date="<%- submission.date %>" data-submission-id="<%- submission.ID %>" class="view" data-icon="&#xe601;"></a>
1101
  <a class="delete" data-icon="&#xe602;"></a>
1102
 
1103
- <div class="submission-wrapper" id="ccf-submission-content-<%- submission.ID %>">
1104
  <div class="ccf-submission-content">
1105
- <% _.each( columns, function( column ) { %>
1106
  <div class="field-slug">
1107
- <%- column %>
1108
  </div>
1109
  <div class="field-content">
1110
  <% if ( submission.data[column] ) { %>
1111
  <% if ( submission.data[column] instanceof Object ) { %>
1112
  <% if ( utils.isFieldDate( submission.data[column] ) ) { %>
1113
- <%- utils.getPrettyFieldDate( submission.data[column] ) %>
1114
  <% } else if ( utils.isFieldName( submission.data[column] ) ) { %>
1115
- <%- utils.getPrettyFieldName( submission.data[column] ) %>
1116
  <% } else if ( utils.isFieldAddress( submission.data[column] ) ) { %>
1117
- <%- utils.getPrettyFieldAddress( submission.data[column] ) %>
1118
  <% } else { %>
1119
  <% for ( var key in submission.data[column] ) { if ( submission.data[column].hasOwnProperty( key ) ) { %>
1120
- <% if ( isNaN( key ) ) { %><strong><%- key %>:</strong> <% } %><%- submission.data[column][key] %><br>
1121
  <% } } %>
1122
  <% } %>
1123
  <% } else { %>
1124
- <%- submission.data[column] %>
1125
  <% } %>
1126
  <% } else { %>
1127
  <span>-</span>
1128
  <% } %>
1129
  </div>
1130
- <% } ); %>
1131
  </div>
1132
  </div>
1133
  </td>
@@ -1135,18 +1135,18 @@ class CCF_Form_Manager {
1135
 
1136
 
1137
  <script type="text/html" id="ccf-no-submissions-row-template">
1138
- <td colspan="<%- columns.length + 1 %>" class="no-submissions"><?php esc_html_e( 'There are no submissions.', 'custom-contact-forms' ); ?></td>
1139
  </script>
1140
 
1141
  <script type="text/html" id="ccf-submissions-controller-template">
1142
  <% var i = 0; _.each( columns, function( column ) { %>
1143
 
1144
- <label for="ccf-column-<%- column %>">
1145
- <input class="submission-column-checkbox" type="checkbox" id="ccf-column-<%- column %>" <% if ( i < 4 || 'date' === column ) { %>checked<% } %> value="<%- column %>">
1146
  <% if ( 'date' === column ) { %>
1147
  <?php esc_html_e( 'Date', 'custom-contact-forms' ); ?>
1148
  <% } else { %>
1149
- <%- column %>
1150
  <% } %>
1151
  </label>
1152
 
68
  <div class="right">
69
  <a aria-hidden="true" data-icon="&#xe602;" class="delete"></a>
70
  </div>
71
+ <span class="label"><%= label %></span>
72
  </h4>
73
 
74
  <div class="preview"></div>
118
  <div class="section-content">
119
  <p>
120
  <label for="ccf_form_title"><?php esc_html_e( 'Form Title:', 'custom-contact-forms' ); ?></label>
121
+ <input class="widefat form-title" id="ccf_form_title" name="title" type="text" value="<%= form.title %>">
122
  </p>
123
 
124
  <p>
125
  <label for="ccf_form_description"><?php esc_html_e( 'Form Description:', 'custom-contact-forms' ); ?></label>
126
+ <textarea class="widefat form-description" id="ccf_form_description" name="description"><%= form.description %></textarea>
127
  </p>
128
 
129
  <p>
130
  <label for="ccf_form_button_text"><?php esc_html_e( 'Button Text:', 'custom-contact-forms' ); ?></label>
131
+ <input class="widefat form-button-text" id="ccf_form_button_text" name="text" type="text" value="<%= form.buttonText %>">
132
  </p>
133
 
134
  <p>
141
  </p>
142
  <p class="completion-redirect-url">
143
  <label for="ccf_form_completion_redirect_url"><?php esc_html_e( 'Redirect URL:', 'custom-contact-forms' ); ?></label>
144
+ <input class="widefat form-completion-redirect-url" id="ccf_form_completion_redirect_url" name="text" type="text" value="<%= form.completionRedirectUrl %>">
145
  </p>
146
  <p class="completion-message">
147
  <label for="ccf_form_completion_message"><?php esc_html_e( 'Completion Message:', 'custom-contact-forms' ); ?></label>
148
+ <textarea class="widefat form-completion-message" id="ccf_form_completion_message" name="completion-message"><%= form.completionMessage %></textarea>
149
  </p>
150
 
151
  <p>
158
  </p>
159
  <p class="email-notification-addresses">
160
  <label for="ccf_form_email_notification_addresses"><?php esc_html_e( 'Email Addresses (comma separated):', 'custom-contact-forms' ); ?></label>
161
+ <input class="widefat form-email-notification-addresses" id="ccf_form_email_notification_addresses" name="email-notification-addresses" value="<%= form.emailNotificationAddresses %>">
162
  </p>
163
  </div>
164
  </script>
170
  </script>
171
 
172
  <script type="text/html" id="ccf-pagination-template">
173
+ <span class="num-items"><%= totalObjects %> <?php esc_html_e( 'items', 'custom-contact-forms' ); ?></span>
174
 
175
  <a class="first <% if ( currentPage <= 1 ) { %>disabled<% } %>">&laquo;</a>
176
  <a class="prev <% if ( currentPage <= 1 ) { %>disabled<% } %>">&lsaquo;</a>
177
 
178
+ <span class="pages"><%= currentPage %> of <%= totalPages %></span>
179
 
180
  <a class="next <% if ( currentPage >= totalPages ) { %>disabled<% } %>">&rsaquo;</a>
181
  <a class="last <% if ( currentPage >= totalPages ) { %>disabled<% } %>">&raquo;</a>
223
  <div class="section-content">
224
  <div>
225
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug', 'custom-contact-forms' ); ?> (a-z, 0-9, -, _):</label>
226
+ <input id="ccf-field-slug" class="field-slug" type="text" value="<%= field.slug %>">
227
  </div>
228
  <div>
229
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
230
+ <input id="ccf-field-label" class="field-label" type="text" value="<%= field.label %>">
231
  </div>
232
  <div>
233
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
234
+ <input id="ccf-field-value" class="field-value" type="text" value="<%= field.value %>">
235
  </div>
236
  <div>
237
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
247
  <div class="section-content">
248
  <div>
249
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
250
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
251
  </div>
252
  <div>
253
  <label for="ccf-field-placeholder"><?php esc_html_e( 'Placeholder Text:', 'custom-contact-forms' ); ?></label>
254
+ <input id="ccf-field-placeholder" class="field-placeholder" type="text" value="<%= field.placeholder %>">
255
  </div>
256
  </div>
257
  </div>
263
  <div class="section-content">
264
  <div>
265
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug', 'custom-contact-forms' ); ?> (a-z, 0-9, -, _):</label>
266
+ <input id="ccf-field-slug" class="field-slug" type="text" value="<%= field.slug %>">
267
  </div>
268
  <div>
269
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
270
+ <input id="ccf-field-label" class="field-label" type="text" value="<%= field.label %>">
271
  </div>
272
  <div>
273
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
274
+ <input id="ccf-field-value" class="field-value" type="text" value="<%= field.value %>">
275
  </div>
276
  <div>
277
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
287
  <div class="section-content">
288
  <div>
289
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
290
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
291
  </div>
292
  <div>
293
  <label for="ccf-field-placeholder"><?php esc_html_e( 'Placeholder Text:', 'custom-contact-forms' ); ?></label>
294
+ <input id="ccf-field-placeholder" class="field-placeholder" type="text" value="<%= field.placeholder %>">
295
  </div>
296
  </div>
297
  </div>
303
  <div class="section-content">
304
  <div>
305
  <label for="ccf-field-html"><?php esc_html_e( 'HTML Content:', 'custom-contact-forms' ); ?></label>
306
+ <textarea id="ccf-field-html" class="field-html"><%= field.html %></textarea>
307
  </div>
308
  </div>
309
  </div>
312
  <div class="section-content">
313
  <div>
314
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
315
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
316
  </div>
317
  </div>
318
  </div>
324
  <div class="section-content">
325
  <div>
326
  <label for="ccf-field-heading"><?php esc_html_e( 'Heading:', 'custom-contact-forms' ); ?></label>
327
+ <input id="ccf-field-heading" class="field-heading" type="text" value="<%= field.heading %>">
328
  </div>
329
  <div>
330
  <label for="ccf-field-subheading"><?php esc_html_e( 'Sub Heading:', 'custom-contact-forms' ); ?></label>
331
+ <textarea id="ccf-field-subheading" class="field-subheading" type="text"><%= field.subheading %></textarea>
332
  </div>
333
  </div>
334
  </div>
337
  <div class="section-content">
338
  <div>
339
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
340
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
341
  </div>
342
  </div>
343
  </div>
349
  <div class="section-content">
350
  <div>
351
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug', 'custom-contact-forms' ); ?> (a-z, 0-9, -, _):</label>
352
+ <input id="ccf-field-slug" class="field-slug" type="text" value="<%= field.slug %>">
353
  </div>
354
  <div>
355
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
356
+ <input id="ccf-field-label" class="field-label" type="text" value="<%= field.label %>">
357
  </div>
358
  <div>
359
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
360
+ <input id="ccf-field-value" class="field-value" type="text" value="<%= field.value %>">
361
  </div>
362
  <div>
363
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
373
  <div class="section-content">
374
  <div>
375
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
376
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
377
  </div>
378
  <div>
379
  <label for="ccf-field-placeholder"><?php esc_html_e( 'Placeholder Text:', 'custom-contact-forms' ); ?></label>
380
+ <input id="ccf-field-placeholder" class="field-placeholder" type="text" value="<%= field.placeholder %>">
381
  </div>
382
  </div>
383
  </div>
389
  <div class="section-content">
390
  <div>
391
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
392
+ <input id="ccf-field-slug" class="field-slug" type="text" value="<%= field.slug %>">
393
  </div>
394
  <div>
395
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
396
+ <input id="ccf-field-value" class="field-value" type="text" value="<%= field.value %>">
397
  </div>
398
  </div>
399
  </div>
402
  <div class="section-content">
403
  <div>
404
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
405
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
406
  </div>
407
  </div>
408
  </div>
414
  <div class="section-content">
415
  <div>
416
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
417
+ <input id="ccf-field-slug" class="field-slug" type="text" value="<%= field.slug %>">
418
  </div>
419
  <div>
420
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
421
+ <input id="ccf-field-label" class="field-label" type="text" value="<%= field.label %>">
422
  </div>
423
  <div>
424
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
434
  <div class="section-content">
435
  <div>
436
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
437
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
438
  </div>
439
  </div>
440
  </div>
446
  <div class="section-content">
447
  <div>
448
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
449
+ <input id="ccf-field-slug" class="field-slug" type="text" value="<%= field.slug %>">
450
  </div>
451
  <div>
452
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
453
+ <input id="ccf-field-label" class="field-label" type="text" value="<%= field.label %>">
454
  </div>
455
  <% if ( ! field.showTime ) { %>
456
  <div>
457
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
458
+ <input id="ccf-field-value" class="field-value" type="text" value="<%= field.value %>">
459
  </div>
460
  <% } %>
461
  <div>
480
  <div class="section-content">
481
  <div>
482
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
483
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
484
  </div>
485
  <% if ( ! ( field.showTime && field.showDate ) ) { %>
486
  <div>
487
  <label for="ccf-field-placeholder"><?php esc_html_e( 'Placeholder Text:', 'custom-contact-forms' ); ?></label>
488
+ <input id="ccf-field-placeholder" class="field-placeholder" type="text" value="<%= field.placeholder %>">
489
  </div>
490
  <% } %>
491
  </div>
498
  <div class="section-content">
499
  <div>
500
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
501
+ <input id="ccf-field-slug" class="field-slug" type="text" value="<%= field.slug %>">
502
  </div>
503
  <div>
504
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
505
+ <input id="ccf-field-label" class="field-label" type="text" value="<%= field.label %>">
506
  </div>
507
  <div>
508
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
509
+ <input id="ccf-field-value" class="field-value" type="text" value="<%= field.value %>">
510
  </div>
511
  <div>
512
  <label for="ccf-field-phone-format"><?php esc_html_e( 'Format:', 'custom-contact-forms' ); ?></label>
529
  <div class="section-content">
530
  <div>
531
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
532
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
533
  </div>
534
  <div>
535
  <label for="ccf-field-placeholder"><?php esc_html_e( 'Placeholder Text:', 'custom-contact-forms' ); ?></label>
536
+ <input id="ccf-field-placeholder" class="field-placeholder" type="text" value="<%= field.placeholder %>">
537
  </div>
538
  </div>
539
  </div>
545
  <div class="section-content">
546
  <div>
547
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
548
+ <input id="ccf-field-slug" class="field-slug" type="text" value="<%= field.slug %>">
549
  </div>
550
  <div>
551
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
552
+ <input id="ccf-field-label" class="field-label" type="text" value="<%= field.label %>">
553
  </div>
554
  <div>
555
  <label for="ccf-field-address-type"><?php esc_html_e( 'Type:', 'custom-contact-forms' ); ?></label>
572
  <div class="section-content">
573
  <div>
574
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
575
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
576
  </div>
577
  </div>
578
  </div>
584
  <div class="section-content">
585
  <div>
586
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
587
+ <input id="ccf-field-slug" class="field-slug" type="text" value="<%= field.slug %>">
588
  </div>
589
  <div>
590
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
591
+ <input id="ccf-field-label" class="field-label" type="text" value="<%= field.label %>">
592
  </div>
593
  <% if ( ! field.emailConfirmation ) { %>
594
  <div>
595
  <label for="ccf-field-value"><?php esc_html_e( 'Initial Value:', 'custom-contact-forms' ); ?></label>
596
+ <input id="ccf-field-value" class="field-value" type="text" value="<%= field.value %>">
597
  </div>
598
  <% } %>
599
  <div>
617
  <div class="section-content">
618
  <div>
619
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
620
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
621
  </div>
622
  <% if ( ! field.emailConfirmation ) { %>
623
  <div>
624
  <label for="ccf-field-placeholder"><?php esc_html_e( 'Placeholder Text:', 'custom-contact-forms' ); ?></label>
625
+ <input id="ccf-field-placeholder" class="field-placeholder" type="text" value="<%= field.placeholder %>">
626
  </div>
627
  <% } %>
628
  </div>
632
  <script type="text/html" id="ccf-field-choice-template">
633
  <a aria-hidden="true" data-icon="&#xe606;" class="move"></a>
634
  <input class="choice-selected" <% if ( choice.selected ) { %>checked<% } %> name="selected" type="checkbox" value="1">
635
+ <input class="choice-label" type="text" placeholder="<?php esc_html_e( 'Label', 'custom-contact-forms' ); ?>" value="<%= choice.label %>">
636
+ <input class="choice-value" type="text" placeholder="<?php esc_html_e( 'Value', 'custom-contact-forms' ); ?>" value="<%= choice.value %>">
637
  <a aria-hidden="true" data-icon="&#xe605;" class="add"></a>
638
  <a aria-hidden="true" data-icon="&#xe604;" class="delete"></a>
639
  </script>
644
  <div class="section-content">
645
  <div>
646
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
647
+ <input id="ccf-field-slug" class="field-slug" type="text" value="<%= field.slug %>">
648
  </div>
649
  <div>
650
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
651
+ <input id="ccf-field-label" class="field-label" type="text" value="<%= field.label %>">
652
  </div>
653
  <div>
654
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
669
  <div class="section-content">
670
  <div>
671
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
672
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
673
  </div>
674
  </div>
675
  </div>
681
  <div class="section-content">
682
  <div>
683
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
684
+ <input id="ccf-field-slug" class="field-slug" type="text" value="<%= field.slug %>">
685
  </div>
686
  <div>
687
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
688
+ <input id="ccf-field-label" class="field-label" type="text" value="<%= field.label %>">
689
  </div>
690
  <div>
691
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
706
  <div class="section-content">
707
  <div>
708
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
709
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
710
  </div>
711
  </div>
712
  </div>
718
  <div class="section-content">
719
  <div>
720
  <label for="ccf-field-slug"><span class="required">*</span> <?php esc_html_e( 'Internal Slug (a-z, 0-9, -, _):', 'custom-contact-forms' ); ?></label>
721
+ <input id="ccf-field-slug" class="field-slug" type="text" value="<%= field.slug %>">
722
  </div>
723
  <div>
724
  <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
725
+ <input id="ccf-field-label" class="field-label" type="text" value="<%= field.label %>">
726
  </div>
727
  <div>
728
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
743
  <div class="section-content">
744
  <div>
745
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
746
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="<%= field.className %>">
747
  </div>
748
  </div>
749
  </div>
756
  </script>
757
 
758
  <script type="text/html" id="ccf-single-line-text-preview-template">
759
+ <label><%= field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
760
+ <input disabled type="text" placeholder="<%= field.placeholder %>" value="<%= field.value %>">
761
  </script>
762
 
763
  <script type="text/html" id="ccf-paragraph-text-preview-template">
764
+ <label><%= field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
765
+ <textarea placeholder="<%= field.placeholder %>" disabled><%= field.value %></textarea>
766
  </script>
767
 
768
  <script type="text/html" id="ccf-dropdown-preview-template">
769
+ <label><%= field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
770
  <select>
771
  <% if ( field.choices.length === 0 || ( field.choices.length === 1 && ! field.choices.at( 0 ).get( 'label' ) && ! field.choices.at( 0 ).get( 'value' ) ) ) { %>
772
  <option><?php esc_html_e( 'An example choice', 'custom-contact-forms' ); ?></option>
773
  <%} else { %>
774
  <% field.choices.each( function( choice ) { %>
775
+ <option value="<%= choice.get( 'value' ) %>"><%= choice.get( 'label' ) %></option>
776
  <% }); %>
777
  <% } %>
778
  </select>
779
  </script>
780
 
781
  <script type="text/html" id="ccf-radio-preview-template">
782
+ <label><%= field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
783
  <% if ( field.choices.length === 0 || ( field.choices.length === 1 && ! field.choices.at( 0 ).get( 'label' ) && ! field.choices.at( 0 ).get( 'value' ) ) ) { %>
784
  <div>
785
  <input type="radio" value="1" checked="checked"> <label><?php esc_html_e( 'An example choice', 'custom-contact-forms' ); ?></label>
787
  <%} else { %>
788
  <% field.choices.each( function( choice ) { %>
789
  <div class="choice">
790
+ <input type="radio" value="<%= choice.get( 'value' ) %>" <% if ( choice.get( 'selected' ) ) { %>checked="checked"<% } %>> <label><%= choice.get( 'label' ) %></label>
791
  </div>
792
  <% }); %>
793
  <% } %>
794
  </script>
795
 
796
  <script type="text/html" id="ccf-checkboxes-preview-template">
797
+ <label><%= field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
798
  <% if ( field.choices.length === 0 || ( field.choices.length === 1 && ! field.choices.at( 0 ).get( 'label' ) && ! field.choices.at( 0 ).get( 'value' ) ) ) { %>
799
  <div>
800
  <input type="checkbox" value="1" checked="checked"> <label><?php esc_html_e( 'An example choice', 'custom-contact-forms' ); ?></label>
802
  <%} else { %>
803
  <% field.choices.each( function( choice ) { %>
804
  <div class="choice">
805
+ <input type="checkbox" value="<%= choice.get( 'value' ) %>" <% if ( choice.get( 'selected' ) ) { %>checked="checked"<% } %>> <label><%= choice.get( 'label' ) %></label>
806
  </div>
807
  <% }); %>
808
  <% } %>
818
 
819
  <script type="text/html" id="ccf-section-header-preview-template">
820
  <div class="heading">
821
+ <% if ( field.heading ) { %><%= field.heading %><% } else { %><?php esc_html_e( 'Section Heading', 'custom-contact-forms' ); ?><% } %>
822
  </div>
823
+ <div class="subheading"><% if ( field.subheading ) { %><%= field.subheading %><% } else { %><?php esc_html_e( 'This is the sub-heading text.', 'custom-contact-forms' ); ?><% } %></div>
824
  </script>
825
 
826
  <script type="text/html" id="ccf-name-preview-template">
827
+ <label><%= field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
828
  <div class="left">
829
  <input type="text">
830
  <label class="sub-label"><?php esc_html_e( 'First', 'custom-contact-forms' ); ?></label>
836
  </script>
837
 
838
  <script type="text/html" id="ccf-date-preview-template">
839
+ <label><%= field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
840
  <% if ( field.showDate && ! field.showTime ) { %>
841
+ <input value="<%= field.value %>" class="ccf-datepicker" disabled type="text">
842
  <% } else if ( ! field.showDate && field.showTime ) { %>
843
  <div class="full">
844
  <div class="hour">
881
  </script>
882
 
883
  <script type="text/html" id="ccf-address-preview-template">
884
+ <label><%= field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
885
  <% if ( field.addressType === 'us' ) { %>
886
  <div class="full">
887
  <input type="text">
940
  </script>
941
 
942
  <script type="text/html" id="ccf-email-preview-template">
943
+ <label><%= field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
944
  <% if ( ! field.emailConfirmation ) { %>
945
+ <input placeholder="<% if ( field.placeholder ) { %><%= field.placeholder %><% } else { %><?php esc_html_e( 'email@example.com', 'custom-contact-forms' ); ?><% } %>" disabled type="text" value="<%= field.value %>">
946
  <% } else { %>
947
  <div class="left">
948
  <input type="text">
956
  </script>
957
 
958
  <script type="text/html" id="ccf-website-preview-template">
959
+ <label><%= field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
960
+ <input placeholder="<% if ( field.placeholder ) { %><%= field.placeholder %><% } else { %>http://<% } %>" disabled type="text" value="<%= field.value %>">
961
  </script>
962
 
963
  <script type="text/html" id="ccf-phone-preview-template">
964
+ <label><%= field.label %> <% if ( field.required ) { %><span>*</span><% } %></label>
965
+ <input placeholder="<% if ( field.placeholder ) { %><%= field.placeholder %><% } else { %>(301) 101-8976<% } %>" disabled type="text" value="<%= field.value %>">
966
  </script>
967
 
968
  <script type="text/html" id="ccf-existing-form-table-row-template">
969
 
970
+ <td><%= form.ID %></td>
971
  <td>
972
+ <a class="edit edit-form title" data-view="form-pane" data-form-id="<%= form.ID %>" href="#form-pane-<%= form.ID %>"><% if ( form.title ) { %><%= form.title %><% } else { %><%= '<?php esc_html_e( '(No title)', 'custom-contact-forms' ); ?>' %><% } %></a>
973
  <div class="actions">
974
+ <a class="edit edit-form" data-view="form-pane" data-form-id="<%= form.ID %>" href="#form-pane-<%= form.ID %>"><?php esc_html_e( 'Edit', 'custom-contact-forms' ); ?></a> |
975
  <a class="insert-form-button"><?php esc_html_e( 'Insert into post', 'custom-contact-forms' ); ?></a> |
976
  <a class="delete"><?php esc_html_e( 'Trash', 'custom-contact-forms' ); ?></a>
977
  </div>
978
  </td>
979
  <td>
980
+ <%= utils.getPrettyPostDate( form.date ) %>
981
  </td>
982
  <td>
983
+ <%= form.author.username %>
984
  </td>
985
  <td>
986
+ <%= form.fields.length %>
987
  </td>
988
  <td>
989
  0
991
  </script>
992
 
993
  <script type="text/html" id="ccf-form-mce-preview">
994
+ <div class="ccf-form-preview form-id-<%= form.ID %>">
995
  <% if ( form.title ) { %>
996
+ <h2><%= form.title %></h2>
997
  <% } %>
998
 
999
  <% if ( form.description && form.description != '' ) { %>
1000
+ <p><%= form.description %></p>
1001
  <% } %>
1002
 
1003
  <% if ( form.fields ) { %>
1004
  <% _.each( form.fields, function( field ) { %>
1005
+ <div class="field <%= field.type %> field-<%= field.ID %>">
1006
  <%= field.preview %>
1007
  </div>
1008
  <% } ); %>
1009
  <% } %>
1010
 
1011
  <div class="field-submit">
1012
+ <input type="button" value="<%= form.buttonText %>">
1013
  </div>
1014
  </div>
1015
  </script>
1025
  <thead>
1026
  <tr>
1027
  <% _.each( columns, function( column ) { %>
1028
+ <th scope="col" class="manage-column column-<%= column %>">
1029
  <% if ( 'date' === column ) { %>
1030
  <?php esc_html_e( 'Date', 'custom-contact-forms' ); ?>
1031
  <% } else { %>
1032
+ <%= column %>
1033
  <% } %>
1034
  </th>
1035
  <% } ); %>
1039
  <tfoot>
1040
  <tr>
1041
  <% _.each( columns, function( column ) { %>
1042
+ <th scope="col" class="manage-column column-<%= column %>">
1043
  <% if ( 'date' === column ) { %>
1044
  <?php esc_html_e( 'Date', 'custom-contact-forms' ); ?>
1045
  <% } else { %>
1046
+ <%= column %>
1047
  <% } %>
1048
  </th>
1049
  <% } ); %>
1053
 
1054
  <tbody class="submission-rows">
1055
  <tr>
1056
+ <td colspan="<%= columns.length + 1 %>">
1057
  <div class="spinner"></div>
1058
  </td>
1059
  </tr>
1065
  <script type="text/html" id="ccf-submission-row-template">
1066
  <% _.each( currentColumns, function( column ) { %>
1067
  <% if ( 'date' === column ) { %>
1068
+ <td colspan="1"><%= utils.getPrettyPostDate( submission.date ) %></td>
1069
  <% } else { %>
1070
  <td colspan="1">
1071
  <% if ( submission.data[column] ) { %>
1072
  <% if ( submission.data[column] instanceof Object ) { var output = '', i = 0; %>
1073
  <% if ( utils.isFieldDate( submission.data[column] ) ) { %>
1074
+ <%= utils.getPrettyFieldDate( submission.data[column] ) %>
1075
  <% } else if ( utils.isFieldName( submission.data[column] ) ) { %>
1076
+ <%= utils.getPrettyFieldName( submission.data[column] ) %>
1077
  <% } else if ( utils.isFieldAddress( submission.data[column] ) ) { %>
1078
+ <%= utils.wordChop( utils.getPrettyFieldAddress( submission.data[column] ), 30 ) %>
1079
  <% } else { %>
1080
  <% for ( var key in submission.data[column] ) { if ( submission.data[column].hasOwnProperty( key ) ) {
1081
  if ( i > 0 ) {
1085
 
1086
  i++;
1087
  } } %>
1088
+ <%= utils.wordChop( output, 30 ) %>
1089
  <% } %>
1090
  <% } else { %>
1091
+ <%= utils.wordChop( submission.data[column] ) %>
1092
  <% } %>
1093
  <% } else { %>
1094
  <span><?php esc_html_e( '-', 'custom-contact-forms' ); ?></span>
1097
  <% } %>
1098
  <% } ); %>
1099
  <td class="actions">
1100
+ <a href="#TB_inline?height=300&amp;width=400&amp;inlineId=submission-content" data-submission-date="<%= submission.date %>" data-submission-id="<%= submission.ID %>" class="view" data-icon="&#xe601;"></a>
1101
  <a class="delete" data-icon="&#xe602;"></a>
1102
 
1103
+ <div class="submission-wrapper" id="ccf-submission-content-<%= submission.ID %>">
1104
  <div class="ccf-submission-content">
1105
+ <% for ( column in submission.data ) { %>
1106
  <div class="field-slug">
1107
+ <%= column %>
1108
  </div>
1109
  <div class="field-content">
1110
  <% if ( submission.data[column] ) { %>
1111
  <% if ( submission.data[column] instanceof Object ) { %>
1112
  <% if ( utils.isFieldDate( submission.data[column] ) ) { %>
1113
+ <%= utils.getPrettyFieldDate( submission.data[column] ) %>
1114
  <% } else if ( utils.isFieldName( submission.data[column] ) ) { %>
1115
+ <%= utils.getPrettyFieldName( submission.data[column] ) %>
1116
  <% } else if ( utils.isFieldAddress( submission.data[column] ) ) { %>
1117
+ <%= utils.getPrettyFieldAddress( submission.data[column] ) %>
1118
  <% } else { %>
1119
  <% for ( var key in submission.data[column] ) { if ( submission.data[column].hasOwnProperty( key ) ) { %>
1120
+ <% if ( isNaN( key ) ) { %><strong><%= key %>:</strong> <% } %><%= submission.data[column][key] %><br>
1121
  <% } } %>
1122
  <% } %>
1123
  <% } else { %>
1124
+ <%= submission.data[column] %>
1125
  <% } %>
1126
  <% } else { %>
1127
  <span>-</span>
1128
  <% } %>
1129
  </div>
1130
+ <% } %>
1131
  </div>
1132
  </div>
1133
  </td>
1135
 
1136
 
1137
  <script type="text/html" id="ccf-no-submissions-row-template">
1138
+ <td colspan="<%= columns.length + 1 %>" class="no-submissions"><?php esc_html_e( 'There are no submissions.', 'custom-contact-forms' ); ?></td>
1139
  </script>
1140
 
1141
  <script type="text/html" id="ccf-submissions-controller-template">
1142
  <% var i = 0; _.each( columns, function( column ) { %>
1143
 
1144
+ <label for="ccf-column-<%= column %>">
1145
+ <input class="submission-column-checkbox" type="checkbox" id="ccf-column-<%= column %>" <% if ( i < 4 || 'date' === column ) { %>checked<% } %> value="<%= column %>">
1146
  <% if ( 'date' === column ) { %>
1147
  <?php esc_html_e( 'Date', 'custom-contact-forms' ); ?>
1148
  <% } else { %>
1149
+ <%= column %>
1150
  <% } %>
1151
  </label>
1152
 
classes/class-ccf-upgrader.php CHANGED
@@ -2,15 +2,74 @@
2
 
3
  class CCF_Upgrader {
4
 
 
 
 
 
 
5
  public function setup() {
6
- add_action( 'admin_init', array( $this, 'start_upgrade' ), 100 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  }
8
 
9
- public function start_upgrade() {
10
  global $wpdb;
11
 
12
- if ( ! empty( $upgraded ) ) {
13
- return false;
 
 
 
 
 
 
 
 
 
14
  }
15
 
16
  $forms = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}customcontactforms_forms" );
@@ -21,10 +80,12 @@ class CCF_Upgrader {
21
  $upgraded_forms = array();
22
  }
23
 
 
 
24
  $type_mapping = array(
25
  'Dropdown' => 'dropdown',
26
- 'Textarea' => 'paragraph_text',
27
- 'Text' => 'single_line_text',
28
  'Checkbox' => 'checkboxes',
29
  'Radio' => 'radio',
30
  'fixedEmail' => 'email',
@@ -36,7 +97,6 @@ class CCF_Upgrader {
36
  $form_id = wp_insert_post( array(
37
  'post_type' => 'ccf_form',
38
  'post_title' => $form->form_title,
39
- 'author' => 1,
40
  'post_status' => 'publish',
41
  ) );
42
 
@@ -44,16 +104,19 @@ class CCF_Upgrader {
44
  continue;
45
  }
46
 
47
- update_post_meta( $form_id, 'ccf_old_mapped_id', (int) $form->ID );
48
 
49
  $success_message = $form->form_success_message;
50
  $notification_email = $form->form_email;
51
  $submit_button_text = $form->submit_button_text;
 
52
 
53
  update_post_meta( $form_id, 'ccf_form_buttonText', sanitize_text_field( $submit_button_text ) );
54
  update_post_meta( $form_id, 'ccf_form_email_notification_addresses', sanitize_text_field( $notification_email ) );
55
  update_post_meta( $form_id, 'ccf_form_completion_message', sanitize_text_field( $success_message ) );
56
  update_post_meta( $form_id, 'ccf_form_send_email_notifications', ( ! empty( $notification_email ) ) ? true : false );
 
 
57
 
58
  /**
59
  * Move fields over
@@ -76,7 +139,7 @@ class CCF_Upgrader {
76
  }
77
 
78
  $field_id = wp_insert_post( array(
79
- 'post_type' => 'ccf_form',
80
  'post_title' => $form->form_title,
81
  'post_parent' => $form_id,
82
  'post_status' => 'publish',
@@ -88,19 +151,42 @@ class CCF_Upgrader {
88
  $slug = $field->field_slug;
89
  $label = $field->field_label;
90
  $required = $field->field_required;
 
 
91
 
92
  update_post_meta( $field_id, 'ccf_field_slug', sanitize_text_field( $slug ) );
93
  update_post_meta( $field_id, 'ccf_field_label', sanitize_text_field( $label ) );
94
  update_post_meta( $field_id, 'ccf_field_required', (bool) $required );
95
  update_post_meta( $field_id, 'ccf_field_type', sanitize_text_field( $type ) );
 
 
96
 
97
  if ( ( 'dropdown' === $type || 'radio' === $type || 'checkboxes' === $type ) && ! empty( $field->field_options ) ) {
98
 
99
  $choices = unserialize( $field->field_options );
 
100
 
101
  foreach ( $choices as $choice_id ) {
102
  $choice = $wpdb->get_row( sprintf( "SELECT * FROM {$wpdb->prefix}customcontactforms_field_options WHERE ID='%d'", (int) $choice_id ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  }
 
 
104
  }
105
  }
106
  }
@@ -112,32 +198,99 @@ class CCF_Upgrader {
112
  * Move submissions over
113
  */
114
 
115
- $submissions = $wpdb->get_results( sprintf( "SELECT * FROM {$wpdb->prefix}customcontactforms_user_data WHERE data_formid = '%d'" , (int) $form->ID ) );
116
 
117
  foreach ( $submissions as $submission ) {
118
  $submission_id = wp_insert_post( array(
119
  'post_type' => 'ccf_submission',
120
- 'post_title' => $form->form_title,
121
  'post_parent' => $form_id,
122
  'post_status' => 'publish',
123
  'post_date' => date( 'Y-m-d H:m:s', $submission->data_time ),
124
  ) );
125
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  if ( ! is_wp_error( $submission_id ) ) {
127
- update_post_meta( $submission_id, 'ccf_submission_data', unserialize( $submission->data_value ) );
128
  }
129
  }
130
 
131
- $upgraded_forms[] = (int) $form->ID;
132
- //update_option( 'ccf_upgraded_forms', $upgraded_forms );
 
 
133
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  }
135
 
 
 
 
 
 
 
 
 
 
 
 
136
 
137
  /**
138
  * Return singleton instance of class
139
  *
140
- * @since 6.0
141
  * @return object
142
  */
143
  public static function factory() {
@@ -150,4 +303,4 @@ class CCF_Upgrader {
150
 
151
  return $instance;
152
  }
153
- }
2
 
3
  class CCF_Upgrader {
4
 
5
+ /**
6
+ * Setup updater
7
+ *
8
+ * @since 6.1
9
+ */
10
  public function setup() {
11
+ add_action( 'admin_init', array( $this, 'upgrade' ), 100 );
12
+ add_action( 'admin_notices', array( $this, 'update_nag' ) );
13
+ }
14
+
15
+ /**
16
+ * Prompt user to do update.
17
+ *
18
+ * @since 6.1
19
+ */
20
+ public function update_nag() {
21
+ global $wpdb;
22
+
23
+ $upgraded_forms = get_option( 'ccf_upgraded_forms', null );
24
+
25
+ if ( null === $upgraded_forms ) {
26
+ $forms = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}customcontactforms_forms" );
27
+
28
+ if ( ! empty( $forms ) ) {
29
+ $nonce = wp_create_nonce( 'ccf_upgrade' );
30
+
31
+ ?>
32
+ <div class="update-nag">
33
+ <p>
34
+ <?php esc_html_e( 'Did you just upgrade to a post 6.0 version of Custom Contact Forms? If so, you might need to upgrade your database to use your old forms.', 'custom-contact-forms' ); ?>
35
+ <a href="<?php echo esc_url( admin_url( '?ccf_upgrade=1&nonce=' . $nonce ) ); ?>" class="button"><?php esc_html_e( 'Upgrade', 'custom-contact-forms' ); ?></a>
36
+ <a href="<?php echo esc_url( admin_url( '?ccf_upgrade=0&nonce=' . $nonce ) ); ?>" class="button"><?php esc_html_e( 'Dismiss', 'custom-contact-forms' ); ?></a>
37
+ </p>
38
+ </div>
39
+ <?php
40
+ }
41
+ }
42
+ }
43
+
44
+ /**
45
+ * Update completed message
46
+ *
47
+ * @since 6.1
48
+ */
49
+ public function update_complete() {
50
+ ?>
51
+ <div class="update-nag">
52
+ <p>
53
+ <?php esc_html_e( 'Database update complete.', 'custom-contact-forms' ); ?>
54
+ </p>
55
+ </div>
56
+ <?php
57
  }
58
 
59
+ public function upgrade() {
60
  global $wpdb;
61
 
62
+ if ( ! isset( $_GET['ccf_upgrade'] ) || ! isset( $_GET['nonce'] ) ) {
63
+ return;
64
+ }
65
+
66
+ if ( ! wp_verify_nonce( $_GET['nonce'], 'ccf_upgrade' ) ) {
67
+ return;
68
+ }
69
+
70
+ if ( empty( $_GET['ccf_upgrade'] ) ) {
71
+ update_option( 'ccf_upgraded_forms', array() );
72
+ return;
73
  }
74
 
75
  $forms = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}customcontactforms_forms" );
80
  $upgraded_forms = array();
81
  }
82
 
83
+ $new_upgraded_forms = array();
84
+
85
  $type_mapping = array(
86
  'Dropdown' => 'dropdown',
87
+ 'Textarea' => 'paragraph-text',
88
+ 'Text' => 'single-line-text',
89
  'Checkbox' => 'checkboxes',
90
  'Radio' => 'radio',
91
  'fixedEmail' => 'email',
97
  $form_id = wp_insert_post( array(
98
  'post_type' => 'ccf_form',
99
  'post_title' => $form->form_title,
 
100
  'post_status' => 'publish',
101
  ) );
102
 
104
  continue;
105
  }
106
 
107
+ update_post_meta( $form_id, 'ccf_old_mapped_id', (int) $form->id );
108
 
109
  $success_message = $form->form_success_message;
110
  $notification_email = $form->form_email;
111
  $submit_button_text = $form->submit_button_text;
112
+ $redirect_url = $form->form_thank_you_page;
113
 
114
  update_post_meta( $form_id, 'ccf_form_buttonText', sanitize_text_field( $submit_button_text ) );
115
  update_post_meta( $form_id, 'ccf_form_email_notification_addresses', sanitize_text_field( $notification_email ) );
116
  update_post_meta( $form_id, 'ccf_form_completion_message', sanitize_text_field( $success_message ) );
117
  update_post_meta( $form_id, 'ccf_form_send_email_notifications', ( ! empty( $notification_email ) ) ? true : false );
118
+ update_post_meta( $form_id, 'ccf_form_completion_redirect_url', esc_url_raw( $redirect_url ) );
119
+ update_post_meta( $form_id, 'ccf_form_completion_action_type', ( ! empty( $redirect_url ) ) ? 'redirect' : 'text' );
120
 
121
  /**
122
  * Move fields over
139
  }
140
 
141
  $field_id = wp_insert_post( array(
142
+ 'post_type' => 'ccf_field',
143
  'post_title' => $form->form_title,
144
  'post_parent' => $form_id,
145
  'post_status' => 'publish',
151
  $slug = $field->field_slug;
152
  $label = $field->field_label;
153
  $required = $field->field_required;
154
+ $class = $field->field_class;
155
+ $value = $field->field_value;
156
 
157
  update_post_meta( $field_id, 'ccf_field_slug', sanitize_text_field( $slug ) );
158
  update_post_meta( $field_id, 'ccf_field_label', sanitize_text_field( $label ) );
159
  update_post_meta( $field_id, 'ccf_field_required', (bool) $required );
160
  update_post_meta( $field_id, 'ccf_field_type', sanitize_text_field( $type ) );
161
+ update_post_meta( $field_id, 'ccf_field_className', sanitize_text_field( $class ) );
162
+ update_post_meta( $field_id, 'ccf_field_value', sanitize_text_field( $value ) );
163
 
164
  if ( ( 'dropdown' === $type || 'radio' === $type || 'checkboxes' === $type ) && ! empty( $field->field_options ) ) {
165
 
166
  $choices = unserialize( $field->field_options );
167
+ $new_choices = array();
168
 
169
  foreach ( $choices as $choice_id ) {
170
  $choice = $wpdb->get_row( sprintf( "SELECT * FROM {$wpdb->prefix}customcontactforms_field_options WHERE ID='%d'", (int) $choice_id ) );
171
+
172
+ $label = $choice->option_label;
173
+ $value = $choice->option_value;
174
+
175
+ $choice_id = wp_insert_post( array(
176
+ 'post_type' => 'ccf_choice',
177
+ 'post_parent' => $field_id,
178
+ 'post_status' => 'publish',
179
+ ) );
180
+
181
+ if ( ! is_wp_error( $choice_id ) ) {
182
+ update_post_meta( $choice_id, 'ccf_choice_label', sanitize_text_field( $label ) );
183
+ update_post_meta( $choice_id, 'ccf_choice_value', sanitize_text_field( $value ) );
184
+
185
+ $new_choices[] = $choice_id;
186
+ }
187
  }
188
+
189
+ update_post_meta( $field_id, 'ccf_attached_choices', $new_choices );
190
  }
191
  }
192
  }
198
  * Move submissions over
199
  */
200
 
201
+ $submissions = $wpdb->get_results( sprintf( "SELECT * FROM {$wpdb->prefix}customcontactforms_user_data WHERE data_formid = '%d'" , (int) $form->id ) );
202
 
203
  foreach ( $submissions as $submission ) {
204
  $submission_id = wp_insert_post( array(
205
  'post_type' => 'ccf_submission',
 
206
  'post_parent' => $form_id,
207
  'post_status' => 'publish',
208
  'post_date' => date( 'Y-m-d H:m:s', $submission->data_time ),
209
  ) );
210
 
211
+ $data = $submission->data_value;
212
+ $data_array = array();
213
+
214
+ /**
215
+ * Terrible hack for unserializing weird data form
216
+ */
217
+ while ( ! empty( $data ) ) {
218
+ $key_length = $this->strstrb($data, ':"');
219
+ $key_length = str_replace('s:', '', $key_length);
220
+ $piece_length = 6 + strlen($key_length) + (int) $key_length;
221
+ $key = substr($data, (4 + strlen($key_length)), (int) $key_length);
222
+ $data = substr($data, $piece_length);
223
+ $value_length = $this->strstrb($data, ':"');
224
+ $value_length = str_replace('s:', '', $value_length);
225
+ $piece_length = 6 + strlen($value_length) + (int) $value_length;
226
+ $value = substr($data, (4 + strlen($value_length)), (int) $value_length);
227
+ $data = substr($data, $piece_length);
228
+ $data_array[$key] = $value;
229
+ }
230
+
231
  if ( ! is_wp_error( $submission_id ) ) {
232
+ update_post_meta( $submission_id, 'ccf_submission_data', $data_array );
233
  }
234
  }
235
 
236
+ $upgraded_forms[] = (int) $form->id;
237
+ $new_upgraded_forms[(int) $form->id] = $form_id;
238
+
239
+ update_option( 'ccf_upgraded_forms', $upgraded_forms );
240
  }
241
+
242
+ $posts = new WP_Query( array(
243
+ 'post_type' => 'any',
244
+ 'post_status' => 'publish',
245
+ 'posts_per_page' => 1500,
246
+ ) );
247
+
248
+ if ( $posts->have_posts() ) {
249
+ while ( $posts->have_posts() ) {
250
+ $posts->the_post();
251
+ global $post;
252
+
253
+ $content = $post->post_content;
254
+ $content_changed = false;
255
+
256
+ foreach ( $new_upgraded_forms as $old_form_id => $new_form_id ) {
257
+ if ( preg_match( '#\[customcontact form=.*' . $old_form_id . '.*\]#i', $content ) ) {
258
+ $content_changed = true;
259
+
260
+ $content = preg_replace( '#\[customcontact form=.*' . $old_form_id . '.*\]#i', '[ccf_form id="' . $new_form_id . '"]', $content );
261
+ }
262
+ }
263
+
264
+ if ( $content_changed ) {
265
+ wp_update_post( array(
266
+ 'ID' => $post->ID,
267
+ 'post_content' => $content,
268
+ ) );
269
+ }
270
+ }
271
+ }
272
+
273
+ wp_reset_postdata();
274
+
275
+ add_action( 'admin_notices', array( $this, 'update_complete' ) );
276
  }
277
 
278
+ /**
279
+ * Utility method
280
+ *
281
+ * @param $h
282
+ * @param $n
283
+ * @since 6.1
284
+ * @return mixed
285
+ */
286
+ function strstrb( $h, $n ){
287
+ return array_shift( explode( $n, $h, 2 ) );
288
+ }
289
 
290
  /**
291
  * Return singleton instance of class
292
  *
293
+ * @since 6.1
294
  * @return object
295
  */
296
  public static function factory() {
303
 
304
  return $instance;
305
  }
306
+ }
custom-contact-forms.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://www.taylorlovett.com
5
  * Description: Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
6
  * Author: Taylor Lovett
7
- * Version: 6.0.3
8
  * Author URI: http://www.taylorlovett.com
9
  */
10
 
@@ -23,6 +23,7 @@ require_once( dirname( __FILE__ ) . '/classes/class-ccf-form-manager.php' );
23
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-field-renderer.php' );
24
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-form-renderer.php' );
25
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-form-handler.php' );
 
26
 
27
  CCF_Custom_Contact_Forms::factory();
28
  CCF_Constants::factory();
@@ -34,6 +35,7 @@ CCF_Form_Manager::factory();
34
  CCF_Form_Renderer::factory();
35
  CCF_Field_Renderer::factory();
36
  CCF_Form_Handler::factory();
 
37
 
38
  /**
39
  * Flush the rewrites at the end of init after the plugin is been activated.
4
  * Plugin URI: http://www.taylorlovett.com
5
  * Description: Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
6
  * Author: Taylor Lovett
7
+ * Version: 6.1
8
  * Author URI: http://www.taylorlovett.com
9
  */
10
 
23
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-field-renderer.php' );
24
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-form-renderer.php' );
25
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-form-handler.php' );
26
+ require_once( dirname( __FILE__ ) . '/classes/class-ccf-upgrader.php' );
27
 
28
  CCF_Custom_Contact_Forms::factory();
29
  CCF_Constants::factory();
35
  CCF_Form_Renderer::factory();
36
  CCF_Field_Renderer::factory();
37
  CCF_Form_Handler::factory();
38
+ CCF_Upgrader::factory();
39
 
40
  /**
41
  * Flush the rewrites at the end of init after the plugin is been activated.
languages/custom-contact-forms.mo CHANGED
Binary file
languages/custom-contact-forms.po CHANGED
@@ -5,8 +5,8 @@ msgstr ""
5
  "Project-Id-Version: Custom Contact Forms\n"
6
  "Report-Msgid-Bugs-To: https://github.com/tlovett1/editorial-access-manager/"
7
  "issues\n"
8
- "POT-Creation-Date: 2015-01-13 10:17-0500\n"
9
- "PO-Revision-Date: 2015-01-13 10:17-0500\n"
10
  "Last-Translator: Taylor Lovett <tlovett88@gmail.com>\n"
11
  "Language-Team: LANGUAGE <LL@li.org>\n"
12
  "Language: en\n"
@@ -23,34 +23,34 @@ msgstr ""
23
  "X-Textdomain-Support: yes\n"
24
  "X-Poedit-SearchPath-0: ..\n"
25
 
26
- #: ../classes/class-ccf-api.php:244 ../classes/class-ccf-api.php:514
27
- #: ../classes/class-ccf-api.php:539 ../classes/class-ccf-api.php:568
28
- #: ../classes/class-ccf-api.php:634
29
  msgid "Invalid form ID."
30
  msgstr ""
31
 
32
- #: ../classes/class-ccf-api.php:249 ../classes/class-ccf-api.php:499
33
- #: ../classes/class-ccf-api.php:519
34
  msgid "Sorry, you cannot view forms."
35
  msgstr ""
36
 
37
- #: ../classes/class-ccf-api.php:545 ../classes/class-ccf-api.php:574
38
  msgid "Invalid form."
39
  msgstr ""
40
 
41
- #: ../classes/class-ccf-api.php:549
42
  msgid "Sorry, you cannot view this form."
43
  msgstr ""
44
 
45
- #: ../classes/class-ccf-api.php:645
46
  msgid "The form cannot be deleted."
47
  msgstr ""
48
 
49
- #: ../classes/class-ccf-api.php:649
50
  msgid "Permanently deleted form"
51
  msgstr ""
52
 
53
- #: ../classes/class-ccf-api.php:652
54
  #: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:381
55
  msgid "Deleted post"
56
  msgstr ""
@@ -302,12 +302,12 @@ msgstr ""
302
  msgid "AM/PM is required."
303
  msgstr ""
304
 
305
- #: ../classes/class-ccf-form-handler.php:572
306
  #, php-format
307
  msgid "%s: Form Submission to \"%s\""
308
  msgstr ""
309
 
310
- #: ../classes/class-ccf-form-handler.php:583
311
  #: ../classes/class-ccf-form-renderer.php:117
312
  msgid "Thank you for your submission."
313
  msgstr ""
@@ -798,6 +798,24 @@ msgstr ""
798
  msgid "This phone number is not 10 digits"
799
  msgstr ""
800
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
801
  #: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:42
802
  #: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:48
803
  #: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:108
5
  "Project-Id-Version: Custom Contact Forms\n"
6
  "Report-Msgid-Bugs-To: https://github.com/tlovett1/editorial-access-manager/"
7
  "issues\n"
8
+ "POT-Creation-Date: 2015-01-14 22:25-0500\n"
9
+ "PO-Revision-Date: 2015-01-14 22:25-0500\n"
10
  "Last-Translator: Taylor Lovett <tlovett88@gmail.com>\n"
11
  "Language-Team: LANGUAGE <LL@li.org>\n"
12
  "Language: en\n"
23
  "X-Textdomain-Support: yes\n"
24
  "X-Poedit-SearchPath-0: ..\n"
25
 
26
+ #: ../classes/class-ccf-api.php:244 ../classes/class-ccf-api.php:517
27
+ #: ../classes/class-ccf-api.php:542 ../classes/class-ccf-api.php:571
28
+ #: ../classes/class-ccf-api.php:642
29
  msgid "Invalid form ID."
30
  msgstr ""
31
 
32
+ #: ../classes/class-ccf-api.php:249 ../classes/class-ccf-api.php:502
33
+ #: ../classes/class-ccf-api.php:522
34
  msgid "Sorry, you cannot view forms."
35
  msgstr ""
36
 
37
+ #: ../classes/class-ccf-api.php:548 ../classes/class-ccf-api.php:577
38
  msgid "Invalid form."
39
  msgstr ""
40
 
41
+ #: ../classes/class-ccf-api.php:552
42
  msgid "Sorry, you cannot view this form."
43
  msgstr ""
44
 
45
+ #: ../classes/class-ccf-api.php:653
46
  msgid "The form cannot be deleted."
47
  msgstr ""
48
 
49
+ #: ../classes/class-ccf-api.php:657
50
  msgid "Permanently deleted form"
51
  msgstr ""
52
 
53
+ #: ../classes/class-ccf-api.php:660
54
  #: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:381
55
  msgid "Deleted post"
56
  msgstr ""
302
  msgid "AM/PM is required."
303
  msgstr ""
304
 
305
+ #: ../classes/class-ccf-form-handler.php:571
306
  #, php-format
307
  msgid "%s: Form Submission to \"%s\""
308
  msgstr ""
309
 
310
+ #: ../classes/class-ccf-form-handler.php:582
311
  #: ../classes/class-ccf-form-renderer.php:117
312
  msgid "Thank you for your submission."
313
  msgstr ""
798
  msgid "This phone number is not 10 digits"
799
  msgstr ""
800
 
801
+ #: ../classes/class-ccf-upgrader.php:34
802
+ msgid ""
803
+ "Did you just upgrade to a post 6.0 version of Custom Contact Forms? If so, "
804
+ "you might need to upgrade your database to use your old forms."
805
+ msgstr ""
806
+
807
+ #: ../classes/class-ccf-upgrader.php:35
808
+ msgid "Upgrade"
809
+ msgstr ""
810
+
811
+ #: ../classes/class-ccf-upgrader.php:36
812
+ msgid "Dismiss"
813
+ msgstr ""
814
+
815
+ #: ../classes/class-ccf-upgrader.php:53
816
+ msgid "Database update complete."
817
+ msgstr ""
818
+
819
  #: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:42
820
  #: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:48
821
  #: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:108
readme.txt CHANGED
@@ -4,14 +4,13 @@ Donate link: http://www.taylorlovett.com
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers, forms
5
  Requires at least: 3.9
6
  Tested up to: 4.1
7
- Stable tag: 6.0.3
8
 
9
  Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
10
 
11
  == Description ==
12
 
13
- __Note: Version 6.0 breaks backwards compatibility. This means you will need to rebuild your forms when upgrading to 6.0.
14
- It's worth it; I promise!__
15
 
16
  Custom Contact Forms enables you to build forms the WordPress way. User experience is at the top of the list for this plugin.
17
  Build forms in the media manager instead of going to separate areas of your site. Live previews of your forms are generated
@@ -34,6 +33,9 @@ For questions, feature requests, and support concerning the Custom Contact Forms
34
 
35
  = Changelog ==
36
 
 
 
 
37
  = 6.0.3 =
38
  * Make Google library URL protocol agnostic
39
 
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers, forms
5
  Requires at least: 3.9
6
  Tested up to: 4.1
7
+ Stable tag: 6.1
8
 
9
  Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
10
 
11
  == Description ==
12
 
13
+ __Note: Version 6.0 breaks backwards compatibility. You will need to perform a database update after upgrading from anything pre 6.0. You may also need to reconfigure some of your forms.__
 
14
 
15
  Custom Contact Forms enables you to build forms the WordPress way. User experience is at the top of the list for this plugin.
16
  Build forms in the media manager instead of going to separate areas of your site. Live previews of your forms are generated
33
 
34
  = Changelog ==
35
 
36
+ = 6.1.0 =
37
+ * Pre-6.0 upgrader added
38
+
39
  = 6.0.3 =
40
  * Make Google library URL protocol agnostic
41