Custom Contact Forms - Version 4.5.0

Version Description

  • custom-contact-forms.php - Saved form submissions manager, form background color added to style manager, import/export feature
  • custom-contact-forms-utils.php - Methods added/removed for efficiency
  • custom-contact-forms-admin.php - Admin code seperated in to a different file
  • custom-contact-forms-front.php - Admin code seperated in to a different file
  • modules/db/custom-contact-forms-db.php - DB methods reorganized for efficiency
  • modules/db/custom-contact-forms-activate-db.php - DB methods reorganized for efficiency
  • modules/db/custom-contact-forms-default-db.php - DB methods reorganized for efficiency
  • modules/usage-popover/custom-contact-forms-popover.php - Popover code seperated in to a different file
  • modules/export/custom-contact-forms-export.php - Functions for importing and exporting
  • modules/extra_fields/countries_field.php
  • modules/extra_fields/date_field.php
  • modules/extra_fields/states_field.php
  • modules/widget/custom-contact-forms-dashboard.php
  • css/custom-contact-forms-admin.css - AJAX abilities added
  • css/custom-contact-forms-standard.css - Classes renamed
  • css/custom-contact-forms.css - Classes renamed
  • css/custom-contact-forms-dashboard.css - Classes renamed
  • js/custom-contact-forms-dashboard.js - AJAX abilities added to admin panel
  • lang/custom-contact-forms.po - Allows for translation to different languages
  • lang/custom-contact-forms.mo - Allows for translation to different languages
Download this release

Release Info

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

Code changes from version 4.0.9.1 to 4.5.0

css/custom-contact-forms-admin.css CHANGED
@@ -4,55 +4,29 @@
4
  overflow:visible;
5
  min-width:1020px;
6
  }
7
- #customcontactforms-admin input[type=submit], #ccf-usage-popover input[type=submit] {
8
- -moz-background-clip:border;
9
- -moz-background-inline-policy:continuous;
10
- -moz-background-origin:padding;
11
- background:#21759B url(../images/button-grad.png) repeat-x scroll left top;
12
- border-color:#298CBA;
13
- color:#FFFFFF;
14
- font-weight:bold;
15
- text-shadow:0 -1px 0 rgba(0, 0, 0, 0.3);
16
- }
17
- #customcontactforms-admin .genesis {
18
- text-align:center;
19
- background-color:#FFFEEB;
20
- width:920px;
21
- border:1px solid #cccccc;
22
  display:block;
23
- height:30px;
24
- font-weight:bold;
25
- text-decoration:none;
26
- padding:7px 7px 7px 7px;
27
- margin:.5em 0 .8em 5px;
28
- -moz-border-radius:11px;
29
- -webkit-border-radius:11px;
30
- border-radius:11px;
31
- font-size:11px;
32
- line-height:normal;
33
  }
34
- #customcontactforms-admin .genesis span { color:red; font-weight:bold; }
35
-
36
- #customcontactforms-admin form.blog-horizontal-form {
37
- background-color:#FFFEEB;
38
- width:920px;
39
- border:1px solid #cccccc;
40
- padding:7px;
 
 
41
  display:block;
42
- height:30px;
43
- text-align:center;
44
- margin:.5em 0 .8em 5px;
45
- -moz-border-radius:11px;
46
- -webkit-border-radius:11px;
47
- border-radius:11px;
48
- font-size:11px;
49
- line-height:normal;
50
  }
51
-
52
- #customcontactforms-admin form.blog-horizontal-form span { font-weight:bold; padding-right:4px; }
53
-
54
-
55
-
56
  #customcontactforms-admin input[type=button] {
57
  -moz-background-clip:border;
58
  -moz-background-inline-policy:continuous;
@@ -60,13 +34,23 @@
60
  background:#F2F2F2 url(../images/white-grad.png) repeat-x scroll left top;
61
  text-shadow:0 1px 0 #FFFFFF;
62
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  #customcontactforms-admin label { font-weight:bold; }
64
  #customcontactforms-admin input, textarea, select {
65
  font-size:1em;
66
  }
67
- #customcontactforms-admin .icon32 {
68
- margin:-6px 6px 9px 5px;
69
- }
70
  #customcontactforms-admin .inside {
71
  padding:5px 10px 10px 10px;
72
  }
@@ -104,12 +88,6 @@
104
  padding-top:0;
105
  margin-top:0;
106
  }
107
- #customcontactforms-admin #general-settings {
108
- float:left;
109
- clear:both;
110
- width:500px;
111
- margin:20px 1em 1em 5px;
112
- }
113
 
114
  #customcontactforms-admin .rate-me {
115
  background-color:#FFFEEB;
@@ -122,7 +100,6 @@
122
  text-align:center;
123
  margin:.5em 0 .8em 5px;
124
  -moz-border-radius:11px;
125
- font-size:11px;
126
  -webkit-border-radius:11px;
127
  border-radius:11px;
128
  }
@@ -153,20 +130,58 @@
153
  #customcontactforms-admin a.rate-me span { font-weight:bold }
154
  #customcontactforms-admin .rate-me a span { text-decoration:underline }
155
 
156
- #customcontactforms-admin #form-submissions {
157
  clear:both;
158
  width:1000px;
159
- margin:10px 1em 1em 5px;
160
- }
161
- #customcontactforms-admin #form-submissions .submission-content { }
162
- #customcontactforms-admin #form-submissions tr { border-top:1px solid #666; }
163
- #customcontactforms-admin #form-submissions td { border:0; }
164
- #customcontactforms-admin #form-submissions ul { min-height:30px; width:95%; margin:3px auto 2px auto; }
165
- #customcontactforms-admin #form-submissions ul li { float:left; margin-right:9px; }
166
- #customcontactforms-admin #form-submissions ul li p { display:block; }
167
- #customcontactforms-admin #form-submissions ul li div { font-weight:bold; border-bottom:1px solid #666; padding:2px; text-align:left; }
 
 
 
 
 
 
 
 
 
 
168
 
169
- #customcontactforms-admin #form-submissions table.first { float:left; width:48%; border-collapse:collapse; margin-right:10px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  #customcontactforms-admin #form-submissions table.second { margin-left:48%; border-collapse:collapse; width:48%; }
171
 
172
 
@@ -185,84 +200,34 @@
185
  #customcontactforms-admin #import input[type=checkbox] { margin-left:9px; }
186
  #customcontactforms-admin #import p { padding:0 0 5px 0; margin:0; }
187
 
188
-
189
-
190
- #customcontactforms-admin #create-field-options {
191
- float:left;
192
- width:440px;
193
- margin:20px 1em 1em 5px;
194
  }
 
 
 
 
 
 
 
195
  #customcontactforms-admin #manage-field-options {
196
  float:left;
197
  clear:left;
198
- width:510px;
199
- border-left:1px solid #ccc;
200
  margin:20px 1em 1em 1em;
201
  }
202
-
203
-
204
- #customcontactforms-admin #manage-field-options #edit-field-options {
205
- float:left;
206
- width:500px;
207
- font-size:1em;
208
- margin: 0 0 5px 0;
209
- clear:left;
210
- }
211
- #customcontactforms-admin #manage-field-options #edit-field-comments {
212
- width:500px;
213
- font-size:1em;
214
- margin: 8px 5px 5px 480px;
215
- clear:left;
216
- }
217
- #customcontactforms-admin #manage-field-options ul#edit-field-options li {
218
- margin-bottom:3px;
219
- }
220
- #customcontactforms-admin #manage-field-options .option-header {
221
- -moz-border-radius:6px;
222
- -khtml-border-radius:6px;
223
- -webkit-border-radius:6px;
224
- border-radius:6px;
225
- background-color:#efefef;
226
- display:block;
227
- border:1px solid #efefef;
228
- float:left;
229
- border-spacing:0;
230
- height:30px;
231
- width:480px;
232
- font-weight:bold;
233
- clear:both;
234
- margin:4px 0 8px 0;
235
- }
236
- #customcontactforms-admin #manage-field-options .slug,
237
- #customcontactforms-admin #manage-field-options .label,
238
- #customcontactforms-admin #manage-field-options .option-value,
239
- #customcontactforms-admin #manage-field-options .action {
240
- width:100px;
241
- display:block;
242
  float:left;
243
- text-align:center;
244
- padding:6px 0 0 0;
245
- }
246
- #customcontactforms-admin #manage-field-options .action { width:155px; }
247
- #customcontactforms-admin #manage-field-options .option-value { width:125px; }
248
- #customcontactforms-admin #manage-field-options .create-field-options-header {
249
- -moz-border-radius:6px;
250
- -khtml-border-radius:6px;
251
- -webkit-border-radius:6px;
252
- border-radius:6px;
253
- background-color:#efefef;
254
- border:1px solid #efefef;
255
- border-spacing:0;
256
- height:24px;
257
- padding:6px 0 0 10px ;
258
- margin:4px 0 8px 0;
259
- font-weight:bold;
260
- margin-left:510px;
261
  }
262
 
263
- #customcontactforms-admin #manage-field-options .evenrow-field-options div { background-color:#f9f9f9; }
264
- #customcontactforms-admin #manage-field-options .evenrow-field-options { background-color:#f9f9f9; }
265
- #customcontactforms-admin #general-settings label { font-weight:bold; }
266
  .ccf-style-example {
267
  background:url(../images/style-example.gif) no-repeat top left;
268
  width:405px;
@@ -304,7 +269,6 @@
304
  }
305
  #customcontactforms-admin #plugin-news ul li.first { border-bottom:1px dashed #666; }
306
  #customcontactforms-admin #manage-styles {
307
- margin:1px 1em 1em 5px;
308
  width:1000px;
309
  }
310
  #customcontactforms-admin #manage-styles td { border:0; }
@@ -314,7 +278,14 @@
314
  #customcontactforms-admin #manage-styles input[type=text], #customcontactforms-admin #manage-styles select, #customcontactforms-admin #manage-styles textarea {
315
  width:80px;
316
  }
317
-
 
 
 
 
 
 
 
318
  #customcontactforms-admin #general-settings form div p.descrip {
319
  font-style:italic;
320
  padding-left:20px;
@@ -339,6 +310,8 @@
339
  #customcontactforms-admin #create-forms .inside div p {
340
  font-size:.8em;
341
  }
 
 
342
  #customcontactforms-admin .manage-h3 {
343
  clear:both;
344
  margin-top:20px;
@@ -348,25 +321,46 @@
348
  }
349
  #customcontactforms-admin #manage-fields td { border:0; }
350
  #customcontactforms-admin #manage-fields .row-one {
351
- margin-bottom:6px;
352
  }
353
  #customcontactforms-admin #manage-fields .row-one label { margin-right:4px; }
354
  #customcontactforms-admin #manage-fields .attach-field-options {
355
  float:left;
356
  padding: 0 0 0 9px;
357
- width:320px;
358
  clear:none;
359
  }
360
- #customcontactforms-admin #manage-fields .dettach-field-options {
361
  clear:left;
362
  float:left;
363
- padding: 0 0 0 30px;
364
- width:300px;
365
  }
366
  #customcontactforms-admin #manage-forms {
367
  width:1000px;
368
  margin-right:10px;
369
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
  #customcontactforms-admin #manage-forms td { border:0; }
371
  #customcontactforms-admin #manage-fixed-fields {
372
  width:1000px;
@@ -391,6 +385,8 @@
391
  float:right;
392
  width: 80px; padding:0 18px 0 8px;
393
  }
 
 
394
  #customcontactforms-admin .attach_styles {
395
  float:left;
396
  width:300px;
@@ -423,10 +419,10 @@
423
  -webkit-border-radius:10px;
424
  border-radius:15px;
425
  position:fixed;
 
426
  left:50%;
427
  background-color:white;
428
  top:20px;
429
- z-index:10000;
430
  bottom:20px;
431
  -moz-box-shadow:0 0 14px #123;
432
  -webkit-box-shadow: 0 0 14px #123;
@@ -467,7 +463,9 @@
467
  #ccf-usage-popover div.popover-body ul li { margin-left:20px; }
468
  #ccf-usage-popover div.popover-body p { padding:8px; font-size:1em; text-align:left; }
469
  #ccf-usage-popover div.popover-body form { width:100%; text-align:center; }
470
-
 
 
471
 
472
  .modal-overlay {
473
  position:fixed;
@@ -500,7 +498,7 @@
500
  -moz-box-shadow:0 0 14px #123;
501
  -webkit-box-shadow: 0 0 14px #123;
502
  box-shadow:0 0 14px #123;
503
- z-index:5;
504
  }
505
 
506
  .debug-window {
@@ -522,7 +520,7 @@
522
  -moz-box-shadow:0 0 14px #123;
523
  -webkit-box-shadow: 0 0 14px #123;
524
  box-shadow:0 0 14px #123;
525
- z-index:5;
526
  }
527
 
528
  .modal-close-btn {
@@ -554,7 +552,7 @@
554
  -moz-box-shadow:0 0 14px #123;
555
  -webkit-box-shadow: 0 0 14px #123;
556
  box-shadow:0 0 14px #123;
557
- z-index:5;
558
  position:fixed;
559
  left:50%;
560
  top:40%;
@@ -570,4 +568,52 @@
570
  color:#000;
571
  font-size:16px;
572
  }
573
- .modal-wpspin { margin-left:5px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  overflow:visible;
5
  min-width:1020px;
6
  }
7
+ #customcontactforms-admin .plugin-header {
8
+ clear:both;
9
+ padding:0;
10
+ margin:0;
11
+ width:100%;
 
 
 
 
 
 
 
 
 
 
12
  display:block;
13
+ height:60px;
14
+ background:url(../images/admin-icon.png) no-repeat 0px 10px;
 
 
 
 
 
 
 
 
15
  }
16
+ #customcontactforms-admin .plugin-header h2 {
17
+ float:left;
18
+ clear:none;
19
+ margin-left:46px;
20
+ width:30%;
21
+ display:block; padding:0;
22
+ }
23
+ #customcontactforms-admin .plugin-header input {
24
+ float:right;
25
  display:block;
26
+ margin:0.83em 0;
27
+ margin-right:65px;
28
+ clear:none;
 
 
 
 
 
29
  }
 
 
 
 
 
30
  #customcontactforms-admin input[type=button] {
31
  -moz-background-clip:border;
32
  -moz-background-inline-policy:continuous;
34
  background:#F2F2F2 url(../images/white-grad.png) repeat-x scroll left top;
35
  text-shadow:0 1px 0 #FFFFFF;
36
  }
37
+ #customcontactforms-admin .loading-img {
38
+ display:none;
39
+ }
40
+ #customcontactforms-admin input[type=submit], #ccf-usage-popover input[type=submit] {
41
+ -moz-background-clip:border;
42
+ -moz-background-inline-policy:continuous;
43
+ -moz-background-origin:padding;
44
+ background:#21759B url(../images/button-grad.png) repeat-x scroll left top;
45
+ border-color:#298CBA;
46
+ color:#FFFFFF;
47
+ font-weight:bold;
48
+ text-shadow:0 -1px 0 rgba(0, 0, 0, 0.3);
49
+ }
50
  #customcontactforms-admin label { font-weight:bold; }
51
  #customcontactforms-admin input, textarea, select {
52
  font-size:1em;
53
  }
 
 
 
54
  #customcontactforms-admin .inside {
55
  padding:5px 10px 10px 10px;
56
  }
88
  padding-top:0;
89
  margin-top:0;
90
  }
 
 
 
 
 
 
91
 
92
  #customcontactforms-admin .rate-me {
93
  background-color:#FFFEEB;
100
  text-align:center;
101
  margin:.5em 0 .8em 5px;
102
  -moz-border-radius:11px;
 
103
  -webkit-border-radius:11px;
104
  border-radius:11px;
105
  }
130
  #customcontactforms-admin a.rate-me span { font-weight:bold }
131
  #customcontactforms-admin .rate-me a span { text-decoration:underline }
132
 
133
+ #customcontactforms-admin #form-submissions-table {
134
  clear:both;
135
  width:1000px;
136
+ }
137
+ #customcontactforms-admin .genesis {
138
+ text-align:center;
139
+ background-color:#FFFEEB;
140
+ width:920px;
141
+ border:1px solid #cccccc;
142
+ display:block;
143
+ height:30px;
144
+ font-weight:bold;
145
+ text-decoration:none;
146
+ padding:7px 7px 7px 7px;
147
+ margin:.5em 0 .8em 5px;
148
+ -moz-border-radius:11px;
149
+ -webkit-border-radius:11px;
150
+ border-radius:11px;
151
+ font-size:11px;
152
+ line-height:normal;
153
+ }
154
+ #customcontactforms-admin .genesis span { color:red; font-weight:bold; }
155
 
156
+ #customcontactforms-admin form.blog-horizontal-form {
157
+ background-color:#FFFEEB;
158
+ width:920px;
159
+ border:1px solid #cccccc;
160
+ padding:7px;
161
+ display:block;
162
+ height:30px;
163
+ text-align:center;
164
+ margin:.5em 0 .8em 5px;
165
+ -moz-border-radius:11px;
166
+ -webkit-border-radius:11px;
167
+ border-radius:11px;
168
+ font-size:11px;
169
+ line-height:normal;
170
+ }
171
+
172
+ #customcontactforms-admin form.blog-horizontal-form input[type=text] { width:100px; }
173
+
174
+ #customcontactforms-admin form.blog-horizontal-form span { font-weight:bold; padding-right:4px; }
175
+ #customcontactforms-admin #form-submissions-hidden { display:none; }
176
+ #customcontactforms-admin #form-submissions-table .submission-content { }
177
+ #customcontactforms-admin #form-submissions-table tr { border-top:1px solid #666; }
178
+ #customcontactforms-admin #form-submissions-table td { border:0; }
179
+ #customcontactforms-admin #form-submissions-table ul { min-height:30px; width:95%; margin:3px auto 2px auto; }
180
+ #customcontactforms-admin #form-submissions-table ul li { float:left; margin-right:9px; }
181
+ #customcontactforms-admin #form-submissions-table ul li p { display:block; }
182
+ #customcontactforms-admin #form-submissions-table ul li div { font-weight:bold; border-bottom:1px solid #666; padding:2px; text-align:left; }
183
+
184
+ #customcontactforms-admin #form-submissions-table table.first { float:left; width:48%; border-collapse:collapse; margin-right:10px; }
185
  #customcontactforms-admin #form-submissions table.second { margin-left:48%; border-collapse:collapse; width:48%; }
186
 
187
 
200
  #customcontactforms-admin #import input[type=checkbox] { margin-left:9px; }
201
  #customcontactforms-admin #import p { padding:0 0 5px 0; margin:0; }
202
 
203
+ #customcontactforms-admin #manage-field-options table {
204
+ font-size:1em;
205
+ margin: 0 0 5px 14px;
206
+ width:95%;
 
 
207
  }
208
+ #customcontactforms-admin #manage-field-options table td { padding-left:8px; padding-top:3px; padding-bottom:3px; }
209
+ #customcontactforms-admin #manage-field-options table thead,
210
+ #customcontactforms-admin #manage-field-options table tfoot {
211
+ background-color:#f4f4f4;
212
+ }
213
+ #customcontactforms-admin #manage-field-options table thead th,
214
+ #customcontactforms-admin #manage-field-options table tfoot th { padding:8px; text-align:left; }
215
  #customcontactforms-admin #manage-field-options {
216
  float:left;
217
  clear:left;
218
+ width:530px;
 
219
  margin:20px 1em 1em 1em;
220
  }
221
+ #customcontactforms-admin #create-field-options {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
222
  float:left;
223
+ clear:none;
224
+ width:420px;
225
+ margin:20px 1em 1em 5px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
226
  }
227
 
228
+ #customcontactforms-admin #field-options .evenrow-field-options div { background-color:#f9f9f9; }
229
+ #customcontactforms-admin #field-options .evenrow-field-options { background-color:#f9f9f9; }
230
+
231
  .ccf-style-example {
232
  background:url(../images/style-example.gif) no-repeat top left;
233
  width:405px;
269
  }
270
  #customcontactforms-admin #plugin-news ul li.first { border-bottom:1px dashed #666; }
271
  #customcontactforms-admin #manage-styles {
 
272
  width:1000px;
273
  }
274
  #customcontactforms-admin #manage-styles td { border:0; }
278
  #customcontactforms-admin #manage-styles input[type=text], #customcontactforms-admin #manage-styles select, #customcontactforms-admin #manage-styles textarea {
279
  width:80px;
280
  }
281
+ #customcontactforms-admin #general-settings {
282
+ clear:both;
283
+ width:1000px;
284
+ margin:20px 1em 1em 5px;
285
+ }
286
+ #customcontactforms-admin #general-settings .gleft { float:left; width:48%; clear:none; }
287
+ #customcontactforms-admin #general-settings .gright { clear:none; float:none; width:48%; margin-left:49%; }
288
+ #customcontactforms-admin #general-settings label { font-weight:bold; }
289
  #customcontactforms-admin #general-settings form div p.descrip {
290
  font-style:italic;
291
  padding-left:20px;
310
  #customcontactforms-admin #create-forms .inside div p {
311
  font-size:.8em;
312
  }
313
+ #customcontactforms-admin #create-forms .role{ display:inline; padding-left:5px; }
314
+ #customcontactforms-admin #create-fields .attach, #customcontactforms-admin #create-forms .attach { margin-top:6px; }
315
  #customcontactforms-admin .manage-h3 {
316
  clear:both;
317
  margin-top:20px;
321
  }
322
  #customcontactforms-admin #manage-fields td { border:0; }
323
  #customcontactforms-admin #manage-fields .row-one {
324
+ margin-bottom:15px;
325
  }
326
  #customcontactforms-admin #manage-fields .row-one label { margin-right:4px; }
327
  #customcontactforms-admin #manage-fields .attach-field-options {
328
  float:left;
329
  padding: 0 0 0 9px;
330
+ width:470px;
331
  clear:none;
332
  }
333
+ #customcontactforms-admin #manage-fields .detach-field-options {
334
  clear:left;
335
  float:left;
336
+ padding: 0 0 0 20px;
337
+ width:470px;
338
  }
339
  #customcontactforms-admin #manage-forms {
340
  width:1000px;
341
  margin-right:10px;
342
  }
343
+ #customcontactforms-admin .fattach {
344
+ margin:6px;
345
+ clear:both;
346
+ -moz-border-radius:6px;
347
+ padding:6px 6px 6px 15px;
348
+ -webkit-border-radius:6px;
349
+ border-radius:6px;
350
+ -moz-box-shadow:0 0 2px #123;
351
+ -webkit-box-shadow: 0 0 2px #123;
352
+ box-shadow:0 0 2px #123;
353
+ background-color:#FFFEEB;
354
+ display:block;
355
+ height:56px;
356
+ width:90%;
357
+ }
358
+ #customcontactforms-admin .form-attach, #customcontactforms-admin .field-attach {
359
+ width:49%; float:left; text-align:left; clear:none;
360
+ }
361
+ #customcontactforms-admin .form-detach, #customcontactforms-admin .field-detach {
362
+ width:49%; float:left; text-align:left; clear:none;
363
+ }
364
  #customcontactforms-admin #manage-forms td { border:0; }
365
  #customcontactforms-admin #manage-fixed-fields {
366
  width:1000px;
385
  float:right;
386
  width: 80px; padding:0 18px 0 8px;
387
  }
388
+ #customcontactforms-admin .bulk-dropdown { margin:8px 1px 8px 8px; font-size:1.1em; padding:4px; }
389
+ #customcontactforms-admin .bulk-apply { margin:8px 8px 8px 8px; }
390
  #customcontactforms-admin .attach_styles {
391
  float:left;
392
  width:300px;
419
  -webkit-border-radius:10px;
420
  border-radius:15px;
421
  position:fixed;
422
+ z-index:10000;
423
  left:50%;
424
  background-color:white;
425
  top:20px;
 
426
  bottom:20px;
427
  -moz-box-shadow:0 0 14px #123;
428
  -webkit-box-shadow: 0 0 14px #123;
463
  #ccf-usage-popover div.popover-body ul li { margin-left:20px; }
464
  #ccf-usage-popover div.popover-body p { padding:8px; font-size:1em; text-align:left; }
465
  #ccf-usage-popover div.popover-body form { width:100%; text-align:center; }
466
+ #ccf-usage-popover div.popover-body .insert-default-content-button {
467
+ margin:5px auto 5px auto;
468
+ }
469
 
470
  .modal-overlay {
471
  position:fixed;
498
  -moz-box-shadow:0 0 14px #123;
499
  -webkit-box-shadow: 0 0 14px #123;
500
  box-shadow:0 0 14px #123;
501
+ z-index:10000;
502
  }
503
 
504
  .debug-window {
520
  -moz-box-shadow:0 0 14px #123;
521
  -webkit-box-shadow: 0 0 14px #123;
522
  box-shadow:0 0 14px #123;
523
+ z-index:500;
524
  }
525
 
526
  .modal-close-btn {
552
  -moz-box-shadow:0 0 14px #123;
553
  -webkit-box-shadow: 0 0 14px #123;
554
  box-shadow:0 0 14px #123;
555
+ z-index:5000;
556
  position:fixed;
557
  left:50%;
558
  top:40%;
568
  color:#000;
569
  font-size:16px;
570
  }
571
+ .modal-wpspin { margin-left:5px; }
572
+ #customcontactforms-admin .pagination {
573
+ font-size: 80%;
574
+ }
575
+
576
+ #customcontactforms-admin .pagination a {
577
+ text-decoration: none;
578
+ border: solid 1px #AAE;
579
+ color: #15B;
580
+ }
581
+
582
+ #customcontactforms-admin .pagination a, .pagination span {
583
+ display: block;
584
+ float: left;
585
+ padding: 0.3em 0.5em;
586
+ margin-right: 5px;
587
+ margin-bottom: 5px;
588
+ min-width:1em;
589
+ text-align:center;
590
+ }
591
+
592
+ #customcontactforms-admin .pagination .current {
593
+ background: #26B;
594
+ color: #fff;
595
+ border: solid 1px #AAE;
596
+ }
597
+
598
+ #customcontactforms-admin .pagination .current.prev, #customcontactforms-admin .pagination .current.next{
599
+ color:#999;
600
+ border-color:#999;
601
+ background:#fff;
602
+ }
603
+
604
+ #customcontactforms-admin form.blog-horizontal-form {
605
+ background-color:#FFFEEB;
606
+ width:920px;
607
+ border:1px solid #cccccc;
608
+ padding:7px;
609
+ display:block;
610
+ height:30px;
611
+ text-align:center;
612
+ margin:.5em 0 .8em 5px;
613
+ -moz-border-radius:11px;
614
+ -webkit-border-radius:11px;
615
+ border-radius:11px;
616
+ }
617
+
618
+ #customcontactforms-admin form.blog-horizontal-form span { font-weight:bold; padding-right:4px; }
619
+
css/custom-contact-forms-dashboard.css ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ccf-dashboard {
2
+ width:100%;
3
+ margin:0 0 15px 0;
4
+ }
5
+ #ccf-dashboard thead tr th { text-align:left; padding-left:2px; padding-bottom:7px; }
6
+ #ccf-dashboard tr { margin:0; }
7
+ #ccf-dashboard td { margin:0; padding: 3px;}
8
+ #ccf-dashboard tr.even { background-color:#f0f0f0; }
9
+
10
+ #ccf-dashboard .ccf-view-submission {
11
+ -moz-background-clip:border;
12
+ -moz-background-inline-policy:continuous;
13
+ -moz-background-origin:padding;
14
+ background:#F2F2F2 url(../images/white-grad.png) repeat-x scroll left top;
15
+ text-shadow:0 1px 0 #FFFFFF;
16
+ }
17
+
18
+ #ccf-dashboard .view-submission-popover {
19
+ display:none;
20
+ z-index:20000;
21
+ border: 9px solid #efefef;
22
+ border-spacing:0;
23
+ width:680px;
24
+ padding:0px;
25
+ margin:0 0 0 -340px;
26
+ -moz-border-radius:10px;
27
+ -khtml-border-radius:10px;
28
+ -webkit-border-radius:10px;
29
+ border-radius:15px;
30
+ position:fixed;
31
+ left:50%;
32
+ background-color:white;
33
+ top:20px;
34
+ padding:20px;
35
+ bottom:20px;
36
+ -moz-box-shadow:0 0 14px #123;
37
+ -webkit-box-shadow: 0 0 14px #123;
38
+ box-shadow:0 0 14px #123;
39
+ }
40
+ #ccf-dashboard .view-submission-popover .close {
41
+ position:absolute;
42
+ top:5px;
43
+ right:5px;
44
+ font-size:25px;
45
+ color:#000;
46
+ }
47
+ #ccf-dashboard .view-submission-popover div.top { height:40px; }
48
+ #ccf-dashboard .view-submission-popover div.top .right { float:right; width:40%; }
49
+ #ccf-dashboard .view-submission-popover div.top .right p { margin:3px; padding:0; }
50
+ #ccf-dashboard .view-submission-popover div.top .right span { font-weight:bold; }
51
+ #ccf-dashboard .view-submission-popover div.top .left { float:left; font-size:2em; width:60%; }
52
+ #ccf-dashboard .view-submission-popover ul {
53
+ min-height:30px;
54
+ width:95%;
55
+ margin:3px auto 2px auto;
56
+ }
57
+ #ccf-dashboard .view-submission-popover .separate { clear:both; width:100%; border-bottom:1px solid #ccc; height:1px; margin:3px; }
58
+ #ccf-dashboard .view-submission-popover ul li { float:left; margin-right:9px; }
59
+ #ccf-dashboard .view-submission-popover ul li p { display:block; }
60
+ #ccf-dashboard .view-submission-popover ul li div { font-weight:bold; border-bottom:1px solid #666; padding:2px; text-align:left; }
css/custom-contact-forms-standards.css CHANGED
@@ -1,18 +1,16 @@
1
- .width25 { width:25px; } .width50 { width:50px; } .width75 { width:75px; } .width100 { width:100px; }
2
- .width125 { width:125px; } .width150 { width:150px; } .width175 { width:175px; } .width200 { width:200px; }
3
- .width225 { width:225px; } .width250 { width:250px; } .width275 { width:275px; } .width300 { width:300px; }
4
  .ccf-center { text-align:center; }
5
- .red { color:#F00; }
6
- .bold { font-weight:bold; }
7
- .italic { font-style:italic; }
8
  .ccf-hide { display:none; }
9
- .hide { display:none; }
10
- .clear { clear:both; }
11
- .textcenter { text-align:center; }
12
- .floatleft { float:left; }
13
- .floatright { float:right; }
14
  .form-extra-options-table { margin:0 auto 0 auto; }
15
- .evenrow { background-color:#f5f5f5; }
16
- .alignright { text-align:right; }
17
- .alignleft { text-align:right; }
18
  .ccf-loading-icon { margin-left: 5px; margin-right:7px; }
1
+ .ccf-width25 { width:25px; } .ccf-width50 { width:50px; } .ccf-width75 { width:75px; } .ccf-width100 { width:100px; }
2
+ .ccf-width125 { width:125px; } .ccf-width150 { width:150px; } .ccf-width175 { width:175px; } .ccf-width200 { width:200px; }
3
+ .ccf-width225 { width:225px; } .ccf-width250 { width:250px; } .ccf-width275 { width:275px; } .ccf-width300 { width:300px; }
4
  .ccf-center { text-align:center; }
5
+ .ccf-red { color:#F00; }
6
+ .ccf-bold { font-weight:bold; }
7
+ .ccf-italic { font-style:italic; }
8
  .ccf-hide { display:none; }
9
+ .ccf-clear { clear:both; }
10
+ .ccf-floatleft { float:left; }
11
+ .ccf-floatright { float:right; }
 
 
12
  .form-extra-options-table { margin:0 auto 0 auto; }
13
+ .ccf-evenrow { background-color:#f5f5f5; }
14
+ .ccf-alignright { text-align:right; }
15
+ .ccf-alignleft { text-align:right; }
16
  .ccf-loading-icon { margin-left: 5px; margin-right:7px; }
css/custom-contact-forms.css CHANGED
@@ -63,6 +63,7 @@ form.customcontactform-sidebar div select { width:auto; }
63
  background-color:#fff;
64
  border:1px solid #666;
65
  display:none;
 
66
  }
67
 
68
  .ccf-popover .ccf-popover-close { position:absolute; top:0px; right:5px; font-size:22px; }
@@ -85,9 +86,9 @@ form.customcontactform-sidebar div select { width:auto; }
85
  border-spacing:0;
86
  width:480px;
87
  height:200px;
88
- z-index:10000;
89
  padding:0px;
90
  margin:0;
 
91
  -moz-border-radius:10px;
92
  -khtml-border-radius:10px;
93
  -webkit-border-radius:10px;
63
  background-color:#fff;
64
  border:1px solid #666;
65
  display:none;
66
+ z-index:1000000000;
67
  }
68
 
69
  .ccf-popover .ccf-popover-close { position:absolute; top:0px; right:5px; font-size:22px; }
86
  border-spacing:0;
87
  width:480px;
88
  height:200px;
 
89
  padding:0px;
90
  margin:0;
91
+ z-index:10000;
92
  -moz-border-radius:10px;
93
  -khtml-border-radius:10px;
94
  -webkit-border-radius:10px;
custom-contact-forms-admin.php CHANGED
@@ -6,24 +6,24 @@
6
  */
7
  if (!class_exists('CustomContactFormsAdmin')) {
8
  class CustomContactFormsAdmin extends CustomContactForms {
9
-
10
  function adminInit() {
11
  $this->downloadExportFile();
12
  $this->runImport();
13
  }
14
 
15
  function insertUsagePopover() {
16
- require_once('modules/usage_popover/custom-contact-forms-usage-popover.php');
17
  }
18
 
19
  function isPluginAdminPage() {
20
- return ($GLOBALS['ccf_current_page'] == 'custom-contact-forms');
 
21
  }
22
 
23
  function appendToActionLinks($action_links, $plugin_file) {
24
  static $link_added = false;
25
  if (!$link_added && basename($plugin_file) == 'custom-contact-forms.php') {
26
- $new_link = '<a style="font-weight:bold;" href="options-general.php?page=custom-contact-forms" title="' . __('Manage Custom Contact Forms', 'custom-contact-forms') . '">' . __('Settings', 'custom-contact-forms') . '</a>';
27
  array_unshift($action_links, $new_link);
28
  $link_added = true;
29
  }
@@ -33,18 +33,18 @@ if (!class_exists('CustomContactFormsAdmin')) {
33
  function downloadExportFile() {
34
  if ($_POST['ccf_export']) {
35
  //chmod('modules/export/', 0777);
36
- require_once('modules/export/custom-contact-forms-export.php');
37
  $transit = new CustomContactFormsExport(parent::getAdminOptionsName());
38
  $transit->exportAll();
39
  $file = $transit->exportToFile();
40
- CustomContactFormsStatic::redirect(plugins_url() . '/custom-contact-forms/download.php?location=export/' . $file);
41
  }
42
  }
43
 
44
  function runImport() {
45
  if ($_POST['ccf_clear_import'] || $_POST['ccf_merge_import']) {
46
  //chmod('modules/export/', 0777);
47
- require_once('modules/export/custom-contact-forms-export.php');
48
  $transit = new CustomContactFormsExport(parent::getAdminOptionsName());
49
  $settings['import_general_settings'] = ($_POST['ccf_import_overwrite_settings'] == 1) ? true : false;
50
  $settings['import_forms'] = ($_POST['ccf_import_forms'] == 1) ? true : false;
@@ -54,15 +54,15 @@ if (!class_exists('CustomContactFormsAdmin')) {
54
  $settings['import_saved_submissions'] = ($_POST['ccf_import_saved_submissions'] == 1) ? true : false;
55
  $settings['mode'] = ($_POST['ccf_clear_import']) ? 'clear_import' : 'merge_import';
56
  $transit->importFromFile($_FILES['import_file'], $settings);
57
- CustomContactFormsStatic::redirect('options-general.php?page=custom-contact-forms');
58
  }
59
  }
60
 
61
  function contactAuthor($name, $email, $website, $message, $type) {
62
  if (empty($message)) return false;
63
  if (!class_exists('PHPMailer'))
64
- require_once(ABSPATH . "wp-includes/class-phpmailer.php");
65
- $mail = new PHPMailer(false);
66
  $body = "Name: $name<br />\n";
67
  $body .= "Email: $email<br />\n";
68
  $body .= "Website: $website<br />\n";
@@ -85,8 +85,8 @@ if (!class_exists('CustomContactFormsAdmin')) {
85
  $mail->FromName = 'Custom Contact Forms';
86
  $mail->AddAddress('admin@taylorlovett.com');
87
  $mail->Subject = "CCF Message: $type";
88
- $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
89
  $mail->CharSet = "utf-8";
 
90
  $mail->MsgHTML($body);
91
  $mail->Send();
92
  return true;
@@ -134,6 +134,17 @@ if (!class_exists('CustomContactFormsAdmin')) {
134
  return $out;
135
  }
136
 
 
 
 
 
 
 
 
 
 
 
 
137
  function getFieldOptionsForm() {
138
  $options = parent::selectAllFieldOptions();
139
  $out = '';
@@ -153,34 +164,114 @@ if (!class_exists('CustomContactFormsAdmin')) {
153
  }
154
 
155
  function insertAdminScripts() {
 
156
  $admin_options = parent::getAdminOptions();
157
- ?>
158
- <script type="text/javascript" language="javascript">
159
- var attaching = "<?php _e('Attaching', 'custom-contact-forms'); ?>";
160
- var dettaching = "<?php _e('Dettaching', 'custom-contact-forms'); ?>";
161
- var saving = "<?php _e('Saving', 'custom-contact-forms'); ?>";
162
- var more_options = "<?php _e('More Options', 'custom-contact-forms'); ?>";
163
- var expand = "<?php _e('Expand', 'custom-contact-forms'); ?>";
164
- var click_to_confirm = "<?php _e('Click to Confirm', 'custom-contact-forms'); ?>";
165
- var delete_confirm = "<?php _e('Are you sure you want to delete this', 'custom-contact-forms'); ?>";
166
- var error = "<?php _e('An error has occured. Please try again later.', 'custom-contact-forms'); ?>";
167
- var ccf_plugin_dir = "<?php echo plugins_url() . '/custom-contact-forms'; ?>";
168
- var ccf_file = "<?php echo get_option('siteurl') . '/wp-admin/options-general.php?page=custom-contact-forms'; ?>";
169
- </script>
170
- <?php
 
 
 
 
171
  wp_enqueue_script('jquery');
 
172
  wp_enqueue_script('jquery-ui-core');
173
  wp_enqueue_script('jquery-ui-tabs');
174
- wp_enqueue_script('jquery-tools', plugins_url() . '/custom-contact-forms/js/jquery.tools.min.js', array('jquery', 'jquery-ui-core', 'jquery-ui-tabs'), '1.0');
175
- wp_enqueue_script('ccf-admin-inc', plugins_url() . '/custom-contact-forms/js/custom-contact-forms-admin-inc.js', array('jquery', 'jquery-ui-core', 'jquery-ui-tabs'), '1.0');
176
- wp_enqueue_script('ccf-admin', plugins_url() . '/custom-contact-forms/js/custom-contact-forms-admin.js', array('jquery', 'jquery-ui-core', 'jquery-ui-tabs'), '1.0');
177
- if ($admin_options['admin_ajax'] == 1)
178
- wp_enqueue_script('ccf-admin-ajax', plugins_url() . '/custom-contact-forms/js/custom-contact-forms-admin-ajax.js', array('jquery', 'jquery-ui-core', 'jquery-ui-tabs'), '1.0');
 
 
 
 
 
179
  wp_enqueue_script('ccf-colorpicker', plugins_url() . '/custom-contact-forms/js/colorpicker.js');
180
  wp_enqueue_script('ccf-eye', plugins_url() . '/custom-contact-forms/js/eye.js');
181
  wp_enqueue_script('ccf-utils', plugins_url() . '/custom-contact-forms/js/utils.js');
182
  wp_enqueue_script('ccf-layout', plugins_url() . '/custom-contact-forms/js/layout.js?ver=1.0.2');
183
- wp_enqueue_script('ccf-pagination', plugins_url() . '/custom-contact-forms/js/jquery.pagination.js');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  }
185
 
186
  function printAdminPage() {
@@ -189,178 +280,51 @@ if (!class_exists('CustomContactFormsAdmin')) {
189
  $admin_options['show_install_popover'] = 0;
190
  ?>
191
  <script type="text/javascript" language="javascript">
192
- jQuery(document).ready(function() {
193
  showCCFUsagePopover();
194
  });
195
  </script>
196
  <?php
197
  update_option(parent::getAdminOptionsName(), $admin_options);
198
- } if ($_POST['form_create']) {
199
- parent::insertForm($_POST['form']);
200
- } elseif ($_POST['field_create']) {
201
- parent::insertField($_POST['field']);
202
- } elseif ($_POST['general_settings']) {
203
- $admin_options['default_to_email'] = $_POST['default_to_email'];
204
- $admin_options['default_from_email'] = $_POST['default_from_email'];
205
- $admin_options['default_form_subject'] = $_POST['default_form_subject'];
206
- $admin_options['show_widget_categories'] = $_POST['show_widget_categories'];
207
- $admin_options['show_widget_singles'] = $_POST['show_widget_singles'];
208
- $admin_options['show_widget_pages'] = $_POST['show_widget_pages'];
209
- $admin_options['show_widget_archives'] = $_POST['show_widget_archives'];
210
- $admin_options['show_widget_home'] = $_POST['show_widget_home'];
211
- $admin_options['custom_thank_you'] = $_POST['custom_thank_you'];
212
- $admin_options['email_form_submissions'] = $_POST['email_form_submissions'];
213
- $admin_options['author_link'] = $_POST['author_link'];
214
- $admin_options['admin_ajax'] = $_POST['admin_ajax'];
215
- $admin_options['enable_jquery'] = $_POST['enable_jquery'];
216
- $admin_options['code_type'] = $_POST['code_type'];
217
- $admin_options['form_success_message'] = $_POST['form_success_message'];
218
- $admin_options['form_success_message_title'] = $_POST['form_success_message_title'];
219
- $admin_options['wp_mail_function'] = $_POST['wp_mail_function'];
220
- $admin_options['enable_widget_tooltips'] = $_POST['enable_widget_tooltips'];
221
- $admin_options['remember_field_values'] = $_POST['remember_field_values'];
222
- update_option(parent::getAdminOptionsName(), $admin_options);
223
- } elseif($_POST['configure_mail']) {
224
- $admin_options = $_POST['mail_config'];
225
- update_option(parent::getAdminOptionsName(), $admin_options);
226
- } elseif ($_POST['field_edit']) {
227
- parent::updateField($_POST['field'], $_POST['fid']);
228
- } elseif ($_POST['field_delete']) {
229
- parent::deleteField($_POST['fid']);
230
- } elseif ($_POST['insert_default_content']) {
231
- parent::insertDefaultContent();
232
- } elseif ($_POST['form_delete']) {
233
- parent::deleteForm($_POST['fid']);
234
- } elseif ($_POST['form_edit']) {
235
- parent::updateForm($_POST['form'], $_POST['fid']);
236
- } elseif ($_POST['form_add_field']) {
237
- parent::addFieldToForm($_POST['attach_object_id'], $_POST['fid']);
238
- } elseif ($_POST['attach_field_option']) {
239
- parent::addFieldOptionToField($_POST['attach_object_id'], $_POST['fid']);
240
- } elseif ($_POST['dettach_field']) {
241
- parent::dettachField($_POST['dettach_object_id'], $_POST['fid']);
242
- } elseif ($_POST['dettach_field_option']) {
243
- parent::dettachFieldOption($_POST['dettach_object_id'], $_POST['fid']);
244
- } elseif ($_POST['style_create']) {
245
- parent::insertStyle($_POST['style']);
246
- } elseif ($_POST['style_edit']) {
247
- parent::updateStyle($_POST['style'], $_POST['sid']);
248
- } elseif ($_POST['style_delete']) {
249
- parent::deleteStyle($_POST['sid']);
250
  } elseif ($_POST['contact_author']) {
251
  $this_url = (!empty($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : $_SERVER['SERVER_NAME'];
252
  $this->contactAuthor($_POST['name'], $_POST['email'], $this_url, $_POST['message'], $_POST['type']);
253
- } elseif ($_POST['delete_field_option']) {
254
- parent::deleteFieldOption($_POST['oid']);
255
- } elseif ($_POST['edit_field_option']) {
256
- parent::updateFieldOption($_POST['option'], $_POST['oid']);
257
- } elseif ($_POST['create_field_option']) {
258
- parent::insertFieldOption($_POST['option']);
259
- } elseif ($_POST['form_submission_delete']) {
260
- parent::deleteUserData($_POST['uid']);
261
- } elseif ($_POST['ajax_action']) {
262
- switch ($_POST['ajax_action']) {
263
- case 'delete':
264
- if (empty($_POST['object_id'])) exit;
265
- switch($_POST['object_type']) {
266
- case 'form':
267
- parent::deleteForm($_POST['object_id']);
268
- break;
269
- case 'field':
270
- parent::deleteField($_POST['object_id']);
271
- break;
272
- case 'field_option':
273
- parent::deleteFieldOption($_POST['object_id']);
274
- break;
275
- case 'form_submission':
276
- parent::deleteUserData($_POST['object_id']);
277
- break;
278
- case 'style':
279
- parent::deleteStyle($_POST['object_id']);
280
- break;
281
- }
282
- break;
283
- case 'create_field_option':
284
- parent::insertFieldOption($_POST['option']);
285
- break;
286
- case 'attach':
287
- switch ($_POST['object_type']) {
288
- case 'form':
289
- parent::addFieldToForm($_POST['attach_object_id'], $_POST['attach_to']);
290
- break;
291
- case 'field':
292
- parent::addFieldOptionToField($_POST['attach_object_id'], $_POST['attach_to']);
293
- break;
294
- }
295
- break;
296
- case 'dettach':
297
- //echo '<div style="margin-left:20px;">';
298
- //print_r($_POST);
299
- //echo '</div>';
300
- switch ($_POST['object_type']) {
301
- case 'form':
302
- parent::dettachField($_POST['dettach_object_id'], $_POST['dettach_from']);
303
- break;
304
- case 'field':
305
- parent::dettachFieldOption($_POST['dettach_object_id'], $_POST['dettach_from']);
306
- break;
307
- }
308
- break;
309
- case 'edit':
310
- if (empty($_POST['object_id'])) exit;
311
- switch($_POST['object_type']) {
312
- case 'form':
313
- if (!empty($_POST['form'])) parent::updateForm($_POST['form'], $_POST['object_id']);
314
- break;
315
- case 'field':
316
- if (!empty($_POST['field'])) parent::updateField($_POST['field'], $_POST['object_id']);
317
- break;
318
- case 'field_option':
319
- if (!empty($_POST['option'])) parent::updateFieldOption($_POST['option'], $_POST['object_id']);
320
- break;
321
- case 'style':
322
- if (!empty($_POST['style'])) parent::updateStyle($_POST['style'], $_POST['object_id']);
323
- break;
324
- }
325
- break;
326
- }
327
- exit;
328
  } elseif ($_GET['clear_tables'] == 1) {
329
  parent::emptyAllTables();
330
  }
331
-
332
  $styles = parent::selectAllStyles();
333
  $style_options = '<option value="0">Default</option>';
334
  foreach ($styles as $style)
335
  $style_options .= '<option value="'.$style->id.'">'.$style->style_slug.'</option>';
336
- // Insert plugin admin page XHTML
337
- require_once('modules/export/custom-contact-forms-export.php');
338
  ?>
339
  <div id="customcontactforms-admin">
340
- <div id="icon-themes" class="icon32"></div>
341
- <h2>
342
- <?php _e("Custom Contact Forms", 'custom-contact-forms'); ?>
343
- </h2>
 
 
344
  <ul id="plugin-nav">
345
- <li><a href="#instructions"><?php _e("Plugin Instructions", 'custom-contact-forms'); ?></a></li>
346
- <li><a href="#general-settings"><?php _e("General Settings", 'custom-contact-forms'); ?></a></li>
347
- <li><a href="#configure-mail"><?php _e("Mail Settings", 'custom-contact-forms'); ?></a></li>
348
  <li><a href="#create-fields"><?php _e("Create Fields", 'custom-contact-forms'); ?></a></li>
349
  <li><a href="#create-forms"><?php _e("Create Forms", 'custom-contact-forms'); ?></a></li>
350
  <li><a href="#manage-fields"><?php _e("Manage Fields", 'custom-contact-forms'); ?></a></li>
351
  <li><a href="#manage-fixed-fields"><?php _e("Manage Fixed Fields", 'custom-contact-forms'); ?></a></li>
352
  <li><a href="#manage-forms"><?php _e("Manage Forms", 'custom-contact-forms'); ?></a></li>
353
- <li><a href="#form-submissions"><?php _e("Saved Form Submissions (New!)", 'custom-contact-forms'); ?></a></li>
354
  <li><a href="#create-styles"><?php _e("Create Styles", 'custom-contact-forms'); ?></a></li>
355
  <li><a href="#manage-styles"><?php _e("Manage Styles", 'custom-contact-forms'); ?></a></li>
356
  <li><a href="#manage-field-options"><?php _e("Manage Field Options", 'custom-contact-forms'); ?></a></li>
357
- <li><a class="red" href="#contact-author"><?php _e("Suggest a Feature", 'custom-contact-forms'); ?></a></li>
358
  <li><a href="#contact-author"><?php _e("Bug Report", 'custom-contact-forms'); ?></a></li>
359
  <li><a href="#custom-html"><?php _e("Custom HTML Forms", 'custom-contact-forms'); ?></a></li>
360
- <li><a href="#import-export"><?php _e("Import / Export (New!)", 'custom-contact-forms'); ?></a></li>
361
  <li class="last"><a href="#plugin-news"><?php _e("Plugin News", 'custom-contact-forms'); ?></a></li>
362
  </ul>
363
-
364
  <a class="genesis" href="http://www.shareasale.com/r.cfm?b=241369&u=481196&m=28169&urllink=&afftrack=">Custom Contact Forms works best with any of the 20+ <span>Genesis</span> Wordpress child themes. The <span>Genesis Framework</span> empowers you to quickly and easily build incredible websites with WordPress.</a>
365
 
366
  <form class="blog-horizontal-form" method="post" action="http://www.aweber.com/scripts/addlead.pl">
@@ -376,19 +340,20 @@ if (!class_exists('CustomContactFormsAdmin')) {
376
  <input type="text" name="email" value="Your Email" onclick="value=''" />
377
  <input type="submit" value="Sign Up for Free" />
378
  </form>
379
- </a> <a name="create-fields"></a>
 
380
  <div id="create-fields" class="postbox">
381
  <h3 class="hndle"><span>
382
  <?php _e("Create A Form Field", 'custom-contact-forms'); ?>
383
  </span></h3>
384
  <div class="inside">
385
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
386
  <ul>
387
  <li>
388
  <label for="field_slug">*
389
  <?php _e("Field Slug:", 'custom-contact-forms'); ?>
390
  </label>
391
- <input name="field[field_slug]" type="text" maxlength="40" />
392
  <br />
393
  <?php _e("This is just a unique way for CCF to refer to your field. Must be unique from other slugs and contain only underscores and alphanumeric characters.", 'custom-contact-forms'); ?>
394
  </li>
@@ -396,7 +361,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
396
  <label for="field_label">
397
  <?php _e("Field Label:", 'custom-contact-forms'); ?>
398
  </label>
399
- <input name="field[field_label]" type="text" maxlength="100" />
400
  <br />
401
  <?php _e("The field label is displayed next to the field and is visible to the user.", 'custom-contact-forms'); ?>
402
  </li>
@@ -404,7 +369,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
404
  <label for="field_type">*
405
  <?php _e("Field Type:", 'custom-contact-forms'); ?>
406
  </label>
407
- <select name="field[field_type]">
408
  <option>Text</option>
409
  <option>Textarea</option>
410
  <option>Hidden</option>
@@ -417,7 +382,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
417
  <label for="field_value">
418
  <?php _e("Initial Value:", 'custom-contact-forms'); ?>
419
  </label>
420
- <input name="field[field_value]" type="text" maxlength="50" />
421
  <br />
422
  (
423
  <?php _e("This is the initial value of the field. If you set the type as checkbox, it is recommend you set this to what the checkbox is implying. For example if I were creating the checkbox
@@ -430,7 +395,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
430
  <label for="field_maxlength">
431
  <?php _e("Max Length:", 'custom-contact-forms'); ?>
432
  </label>
433
- <input class="width50" size="10" name="field[field_maxlength]" type="text" maxlength="4" />
434
  <br />
435
  <?php _e("0 for no limit; only applies to Text fields", 'custom-contact-forms'); ?>
436
  </li>
@@ -438,7 +403,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
438
  <label for="field_required">*
439
  <?php _e("Required Field:", 'custom-contact-forms'); ?>
440
  </label>
441
- <select name="field[field_required]">
442
  <option value="0">
443
  <?php _e("No", 'custom-contact-forms'); ?>
444
  </option>
@@ -453,7 +418,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
453
  <label for="field_instructions">
454
  <?php _e("Field Instructions:", 'custom-contact-forms'); ?>
455
  </label>
456
- <input name="field[field_instructions]" type="text" />
457
  <br />
458
  <?php _e("If this is filled out, a tooltip popover displaying this text will show when the field is selected.", 'custom-contact-forms'); ?>
459
  </li>
@@ -461,7 +426,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
461
  <label for="field_class">
462
  <?php _e("Field Class:", 'custom-contact-forms'); ?>
463
  </label>
464
- <input name="field[field_class]" type="text" />
465
  <br />
466
  <?php _e("If you manage your own .css stylesheet, you can use this to attach a class to this field. Leaving this blank will do nothing.", 'custom-contact-forms'); ?>
467
  </li>
@@ -469,14 +434,17 @@ if (!class_exists('CustomContactFormsAdmin')) {
469
  <label for="field_error">
470
  <?php _e("Field Error:", 'custom-contact-forms'); ?>
471
  </label>
472
- <input name="field[field_error]" type="text" />
473
  <br />
474
  <?php _e("If a user leaves this field blank and the field is required, this error message will be shown. A generic default will show if left blank.", 'custom-contact-forms'); ?>
475
  </li>
476
  <li>
477
- <input type="hidden" name="field[user_field]" value="1" />
478
- <input type="submit" value="<?php _e("Create Field", 'custom-contact-forms'); ?>" name="field_create" />
 
479
  </li>
 
 
480
  </ul>
481
  </form>
482
  </div>
@@ -487,98 +455,109 @@ if (!class_exists('CustomContactFormsAdmin')) {
487
  <?php _e("Create A Form", 'custom-contact-forms'); ?>
488
  </span></h3>
489
  <div class="inside">
490
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
491
  <ul>
492
  <li>
493
- <label for="form[form_slug]">*
494
  <?php _e("Form Slug:", 'custom-contact-forms'); ?>
495
  </label>
496
- <input type="text" maxlength="100" name="form[form_slug]" />
497
  <br />
498
  <?php _e("This is just a unique way for CCF to refer to your form. Must be unique from other slugs and contain only underscores and alphanumeric characters.", 'custom-contact-forms'); ?>
499
  </li>
500
  <li>
501
- <label for="form[form_title]">
502
  <?php _e("Form Title:", 'custom-contact-forms'); ?>
503
  </label>
504
- <input type="text" maxlength="200" name="form[form_title]" />
505
  <?php _e("This text is displayed above the form as the heading.", 'custom-contact-forms'); ?>
506
  </li>
507
  <li>
508
- <label for="form[form_method]">*
509
- <?php _e("Form Method:", 'custom-contact-forms'); ?>
510
- </label>
511
- <select name="form[form_method]">
512
- <option>Post</option>
513
- <option>Get</option>
514
- </select>
515
- <?php _e("If unsure, leave as is.", 'custom-contact-forms'); ?>
516
- </li>
517
- <li>
518
- <label for="form[form_action]">
519
- <?php _e("Form Action:", 'custom-contact-forms'); ?>
520
- </label>
521
- <input type="text" name="form[form_action]" value="" />
522
- <br />
523
- <?php _e("If unsure, leave blank. Enter a URL here, if and only if you want to process your forms somewhere else, for example with a service like Aweber or InfusionSoft.", 'custom-contact-forms'); ?>
524
- </li>
525
- <li>
526
- <label for="form[form_action]">
527
  <?php _e("Form Style:", 'custom-contact-forms'); ?>
528
  </label>
529
- <select name="form[form_style]" class="form_style_input">
530
  <?php echo $style_options; ?>
531
  </select>
532
  (<a href="#create-styles"><?php _e("Click to create a style", 'custom-contact-forms'); ?></a>)</li>
533
  <li>
534
- <label for="form[submit_button_text]">
535
  <?php _e("Submit Button Text:", 'custom-contact-forms'); ?>
536
  </label>
537
- <input type="text" maxlength="200" name="form[submit_button_text]" />
 
 
 
 
 
 
 
 
538
  </li>
539
  <li>
540
- <label for="form[custom_code]">
541
- <?php _e("Custom Code:", 'custom-contact-forms'); ?>
542
  </label>
543
- <input type="text" name="form[custom_code]" />
544
  <br />
545
- <?php _e("If unsure, leave blank. This field allows you to insert custom HTML directly after the starting form tag.", 'custom-contact-forms'); ?>
546
  </li>
547
  <li>
548
- <label for="form[form_email]">
549
- <?php _e("Form Destination Email:", 'custom-contact-forms'); ?>
550
  </label>
551
- <input type="text" name="form[form_email]" />
552
  <br />
553
- <?php _e("Will receive all submissions from this form; if left blank it will use the default specified in general settings.", 'custom-contact-forms'); ?>
554
  </li>
555
  <li>
556
- <label for="form[form_success_message]">
557
  <?php _e("Form Success Message:", 'custom-contact-forms'); ?>
558
  </label>
559
- <input type="text" name="form[form_success_message]" />
560
  <br />
561
  <?php _e("Will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings.", 'custom-contact-forms'); ?>
562
  </li>
563
  <li>
564
- <label for="form[form_success_title]">
565
  <?php _e("Form Success Message Title:", 'custom-contact-forms'); ?>
566
  </label>
567
- <input type="text" name="form[form_success_title]" />
568
  <br />
569
  <?php _e("Will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings.", 'custom-contact-forms'); ?>
570
  </li>
571
  <li>
572
- <label for="form[form_thank_you_page]">
573
  <?php _e("Custom Success URL:", 'custom-contact-forms'); ?>
574
  </label>
575
- <input type="text" name="form[form_thank_you_page]" />
576
  <br />
577
  <?php _e("If this is filled out, users will be sent to this page when they successfully fill out this form. If it is left blank, a popover showing the form's 'success message' will be displayed on form success.", 'custom-contact-forms'); ?>
578
  </li>
579
  <li>
580
- <input type="submit" value="<?php _e("Create Form", 'custom-contact-forms'); ?>" name="form_create" />
581
- </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
582
  </ul>
583
  </form>
584
  </div>
@@ -587,16 +566,18 @@ if (!class_exists('CustomContactFormsAdmin')) {
587
  <h3 class="manage-h3">
588
  <?php _e("Manage User Fields", 'custom-contact-forms'); ?>
589
  </h3>
 
590
  <table class="widefat post" id="manage-fields" cellspacing="0">
591
  <thead>
592
  <tr>
 
593
  <th scope="col" class="manage-column field-slug"><?php _e("Slug", 'custom-contact-forms'); ?></th>
594
  <th scope="col" class="manage-column field-label"><?php _e("Label", 'custom-contact-forms'); ?></th>
595
  <th scope="col" class="manage-column field-type"><?php _e("Type", 'custom-contact-forms'); ?></th>
596
  <th scope="col" class="manage-column field-value"><?php _e("Initial Value", 'custom-contact-forms'); ?></th>
597
  <th scope="col" class="manage-column field-required"><?php _e("Required", 'custom-contact-forms'); ?></th>
598
  <th scope="col" class="manage-column field-maxlength"><?php _e("Maxlength", 'custom-contact-forms'); ?></th>
599
- <th scope="col" class="manage-column field-action"><?php _e("Action", 'custom-contact-forms'); ?></th>
600
  </tr>
601
  </thead>
602
  <tbody>
@@ -609,15 +590,15 @@ if (!class_exists('CustomContactFormsAdmin')) {
609
  $field_types = str_replace('<option>'.$fields[$i]->field_type.'</option>', '<option selected="selected">'.$fields[$i]->field_type.'</option>', $field_types);
610
 
611
  ?>
612
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
613
- <tr<?php if ($z % 2 == 1) echo ' class="evenrow"'; ?>>
614
- <td><input type="text" name="field[field_slug]" class="width100" maxlength="50" value="<?php echo $fields[$i]->field_slug; ?>" /></td>
615
- <td><input type="text" name="field[field_label]" maxlength="100" value="<?php echo $fields[$i]->field_label; ?>" /></td>
616
- <td><select name="field[field_type]">
617
  <?php echo $field_types; ?>
618
  </select></td>
619
- <td><input type="text" name="field[field_value]" maxlength="50" class="width75" value="<?php echo $fields[$i]->field_value; ?>" /></td>
620
- <td><select name="field[field_required]">
621
  <option value="1">
622
  <?php _e("Yes", 'custom-contact-forms'); ?>
623
  </option>
@@ -628,44 +609,44 @@ if (!class_exists('CustomContactFormsAdmin')) {
628
  <td><?php if ($fields[$i]->field_type == 'Dropdown' || $fields[$i]->field_type == 'Radio') { ?>
629
  <b>-</b>
630
  <?php } else { ?>
631
- <input type="text" class="width50" name="field[field_maxlength]" value="<?php echo $fields[$i]->field_maxlength; ?>" />
632
  <?php } ?>
633
  </td>
634
- <td><input type="hidden" class="object-type" name="object_type" value="field" />
635
- <input type="hidden" class="object-id" name="fid" value="<?php echo $fields[$i]->id; ?>" />
636
  <span class="fields-options-expand"></span>
637
- <input type="submit" class="edit-button" name="field_edit" value="<?php _e("Save", 'custom-contact-forms'); ?>" />
638
- <input type="submit" name="field_delete" class="delete-button" value="<?php _e("Delete", 'custom-contact-forms'); ?>" /></td>
639
  </tr>
640
  <?php $show_field_options = ($fields[$i]->field_type == 'Radio' || $fields[$i]->field_type == 'Dropdown') ? true : false; ?>
641
- <tr<?php if ($z % 2 == 1) echo ' class="evenrow"'; ?>>
642
- <td class="fields-extra-options" colspan="7">
643
  <div class="row-one">
644
  <a href="javascript:void(0)" class="toollink" title="<?php _e('If this is filled out, a tooltip popover displaying this text will show when the field is selected.', 'custom-contact-forms'); ?>">(?)</a>
645
  <label for="field_instructions">
646
  <?php _e("Field Instructions:", 'custom-contact-forms'); ?>
647
  </label>
648
- <input type="text" class="width150" name="field[field_instructions]" value="<?php echo $fields[$i]->field_instructions; ?>" />
649
  <a href="javascript:void(0)" class="toollink" title="<?php _e('If you manage a .CSS file for your theme, you could create a class in that file and add it to this field. If the form attaching this field is using a "Form Style" other than the default, styles inherited from the "Field Class" might be overwritten.', 'custom-contact-forms'); ?>">(?)</a>
650
  <label for="field_class">
651
  <?php _e("Field Class:", 'custom-contact-forms'); ?>
652
  </label>
653
- <input type="text" class="width100" name="field[field_class]" value="<?php echo $fields[$i]->field_class; ?>" />
654
  <a href="javascript:void(0)" class="toollink" title="<?php _e('This lets you customize the error message displayed when this field is required and left blank.', 'custom-contact-forms'); ?>">(?)</a>
655
  <label for="field_error">
656
  <?php _e("Field Error:", 'custom-contact-forms'); ?>
657
  </label>
658
- <input type="text" class="width200" name="field[field_error]" value="<?php echo $fields[$i]->field_error; ?>" />
659
  </div>
660
  <?php
661
  if ($show_field_options) { ?>
662
- <div class="dettach-field-options">
 
 
663
  <?php if (empty($attached_options)) { ?>
664
- <select class="onObject<?php echo $fields[$i]->id ?> objectTypeField" name="dettach_object_id">
665
  <option value="-1">Nothing Attached!</option>
666
  </select>
667
  <?php } else { ?>
668
- <select name="dettach_object_id" class="onObject<?php echo $fields[$i]->id ?> objectTypeField">
669
  <?php
670
  foreach ($attached_options as $option_id) {
671
  $option = parent::selectFieldOption($option_id);
@@ -676,31 +657,36 @@ if (!class_exists('CustomContactFormsAdmin')) {
676
  ?>
677
  </select>
678
  <?php } ?>
679
- <input type="submit" class="dettach-button" name="dettach_field_option" value="<?php _e("Dettach Field Option", 'custom-contact-forms'); ?>" />
680
- <br />
681
- <span class="red bold">*</span>
682
- <?php _e("Dettach field options you", 'custom-contact-forms'); ?>
 
 
683
  <a href="#create-field-options">
684
  <?php _e("create", 'custom-contact-forms'); ?>
685
  </a>. </div>
686
  <?php $all_options = $this->getFieldOptionsForm(); ?>
687
- <div class="attach-field-options">
 
688
  <?php if (empty($all_options)) { ?>
689
  <b>No Field Options to Attach</b>
690
  <?php } else { ?>
691
- <select name="attach_object_id" class="onObject<?php echo $fields[$i]->id ?> objectTypeField">
692
  <?php echo $all_options; ?>
693
  </select>
694
- <input type="submit" class="attach-button" name="attach_field_option" value="<?php _e("Attach Field Option", 'custom-contact-forms'); ?>" />
 
695
  <?php } ?>
696
- <br />
697
- <span class="red bold">*</span>
 
698
  <?php _e("Attach field options in the order you want them to display.", 'custom-contact-forms'); ?>
699
  </div>
 
700
  <?php } ?>
701
  </td>
702
  </tr>
703
- </form>
704
  <?php
705
  }
706
  ?>
@@ -708,31 +694,40 @@ if (!class_exists('CustomContactFormsAdmin')) {
708
 
709
  <tfoot>
710
  <tr>
 
711
  <th scope="col" class="manage-column field-slug"><?php _e("Slug", 'custom-contact-forms'); ?></th>
712
  <th scope="col" class="manage-column field-label"><?php _e("Label", 'custom-contact-forms'); ?></th>
713
  <th scope="col" class="manage-column field-type"><?php _e("Type", 'custom-contact-forms'); ?></th>
714
  <th scope="col" class="manage-column field-value"><?php _e("Initial Value", 'custom-contact-forms'); ?></th>
715
  <th scope="col" class="manage-column field-required"><?php _e("Required", 'custom-contact-forms'); ?></th>
716
  <th scope="col" class="manage-column field-maxlength"><?php _e("Maxlength", 'custom-contact-forms'); ?></th>
717
- <th scope="col" class="manage-column field-action"><?php _e("Action", 'custom-contact-forms'); ?></th>
718
  </tr>
719
  </tfoot>
720
  </table>
 
 
 
 
 
 
721
  <a name="manage-fixed-fields"></a>
722
  <h3 class="manage-h3">
723
  <?php _e("Manage Fixed Fields", 'custom-contact-forms'); ?>
724
  </h3>
 
725
  <table class="widefat post" id="manage-fixed-fields" cellspacing="0">
726
  <thead>
727
  <tr>
 
728
  <th scope="col" class="manage-column field-slug"><?php _e("Slug", 'custom-contact-forms'); ?></th>
729
  <th scope="col" class="manage-column field-label"><?php _e("Label", 'custom-contact-forms'); ?></th>
730
  <th scope="col" class="manage-column field-type"><?php _e("Type", 'custom-contact-forms'); ?></th>
731
  <th scope="col" class="manage-column field-value"><?php _e("Initial Value", 'custom-contact-forms'); ?></th>
732
  <th scope="col" class="manage-column field-value"><?php _e("Required", 'custom-contact-forms'); ?></th>
733
  <th scope="col" class="manage-column field-maxlength"><?php _e("Maxlength", 'custom-contact-forms'); ?></th>
734
- <th scope="col" class="manage-column field-action"><?php _e("Action", 'custom-contact-forms'); ?></th>
735
- </tr>
736
  </thead>
737
  <tbody>
738
  <?php
@@ -743,22 +738,22 @@ if (!class_exists('CustomContactFormsAdmin')) {
743
  $field_types = str_replace('<option>'.$fields[$i]->field_type.'</option>', '<option selected="selected">'.$fields[$i]->field_type.'</option>', $field_types);
744
 
745
  ?>
746
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
747
- <tr <?php if ($z % 2 == 0) echo ' class="evenrow"'; ?>>
748
  <td><?php echo $fields[$i]->field_slug; ?></td>
749
  <td><?php if ($fields[$i]->field_slug == 'resetButton') { _e('None', 'custom-contact-forms'); } else { ?>
750
- <input type="text" name="field[field_label]" maxlength="100" value="<?php echo $fields[$i]->field_label; ?>" />
751
  <?php } ?></td>
752
  <td><?php echo $fields[$i]->field_type; ?>
753
  <td><?php if ($fields[$i]->field_type != 'Checkbox') { ?>
754
- <input type="text" name="field[field_value]" class="width75" maxlength="50" value="<?php echo $fields[$i]->field_value; ?>" />
755
  <?php } else {
756
  echo $fields[$i]->field_value;
757
  ?>
758
  <?php } ?>
759
  </td>
760
- <td><?php if ($fields[$i]->field_slug == 'fixedEmail') { ?>
761
- <select name="field[field_required]">
762
  <option value="1">
763
  <?php _e("Yes", 'custom-contact-forms'); ?>
764
  </option>
@@ -775,37 +770,35 @@ if (!class_exists('CustomContactFormsAdmin')) {
775
  }
776
  ?>
777
  </td>
778
- <td><?php if ($fields[$i]->field_type != 'Checkbox' && $fields[$i]->field_slug != 'resetButton') { ?>
779
- <input type="text" class="width50" name="field[field_maxlength]" value="<?php echo $fields[$i]->field_maxlength; ?>" />
780
  <?php } else { _e('None', 'custom-contact-forms'); } ?>
781
  </td>
782
- <td><input type="hidden" class="object-type" name="object_type" value="field" />
783
- <input type="hidden" class="object-id" name="fid" value="<?php echo $fields[$i]->id; ?>" />
784
  <span class="fixed-fields-options-expand"></span>
785
- <input type="submit" name="field_edit" class="edit-button" value="<?php _e("Save", 'custom-contact-forms'); ?>" /></td>
786
  </tr>
787
- <tr <?php if ($z % 2 == 0) echo ' class="evenrow"'; ?>>
788
- <td class="fixed-fields-extra-options" colspan="7"><label for="field_class">
789
  <a href="javascript:void(0)" class="toollink" title="<?php _e('If you manage a .CSS file for your theme, you could create a class in that file and add it to this field. If the form attaching this field is using a "Form Style" other than the default, styles inherited from the "Field Class" might be overwritten.', 'custom-contact-forms'); ?>">(?)</a>
790
  <?php _e('Field Class:', 'custom-contact-forms'); ?>
791
  </label>
792
- <input type="text" value="<?php echo $fields[$i]->field_class; ?>" name="field[field_class]" />
793
  <?php if ($fields[$i]->field_slug != 'resetButton') { ?>
794
  <a href="javascript:void(0)" class="toollink" title="<?php _e('If this is filled out, a tooltip popover displaying this text will show when the field is selected.', 'custom-contact-forms'); ?>">(?)</a>
795
  <label for="field_instructions">
796
  <?php _e("Field Instructions:", 'custom-contact-forms'); ?>
797
  </label>
798
- <input type="text" name="field[field_instructions]" class="width200" value="<?php echo $fields[$i]->field_instructions; ?>" />
799
  <a href="javascript:void(0)" class="toollink" title="<?php _e('This lets you customize the error message displayed when this field is required and left blank.', 'custom-contact-forms'); ?>">(?)</a>
800
  <label for="field_error">
801
  <?php _e("Field Error:", 'custom-contact-forms'); ?>
802
  </label>
803
- <input type="text" class="width200" name="field[field_error]" value="<?php echo $fields[$i]->field_error; ?>" />
804
  <br />
805
  <?php } ?>
806
  <div class="field_descrip"><?php echo $GLOBALS['ccf_fixed_fields'][$fields[$i]->field_slug]; ?></div></td>
807
  </tr>
808
- </form>
809
  <?php
810
  }
811
  ?>
@@ -813,119 +806,129 @@ if (!class_exists('CustomContactFormsAdmin')) {
813
 
814
  <tfoot>
815
  <tr>
 
816
  <th scope="col" class="manage-column field-slug"><?php _e("Slug", 'custom-contact-forms'); ?></th>
817
  <th scope="col" class="manage-column field-label"><?php _e("Label", 'custom-contact-forms'); ?></th>
818
  <th scope="col" class="manage-column field-type"><?php _e("Type", 'custom-contact-forms'); ?></th>
819
  <th scope="col" class="manage-column field-value"><?php _e("Initial Value", 'custom-contact-forms'); ?></th>
820
  <th scope="col" class="manage-column field-value"><?php _e("Required", 'custom-contact-forms'); ?></th>
821
  <th scope="col" class="manage-column field-maxlength"><?php _e("Maxlength", 'custom-contact-forms'); ?></th>
822
- <th scope="col" class="manage-column field-action"><?php _e("Action", 'custom-contact-forms'); ?></th>
823
  </tr>
824
  </tfoot>
825
  </table>
 
 
 
 
 
826
  <a name="manage-field-options"></a>
827
  <div id="manage-field-options" class="postbox">
828
  <h3 class="hndle"><span>
829
- <?php _e("Manage Field Options (for Dropdown and Radio Fields)", 'custom-contact-forms'); ?>
830
  </span></h3>
831
  <div class="inside">
832
- <div class="option-header">
833
- <div class="slug">
834
- <?php _e("Slug", 'custom-contact-forms'); ?>
835
- </div>
836
- <div class="label">
837
- <?php _e("Label", 'custom-contact-forms'); ?>
838
- </div>
839
- <div class="option-value">
840
- <?php _e("Value", 'custom-contact-forms'); ?>
841
- </div>
842
- <div class="action">
843
- <?php _e("Action", 'custom-contact-forms'); ?>
844
- </div>
845
- </div>
846
- <table id="edit-field-options">
847
- <?php
848
- $options = parent::selectAllFieldOptions();
849
- $i = 0;
850
- foreach ($options as $option) {
851
- ?>
852
- <tr<?php if ($i % 2 == 1) echo ' class="evenrow-field-options"'; ?>>
853
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']?>">
854
- <td class="slug"><input type="text" maxlength="20" name="option[option_slug]" value="<?php echo $option->option_slug; ?>" class="width50" /></td>
855
- <td class="label"><input type="text" name="option[option_label]" value="<?php echo $option->option_label; ?>" class="width100" /></td>
856
- <td class="option-value"><input type="text" name="option[option_value]" value="<?php echo $option->option_value; ?>" class="width100" /></td>
857
- <td class="action"><input type="submit" value="<?php _e("Save", 'custom-contact-forms'); ?>" class="edit-button" name="edit_field_option" />
858
- <input type="submit" class="delete-button" value="<?php _e("Delete", 'custom-contact-forms'); ?>" name="delete_field_option" />
859
- </td>
860
- <input type="hidden" class="object-type" name="object_type" value="field_option" />
861
- <input type="hidden" class="object-id" name="oid" value="<?php echo $option->id; ?>" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
862
  </form>
863
- </tr>
864
- <?php
865
- $i++;
866
- } if (empty($options)) {
867
- ?>
868
- <tr>
869
- <td class="ccf-center"><?php _e("No field options have been created.", 'custom-contact-forms'); ?></td>
870
- </tr>
871
- <?php
872
- }
873
- ?>
874
- </table>
875
- <div class="option-header">
876
- <div class="slug">
877
- <?php _e("Slug", 'custom-contact-forms'); ?>
878
- </div>
879
- <div class="label">
880
- <?php _e("Label", 'custom-contact-forms'); ?>
881
- </div>
882
- <div class="option-value">
883
- <?php _e("Value", 'custom-contact-forms'); ?>
884
- </div>
885
- <div class="action">
886
- <?php _e("Action", 'custom-contact-forms'); ?>
887
- </div>
888
- </div>
889
- </div>
890
- </div>
891
- <div id="create-field-options" class="postbox">
892
  <h3 class="hndle"><span>
893
- <?php _e("Create Field Options", 'custom-contact-forms'); ?>
894
  </span></h3>
895
  <div class="inside">
896
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']?>">
897
- <input type="hidden" name="object_type" value="field_option" />
898
- <ul>
899
- <li>
900
- <label for="option[option_slug]">*
901
- <?php _e("Option Slug:", 'custom-contact-forms'); ?>
902
- </label>
903
- <input maxlength="20" type="text" name="option[option_slug]" />
904
- <br />
905
- <?php _e("Used to identify this option, solely for admin purposes; must be unique, and contain only letters, numbers, and underscores. Example: 'slug_one'", 'custom-contact-forms'); ?>
906
- </li>
907
- <li>
908
- <label for="option[option_label]">*
909
- <?php _e("Option Label:", 'custom-contact-forms'); ?>
910
- </label>
911
- <input type="text" name="option[option_label]" />
912
- <br />
913
- <?php _e("This is what is shown to the user in the dropdown or radio field. Example: 'United States'", 'custom-contact-forms'); ?>
914
- </li>
915
- <li>
916
- <label for="option[option_value]">
917
- <?php _e("Option Value:", 'custom-contact-forms'); ?>
918
- </label>
919
- <input type="text" name="option[option_value]" /> <a href="javascript:void(0)" class="toollink" title="<?php _e("This is the actual value of the option which is not shown to the user. This can be the same thing as the label. An example pairing of label => value is: 'The color green' => 'green' or 'Yes' => '1'.", 'custom-contact-forms'); ?>">(?)</a>
920
- <br />
921
- <?php _e('This is the actual value of the option which is not shown to the user. This can be the same thing as the label. An example pairing of label => value is: "The color green" => "green" or "Yes" => "1".', 'custom-contact-forms'); ?>
922
- </li>
923
- <li>
924
- <input type="submit" class="create-button" name="create_field_option" value="<?php _e("Create Field Option", 'custom-contact-forms'); ?>" />
925
- </li>
926
- </ul>
927
- </form>
928
- </div>
 
 
 
 
 
 
929
  </div>
930
  <form class="rate-me" action="https://www.paypal.com/cgi-bin/webscr" method="post">
931
  <input type="hidden" name="cmd" value="_s-xclick">
@@ -935,20 +938,23 @@ if (!class_exists('CustomContactFormsAdmin')) {
935
  <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
936
  <img alt="Donate to Custom Contact Forms plugin" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
937
  </form>
938
- <a name="manage-forms"></a>
939
 
 
940
  <h3 class="manage-h3">
941
  <?php _e("Manage Forms", 'custom-contact-forms'); ?>
942
  </h3>
 
943
  <table class="widefat post" id="manage-forms" cellspacing="0">
944
  <thead>
945
  <tr>
 
946
  <th scope="col" class="manage-column form-code"><?php _e("Form Display Code", 'custom-contact-forms'); ?></th>
947
  <th scope="col" class="manage-column form-slug"><?php _e("Slug", 'custom-contact-forms'); ?></th>
 
948
  <th scope="col" class="manage-column form-title"><?php _e("Title", 'custom-contact-forms'); ?></th>
949
- <th scope="col" class="manage-column form-submit"><?php _e("Button Text", 'custom-contact-forms'); ?></th>
950
- <th scope="col" class="manage-column form-submit"><?php _e("Style", 'custom-contact-forms'); ?></th>
951
- <th scope="col" class="manage-column form-submit"><?php _e("Action", 'custom-contact-forms'); ?></th>
952
  </tr>
953
  </thead>
954
  <tbody>
@@ -961,58 +967,86 @@ if (!class_exists('CustomContactFormsAdmin')) {
961
  $this_style = parent::selectStyle($forms[$i]->form_style, '');
962
  $sty_opt = str_replace('<option value="'.$forms[$i]->form_style.'">'.$this_style->style_slug.'</option>', '<option value="'.$forms[$i]->form_style.'" selected="selected">'.$this_style->style_slug.'</option>', $style_options);
963
  ?>
964
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
965
- <tr class="<?php if ($i % 2 == 0) echo 'evenrow'; ?>">
966
- <td><span class="bold">[customcontact form=<?php echo $forms[$i]->id ?>]</span></td>
967
- <td><input type="text" class="width75" name="form[form_slug]" value="<?php echo $forms[$i]->form_slug; ?>" /></td>
968
- <td><input type="text" class="width125" name="form[form_title]" value="<?php echo $forms[$i]->form_title; ?>" /></td>
969
- <td><input class="width100" type="text" name="form[submit_button_text]" value="<?php echo $forms[$i]->submit_button_text; ?>" /></td>
970
- <td><select name="form[form_style]" class="form_style_input">
 
971
  <?php echo $sty_opt; ?>
972
  </select></td>
973
- <td><input type="hidden" class="object-id" name="fid" value="<?php echo $forms[$i]->id; ?>" />
974
- <input type="hidden" class="object-type" name="object_type" value="form" />
975
  <span class="form-options-expand"></span>
976
- <input type="submit" name="form_edit" class="edit-button" value="<?php _e("Save", 'custom-contact-forms'); ?>" />
977
- <input type="submit" name="form_delete" class="delete-button" value="<?php _e("Delete", 'custom-contact-forms'); ?>" />
978
  </td>
979
  </tr>
980
- <tr class="<?php if ($i % 2 == 0) echo 'evenrow'; ?>">
981
- <td class="form-extra-options textcenter" colspan="8"><table class="form-extra-options-table">
982
  <tbody>
983
  <tr>
984
- <td class="bold"><?php _e("Method", 'custom-contact-forms'); ?></td>
985
- <td class="bold"><?php _e("Form Action", 'custom-contact-forms'); ?></td>
986
- <td class="bold"><?php _e("Destination Email", 'custom-contact-forms'); ?></td>
987
- <td class="bold"><?php _e("Success Message Title", 'custom-contact-forms'); ?></td>
988
- <td class="bold"><?php _e("Success Message", 'custom-contact-forms'); ?></td>
989
- <td class="bold"><?php _e("Custom Success URL", 'custom-contact-forms'); ?></td>
 
990
  </tr>
991
  <tr>
992
  <td><a href="javascript:void(0)" class="toollink" title="<?php _e("The Form Method is the method by which information is transfer through your form. If you aren't an expert with HTML and PHP, leave this as Post.", 'custom-contact-forms'); ?>">(?)</a>
993
- <select name="form[form_method]">
994
  <?php echo $form_methods; ?>
995
  </select></td>
996
  <td><a href="javascript:void(0)" class="toollink" title="<?php _e("This lets you process your forms through alternate scripts. If you use a service like InfusionSoft or Aweber, set this to be the same form action as the code provided to you by that service, otherwise leave this blank.", 'custom-contact-forms'); ?>">(?)</a>
997
- <input class="width100" type="text" name="form[form_action]" value="<?php echo $forms[$i]->form_action; ?>" /></td>
998
- <td><a href="javascript:void(0)" class="toollink" title="<?php _e("Specify the email address(es) that you wish to receive form submission emails (provided that Email Form Submissions is set to Yes in general settings). Seperate multiple email addresses with semi-colons (ex: email1@gmail.com;email2@gmail.com;email3@gmail.com).", 'custom-contact-forms'); ?>">(?)</a>
999
- <input class="width100" type="text" name="form[form_email]" value="<?php echo $forms[$i]->form_email; ?>" /></td>
 
 
1000
  <td><a href="javascript:void(0)" class="toollink" title="<?php _e("This will be displayed as the header in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings.", 'custom-contact-forms'); ?>">(?)</a>
1001
- <input class="width100" type="text" name="form[form_success_title]" value="<?php echo $forms[$i]->form_success_title; ?>" /></td>
1002
  <td><a href="javascript:void(0)" class="toollink" title="<?php _e("This will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings.", 'custom-contact-forms'); ?>">(?)</a>
1003
- <input type="text" name="form[form_success_message]" class="width100" value="<?php echo $forms[$i]->form_success_message; ?>" /></td>
1004
  <td><a href="javascript:void(0)" class="toollink" title="<?php _e("If this is filled out, users will be sent to this thank you page when they successfully fill out this form. If it is left blank, a popover showing the form's 'success message' will be displayed on form success.", 'custom-contact-forms'); ?>">(?)</a>
1005
- <input type="text" class="width100" name="form[form_thank_you_page]" value="<?php echo $forms[$i]->form_thank_you_page; ?>" /></td>
1006
  </tr>
1007
  <tr>
1008
- <td colspan="3"><label for="dettach_object_id"><span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1009
  <?php _e("Attached Fields:", 'custom-contact-forms'); ?>
1010
  </span></label>
1011
  <?php
1012
  $attached_fields = parent::getAttachedFieldsArray($forms[$i]->id);
1013
- if (empty($attached_fields)) echo '<select class="onObject' . $forms[$i]->id . ' objectTypeForm" name="dettach_object_id"><option value="-1">Nothing Attached!</option></select> ';
1014
  else {
1015
- echo '<select name="dettach_object_id" class="onObject' . $forms[$i]->id . ' objectTypeForm">';
1016
  foreach($attached_fields as $attached_field) {
1017
  $this_field = parent::selectField($attached_field, '');
1018
  echo $this_field->field_slug . ' <option value="'.$this_field->id.'">'.$this_field->field_slug.'</option>';
@@ -1020,39 +1054,35 @@ if (!class_exists('CustomContactFormsAdmin')) {
1020
  echo '</select>';
1021
  }
1022
  ?>
1023
- <input type="submit" class="dettach-button" value="<?php _e("Dettach Field", 'custom-contact-forms'); ?>" name="dettach_field" />
 
 
 
1024
  <br />
1025
- <span class="red bold">*</span>
1026
  <?php _e("Attach fields in the order you want them displayed.", 'custom-contact-forms'); ?>
1027
- </td>
1028
- <td colspan="3"><label for="field_id"><span>
 
1029
  <?php _e("Attach Field:", 'custom-contact-forms'); ?>
1030
  </span></label>
1031
- <select class="onObject<?php echo $forms[$i]->id; ?> objectTypeForm" name="attach_object_id">
1032
  <?php echo $add_fields; ?>
1033
  </select>
1034
- <input class="attach-button" type="submit" name="form_add_field" value="<?php _e("Attach Field", 'custom-contact-forms'); ?>" />
 
 
 
1035
  <br />
1036
- <span class="red bold">*</span>
1037
  <?php _e("Attach fixed fields or ones you", 'custom-contact-forms'); ?>
1038
  <a href="#create-fields">
1039
  <?php _e("create", 'custom-contact-forms'); ?>
1040
- </a>. </td>
1041
- </tr>
1042
- <tr>
1043
- <td colspan="6"><label for="theme_code_<?php echo $forms[$i]->id; ?>"><a href="javascript:void(0)" class="toollink" title="<?php _e("The form display code above ([customcontact form=x]) will only work in Wordpress pages and posts. If you want to display this form in a theme file such as page.php, header.php, index.php, category.php, etc, then insert this PHP snippet.", 'custom-contact-forms'); ?>">(?)</a> <span>
1044
- <?php _e("Code to Display Form in Theme Files:", 'custom-contact-forms'); ?>
1045
- </span></label>
1046
- <input type="text" class="width225" value="&lt;?php if (function_exists('serveCustomContactForm')) { serveCustomContactForm(<?php echo $forms[$i]->id; ?>); } ?&gt;" name="theme_code_<?php echo $forms[$i]->id; ?>" />
1047
- <label for="form[custom_code]"><a href="javascript:void(0)" class="toollink" title="<?php _e("This field allows you to insert HTML directly after the starting <form> tag.", 'custom-contact-forms'); ?>">(?)</a>
1048
- <?php _e("Custom Code:", 'custom-contact-forms'); ?>
1049
- </label>
1050
- <input name="form[custom_code]" type="text" value="<?php echo $forms[$i]->custom_code; ?>" /></td>
1051
  </tr>
1052
  </tbody>
1053
  </table></td>
1054
  </tr>
1055
- </form>
1056
  <?php
1057
  }
1058
  $remember_check = ($admin_options['remember_field_values'] == 0) ? 'selected="selected"' : '';
@@ -1066,464 +1096,115 @@ if (!class_exists('CustomContactFormsAdmin')) {
1066
  <tfoot>
1067
  <tr>
1068
  <tr>
 
1069
  <th scope="col" class="manage-column form-code"><?php _e("Form Code", 'custom-contact-forms'); ?></th>
1070
  <th scope="col" class="manage-column form-slug"><?php _e("Slug", 'custom-contact-forms'); ?></th>
 
1071
  <th scope="col" class="manage-column form-title"><?php _e("Title", 'custom-contact-forms'); ?></th>
1072
- <th scope="col" class="manage-column form-submit"><?php _e("Button Text", 'custom-contact-forms'); ?></th>
1073
- <th scope="col" class="manage-column form-submit"><?php _e("Style", 'custom-contact-forms'); ?></th>
1074
- <th scope="col" class="manage-column form-submit"><?php _e("Action", 'custom-contact-forms'); ?></th>
1075
  </tr>
1076
  </tr>
1077
 
1078
  </tfoot>
1079
  </table>
1080
- <?php
1081
- require_once('modules/export/custom-contact-forms-user-data.php');
1082
- $user_data_array = parent::selectAllUserData();
1083
- ?>
1084
- <a name="form-submissions"></a>
1085
- <h3 class="manage-h3">
1086
- <?php _e("Saved Form Submissions", 'custom-contact-forms'); ?>
1087
- </h3>
1088
- <table class="widefat post" id="form-submissions" cellspacing="0">
1089
- <thead>
1090
- <tr>
1091
- <th scope="col" class="manage-column width250"><?php _e("Date Submitted", 'custom-contact-forms'); ?></th>
1092
- <th scope="col" class="manage-column width150"><?php _e("Form Submitted", 'custom-contact-forms'); ?></th>
1093
- <th scope="col" class="manage-column width250"><?php _e("Form Page", 'custom-contact-forms'); ?></th>
1094
- <th scope="col" class="manage-column "><div class="alignright">
1095
- <?php _e("Action", 'custom-contact-forms'); ?>
1096
- </div></th>
1097
- </tr>
1098
- </thead>
1099
- <tbody>
1100
- <?php
1101
- $i = 0;
1102
- foreach ($user_data_array as $data_object) {
1103
- $data = new CustomContactFormsUserData(array('form_id' => $data_object->data_formid, 'data_time' => $data_object->data_time, 'form_page' => $data_object->data_formpage, 'encoded_data' => $data_object->data_value));
1104
- ?>
1105
- <tr class="submission-top <?php if ($i % 2 == 0) echo 'evenrow'; ?>">
1106
- <td><?php echo date('F d, Y h:i:s A', $data->getDataTime()); ?></td>
1107
- <td><?php
1108
- if ($data->getFormID() > 0) {
1109
- $data_form = parent::selectForm($data->getFormID());
1110
- echo $data_form->form_slug;
1111
- } else
1112
- _e('Custom HTML Form', 'custom-contact-forms');
1113
- ?>
1114
- </td>
1115
- <td><?php echo $data->getFormPage(); ?> </td>
1116
- <td class="alignright"><form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
1117
- <span class="submission-content-expand"></span>
1118
- <input type="submit" class="delete-button" value="<?php _e("Delete", 'custom-contact-forms'); ?>" name="form_submission_delete" />
1119
- <input type="hidden" class="object-type" name="object_type" value="form_submission" />
1120
- <input type="hidden" class="object-id" value="<?php echo $data_object->id; ?>" name="uid" />
1121
- </form></td>
1122
- </tr>
1123
- <tr class="submission-content <?php if ($i % 2 == 0) echo 'evenrow'; ?>">
1124
- <td colspan="4"><ul>
1125
- <?php
1126
- $data_array = $data->getDataArray();
1127
- foreach ($data_array as $item_key => $item_value) {
1128
- ?>
1129
- <li>
1130
- <div><?php echo $item_key; ?></div>
1131
- <p><?php echo $item_value; ?></p>
1132
- </li>
1133
- <?php
1134
- }
1135
- ?>
1136
- </ul></td>
1137
- </tr>
1138
- <?php
1139
- $i++;
1140
- }
1141
- ?>
1142
- </tbody>
1143
- <tfoot>
1144
- <tr>
1145
- <th scope="col" class="manage-column width250"><?php _e("Date Submitted", 'custom-contact-forms'); ?></th>
1146
- <th scope="col" class="manage-column width150"><?php _e("Form Submitted", 'custom-contact-forms'); ?></th>
1147
- <th scope="col" class="manage-column width250"><?php _e("Form Page", 'custom-contact-forms'); ?></th>
1148
- <th scope="col" class="manage-column "><div class="alignright">
1149
- <?php _e("Action", 'custom-contact-forms'); ?>
1150
- </div></th>
1151
- </tr>
1152
- </tfoot>
1153
- </table>
1154
- <a name="general-settings"></a>
1155
- <div id="general-settings" class="postbox">
1156
  <h3 class="hndle"><span>
1157
- <?php _e("General Settings", 'custom-contact-forms'); ?>
1158
  </span></h3>
1159
  <div class="inside">
1160
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
1161
- <ul>
 
 
 
1162
  <li>
1163
- <label for="email_form_submissions">
1164
- <?php _e("Email Form Submissions:", 'custom-contact-forms'); ?>
1165
  </label>
1166
- <select name="email_form_submissions">
1167
- <option value="1">
1168
- <?php _e("Yes", 'custom-contact-forms'); ?>
1169
- </option>
1170
- <option value="0" <?php if ($admin_options['email_form_submissions'] == 0) echo 'selected="selected"'; ?>>
1171
- <?php _e("No", 'custom-contact-forms'); ?>
1172
- </option>
1173
- </select>
1174
- </li>
1175
- <li class="descrip">
1176
- <?php _e("When a user fills out one of your forms, the info submitted is saved in the Saved Form Submission section of the admin panel for you to view. If this is enabled, you will also be sent an email containing the submission info.", 'custom-contact-forms'); ?>
1177
  </li>
1178
  <li>
1179
- <label for="default_to_email">
1180
- <?php _e("Default Email:", 'custom-contact-forms'); ?>
1181
  </label>
1182
- <input name="default_to_email" value="<?php echo $admin_options['default_to_email']; ?>" type="text" maxlength="100" />
1183
- </li>
1184
- <li class="descrip">
1185
- <?php _e("Form emails will be sent <span>to</span> this address, if no destination email is specified by the form.", 'custom-contact-forms'); ?>
1186
  </li>
1187
  <li>
1188
- <label for="enable_jquery">
1189
- <?php _e("Front End JQuery:", 'custom-contact-forms'); ?>
1190
  </label>
1191
- <select name="enable_jquery">
1192
- <option value="1">
1193
- <?php _e("Enabled", 'custom-contact-forms'); ?>
1194
- </option>
1195
- <option <?php if ($admin_options['enable_jquery'] != 1) echo 'selected="selected"'; ?> value="0">
1196
- <?php _e("Disabled", 'custom-contact-forms'); ?>
1197
- </option>
1198
- </select>
1199
- </li>
1200
- <li class="descrip">
1201
- <?php _e("Some plugins don't setup JQuery correctly, so when any other plugin uses JQuery (whether correctly or not), JQuery works for neither plugin. This plugin uses JQuery correctly. If another plugin isn't using JQuery correctly but is more important to you than this one: disable this option. 99% of this plugin's functionality will work without JQuery, just no field instruction tooltips.", 'custom-contact-forms'); ?>
1202
  </li>
1203
  <li>
1204
- <label for="default_from_email">
1205
- <?php _e("Default From Email:", 'custom-contact-forms'); ?>
1206
  </label>
1207
- <input name="default_from_email" value="<?php echo $admin_options['default_from_email']; ?>" type="text" maxlength="100" />
1208
- </li>
1209
- <li class="descrip">
1210
- <?php _e("Form emails will be sent <span>from</span> this address. It is recommended you provide a real email address that has been created through your host.", 'custom-contact-forms'); ?>
1211
  </li>
1212
  <li>
1213
- <label for="default_form_subject">
1214
- <?php _e("Default Email Subject:", 'custom-contact-forms'); ?>
1215
  </label>
1216
- <input name="default_form_subject" value="<?php echo $admin_options['default_form_subject']; ?>" type="text" />
1217
- </li>
1218
- <li class="descrip">
1219
- <?php _e("Default subject to be included in all form emails.", 'custom-contact-forms'); ?>
1220
  </li>
1221
  <li>
1222
- <label for="form_success_message_title">
1223
- <?php _e("Default Form Success Message Title:", 'custom-contact-forms'); ?>
1224
  </label>
1225
- <input name="form_success_message_title" value="<?php echo $admin_options['form_success_message_title']; ?>" type="text"/>
1226
- </li>
1227
- <li class="descrip">
1228
- <?php _e("If someone fills out a form for which a success message title is not provided and a custom success page is not provided, the plugin will show a popover using this field as the window title.", 'custom-contact-forms'); ?>
1229
  </li>
1230
  <li>
1231
- <label for="form_success_message">
1232
- <?php _e("Default Form Success Message:", 'custom-contact-forms'); ?>
1233
  </label>
1234
- <input name="form_success_message" value="<?php echo $admin_options['form_success_message']; ?>" type="text"/>
 
1235
  </li>
1236
- <li class="descrip">
1237
- <?php _e("If someone fills out a form for which a success message is not provided and a custom success page is not provided, the plugin will show a popover containing this message.", 'custom-contact-forms'); ?>
 
 
 
 
1238
  </li>
1239
  <li>
1240
- <label for="remember_field_values">
1241
- <?php _e("Remember Field Values:", 'custom-contact-forms'); ?>
1242
  </label>
1243
- <select name="remember_field_values">
1244
- <option value="1">
1245
- <?php _e("Yes", 'custom-contact-forms'); ?>
1246
- </option>
1247
- <option <?php if ($admin_options['remember_field_values'] == 0) echo 'selected="selected"'; ?> value="0">
1248
- <?php _e("No", 'custom-contact-forms'); ?>
1249
- </option>
1250
- </select>
1251
- </li>
1252
- <li class="descrip">
1253
- <?php _e("Selecting yes will make form fields remember how they were last filled out.", 'custom-contact-forms'); ?>
1254
- </li>
1255
- <li>
1256
- <label for="enable_widget_tooltips">
1257
- <?php _e("Tooltips in Widget:", 'custom-contact-forms'); ?>
1258
- </label>
1259
- <select name="enable_widget_tooltips">
1260
- <option value="1">
1261
- <?php _e("Enabled", 'custom-contact-forms'); ?>
1262
- </option>
1263
- <option <?php if ($admin_options['enable_widget_tooltips'] == 0) echo 'selected="selected"'; ?> value="0">
1264
- <?php _e("Disabled", 'custom-contact-forms'); ?>
1265
- </option>
1266
- </select>
1267
- </li>
1268
- <li class="descrip">
1269
- <?php _e("Enabling this shows tooltips containing field instructions on forms in the widget.", 'custom-contact-forms'); ?>
1270
- </li>
1271
- <li>
1272
- <label for="author_link">
1273
- <?php _e("Hide Plugin Author Link in Code:", 'custom-contact-forms'); ?>
1274
- </label>
1275
- <select name="author_link">
1276
- <option value="1">
1277
- <?php _e("Yes", 'custom-contact-forms'); ?>
1278
- </option>
1279
- <option <?php if ($admin_options['author_link'] == 0) echo 'selected="selected"'; ?> value="0">
1280
- <?php _e("No", 'custom-contact-forms'); ?>
1281
- </option>
1282
- </select>
1283
- </li>
1284
- <li>
1285
- <label for="code_type">
1286
- <?php _e("Use Code Type:", 'custom-contact-forms'); ?>
1287
- </label>
1288
- <select name="code_type">
1289
- <option>XHTML</option>
1290
- <option <?php if ($admin_options['code_type'] == 'HTML') echo 'selected="selected"'; ?>>HTML</option>
1291
- </select>
1292
- </li>
1293
- <li class="descrip">
1294
- <?php _e("This lets you switch the form code between HTML and XHTML.", 'custom-contact-forms'); ?>
1295
- </li>
1296
- <li>
1297
- <label for="admin_ajax">
1298
- <?php _e("Fancy Admin AJAX Abilities:", 'custom-contact-forms'); ?>
1299
- </label>
1300
- <select name="admin_ajax">
1301
- <option value="1">
1302
- <?php _e("Enabled", 'custom-contact-forms'); ?>
1303
- </option>
1304
- <option <?php if ($admin_options['admin_ajax'] == 0) echo 'selected="selected"'; ?>>
1305
- <?php _e("Disabled", 'custom-contact-forms'); ?>
1306
- </option>
1307
- </select>
1308
- </li>
1309
- <li class="descrip">
1310
- <?php _e("If you enable this, creating, editing and modifying forms, fields, styles, etc in the admin panel will be done using AJAX. This means that clicking things like 'Edit' or 'Delete' will not cause the page to reload thus managing your forms will be much smoother and quicker. If you are having problems with things not saving, deleting, or inserting correctly, then disable this and fill out a bug report below.", 'custom-contact-forms'); ?>
1311
- </li>
1312
- <li class="show-widget"><b>
1313
- <?php _e("Show Sidebar Widget:", 'custom-contact-forms'); ?>
1314
- </b></li>
1315
- <li>
1316
- <label>
1317
- <input value="1" type="checkbox" name="show_widget_home" <?php if ($admin_options['show_widget_home'] == 1) echo 'checked="checked"'; ?> />
1318
- <?php _e("On Homepage", 'custom-contact-forms'); ?>
1319
- </label>
1320
- <label>
1321
- <input value="1" type="checkbox" name="show_widget_pages" <?php if ($admin_options['show_widget_pages'] == 1) echo 'checked="checked"'; ?> />
1322
- <?php _e("On Pages", 'custom-contact-forms'); ?>
1323
- </label>
1324
- <label>
1325
- <input value="1" type="checkbox" name="show_widget_singles" <?php if ($admin_options['show_widget_singles'] == 1) echo 'checked="checked"'; ?> />
1326
- <?php _e("On Single Posts", 'custom-contact-forms'); ?>
1327
- </label>
1328
- <br />
1329
- <label>
1330
- <input value="1" type="checkbox" name="show_widget_categories" <?php if ($admin_options['show_widget_categories'] == 1) echo 'checked="checked"'; ?> />
1331
- <?php _e("On Categories", 'custom-contact-forms'); ?>
1332
- </label>
1333
- <label>
1334
- <input value="1" type="checkbox" name="show_widget_archives" <?php if ($admin_options['show_widget_archives'] == 1) echo 'checked="checked"'; ?> />
1335
- <?php _e("On Archives", 'custom-contact-forms'); ?>
1336
- </label>
1337
- </li>
1338
- <li>
1339
- <input type="submit" value="<?php _e("Update", 'custom-contact-forms'); ?>" name="general_settings" />
1340
- </li>
1341
- </ul>
1342
- </form>
1343
- </div>
1344
- </div>
1345
- <a name="instructions"></a>
1346
- <div id="instructions" class="postbox">
1347
- <h3 class="hndle"><span>
1348
- <?php _e("Instructions", 'custom-contact-forms'); ?>
1349
- </span></h3>
1350
- <div class="inside">
1351
- <p><b>
1352
- <?php _e("The default content will help you get a better feel of ways this plugin can be used and is the best way to learn.", 'custom-contact-forms'); ?>
1353
- </b></p>
1354
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
1355
- <div class="ccf-center">
1356
- <input type="submit" value="<?php _e("Insert Default Content", 'custom-contact-forms'); ?>" name="insert_default_content" />
1357
- </div>
1358
- </form>
1359
- <p>
1360
- <?php _e("1. Create a form.", 'custom-contact-forms'); ?>
1361
- </p>
1362
- <p>
1363
- <?php _e("2. Create fields and attach those fields to the forms of your choice.", 'custom-contact-forms'); ?>
1364
- <span class="red bold">*</span>
1365
- <?php _e("Attach the fields in the order that you want them to show up in the form. If you mess up you can detach and reattach them. Create field options in the field option manager; field options should be attached to radio and dropdown fields.", 'custom-contact-forms'); ?>
1366
- </p>
1367
- <p>
1368
- <?php _e("3. Display those forms in posts and pages by inserting the code: [customcontact form=<b>FORMID</b>]. Replace <b>FORMID</b> with the id listed to the left of the form slug next to the form of your choice above. You can also display forms in theme files; the code for this is provided within each forms admin section.", 'custom-contact-forms'); ?>
1369
- </p>
1370
- <p>
1371
- <?php _e("4. Prevent spam by attaching the fixed field, captcha or ishuman. Captcha requires users to type in a number shown on an image. Ishuman requires users to check a box to prove they aren't a spam bot.", 'custom-contact-forms'); ?>
1372
- </p>
1373
- <p>
1374
- <?php _e("5. Add a form to your sidebar, by dragging the Custom Contact Form widget in to your sidebar.", 'custom-contact-forms'); ?>
1375
- </p>
1376
- <p>
1377
- <?php _e("6. Configure the General Settings appropriately; this is important if you want to receive your web form messages!", 'custom-contact-forms'); ?>
1378
- </p>
1379
- <p>
1380
- <?php _e("7. Create form styles to change your forms appearances. The image below explains how each style field can change the look of your forms.", 'custom-contact-forms'); ?>
1381
- </p>
1382
- <p>
1383
- <?php _e("8. (advanced) If you are confident in your HTML and CSS skills, you can use the", 'custom-contact-forms'); ?>
1384
- <a href="#custom-html">
1385
- <?php _e("Custom HTML Forms feature", 'custom-contact-forms'); ?>
1386
- </a>
1387
- <?php _e("as a framework and write your forms from scratch. This allows you to use this plugin simply to process your form requests. The Custom HTML Forms feature will process and email any form variables sent to it regardless of whether they are created in the fields manager.", 'custom-contact-forms'); ?>
1388
- </p>
1389
- <p><span class="red bold">*</span>
1390
- <?php _e("These instructions briefly tell you in which order you should use forms, fields, field options, and styles.", 'custom-contact-forms'); ?>
1391
- <b>
1392
- <?php _e("If you want to read in detail about using forms, fields, field options, styles and the rest of this plugin, click the button below.", 'custom-contact-forms'); ?>
1393
- </b></p>
1394
- <div class="ccf-center">
1395
- <input type="button" class="usage-popover-button" value="<?php _e("View Plugin Usage Popover", 'custom-contact-forms'); ?>" />
1396
- </div>
1397
- <div class="ccf-style-example"></div>
1398
- <div class="ccf-success-popover-example"></div>
1399
- </div>
1400
- </div>
1401
- <a name="configure-mail"></a>
1402
- <div id="configure-mail" class="postbox">
1403
- <h3 class="hndle"><span>
1404
- <?php _e("Mail Settings", 'custom-contact-forms'); ?>
1405
- </span></h3>
1406
- <div class="inside">
1407
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
1408
- <p><?php _e("There are two ways you can send emails: using the PHP mail() function or using SMTP (secure/insecure). If you choose to use the PHP mail() function you can ignore all the other options. For some people Wordpress's default way of sending mail does not work; if for some reason your mail is being sent you should try the SMTP option.", 'custom-contact-forms'); ?></p>
1409
- <label for="mail_function"><?php _e("* Send My Emails Using the Following:", 'custom-contact-forms'); ?></label>
1410
- <select name="mail_config[mail_function]">
1411
- <option value="default"><?php _e("Wordpress Default", 'custom-contact-forms'); ?></option>
1412
- <option <?php if ($admin_options['mail_function'] == 'smtp') echo 'selected="selected"'; ?> value="smtp"><?php _e("SMTP", 'custom-contact-forms'); ?></option>
1413
- </select> <?php _e("(If mail isn't sending, try toggling this option.)", 'custom-contact-forms'); ?>
1414
- <div>
1415
- <ul class="left">
1416
- <li><label for="smtp_host"><?php _e("SMTP Host:", 'custom-contact-forms'); ?></label> <input class="width125" type="text" size="10" name="mail_config[smtp_host]" value="<?php echo $admin_options['smtp_host']; ?>" /></li>
1417
- <li><label for="smtp_port"><?php _e("SMTP Port:", 'custom-contact-forms'); ?></label> <input class="width125" type="text" size="10" name="mail_config[smtp_port]" value="<?php echo $admin_options['smtp_port']; ?>" /></li>
1418
- <li><label for="smtp_encryption"><?php _e("Encryption:", 'custom-contact-forms'); ?></label> <select name="mail_config[smtp_encryption]">
1419
- <option value="none"><?php _e("None", 'custom-contact-forms'); ?></option>
1420
- <option <?php if ($admin_options['smtp_encryption'] == 'ssl') echo 'selected="selected"'; ?> value="ssl"><?php _e("SSL", 'custom-contact-forms'); ?></option>
1421
- <option <?php if ($admin_options['smtp_encryption'] == 'tls') echo 'selected="selected"'; ?> value="tls"><?php _e("TLS", 'custom-contact-forms'); ?></option>
1422
- </select></li>
1423
- </ul>
1424
- <ul class="right">
1425
- <li><label for="smtp_authentication"><?php _e("SMTP Authentication:", 'custom-contact-forms'); ?></label> <select name="mail_config[smtp_authentication]"><option value="0"><?php _e("None Needed", 'custom-contact-forms'); ?></option><option <?php if ($admin_options['smtp_authentication'] == 1) echo 'selected="selected"'; ?> value="1"><?php _e("Use SMTP Username/Password", 'custom-contact-forms'); ?></option></select></li>
1426
- <li><label for="smtp_username"><?php _e("SMTP Username:", 'custom-contact-forms'); ?></label> <input class="width125" type="text" size="10" name="mail_config[smtp_username]" value="<?php echo $admin_options['smtp_username']; ?>" /></li>
1427
- <li><label for="smtp_password"><?php _e("SMTP Password:", 'custom-contact-forms'); ?></label> <input class="width125" type="text" size="10" name="mail_config[smtp_password]" value="<?php echo $admin_options['smtp_password']; ?>" /></li>
1428
- </ul>
1429
- </div>
1430
- <input type="submit" name="configure_mail" value="<?php _e("Save Mail Sending Options", 'custom-contact-forms'); ?>" />
1431
- </form>
1432
- </div>
1433
- </div>
1434
- <a name="create-styles"></a>
1435
- <div id="create-styles" class="postbox">
1436
- <h3 class="hndle"><span>
1437
- <?php _e("Create A Style for Your Forms", 'custom-contact-forms'); ?>
1438
- </span></h3>
1439
- <div class="inside">
1440
- <p>
1441
- <?php _e("Use this manager to create styles for your forms. Each field is already filled out with nice look defaults. It is recommended you simply input a slug and click create to see the defaults before you start changing values.", 'custom-contact-forms'); ?>
1442
- </p>
1443
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
1444
- <ul class="style_left">
1445
- <li>
1446
- <label for="style_slug">*
1447
- <?php _e("Style Slug:", 'custom-contact-forms'); ?>
1448
- </label>
1449
- <input type="text" maxlength="30" class="width75" name="style[style_slug]" />
1450
- <?php _e("(Must be unique)", 'custom-contact-forms'); ?>
1451
- </li>
1452
- <li>
1453
- <label for="title_fontsize">
1454
- <?php _e("Title Font Size:", 'custom-contact-forms'); ?>
1455
- </label>
1456
- <input type="text" maxlength="20" value="1.2em" class="width75" name="style[title_fontsize]" />
1457
- <?php _e("(ex: 10pt, 10px, 1em)", 'custom-contact-forms'); ?>
1458
- </li>
1459
- <li>
1460
- <label for="title_fontcolor">
1461
- <?php _e("Title Font Color:", 'custom-contact-forms'); ?>
1462
- </label>
1463
- <input type="text" maxlength="20" value="333333" class="width75 colorfield" name="style[title_fontcolor]" />
1464
- <?php _e("(ex: FF0000)", 'custom-contact-forms'); ?>
1465
- </li>
1466
- <li>
1467
- <label for="label_width">
1468
- <?php _e("Label Width:", 'custom-contact-forms'); ?>
1469
- </label>
1470
- <input type="text" maxlength="20" value="200px" class="width75" name="style[label_width]" />
1471
- <?php _e("(ex: 100px or 20%)", 'custom-contact-forms'); ?>
1472
- </li>
1473
- <li>
1474
- <label for="label_fontsize">
1475
- <?php _e("Label Font Size:", 'custom-contact-forms'); ?>
1476
- </label>
1477
- <input type="text" maxlength="20" value="1em" class="width75" name="style[label_fontsize]" />
1478
- <?php _e("(ex: 10px, 10pt, 1em)", 'custom-contact-forms'); ?>
1479
- </li>
1480
- <li>
1481
- <label for="label_fontcolor">
1482
- <?php _e("Label Font Color:", 'custom-contact-forms'); ?>
1483
- </label>
1484
- <input type="text" maxlength="20" value="333333" class="width75 colorfield" name="style[label_fontcolor]" />
1485
- <?php _e("(ex: FF0000)", 'custom-contact-forms'); ?>
1486
- </li>
1487
- <li>
1488
- <label for="input_width">
1489
- <?php _e("Text Field Width:", 'custom-contact-forms'); ?>
1490
- </label>
1491
- <input type="text" maxlength="20" value="200px" class="width75" name="style[input_width]" />
1492
- <?php _e("(ex: 100px or 100%)", 'custom-contact-forms'); ?>
1493
- </li>
1494
- <li>
1495
- <label for="textarea_width">
1496
- <?php _e("Textarea Field Width:", 'custom-contact-forms'); ?>
1497
- </label>
1498
- <input type="text" maxlength="20" value="200px" class="width75" name="style[textarea_width]" />
1499
- <?php _e("(ex: 100px or 100%)", 'custom-contact-forms'); ?>
1500
- </li>
1501
- <li>
1502
- <label for="textarea_height">
1503
- <?php _e("Textarea Field Height:", 'custom-contact-forms'); ?>
1504
- </label>
1505
- <input type="text" maxlength="20" value="90px" class="width75" name="style[textarea_height]" />
1506
  <?php _e("(ex: 100px or 100%)", 'custom-contact-forms'); ?>
1507
  </li>
1508
  <li>
1509
  <label for="field_fontsize">
1510
  <?php _e("Field Font Size:", 'custom-contact-forms'); ?>
1511
  </label>
1512
- <input type="text" maxlength="20" value="1.3em" class="width75" name="style[field_fontsize]" />
1513
  <?php _e("(ex: 10px, 10pt, 1em", 'custom-contact-forms'); ?>
1514
  </li>
1515
  <li>
1516
  <label for="field_fontcolor">
1517
  <?php _e("Field Font Color:", 'custom-contact-forms'); ?>
1518
  </label>
1519
- <input type="text" maxlength="20" value="333333" class="width75 colorfield" name="style[field_fontcolor]" />
1520
  <?php _e("(ex: 333333)", 'custom-contact-forms'); ?>
1521
  </li>
1522
  <li>
1523
  <label for="field_borderstyle">
1524
  <?php _e("Field Border Style:", 'custom-contact-forms'); ?>
1525
  </label>
1526
- <select class="width75" name="style[field_borderstyle]">
1527
  <?php echo str_replace('<option>solid</option>', '<option selected="selected">solid</option>', $border_style_options); ?>
1528
  </select>
1529
  </li>
@@ -1531,49 +1212,49 @@ if (!class_exists('CustomContactFormsAdmin')) {
1531
  <label for="form_margin">
1532
  <?php _e("Form Margin:", 'custom-contact-forms'); ?>
1533
  </label>
1534
- <input type="text" maxlength="20" value="7px" class="width75" name="style[form_margin]" />
1535
  <?php _e("(ex: 5px or 1em)", 'custom-contact-forms'); ?>
1536
  </li>
1537
  <li>
1538
  <label for="label_margin">
1539
  <?php _e("Label Margin:", 'custom-contact-forms'); ?>
1540
  </label>
1541
- <input type="text" maxlength="20" value="5px" class="width75" name="style[label_margin]" />
1542
  <?php _e("(ex: 5px or 1em)", 'custom-contact-forms'); ?>
1543
  </li>
1544
  <li>
1545
  <label for="textarea_backgroundcolor">
1546
  <?php _e("Textarea Background Color:", 'custom-contact-forms'); ?>
1547
  </label>
1548
- <input type="text" maxlength="20" value="f5f5f5" class="width75 colorfield" name="style[textarea_backgroundcolor]" />
1549
  <?php _e("(ex: FF0000)", 'custom-contact-forms'); ?>
1550
  </li>
1551
  <li>
1552
  <label for="success_popover_fontcolor">
1553
  <?php _e("Success Popover Font Color:", 'custom-contact-forms'); ?>
1554
  </label>
1555
- <input type="text" maxlength="20" value="333333" class="width75 colorfield" name="style[success_popover_fontcolor]" />
1556
  <?php _e("(ex: 333333)", 'custom-contact-forms'); ?>
1557
  </li>
1558
  <li>
1559
  <label for="success_popover_title_fontsize">
1560
  <?php _e("Success Popover Title Font Size:", 'custom-contact-forms'); ?>
1561
  </label>
1562
- <input type="text" maxlength="20" value="15px" class="width75" name="style[success_popover_title_fontsize]" />
1563
  <?php _e("(ex: 12px, 1em, 100%)", 'custom-contact-forms'); ?>
1564
  </li>
1565
  <li>
1566
  <label for="form_backgroundcolor">
1567
  <?php _e("Form Background Color:", 'custom-contact-forms'); ?>
1568
  </label>
1569
- <input type="text" maxlength="20" value="ffffff" class="width75 colorfield" name="style[form_backgroundcolor]" />
1570
  <?php _e("(ex: 12px, 1em, 100%)", 'custom-contact-forms'); ?>
1571
  </li>
1572
  <li>
1573
  <label for="tooltip_backgroundcolor">
1574
  <?php _e("Tooltip Background Color:", 'custom-contact-forms'); ?>
1575
  </label>
1576
- <input type="text" maxlength="20" value="000000" class="width75 colorfield" name="style[tooltip_backgroundcolor]" />
1577
  <?php _e("(ex: 000000 or black)", 'custom-contact-forms'); ?>
1578
  </li>
1579
  </ul>
@@ -1582,14 +1263,14 @@ if (!class_exists('CustomContactFormsAdmin')) {
1582
  <label for="input_width">
1583
  <?php _e("Field Border Color:", 'custom-contact-forms'); ?>
1584
  </label>
1585
- <input type="text" maxlength="20" value="999999" class="width75 colorfield" name="style[field_bordercolor]" />
1586
  <?php _e("(ex: 100px or 100%)", 'custom-contact-forms'); ?>
1587
  </li>
1588
  <li>
1589
  <label for="form_borderstyle">
1590
  <?php _e("Form Border Style:", 'custom-contact-forms'); ?>
1591
  </label>
1592
- <select class="width75" name="style[form_borderstyle]">
1593
  <?php echo $border_style_options; ?>
1594
  </select>
1595
  </li>
@@ -1597,112 +1278,112 @@ if (!class_exists('CustomContactFormsAdmin')) {
1597
  <label for="form_bordercolor">
1598
  <?php _e("Form Border Color:", 'custom-contact-forms'); ?>
1599
  </label>
1600
- <input type="text" maxlength="20" value="ffffff" class="width75 colorfield" name="style[form_bordercolor]" />
1601
  <?php _e("(ex: 000000)", 'custom-contact-forms'); ?>
1602
  </li>
1603
  <li>
1604
  <label for="form_borderwidth">
1605
  <?php _e("Form Border Width:", 'custom-contact-forms'); ?>
1606
  </label>
1607
- <input type="text" maxlength="20" value="0px" class="width75" name="style[form_borderwidth]" />
1608
  <?php _e("(ex: 1px)", 'custom-contact-forms'); ?>
1609
  </li>
1610
  <li>
1611
  <label for="form_borderwidth">
1612
  <?php _e("Form Width:", 'custom-contact-forms'); ?>
1613
  </label>
1614
- <input type="text" maxlength="20" value="100%" class="width75" name="style[form_width]" />
1615
  <?php _e("(ex: 100px or 50%)", 'custom-contact-forms'); ?>
1616
  </li>
1617
  <li>
1618
  <label for="form_borderwidth">
1619
  <?php _e("Form Font Family:", 'custom-contact-forms'); ?>
1620
  </label>
1621
- <input type="text" maxlength="120" value="Verdana, tahoma, arial" class="width75" name="style[form_fontfamily]" />
1622
  <?php _e("(ex: Verdana, Tahoma, Arial)", 'custom-contact-forms'); ?>
1623
  </li>
1624
  <li>
1625
  <label for="submit_width">
1626
  <?php _e("Button Width:", 'custom-contact-forms'); ?>
1627
  </label>
1628
- <input type="text" maxlength="20" value="auto" class="width75" name="style[submit_width]" />
1629
  <?php _e("(ex: 100px, 30%, auto)", 'custom-contact-forms'); ?>
1630
  </li>
1631
  <li>
1632
  <label for="submit_height">
1633
  <?php _e("Button Height:", 'custom-contact-forms'); ?>
1634
  </label>
1635
- <input type="text" maxlength="20" value="30px" class="width75" name="style[submit_height]" />
1636
  <?php _e("(ex: 100px or 30%)", 'custom-contact-forms'); ?>
1637
  </li>
1638
  <li>
1639
  <label for="submit_fontsize">
1640
  <?php _e("Button Font Size:", 'custom-contact-forms'); ?>
1641
  </label>
1642
- <input type="text" maxlength="20" value="1.1em" class="width75" name="style[submit_fontsize]" />
1643
  <?php _e("(ex: 10px, 10pt, 1em)", 'custom-contact-forms'); ?>
1644
  </li>
1645
  <li>
1646
  <label for="submit_fontcolor">
1647
  <?php _e("Button Font Color:", 'custom-contact-forms'); ?>
1648
  </label>
1649
- <input type="text" maxlength="20" value="333333" class="width75 colorfield" name="style[submit_fontcolor]" />
1650
  <?php _e("(ex: FF0000)", 'custom-contact-forms'); ?>
1651
  </li>
1652
  <li>
1653
  <label for="field_backgroundcolor">
1654
  <?php _e("Field Background Color:", 'custom-contact-forms'); ?>
1655
  </label>
1656
- <input type="text" maxlength="20" value="f5f5f5" class="width75 colorfield" name="style[field_backgroundcolor]" />
1657
  <?php _e("(ex: FF0000)", 'custom-contact-forms'); ?>
1658
  </li>
1659
  <li>
1660
  <label for="form_padding">
1661
  <?php _e("Form Padding:", 'custom-contact-forms'); ?>
1662
  </label>
1663
- <input type="text" maxlength="20" value="8px" class="width75" name="style[form_padding]" />
1664
  <?php _e("(ex: 5px or 1em)", 'custom-contact-forms'); ?>
1665
  </li>
1666
  <li>
1667
  <label for="title_margin">
1668
  <?php _e("Title Margin:", 'custom-contact-forms'); ?>
1669
  </label>
1670
- <input type="text" maxlength="20" value="5px" class="width75" name="style[title_margin]" />
1671
  <?php _e("(ex: 5px or 1em)", 'custom-contact-forms'); ?>
1672
  </li>
1673
  <li>
1674
  <label for="title_margin">
1675
  <?php _e("Dropdown Width:", 'custom-contact-forms'); ?>
1676
  </label>
1677
- <input type="text" maxlength="20" value="auto" class="width75" name="style[dropdown_width]" />
1678
  <?php _e("(ex: 30px, 20%, or auto)", 'custom-contact-forms'); ?>
1679
  </li>
1680
  <li>
1681
  <label for="success_popover_bordercolor">
1682
  <?php _e("Success Popover Border Color:", 'custom-contact-forms'); ?>
1683
  </label>
1684
- <input type="text" maxlength="20" value="efefef" class="width75 colorfield" name="style[success_popover_bordercolor]" />
1685
  <?php _e("(ex: FF0000)", 'custom-contact-forms'); ?>
1686
  </li>
1687
  <li>
1688
  <label for="success_popover_fontsize">
1689
  <?php _e("Success Popover Font Size:", 'custom-contact-forms'); ?>
1690
  </label>
1691
- <input type="text" maxlength="20" value="12px" class="width75" name="style[success_popover_fontsize]" />
1692
  <?php _e("(ex: 12px, 1em, 100%)", 'custom-contact-forms'); ?>
1693
  </li>
1694
  <li>
1695
  <label for="success_popover_height">
1696
  <?php _e("Success Popover Height:", 'custom-contact-forms'); ?>
1697
  </label>
1698
- <input type="text" maxlength="20" value="200px" class="width75" name="style[success_popover_height]" />
1699
  <?php _e("(ex: 200px, 6em, 50%)", 'custom-contact-forms'); ?>
1700
  </li>
1701
  <li>
1702
  <label for="field_borderround">
1703
  <?php _e("Field Border Roundness:", 'custom-contact-forms'); ?>
1704
  </label>
1705
- <input type="text" maxlength="20" value="6px" class="width75" name="style[field_borderround]" />
1706
  <?php _e("(ex: 6px, or 0px)", 'custom-contact-forms'); ?>
1707
  </li>
1708
  <li>
@@ -1711,18 +1392,19 @@ if (!class_exists('CustomContactFormsAdmin')) {
1711
  <a href="javascript:void(0)" class="toollink" title="<?php _e("A tooltip is the little box that fades in displaying 'Field Instructions' when a user selects a particular field.", 'custom-contact-forms'); ?>">(?)</a>
1712
  <?php _e("Font Size:", 'custom-contact-forms'); ?>
1713
  </label>
1714
- <input type="text" maxlength="20" value="12px" class="width75" name="style[tooltip_fontsize]" />
1715
  <?php _e("(ex: 12px, 1em, 100%)", 'custom-contact-forms'); ?>
1716
  </li>
1717
  <li>
1718
  <label for="tooltip_fontcolor">
1719
  <?php _e("Tooltip Font Color:", 'custom-contact-forms'); ?>
1720
  </label>
1721
- <input type="text" maxlength="20" value="ffffff" class="width75 colorfield" name="style[tooltip_fontcolor]" />
1722
  <?php _e("(ex: ffffff or white)", 'custom-contact-forms'); ?>
1723
  </li>
1724
  <li>
1725
- <input type="submit" value="<?php _e("Create Style", 'custom-contact-forms'); ?>" name="style_create" />
 
1726
  </li>
1727
  </ul>
1728
  </form>
@@ -1732,10 +1414,11 @@ if (!class_exists('CustomContactFormsAdmin')) {
1732
  <h3 class="manage-h3">
1733
  <?php _e("Manage Form Styles", 'custom-contact-forms'); ?>
1734
  </h3>
 
1735
  <table class="widefat post" id="manage-styles" cellspacing="0">
1736
  <thead>
1737
  <tr>
1738
- <th scope="col" class="manage-column"></th>
1739
  <th scope="col" class="manage-column"></th>
1740
  <th scope="col" class="manage-column"></th>
1741
  <th scope="col" class="manage-column"></th>
@@ -1749,219 +1432,214 @@ if (!class_exists('CustomContactFormsAdmin')) {
1749
  $i = 0;
1750
  foreach ($styles as $style) {
1751
  ?>
1752
- <tr class="<?php if ($i % 2 == 0) echo 'evenrow'; ?>">
1753
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
1754
- <td><label>*
1755
- <?php _e("Slug:", 'custom-contact-forms'); ?>
1756
  </label>
1757
- <input type="text" maxlength="30" value="<?php echo $style->style_slug; ?>" name="style[style_slug]" />
1758
  <br />
1759
  <label>
1760
  <?php _e("Font Family:", 'custom-contact-forms'); ?>
1761
  </label>
1762
- <input type="text" maxlength="120" value="<?php echo $style->form_fontfamily; ?>" name="style[form_fontfamily]" />
1763
  <br />
1764
  <label>
1765
  <?php _e("Textarea Background", 'custom-contact-forms'); ?>
1766
  <br />
1767
  <?php _e("Color:", 'custom-contact-forms'); ?>
1768
  </label>
1769
- <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->textarea_backgroundcolor; ?>" name="style[textarea_backgroundcolor]" />
1770
  <br />
1771
  <label>
1772
  <?php _e("Success Popover", 'custom-contact-forms'); ?>
1773
  <br />
1774
  <?php _e("Border Color:", 'custom-contact-forms'); ?>
1775
  </label>
1776
- <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->success_popover_bordercolor; ?>" name="style[success_popover_bordercolor]" />
1777
  <br />
1778
  <label>
1779
  <?php _e("Tooltip", 'custom-contact-forms'); ?>
1780
  <a href="javascript:void(0)" class="toollink" title="<?php _e("A tooltip is the little box that fades in displaying 'Field Instructions' when a user selects a particular field.", 'custom-contact-forms'); ?>">(?)</a>
1781
  <?php _e("Font Color:", 'custom-contact-forms'); ?>
1782
  </label>
1783
- <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->tooltip_fontcolor; ?>" name="style[tooltip_fontcolor]" />
1784
- <br />
1785
- <input type="submit" class="submit-styles edit-button" name="style_edit" value="<?php _e("Save", 'custom-contact-forms'); ?>" />
1786
- <br />
1787
- <input type="submit" class="submit-styles delete-button" name="style_delete" value="<?php _e("Delete Style", 'custom-contact-forms'); ?>" />
1788
  </td>
1789
  <td><label>
1790
  <?php _e("Form Width:", 'custom-contact-forms'); ?>
1791
  </label>
1792
- <input type="text" maxlength="20" value="<?php echo $style->form_width; ?>" name="style[form_width]" />
1793
  <br />
1794
  <label>
1795
  <?php _e("Text Field Width:", 'custom-contact-forms'); ?>
1796
  </label>
1797
- <input type="text" maxlength="20" value="<?php echo $style->input_width; ?>" name="style[input_width]" />
1798
  <br />
1799
  <label>
1800
  <?php _e("Textarea Width:", 'custom-contact-forms'); ?>
1801
  </label>
1802
- <input type="text" maxlength="20" value="<?php echo $style->textarea_width; ?>" name="style[textarea_width]" />
1803
  <br />
1804
  <label>
1805
  <?php _e("Textarea Height:", 'custom-contact-forms'); ?>
1806
  </label>
1807
- <input type="text" maxlength="20" value="<?php echo $style->textarea_height; ?>" name="style[textarea_height]" />
1808
  <br />
1809
  <label>
1810
  <?php _e("Dropdown Width:", 'custom-contact-forms'); ?>
1811
  </label>
1812
- <input type="text" maxlength="20" value="<?php echo $style->dropdown_width; ?>" name="style[dropdown_width]" />
1813
  <br />
1814
  <label>
1815
  <?php _e("Label Margin:", 'custom-contact-forms'); ?>
1816
  </label>
1817
- <input type="text" maxlength="20" value="<?php echo $style->label_margin; ?>" name="style[label_margin]" />
1818
  <br />
1819
  <label>
1820
  <?php _e("Success Popover", 'custom-contact-forms'); ?>
1821
  <br />
1822
  <?php _e("Height:", 'custom-contact-forms'); ?>
1823
  </label>
1824
- <input type="text" maxlength="20" value="<?php echo $style->success_popover_height; ?>" name="style[success_popover_height]" />
1825
  <br />
1826
  </td>
1827
  <td><label>
1828
  <?php _e("Label Width:", 'custom-contact-forms'); ?>
1829
  </label>
1830
- <input type="text" maxlength="20" value="<?php echo $style->label_width; ?>" name="style[label_width]" />
1831
  <br />
1832
  <label>
1833
  <?php _e("Button Width:", 'custom-contact-forms'); ?>
1834
  </label>
1835
- <input type="text" maxlength="20" value="<?php echo $style->submit_width; ?>" name="style[submit_width]" />
1836
  <br />
1837
  <label>
1838
  <?php _e("Button Height:", 'custom-contact-forms'); ?>
1839
  </label>
1840
- <input type="text" maxlength="20" value="<?php echo $style->submit_height; ?>" name="style[submit_height]" />
1841
  <br />
1842
  <label>
1843
  <?php _e("Field Background Color:", 'custom-contact-forms'); ?>
1844
  </label>
1845
- <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->field_backgroundcolor; ?>" name="style[field_backgroundcolor]" />
1846
  <br />
1847
  <label>
1848
  <?php _e("Title Margin:", 'custom-contact-forms'); ?>
1849
  </label>
1850
- <input type="text" maxlength="20" value="<?php echo $style->title_margin; ?>" name="style[title_margin]" />
1851
  <br />
1852
  <label>
1853
  <?php _e("Success Popover", 'custom-contact-forms'); ?>
1854
  <br />
1855
  <?php _e("Title Font Size:", 'custom-contact-forms'); ?>
1856
  </label>
1857
- <input type="text" maxlength="20" value="<?php echo $style->success_popover_title_fontsize; ?>" name="style[success_popover_title_fontsize]" />
1858
  <label>
1859
  <?php _e("Form Background Color:", 'custom-contact-forms'); ?>
1860
  </label>
1861
- <input type="text" class="colorfield" maxlength="20" value="<?php echo $style->form_backgroundcolor; ?>" name="style[form_backgroundcolor]" />
1862
  </td>
1863
  <td><label>
1864
  <?php _e("Title Font Size:", 'custom-contact-forms'); ?>
1865
  </label>
1866
- <input type="text" maxlength="20" value="<?php echo $style->title_fontsize; ?>" name="style[title_fontsize]" />
1867
  <br />
1868
  <label>
1869
  <?php _e("Label Font Size:", 'custom-contact-forms'); ?>
1870
  </label>
1871
- <input type="text" maxlength="20" value="<?php echo $style->label_fontsize; ?>" name="style[label_fontsize]" />
1872
  <br />
1873
  <label>
1874
  <?php _e("Field Font Size:", 'custom-contact-forms'); ?>
1875
  </label>
1876
- <input type="text" maxlength="20" value="<?php echo $style->field_fontsize; ?>" name="style[field_fontsize]" />
1877
  <br />
1878
  <label>
1879
  <?php _e("Button Font Size:", 'custom-contact-forms'); ?>
1880
  </label>
1881
- <input type="text" maxlength="20" value="<?php echo $style->submit_fontsize; ?>" name="style[submit_fontsize]" />
1882
  <br />
1883
  <label>
1884
  <?php _e("Form Padding:", 'custom-contact-forms'); ?>
1885
  </label>
1886
- <input type="text" maxlength="20" value="<?php echo $style->form_padding; ?>" name="style[form_padding]" />
1887
  <br />
1888
  <label>
1889
  <?php _e("Success Popover", 'custom-contact-forms'); ?>
1890
  <br />
1891
  <?php _e("Font Size:", 'custom-contact-forms'); ?>
1892
  </label>
1893
- <input type="text" maxlength="20" value="<?php echo $style->success_popover_fontsize; ?>" name="style[success_popover_fontsize]" />
1894
  <br />
1895
  <label>
1896
  <?php _e("Tooltip", 'custom-contact-forms'); ?>
1897
  <a href="javascript:void(0)" class="toollink" title="<?php _e("A tooltip is the little box that fades in displaying 'Field Instructions' when a user selects a particular field.", 'custom-contact-forms'); ?>">(?)</a>
1898
  <?php _e("Background Color:", 'custom-contact-forms'); ?>
1899
  </label>
1900
- <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->tooltip_backgroundcolor; ?>" name="style[tooltip_backgroundcolor]" />
1901
  </td>
1902
  <td><label>
1903
  <?php _e("Title Font Color:", 'custom-contact-forms'); ?>
1904
  </label>
1905
- <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->title_fontcolor; ?>" name="style[title_fontcolor]" />
1906
  <br />
1907
  <label>
1908
  <?php _e("Label Font Color:", 'custom-contact-forms'); ?>
1909
  </label>
1910
- <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->label_fontcolor; ?>" name="style[label_fontcolor]" />
1911
  <br />
1912
  <label>
1913
  <?php _e("Field Font Color:", 'custom-contact-forms'); ?>
1914
  </label>
1915
- <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->field_fontcolor; ?>" name="style[field_fontcolor]" />
1916
  <br />
1917
  <label>
1918
  <?php _e("Button Font Color:", 'custom-contact-forms'); ?>
1919
  </label>
1920
- <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->submit_fontcolor; ?>" name="style[submit_fontcolor]" />
1921
  <br />
1922
  <label>
1923
  <?php _e("Form Margin:", 'custom-contact-forms'); ?>
1924
  </label>
1925
- <input type="text" maxlength="20" value="<?php echo $style->form_margin; ?>" name="style[form_margin]" />
1926
  <br />
1927
  <label>
1928
  <?php _e("Success Popover", 'custom-contact-forms'); ?>
1929
  <br />
1930
  <?php _e("Font Color:", 'custom-contact-forms'); ?>
1931
  </label>
1932
- <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->success_popover_fontcolor; ?>" name="style[success_popover_fontcolor]" />
1933
  <br />
1934
  <label>
1935
  <?php _e("Tooltip Font Size:", 'custom-contact-forms'); ?>
1936
  </label>
1937
- <input type="text" maxlength="20" value="<?php echo $style->tooltip_fontsize; ?>" name="style[tooltip_fontsize]" />
1938
  </td>
1939
  <td><label>
1940
  <?php _e("Form Border Style:", 'custom-contact-forms'); ?>
1941
  </label>
1942
- <select name="style[form_borderstyle]">
1943
  <?php echo str_replace('<option>'.$style->form_borderstyle.'</option>', '<option selected="selected">'.$style->form_borderstyle.'</option>', $border_style_options); ?>
1944
  </select>
1945
  <br />
1946
  <label>
1947
  <?php _e("Form Border Width:", 'custom-contact-forms'); ?>
1948
  </label>
1949
- <input type="text" maxlength="20" value="<?php echo $style->form_borderwidth; ?>" name="style[form_borderwidth]" />
1950
  <br />
1951
  <label>
1952
  <?php _e("Form Border Color:", 'custom-contact-forms'); ?>
1953
  </label>
1954
- <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->form_bordercolor; ?>" name="style[form_bordercolor]" />
1955
  <br />
1956
  <label>
1957
  <?php _e("Field Border Color:", 'custom-contact-forms'); ?>
1958
  </label>
1959
- <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->field_bordercolor; ?>" name="style[field_bordercolor]" />
1960
  <br />
1961
  <label>
1962
  <?php _e("Field Border Style:", 'custom-contact-forms'); ?>
1963
  </label>
1964
- <select name="style[field_borderstyle]">
1965
  <?php echo str_replace('<option>'.$style->field_borderstyle.'</option>', '<option selected="selected">'.$style->field_borderstyle.'</option>', $border_style_options); ?>
1966
  </select>
1967
  <br />
@@ -1970,17 +1648,16 @@ if (!class_exists('CustomContactFormsAdmin')) {
1970
  <br />
1971
  <?php _e("Title Font Color:", 'custom-contact-forms'); ?>
1972
  </label>
1973
- <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->success_popover_title_fontcolor; ?>" name="style[success_popover_title_fontcolor]" />
1974
  <br />
1975
  <label>
1976
  <?php _e("Field Border Roundness:", 'custom-contact-forms'); ?>
1977
  </label>
1978
- <input name="style[field_borderround]" value="<?php echo $style->field_borderround; ?>" type="text" maxlength="20" />
1979
  <br />
1980
- <input type="hidden" class="object-type" name="object_type" value="style" />
1981
- <input name="sid" type="hidden" class="object-id" value="<?php echo $style->id; ?>" />
1982
  </td>
1983
- </form>
1984
  </tr>
1985
  <?php
1986
  $i++;
@@ -1989,7 +1666,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
1989
  </tbody>
1990
  <tfoot>
1991
  <tr>
1992
- <th scope="col" class="manage-column"></th>
1993
  <th scope="col" class="manage-column"></th>
1994
  <th scope="col" class="manage-column"></th>
1995
  <th scope="col" class="manage-column"></th>
@@ -1998,6 +1675,8 @@ if (!class_exists('CustomContactFormsAdmin')) {
1998
  </tr>
1999
  </tfoot>
2000
  </table>
 
 
2001
  <a name="contact-author"></a>
2002
  <div id="contact-author" class="postbox">
2003
  <h3 class="hndle"><span>
@@ -2018,6 +1697,12 @@ if (!class_exists('CustomContactFormsAdmin')) {
2018
  </label>
2019
  <input id="email" type="text" value="<?php echo get_option('admin_email'); ?>" name="email" maxlength="100" />
2020
  </li>
 
 
 
 
 
 
2021
  <li>
2022
  <label for="message">*
2023
  <?php _e("Your Message:", 'custom-contact-forms'); ?>
@@ -2066,7 +1751,8 @@ if (!class_exists('CustomContactFormsAdmin')) {
2066
  &lt;input type=&quot;hidden&quot; name=&quot;destination_email&quot; value=&quot;<?php echo $admin_options['default_to_email']; ?>&quot; /&gt;
2067
  &lt;input type=&quot;hidden&quot; name=&quot;required_fields&quot; value=&quot;field_name1, field_name2&quot; /&gt;
2068
 
2069
- &lt;!-- <?php _e("Paste all this code into a page or post and edit it to your liking. It is recommended you only use this feature if you are experienced with HTML.
 
2070
  The success_message field will add a popover containing the message when the form is completed successfully, the thank_you_page field will force
2071
  the user to be redirected to that specific page on successful form completion. The required_fields hidden field is optional; to use it seperate
2072
  the field names you want required by commas. Remember to use underscores instead of spaces in field names!", 'custom-contact-forms'); ?> --&gt;
@@ -2074,32 +1760,474 @@ the field names you want required by commas. Remember to use underscores instead
2074
  &lt;/form&gt;</textarea>
2075
  </div>
2076
  </div>
2077
- <a name="import-export"></a>
2078
- <div id="export" class="postbox">
2079
- <h3 class="hndle"><span>
2080
- <?php _e("Export", 'custom-contact-forms'); ?>
2081
- </span></h3>
2082
- <div class="inside">
2083
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
2084
- <p>
2085
- <?php _e("Preforming a Custom Contact Forms export will create a file of the form
2086
- ccf-export-xxxx.sql on your web server. The file created contains SQL that
2087
- will recreate all the plugin data on any Wordpress installation. After Custom Contact Forms creates the export file, you will be prompted to download it. You can use this file as a backup in case your Wordpress database gets ruined.", 'custom-contact-forms'); ?>
2088
- </p>
2089
- <input type="submit" name="ccf_export" value="<?php _e("Export All CCF Plugin Content", 'custom-contact-forms'); ?>" />
2090
- </form>
2091
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2092
  </div>
2093
- <div id="import" class="postbox">
2094
- <h3 class="hndle"><span>
2095
- <?php _e("Import", 'custom-contact-forms'); ?>
2096
- </span></h3>
2097
- <div class="inside">
2098
- <form method="post" enctype="multipart/form-data" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
2099
- <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
2100
- <p>
2101
- <?php _e("Browse to a CCF .sql export file to import Custom Contact Form data from another Wordpress installation to this one. Pressing the 'Clear and Import' button deletes all current data and then imports the selected file; this will not work for merging to data!. Clearing all CCF data before importing prevents any conflicts from occuring. Before you attempt an import, you should always download a backup, by clicking the 'Export All' button.", 'custom-contact-forms'); ?>
2102
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2103
  <p class="choose_import">
2104
  <?php _e("Choose What You Want to Use from the Import File:", 'custom-contact-forms'); ?>
2105
  </p>
@@ -2159,17 +2287,8 @@ the field names you want required by commas. Remember to use underscores instead
2159
  </form>
2160
  </div>
2161
  </div>
2162
- <a name="plugin-news"></a>
2163
- <div id="plugin-news" class="postbox">
2164
- <h3 class="hndle"><span>
2165
- <?php _e("Custom Contact Forms Plugin News", 'custom-contact-forms'); ?>
2166
- </span></h3>
2167
- <div class="inside">
2168
- <?php $this->displayPluginNewsFeed(); ?>
2169
- </div>
2170
- </div>
2171
  </div>
2172
- <?php
2173
  }
2174
  }
2175
  }
6
  */
7
  if (!class_exists('CustomContactFormsAdmin')) {
8
  class CustomContactFormsAdmin extends CustomContactForms {
 
9
  function adminInit() {
10
  $this->downloadExportFile();
11
  $this->runImport();
12
  }
13
 
14
  function insertUsagePopover() {
15
+ ccf_utils::load_module('usage_popover/custom-contact-forms-usage-popover.php');
16
  }
17
 
18
  function isPluginAdminPage() {
19
+ $pages = array('custom-contact-forms', 'ccf-settings', 'ccf-saved-form-submissions');
20
+ return (in_array($GLOBALS['ccf_current_page'], $pages));
21
  }
22
 
23
  function appendToActionLinks($action_links, $plugin_file) {
24
  static $link_added = false;
25
  if (!$link_added && basename($plugin_file) == 'custom-contact-forms.php') {
26
+ $new_link = '<a style="font-weight:bold;" href="admin.php?page=custom-contact-forms" title="' . __('Manage Custom Contact Forms', 'custom-contact-forms') . '">' . __('Settings', 'custom-contact-forms') . '</a>';
27
  array_unshift($action_links, $new_link);
28
  $link_added = true;
29
  }
33
  function downloadExportFile() {
34
  if ($_POST['ccf_export']) {
35
  //chmod('modules/export/', 0777);
36
+ ccf_utils::load_module('export/custom-contact-forms-export.php');
37
  $transit = new CustomContactFormsExport(parent::getAdminOptionsName());
38
  $transit->exportAll();
39
  $file = $transit->exportToFile();
40
+ ccf_utils::redirect(plugins_url() . '/custom-contact-forms/download.php?location=export/' . $file);
41
  }
42
  }
43
 
44
  function runImport() {
45
  if ($_POST['ccf_clear_import'] || $_POST['ccf_merge_import']) {
46
  //chmod('modules/export/', 0777);
47
+ ccf_utils::load_module('export/custom-contact-forms-export.php');
48
  $transit = new CustomContactFormsExport(parent::getAdminOptionsName());
49
  $settings['import_general_settings'] = ($_POST['ccf_import_overwrite_settings'] == 1) ? true : false;
50
  $settings['import_forms'] = ($_POST['ccf_import_forms'] == 1) ? true : false;
54
  $settings['import_saved_submissions'] = ($_POST['ccf_import_saved_submissions'] == 1) ? true : false;
55
  $settings['mode'] = ($_POST['ccf_clear_import']) ? 'clear_import' : 'merge_import';
56
  $transit->importFromFile($_FILES['import_file'], $settings);
57
+ ccf_utils::redirect('options-general.php?page=custom-contact-forms');
58
  }
59
  }
60
 
61
  function contactAuthor($name, $email, $website, $message, $type) {
62
  if (empty($message)) return false;
63
  if (!class_exists('PHPMailer'))
64
+ require_once(ABSPATH . "wp-includes/class-phpmailer.php");
65
+ $mail = new PHPMailer();
66
  $body = "Name: $name<br />\n";
67
  $body .= "Email: $email<br />\n";
68
  $body .= "Website: $website<br />\n";
85
  $mail->FromName = 'Custom Contact Forms';
86
  $mail->AddAddress('admin@taylorlovett.com');
87
  $mail->Subject = "CCF Message: $type";
 
88
  $mail->CharSet = "utf-8";
89
+ $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
90
  $mail->MsgHTML($body);
91
  $mail->Send();
92
  return true;
134
  return $out;
135
  }
136
 
137
+ function handleAJAX() {
138
+
139
+ if (!wp_verify_nonce($_POST['nonce'], 'ccf_nonce')) exit(__('Invalid request.', 'custom-contact-forms'));
140
+ $output = $this->handleAdminPostRequests();
141
+ $response = json_encode( $output );
142
+ header("Content-Type: application/json");
143
+ exit($response);
144
+ return true;
145
+ }
146
+
147
+
148
  function getFieldOptionsForm() {
149
  $options = parent::selectAllFieldOptions();
150
  $out = '';
164
  }
165
 
166
  function insertAdminScripts() {
167
+ $js_version = '1.0.18';
168
  $admin_options = parent::getAdminOptions();
169
+ $js_lang = array(
170
+ 'attaching' => __('Attaching', 'custom-contact-forms'),
171
+ 'detaching' => __('Detaching', 'custom-contact-forms'),
172
+ 'detach_button' => __('Detach', 'custom-contact-forms'),
173
+ 'attach_button' => __('Attach', 'custom-contact-forms'),
174
+ 'saving' => __('Saving', 'custom-contact-forms'),
175
+ 'more_options' => __('More Options', 'custom-contact-forms'),
176
+ 'expand' => __('Expand', 'custom-contact-forms'),
177
+ 'click_to_confirm' => __('Click to Confirm', 'custom-contact-forms'),
178
+ 'delete_confirm' => __('Are you sure you want to delete this', 'custom-contact-forms'),
179
+ 'error' => __('An error has occured. Please try again later.', 'custom-contact-forms'),
180
+ 'nothing_to_show' => __('Nothing to show.', 'custom-contact-forms'),
181
+ 'nothing_attached' => __('Nothing Attached!', 'custom-contact-forms'),
182
+ 'nonce' => wp_create_nonce('ccf_nonce')
183
+ );
184
+ $js_ajax = array('plugin_dir' => plugins_url() . '/custom-contact-forms',
185
+ 'url' => admin_url('admin-ajax.php'),
186
+ 'nonce' => wp_create_nonce('ccf-ajax-nonce'));
187
  wp_enqueue_script('jquery');
188
+ wp_enqueue_script('jquery-form');
189
  wp_enqueue_script('jquery-ui-core');
190
  wp_enqueue_script('jquery-ui-tabs');
191
+
192
+ wp_enqueue_script('jquery-tools', plugins_url() . '/custom-contact-forms/js/jquery.tools.min.js', array('jquery', 'jquery-ui-core', 'jquery-ui-tabs'));
193
+ wp_enqueue_script('ccf-pagination', plugins_url() . '/custom-contact-forms/js/jquery.pagination.js');
194
+ wp_enqueue_script('ccf-admin-inc', plugins_url() . '/custom-contact-forms/js/custom-contact-forms-admin-inc.js', array('jquery', 'jquery-ui-core', 'jquery-ui-tabs'), $js_version);
195
+ wp_enqueue_script('ccf-admin', plugins_url() . '/custom-contact-forms/js/custom-contact-forms-admin.js', array('jquery', 'jquery-ui-core', 'jquery-ui-tabs'), $js_version);
196
+ if ($admin_options['admin_ajax'] == 1) {
197
+ wp_enqueue_script('ccf-admin-ajax', plugins_url() . '/custom-contact-forms/js/custom-contact-forms-admin-ajax.js', array('jquery', 'jquery-tools', 'jquery-ui-core', 'jquery-ui-tabs'), $js_version);
198
+ wp_localize_script('ccf-admin-ajax', 'ccfLang', $js_lang);
199
+ wp_localize_script('ccf-admin-ajax', 'ccfAjax', $js_ajax);
200
+ }
201
  wp_enqueue_script('ccf-colorpicker', plugins_url() . '/custom-contact-forms/js/colorpicker.js');
202
  wp_enqueue_script('ccf-eye', plugins_url() . '/custom-contact-forms/js/eye.js');
203
  wp_enqueue_script('ccf-utils', plugins_url() . '/custom-contact-forms/js/utils.js');
204
  wp_enqueue_script('ccf-layout', plugins_url() . '/custom-contact-forms/js/layout.js?ver=1.0.2');
205
+ wp_localize_script('ccf-admin-inc', 'ccfLang', $js_lang);
206
+ wp_localize_script('ccf-admin-inc', 'ccfAjax', $js_ajax);
207
+ wp_localize_script('ccf-admin', 'ccfLang', $js_lang);
208
+ }
209
+
210
+ function handleAdminPostRequests() {
211
+ $out = array('success' => true);
212
+ if ($_POST['object_create']) {
213
+ if ($_POST['object_type'] == 'form') parent::insertForm($_POST['object']);
214
+ elseif ($_POST['object_type'] == 'field') parent::insertField($_POST['object']);
215
+ elseif ($_POST['object_type'] == 'field_option') parent::insertFieldOption($_POST['object']);
216
+ elseif ($_POST['object_type'] == 'style') parent::insertStyle($_POST['object']);
217
+ return $out;
218
+ }
219
+
220
+ if ($_POST['object_attach']) {
221
+ if ($_POST['object_type'] == 'form') parent::addFieldToForm($_POST['attach_object_id'], $_POST['object_id']);
222
+ elseif ($_POST['object_type'] == 'field') parent::addFieldOptionToField($_POST['attach_object_id'], $_POST['object_id']);
223
+ return $out;
224
+ }
225
+
226
+ if ($_POST['object_detach']) {
227
+ if ($_POST['object_type'] == 'form') {
228
+ parent::detachField($_POST['detach_object_id'], $_POST['object_id']);
229
+ } elseif ($_POST['object_type'] == 'field') {
230
+ parent::detachFieldOption($_POST['detach_object_id'], $_POST['object_id']);
231
+ }
232
+ return $out;
233
+ }
234
+
235
+ if (isset($_POST['object_bulk_apply'])) {
236
+ $out['object_bulk_action'] = $_POST['object_bulk_action'];
237
+ if ($_POST['object_bulk_action'] == 'edit') {
238
+ foreach ($_POST['objects'] as $obj) {
239
+ if ($obj['object_do'] == 1) {
240
+ if ($obj['object_type'] == 'form') {
241
+ parent::updateForm($obj['values'], $obj['object_id']);
242
+ if ($obj['detach_confirm'] == 1 && $obj['detach'] > 0) {
243
+ parent::detachField($obj['detach'], $obj['object_id']);
244
+ } if ($obj['attach_confirm'] == 1 && $obj['attach'] > 0) {
245
+ parent::addFieldToForm($obj['attach'], $obj['object_id']);
246
+ }
247
+ } elseif ($obj['object_type'] == 'field') {
248
+ parent::updateField($obj['values'], $obj['object_id']);
249
+ if ($obj['detach_confirm'] == 1 && $obj['detach'] > 0) {
250
+ parent::detachFieldOption($obj['detach'], $obj['object_id']);
251
+ } if ($obj['attach_confirm'] == 1 && $obj['attach'] > 0) {
252
+ parent::addFieldOptionToField($obj['attach'], $obj['object_id']);
253
+ }
254
+ } elseif ($obj['object_type'] == 'field_option') parent::updateFieldOption($obj['values'], $obj['object_id']);
255
+ elseif ($obj['object_type'] == 'style') parent::updateStyle($obj['values'], $obj['object_id']);
256
+ $out['objects'][] = $obj;
257
+ }
258
+ }
259
+ }
260
+
261
+ elseif ($_POST['object_bulk_action'] == 'delete') {
262
+ foreach ($_POST['objects'] as $obj) {
263
+ if ($obj['object_do'] == 1) {
264
+ if ($obj['object_type'] == 'form') parent::deleteForm($obj['object_id']);
265
+ elseif ($obj['object_type'] == 'field') parent::deleteField($obj['object_id']);
266
+ elseif ($obj['object_type'] == 'field_option') parent::deleteFieldOption($obj['object_id']);
267
+ elseif ($obj['object_type'] == 'style') parent::deleteStyle($obj['object_id']);
268
+ elseif ($obj['object_type'] == 'form_submission') parent::deleteUserData($obj['object_id']);
269
+ $out['objects'][] = $obj;
270
+ }
271
+ }
272
+ }
273
+ }
274
+ return $out;
275
  }
276
 
277
  function printAdminPage() {
280
  $admin_options['show_install_popover'] = 0;
281
  ?>
282
  <script type="text/javascript" language="javascript">
283
+ $j(document).ready(function() {
284
  showCCFUsagePopover();
285
  });
286
  </script>
287
  <?php
288
  update_option(parent::getAdminOptionsName(), $admin_options);
289
+ }
290
+ $this->handleAdminPostRequests();
291
+ //parent::serializeAllFormFields();
292
+ //parent::serializeAllFieldOptions();
293
+ if ($_POST['insert_default_content']) {
294
+ ccf_utils::load_module('db/custom-contact-forms-default-db.php');
295
+ new CustomContactFormsDefaultDB();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
296
  } elseif ($_POST['contact_author']) {
297
  $this_url = (!empty($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : $_SERVER['SERVER_NAME'];
298
  $this->contactAuthor($_POST['name'], $_POST['email'], $this_url, $_POST['message'], $_POST['type']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
  } elseif ($_GET['clear_tables'] == 1) {
300
  parent::emptyAllTables();
301
  }
 
302
  $styles = parent::selectAllStyles();
303
  $style_options = '<option value="0">Default</option>';
304
  foreach ($styles as $style)
305
  $style_options .= '<option value="'.$style->id.'">'.$style->style_slug.'</option>';
 
 
306
  ?>
307
  <div id="customcontactforms-admin">
308
+ <div class="plugin-header">
309
+ <h2>
310
+ <?php _e("Custom Contact Forms", 'custom-contact-forms'); ?>
311
+ </h2>
312
+ <input type="button" class="usage-popover-button" value="<?php _e("Plugin Usage Manual", 'custom-contact-forms'); ?>" />
313
+ </div>
314
  <ul id="plugin-nav">
 
 
 
315
  <li><a href="#create-fields"><?php _e("Create Fields", 'custom-contact-forms'); ?></a></li>
316
  <li><a href="#create-forms"><?php _e("Create Forms", 'custom-contact-forms'); ?></a></li>
317
  <li><a href="#manage-fields"><?php _e("Manage Fields", 'custom-contact-forms'); ?></a></li>
318
  <li><a href="#manage-fixed-fields"><?php _e("Manage Fixed Fields", 'custom-contact-forms'); ?></a></li>
319
  <li><a href="#manage-forms"><?php _e("Manage Forms", 'custom-contact-forms'); ?></a></li>
 
320
  <li><a href="#create-styles"><?php _e("Create Styles", 'custom-contact-forms'); ?></a></li>
321
  <li><a href="#manage-styles"><?php _e("Manage Styles", 'custom-contact-forms'); ?></a></li>
322
  <li><a href="#manage-field-options"><?php _e("Manage Field Options", 'custom-contact-forms'); ?></a></li>
323
+ <li><a href="#contact-author"><?php _e("Suggest a Feature", 'custom-contact-forms'); ?></a></li>
324
  <li><a href="#contact-author"><?php _e("Bug Report", 'custom-contact-forms'); ?></a></li>
325
  <li><a href="#custom-html"><?php _e("Custom HTML Forms", 'custom-contact-forms'); ?></a></li>
 
326
  <li class="last"><a href="#plugin-news"><?php _e("Plugin News", 'custom-contact-forms'); ?></a></li>
327
  </ul>
 
328
  <a class="genesis" href="http://www.shareasale.com/r.cfm?b=241369&u=481196&m=28169&urllink=&afftrack=">Custom Contact Forms works best with any of the 20+ <span>Genesis</span> Wordpress child themes. The <span>Genesis Framework</span> empowers you to quickly and easily build incredible websites with WordPress.</a>
329
 
330
  <form class="blog-horizontal-form" method="post" action="http://www.aweber.com/scripts/addlead.pl">
340
  <input type="text" name="email" value="Your Email" onclick="value=''" />
341
  <input type="submit" value="Sign Up for Free" />
342
  </form>
343
+
344
+ <a name="create-fields"></a>
345
  <div id="create-fields" class="postbox">
346
  <h3 class="hndle"><span>
347
  <?php _e("Create A Form Field", 'custom-contact-forms'); ?>
348
  </span></h3>
349
  <div class="inside">
350
+ <form id="ccf-create-field" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
351
  <ul>
352
  <li>
353
  <label for="field_slug">*
354
  <?php _e("Field Slug:", 'custom-contact-forms'); ?>
355
  </label>
356
+ <input name="object[field_slug]" type="text" maxlength="40" />
357
  <br />
358
  <?php _e("This is just a unique way for CCF to refer to your field. Must be unique from other slugs and contain only underscores and alphanumeric characters.", 'custom-contact-forms'); ?>
359
  </li>
361
  <label for="field_label">
362
  <?php _e("Field Label:", 'custom-contact-forms'); ?>
363
  </label>
364
+ <input name="object[field_label]" type="text" maxlength="100" />
365
  <br />
366
  <?php _e("The field label is displayed next to the field and is visible to the user.", 'custom-contact-forms'); ?>
367
  </li>
369
  <label for="field_type">*
370
  <?php _e("Field Type:", 'custom-contact-forms'); ?>
371
  </label>
372
+ <select name="object[field_type]">
373
  <option>Text</option>
374
  <option>Textarea</option>
375
  <option>Hidden</option>
382
  <label for="field_value">
383
  <?php _e("Initial Value:", 'custom-contact-forms'); ?>
384
  </label>
385
+ <input name="object[field_value]" type="text" maxlength="50" />
386
  <br />
387
  (
388
  <?php _e("This is the initial value of the field. If you set the type as checkbox, it is recommend you set this to what the checkbox is implying. For example if I were creating the checkbox
395
  <label for="field_maxlength">
396
  <?php _e("Max Length:", 'custom-contact-forms'); ?>
397
  </label>
398
+ <input class="ccf-width50" size="10" name="object[field_maxlength]" type="text" maxlength="4" />
399
  <br />
400
  <?php _e("0 for no limit; only applies to Text fields", 'custom-contact-forms'); ?>
401
  </li>
403
  <label for="field_required">*
404
  <?php _e("Required Field:", 'custom-contact-forms'); ?>
405
  </label>
406
+ <select name="object[field_required]">
407
  <option value="0">
408
  <?php _e("No", 'custom-contact-forms'); ?>
409
  </option>
418
  <label for="field_instructions">
419
  <?php _e("Field Instructions:", 'custom-contact-forms'); ?>
420
  </label>
421
+ <input name="object[field_instructions]" type="text" />
422
  <br />
423
  <?php _e("If this is filled out, a tooltip popover displaying this text will show when the field is selected.", 'custom-contact-forms'); ?>
424
  </li>
426
  <label for="field_class">
427
  <?php _e("Field Class:", 'custom-contact-forms'); ?>
428
  </label>
429
+ <input name="object[field_class]" type="text" />
430
  <br />
431
  <?php _e("If you manage your own .css stylesheet, you can use this to attach a class to this field. Leaving this blank will do nothing.", 'custom-contact-forms'); ?>
432
  </li>
434
  <label for="field_error">
435
  <?php _e("Field Error:", 'custom-contact-forms'); ?>
436
  </label>
437
+ <input name="object[field_error]" type="text" />
438
  <br />
439
  <?php _e("If a user leaves this field blank and the field is required, this error message will be shown. A generic default will show if left blank.", 'custom-contact-forms'); ?>
440
  </li>
441
  <li>
442
+ <input type="hidden" name="object[user_field]" value="1" />
443
+ <input type="hidden" name="object_type" value="field" />
444
+ <input type="submit" value="<?php _e("Create Field", 'custom-contact-forms'); ?>" name="object_create" class="create-button" />
445
  </li>
446
+ <li class="attach"><span class="ccf-red">*</span> <?php _e('If this is a dropdown or radio field, you should go to the field manager below to attach field options after you create it.', 'custom-contact-forms'); ?></li>
447
+
448
  </ul>
449
  </form>
450
  </div>
455
  <?php _e("Create A Form", 'custom-contact-forms'); ?>
456
  </span></h3>
457
  <div class="inside">
458
+ <form id="ccf-create-form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
459
  <ul>
460
  <li>
461
+ <label for="object[form_slug]">*
462
  <?php _e("Form Slug:", 'custom-contact-forms'); ?>
463
  </label>
464
+ <input type="text" maxlength="100" name="object[form_slug]" />
465
  <br />
466
  <?php _e("This is just a unique way for CCF to refer to your form. Must be unique from other slugs and contain only underscores and alphanumeric characters.", 'custom-contact-forms'); ?>
467
  </li>
468
  <li>
469
+ <label for="object[form_title]">
470
  <?php _e("Form Title:", 'custom-contact-forms'); ?>
471
  </label>
472
+ <input type="text" maxlength="200" name="object[form_title]" />
473
  <?php _e("This text is displayed above the form as the heading.", 'custom-contact-forms'); ?>
474
  </li>
475
  <li>
476
+ <label for="object[form_action]">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
477
  <?php _e("Form Style:", 'custom-contact-forms'); ?>
478
  </label>
479
+ <select name="object[form_style]" class="form_style_input">
480
  <?php echo $style_options; ?>
481
  </select>
482
  (<a href="#create-styles"><?php _e("Click to create a style", 'custom-contact-forms'); ?></a>)</li>
483
  <li>
484
+ <label for="object[submit_button_text]">
485
  <?php _e("Submit Button Text:", 'custom-contact-forms'); ?>
486
  </label>
487
+ <input type="text" maxlength="200" name="object[submit_button_text]" />
488
+ </li>
489
+ <li>
490
+ <label for="object[form_email]">
491
+ <?php _e("Form Destination Email:", 'custom-contact-forms'); ?>
492
+ </label>
493
+ <input type="text" name="object[form_email]" />
494
+ <br />
495
+ <?php _e("Will receive all submissions from this form; if left blank it will use the default specified in general settings.", 'custom-contact-forms'); ?>
496
  </li>
497
  <li>
498
+ <label for="object[form_email_subject]">
499
+ <?php _e("Form Email Subject:", 'custom-contact-forms'); ?>
500
  </label>
501
+ <input type="text" name="object[form_email_subject]" />
502
  <br />
503
+ <?php _e("When submitted and configured accordingly, the form will send an email with this subject.", 'custom-contact-forms'); ?>
504
  </li>
505
  <li>
506
+ <label for="object[form_email_name]">
507
+ <?php _e("Form Email Name:", 'custom-contact-forms'); ?>
508
  </label>
509
+ <input type="text" name="object[form_email_name]" />
510
  <br />
511
+ <?php _e("When submitted and configured accordingly, the form will send an email with this as the email 'from name'.", 'custom-contact-forms'); ?>
512
  </li>
513
  <li>
514
+ <label for="object[form_success_message]">
515
  <?php _e("Form Success Message:", 'custom-contact-forms'); ?>
516
  </label>
517
+ <input type="text" name="object[form_success_message]" />
518
  <br />
519
  <?php _e("Will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings.", 'custom-contact-forms'); ?>
520
  </li>
521
  <li>
522
+ <label for="object[form_success_title]">
523
  <?php _e("Form Success Message Title:", 'custom-contact-forms'); ?>
524
  </label>
525
+ <input type="text" name="object[form_success_title]" />
526
  <br />
527
  <?php _e("Will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings.", 'custom-contact-forms'); ?>
528
  </li>
529
  <li>
530
+ <label for="object[form_thank_you_page]">
531
  <?php _e("Custom Success URL:", 'custom-contact-forms'); ?>
532
  </label>
533
+ <input type="text" name="object[form_thank_you_page]" />
534
  <br />
535
  <?php _e("If this is filled out, users will be sent to this page when they successfully fill out this form. If it is left blank, a popover showing the form's 'success message' will be displayed on form success.", 'custom-contact-forms'); ?>
536
  </li>
537
  <li>
538
+ <label for="form_access"><?php _e('Who Can View This Form:', ''); ?></label>
539
+
540
+ <?php
541
+ $roles = parent::getRolesArray();
542
+ $i = 0;
543
+ foreach ($roles as $role) {
544
+ if ($i == 3) echo '<br />';
545
+ ?>
546
+ <div class="role">
547
+ <input type="checkbox" checked="checked" name="object[form_access][]" value="<?php echo $role; ?>" />
548
+ <?php echo $role; ?>
549
+ </div>
550
+ <?php
551
+ $i++;
552
+ }
553
+ ?><br />
554
+ <?php _e('Choose which types of users should be able to view this form.', 'custom-contact-forms'); ?>
555
+ </li>
556
+ <li>
557
+ <input type="hidden" name="object_type" value="form" />
558
+ <input type="submit" class="create-button" value="<?php _e("Create Form", 'custom-contact-forms'); ?>" name="object_create" />
559
+ </li>
560
+ <li class="attach"><span class="ccf-red">*</span> <?php _e('You should got to the form manager below to attach fields to this form after you create it.', 'custom-contact-forms'); ?></li>
561
  </ul>
562
  </form>
563
  </div>
566
  <h3 class="manage-h3">
567
  <?php _e("Manage User Fields", 'custom-contact-forms'); ?>
568
  </h3>
569
+ <form class="ccf-edit-ajax" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
570
  <table class="widefat post" id="manage-fields" cellspacing="0">
571
  <thead>
572
  <tr>
573
+ <th scope="col" class="manage-column check-col"><input type="checkbox" class="checkall" /></th>
574
  <th scope="col" class="manage-column field-slug"><?php _e("Slug", 'custom-contact-forms'); ?></th>
575
  <th scope="col" class="manage-column field-label"><?php _e("Label", 'custom-contact-forms'); ?></th>
576
  <th scope="col" class="manage-column field-type"><?php _e("Type", 'custom-contact-forms'); ?></th>
577
  <th scope="col" class="manage-column field-value"><?php _e("Initial Value", 'custom-contact-forms'); ?></th>
578
  <th scope="col" class="manage-column field-required"><?php _e("Required", 'custom-contact-forms'); ?></th>
579
  <th scope="col" class="manage-column field-maxlength"><?php _e("Maxlength", 'custom-contact-forms'); ?></th>
580
+ <th scope="col" class="manage-column field-expand"></th>
581
  </tr>
582
  </thead>
583
  <tbody>
590
  $field_types = str_replace('<option>'.$fields[$i]->field_type.'</option>', '<option selected="selected">'.$fields[$i]->field_type.'</option>', $field_types);
591
 
592
  ?>
593
+ <tr class="row-field-<?php echo $fields[$i]->id; ?> <?php if ($z % 2 == 1) echo ' ccf-evenrow'; ?>">
594
+ <td><input class="object-check" type="checkbox" value="1" name="objects[<?php echo $i; ?>][object_do]" /></td>
595
+ <td><input type="text" name="objects[<?php echo $i; ?>][values][field_slug]" class="ccf-width100" maxlength="50" value="<?php echo $fields[$i]->field_slug; ?>" /></td>
596
+ <td><input type="text" name="objects[<?php echo $i; ?>][values][field_label]" maxlength="100" value="<?php echo $fields[$i]->field_label; ?>" /></td>
597
+ <td><select name="objects[<?php echo $i; ?>][values][field_type]">
598
  <?php echo $field_types; ?>
599
  </select></td>
600
+ <td><input type="text" name="objects[<?php echo $i; ?>][values][field_value]" maxlength="50" class="ccf-width75" value="<?php echo $fields[$i]->field_value; ?>" /></td>
601
+ <td><select name="objects[<?php echo $i; ?>][values][field_required]">
602
  <option value="1">
603
  <?php _e("Yes", 'custom-contact-forms'); ?>
604
  </option>
609
  <td><?php if ($fields[$i]->field_type == 'Dropdown' || $fields[$i]->field_type == 'Radio') { ?>
610
  <b>-</b>
611
  <?php } else { ?>
612
+ <input type="text" class="ccf-width50" name="objects[<?php echo $i; ?>][values][field_maxlength]" value="<?php echo $fields[$i]->field_maxlength; ?>" />
613
  <?php } ?>
614
  </td>
615
+ <td><input type="hidden" class="object-type" name="objects[<?php echo $i; ?>][object_type]" value="field" />
616
+ <input type="hidden" class="object-id" name="objects[<?php echo $i; ?>][object_id]" value="<?php echo $fields[$i]->id; ?>" />
617
  <span class="fields-options-expand"></span>
 
 
618
  </tr>
619
  <?php $show_field_options = ($fields[$i]->field_type == 'Radio' || $fields[$i]->field_type == 'Dropdown') ? true : false; ?>
620
+ <tr class="row-field-<?php echo $fields[$i]->id; ?> <?php if ($z % 2 == 1) echo 'ccf-evenrow'; ?>">
621
+ <td class="fields-extra-options" colspan="8">
622
  <div class="row-one">
623
  <a href="javascript:void(0)" class="toollink" title="<?php _e('If this is filled out, a tooltip popover displaying this text will show when the field is selected.', 'custom-contact-forms'); ?>">(?)</a>
624
  <label for="field_instructions">
625
  <?php _e("Field Instructions:", 'custom-contact-forms'); ?>
626
  </label>
627
+ <input type="text" class="ccf-width150" name="objects[<?php echo $i; ?>][values][field_instructions]" value="<?php echo $fields[$i]->field_instructions; ?>" />
628
  <a href="javascript:void(0)" class="toollink" title="<?php _e('If you manage a .CSS file for your theme, you could create a class in that file and add it to this field. If the form attaching this field is using a "Form Style" other than the default, styles inherited from the "Field Class" might be overwritten.', 'custom-contact-forms'); ?>">(?)</a>
629
  <label for="field_class">
630
  <?php _e("Field Class:", 'custom-contact-forms'); ?>
631
  </label>
632
+ <input type="text" class="ccf-width100" name="objects[<?php echo $i; ?>][values][field_class]" value="<?php echo $fields[$i]->field_class; ?>" />
633
  <a href="javascript:void(0)" class="toollink" title="<?php _e('This lets you customize the error message displayed when this field is required and left blank.', 'custom-contact-forms'); ?>">(?)</a>
634
  <label for="field_error">
635
  <?php _e("Field Error:", 'custom-contact-forms'); ?>
636
  </label>
637
+ <input type="text" class="ccf-width200" name="objects[<?php echo $i; ?>][values][field_error]" value="<?php echo $fields[$i]->field_error; ?>" />
638
  </div>
639
  <?php
640
  if ($show_field_options) { ?>
641
+ <div class="fattach">
642
+ <div class="field-detach">
643
+ <span class="ccf-bold">Detach Options:</span>
644
  <?php if (empty($attached_options)) { ?>
645
+ <select class="onObject<?php echo $fields[$i]->id ?> detach-object detach-field-option objectTypeField" name="objects[<?php echo $i; ?>][detach]">
646
  <option value="-1">Nothing Attached!</option>
647
  </select>
648
  <?php } else { ?>
649
+ <select name="objects[<?php echo $i; ?>][detach]" class="onObject<?php echo $fields[$i]->id ?> detach-object detach-field-option objectTypeField">
650
  <?php
651
  foreach ($attached_options as $option_id) {
652
  $option = parent::selectFieldOption($option_id);
657
  ?>
658
  </select>
659
  <?php } ?>
660
+ <span class="field-detach-check">
661
+ <input class="detach-check" type="checkbox" name="objects[<?php echo $i; ?>][detach_confirm]" value="1" />
662
+ <span class="detach-lang">(Check to detach option)</span>
663
+ </span><br />
664
+ <span class="ccf-red ccf-bold">*</span>
665
+ <?php _e("Detach field options you", 'custom-contact-forms'); ?>
666
  <a href="#create-field-options">
667
  <?php _e("create", 'custom-contact-forms'); ?>
668
  </a>. </div>
669
  <?php $all_options = $this->getFieldOptionsForm(); ?>
670
+ <div class="field-attach">
671
+ <span class="ccf-bold">Attach Options:</span>
672
  <?php if (empty($all_options)) { ?>
673
  <b>No Field Options to Attach</b>
674
  <?php } else { ?>
675
+ <select name="objects[<?php echo $i; ?>][attach]" class="onObject<?php echo $fields[$i]->id ?> attach-object attach-field-option objectTypeField">
676
  <?php echo $all_options; ?>
677
  </select>
678
+ <span class="field-attach-check">
679
+ <input type="checkbox" class="attach-check" name="objects[<?php echo $i; ?>][attach_confirm]" value="1" />
680
  <?php } ?>
681
+ <span class="attach-lang">(Check to attach option)</span>
682
+ </span><br />
683
+ <span class="ccf-red ccf-bold">*</span>
684
  <?php _e("Attach field options in the order you want them to display.", 'custom-contact-forms'); ?>
685
  </div>
686
+ </div>
687
  <?php } ?>
688
  </td>
689
  </tr>
 
690
  <?php
691
  }
692
  ?>
694
 
695
  <tfoot>
696
  <tr>
697
+ <th scope="col" class="manage-column check-col"><input type="checkbox" class="checkall" /></th>
698
  <th scope="col" class="manage-column field-slug"><?php _e("Slug", 'custom-contact-forms'); ?></th>
699
  <th scope="col" class="manage-column field-label"><?php _e("Label", 'custom-contact-forms'); ?></th>
700
  <th scope="col" class="manage-column field-type"><?php _e("Type", 'custom-contact-forms'); ?></th>
701
  <th scope="col" class="manage-column field-value"><?php _e("Initial Value", 'custom-contact-forms'); ?></th>
702
  <th scope="col" class="manage-column field-required"><?php _e("Required", 'custom-contact-forms'); ?></th>
703
  <th scope="col" class="manage-column field-maxlength"><?php _e("Maxlength", 'custom-contact-forms'); ?></th>
704
+ <th scope="col" class="manage-column field-expand"></th>
705
  </tr>
706
  </tfoot>
707
  </table>
708
+ <select class="bulk-dropdown" name="object_bulk_action">
709
+ <option value="0">Bulk Actions</option>
710
+ <option value="edit">Edit</option>
711
+ <option value="delete">Delete</option>
712
+ </select> <input type="submit" name="object_bulk_apply" class="bulk-apply" value="Apply" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" width="16" height="16" class="loading-img" />
713
+ </form>
714
  <a name="manage-fixed-fields"></a>
715
  <h3 class="manage-h3">
716
  <?php _e("Manage Fixed Fields", 'custom-contact-forms'); ?>
717
  </h3>
718
+ <form class="ccf-edit-ajax" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
719
  <table class="widefat post" id="manage-fixed-fields" cellspacing="0">
720
  <thead>
721
  <tr>
722
+ <th scope="col" class="manage-column check-col"><input type="checkbox" class="checkall" /></th>
723
  <th scope="col" class="manage-column field-slug"><?php _e("Slug", 'custom-contact-forms'); ?></th>
724
  <th scope="col" class="manage-column field-label"><?php _e("Label", 'custom-contact-forms'); ?></th>
725
  <th scope="col" class="manage-column field-type"><?php _e("Type", 'custom-contact-forms'); ?></th>
726
  <th scope="col" class="manage-column field-value"><?php _e("Initial Value", 'custom-contact-forms'); ?></th>
727
  <th scope="col" class="manage-column field-value"><?php _e("Required", 'custom-contact-forms'); ?></th>
728
  <th scope="col" class="manage-column field-maxlength"><?php _e("Maxlength", 'custom-contact-forms'); ?></th>
729
+ <th scope="col" class="manage-column field-expand"></th>
730
+ </tr>
731
  </thead>
732
  <tbody>
733
  <?php
738
  $field_types = str_replace('<option>'.$fields[$i]->field_type.'</option>', '<option selected="selected">'.$fields[$i]->field_type.'</option>', $field_types);
739
 
740
  ?>
741
+ <tr class="row-field-<?php echo $fields[$i]->id; ?> <?php if ($z % 2 == 0) echo 'ccf-evenrow'; ?>">
742
+ <td><input class="object-check" type="checkbox" value="1" name="objects[<?php echo $i; ?>][object_do]" /></td>
743
  <td><?php echo $fields[$i]->field_slug; ?></td>
744
  <td><?php if ($fields[$i]->field_slug == 'resetButton') { _e('None', 'custom-contact-forms'); } else { ?>
745
+ <input type="text" name="objects[<?php echo $i; ?>][values][field_label]" maxlength="100" value="<?php echo $fields[$i]->field_label; ?>" />
746
  <?php } ?></td>
747
  <td><?php echo $fields[$i]->field_type; ?>
748
  <td><?php if ($fields[$i]->field_type != 'Checkbox') { ?>
749
+ <input type="text" name="objects[<?php echo $i; ?>][values][field_value]" class="ccf-width75" maxlength="50" value="<?php echo $fields[$i]->field_value; ?>" />
750
  <?php } else {
751
  echo $fields[$i]->field_value;
752
  ?>
753
  <?php } ?>
754
  </td>
755
+ <td><?php if ($fields[$i]->field_slug == 'fixedEmail' || $fields[$i]->field_slug == 'emailSubject' || $fields[$i]->field_slug == 'fixedWebsite' || $fields[$i]->field_slug == 'usaStates' || $fields[$i]->field_slug == 'allCountries') { ?>
756
+ <select name="objects[<?php echo $i; ?>][values][field_required]">
757
  <option value="1">
758
  <?php _e("Yes", 'custom-contact-forms'); ?>
759
  </option>
770
  }
771
  ?>
772
  </td>
773
+ <td><?php if ($fields[$i]->field_type != 'Checkbox' && $fields[$i]->field_slug != 'resetButton' && $fields[$i]->field_slug != 'allCountries' && $fields[$i]->field_slug != 'usaStates') { ?>
774
+ <input type="text" class="ccf-width50" name="objects[<?php echo $i; ?>][values][field_maxlength]" value="<?php echo $fields[$i]->field_maxlength; ?>" />
775
  <?php } else { _e('None', 'custom-contact-forms'); } ?>
776
  </td>
777
+ <td><input type="hidden" name="objects[<?php echo $i; ?>][object_type]" value="field" />
778
+ <input type="hidden" class="object-id" name="objects[<?php echo $i; ?>][object_id]" value="<?php echo $fields[$i]->id; ?>" />
779
  <span class="fixed-fields-options-expand"></span>
 
780
  </tr>
781
+ <tr class="row-field-<?php echo $fields[$i]->id; ?> <?php if ($z % 2 == 0) echo 'ccf-evenrow'; ?>">
782
+ <td class="fixed-fields-extra-options" colspan="8"><label for="field_class">
783
  <a href="javascript:void(0)" class="toollink" title="<?php _e('If you manage a .CSS file for your theme, you could create a class in that file and add it to this field. If the form attaching this field is using a "Form Style" other than the default, styles inherited from the "Field Class" might be overwritten.', 'custom-contact-forms'); ?>">(?)</a>
784
  <?php _e('Field Class:', 'custom-contact-forms'); ?>
785
  </label>
786
+ <input type="text" value="<?php echo $fields[$i]->field_class; ?>" name="objects[<?php echo $i; ?>][values][field_class]" />
787
  <?php if ($fields[$i]->field_slug != 'resetButton') { ?>
788
  <a href="javascript:void(0)" class="toollink" title="<?php _e('If this is filled out, a tooltip popover displaying this text will show when the field is selected.', 'custom-contact-forms'); ?>">(?)</a>
789
  <label for="field_instructions">
790
  <?php _e("Field Instructions:", 'custom-contact-forms'); ?>
791
  </label>
792
+ <input type="text" name="objects[<?php echo $i; ?>][values][field_instructions]" class="ccf-width200" value="<?php echo $fields[$i]->field_instructions; ?>" />
793
  <a href="javascript:void(0)" class="toollink" title="<?php _e('This lets you customize the error message displayed when this field is required and left blank.', 'custom-contact-forms'); ?>">(?)</a>
794
  <label for="field_error">
795
  <?php _e("Field Error:", 'custom-contact-forms'); ?>
796
  </label>
797
+ <input type="text" class="ccf-width200" name="objects[<?php echo $i; ?>][values][field_error]" value="<?php echo $fields[$i]->field_error; ?>" />
798
  <br />
799
  <?php } ?>
800
  <div class="field_descrip"><?php echo $GLOBALS['ccf_fixed_fields'][$fields[$i]->field_slug]; ?></div></td>
801
  </tr>
 
802
  <?php
803
  }
804
  ?>
806
 
807
  <tfoot>
808
  <tr>
809
+ <th scope="col" class="manage-column check-col"><input type="checkbox" class="checkall" /></th>
810
  <th scope="col" class="manage-column field-slug"><?php _e("Slug", 'custom-contact-forms'); ?></th>
811
  <th scope="col" class="manage-column field-label"><?php _e("Label", 'custom-contact-forms'); ?></th>
812
  <th scope="col" class="manage-column field-type"><?php _e("Type", 'custom-contact-forms'); ?></th>
813
  <th scope="col" class="manage-column field-value"><?php _e("Initial Value", 'custom-contact-forms'); ?></th>
814
  <th scope="col" class="manage-column field-value"><?php _e("Required", 'custom-contact-forms'); ?></th>
815
  <th scope="col" class="manage-column field-maxlength"><?php _e("Maxlength", 'custom-contact-forms'); ?></th>
816
+ <th scope="col" class="manage-column field-expand"></th>
817
  </tr>
818
  </tfoot>
819
  </table>
820
+ <select class="bulk-dropdown" name="object_bulk_action">
821
+ <option value="0">Bulk Actions</option>
822
+ <option value="edit">Edit</option>
823
+ </select> <input type="submit" class="bulk-apply" name="object_bulk_apply" value="Apply" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" width="16" height="16" class="loading-img" />
824
+ </form>
825
  <a name="manage-field-options"></a>
826
  <div id="manage-field-options" class="postbox">
827
  <h3 class="hndle"><span>
828
+ <?php _e("Manage Field Options", 'custom-contact-forms'); ?>
829
  </span></h3>
830
  <div class="inside">
831
+ <form class="ccf-edit-ajax" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
832
+
833
+ <table cellpadding="0" cellspacing="0">
834
+ <thead>
835
+ <tr>
836
+ <th><input class="checkall" type="checkbox" /></th>
837
+ <th><?php _e("Slug", 'custom-contact-forms'); ?></th>
838
+ <th><?php _e("Label", 'custom-contact-forms'); ?></th>
839
+ <th><?php _e("Value", 'custom-contact-forms'); ?></th>
840
+ <th><?php _e("Is Dead", 'custom-contact-forms'); ?></th>
841
+ </tr>
842
+ </thead>
843
+ <tfoot>
844
+ <tr>
845
+ <th><input class="checkall" type="checkbox" /></th>
846
+ <th><?php _e("Slug", 'custom-contact-forms'); ?></th>
847
+ <th><?php _e("Label", 'custom-contact-forms'); ?></th>
848
+ <th><?php _e("Value", 'custom-contact-forms'); ?></th>
849
+ <th><?php _e("Is Dead", 'custom-contact-forms'); ?></th>
850
+ </tr>
851
+ </tfoot>
852
+ <tbody>
853
+ <?php
854
+ $options = parent::selectAllFieldOptions(1);
855
+ $option_count = count($options);
856
+ $i = 0;
857
+ foreach ($options as $option) {
858
+ ?>
859
+ <tr class="row-field_option-<?php echo $option->id; ?> <?php if ($i % 2 == 1) echo 'evenrow-field-options'; ?>">
860
+ <td><input type="checkbox" class="object-check" name="objects[<?php echo $i; ?>][object_do]" value="1" /> </td>
861
+ <td><input type="hidden" name="objects[<?php echo $i; ?>][object_type]" value="field_option" />
862
+
863
+ <input class="object-id" type="hidden" name="objects[<?php echo $i; ?>][object_id]" value="<?php echo $option->id; ?>" />
864
+
865
+ <input type="text" maxlength="20" name="<?php ?>objects[<?php echo $i; ?>][values][option_slug]" value="<?php echo $option->option_slug; ?>" class="ccf-width50" /></td>
866
+ <td><input type="text" name="objects[<?php echo $i; ?>][values][option_label]" value="<?php echo $option->option_label; ?>" class="ccf-width100" /></td>
867
+ <td><input type="text" name="objects[<?php echo $i; ?>][values][option_value]" value="<?php echo $option->option_value; ?>" class="ccf-width100" /></td>
868
+ <td><select name="objects[<?php echo $i; ?>][values][option_dead]"><option value="0"><?php _e('No', 'custom-contact-forms'); ?></option><option <?php if ($option->option_dead == 1) echo 'selected="selected"'; ?> value="1"><?php _e('Yes', 'custom-contact-forms'); ?></option></select></td>
869
+
870
+ </tr>
871
+ <?php
872
+ $i++;
873
+ } if (empty($options)) {
874
+ ?>
875
+ <tr>
876
+ <td class="ccf-center"><?php _e("No field options have been created.", 'custom-contact-forms'); ?></td>
877
+ </tr>
878
+ <?php
879
+ }
880
+ ?>
881
+ </tbody>
882
+ </table>
883
+ <select class="bulk-dropdown" name="object_bulk_action"><option value="0">Bulk Actions</option><option value="edit">Edit</option><option value="delete">Delete</option></select> <input type="submit" class="bulk-apply" name="object_bulk_apply" value="Apply" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" width="16" height="16" class="loading-img" />
884
  </form>
885
+ </div>
886
+ </div>
887
+
888
+ <div id="create-field-options" class="postbox">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
889
  <h3 class="hndle"><span>
890
+ <?php _e("Create A Field Option", 'custom-contact-forms'); ?>
891
  </span></h3>
892
  <div class="inside">
893
+ <form id="ccf-create-field-option" method="post" action="<?php echo $_SERVER['REQUEST_URI']?>">
894
+ <ul>
895
+ <li>
896
+ <label for="object[option_slug]">*
897
+ <?php _e("Option Slug:", 'custom-contact-forms'); ?>
898
+ </label>
899
+ <input maxlength="20" type="text" name="object[option_slug]" />
900
+ <br />
901
+ <?php _e("Used to identify this option, solely for admin purposes; must be unique, and contain only letters, numbers, and underscores. Example: 'slug_one'", 'custom-contact-forms'); ?>
902
+ </li>
903
+ <li>
904
+ <label for="object[option_label]">*
905
+ <?php _e("Option Label:", 'custom-contact-forms'); ?>
906
+ </label>
907
+ <input type="text" name="object[option_label]" />
908
+ <br />
909
+ <?php _e("This is what is shown to the user in the dropdown or radio field. Example: 'United States'", 'custom-contact-forms'); ?>
910
+ </li>
911
+ <li>
912
+ <label for="object[option_value]">
913
+ <?php _e("Option Value:", 'custom-contact-forms'); ?>
914
+ </label>
915
+ <input type="text" name="object[option_value]" /> <a href="javascript:void(0)" class="toollink" title="<?php _e("This is the actual value of the option which is not shown to the user. This can be the same thing as the label. An example pairing of label => value is: 'The color green' => 'green' or 'Yes' => '1'.", 'custom-contact-forms'); ?>">(?)</a>
916
+ <br />
917
+ <?php _e('This is the actual value of the option which is not shown to the user. This can be the same thing as the label. An example pairing of label => value is: "The color green" => "green" or "Yes" => "1".', 'custom-contact-forms'); ?>
918
+ </li>
919
+ <li>
920
+ <label for="object[option_dead]"><?php _e("Is Dead Option:", 'custom-contact-forms'); ?></label>
921
+ <select name="object[option_dead]"><option value="0"><?php _e('No', 'custom-contact-forms'); ?></option><option value="1"><?php _e('Yes', 'custom-contact-forms'); ?></option></select>
922
+ <a href="javascript:void(0)" class="toollink" title="<?php _e("A dead option is something like 'Please Select One'. This is a useful tool for required dropdown fields. If a dead option is submitted by a user for a required dropdown field, then the user will have to go back and fill out the field again.", 'custom-contact-forms'); ?>">(?)</a>
923
+ </li>
924
+ <li>
925
+ <input name="object_type" type="hidden" value="field_option" />
926
+ <input type="submit" class="object-action" name="object_create" value="<?php _e("Create Field Option", 'custom-contact-forms'); ?>" />
927
+
928
+ </li>
929
+ </ul>
930
+ </form>
931
+ </div>
932
  </div>
933
  <form class="rate-me" action="https://www.paypal.com/cgi-bin/webscr" method="post">
934
  <input type="hidden" name="cmd" value="_s-xclick">
938
  <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
939
  <img alt="Donate to Custom Contact Forms plugin" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
940
  </form>
 
941
 
942
+ <a name="manage-forms"></a>
943
  <h3 class="manage-h3">
944
  <?php _e("Manage Forms", 'custom-contact-forms'); ?>
945
  </h3>
946
+ <form class="ccf-edit-ajax" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
947
  <table class="widefat post" id="manage-forms" cellspacing="0">
948
  <thead>
949
  <tr>
950
+ <th scope="col" class="manage-column check-col"><input type="checkbox" class="checkall" /></th>
951
  <th scope="col" class="manage-column form-code"><?php _e("Form Display Code", 'custom-contact-forms'); ?></th>
952
  <th scope="col" class="manage-column form-slug"><?php _e("Slug", 'custom-contact-forms'); ?></th>
953
+ <th scope="col" class="manage-column form-slug"><?php _e("Destination Email", 'custom-contact-forms'); ?></th>
954
  <th scope="col" class="manage-column form-title"><?php _e("Title", 'custom-contact-forms'); ?></th>
955
+ <th scope="col" class="manage-column form-button"><?php _e("Button Text", 'custom-contact-forms'); ?></th>
956
+ <th scope="col" class="manage-column form-style"><?php _e("Style", 'custom-contact-forms'); ?></th>
957
+ <th scope="col" class="manage-column form-expand"></th>
958
  </tr>
959
  </thead>
960
  <tbody>
967
  $this_style = parent::selectStyle($forms[$i]->form_style, '');
968
  $sty_opt = str_replace('<option value="'.$forms[$i]->form_style.'">'.$this_style->style_slug.'</option>', '<option value="'.$forms[$i]->form_style.'" selected="selected">'.$this_style->style_slug.'</option>', $style_options);
969
  ?>
970
+ <tr class="row-form-<?php echo $forms[$i]->id; ?> <?php if ($i % 2 == 0) echo 'ccf-evenrow'; ?>">
971
+ <td><input type="checkbox" class="object-check" value="1" name="objects[<?php echo $i; ?>][object_do]" /></td>
972
+ <td><span class="ccf-bold">[customcontact form=<?php echo $forms[$i]->id ?>]</span></td>
973
+ <td><input type="text" class="ccf-width75" name="objects[<?php echo $i; ?>][values][form_slug]" value="<?php echo $forms[$i]->form_slug; ?>" /></td>
974
+ <td><input type="text" name="objects[<?php echo $i; ?>][values][form_email]" value="<?php echo $forms[$i]->form_email; ?>" /></td>
975
+ <td><input type="text" class="ccf-width125" name="objects[<?php echo $i; ?>][values][form_title]" value="<?php echo $forms[$i]->form_title; ?>" /></td>
976
+ <td><input class="ccf-width100" type="text" name="objects[<?php echo $i; ?>][values][submit_button_text]" value="<?php echo $forms[$i]->submit_button_text; ?>" /></td>
977
+ <td><select name="objects[<?php echo $i; ?>][values][form_style]" class="form_style_input">
978
  <?php echo $sty_opt; ?>
979
  </select></td>
980
+ <td><input class="object-id" type="hidden" name="objects[<?php echo $i; ?>][object_id]" value="<?php echo $forms[$i]->id; ?>" />
981
+ <input type="hidden" class="object-type" name="objects[<?php echo $i; ?>][object_type]" value="form" />
982
  <span class="form-options-expand"></span>
 
 
983
  </td>
984
  </tr>
985
+ <tr class="row-form-<?php echo $forms[$i]->id; ?> <?php if ($i % 2 == 0) echo 'ccf-evenrow'; ?>">
986
+ <td class="form-extra-options ccf-center" colspan="8"><table class="form-extra-options-table">
987
  <tbody>
988
  <tr>
989
+ <td class="ccf-bold"><?php _e("Method", 'custom-contact-forms'); ?></td>
990
+ <td class="ccf-bold"><?php _e("Form Action", 'custom-contact-forms'); ?></td>
991
+ <td class="ccf-bold"><?php _e("Email Subject", 'custom-contact-forms'); ?></td>
992
+ <td class="ccf-bold"><?php _e("Email From Name", 'custom-contact-forms'); ?></td>
993
+ <td class="ccf-bold"><?php _e("Success Message Title", 'custom-contact-forms'); ?></td>
994
+ <td class="ccf-bold"><?php _e("Success Message", 'custom-contact-forms'); ?></td>
995
+ <td class="ccf-bold"><?php _e("Custom Success URL", 'custom-contact-forms'); ?></td>
996
  </tr>
997
  <tr>
998
  <td><a href="javascript:void(0)" class="toollink" title="<?php _e("The Form Method is the method by which information is transfer through your form. If you aren't an expert with HTML and PHP, leave this as Post.", 'custom-contact-forms'); ?>">(?)</a>
999
+ <select name="objects[<?php echo $i; ?>][values][form_method]">
1000
  <?php echo $form_methods; ?>
1001
  </select></td>
1002
  <td><a href="javascript:void(0)" class="toollink" title="<?php _e("This lets you process your forms through alternate scripts. If you use a service like InfusionSoft or Aweber, set this to be the same form action as the code provided to you by that service, otherwise leave this blank.", 'custom-contact-forms'); ?>">(?)</a>
1003
+ <input class="ccf-width100" type="text" name="objects[<?php echo $i; ?>][values][form_action]" value="<?php echo $forms[$i]->form_action; ?>" /></td>
1004
+ <td><a href="javascript:void(0)" class="toollink" title="<?php _e("This is the form email subject sent to the destination email address. If left blank, the default from General Settings will be used.", 'custom-contact-forms'); ?>">(?)</a>
1005
+ <input class="ccf-width100" type="text" name="objects[<?php echo $i; ?>][values][form_email_subject]" maxlength="250" value="<?php echo $forms[$i]->form_email_subject; ?>" /></td>
1006
+ <td><a href="javascript:void(0)" class="toollink" title="<?php _e("This is the from name of the email sent on successful form submission. If left blank, the default from General Settings will be used.", 'custom-contact-forms'); ?>">(?)</a>
1007
+ <input class="ccf-width100" type="text" name="objects[<?php echo $i; ?>][values][form_email_name]" maxlength="100" value="<?php echo $forms[$i]->form_email_name; ?>" /></td>
1008
  <td><a href="javascript:void(0)" class="toollink" title="<?php _e("This will be displayed as the header in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings.", 'custom-contact-forms'); ?>">(?)</a>
1009
+ <input class="ccf-width100" type="text" name="objects[<?php echo $i; ?>][values][form_success_title]" value="<?php echo $forms[$i]->form_success_title; ?>" /></td>
1010
  <td><a href="javascript:void(0)" class="toollink" title="<?php _e("This will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings.", 'custom-contact-forms'); ?>">(?)</a>
1011
+ <input type="text" name="objects[<?php echo $i; ?>][values][form_success_message]" class="ccf-width100" value="<?php echo $forms[$i]->form_success_message; ?>" /></td>
1012
  <td><a href="javascript:void(0)" class="toollink" title="<?php _e("If this is filled out, users will be sent to this thank you page when they successfully fill out this form. If it is left blank, a popover showing the form's 'success message' will be displayed on form success.", 'custom-contact-forms'); ?>">(?)</a>
1013
+ <input type="text" class="ccf-width100" name="objects[<?php echo $i; ?>][values][form_thank_you_page]" value="<?php echo $forms[$i]->form_thank_you_page; ?>" /></td>
1014
  </tr>
1015
  <tr>
1016
+ <td colspan="7"><a href="javascript:void(0)" class="toollink" title="<?php _e("The form display code above ([customcontact form=x]) will only work in Wordpress pages and posts. If you want to display this form in a theme file such as page.php, header.php, index.php, category.php, etc, then insert this PHP snippet.", 'custom-contact-forms'); ?>">(?)</a>
1017
+ <label for="theme_code_<?php echo $forms[$i]->id; ?>"><span><?php _e("Code to Display Form in Theme Files:", 'custom-contact-forms'); ?>
1018
+ </span></label>
1019
+ <input type="text" class="ccf-width225" value="&lt;?php if (function_exists('serveCustomContactForm')) { serveCustomContactForm(<?php echo $forms[$i]->id; ?>); } ?&gt;" name="theme_code_<?php echo $forms[$i]->id; ?>" />
1020
+ <a href="javascript:void(0)" class="toollink" title="<?php _e("This field allows you to insert HTML directly after the starting <form> tag.", 'custom-contact-forms'); ?>">(?)</a>
1021
+ <label for="objects[<?php echo $i; ?>][values][custom_code]"><?php _e("Custom Code:", 'custom-contact-forms'); ?></label>
1022
+ <input name="objects[<?php echo $i; ?>][values][custom_code]" type="text" value="<?php echo $forms[$i]->custom_code; ?>" /></td>
1023
+ <a href="javascript:void(0)" class="toollink" title="<?php _e("If you want to show this form to only certain types of users, you can uncheck boxes accordingly. To show this form to anyone, check all the boxes.", 'custom-contact-forms'); ?>">(?)</a>
1024
+ <input name="objects[<?php echo $i; ?>][values][form_access_update]" type="hidden" value="1" /></td>
1025
+ <label for="form_access">Can View Form:</label>
1026
+
1027
+ <?php
1028
+ $roles = parent::getRolesArray();
1029
+ $access_array = parent::getFormAccessArray($forms[$i]->form_access);
1030
+ foreach ($roles as $role) {
1031
+ ?>
1032
+ <input type="checkbox" <?php if (parent::formHasRole($access_array, $role)) { echo 'checked="checked"'; } ?> name="objects[<?php echo $i; ?>][values][form_access][]" value="<?php echo $role; ?>" />
1033
+ <?php
1034
+ echo $role;
1035
+ }
1036
+ ?>
1037
+ </tr>
1038
+ <tr>
1039
+ <td colspan="7">
1040
+ <div class="fattach">
1041
+ <div class="form-detach">
1042
+ <label for="detach_object_id"><span>
1043
  <?php _e("Attached Fields:", 'custom-contact-forms'); ?>
1044
  </span></label>
1045
  <?php
1046
  $attached_fields = parent::getAttachedFieldsArray($forms[$i]->id);
1047
+ if (empty($attached_fields)) echo '<select class="onObject' . $forms[$i]->id . ' objectTypeForm detach-field detach-object" name="objects['.$i.'][detach]"><option value="-1">Nothing Attached!</option></select> ';
1048
  else {
1049
+ echo '<select name="objects['.$i.'][detach]" class="onObject' . $forms[$i]->id . ' detach-object detach-field objectTypeForm">';
1050
  foreach($attached_fields as $attached_field) {
1051
  $this_field = parent::selectField($attached_field, '');
1052
  echo $this_field->field_slug . ' <option value="'.$this_field->id.'">'.$this_field->field_slug.'</option>';
1054
  echo '</select>';
1055
  }
1056
  ?>
1057
+ <span class="form-detach-check">
1058
+ <input type="checkbox" class="detach-check" value="1" name="objects[<?php echo $i; ?>][detach_confirm]" />
1059
+ <span class="detach-lang">(Check to detach field)</span>
1060
+ </span>
1061
  <br />
1062
+ <span class="ccf-red ccf-bold">*</span>
1063
  <?php _e("Attach fields in the order you want them displayed.", 'custom-contact-forms'); ?>
1064
+ </div>
1065
+ <div class="form-attach">
1066
+ <label for="field_id"><span>
1067
  <?php _e("Attach Field:", 'custom-contact-forms'); ?>
1068
  </span></label>
1069
+ <select class="onObject<?php echo $forms[$i]->id; ?> attach-object attach-field objectTypeForm" name="objects[<?php echo $i; ?>][attach]">
1070
  <?php echo $add_fields; ?>
1071
  </select>
1072
+ <span class="form-attach-check">
1073
+ <input class="attach-check" type="checkbox" name="objects[<?php echo $i; ?>][attach_confirm]" value="1" />
1074
+ <span class="attach-lang">((Check to attach field)</span>
1075
+ </span>
1076
  <br />
1077
+ <span class="ccf-red ccf-bold">*</span>
1078
  <?php _e("Attach fixed fields or ones you", 'custom-contact-forms'); ?>
1079
  <a href="#create-fields">
1080
  <?php _e("create", 'custom-contact-forms'); ?>
1081
+ </a>. </div></div></td>
 
 
 
 
 
 
 
 
 
 
1082
  </tr>
1083
  </tbody>
1084
  </table></td>
1085
  </tr>
 
1086
  <?php
1087
  }
1088
  $remember_check = ($admin_options['remember_field_values'] == 0) ? 'selected="selected"' : '';
1096
  <tfoot>
1097
  <tr>
1098
  <tr>
1099
+ <th scope="col" class="manage-column check-col"><input type="checkbox" class="checkall" /></th>
1100
  <th scope="col" class="manage-column form-code"><?php _e("Form Code", 'custom-contact-forms'); ?></th>
1101
  <th scope="col" class="manage-column form-slug"><?php _e("Slug", 'custom-contact-forms'); ?></th>
1102
+ <th scope="col" class="manage-column form-slug"><?php _e("Destination Email", 'custom-contact-forms'); ?></th>
1103
  <th scope="col" class="manage-column form-title"><?php _e("Title", 'custom-contact-forms'); ?></th>
1104
+ <th scope="col" class="manage-column form-button"><?php _e("Button Text", 'custom-contact-forms'); ?></th>
1105
+ <th scope="col" class="manage-column form-style"><?php _e("Style", 'custom-contact-forms'); ?></th>
1106
+ <th scope="col" class="manage-column form-expand"></th>
1107
  </tr>
1108
  </tr>
1109
 
1110
  </tfoot>
1111
  </table>
1112
+ <select class="bulk-dropdown" name="object_bulk_action"><option value="0">Bulk Actions</option><option value="edit">Edit</option><option value="delete">Delete</option></select> <input type="submit" name="object_bulk_apply" class="bulk-apply" value="Apply" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" width="16" height="16" class="loading-img" />
1113
+ </form>
1114
+
1115
+ <a name="create-styles"></a>
1116
+ <div id="create-styles" class="postbox">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1117
  <h3 class="hndle"><span>
1118
+ <?php _e("Create A Style for Your Forms", 'custom-contact-forms'); ?>
1119
  </span></h3>
1120
  <div class="inside">
1121
+ <p>
1122
+ <?php _e("Use this manager to create styles for your forms. Each field is already filled out with nice look defaults. It is recommended you simply input a slug and click create to see the defaults before you start changing values.", 'custom-contact-forms'); ?>
1123
+ </p>
1124
+ <form id="ccf-create-style" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
1125
+ <ul class="style_left">
1126
  <li>
1127
+ <label for="style_slug">*
1128
+ <?php _e("Style Slug:", 'custom-contact-forms'); ?>
1129
  </label>
1130
+ <input type="text" maxlength="30" class="ccf-width75" name="object[style_slug]" />
1131
+ <?php _e("(Must be unique)", 'custom-contact-forms'); ?>
 
 
 
 
 
 
 
 
 
1132
  </li>
1133
  <li>
1134
+ <label for="title_fontsize">
1135
+ <?php _e("Title Font Size:", 'custom-contact-forms'); ?>
1136
  </label>
1137
+ <input type="text" maxlength="20" value="1.2em" class="ccf-width75" name="object[title_fontsize]" />
1138
+ <?php _e("(ex: 10pt, 10px, 1em)", 'custom-contact-forms'); ?>
 
 
1139
  </li>
1140
  <li>
1141
+ <label for="title_fontcolor">
1142
+ <?php _e("Title Font Color:", 'custom-contact-forms'); ?>
1143
  </label>
1144
+ <input type="text" maxlength="20" value="333333" class="ccf-width75 colorfield" name="object[title_fontcolor]" />
1145
+ <?php _e("(ex: FF0000)", 'custom-contact-forms'); ?>
 
 
 
 
 
 
 
 
 
1146
  </li>
1147
  <li>
1148
+ <label for="label_width">
1149
+ <?php _e("Label Width:", 'custom-contact-forms'); ?>
1150
  </label>
1151
+ <input type="text" maxlength="20" value="200px" class="ccf-width75" name="object[label_width]" />
1152
+ <?php _e("(ex: 100px or 20%)", 'custom-contact-forms'); ?>
 
 
1153
  </li>
1154
  <li>
1155
+ <label for="label_fontsize">
1156
+ <?php _e("Label Font Size:", 'custom-contact-forms'); ?>
1157
  </label>
1158
+ <input type="text" maxlength="20" value="1em" class="ccf-width75" name="object[label_fontsize]" />
1159
+ <?php _e("(ex: 10px, 10pt, 1em)", 'custom-contact-forms'); ?>
 
 
1160
  </li>
1161
  <li>
1162
+ <label for="label_fontcolor">
1163
+ <?php _e("Label Font Color:", 'custom-contact-forms'); ?>
1164
  </label>
1165
+ <input type="text" maxlength="20" value="333333" class="ccf-width75 colorfield" name="object[label_fontcolor]" />
1166
+ <?php _e("(ex: FF0000)", 'custom-contact-forms'); ?>
 
 
1167
  </li>
1168
  <li>
1169
+ <label for="input_width">
1170
+ <?php _e("Text Field Width:", 'custom-contact-forms'); ?>
1171
  </label>
1172
+ <input type="text" maxlength="20" value="200px" class="ccf-width75" name="object[input_width]" />
1173
+ <?php _e("(ex: 100px or 100%)", 'custom-contact-forms'); ?>
1174
  </li>
1175
+ <li>
1176
+ <label for="textarea_width">
1177
+ <?php _e("Textarea Field Width:", 'custom-contact-forms'); ?>
1178
+ </label>
1179
+ <input type="text" maxlength="20" value="200px" class="ccf-width75" name="object[textarea_width]" />
1180
+ <?php _e("(ex: 100px or 100%)", 'custom-contact-forms'); ?>
1181
  </li>
1182
  <li>
1183
+ <label for="textarea_height">
1184
+ <?php _e("Textarea Field Height:", 'custom-contact-forms'); ?>
1185
  </label>
1186
+ <input type="text" maxlength="20" value="90px" class="ccf-width75" name="object[textarea_height]" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1187
  <?php _e("(ex: 100px or 100%)", 'custom-contact-forms'); ?>
1188
  </li>
1189
  <li>
1190
  <label for="field_fontsize">
1191
  <?php _e("Field Font Size:", 'custom-contact-forms'); ?>
1192
  </label>
1193
+ <input type="text" maxlength="20" value="1.3em" class="ccf-width75" name="object[field_fontsize]" />
1194
  <?php _e("(ex: 10px, 10pt, 1em", 'custom-contact-forms'); ?>
1195
  </li>
1196
  <li>
1197
  <label for="field_fontcolor">
1198
  <?php _e("Field Font Color:", 'custom-contact-forms'); ?>
1199
  </label>
1200
+ <input type="text" maxlength="20" value="333333" class="ccf-width75 colorfield" name="object[field_fontcolor]" />
1201
  <?php _e("(ex: 333333)", 'custom-contact-forms'); ?>
1202
  </li>
1203
  <li>
1204
  <label for="field_borderstyle">
1205
  <?php _e("Field Border Style:", 'custom-contact-forms'); ?>
1206
  </label>
1207
+ <select class="ccf-width75" name="object[field_borderstyle]">
1208
  <?php echo str_replace('<option>solid</option>', '<option selected="selected">solid</option>', $border_style_options); ?>
1209
  </select>
1210
  </li>
1212
  <label for="form_margin">
1213
  <?php _e("Form Margin:", 'custom-contact-forms'); ?>
1214
  </label>
1215
+ <input type="text" maxlength="20" value="7px" class="ccf-width75" name="object[form_margin]" />
1216
  <?php _e("(ex: 5px or 1em)", 'custom-contact-forms'); ?>
1217
  </li>
1218
  <li>
1219
  <label for="label_margin">
1220
  <?php _e("Label Margin:", 'custom-contact-forms'); ?>
1221
  </label>
1222
+ <input type="text" maxlength="20" value="5px" class="ccf-width75" name="object[label_margin]" />
1223
  <?php _e("(ex: 5px or 1em)", 'custom-contact-forms'); ?>
1224
  </li>
1225
  <li>
1226
  <label for="textarea_backgroundcolor">
1227
  <?php _e("Textarea Background Color:", 'custom-contact-forms'); ?>
1228
  </label>
1229
+ <input type="text" maxlength="20" value="f5f5f5" class="ccf-width75 colorfield" name="object[textarea_backgroundcolor]" />
1230
  <?php _e("(ex: FF0000)", 'custom-contact-forms'); ?>
1231
  </li>
1232
  <li>
1233
  <label for="success_popover_fontcolor">
1234
  <?php _e("Success Popover Font Color:", 'custom-contact-forms'); ?>
1235
  </label>
1236
+ <input type="text" maxlength="20" value="333333" class="ccf-width75 colorfield" name="object[success_popover_fontcolor]" />
1237
  <?php _e("(ex: 333333)", 'custom-contact-forms'); ?>
1238
  </li>
1239
  <li>
1240
  <label for="success_popover_title_fontsize">
1241
  <?php _e("Success Popover Title Font Size:", 'custom-contact-forms'); ?>
1242
  </label>
1243
+ <input type="text" maxlength="20" value="15px" class="ccf-width75" name="object[success_popover_title_fontsize]" />
1244
  <?php _e("(ex: 12px, 1em, 100%)", 'custom-contact-forms'); ?>
1245
  </li>
1246
  <li>
1247
  <label for="form_backgroundcolor">
1248
  <?php _e("Form Background Color:", 'custom-contact-forms'); ?>
1249
  </label>
1250
+ <input type="text" maxlength="20" value="ffffff" class="ccf-width75 colorfield" name="object[form_backgroundcolor]" />
1251
  <?php _e("(ex: 12px, 1em, 100%)", 'custom-contact-forms'); ?>
1252
  </li>
1253
  <li>
1254
  <label for="tooltip_backgroundcolor">
1255
  <?php _e("Tooltip Background Color:", 'custom-contact-forms'); ?>
1256
  </label>
1257
+ <input type="text" maxlength="20" value="000000" class="ccf-width75 colorfield" name="object[tooltip_backgroundcolor]" />
1258
  <?php _e("(ex: 000000 or black)", 'custom-contact-forms'); ?>
1259
  </li>
1260
  </ul>
1263
  <label for="input_width">
1264
  <?php _e("Field Border Color:", 'custom-contact-forms'); ?>
1265
  </label>
1266
+ <input type="text" maxlength="20" value="999999" class="ccf-width75 colorfield" name="object[field_bordercolor]" />
1267
  <?php _e("(ex: 100px or 100%)", 'custom-contact-forms'); ?>
1268
  </li>
1269
  <li>
1270
  <label for="form_borderstyle">
1271
  <?php _e("Form Border Style:", 'custom-contact-forms'); ?>
1272
  </label>
1273
+ <select class="ccf-width75" name="object[form_borderstyle]">
1274
  <?php echo $border_style_options; ?>
1275
  </select>
1276
  </li>
1278
  <label for="form_bordercolor">
1279
  <?php _e("Form Border Color:", 'custom-contact-forms'); ?>
1280
  </label>
1281
+ <input type="text" maxlength="20" value="ffffff" class="ccf-width75 colorfield" name="object[form_bordercolor]" />
1282
  <?php _e("(ex: 000000)", 'custom-contact-forms'); ?>
1283
  </li>
1284
  <li>
1285
  <label for="form_borderwidth">
1286
  <?php _e("Form Border Width:", 'custom-contact-forms'); ?>
1287
  </label>
1288
+ <input type="text" maxlength="20" value="0px" class="ccf-width75" name="object[form_borderwidth]" />
1289
  <?php _e("(ex: 1px)", 'custom-contact-forms'); ?>
1290
  </li>
1291
  <li>
1292
  <label for="form_borderwidth">
1293
  <?php _e("Form Width:", 'custom-contact-forms'); ?>
1294
  </label>
1295
+ <input type="text" maxlength="20" value="100%" class="ccf-width75" name="object[form_width]" />
1296
  <?php _e("(ex: 100px or 50%)", 'custom-contact-forms'); ?>
1297
  </li>
1298
  <li>
1299
  <label for="form_borderwidth">
1300
  <?php _e("Form Font Family:", 'custom-contact-forms'); ?>
1301
  </label>
1302
+ <input type="text" maxlength="120" value="Verdana, tahoma, arial" class="ccf-width75" name="object[form_fontfamily]" />
1303
  <?php _e("(ex: Verdana, Tahoma, Arial)", 'custom-contact-forms'); ?>
1304
  </li>
1305
  <li>
1306
  <label for="submit_width">
1307
  <?php _e("Button Width:", 'custom-contact-forms'); ?>
1308
  </label>
1309
+ <input type="text" maxlength="20" value="auto" class="ccf-width75" name="object[submit_width]" />
1310
  <?php _e("(ex: 100px, 30%, auto)", 'custom-contact-forms'); ?>
1311
  </li>
1312
  <li>
1313
  <label for="submit_height">
1314
  <?php _e("Button Height:", 'custom-contact-forms'); ?>
1315
  </label>
1316
+ <input type="text" maxlength="20" value="30px" class="ccf-width75" name="object[submit_height]" />
1317
  <?php _e("(ex: 100px or 30%)", 'custom-contact-forms'); ?>
1318
  </li>
1319
  <li>
1320
  <label for="submit_fontsize">
1321
  <?php _e("Button Font Size:", 'custom-contact-forms'); ?>
1322
  </label>
1323
+ <input type="text" maxlength="20" value="1.1em" class="ccf-width75" name="object[submit_fontsize]" />
1324
  <?php _e("(ex: 10px, 10pt, 1em)", 'custom-contact-forms'); ?>
1325
  </li>
1326
  <li>
1327
  <label for="submit_fontcolor">
1328
  <?php _e("Button Font Color:", 'custom-contact-forms'); ?>
1329
  </label>
1330
+ <input type="text" maxlength="20" value="333333" class="ccf-width75 colorfield" name="object[submit_fontcolor]" />
1331
  <?php _e("(ex: FF0000)", 'custom-contact-forms'); ?>
1332
  </li>
1333
  <li>
1334
  <label for="field_backgroundcolor">
1335
  <?php _e("Field Background Color:", 'custom-contact-forms'); ?>
1336
  </label>
1337
+ <input type="text" maxlength="20" value="f5f5f5" class="ccf-width75 colorfield" name="object[field_backgroundcolor]" />
1338
  <?php _e("(ex: FF0000)", 'custom-contact-forms'); ?>
1339
  </li>
1340
  <li>
1341
  <label for="form_padding">
1342
  <?php _e("Form Padding:", 'custom-contact-forms'); ?>
1343
  </label>
1344
+ <input type="text" maxlength="20" value="8px" class="ccf-width75" name="object[form_padding]" />
1345
  <?php _e("(ex: 5px or 1em)", 'custom-contact-forms'); ?>
1346
  </li>
1347
  <li>
1348
  <label for="title_margin">
1349
  <?php _e("Title Margin:", 'custom-contact-forms'); ?>
1350
  </label>
1351
+ <input type="text" maxlength="20" value="5px" class="ccf-width75" name="object[title_margin]" />
1352
  <?php _e("(ex: 5px or 1em)", 'custom-contact-forms'); ?>
1353
  </li>
1354
  <li>
1355
  <label for="title_margin">
1356
  <?php _e("Dropdown Width:", 'custom-contact-forms'); ?>
1357
  </label>
1358
+ <input type="text" maxlength="20" value="auto" class="ccf-width75" name="object[dropdown_width]" />
1359
  <?php _e("(ex: 30px, 20%, or auto)", 'custom-contact-forms'); ?>
1360
  </li>
1361
  <li>
1362
  <label for="success_popover_bordercolor">
1363
  <?php _e("Success Popover Border Color:", 'custom-contact-forms'); ?>
1364
  </label>
1365
+ <input type="text" maxlength="20" value="efefef" class="ccf-width75 colorfield" name="object[success_popover_bordercolor]" />
1366
  <?php _e("(ex: FF0000)", 'custom-contact-forms'); ?>
1367
  </li>
1368
  <li>
1369
  <label for="success_popover_fontsize">
1370
  <?php _e("Success Popover Font Size:", 'custom-contact-forms'); ?>
1371
  </label>
1372
+ <input type="text" maxlength="20" value="12px" class="ccf-width75" name="object[success_popover_fontsize]" />
1373
  <?php _e("(ex: 12px, 1em, 100%)", 'custom-contact-forms'); ?>
1374
  </li>
1375
  <li>
1376
  <label for="success_popover_height">
1377
  <?php _e("Success Popover Height:", 'custom-contact-forms'); ?>
1378
  </label>
1379
+ <input type="text" maxlength="20" value="200px" class="ccf-width75" name="object[success_popover_height]" />
1380
  <?php _e("(ex: 200px, 6em, 50%)", 'custom-contact-forms'); ?>
1381
  </li>
1382
  <li>
1383
  <label for="field_borderround">
1384
  <?php _e("Field Border Roundness:", 'custom-contact-forms'); ?>
1385
  </label>
1386
+ <input type="text" maxlength="20" value="6px" class="ccf-width75" name="object[field_borderround]" />
1387
  <?php _e("(ex: 6px, or 0px)", 'custom-contact-forms'); ?>
1388
  </li>
1389
  <li>
1392
  <a href="javascript:void(0)" class="toollink" title="<?php _e("A tooltip is the little box that fades in displaying 'Field Instructions' when a user selects a particular field.", 'custom-contact-forms'); ?>">(?)</a>
1393
  <?php _e("Font Size:", 'custom-contact-forms'); ?>
1394
  </label>
1395
+ <input type="text" maxlength="20" value="12px" class="ccf-width75" name="object[tooltip_fontsize]" />
1396
  <?php _e("(ex: 12px, 1em, 100%)", 'custom-contact-forms'); ?>
1397
  </li>
1398
  <li>
1399
  <label for="tooltip_fontcolor">
1400
  <?php _e("Tooltip Font Color:", 'custom-contact-forms'); ?>
1401
  </label>
1402
+ <input type="text" maxlength="20" value="ffffff" class="ccf-width75 colorfield" name="object[tooltip_fontcolor]" />
1403
  <?php _e("(ex: ffffff or white)", 'custom-contact-forms'); ?>
1404
  </li>
1405
  <li>
1406
+ <input name="object_type" type="hidden" value="style" />
1407
+ <input type="submit" value="<?php _e("Create Style", 'custom-contact-forms'); ?>" name="object_create" class="create-button" />
1408
  </li>
1409
  </ul>
1410
  </form>
1414
  <h3 class="manage-h3">
1415
  <?php _e("Manage Form Styles", 'custom-contact-forms'); ?>
1416
  </h3>
1417
+ <form class="ccf-edit-ajax" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
1418
  <table class="widefat post" id="manage-styles" cellspacing="0">
1419
  <thead>
1420
  <tr>
1421
+ <th scope="col" class="manage-column"><input type="checkbox" class="checkall" /></th>
1422
  <th scope="col" class="manage-column"></th>
1423
  <th scope="col" class="manage-column"></th>
1424
  <th scope="col" class="manage-column"></th>
1432
  $i = 0;
1433
  foreach ($styles as $style) {
1434
  ?>
1435
+ <tr class="row-style-<?php echo $style->id; ?> <?php if ($i % 2 == 0) echo 'ccf-evenrow'; ?>">
1436
+ <td> <label><input type="checkbox" class="object-check" value="1" name="objects[<?php echo $i; ?>][object_do]" />
1437
+ * <?php _e("Slug:", 'custom-contact-forms'); ?>
 
1438
  </label>
1439
+ <input type="text" maxlength="30" value="<?php echo $style->style_slug; ?>" name="objects[<?php echo $i; ?>][values][style_slug]" />
1440
  <br />
1441
  <label>
1442
  <?php _e("Font Family:", 'custom-contact-forms'); ?>
1443
  </label>
1444
+ <input type="text" maxlength="120" value="<?php echo $style->form_fontfamily; ?>" name="objects[<?php echo $i; ?>][values][form_fontfamily]" />
1445
  <br />
1446
  <label>
1447
  <?php _e("Textarea Background", 'custom-contact-forms'); ?>
1448
  <br />
1449
  <?php _e("Color:", 'custom-contact-forms'); ?>
1450
  </label>
1451
+ <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->textarea_backgroundcolor; ?>" name="objects[<?php echo $i; ?>][values][textarea_backgroundcolor]" />
1452
  <br />
1453
  <label>
1454
  <?php _e("Success Popover", 'custom-contact-forms'); ?>
1455
  <br />
1456
  <?php _e("Border Color:", 'custom-contact-forms'); ?>
1457
  </label>
1458
+ <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->success_popover_bordercolor; ?>" name="objects[<?php echo $i; ?>][values][success_popover_bordercolor]" />
1459
  <br />
1460
  <label>
1461
  <?php _e("Tooltip", 'custom-contact-forms'); ?>
1462
  <a href="javascript:void(0)" class="toollink" title="<?php _e("A tooltip is the little box that fades in displaying 'Field Instructions' when a user selects a particular field.", 'custom-contact-forms'); ?>">(?)</a>
1463
  <?php _e("Font Color:", 'custom-contact-forms'); ?>
1464
  </label>
1465
+ <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->tooltip_fontcolor; ?>" name="objects[<?php echo $i; ?>][values][tooltip_fontcolor]" />
 
 
 
 
1466
  </td>
1467
  <td><label>
1468
  <?php _e("Form Width:", 'custom-contact-forms'); ?>
1469
  </label>
1470
+ <input type="text" maxlength="20" value="<?php echo $style->form_width; ?>" name="objects[<?php echo $i; ?>][values][form_width]" />
1471
  <br />
1472
  <label>
1473
  <?php _e("Text Field Width:", 'custom-contact-forms'); ?>
1474
  </label>
1475
+ <input type="text" maxlength="20" value="<?php echo $style->input_width; ?>" name="objects[<?php echo $i; ?>][values][input_width]" />
1476
  <br />
1477
  <label>
1478
  <?php _e("Textarea Width:", 'custom-contact-forms'); ?>
1479
  </label>
1480
+ <input type="text" maxlength="20" value="<?php echo $style->textarea_width; ?>" name="objects[<?php echo $i; ?>][values][textarea_width]" />
1481
  <br />
1482
  <label>
1483
  <?php _e("Textarea Height:", 'custom-contact-forms'); ?>
1484
  </label>
1485
+ <input type="text" maxlength="20" value="<?php echo $style->textarea_height; ?>" name="objects[<?php echo $i; ?>][values][textarea_height]" />
1486
  <br />
1487
  <label>
1488
  <?php _e("Dropdown Width:", 'custom-contact-forms'); ?>
1489
  </label>
1490
+ <input type="text" maxlength="20" value="<?php echo $style->dropdown_width; ?>" name="objects[<?php echo $i; ?>][values][dropdown_width]" />
1491
  <br />
1492
  <label>
1493
  <?php _e("Label Margin:", 'custom-contact-forms'); ?>
1494
  </label>
1495
+ <input type="text" maxlength="20" value="<?php echo $style->label_margin; ?>" name="objects[<?php echo $i; ?>][values][label_margin]" />
1496
  <br />
1497
  <label>
1498
  <?php _e("Success Popover", 'custom-contact-forms'); ?>
1499
  <br />
1500
  <?php _e("Height:", 'custom-contact-forms'); ?>
1501
  </label>
1502
+ <input type="text" maxlength="20" value="<?php echo $style->success_popover_height; ?>" name="objects[<?php echo $i; ?>][values][success_popover_height]" />
1503
  <br />
1504
  </td>
1505
  <td><label>
1506
  <?php _e("Label Width:", 'custom-contact-forms'); ?>
1507
  </label>
1508
+ <input type="text" maxlength="20" value="<?php echo $style->label_width; ?>" name="objects[<?php echo $i; ?>][values][label_width]" />
1509
  <br />
1510
  <label>
1511
  <?php _e("Button Width:", 'custom-contact-forms'); ?>
1512
  </label>
1513
+ <input type="text" maxlength="20" value="<?php echo $style->submit_width; ?>" name="objects[<?php echo $i; ?>][values][submit_width]" />
1514
  <br />
1515
  <label>
1516
  <?php _e("Button Height:", 'custom-contact-forms'); ?>
1517
  </label>
1518
+ <input type="text" maxlength="20" value="<?php echo $style->submit_height; ?>" name="objects[<?php echo $i; ?>][values][submit_height]" />
1519
  <br />
1520
  <label>
1521
  <?php _e("Field Background Color:", 'custom-contact-forms'); ?>
1522
  </label>
1523
+ <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->field_backgroundcolor; ?>" name="objects[<?php echo $i; ?>][values][field_backgroundcolor]" />
1524
  <br />
1525
  <label>
1526
  <?php _e("Title Margin:", 'custom-contact-forms'); ?>
1527
  </label>
1528
+ <input type="text" maxlength="20" value="<?php echo $style->title_margin; ?>" name="objects[<?php echo $i; ?>][values][title_margin]" />
1529
  <br />
1530
  <label>
1531
  <?php _e("Success Popover", 'custom-contact-forms'); ?>
1532
  <br />
1533
  <?php _e("Title Font Size:", 'custom-contact-forms'); ?>
1534
  </label>
1535
+ <input type="text" maxlength="20" value="<?php echo $style->success_popover_title_fontsize; ?>" name="objects[<?php echo $i; ?>][values][success_popover_title_fontsize]" />
1536
  <label>
1537
  <?php _e("Form Background Color:", 'custom-contact-forms'); ?>
1538
  </label>
1539
+ <input type="text" class="colorfield" maxlength="20" value="<?php echo $style->form_backgroundcolor; ?>" name="objects[<?php echo $i; ?>][values][form_backgroundcolor]" />
1540
  </td>
1541
  <td><label>
1542
  <?php _e("Title Font Size:", 'custom-contact-forms'); ?>
1543
  </label>
1544
+ <input type="text" maxlength="20" value="<?php echo $style->title_fontsize; ?>" name="objects[<?php echo $i; ?>][values][title_fontsize]" />
1545
  <br />
1546
  <label>
1547
  <?php _e("Label Font Size:", 'custom-contact-forms'); ?>
1548
  </label>
1549
+ <input type="text" maxlength="20" value="<?php echo $style->label_fontsize; ?>" name="objects[<?php echo $i; ?>][values][label_fontsize]" />
1550
  <br />
1551
  <label>
1552
  <?php _e("Field Font Size:", 'custom-contact-forms'); ?>
1553
  </label>
1554
+ <input type="text" maxlength="20" value="<?php echo $style->field_fontsize; ?>" name="objects[<?php echo $i; ?>][values][field_fontsize]" />
1555
  <br />
1556
  <label>
1557
  <?php _e("Button Font Size:", 'custom-contact-forms'); ?>
1558
  </label>
1559
+ <input type="text" maxlength="20" value="<?php echo $style->submit_fontsize; ?>" name="objects[<?php echo $i; ?>][values][submit_fontsize]" />
1560
  <br />
1561
  <label>
1562
  <?php _e("Form Padding:", 'custom-contact-forms'); ?>
1563
  </label>
1564
+ <input type="text" maxlength="20" value="<?php echo $style->form_padding; ?>" name="objects[<?php echo $i; ?>][values][form_padding]" />
1565
  <br />
1566
  <label>
1567
  <?php _e("Success Popover", 'custom-contact-forms'); ?>
1568
  <br />
1569
  <?php _e("Font Size:", 'custom-contact-forms'); ?>
1570
  </label>
1571
+ <input type="text" maxlength="20" value="<?php echo $style->success_popover_fontsize; ?>" name="objects[<?php echo $i; ?>][values][success_popover_fontsize]" />
1572
  <br />
1573
  <label>
1574
  <?php _e("Tooltip", 'custom-contact-forms'); ?>
1575
  <a href="javascript:void(0)" class="toollink" title="<?php _e("A tooltip is the little box that fades in displaying 'Field Instructions' when a user selects a particular field.", 'custom-contact-forms'); ?>">(?)</a>
1576
  <?php _e("Background Color:", 'custom-contact-forms'); ?>
1577
  </label>
1578
+ <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->tooltip_backgroundcolor; ?>" name="objects[<?php echo $i; ?>][values][tooltip_backgroundcolor]" />
1579
  </td>
1580
  <td><label>
1581
  <?php _e("Title Font Color:", 'custom-contact-forms'); ?>
1582
  </label>
1583
+ <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->title_fontcolor; ?>" name="objects[<?php echo $i; ?>][values][title_fontcolor]" />
1584
  <br />
1585
  <label>
1586
  <?php _e("Label Font Color:", 'custom-contact-forms'); ?>
1587
  </label>
1588
+ <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->label_fontcolor; ?>" name="objects[<?php echo $i; ?>][values][label_fontcolor]" />
1589
  <br />
1590
  <label>
1591
  <?php _e("Field Font Color:", 'custom-contact-forms'); ?>
1592
  </label>
1593
+ <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->field_fontcolor; ?>" name="objects[<?php echo $i; ?>][values][field_fontcolor]" />
1594
  <br />
1595
  <label>
1596
  <?php _e("Button Font Color:", 'custom-contact-forms'); ?>
1597
  </label>
1598
+ <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->submit_fontcolor; ?>" name="objects[<?php echo $i; ?>][values][submit_fontcolor]" />
1599
  <br />
1600
  <label>
1601
  <?php _e("Form Margin:", 'custom-contact-forms'); ?>
1602
  </label>
1603
+ <input type="text" maxlength="20" value="<?php echo $style->form_margin; ?>" name="objects[<?php echo $i; ?>][values][form_margin]" />
1604
  <br />
1605
  <label>
1606
  <?php _e("Success Popover", 'custom-contact-forms'); ?>
1607
  <br />
1608
  <?php _e("Font Color:", 'custom-contact-forms'); ?>
1609
  </label>
1610
+ <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->success_popover_fontcolor; ?>" name="objects[<?php echo $i; ?>][values][success_popover_fontcolor]" />
1611
  <br />
1612
  <label>
1613
  <?php _e("Tooltip Font Size:", 'custom-contact-forms'); ?>
1614
  </label>
1615
+ <input type="text" maxlength="20" value="<?php echo $style->tooltip_fontsize; ?>" name="objects[<?php echo $i; ?>][values][tooltip_fontsize]" />
1616
  </td>
1617
  <td><label>
1618
  <?php _e("Form Border Style:", 'custom-contact-forms'); ?>
1619
  </label>
1620
+ <select name="object[form_borderstyle]">
1621
  <?php echo str_replace('<option>'.$style->form_borderstyle.'</option>', '<option selected="selected">'.$style->form_borderstyle.'</option>', $border_style_options); ?>
1622
  </select>
1623
  <br />
1624
  <label>
1625
  <?php _e("Form Border Width:", 'custom-contact-forms'); ?>
1626
  </label>
1627
+ <input type="text" maxlength="20" value="<?php echo $style->form_borderwidth; ?>" name="objects[<?php echo $i; ?>][values][form_borderwidth]" />
1628
  <br />
1629
  <label>
1630
  <?php _e("Form Border Color:", 'custom-contact-forms'); ?>
1631
  </label>
1632
+ <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->form_bordercolor; ?>" name="objects[<?php echo $i; ?>][values][form_bordercolor]" />
1633
  <br />
1634
  <label>
1635
  <?php _e("Field Border Color:", 'custom-contact-forms'); ?>
1636
  </label>
1637
+ <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->field_bordercolor; ?>" name="objects[<?php echo $i; ?>][values][field_bordercolor]" />
1638
  <br />
1639
  <label>
1640
  <?php _e("Field Border Style:", 'custom-contact-forms'); ?>
1641
  </label>
1642
+ <select name="objects[<?php echo $i; ?>][values][field_borderstyle]">
1643
  <?php echo str_replace('<option>'.$style->field_borderstyle.'</option>', '<option selected="selected">'.$style->field_borderstyle.'</option>', $border_style_options); ?>
1644
  </select>
1645
  <br />
1648
  <br />
1649
  <?php _e("Title Font Color:", 'custom-contact-forms'); ?>
1650
  </label>
1651
+ <input class="colorfield" type="text" maxlength="20" value="<?php echo $style->success_popover_title_fontcolor; ?>" name="objects[<?php echo $i; ?>][values][success_popover_title_fontcolor]" />
1652
  <br />
1653
  <label>
1654
  <?php _e("Field Border Roundness:", 'custom-contact-forms'); ?>
1655
  </label>
1656
+ <input name="objects[<?php echo $i; ?>][values][field_borderround]" value="<?php echo $style->field_borderround; ?>" type="text" maxlength="20" />
1657
  <br />
1658
+ <input type="hidden" name="objects[<?php echo $i; ?>][object_type]" value="style" />
1659
+ <input class="object-id" name="objects[<?php echo $i; ?>][object_id]" type="hidden" value="<?php echo $style->id; ?>" />
1660
  </td>
 
1661
  </tr>
1662
  <?php
1663
  $i++;
1666
  </tbody>
1667
  <tfoot>
1668
  <tr>
1669
+ <th scope="col" class="manage-column"><input type="checkbox" class="checkall" /></th>
1670
  <th scope="col" class="manage-column"></th>
1671
  <th scope="col" class="manage-column"></th>
1672
  <th scope="col" class="manage-column"></th>
1675
  </tr>
1676
  </tfoot>
1677
  </table>
1678
+ <select class="bulk-dropdown" name="object_bulk_action"><option value="0">Bulk Actions</option><option value="edit">Edit</option><option value="delete">Delete</option></select> <input type="submit" name="object_bulk_apply" class="bulk-apply" value="Apply" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" width="16" height="16" class="loading-img" />
1679
+ </form>
1680
  <a name="contact-author"></a>
1681
  <div id="contact-author" class="postbox">
1682
  <h3 class="hndle"><span>
1697
  </label>
1698
  <input id="email" type="text" value="<?php echo get_option('admin_email'); ?>" name="email" maxlength="100" />
1699
  </li>
1700
+ <li>
1701
+ <label for="host">
1702
+ <?php _e("Who Hosts Your Website?", 'custom-contact-forms'); ?>
1703
+ </label>
1704
+ <input id="host" type="text" name="host" maxlength="150" />
1705
+ </li>
1706
  <li>
1707
  <label for="message">*
1708
  <?php _e("Your Message:", 'custom-contact-forms'); ?>
1751
  &lt;input type=&quot;hidden&quot; name=&quot;destination_email&quot; value=&quot;<?php echo $admin_options['default_to_email']; ?>&quot; /&gt;
1752
  &lt;input type=&quot;hidden&quot; name=&quot;required_fields&quot; value=&quot;field_name1, field_name2&quot; /&gt;
1753
 
1754
+ &lt;!-- <?php _e("Paste all this code into a page or post and edit it to your liking. It is recommended you only use this feature if you are experienced with HTML. The destination_email
1755
+ field specifies where emails will be sent on successful submission; you can have the form send to multiple addresses by separating email's with semi-colons (i.e. email@google.com; email2@google.com).
1756
  The success_message field will add a popover containing the message when the form is completed successfully, the thank_you_page field will force
1757
  the user to be redirected to that specific page on successful form completion. The required_fields hidden field is optional; to use it seperate
1758
  the field names you want required by commas. Remember to use underscores instead of spaces in field names!", 'custom-contact-forms'); ?> --&gt;
1760
  &lt;/form&gt;</textarea>
1761
  </div>
1762
  </div>
1763
+
1764
+
1765
+ </div>
1766
+ <?php
1767
+ }
1768
+
1769
+ function printFormSubmissionsPage() {
1770
+ if ($admin_options['show_install_popover'] == 1) {
1771
+ $admin_options['show_install_popover'] = 0;
1772
+ ?>
1773
+ <script type="text/javascript" language="javascript">
1774
+ $j(document).ready(function() {
1775
+ showCCFUsagePopover();
1776
+ });
1777
+ </script>
1778
+ <?php
1779
+ update_option(parent::getAdminOptionsName(), $admin_options);
1780
+ } if ($_POST['form_submission_delete']) {
1781
+ parent::deleteUserData($_POST['uid']);
1782
+ }
1783
+ ccf_utils::load_module('export/custom-contact-forms-user-data.php');
1784
+ $user_data_array = parent::selectAllUserData();
1785
+ ?>
1786
+ <div id="customcontactforms-admin">
1787
+ <div class="plugin-header">
1788
+ <h2>
1789
+ <?php _e("Custom Contact Forms", 'custom-contact-forms'); ?>
1790
+ </h2>
1791
+ <input type="button" class="usage-popover-button" value="<?php _e("Plugin Usage Manual", 'custom-contact-forms'); ?>" />
1792
  </div>
1793
+ <a class="genesis" href="http://www.shareasale.com/r.cfm?b=241369&u=481196&m=28169&urllink=&afftrack=">Custom Contact Forms works best with any of the 20+ <span>Genesis</span> Wordpress child themes. The <span>Genesis Framework</span> empowers you to quickly and easily build incredible websites with WordPress.</a>
1794
+
1795
+ <form class="blog-horizontal-form" method="post" action="http://www.aweber.com/scripts/addlead.pl">
1796
+ <input type="hidden" name="meta_web_form_id" value="1578604781" />
1797
+ <input type="hidden" name="meta_split_id" value="" />
1798
+ <input type="hidden" name="listname" value="ccf-plugin" />
1799
+ <input type="hidden" name="redirect" value="http://www.taylorlovett.com/wordpress-plugins/tutorials-offers-tips/" id="redirect_5832e41084448adb07da67a35dc83c27" />
1800
+ <input type="hidden" name="meta_adtracking" value="CCF_-_Wordpress_Plugins_Horizontal" />
1801
+ <input type="hidden" name="meta_message" value="1" />
1802
+ <input type="hidden" name="meta_required" value="name,email" />
1803
+ <span>WP Blogging Tips, Downloads, SEO Tricks & Exclusive Tutorials</span>
1804
+ <input type="text" name="name" value="Your Name" onclick="value=''" />
1805
+ <input type="text" name="email" value="Your Email" onclick="value=''" />
1806
+ <input type="submit" value="Sign Up for Free" />
1807
+ </form>
1808
+ <h3 class="hndle"><span>
1809
+ <?php _e("Saved Form Submissions", 'custom-contact-forms'); ?>
1810
+ </span></h3>
1811
+ <form class="ccf-edit-ajax" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
1812
+ <table class="widefat post" id="form-submissions-table" cellspacing="0">
1813
+ <thead>
1814
+ <tr>
1815
+ <th scope="col" class="manage-column ccf-width25"><input type="checkbox" class="checkall" /></th>
1816
+ <th scope="col" class="manage-column ccf-width250"><?php _e("Date Submitted", 'custom-contact-forms'); ?></th>
1817
+ <th scope="col" class="manage-column ccf-width150"><?php _e("Form Submitted", 'custom-contact-forms'); ?></th>
1818
+ <th scope="col" class="manage-column ccf-width250"><?php _e("Form Page", 'custom-contact-forms'); ?></th>
1819
+ <th scope="col" class="manage-column "></th>
1820
+ </tr>
1821
+ </thead>
1822
+ <tbody>
1823
+ <?php
1824
+ $i = 0;
1825
+ foreach ($user_data_array as $data_object) {
1826
+ $data = new CustomContactFormsUserData(array('form_id' => $data_object->data_formid, 'data_time' => $data_object->data_time, 'form_page' => $data_object->data_formpage, 'encoded_data' => $data_object->data_value));
1827
+ ?>
1828
+ <tr class="row-form_submission-<?php echo $data_object->id; ?> submission-top <?php if ($i % 2 == 0) echo 'ccf-evenrow'; ?>">
1829
+ <td><input type="checkbox" class="object-check" value="1" name="objects[<?php echo $i; ?>][object_do]" /></td>
1830
+ <td><?php echo date('F d, Y h:i:s A', $data->getDataTime()); ?></td>
1831
+ <td><?php
1832
+ if ($data->getFormID() > 0) {
1833
+ $data_form = parent::selectForm($data->getFormID());
1834
+ echo $data_form->form_slug;
1835
+ } else
1836
+ _e('Custom HTML Form', 'custom-contact-forms');
1837
+ ?>
1838
+ </td>
1839
+ <td><?php echo $data->getFormPage(); ?> </td>
1840
+ <td class="ccf-alignright">
1841
+ <span class="submission-content-expand"></span>
1842
+ <input type="hidden" name="objects[<?php echo $i; ?>][object_type]" value="form_submission" />
1843
+ <input class="object-id" type="hidden" name="objects[<?php echo $i; ?>][object_id]" value="<?php echo $data_object->id; ?>" />
1844
+ </td>
1845
+ </tr>
1846
+ <tr class="row-form_submission-<?php echo $data_object->id; ?> submission-content <?php if ($i % 2 == 0) echo 'ccf-evenrow'; ?>">
1847
+ <td colspan="5"><ul>
1848
+ <?php
1849
+ $data_array = $data->getDataArray();
1850
+ foreach ($data_array as $item_key => $item_value) {
1851
+ ?>
1852
+ <li>
1853
+ <div><?php echo $item_key; ?></div>
1854
+ <p><?php echo $item_value; ?></p>
1855
+ </li>
1856
+ <?php
1857
+ }
1858
+ ?>
1859
+ </ul></td>
1860
+ </tr>
1861
+ <?php
1862
+ $i++;
1863
+ }
1864
+ ?>
1865
+ </tbody>
1866
+ <tfoot>
1867
+ <tr>
1868
+ <th scope="col" class="manage-column25"><input type="checkbox" class="checkall" /></th>
1869
+ <th scope="col" class="manage-column ccf-width250"><?php _e("Date Submitted", 'custom-contact-forms'); ?></th>
1870
+ <th scope="col" class="manage-column ccf-width150"><?php _e("Form Submitted", 'custom-contact-forms'); ?></th>
1871
+ <th scope="col" class="manage-column ccf-width250"><?php _e("Form Page", 'custom-contact-forms'); ?></th>
1872
+ <th scope="col" class="manage-column"></th>
1873
+ </tr>
1874
+ </tfoot>
1875
+ </table>
1876
+
1877
+ <select class="bulk-dropdown" name="object_bulk_action">
1878
+ <option value="0">Bulk Actions</option>
1879
+ <option value="delete">Delete</option>
1880
+ </select> <input type="submit" class="bulk-apply" name="object_bulk_apply" value="Apply" /> <img src="<?php echo plugins_url(); ?>/custom-contact-forms/images/wpspin_light.gif" class="loading-img" width="16" height="16" />
1881
+
1882
+
1883
+
1884
+ </form>
1885
+ </div>
1886
+ <?php
1887
+ }
1888
+
1889
+ function printSettingsPage() {
1890
+ $admin_options = parent::getAdminOptions();
1891
+ if ($admin_options['show_install_popover'] == 1) {
1892
+ $admin_options['show_install_popover'] = 0;
1893
+ ?>
1894
+ <script type="text/javascript" language="javascript">
1895
+ $j(document).ready(function() {
1896
+ showCCFUsagePopover();
1897
+ });
1898
+ </script>
1899
+ <?php
1900
+ update_option(parent::getAdminOptionsName(), $admin_options);
1901
+ } if ($_POST['general_settings']) {
1902
+ $_POST['settings'] = array_map(array('ccf_utils', 'encodeOption'), $_POST['settings']);
1903
+ $admin_options = array_merge($admin_options, $_POST['settings']);
1904
+ $admin_options[show_widget_categories] = $_POST['settings']['show_widget_categories'];
1905
+ $admin_options[show_widget_singles] = $_POST['settings']['show_widget_singles'];
1906
+ $admin_options[show_widget_pages] = $_POST['settings']['show_widget_pages'];
1907
+ $admin_options[show_widget_archives] = $_POST['settings']['show_widget_archives'];
1908
+ $admin_options[show_widget_home] = $_POST['settings']['show_widget_home'];
1909
+ update_option(parent::getAdminOptionsName(), $admin_options);
1910
+ } elseif ($_POST['configure_mail']) {
1911
+ $_POST['mail_config'] = array_map(array('ccf_utils', 'encodeOption'), $_POST['mail_config']);
1912
+ $admin_options = array_merge($admin_options, $_POST['mail_config']);
1913
+ update_option(parent::getAdminOptionsName(), $admin_options);
1914
+ }
1915
+ ccf_utils::load_module('export/custom-contact-forms-export.php');
1916
+ ?>
1917
+ <div id="customcontactforms-admin">
1918
+ <div class="plugin-header">
1919
+ <h2>
1920
+ <?php _e("Custom Contact Forms", 'custom-contact-forms'); ?>
1921
+ </h2>
1922
+ <input type="button" class="usage-popover-button" value="<?php _e("Plugin Usage Manual", 'custom-contact-forms'); ?>" />
1923
+ </div>
1924
+ <a class="genesis" href="http://www.shareasale.com/r.cfm?b=241369&u=481196&m=28169&urllink=&afftrack=">Custom Contact Forms works best with any of the 20+ <span>Genesis</span> Wordpress child themes. The <span>Genesis Framework</span> empowers you to quickly and easily build incredible websites with WordPress.</a>
1925
+
1926
+ <form class="blog-horizontal-form" method="post" action="http://www.aweber.com/scripts/addlead.pl">
1927
+ <input type="hidden" name="meta_web_form_id" value="1578604781" />
1928
+ <input type="hidden" name="meta_split_id" value="" />
1929
+ <input type="hidden" name="listname" value="ccf-plugin" />
1930
+ <input type="hidden" name="redirect" value="http://www.taylorlovett.com/wordpress-plugins/tutorials-offers-tips/" id="redirect_5832e41084448adb07da67a35dc83c27" />
1931
+ <input type="hidden" name="meta_adtracking" value="CCF_-_Wordpress_Plugins_Horizontal" />
1932
+ <input type="hidden" name="meta_message" value="1" />
1933
+ <input type="hidden" name="meta_required" value="name,email" />
1934
+ <span>WP Blogging Tips, Downloads, SEO Tricks & Exclusive Tutorials</span>
1935
+ <input type="text" name="name" value="Your Name" onclick="value=''" />
1936
+ <input type="text" name="email" value="Your Email" onclick="value=''" />
1937
+ <input type="submit" value="Sign Up for Free" />
1938
+ </form>
1939
+ <div id="general-settings" class="postbox">
1940
+ <h3 class="hndle"><span>
1941
+ <?php _e("General Settings", 'custom-contact-forms'); ?>
1942
+ </span></h3>
1943
+ <div class="inside">
1944
+ <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
1945
+ <ul class="gleft">
1946
+ <li>
1947
+ <label for="email_form_submissions">
1948
+ <?php _e("Email Form Submissions:", 'custom-contact-forms'); ?>
1949
+ </label>
1950
+ <select name="settings[email_form_submissions]">
1951
+ <option value="1">
1952
+ <?php _e("Yes", 'custom-contact-forms'); ?>
1953
+ </option>
1954
+ <option value="0" <?php if ($admin_options['email_form_submissions'] == 0) echo 'selected="selected"'; ?>>
1955
+ <?php _e("No", 'custom-contact-forms'); ?>
1956
+ </option>
1957
+ </select>
1958
+ </li>
1959
+ <li class="descrip">
1960
+ <?php _e("When a user fills out one of your forms, the info submitted is saved in the Saved Form Submission section of the admin panel for you to view. If this is enabled, you will also be sent an email containing the submission info.", 'custom-contact-forms'); ?>
1961
+ </li>
1962
+ <li>
1963
+ <label for="default_to_email">
1964
+ <?php _e("Default Email:", 'custom-contact-forms'); ?>
1965
+ </label>
1966
+ <input name="settings[default_to_email]" value="<?php echo $admin_options['default_to_email']; ?>" type="text" maxlength="100" />
1967
+ </li>
1968
+ <li class="descrip">
1969
+ <?php _e("Form emails will be sent <span>to</span> this address, if no destination email is specified by the form.", 'custom-contact-forms'); ?>
1970
+ </li>
1971
+ <li>
1972
+ <label for="enable_jquery">
1973
+ <?php _e("Front End JQuery:", 'custom-contact-forms'); ?>
1974
+ </label>
1975
+ <select name="settings[enable_jquery]">
1976
+ <option value="1">
1977
+ <?php _e("Enabled", 'custom-contact-forms'); ?>
1978
+ </option>
1979
+ <option <?php if ($admin_options['enable_jquery'] != 1) echo 'selected="selected"'; ?> value="0">
1980
+ <?php _e("Disabled", 'custom-contact-forms'); ?>
1981
+ </option>
1982
+ </select>
1983
+ </li>
1984
+ <li class="descrip">
1985
+ <?php _e("Some plugins don't setup JQuery correctly, so when any other plugin uses JQuery (whether correctly or not), JQuery works for neither plugin. This plugin uses JQuery correctly. If another plugin isn't using JQuery correctly but is more important to you than this one: disable this option. 99% of this plugin's functionality will work without JQuery, just no field instruction tooltips.", 'custom-contact-forms'); ?>
1986
+ </li>
1987
+ <li>
1988
+ <label for="default_from_email">
1989
+ <?php _e("Default From Email:", 'custom-contact-forms'); ?>
1990
+ </label>
1991
+ <input name="settings[default_from_email]" value="<?php echo $admin_options['default_from_email']; ?>" type="text" maxlength="100" />
1992
+ </li>
1993
+ <li class="descrip">
1994
+ <?php _e("Form emails will be sent <span>from</span> this address. It is recommended you provide a real email address that has been created through your host.", 'custom-contact-forms'); ?>
1995
+ </li>
1996
+ <li>
1997
+ <label for="default_from_name">
1998
+ <?php _e("Default From Name:", 'custom-contact-forms'); ?>
1999
+ </label>
2000
+ <input name="settings[default_from_name]" value="<?php echo $admin_options['default_from_name']; ?>" type="text" maxlength="100" />
2001
+ </li>
2002
+ <li class="descrip">
2003
+ <?php _e("This setting allows you to specify the name under which form emails are sent. The default is 'Custom Contact Forms'.", 'custom-contact-forms'); ?>
2004
+ </li>
2005
+ <li>
2006
+ <label for="default_form_subject">
2007
+ <?php _e("Default Email Subject:", 'custom-contact-forms'); ?>
2008
+ </label>
2009
+ <input name="settings[default_form_subject]" value="<?php echo $admin_options['default_form_subject']; ?>" type="text" />
2010
+ </li>
2011
+ <li class="descrip">
2012
+ <?php _e("Default subject to be included in all form emails.", 'custom-contact-forms'); ?>
2013
+ </li>
2014
+ <li>
2015
+ <label for="enable_dashboard_widget">
2016
+ <?php _e("Enable Dashboard Widget:", 'custom-contact-forms'); ?>
2017
+ </label>
2018
+ <select name="settings[enable_dashboard_widget]">
2019
+ <option value="1">
2020
+ <?php _e("Enabled", 'custom-contact-forms'); ?>
2021
+ </option>
2022
+ <option <?php if ($admin_options['enable_dashboard_widget'] == 0) echo 'selected="selected"'; ?>>
2023
+ <?php _e("Disabled", 'custom-contact-forms'); ?>
2024
+ </option></select>
2025
+ </li>
2026
+ <li class="descrip">
2027
+ <?php _e("Enabling this will display a widget on your dashboard that shows the latest form submissions.", 'custom-contact-forms'); ?>
2028
+ </li>
2029
+ <li>
2030
+ <label for="default_form_error_header">
2031
+ <?php _e("Default Form Error Header:", 'custom-contact-forms'); ?>
2032
+ </label>
2033
+ <input name="settings[default_form_error_header]" value="<?php echo $admin_options['default_form_error_header']; ?>" type="text" />
2034
+ </li>
2035
+ <li class="descrip">
2036
+ <?php _e("When a form is filled out incorrectly, this message will be displayed followed by the individual field error messages.", 'custom-contact-forms'); ?>
2037
+ </li>
2038
+ </ul>
2039
+ <ul class="gright">
2040
+ <li>
2041
+ <label for="form_success_message_title">
2042
+ <?php _e("Default Form Success Message Title:", 'custom-contact-forms'); ?>
2043
+ </label>
2044
+ <input name="settings[form_success_message_title]" value="<?php echo $admin_options['form_success_message_title']; ?>" type="text"/>
2045
+ </li>
2046
+ <li class="descrip">
2047
+ <?php _e("If someone fills out a form for which a success message title is not provided and a custom success page is not provided, the plugin will show a popover using this field as the window title.", 'custom-contact-forms'); ?>
2048
+ </li>
2049
+ <li>
2050
+ <label for="form_success_message">
2051
+ <?php _e("Default Form Success Message:", 'custom-contact-forms'); ?>
2052
+ </label>
2053
+ <input name="settings[form_success_message]" value="<?php echo $admin_options['form_success_message']; ?>" type="text"/>
2054
+ </li>
2055
+ <li class="descrip">
2056
+ <?php _e("If someone fills out a form for which a success message is not provided and a custom success page is not provided, the plugin will show a popover containing this message.", 'custom-contact-forms'); ?>
2057
+ </li>
2058
+ <li>
2059
+ <label for="remember_field_values">
2060
+ <?php _e("Remember Field Values:", 'custom-contact-forms'); ?>
2061
+ </label>
2062
+ <select name="settings[remember_field_values]">
2063
+ <option value="1">
2064
+ <?php _e("Yes", 'custom-contact-forms'); ?>
2065
+ </option>
2066
+ <option <?php if ($admin_options['remember_field_values'] == 0) echo 'selected="selected"'; ?> value="0">
2067
+ <?php _e("No", 'custom-contact-forms'); ?>
2068
+ </option>
2069
+ </select>
2070
+ </li>
2071
+ <li class="descrip">
2072
+ <?php _e("Selecting yes will make form fields remember how they were last filled out.", 'custom-contact-forms'); ?>
2073
+ </li>
2074
+ <li>
2075
+ <label for="enable_widget_tooltips">
2076
+ <?php _e("Tooltips in Widget:", 'custom-contact-forms'); ?>
2077
+ </label>
2078
+ <select name="settings[enable_widget_tooltips]">
2079
+ <option value="1">
2080
+ <?php _e("Enabled", 'custom-contact-forms'); ?>
2081
+ </option>
2082
+ <option <?php if ($admin_options['enable_widget_tooltips'] == 0) echo 'selected="selected"'; ?> value="0">
2083
+ <?php _e("Disabled", 'custom-contact-forms'); ?>
2084
+ </option>
2085
+ </select>
2086
+ </li>
2087
+ <li class="descrip">
2088
+ <?php _e("Enabling this shows tooltips containing field instructions on forms in the widget.", 'custom-contact-forms'); ?>
2089
+ </li>
2090
+ <li>
2091
+ <label for="author_link">
2092
+ <?php _e("Hide Plugin Author Link in Code:", 'custom-contact-forms'); ?>
2093
+ </label>
2094
+ <select name="settings[author_link]">
2095
+ <option value="1">
2096
+ <?php _e("Yes", 'custom-contact-forms'); ?>
2097
+ </option>
2098
+ <option <?php if ($admin_options['author_link'] == 0) echo 'selected="selected"'; ?> value="0">
2099
+ <?php _e("No", 'custom-contact-forms'); ?>
2100
+ </option>
2101
+ </select>
2102
+ </li>
2103
+ <li>
2104
+ <label for="code_type">
2105
+ <?php _e("Use Code Type:", 'custom-contact-forms'); ?>
2106
+ </label>
2107
+ <select name="settings[code_type]">
2108
+ <option>XHTML</option>
2109
+ <option <?php if ($admin_options['code_type'] == 'HTML') echo 'selected="selected"'; ?>>HTML</option>
2110
+ </select>
2111
+ </li>
2112
+ <li class="descrip">
2113
+ <?php _e("This lets you switch the form code between HTML and XHTML.", 'custom-contact-forms'); ?>
2114
+ </li>
2115
+ <li>
2116
+ <label for="admin_ajax">
2117
+ <?php _e("Fancy Admin AJAX Abilities:", 'custom-contact-forms'); ?>
2118
+ </label>
2119
+ <select name="settings[admin_ajax]">
2120
+ <option value="1">
2121
+ <?php _e("Enabled", 'custom-contact-forms'); ?>
2122
+ </option>
2123
+ <option <?php if ($admin_options['admin_ajax'] == 0) echo 'selected="selected"'; ?>>
2124
+ <?php _e("Disabled", 'custom-contact-forms'); ?>
2125
+ </option>
2126
+ </select>
2127
+ </li>
2128
+ <li class="descrip">
2129
+ <?php _e("If you enable this, creating, editing and modifying forms, fields, styles, etc in the admin panel will be done using AJAX. This means that clicking things like 'Edit' or 'Delete' will not cause the page to reload thus managing your forms will be much smoother and quicker. If you are having problems with things not saving, deleting, or inserting correctly, then disable this and fill out a bug report below.", 'custom-contact-forms'); ?>
2130
+ </li>
2131
+ <li>
2132
+ <label for="default_form_bad_permissions">
2133
+ <?php _e("Default Permissions Error:", 'custom-contact-forms'); ?>
2134
+ </label>
2135
+ <input name="settings[default_form_bad_permissions]" value="<?php echo $admin_options['default_form_bad_permissions']; ?>" type="text" />
2136
+ </li>
2137
+ <li class="descrip">
2138
+ <?php _e("When someone doesn't have the proper permissions to use a form, this message is displayed in place of the form.", 'custom-contact-forms'); ?>
2139
+ </li>
2140
+ <li class="show-widget"><b>
2141
+ <?php _e("Show Sidebar Widget:", 'custom-contact-forms'); ?>
2142
+ </b></li>
2143
+ <li>
2144
+ <label>
2145
+ <input value="1" type="checkbox" name="settings[show_widget_home]" <?php if ($admin_options['show_widget_home'] == 1) echo 'checked="checked"'; ?> />
2146
+ <?php _e("On Homepage", 'custom-contact-forms'); ?>
2147
+ </label>
2148
+ <label>
2149
+ <input value="1" type="checkbox" name="settings[show_widget_pages]" <?php if ($admin_options['show_widget_pages'] == 1) echo 'checked="checked"'; ?> />
2150
+ <?php _e("On Pages", 'custom-contact-forms'); ?>
2151
+ </label>
2152
+ <label>
2153
+ <input value="1" type="checkbox" name="settings[show_widget_singles]" <?php if ($admin_options['show_widget_singles'] == 1) echo 'checked="checked"'; ?> />
2154
+ <?php _e("On Single Posts", 'custom-contact-forms'); ?>
2155
+ </label>
2156
+ <br />
2157
+ <label>
2158
+ <input value="1" type="checkbox" name="settings[show_widget_categories]" <?php if ($admin_options['show_widget_categories'] == 1) echo 'checked="checked"'; ?> />
2159
+ <?php _e("On Categories", 'custom-contact-forms'); ?>
2160
+ </label>
2161
+ <label>
2162
+ <input value="1" type="checkbox" name="settings[show_widget_archives]" <?php if ($admin_options['show_widget_archives'] == 1) echo 'checked="checked"'; ?> />
2163
+ <?php _e("On Archives", 'custom-contact-forms'); ?>
2164
+ </label>
2165
+ </li>
2166
+ <li>
2167
+ <input type="submit" value="<?php _e("Update", 'custom-contact-forms'); ?>" name="general_settings" />
2168
+ </li>
2169
+ </ul>
2170
+ </form>
2171
+ </div>
2172
+ </div>
2173
+ <div id="configure-mail" class="postbox">
2174
+ <h3 class="hndle"><span>
2175
+ <?php _e("Mail Settings", 'custom-contact-forms'); ?>
2176
+ </span></h3>
2177
+ <div class="inside">
2178
+ <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
2179
+ <p><?php _e("There are two ways you can send emails: using the PHP mail() function or using SMTP (secure/insecure). If you choose to use the PHP mail() function you can ignore all the other options. For some people Wordpress's default way of sending mail does not work; if for some reason your mail is being sent you should try the SMTP option.", 'custom-contact-forms'); ?></p>
2180
+ <label for="mail_function"><?php _e("* Send My Emails Using the Following:", 'custom-contact-forms'); ?></label>
2181
+ <select name="mail_config[mail_function]">
2182
+ <option value="default"><?php _e("Wordpress Default", 'custom-contact-forms'); ?></option>
2183
+ <option <?php if ($admin_options['mail_function'] == 'smtp') echo 'selected="selected"'; ?> value="smtp"><?php _e("SMTP", 'custom-contact-forms'); ?></option>
2184
+ </select> <?php _e("(If mail isn't sending, try toggling this option.)", 'custom-contact-forms'); ?>
2185
+ <div>
2186
+ <ul class="left">
2187
+ <li><label for="smtp_host"><?php _e("SMTP Host:", 'custom-contact-forms'); ?></label> <input class="ccf-width125" type="text" size="10" name="mail_config[smtp_host]" value="<?php echo $admin_options['smtp_host']; ?>" /></li>
2188
+ <li><label for="smtp_port"><?php _e("SMTP Port:", 'custom-contact-forms'); ?></label> <input class="ccf-width125" type="text" size="10" name="mail_config[smtp_port]" value="<?php echo $admin_options['smtp_port']; ?>" /></li>
2189
+ <li><label for="smtp_encryption"><?php _e("Encryption:", 'custom-contact-forms'); ?></label> <select name="mail_config[smtp_encryption]">
2190
+ <option value="none"><?php _e("None", 'custom-contact-forms'); ?></option>
2191
+ <option <?php if ($admin_options['smtp_encryption'] == 'ssl') echo 'selected="selected"'; ?> value="ssl"><?php _e("SSL", 'custom-contact-forms'); ?></option>
2192
+ <option <?php if ($admin_options['smtp_encryption'] == 'tls') echo 'selected="selected"'; ?> value="tls"><?php _e("TLS", 'custom-contact-forms'); ?></option>
2193
+ </select></li>
2194
+ </ul>
2195
+ <ul class="right">
2196
+ <li><label for="smtp_authentication"><?php _e("SMTP Authentication:", 'custom-contact-forms'); ?></label> <select name="mail_config[smtp_authentication]"><option value="0"><?php _e("None Needed", 'custom-contact-forms'); ?></option><option <?php if ($admin_options['smtp_authentication'] == 1) echo 'selected="selected"'; ?> value="1"><?php _e("Use SMTP Username/Password", 'custom-contact-forms'); ?></option></select></li>
2197
+ <li><label for="smtp_username"><?php _e("SMTP Username:", 'custom-contact-forms'); ?></label> <input class="ccf-width125" type="text" size="10" name="mail_config[smtp_username]" value="<?php echo $admin_options['smtp_username']; ?>" /></li>
2198
+ <li><label for="smtp_password"><?php _e("SMTP Password:", 'custom-contact-forms'); ?></label> <input class="ccf-width125" type="text" size="10" name="mail_config[smtp_password]" value="<?php echo $admin_options['smtp_password']; ?>" /></li>
2199
+ </ul>
2200
+ </div>
2201
+ <input type="submit" name="configure_mail" value="<?php _e("Save Mail Sending Options", 'custom-contact-forms'); ?>" />
2202
+ </form>
2203
+ </div>
2204
+ </div>
2205
+ <a name="import-export"></a>
2206
+ <div id="export" class="postbox">
2207
+ <h3 class="hndle"><span>
2208
+ <?php _e("Export", 'custom-contact-forms'); ?>
2209
+ </span></h3>
2210
+ <div class="inside">
2211
+ <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
2212
+ <p>
2213
+ <?php _e("Preforming a Custom Contact Forms export will create a file of the form
2214
+ ccf-export-xxxx.sql on your web server. The file created contains SQL that
2215
+ will recreate all the plugin data on any Wordpress installation. After Custom Contact Forms creates the export file, you will be prompted to download it. You can use this file as a backup in case your Wordpress database gets ruined.", 'custom-contact-forms'); ?>
2216
+ </p>
2217
+ <input type="submit" name="ccf_export" value="<?php _e("Export All CCF Plugin Content", 'custom-contact-forms'); ?>" />
2218
+ </form>
2219
+ </div>
2220
+ </div>
2221
+ <div id="import" class="postbox">
2222
+ <h3 class="hndle"><span>
2223
+ <?php _e("Import", 'custom-contact-forms'); ?>
2224
+ </span></h3>
2225
+ <div class="inside">
2226
+ <form method="post" enctype="multipart/form-data" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
2227
+ <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
2228
+ <p>
2229
+ <?php _e("Browse to a CCF .sql export file to import Custom Contact Form data from another Wordpress installation to this one. Pressing the 'Clear and Import' button deletes all current data and then imports the selected file; this will not work for merging to data!. Clearing all CCF data before importing prevents any conflicts from occuring. Before you attempt an import, you should always download a backup, by clicking the 'Export All' button.", 'custom-contact-forms'); ?>
2230
+ </p>
2231
  <p class="choose_import">
2232
  <?php _e("Choose What You Want to Use from the Import File:", 'custom-contact-forms'); ?>
2233
  </p>
2287
  </form>
2288
  </div>
2289
  </div>
 
 
 
 
 
 
 
 
 
2290
  </div>
2291
+ <?php
2292
  }
2293
  }
2294
  }
custom-contact-forms-front.php CHANGED
@@ -12,17 +12,13 @@ if (!class_exists('CustomContactFormsFront')) {
12
  var $current_thank_you_message;
13
 
14
  function frontInit() {
15
- CustomContactFormsStatic::startSession();
16
- $this->registerFrontEndStyles();
17
  $this->processForms();
18
  }
19
-
20
- function registerFrontEndStyles() {
21
- wp_register_style('CCFStandardsCSS', plugins_url() . '/custom-contact-forms/css/custom-contact-forms-standards.css');
22
- wp_register_style('CCFFormsCSS', plugins_url() . '/custom-contact-forms/css/custom-contact-forms.css');
23
- }
24
 
25
  function insertFrontEndStyles() {
 
 
26
  wp_enqueue_style('CCFStandardsCSS');
27
  wp_enqueue_style('CCFFormsCSS');
28
  }
@@ -31,9 +27,10 @@ if (!class_exists('CustomContactFormsFront')) {
31
  $admin_options = parent::getAdminOptions();
32
  if ($admin_options['enable_jquery'] == 1) {
33
  wp_enqueue_script('jquery');
34
- wp_enqueue_script('jquery-tools', plugins_url() . '/custom-contact-forms/js/jquery.tools.min.js');
35
- wp_enqueue_script('ccf-main', plugins_url() . '/custom-contact-forms/js/custom-contact-forms.js', array('jquery'), '1.0');
36
  }
 
37
  }
38
 
39
  function setFormError($key, $message) {
@@ -48,29 +45,65 @@ if (!class_exists('CustomContactFormsFront')) {
48
  return $this->form_errors;
49
  }
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  function contentFilter($content) {
 
52
  $errors = $this->getAllFormErrors();
53
  if (!empty($errors)) {
54
- $out = '<div id="custom-contact-forms-errors"><p>'.__('You filled out the form incorrectly.', 'custom-contact-forms').'</p><ul>' . "\n";
55
- $errors = $this->getAllFormErrors();
 
56
  foreach ($errors as $error) {
57
  $out .= '<li>'.$error.'</li>' . "\n";
58
  }
59
  $err_link = (!empty($this->error_return)) ? '<p><a href="'.$this->error_return.'" title="Go Back">&lt; ' . __('Go Back to Form.', 'custom-contact-forms') . '</a></p>' : '';
 
60
  return $out . '</ul>' . "\n" . $err_link . '</div>';
61
  }
 
 
62
  $matches = array();
63
  preg_match_all('/\[customcontact form=([0-9]+)\]/si', $content, $matches);
64
  $matches_count = count($matches[0]);
65
  for ($i = 0; $i < $matches_count; $i++) {
66
- if (parent::selectForm($matches[1][$i], '') == false) {
67
- $form_code = '';
68
- } else {
69
- $form_code = $this->getFormCode($matches[1][$i]);
70
- }
71
- $content = str_replace($matches[0][$i], $form_code, $content);
 
 
72
  }
73
- return $content;
74
  }
75
 
76
  function insertFormSuccessCode() {
@@ -110,43 +143,48 @@ if (!class_exists('CustomContactFormsFront')) {
110
  }
111
 
112
  function validEmail($email) {
113
- if (!@preg_match("/^[^@]{1,64}@[^@]{1,255}$/", $email)) return false;
114
- $email_array = explode("@", $email);
115
- $local_array = explode(".", $email_array[0]);
116
- for ($i = 0; $i < sizeof($local_array); $i++) {
117
- if (!@preg_match("/^(([A-Za-z0-9!#$%&'*+\/=?^_`{|}~-][A-Za-z0-9!#$%&'*+\/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$/", $local_array[$i])) {
118
- return false;
119
- }
120
- } if (!@preg_match("/^\[?[0-9\.]+\]?$/", $email_array[1])) {
121
- $domain_array = explode(".", $email_array[1]);
122
- if (sizeof($domain_array) < 2) return false;
123
- for ($i = 0; $i < sizeof($domain_array); $i++) {
124
- if (!@preg_match("/^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$/", $domain_array[$i])) {
125
- return false;
126
- }
 
127
  }
128
- }
129
- return true;
130
  }
131
 
132
- function getFormCode($fid, $is_sidebar = false, $popover = false) {
 
 
 
 
 
133
  $admin_options = parent::getAdminOptions();
134
- $form = parent::selectForm($fid, '');
135
  $form_key = time();
136
  $out = '';
137
  $form_styles = '';
138
- $style_class = (!$is_sidebar) ? ' customcontactform' : ' customcontactform-sidebar';
139
  $form_id = 'form-' . $form->id . '-'.$form_key;
140
  if ($form->form_style != 0) {
141
  $style = parent::selectStyle($form->form_style, '');
142
  $style_class = $style->style_slug;
143
  }
144
- $form_title = CustomContactFormsStatic::decodeOption($form->form_title, 1, 1);
 
145
  $action = (!empty($form->form_action)) ? $form->form_action : $_SERVER['REQUEST_URI'];
146
- $out .= '<form id="'.$form_id.'" method="'.strtolower($form->form_method).'" action="'.$action.'" class="'.$style_class.'">' . "\n";
147
- $out .= CustomContactFormsStatic::decodeOption($form->custom_code, 1, 1) . "\n";
148
- if (!empty($form_title) && !$is_sidebar) $out .= '<h4 id="h4-' . $form->id . '-' . $form_key . '">' . $form_title . '</h4>' . "\n";
149
- $fields = parent::getAttachedFieldsArray($fid);
150
  $hiddens = '';
151
  $code_type = ($admin_options['code_type'] == 'XHTML') ? ' /' : '';
152
  $add_reset = '';
@@ -154,27 +192,31 @@ if (!class_exists('CustomContactFormsFront')) {
154
  $field = parent::selectField($field_id, '');
155
  $req = ($field->field_required == 1 or $field->field_slug == 'ishuman') ? '* ' : '';
156
  $req_long = ($field->field_required == 1) ? ' ' . __('(required)', 'custom-contact-forms') : '';
157
- $input_id = 'id="'.CustomContactFormsStatic::decodeOption($field->field_slug, 1, 1).'-'.$form_key.'"';
158
- $field_value = CustomContactFormsStatic::decodeOption($field->field_value, 1, 1);
159
  $instructions = (empty($field->field_instructions)) ? '' : 'title="' . $field->field_instructions . $req_long . '" ';
160
  $tooltip_class = (empty($field->field_instructions)) ? '' : 'ccf-tooltip-field';
161
- if ($admin_options['enable_widget_tooltips'] == 0 && $is_sidebar) $instructions = '';
162
  if ($_SESSION['fields'][$field->field_slug]) {
163
  if ($admin_options['remember_field_values'] == 1)
164
  $field_value = $_SESSION['fields'][$field->field_slug];
165
  } if ($field->field_slug == 'captcha') {
166
- $out .= '<div>' . "\n" . $this->getCaptchaCode($form->id) . "\n" . '</div>' . "\n";
 
 
 
 
167
  } elseif ($field->field_slug == 'resetButton') {
168
- $add_reset = ' <input type="reset" '.$instructions.' class="reset-button '.$field->field_class.'" value="' . $field->field_value . '" />';
169
  } elseif ($field->field_type == 'Text') {
170
  $maxlength = (empty($field->field_maxlength) or $field->field_maxlength <= 0) ? '' : ' maxlength="'.$field->field_maxlength.'"';
171
- $out .= '<div>'."\n".'<label for="'.CustomContactFormsStatic::decodeOption($field->field_slug, 1, 1).'">'. $req .CustomContactFormsStatic::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<input class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' '.$input_id.' type="text" name="'.CustomContactFormsStatic::decodeOption($field->field_slug, 1, 1).'" value="'.$field_value.'"'.$maxlength.''.$code_type.'>'."\n".'</div>' . "\n";
172
  } elseif ($field->field_type == 'Hidden') {
173
- $hiddens .= '<input type="hidden" name="'.CustomContactFormsStatic::decodeOption($field->field_slug, 1, 1).'" value="'.$field_value.'" '.$input_id.''.$code_type.'>' . "\n";
174
  } elseif ($field->field_type == 'Checkbox') {
175
- $out .= '<div>'."\n".'<input class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' type="checkbox" name="'.CustomContactFormsStatic::decodeOption($field->field_slug, 1, 1).'" value="'.CustomContactFormsStatic::decodeOption($field->field_value, 1, 1).'" '.$input_id.''.$code_type.'> '."\n".'<label class="checkbox" for="'.CustomContactFormsStatic::decodeOption($field->field_slug, 1, 1).'">' . $req .CustomContactFormsStatic::decodeOption($field->field_label, 1, 1).'</label>'."\n".'</div>' . "\n";
176
  } elseif ($field->field_type == 'Textarea') {
177
- $out .= '<div>'."\n".'<label for="'.CustomContactFormsStatic::decodeOption($field->field_slug, 1, 1).'">'. $req .CustomContactFormsStatic::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<textarea class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' '.$input_id.' rows="5" cols="40" name="'.CustomContactFormsStatic::decodeOption($field->field_slug, 1, 1).'">'.$field_value.'</textarea>'."\n".'</div>' . "\n";
178
  } elseif ($field->field_type == 'Dropdown') {
179
  $field_options = '';
180
  $options = parent::getAttachedFieldOptionsArray($field->id);
@@ -182,10 +224,13 @@ if (!class_exists('CustomContactFormsFront')) {
182
  $option = parent::selectFieldOption($option_id);
183
  $option_sel = ($field->field_value == $option->option_slug) ? ' selected="selected"' : '';
184
  $option_value = (!empty($option->option_value)) ? ' value="' . $option->option_value . '"' : '';
 
 
185
  $field_options .= '<option'.$option_sel.''.$option_value.'>' . $option->option_label . '</option>' . "\n";
186
  }
187
  if (!empty($options)) {
188
- $out .= '<div>'."\n".'<label for="'.CustomContactFormsStatic::decodeOption($field->field_slug, 1, 1).'">'. $req .CustomContactFormsStatic::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<select class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' '.$input_id.' name="'.CustomContactFormsStatic::decodeOption($field->field_slug, 1, 1).'">'."\n".$field_options.'</select>'."\n".'</div>' . "\n";
 
189
  }
190
  } elseif ($field->field_type == 'Radio') {
191
  $field_options = '';
@@ -193,13 +238,13 @@ if (!class_exists('CustomContactFormsFront')) {
193
  foreach ($options as $option_id) {
194
  $option = parent::selectFieldOption($option_id);
195
  $option_sel = ($field->field_value == $option->option_slug) ? ' checked="checked"' : '';
196
- $field_options .= '<div><input'.$option_sel.' class="'.$field->field_class.' '.$tooltip_class.'" type="radio" '.$instructions.' name="'.CustomContactFormsStatic::decodeOption($field->field_slug, 1, 1).'" value="'.CustomContactFormsStatic::decodeOption($option->option_value, 1, 1).'"'.$code_type.'> <label class="select" for="'.CustomContactFormsStatic::decodeOption($field->field_slug, 1, 1).'">' . CustomContactFormsStatic::decodeOption($option->option_label, 1, 1) . '</label></div>' . "\n";
197
  }
198
- $field_label = (!empty($field->field_label)) ? '<label for="'.CustomContactFormsStatic::decodeOption($field->field_slug, 1, 1).'">'. $req .CustomContactFormsStatic::decodeOption($field->field_label, 1, 1).'</label>' : '';
199
  if (!empty($options)) $out .= '<div>'."\n".$field_label."\n".$field_options."\n".'</div>' . "\n";
200
  }
201
  }
202
- $submit_text = (!empty($form->submit_button_text)) ? CustomContactFormsStatic::decodeOption($form->submit_button_text, 1, 0) : 'Submit';
203
  $out .= '<input name="form_page" value="'.$_SERVER['REQUEST_URI'].'" type="hidden"'.$code_type.'>'."\n".'<input type="hidden" name="fid" value="'.$form->id.'"'.$code_type.'>'."\n".$hiddens."\n".'<input type="submit" id="submit-' . $form->id . '-'.$form_key.'" class="submit" value="' . $submit_text . '" name="customcontactforms_submit"'.$code_type.'>';
204
  if (!empty($add_reset)) $out .= $add_reset;
205
  $out .= "\n" . '</form>';
@@ -259,21 +304,21 @@ if (!class_exists('CustomContactFormsFront')) {
259
  if (in_array($key, $req_fields) && !empty($value)) {
260
  unset($req_fields[array_search($key, $req_fields)]);
261
  }
262
- $body .= ucwords(str_replace('_', ' ', htmlspecialchars($key))) . ': ' . htmlspecialchars($value) . "<br />\n";
263
  $data_array[$key] = $value;
264
  }
265
  } foreach($req_fields as $err)
266
  $this->setFormError($err, $lang['field_blank'] . '"' . $err . '"');
267
  $errors = $this->getAllFormErrors();
268
  if (empty($errors)) {
269
- require_once('modules/export/custom-contact-forms-user-data.php');
270
  $data_object = new CustomContactFormsUserData(array('data_array' => $data_array, 'form_page' => $_SERVER['SERVER_NAME']. $_SERVER['REQUEST_URI'], 'form_id' => 0, 'data_time' => time()));
271
  parent::insertUserData($data_object);
272
  $body .= "<br />\n" . htmlspecialchars($lang['form_page']) . $_SERVER['SERVER_NAME']. $_SERVER['REQUEST_URI'] . "<br />\n" . $lang['sender_ip'] . $_SERVER['REMOTE_ADDR'] . "<br />\n";
273
  if ($admin_options['email_form_submissions'] == 1) {
274
  if (!class_exists('PHPMailer'))
275
  require_once(ABSPATH . "wp-includes/class-phpmailer.php");
276
- $mail = new PHPMailer(false);
277
  if ($admin_options['mail_function'] == 'smtp') {
278
  $mail->IsSMTP();
279
  $mail->Host = $admin_options['smtp_host'];
@@ -287,27 +332,33 @@ if (!class_exists('CustomContactFormsFront')) {
287
  }
288
  $mail->From = $admin_options['default_from_email'];
289
  $mail->FromName = 'Custom Contact Forms';
290
- $mail->AddAddress($_POST['destination_email']);
 
 
 
 
 
291
  $mail->Subject = $admin_options['default_form_subject'];
292
  $mail->AltBody = "To view the message, please use an HTML compatible email viewer!";
293
- $mail->CharSet = "utf-8";
294
  $mail->MsgHTML(stripslashes($body));
295
  $mail->Send();
296
- } if ($_POST['thank_you_page'])
297
- CustomContactFormsStatic::redirect($_POST['thank_you_page']);
 
298
  $this->current_thank_you_message = (!empty($_POST['success_message'])) ? $_POST['success_message'] : $admin_options['form_success_message'];
299
  $this->current_form = 0;
300
  add_action('wp_footer', array(&$this, 'insertFormSuccessCode'), 1);
301
  }
302
  unset($_POST);
303
  } elseif ($_POST['customcontactforms_submit']) {
304
- CustomContactFormsStatic::startSession();
305
  $this->error_return = $_POST['form_page'];
306
  $admin_options = parent::getAdminOptions();
307
  $fields = parent::getAttachedFieldsArray($_POST['fid']);
308
  $form = parent::selectForm($_POST['fid']);
309
  $checks = array();
310
  $reply = ($_POST['fixedEmail']) ? $_POST['fixedEmail'] : NULL;
 
311
  $cap_name = 'captcha_' . $_POST['fid'];
312
  foreach ($fields as $field_id) {
313
  $field = parent::selectField($field_id, '');
@@ -329,9 +380,24 @@ if (!class_exists('CustomContactFormsFront')) {
329
  $this->setFormError('fixedEmail', __('The email address you provided is not valid.', 'custom-contact-forms'));
330
  else $this->setFormError('fixedEmail', $field->field_error);
331
  }
 
 
 
 
 
 
332
  } else {
333
- if ($field->field_required == 1 && empty($_POST[$field->field_slug])) {
334
- $field_error_label = (empty($field->field_label)) ? $field->field_slug : $field->field_label;
 
 
 
 
 
 
 
 
 
335
  if (empty($field->field_error))
336
  $this->setFormError($field->field_slug, $lang['field_blank'] . '"'.$field_error_label.'"');
337
  else $this->setFormError($field->field_slug, $field->field_error);
@@ -344,7 +410,7 @@ if (!class_exists('CustomContactFormsFront')) {
344
  foreach ($_POST as $key => $value) {
345
  $_SESSION['fields'][$key] = $value;
346
  $field = parent::selectField('', $key);
347
- if (!array_key_exists($key, $GLOBALS['ccf_fixed_fields']) or $key == 'fixedEmail') {
348
  $mail_field_label = (empty($field->field_label)) ? $field->field_slug : $field->field_label;
349
  $body .= htmlspecialchars($mail_field_label) . ': ' . htmlspecialchars($value) . "<br />\n";
350
  $data_array[$key] = $value;
@@ -360,7 +426,7 @@ if (!class_exists('CustomContactFormsFront')) {
360
  }
361
  $errors = $this->getAllFormErrors();
362
  if (empty($errors)) {
363
- require_once('modules/export/custom-contact-forms-user-data.php');
364
  unset($_SESSION['captcha_' . $_POST['fid']]);
365
  unset($_SESSION['fields']);
366
  $data_object = new CustomContactFormsUserData(array('data_array' => $data_array, 'form_page' => $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'], 'form_id' => $form->id, 'data_time' => time()));
@@ -382,24 +448,27 @@ if (!class_exists('CustomContactFormsFront')) {
382
  $mail->SMTPAuth = false;
383
  }
384
  $dest_email_array = $this->getDestinationEmailArray($form->form_email);
 
 
385
  if (empty($dest_email_array)) $mail->AddAddress($admin_options['default_to_email']);
386
  else {
387
  foreach ($dest_email_array as $em)
388
  $mail->AddAddress($em);
389
  }
390
- $mail->FromName = 'Custom Contact Forms';
391
- if ($reply != NULL && $this->validEmail($reply)) {
392
  $mail->From = $reply;
393
- } else {
394
  $mail->From = $admin_options['default_from_email'];
395
- }
396
- $mail->Subject = $admin_options['default_form_subject'];
397
- $mail->AltBody = "To view the message, please use an HTML compatible email viewer!";
398
- $mail->CharSet = "utf-8";
 
399
  $mail->MsgHTML(stripslashes($body));
400
  $mail->Send();
401
- } if (!empty($form->form_thank_you_page))
402
- CustomContactFormsStatic::redirect($form->form_thank_you_page);
 
403
  $this->current_form = $form->id;
404
  add_action('wp_footer', array(&$this, 'insertFormSuccessCode'), 1);
405
  }
@@ -407,17 +476,46 @@ if (!class_exists('CustomContactFormsFront')) {
407
  }
408
  }
409
 
410
- function getCaptchaCode($form_id) {
411
  $admin_options = parent::getAdminOptions();
412
  $code_type = ($admin_options['code_type'] == 'XHTML') ? ' /' : '';
413
- $captcha = parent::selectField('', 'captcha');
414
- $instructions = (empty($captcha->field_instructions)) ? '' : 'title="'.$captcha->field_instructions.'" ';
415
- $tooltip_class = (empty($captcha->field_instructions)) ? '' : 'ccf-tooltip-field';
 
 
 
 
416
  $out = '<img width="96" height="24" alt="' . __('Captcha image for Custom Contact Forms plugin. You must type the numbers shown in the image', 'custom-contact-forms') . '" id="captcha-image" src="' . get_bloginfo('wpurl') . '/wp-content/plugins/custom-contact-forms/image.php?fid='.$form_id.'"'.$code_type.'>
417
- <div><label for="captcha'.$form_id.'">* '.$captcha->field_label.'</label> <input class="'.$captcha->field_class.' '.$tooltip_class.'" type="text" '.$instructions.' name="captcha" id="captcha'.$form_id.'" maxlength="20"'.$code_type.'></div>';
418
  return $out;
419
  }
420
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
421
  function getDestinationEmailArray($str) {
422
  $str = str_replace(',', ';', $str);
423
  $email_array = explode(';', $str);
12
  var $current_thank_you_message;
13
 
14
  function frontInit() {
15
+ ccf_utils::startSession();
 
16
  $this->processForms();
17
  }
 
 
 
 
 
18
 
19
  function insertFrontEndStyles() {
20
+ wp_register_style('CCFStandardsCSS', WP_PLUGIN_URL . '/custom-contact-forms/css/custom-contact-forms-standards.css');
21
+ wp_register_style('CCFFormsCSS', WP_PLUGIN_URL . '/custom-contact-forms/css/custom-contact-forms.css');
22
  wp_enqueue_style('CCFStandardsCSS');
23
  wp_enqueue_style('CCFFormsCSS');
24
  }
27
  $admin_options = parent::getAdminOptions();
28
  if ($admin_options['enable_jquery'] == 1) {
29
  wp_enqueue_script('jquery');
30
+ wp_enqueue_script('jquery-tools', WP_PLUGIN_URL . '/custom-contact-forms/js/jquery.tools.min.js');
31
+ wp_enqueue_script('ccf-main', WP_PLUGIN_URL . '/custom-contact-forms/js/custom-contact-forms.js', array('jquery', 'jquery-ui-core', 'jquery-ui-tabs', 'jquery-ui-resizable'), '1.0');
32
  }
33
+
34
  }
35
 
36
  function setFormError($key, $message) {
45
  return $this->form_errors;
46
  }
47
 
48
+ function shortCodeToForm($atts) {
49
+ extract(shortcode_atts(array(
50
+ 'form' => 0,
51
+ ), $atts));
52
+ $this_form = parent::selectForm($form);
53
+ /*$errors = $this->getAllFormErrors();
54
+ if (!empty($errors)) {
55
+ $admin_options = parent::getAdminOptions();
56
+ $out = '<div id="custom-contact-forms-errors"><p>'.$admin_options['default_form_error_header'].'</p><ul>' . "\n";
57
+ $errors = $this->getAllFormErrors();
58
+ foreach ($errors as $error) {
59
+ $out .= '<li>'.$error.'</li>' . "\n";
60
+ }
61
+ $err_link = (!empty($this->error_return)) ? '<p><a href="'.$this->error_return.'" title="Go Back">&lt; ' . __('Go Back to Form.', 'custom-contact-forms') . '</a></p>' : '';
62
+ return $out . '</ul>' . "\n" . $err_link . '</div>';
63
+ } */
64
+ if (empty($this_form))
65
+ return '';
66
+ elseif (!$this->userCanViewForm($this_form)) {
67
+ $admin_options = parent::getAdminOptions();
68
+ return $admin_options['default_form_bad_permissions'];
69
+ } else
70
+ return $this->getFormCode($this_form);
71
+ }
72
+
73
+ function emptyFormErrors() {
74
+ $this->form_errors = array();
75
+ }
76
+
77
  function contentFilter($content) {
78
+ // THIS NEEDS TO REPLACE THE SHORTCODE ONLY ONCE
79
  $errors = $this->getAllFormErrors();
80
  if (!empty($errors)) {
81
+ $admin_options = parent::getAdminOptions();
82
+ $out = '<div id="custom-contact-forms-errors"><p>'.$admin_options['default_form_error_header'].'</p><ul>' . "\n";
83
+ //$errors = $this->getAllFormErrors();
84
  foreach ($errors as $error) {
85
  $out .= '<li>'.$error.'</li>' . "\n";
86
  }
87
  $err_link = (!empty($this->error_return)) ? '<p><a href="'.$this->error_return.'" title="Go Back">&lt; ' . __('Go Back to Form.', 'custom-contact-forms') . '</a></p>' : '';
88
+ $this->emptyFormErrors();
89
  return $out . '</ul>' . "\n" . $err_link . '</div>';
90
  }
91
+ return $content;
92
+ /*
93
  $matches = array();
94
  preg_match_all('/\[customcontact form=([0-9]+)\]/si', $content, $matches);
95
  $matches_count = count($matches[0]);
96
  for ($i = 0; $i < $matches_count; $i++) {
97
+ $this_form = parent::selectForm($matches[1][$i]);
98
+ if ($this_form == false)
99
+ $form_replace = '';
100
+ if (!$this->userCanViewForm($this_form))
101
+ $form_replace = __("You don't have the proper permissions to view this form.", 'custom-contact-forms');
102
+ else
103
+ $form_replace = $this->getFormCode($this_form);
104
+ $content = str_replace($matches[0][$i], $form_replace, $content);
105
  }
106
+ return $content;*/
107
  }
108
 
109
  function insertFormSuccessCode() {
143
  }
144
 
145
  function validEmail($email) {
146
+ if (!@preg_match("/^[^@]{1,64}@[^@]{1,255}$/", $email)) return false;
147
+ $email_array = explode("@", $email);
148
+ $local_array = explode(".", $email_array[0]);
149
+ for ($i = 0; $i < sizeof($local_array); $i++) {
150
+ if (!@preg_match("/^(([A-Za-z0-9!#$%&'*+\/=?^_`{|}~-][A-Za-z0-9!#$%&'*+\/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$/", $local_array[$i])) {
151
+ return false;
152
+ }
153
+ } if (!@preg_match("/^\[?[0-9\.]+\]?$/", $email_array[1])) {
154
+ $domain_array = explode(".", $email_array[1]);
155
+ if (sizeof($domain_array) < 2) return false;
156
+ for ($i = 0; $i < sizeof($domain_array); $i++) {
157
+ if (!@preg_match("/^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$/", $domain_array[$i])) {
158
+ return false;
159
+ }
160
+ }
161
  }
162
+ return true;
 
163
  }
164
 
165
+ function validWebsite($website) {
166
+ return preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $website);
167
+ }
168
+
169
+ function getFormCode($form, $is_widget_form = false) {
170
+ if (empty($form)) return '';
171
  $admin_options = parent::getAdminOptions();
 
172
  $form_key = time();
173
  $out = '';
174
  $form_styles = '';
175
+ $style_class = (!$is_widget_form) ? ' customcontactform' : ' customcontactform-sidebar';
176
  $form_id = 'form-' . $form->id . '-'.$form_key;
177
  if ($form->form_style != 0) {
178
  $style = parent::selectStyle($form->form_style, '');
179
  $style_class = $style->style_slug;
180
  }
181
+ $form_method = (empty($form->form_method)) ? 'post' : strtolower($form->form_method);
182
+ $form_title = ccf_utils::decodeOption($form->form_title, 1, 1);
183
  $action = (!empty($form->form_action)) ? $form->form_action : $_SERVER['REQUEST_URI'];
184
+ $out .= '<form id="'.$form_id.'" method="'.$form_method.'" action="'.$action.'" class="'.$style_class.'">' . "\n";
185
+ $out .= ccf_utils::decodeOption($form->custom_code, 1, 1) . "\n";
186
+ if (!empty($form_title) && !$is_widget_form) $out .= '<h4 id="h4-' . $form->id . '-' . $form_key . '">' . $form_title . '</h4>' . "\n";
187
+ $fields = parent::getAttachedFieldsArray($form->id);
188
  $hiddens = '';
189
  $code_type = ($admin_options['code_type'] == 'XHTML') ? ' /' : '';
190
  $add_reset = '';
192
  $field = parent::selectField($field_id, '');
193
  $req = ($field->field_required == 1 or $field->field_slug == 'ishuman') ? '* ' : '';
194
  $req_long = ($field->field_required == 1) ? ' ' . __('(required)', 'custom-contact-forms') : '';
195
+ $input_id = 'id="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'-'.$form_key.'"';
196
+ $field_value = ccf_utils::decodeOption($field->field_value, 1, 1);
197
  $instructions = (empty($field->field_instructions)) ? '' : 'title="' . $field->field_instructions . $req_long . '" ';
198
  $tooltip_class = (empty($field->field_instructions)) ? '' : 'ccf-tooltip-field';
199
+ if ($admin_options['enable_widget_tooltips'] == 0 && $is_widget_form) $instructions = '';
200
  if ($_SESSION['fields'][$field->field_slug]) {
201
  if ($admin_options['remember_field_values'] == 1)
202
  $field_value = $_SESSION['fields'][$field->field_slug];
203
  } if ($field->field_slug == 'captcha') {
204
+ $out .= '<div>' . "\n" . $this->getCaptchaCode($field, $form->id) . "\n" . '</div>' . "\n";
205
+ } elseif ($field->field_slug == 'usaStates') {
206
+ $out .= '<div>' . "\n" . $this->getStatesCode($field, $form->id) . "\n" . '</div>' . "\n";
207
+ } elseif ($field->field_slug == 'allCountries') {
208
+ $out .= '<div>' . "\n" . $this->getCountriesCode($field, $form->id) . "\n" . '</div>' . "\n";
209
  } elseif ($field->field_slug == 'resetButton') {
210
+ $add_reset = ' <input type="reset" '.$instructions.' class="reset-button '.$field->field_class.' '.$tooltip_class.'" value="' . $field->field_value . '" />';
211
  } elseif ($field->field_type == 'Text') {
212
  $maxlength = (empty($field->field_maxlength) or $field->field_maxlength <= 0) ? '' : ' maxlength="'.$field->field_maxlength.'"';
213
+ $out .= '<div>'."\n".'<label for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<input class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' '.$input_id.' type="text" name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" value="'.$field_value.'"'.$maxlength.''.$code_type.'>'."\n".'</div>' . "\n";
214
  } elseif ($field->field_type == 'Hidden') {
215
+ $hiddens .= '<input type="hidden" name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" value="'.$field_value.'" '.$input_id.''.$code_type.'>' . "\n";
216
  } elseif ($field->field_type == 'Checkbox') {
217
+ $out .= '<div>'."\n".'<input class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' type="checkbox" name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" value="'.ccf_utils::decodeOption($field->field_value, 1, 1).'" '.$input_id.''.$code_type.'> '."\n".'<label class="checkbox" for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">' . $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'</div>' . "\n";
218
  } elseif ($field->field_type == 'Textarea') {
219
+ $out .= '<div>'."\n".'<label for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<textarea class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' '.$input_id.' rows="5" cols="40" name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'.$field_value.'</textarea>'."\n".'</div>' . "\n";
220
  } elseif ($field->field_type == 'Dropdown') {
221
  $field_options = '';
222
  $options = parent::getAttachedFieldOptionsArray($field->id);
224
  $option = parent::selectFieldOption($option_id);
225
  $option_sel = ($field->field_value == $option->option_slug) ? ' selected="selected"' : '';
226
  $option_value = (!empty($option->option_value)) ? ' value="' . $option->option_value . '"' : '';
227
+ // Weird way of marking a state dead. TODO: Find another way.
228
+ $option_value = ($option->option_dead == 1) ? ' value="' . CCF_DEAD_STATE_VALUE . '"' : $option_value;
229
  $field_options .= '<option'.$option_sel.''.$option_value.'>' . $option->option_label . '</option>' . "\n";
230
  }
231
  if (!empty($options)) {
232
+ if (!$is_widget_form) $out .= '<div>'."\n".'<label class="select" for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<select '.$instructions.' '.$input_id.' name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" class="'.$field->field_class.' '.$tooltip_class.'">'."\n".$field_options.'</select>'."\n".'</div>' . "\n";
233
+ else $out .= '<div>'."\n".'<label for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<select class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' '.$input_id.' name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'."\n".$field_options.'</select>'."\n".'</div>' . "\n";
234
  }
235
  } elseif ($field->field_type == 'Radio') {
236
  $field_options = '';
238
  foreach ($options as $option_id) {
239
  $option = parent::selectFieldOption($option_id);
240
  $option_sel = ($field->field_value == $option->option_slug) ? ' checked="checked"' : '';
241
+ $field_options .= '<div><input'.$option_sel.' class="'.$field->field_class.' '.$tooltip_class.'" type="radio" '.$instructions.' name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" value="'.ccf_utils::decodeOption($option->option_value, 1, 1).'"'.$code_type.'> <label class="select" for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">' . ccf_utils::decodeOption($option->option_label, 1, 1) . '</label></div>' . "\n";
242
  }
243
+ $field_label = (!empty($field->field_label)) ? '<label for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>' : '';
244
  if (!empty($options)) $out .= '<div>'."\n".$field_label."\n".$field_options."\n".'</div>' . "\n";
245
  }
246
  }
247
+ $submit_text = (!empty($form->submit_button_text)) ? ccf_utils::decodeOption($form->submit_button_text, 1, 0) : 'Submit';
248
  $out .= '<input name="form_page" value="'.$_SERVER['REQUEST_URI'].'" type="hidden"'.$code_type.'>'."\n".'<input type="hidden" name="fid" value="'.$form->id.'"'.$code_type.'>'."\n".$hiddens."\n".'<input type="submit" id="submit-' . $form->id . '-'.$form_key.'" class="submit" value="' . $submit_text . '" name="customcontactforms_submit"'.$code_type.'>';
249
  if (!empty($add_reset)) $out .= $add_reset;
250
  $out .= "\n" . '</form>';
304
  if (in_array($key, $req_fields) && !empty($value)) {
305
  unset($req_fields[array_search($key, $req_fields)]);
306
  }
307
+ $body .= ucwords(str_replace('_', ' ', htmlspecialchars($key))) . ': ' . htmlspecialchars($value) . "<br /><br />\n";
308
  $data_array[$key] = $value;
309
  }
310
  } foreach($req_fields as $err)
311
  $this->setFormError($err, $lang['field_blank'] . '"' . $err . '"');
312
  $errors = $this->getAllFormErrors();
313
  if (empty($errors)) {
314
+ ccf_utils::load_module('export/custom-contact-forms-user-data.php');
315
  $data_object = new CustomContactFormsUserData(array('data_array' => $data_array, 'form_page' => $_SERVER['SERVER_NAME']. $_SERVER['REQUEST_URI'], 'form_id' => 0, 'data_time' => time()));
316
  parent::insertUserData($data_object);
317
  $body .= "<br />\n" . htmlspecialchars($lang['form_page']) . $_SERVER['SERVER_NAME']. $_SERVER['REQUEST_URI'] . "<br />\n" . $lang['sender_ip'] . $_SERVER['REMOTE_ADDR'] . "<br />\n";
318
  if ($admin_options['email_form_submissions'] == 1) {
319
  if (!class_exists('PHPMailer'))
320
  require_once(ABSPATH . "wp-includes/class-phpmailer.php");
321
+ $mail = new PHPMailer();
322
  if ($admin_options['mail_function'] == 'smtp') {
323
  $mail->IsSMTP();
324
  $mail->Host = $admin_options['smtp_host'];
332
  }
333
  $mail->From = $admin_options['default_from_email'];
334
  $mail->FromName = 'Custom Contact Forms';
335
+ $dest_email_array = $this->getDestinationEmailArray($_POST['destination_email']);
336
+ if (empty($dest_email_array)) $mail->AddAddress($admin_options['default_to_email']);
337
+ else {
338
+ foreach ($dest_email_array as $em)
339
+ $mail->AddAddress($em);
340
+ }
341
  $mail->Subject = $admin_options['default_form_subject'];
342
  $mail->AltBody = "To view the message, please use an HTML compatible email viewer!";
 
343
  $mail->MsgHTML(stripslashes($body));
344
  $mail->Send();
345
+ } if ($_POST['thank_you_page']) {
346
+ ccf_utils::redirect($_POST['thank_you_page']);
347
+ }
348
  $this->current_thank_you_message = (!empty($_POST['success_message'])) ? $_POST['success_message'] : $admin_options['form_success_message'];
349
  $this->current_form = 0;
350
  add_action('wp_footer', array(&$this, 'insertFormSuccessCode'), 1);
351
  }
352
  unset($_POST);
353
  } elseif ($_POST['customcontactforms_submit']) {
354
+ ccf_utils::startSession();
355
  $this->error_return = $_POST['form_page'];
356
  $admin_options = parent::getAdminOptions();
357
  $fields = parent::getAttachedFieldsArray($_POST['fid']);
358
  $form = parent::selectForm($_POST['fid']);
359
  $checks = array();
360
  $reply = ($_POST['fixedEmail']) ? $_POST['fixedEmail'] : NULL;
361
+ $fixed_subject = ($_POST['emailSubject']) ? $_POST['emailSubject'] : NULL;
362
  $cap_name = 'captcha_' . $_POST['fid'];
363
  foreach ($fields as $field_id) {
364
  $field = parent::selectField($field_id, '');
380
  $this->setFormError('fixedEmail', __('The email address you provided is not valid.', 'custom-contact-forms'));
381
  else $this->setFormError('fixedEmail', $field->field_error);
382
  }
383
+ } elseif ($field->field_slug == 'fixedWebsite' && $field->field_required == 1 && !empty($_POST['fixedWebsite'])) {
384
+ if (!$this->validWebsite($_POST['fixedWebsite'])) {
385
+ if (empty($field->field_error))
386
+ $this->setFormError('fixedWebsite', __('The website address you provided is not valid.', 'custom-contact-forms'));
387
+ else $this->setFormError('fixedWebsite', $field->field_error);
388
+ }
389
  } else {
390
+ $field_error_label = (empty($field->field_label)) ? $field->field_slug : $field->field_label;
391
+ if ($field->field_required == 1 && !empty($_POST[$field->field_slug])) {
392
+ if ($field->field_type == 'Dropdown' || $field->field_type == 'Radio') {
393
+ // TODO: find better way to check for a dead state
394
+ if ($_POST[$field->field_slug] == CCF_DEAD_STATE_VALUE) {
395
+ if (empty($field->field_error))
396
+ $this->setFormError($field->field_slug, $lang['field_blank'] . '"'.$field_error_label.'"');
397
+ else $this->setFormError($field->field_slug, $field->field_error);
398
+ }
399
+ }
400
+ } elseif ($field->field_required == 1 && empty($_POST[$field->field_slug])) {
401
  if (empty($field->field_error))
402
  $this->setFormError($field->field_slug, $lang['field_blank'] . '"'.$field_error_label.'"');
403
  else $this->setFormError($field->field_slug, $field->field_error);
410
  foreach ($_POST as $key => $value) {
411
  $_SESSION['fields'][$key] = $value;
412
  $field = parent::selectField('', $key);
413
+ if (!array_key_exists($key, $GLOBALS['ccf_fixed_fields']) || $key == 'fixedEmail' || $key == 'usaStates' || $key == 'fixedWebsite'|| $key == 'emailSubject' || $key == 'allCountries') {
414
  $mail_field_label = (empty($field->field_label)) ? $field->field_slug : $field->field_label;
415
  $body .= htmlspecialchars($mail_field_label) . ': ' . htmlspecialchars($value) . "<br />\n";
416
  $data_array[$key] = $value;
426
  }
427
  $errors = $this->getAllFormErrors();
428
  if (empty($errors)) {
429
+ ccf_utils::load_module('export/custom-contact-forms-user-data.php');
430
  unset($_SESSION['captcha_' . $_POST['fid']]);
431
  unset($_SESSION['fields']);
432
  $data_object = new CustomContactFormsUserData(array('data_array' => $data_array, 'form_page' => $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'], 'form_id' => $form->id, 'data_time' => time()));
448
  $mail->SMTPAuth = false;
449
  }
450
  $dest_email_array = $this->getDestinationEmailArray($form->form_email);
451
+ $from_name = (empty($admin_options['default_from_name'])) ? __('Custom Contact Forms', 'custom-contact-forms') : $admin_options['default_from_name'];
452
+ if (!empty($form->form_email_name)) $from_name = $form->form_email_name;
453
  if (empty($dest_email_array)) $mail->AddAddress($admin_options['default_to_email']);
454
  else {
455
  foreach ($dest_email_array as $em)
456
  $mail->AddAddress($em);
457
  }
458
+ if ($reply != NULL && $this->validEmail($reply))
 
459
  $mail->From = $reply;
460
+ else
461
  $mail->From = $admin_options['default_from_email'];
462
+ $mail->FromName = $from_name;
463
+ $mail->Subject = (!empty($form->form_email_subject)) ? $form->form_email_subject : $admin_options['default_form_subject'];
464
+ if ($fixed_subject != NULL) $mail->Subject = $fixed_subject;
465
+ $mail->AltBody = __("To view the message, please use an HTML compatible email viewer.", 'custom-contact-forms');
466
+ $mail->CharSet = 'utf-8';
467
  $mail->MsgHTML(stripslashes($body));
468
  $mail->Send();
469
+ } if (!empty($form->form_thank_you_page)) {
470
+ ccf_utils::redirect($form->form_thank_you_page);
471
+ }
472
  $this->current_form = $form->id;
473
  add_action('wp_footer', array(&$this, 'insertFormSuccessCode'), 1);
474
  }
476
  }
477
  }
478
 
479
+ function getCaptchaCode($field_object, $form_id) {
480
  $admin_options = parent::getAdminOptions();
481
  $code_type = ($admin_options['code_type'] == 'XHTML') ? ' /' : '';
482
+ if (empty($field_object->field_instructions)) {
483
+ $instructions = '';
484
+ $tooltip_class = '';
485
+ } else {
486
+ $instructions = 'title="'.$field_object->field_instructions.'"';
487
+ $tooltip_class = 'ccf-tooltip-field';
488
+ }
489
  $out = '<img width="96" height="24" alt="' . __('Captcha image for Custom Contact Forms plugin. You must type the numbers shown in the image', 'custom-contact-forms') . '" id="captcha-image" src="' . get_bloginfo('wpurl') . '/wp-content/plugins/custom-contact-forms/image.php?fid='.$form_id.'"'.$code_type.'>
490
+ <div><label for="captcha'.$form_id.'">* '.$field_object->field_label.'</label> <input class="'.$field_object->field_class.' '.$tooltip_class.'" type="text" '.$instructions.' name="captcha" id="captcha'.$form_id.'" maxlength="20"'.$code_type.'></div>';
491
  return $out;
492
  }
493
 
494
+ function userCanViewForm($form_object) {
495
+ if (is_user_logged_in()) {
496
+ global $current_user;
497
+ $user_roles = $current_user->roles;
498
+ $user_role = array_shift($user_roles);
499
+ } else
500
+ $user_role = 'Non-Registered User';
501
+ $form_access_array = parent::getFormAccessArray($form_object->form_access);
502
+ return parent::formHasRole($form_access_array, $user_role);
503
+ }
504
+
505
+ function getStatesCode($field_object, $form_id) {
506
+ ccf_utils::load_module('extra_fields/states_field.php');
507
+ $req = ($field_object->field_required == 1) ? '* ' : '';
508
+ $states_field = new ccf_states_field($field_object->field_class, $form_id, $field_object->field_value, $field_object->field_instructions);
509
+ return "\n".'<label class="select" for="'.ccf_utils::decodeOption($field_object->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field_object->field_label, 1, 1).'</label>'.$states_field->getCode();
510
+ }
511
+
512
+ function getCountriesCode($field_object, $form_id) {
513
+ ccf_utils::load_module('extra_fields/countries_field.php');
514
+ $req = ($field_object->field_required == 1) ? '* ' : '';
515
+ $countries_field = new ccf_countries_field($field_object->field_class, $form_id, $field_object->field_value, $field_object->field_instructions);
516
+ return '<label class="select" for="'.ccf_utils::decodeOption($field_object->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field_object->field_label, 1, 1).'</label>' . "\n" . $countries_field->getCode();
517
+ }
518
+
519
  function getDestinationEmailArray($str) {
520
  $str = str_replace(',', ';', $str);
521
  $email_array = explode(';', $str);
custom-contact-forms-static.php → custom-contact-forms-utils.php RENAMED
@@ -4,14 +4,10 @@
4
  By Taylor Lovett - http://www.taylorlovett.com
5
  Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
  */
7
- if (!class_exists('CustomContactFormsStatic')) {
8
- class CustomContactFormsStatic {
9
- function encodeOption($option) {
10
- return htmlspecialchars(stripslashes($option), ENT_QUOTES);
11
- }
12
-
13
- function startSession() {
14
- if (!session_id()) session_start();
15
  }
16
 
17
  function redirect($location) {
@@ -21,6 +17,21 @@ if (!class_exists('CustomContactFormsStatic')) {
21
  }
22
  }
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  function getWPTablePrefix() {
25
  global $wpdb;
26
  return $wpdb->prefix;
@@ -29,9 +40,9 @@ if (!class_exists('CustomContactFormsStatic')) {
29
  function encodeOptionArray($option_array) {
30
  foreach ($option_array as $option) {
31
  if (is_array($option))
32
- $option = CustomContactFormsStatic::encodeOptionArray($option);
33
  else
34
- $option = CustomContactFormsStatic::encodeOption($option);
35
  }
36
  return $option_array;
37
  }
@@ -42,22 +53,28 @@ if (!class_exists('CustomContactFormsStatic')) {
42
  return $option;
43
  }
44
 
45
- function definePluginConstants() {
46
- $prefix = CustomContactFormsStatic::getWPTablePrefix();
 
47
  define('CCF_FORMS_TABLE', $prefix . 'customcontactforms_forms');
48
  define('CCF_FIELDS_TABLE', $prefix . 'customcontactforms_fields');
49
  define('CCF_STYLES_TABLE', $prefix . 'customcontactforms_styles');
50
  define('CCF_USER_DATA_TABLE', $prefix . 'customcontactforms_user_data');
51
  define('CCF_FIELD_OPTIONS_TABLE', $prefix . 'customcontactforms_field_options');
52
  define('CCF_BASE_PATH', ABSPATH . 'wp-content/plugins/custom-contact-forms/');
 
53
  $GLOBALS['ccf_tables_array'] = array(CCF_FORMS_TABLE, CCF_FIELDS_TABLE, CCF_STYLES_TABLE, CCF_USER_DATA_TABLE, CCF_FIELD_OPTIONS_TABLE);
54
  $GLOBALS['ccf_fixed_fields'] = array('customcontactforms_submit' => '',
55
  'fid' => '',
56
- 'fixedEmail' => __('Use this field if you want the plugin to throw an error on fake emails.', 'custom-contact-forms'),
 
 
57
  'form_page' => '',
58
- 'captcha' => __('This field requires users to type numbers in an image preventing spam.', 'custom-contact-forms'),
59
  'ishuman' => __("This field requires users to check a box to prove they aren't a spam bot.", 'custom-contact-forms'),
60
- 'resetButton' => __('This field lets users reset all form fields to their initial values. This will be inserted next to the submit button.', 'custom-contact-forms')
 
 
61
  );
62
  }
63
  }
4
  By Taylor Lovett - http://www.taylorlovett.com
5
  Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
  */
7
+ if (!class_exists('ccf_utils')) {
8
+ class ccf_utils {
9
+ function ccf_utils() {
10
+ $this->defineConstants();
 
 
 
 
11
  }
12
 
13
  function redirect($location) {
17
  }
18
  }
19
 
20
+ function load_module($path, $required = true) {
21
+ if (empty($path)) return false;
22
+ if ($required) require_once('modules/' . $path);
23
+ else include_once('modules/' . $path);
24
+ return true;
25
+ }
26
+
27
+ function encodeOption($option) {
28
+ return htmlspecialchars(stripslashes($option), ENT_QUOTES);
29
+ }
30
+
31
+ function startSession() {
32
+ if (!@session_id()) @session_start();
33
+ }
34
+
35
  function getWPTablePrefix() {
36
  global $wpdb;
37
  return $wpdb->prefix;
40
  function encodeOptionArray($option_array) {
41
  foreach ($option_array as $option) {
42
  if (is_array($option))
43
+ $option = ccf_utils::encodeOptionArray($option);
44
  else
45
+ $option = ccf_utils::encodeOption($option);
46
  }
47
  return $option_array;
48
  }
53
  return $option;
54
  }
55
 
56
+ function defineConstants() {
57
+ $prefix = ccf_utils::getWPTablePrefix();
58
+ define('CCF_AJAX_URL', admin_url('admin-ajax.php'));
59
  define('CCF_FORMS_TABLE', $prefix . 'customcontactforms_forms');
60
  define('CCF_FIELDS_TABLE', $prefix . 'customcontactforms_fields');
61
  define('CCF_STYLES_TABLE', $prefix . 'customcontactforms_styles');
62
  define('CCF_USER_DATA_TABLE', $prefix . 'customcontactforms_user_data');
63
  define('CCF_FIELD_OPTIONS_TABLE', $prefix . 'customcontactforms_field_options');
64
  define('CCF_BASE_PATH', ABSPATH . 'wp-content/plugins/custom-contact-forms/');
65
+ define('CCF_DEAD_STATE_VALUE', 'ccf-dead-state');
66
  $GLOBALS['ccf_tables_array'] = array(CCF_FORMS_TABLE, CCF_FIELDS_TABLE, CCF_STYLES_TABLE, CCF_USER_DATA_TABLE, CCF_FIELD_OPTIONS_TABLE);
67
  $GLOBALS['ccf_fixed_fields'] = array('customcontactforms_submit' => '',
68
  'fid' => '',
69
+ 'fixedEmail' => __("Use this field if you want the plugin to throw an error on fake emails.", 'custom-contact-forms'),
70
+ 'fixedWebsite' => __("This field will throw an error on invalid website addresses.", 'custom-contact-forms'),
71
+ 'emailSubject' => __("This field lets users specify the subject of the email sent to you on submission.", 'custom-contact-forms'),
72
  'form_page' => '',
73
+ 'captcha' => __("This field requires users to type numbers in an image preventing spam.", 'custom-contact-forms'),
74
  'ishuman' => __("This field requires users to check a box to prove they aren't a spam bot.", 'custom-contact-forms'),
75
+ 'usaStates' => __("This is a dropdown field showing each state in the US. If you want a state initially selected, enter it in 'Initial Value.'", 'custom-contact-forms'),
76
+ 'allCountries' => __("This is a dropdown field showing countries. If you want a country initially selected, enter it in 'Initial Value.'", 'custom-contact-forms'),
77
+ 'resetButton' => __("This field lets users reset all form fields to their initial values. This will be inserted next to the submit button.", 'custom-contact-forms')
78
  );
79
  }
80
  }
custom-contact-forms.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, form submissions saved to database, captchas, tooltip popovers, unlimited fields/forms/form styles, import/export, use a custom thank you page or built-in popover with a custom success message set for each form.
6
- Version: 4.0.9.1
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
@@ -28,10 +28,10 @@
28
  along with this program. If not, see <http://www.gnu.org/licenses/>.
29
  */
30
  $old_error_settings = error_reporting();
31
- error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED);
32
- require_once('custom-contact-forms-static.php');
33
- CustomContactFormsStatic::definePluginConstants();
34
- require_once('modules/db/custom-contact-forms-db.php');
35
  if (!class_exists('CustomContactForms')) {
36
  class CustomContactForms extends CustomContactFormsDB {
37
  var $adminOptionsName = 'customContactFormsAdminOptions';
@@ -40,9 +40,8 @@ if (!class_exists('CustomContactForms')) {
40
  $admin_options = $this->getAdminOptions();
41
  $admin_options['show_install_popover'] = 1;
42
  update_option($this->getAdminOptionsName(), $admin_options);
43
- parent::createTables();
44
- parent::updateTables();
45
- parent::insertFixedFields();
46
  }
47
 
48
  function getAdminOptionsName() {
@@ -51,9 +50,10 @@ if (!class_exists('CustomContactForms')) {
51
 
52
  function getAdminOptions() {
53
  $admin_email = get_option('admin_email');
54
- $customcontactAdminOptions = array('show_widget_home' => 1, 'show_widget_pages' => 1, 'show_widget_singles' => 1, 'show_widget_categories' => 1, 'show_widget_archives' => 1, 'default_to_email' => $admin_email, 'default_from_email' => $admin_email, 'default_form_subject' => __('Someone Filled Out Your Contact Form!', 'custom-contact-forms'),
55
  'remember_field_values' => 0, 'author_link' => 1, 'enable_widget_tooltips' => 1, 'mail_function' => 'default', 'form_success_message_title' => __('Successful Form Submission', 'custom-contact-forms'), 'form_success_message' => __('Thank you for filling out our web form. We will get back to you ASAP.', 'custom-contact-forms'), 'enable_jquery' => 1, 'code_type' => 'XHTML',
56
- 'show_install_popover' => 0, 'email_form_submissions' => 1, 'admin_ajax' => 1, 'smtp_host' => '', 'smtp_encryption' => 'none', 'smtp_authentication' => 0, 'smtp_username' => '', 'smtp_password' => '', 'smtp_port' => ''); // default general settings
 
57
  $customcontactOptions = get_option($this->getAdminOptionsName());
58
  if (!empty($customcontactOptions)) {
59
  foreach ($customcontactOptions as $key => $option)
@@ -83,6 +83,8 @@ if (!is_admin()) { /* is front */
83
  add_action('init', array(&$custom_contact_front, 'frontInit'), 1);
84
  add_action('wp_print_scripts', array(&$custom_contact_front, 'insertFrontEndScripts'), 1);
85
  add_action('wp_print_styles', array(&$custom_contact_front, 'insertFrontEndStyles'), 1);
 
 
86
  add_filter('the_content', array(&$custom_contact_front, 'contentFilter'));
87
  } else { /* is admin */
88
  $GLOBALS['ccf_current_page'] = ($_GET['page']) ? $_GET['page'] : '';
@@ -92,27 +94,43 @@ if (!is_admin()) { /* is front */
92
  function CustomContactForms_ap() {
93
  global $custom_contact_admin;
94
  if (!isset($custom_contact_admin)) return;
95
- if (function_exists('add_options_page')) {
96
- add_options_page('Custom Contact Forms', 'Custom Contact Forms', 9, 'custom-contact-forms', array(&$custom_contact_admin, 'printAdminPage'));
 
 
 
97
  }
98
  }
99
  }
 
 
 
 
 
 
 
 
 
 
100
  add_action('init', array(&$custom_contact_admin, 'adminInit'), 1);
101
  if ($custom_contact_admin->isPluginAdminPage()) {
102
  add_action('admin_print_styles', array(&$custom_contact_admin, 'insertBackEndStyles'), 1);
103
  add_action('admin_print_scripts', array(&$custom_contact_admin, 'insertAdminScripts'), 1);
104
  add_action('admin_footer', array(&$custom_contact_admin, 'insertUsagePopover'));
105
  }
 
 
106
  add_filter('plugin_action_links', array(&$custom_contact_admin,'appendToActionLinks'), 10, 2);
107
  add_action('admin_menu', 'CustomContactForms_ap');
108
  }
109
 
110
  /* widget stuff */
111
- require_once('modules/widget/custom-contact-forms-widget.php');
112
  if (!function_exists('CCFWidgetInit')) {
113
  function CCFWidgetInit() {
114
  register_widget('CustomContactFormsWidget');
115
  }
116
  }
117
  add_action('widgets_init', 'CCFWidgetInit');
 
118
  ?>
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, form submissions saved to database, captchas, tooltip popovers, unlimited fields/forms/form styles, import/export, use a custom thank you page or built-in popover with a custom success message set for each form.
6
+ Version: 4.5.0
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
28
  along with this program. If not, see <http://www.gnu.org/licenses/>.
29
  */
30
  $old_error_settings = error_reporting();
31
+ //error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED);
32
+ require_once('custom-contact-forms-utils.php');
33
+ new ccf_utils();
34
+ ccf_utils::load_module('db/custom-contact-forms-db.php');
35
  if (!class_exists('CustomContactForms')) {
36
  class CustomContactForms extends CustomContactFormsDB {
37
  var $adminOptionsName = 'customContactFormsAdminOptions';
40
  $admin_options = $this->getAdminOptions();
41
  $admin_options['show_install_popover'] = 1;
42
  update_option($this->getAdminOptionsName(), $admin_options);
43
+ ccf_utils::load_module('db/custom-contact-forms-activate-db.php');
44
+ new CustomContactFormsActivateDB();
 
45
  }
46
 
47
  function getAdminOptionsName() {
50
 
51
  function getAdminOptions() {
52
  $admin_email = get_option('admin_email');
53
+ $customcontactAdminOptions = array('show_widget_home' => 1, 'show_widget_pages' => 1, 'show_widget_singles' => 1, 'show_widget_categories' => 1, 'show_widget_archives' => 1, 'default_to_email' => $admin_email, 'default_from_email' => $admin_email, 'default_from_name' => 'Custom Contact Forms', 'default_form_subject' => __('Someone Filled Out Your Contact Form!', 'custom-contact-forms'),
54
  'remember_field_values' => 0, 'author_link' => 1, 'enable_widget_tooltips' => 1, 'mail_function' => 'default', 'form_success_message_title' => __('Successful Form Submission', 'custom-contact-forms'), 'form_success_message' => __('Thank you for filling out our web form. We will get back to you ASAP.', 'custom-contact-forms'), 'enable_jquery' => 1, 'code_type' => 'XHTML',
55
+ 'show_install_popover' => 0, 'email_form_submissions' => 1, 'enable_dashboard_widget' => 1, 'admin_ajax' => 1, 'smtp_host' => '', 'smtp_encryption' => 'none', 'smtp_authentication' => 0, 'smtp_username' => '', 'smtp_password' => '', 'smtp_port' => '', 'default_form_error_header' => __('You filled out the form incorrectly.', 'custom-contact-forms'),
56
+ 'default_form_bad_permissions' => __("You don't have the proper permissions to view this form.", 'custom-contact-forms')); // default general settings
57
  $customcontactOptions = get_option($this->getAdminOptionsName());
58
  if (!empty($customcontactOptions)) {
59
  foreach ($customcontactOptions as $key => $option)
83
  add_action('init', array(&$custom_contact_front, 'frontInit'), 1);
84
  add_action('wp_print_scripts', array(&$custom_contact_front, 'insertFrontEndScripts'), 1);
85
  add_action('wp_print_styles', array(&$custom_contact_front, 'insertFrontEndStyles'), 1);
86
+ add_shortcode('customcontact', array(&$custom_contact_front, 'shortCodeToForm'));
87
+
88
  add_filter('the_content', array(&$custom_contact_front, 'contentFilter'));
89
  } else { /* is admin */
90
  $GLOBALS['ccf_current_page'] = ($_GET['page']) ? $_GET['page'] : '';
94
  function CustomContactForms_ap() {
95
  global $custom_contact_admin;
96
  if (!isset($custom_contact_admin)) return;
97
+ if (function_exists('add_menu_page')) {
98
+ add_menu_page(__('Custom Contact Forms', 'custom-contact-forms'), __('Custom Contact Forms', 'custom-contact-forms'), 'manage_options', 'custom-contact-forms', array(&$custom_contact_admin, 'printAdminPage'));
99
+ add_submenu_page('custom-contact-forms', __('Custom Contact Forms', 'custom-contact-forms'), __('Custom Contact Forms', 'custom-contact-forms'), 'manage_options', 'custom-contact-forms', array(&$custom_contact_admin, 'printAdminPage'));
100
+ add_submenu_page('custom-contact-forms', __('Saved Form Submissions', 'custom-contact-forms'), __('Saved Form Submissions', 'custom-contact-forms'), 'manage_options', 'ccf-saved-form-submissions', array(&$custom_contact_admin, 'printFormSubmissionsPage'));
101
+ add_submenu_page('custom-contact-forms', __('General Settings', 'custom-contact-forms'), __('General Settings', 'custom-contact-forms'), 'manage_options', 'ccf-settings', array(&$custom_contact_admin, 'printSettingsPage'));
102
  }
103
  }
104
  }
105
+ $admin_options = $custom_contact_admin->getAdminOptions();
106
+ if ($admin_options['enable_dashboard_widget'] == 1) {
107
+ ccf_utils::load_module('widget/custom-contact-forms-dashboard.php');
108
+ $ccf_dashboard = new CustomContactFormsDashboard();
109
+ if ($ccf_dashboard->isDashboardPage()) {
110
+ add_action('admin_print_styles', array(&$ccf_dashboard, 'insertDashboardStyles'), 1);
111
+ add_action('admin_print_scripts', array(&$ccf_dashboard, 'insertDashboardScripts'), 1);
112
+ }
113
+ add_action('wp_dashboard_setup', array(&$ccf_dashboard, 'install'));
114
+ }
115
  add_action('init', array(&$custom_contact_admin, 'adminInit'), 1);
116
  if ($custom_contact_admin->isPluginAdminPage()) {
117
  add_action('admin_print_styles', array(&$custom_contact_admin, 'insertBackEndStyles'), 1);
118
  add_action('admin_print_scripts', array(&$custom_contact_admin, 'insertAdminScripts'), 1);
119
  add_action('admin_footer', array(&$custom_contact_admin, 'insertUsagePopover'));
120
  }
121
+ add_action('wp_ajax_ccf-ajax', array(&$custom_contact_admin, 'handleAJAX'));
122
+ add_action('wp_ajax_nopriv_ccf-ajax', array(&$custom_contact_admin, 'handleAJAX'));
123
  add_filter('plugin_action_links', array(&$custom_contact_admin,'appendToActionLinks'), 10, 2);
124
  add_action('admin_menu', 'CustomContactForms_ap');
125
  }
126
 
127
  /* widget stuff */
128
+ ccf_utils::load_module('widget/custom-contact-forms-widget.php');
129
  if (!function_exists('CCFWidgetInit')) {
130
  function CCFWidgetInit() {
131
  register_widget('CustomContactFormsWidget');
132
  }
133
  }
134
  add_action('widgets_init', 'CCFWidgetInit');
135
+ error_reporting($old_error_settings);
136
  ?>
image.php CHANGED
@@ -5,8 +5,9 @@
5
  Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
  */
7
  error_reporting(0);
8
- header("Content-type: image/png");
9
- require_once('modules/images/custom-contact-forms-images.php');
 
10
  $image = new CustomContactFormsImages();
11
  $str = rand(10000, 99999);
12
  if (!session_id())
5
  Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
  */
7
  error_reporting(0);
8
+ //header("Content-type: image/png");
9
+ require_once('custom-contact-forms-utils.php');
10
+ ccf_utils::load_module('images/custom-contact-forms-images.php');
11
  $image = new CustomContactFormsImages();
12
  $str = rand(10000, 99999);
13
  if (!session_id())
images/admin-icon.png ADDED
Binary file
import/1295843925ccf-export-13-jan-2011--10-22-35.sql ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Custom Contact Forms Export File
2
+ ## It is recommended that you do not edit this file. The order of the
3
+ ## queries is important if you intend to use this file through the CCF
4
+ ## exporter. The query to update general settings MUST be the last query
5
+ ## in this file.
6
+
7
+ INSERT INTO `wp_customcontactforms_forms` (id, form_slug, form_title, form_action, form_method, form_fields, submit_button_text, custom_code, form_style, form_email, form_success_message, form_thank_you_page, form_success_title, form_access, form_email_subject, form_email_name) VALUES ('2', 'instant_offer', 'Instant Offer Form', '', 'Post', '1,3,5,', 'Submit', '', '0', 'charlotteforeclosures@gmail.com', 'Thanks for submitting the details about your house. Someone will be contacting you shortly. As stated we take your privacy serious and we will not spam you.', '', 'Great', '', '', '');
8
+
9
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('3', 'fixedEmail', 'Your Email', 'Text', '', '100', '0', 'Please enter your email address.', '', '0', '', '');
10
+
11
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('1', 'captcha', 'Type the numbers.', 'Text', '', '100', '0', 'Type the numbers displayed in the image above.', '', '0', '', '');
12
+
13
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('5', '1name', 'Full Name', 'Text', '', '50', '1', 'Required Information', '', '1', '', '');
14
+
15
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('6', 'email_address', 'Email Address', 'Text', '', '70', '1', 'Required Information', '', '1', '', '');
16
+
17
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('7', 'day_phone', 'Day Phone #: ', 'Text', '', '20', '1', 'Include Area Code', '', '1', '', '');
18
+
19
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('8', 'address', 'Property Address', 'Text', '', '75', '1', 'Required Information', '', '1', '', '');
20
+
21
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('4', 'resetButton', '', 'Reset', 'Reset Form', '0', '0', '', '', '0', '', '');
22
+
23
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('2', 'ishuman', 'Check if you are human.', 'Checkbox', '1', '0', '0', 'This helps us prevent spam.', '', '0', '', '');
24
+
25
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('9', 'city', 'City', 'Text', '', '30', '1', 'Required Information', '', '1', '', '');
26
+
27
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('11', 'state', 'State', 'Dropdown', '50', '0', '1', 'Choose your State', '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,', '1', '', '');
28
+
29
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('12', 'evening_phone', 'Evening #: ', 'Text', '', '20', '1', 'Include Area Code', '', '0', '', '');
30
+
31
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('13', 'time2call', 'When should we call you', 'Text', '', '0', '1', '', '', '0', '', '');
32
+
33
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('14', 'occupied', 'Is the property', 'Dropdown', '3', '0', '1', '', '50,52,51,', '1', '', '');
34
+
35
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('15', 'bedrooms', 'How many bedrooms', 'Text', '', '0', '1', '', '', '1', '', '');
36
+
37
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('16', 'bathrooms', 'How many bathrooms', 'Text', '', '0', '1', '', '', '1', '', '');
38
+
39
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('17', 'sq_ft', 'Approximate Square Feet', 'Text', '', '0', '1', '', '', '1', '', '');
40
+
41
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('18', 'year_built', 'Year built', 'Text', '', '0', '1', 'Just a guess', '', '1', '', '');
42
+
43
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('19', 'garage', 'Garage', 'Dropdown', '', '0', '1', '', '53,54,55,56,', '0', '', '');
44
+
45
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('20', 'property_condition', 'What condition is the property in', 'Dropdown', '', '0', '1', 'Tell us the Condition', '60,57,59,62,58,61,', '1', '', '');
46
+
47
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('21', 'repairs_needed', 'What repairs are needed', 'Textarea', '', '0', '1', '', '', '0', '', '');
48
+
49
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('22', 'carpet', 'Is there carpet', 'Dropdown', '', '0', '1', '', '64,63,', '0', '', '');
50
+
51
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('23', 'wood_floors', 'Is there wood flooring', 'Dropdown', '', '0', '1', '', '64,63,', '0', '', '');
52
+
53
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('24', 'tile_floor', 'What kind of tile flooring', 'Dropdown', '', '0', '1', '', '65,66,67,53,', '0', '', '');
54
+
55
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('25', 'dining_room', 'Is there a dining room', 'Dropdown', '', '0', '1', '', '64,63,', '0', '', '');
56
+
57
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('26', 'bonus_room', 'Is there a bonus room', 'Dropdown', '', '0', '1', '', '64,63,', '0', '', '');
58
+
59
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('27', 'fireplace', 'Do you have a fireplace', 'Dropdown', '', '0', '1', '', '64,63,', '0', '', '');
60
+
61
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('28', 'foundation', 'What type of foundation', 'Dropdown', '', '0', '1', '', '69,68,70,71,', '0', '', '');
62
+
63
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('29', 'deck', 'Do you have a deck', 'Dropdown', '', '0', '1', '', '64,72,73,', '0', '', '');
64
+
65
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('30', 'swimming_pool', 'Do you have a swimming pool', 'Dropdown', '', '0', '1', '', '64,63,', '0', '', '');
66
+
67
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('31', 'fence', 'What kind of fence do you have', 'Dropdown', '', '0', '1', '', '53,73,75,72,', '0', '', '');
68
+
69
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('32', 'type_of_house', 'What is the exterior of your house', 'Dropdown', '', '0', '1', '', '78,73,79,76,81,77,80,', '0', '', '');
70
+
71
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('33', 'central_air', 'What cool air system do you have', 'Dropdown', '', '0', '1', '', '53,87,88,', '0', '', '');
72
+
73
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('34', 'heating', 'What type of heat do you have', 'Dropdown', '', '0', '1', '', '85,82,83,53,86,84,', '0', '', '');
74
+
75
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('35', 'water_system', 'What type of water system do you have', 'Dropdown', '', '0', '1', '', '89,90,91,', '0', '', '');
76
+
77
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('36', 'why_selling', 'Why are you selling your house', 'Dropdown', '', '0', '1', 'Let us know why you are selling', '92,94,95,96,93,97,98,', '1', '', '');
78
+
79
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('37', 'house_value', 'How much do you think your house is worth', 'Text', '', '0', '1', 'Guesstimate', '', '0', '', '');
80
+
81
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('38', 'determine_value', 'How did you come up with your value', 'Dropdown', '', '0', '1', '', '99,102,100,101,', '0', '', '');
82
+
83
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('39', 'asking_price', 'How much do you want for your house', 'Text', '', '0', '1', '', '', '0', '', '');
84
+
85
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('40', '1st_mortgage', 'What is your 1st mortgage balance', 'Text', '', '0', '1', 'Guesstimate is ok', '', '0', '', '');
86
+
87
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('41', '1st_mortgage_pmt', '1st Mortgage Payment', 'Text', '', '0', '1', '', '', '0', '', '');
88
+
89
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('42', 'taxes_insurance', 'Does it include taxes and insurance', 'Dropdown', '', '0', '1', '', '64,63,', '0', '', '');
90
+
91
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('43', 'any_other_mortgages', 'Does the property have any other mortgages', 'Dropdown', '', '0', '1', '', '63,64,', '0', '', '');
92
+
93
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('44', 'combined_mortgage_bal', 'What is the total mortgage balance combined', 'Text', '', '0', '1', '', '', '0', '', '');
94
+
95
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('45', 'will_sell_for_owed', 'Will you sell your house for what you owe', 'Dropdown', '', '0', '1', '', '64,63,103,', '0', '', '');
96
+
97
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('46', 'bottom_line_price', 'What is the least you will take for your house', 'Text', '', '0', '1', '', '', '0', '', '');
98
+
99
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('47', 'lease_option', 'Would you lease option your house or owner finance', 'Dropdown', '', '0', '1', '', '64,63,103,', '0', '', '');
100
+
101
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('48', 'wait_for_equity', 'Do you need some or all cash at closing', 'Dropdown', '', '0', '1', '', '105,104,64,', '0', '', '');
102
+
103
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('49', 'doesnt_sell', 'What happens if your house doesn&#039\\;t sell', 'Text', '', '0', '1', '', '', '0', '', '');
104
+
105
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('50', 'investors', 'If your house doesn&#039\\;t fit something we are looking for, do you want us to run it by our investors', 'Dropdown', '', '0', '1', '', '64,63,', '0', '', '');
106
+
107
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('51', 'liens_judgments', 'Describe any liens and judgments your property may have', 'Text', '', '0', '1', '', '', '0', '', '');
108
+
109
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('52', 'mortgage_current', 'Are your mortgage payments current', 'Dropdown', '', '0', '1', '', '64,63,', '0', '', '');
110
+
111
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('53', 'payments_owed', 'How much in back payments do you owe', 'Text', '', '0', '1', '', '', '0', '', '');
112
+
113
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('54', 'payments_behind', 'How many payments behind are you', 'Text', '', '0', '1', '', '', '0', '', '');
114
+
115
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('55', 'foreclosure_notice', 'Has any lender sent you a foreclosure notice', 'Dropdown', '', '0', '1', '', '64,63,', '0', '', '');
116
+
117
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('56', 'sales_date', 'Has your lender set a sales date', 'Text', '', '0', '1', 'If your lender set a sales date when is it', '', '0', '', '');
118
+
119
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('57', 'listed_agent', 'Is your house listed with an agent', 'Text', '', '0', '1', 'If so when does the listing expire?', '64,63,', '0', '', '');
120
+
121
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('58', 'owner_of_property', 'Are you the owner of this property', 'Dropdown', '', '0', '1', '', '64,63,', '0', '', '');
122
+
123
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('59', 'bankruptcy', 'Are you under bankruptcy protection', 'Dropdown', '', '0', '1', '', '64,63,', '0', '', '');
124
+
125
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('60', 'hear_about', 'How did you find us', 'Dropdown', '', '0', '1', '', '102,108,107,80,106,109,', '0', '', '');
126
+
127
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('61', 'anything_else', 'Explain anything else you think we need to know', 'Textarea', '', '0', '1', '', '', '0', '', '');
128
+
129
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('62', 'email', 'Email Address', 'Text', '', '0', '1', '', '', '0', '', '');
130
+
131
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('63', 'zip_code', 'Zip Code', 'Text', '', '0', '1', '', '', '1', '', '');
132
+
133
+ INSERT INTO `wp_customcontactforms_fields` (id, field_slug, field_label, field_type, field_value, field_maxlength, user_field, field_instructions, field_options, field_required, field_class, field_error) VALUES ('64', 'expired', 'When does the listing expire', 'Text', '', '0', '1', '', '', '0', '', '');
134
+
135
+ INSERT INTO `wp_customcontactforms_user_data` (id, data_time, data_formid, data_formpage, data_value) VALUES ('1', '1294332983', '2', 'www.buyersofcharlotte.com/fast-response.htm', 's:5:"1name"\\;s:8:"cjuewkpa"\\;s:9:"day_phone"\\;s:14:"gKxUqpSrYMkXRE"\\;s:13:"evening_phone"\\;s:10:"yiKRLumIQD"\\;s:9:"time2call"\\;s:12:"NDiagHvfoOlp"\\;s:5:"email"\\;s:17:"copvbl@vikwqz.com"\\;s:7:"address"\\;s:15:"UmqJzTbTGYiannt"\\;s:4:"city"\\;s:11:"UTIGqvyiUna"\\;s:17:"owner_of_property"\\;s:3:"yes"\\;s:8:"occupied"\\;s:6:"rented"\\;s:8:"bedrooms"\\;s:15:"fzneqCzzpOnZZsM"\\;s:9:"bathrooms"\\;s:13:"AoHAQmNhTkaID"\\;s:5:"sq_ft"\\;s:10:"zvuzFIwauu"\\;s:10:"year_built"\\;s:14:"ZxxVcxNKckqsmr"\\;s:6:"garage"\\;s:4:"1car"\\;s:18:"property_condition"\\;s:4:"poor"\\;s:6:"carpet"\\;s:3:"yes"\\;s:10:"tile_floor"\\;s:7:"ceramic"\\;s:10:"bonus_room"\\;s:3:"yes"\\;s:11:"dining_room"\\;s:3:"yes"\\;s:9:"fireplace"\\;s:3:"yes"\\;s:10:"foundation"\\;s:17:"finished basement"\\;s:4:"deck"\\;s:4:"wood"\\;s:13:"swimming_pool"\\;s:2:"no"\\;s:11:"central_air"\\;s:11:"central air"\\;s:7:"heating"\\;s:7:"furnace"\\;s:12:"water_system"\\;s:11:"septic tank"\\;s:11:"why_selling"\\;s:8:"job lost"\\;s:11:"house_value"\\;s:10:"IBDmJLmuVb"\\;s:15:"determine_value"\\;s:9:"appraiser"\\;s:12:"asking_price"\\;s:9:"xZmkTNXCm"\\;s:12:"1st_mortgage"\\;s:15:"GZDejxcteXTDRCh"\\;s:19:"any_other_mortgages"\\;s:2:"no"\\;s:21:"combined_mortgage_bal"\\;s:10:"nkjHcvJyNy"\\;s:18:"will_sell_for_owed"\\;s:3:"yes"\\;s:17:"bottom_line_price"\\;s:19:"dTwiDrcsXgKwRNPHiqk"\\;s:12:"lease_option"\\;s:3:"yes"\\;s:15:"wait_for_equity"\\;s:4:"some"\\;s:11:"doesnt_sell"\\;s:17:"aqSwijOTsoHibHxGb"\\;s:9:"investors"\\;s:3:"yes"\\;s:13:"payments_owed"\\;s:9:"BKYAcsEmB"\\;s:15:"payments_behind"\\;s:15:"nIcyrAUdcUJJLvW"\\;s:18:"foreclosure_notice"\\;s:3:"yes"\\;s:10:"sales_date"\\;s:19:"nZWMNTyOaiDbBpoAleR"\\;s:12:"listed_agent"\\;s:18:"FPObsbtJAMAwZOAInE"\\;s:7:"expired"\\;s:15:"jQHONXhbXAoPYLU"\\;s:10:"bankruptcy"\\;s:2:"no"\\;s:10:"hear_about"\\;s:5:"other"\\;');
136
+
137
+ INSERT INTO `wp_customcontactforms_user_data` (id, data_time, data_formid, data_formpage, data_value) VALUES ('2', '1294333112', '2', 'www.buyersofcharlotte.com/fast-response.htm', 's:5:"1name"\\;s:3:"daf"\\;s:9:"day_phone"\\;s:10:"7049536365"\\;s:13:"evening_phone"\\;s:10:"7049536365"\\;s:9:"time2call"\\;s:0:""\\;s:5:"email"\\;s:31:"charlotteforeclosures@gmail.com"\\;s:7:"address"\\;s:33:"5009 Beatties Ford Rd Ste 107-299"\\;s:4:"city"\\;s:9:"Charlotte"\\;s:5:"state"\\;s:2:"nc"\\;s:8:"zip_code"\\;s:5:"28216"\\;s:17:"owner_of_property"\\;s:2:"no"\\;s:8:"occupied"\\;s:13:"owneroccupied"\\;s:8:"bedrooms"\\;s:1:"3"\\;s:9:"bathrooms"\\;s:1:"2"\\;s:5:"sq_ft"\\;s:4:"1550"\\;s:10:"year_built"\\;s:4:"2004"\\;s:6:"garage"\\;s:4:"none"\\;s:18:"property_condition"\\;s:2:"ok"\\;s:14:"repairs_needed"\\;s:0:""\\;s:11:"wood_floors"\\;s:2:"no"\\;s:6:"carpet"\\;s:2:"no"\\;s:10:"tile_floor"\\;s:8:"vinyl sq"\\;s:10:"bonus_room"\\;s:2:"no"\\;s:11:"dining_room"\\;s:2:"no"\\;s:9:"fireplace"\\;s:2:"no"\\;s:10:"foundation"\\;s:4:"slab"\\;s:4:"deck"\\;s:2:"no"\\;s:13:"swimming_pool"\\;s:2:"no"\\;s:5:"fence"\\;s:4:"none"\\;s:13:"type_of_house"\\;s:5:"block"\\;s:11:"central_air"\\;s:4:"none"\\;s:7:"heating"\\;s:14:"baseboard heat"\\;s:12:"water_system"\\;s:4:"city"\\;s:11:"why_selling"\\;s:6:"moving"\\;s:11:"house_value"\\;s:0:""\\;s:15:"determine_value"\\;s:5:"guess"\\;s:12:"asking_price"\\;s:0:""\\;s:12:"1st_mortgage"\\;s:0:""\\;s:16:"1st_mortgage_pmt"\\;s:0:""\\;s:15:"taxes_insurance"\\;s:2:"no"\\;s:19:"any_other_mortgages"\\;s:3:"yes"\\;s:21:"combined_mortgage_bal"\\;s:0:""\\;s:18:"will_sell_for_owed"\\;s:2:"no"\\;s:17:"bottom_line_price"\\;s:0:""\\;s:12:"lease_option"\\;s:2:"no"\\;s:15:"wait_for_equity"\\;s:3:"all"\\;s:11:"doesnt_sell"\\;s:0:""\\;s:9:"investors"\\;s:2:"no"\\;s:15:"liens_judgments"\\;s:0:""\\;s:16:"mortgage_current"\\;s:2:"no"\\;s:13:"payments_owed"\\;s:0:""\\;s:15:"payments_behind"\\;s:0:""\\;s:18:"foreclosure_notice"\\;s:2:"no"\\;s:10:"sales_date"\\;s:0:""\\;s:12:"listed_agent"\\;s:0:""\\;s:7:"expired"\\;s:0:""\\;s:10:"bankruptcy"\\;s:2:"no"\\;s:10:"hear_about"\\;s:5:"agent"\\;s:13:"anything_else"\\;s:0:""\\;');
138
+
139
+ INSERT INTO `wp_customcontactforms_user_data` (id, data_time, data_formid, data_formpage, data_value) VALUES ('3', '1294333112', '2', 'www.buyersofcharlotte.com/fast-response.htm', 's:5:"1name"\\;s:3:"daf"\\;s:9:"day_phone"\\;s:10:"7049536365"\\;s:13:"evening_phone"\\;s:10:"7049536365"\\;s:9:"time2call"\\;s:0:""\\;s:5:"email"\\;s:31:"charlotteforeclosures@gmail.com"\\;s:7:"address"\\;s:33:"5009 Beatties Ford Rd Ste 107-299"\\;s:4:"city"\\;s:9:"Charlotte"\\;s:5:"state"\\;s:2:"nc"\\;s:8:"zip_code"\\;s:5:"28216"\\;s:17:"owner_of_property"\\;s:2:"no"\\;s:8:"occupied"\\;s:13:"owneroccupied"\\;s:8:"bedrooms"\\;s:1:"3"\\;s:9:"bathrooms"\\;s:1:"2"\\;s:5:"sq_ft"\\;s:4:"1550"\\;s:10:"year_built"\\;s:4:"2004"\\;s:6:"garage"\\;s:4:"none"\\;s:18:"property_condition"\\;s:2:"ok"\\;s:14:"repairs_needed"\\;s:0:""\\;s:11:"wood_floors"\\;s:2:"no"\\;s:6:"carpet"\\;s:2:"no"\\;s:10:"tile_floor"\\;s:8:"vinyl sq"\\;s:10:"bonus_room"\\;s:2:"no"\\;s:11:"dining_room"\\;s:2:"no"\\;s:9:"fireplace"\\;s:2:"no"\\;s:10:"foundation"\\;s:4:"slab"\\;s:4:"deck"\\;s:2:"no"\\;s:13:"swimming_pool"\\;s:2:"no"\\;s:5:"fence"\\;s:4:"none"\\;s:13:"type_of_house"\\;s:5:"block"\\;s:11:"central_air"\\;s:4:"none"\\;s:7:"heating"\\;s:14:"baseboard heat"\\;s:12:"water_system"\\;s:4:"city"\\;s:11:"why_selling"\\;s:6:"moving"\\;s:11:"house_value"\\;s:0:""\\;s:15:"determine_value"\\;s:5:"guess"\\;s:12:"asking_price"\\;s:0:""\\;s:12:"1st_mortgage"\\;s:0:""\\;s:16:"1st_mortgage_pmt"\\;s:0:""\\;s:15:"taxes_insurance"\\;s:2:"no"\\;s:19:"any_other_mortgages"\\;s:3:"yes"\\;s:21:"combined_mortgage_bal"\\;s:0:""\\;s:18:"will_sell_for_owed"\\;s:2:"no"\\;s:17:"bottom_line_price"\\;s:0:""\\;s:12:"lease_option"\\;s:2:"no"\\;s:15:"wait_for_equity"\\;s:3:"all"\\;s:11:"doesnt_sell"\\;s:0:""\\;s:9:"investors"\\;s:2:"no"\\;s:15:"liens_judgments"\\;s:0:""\\;s:16:"mortgage_current"\\;s:2:"no"\\;s:13:"payments_owed"\\;s:0:""\\;s:15:"payments_behind"\\;s:0:""\\;s:18:"foreclosure_notice"\\;s:2:"no"\\;s:10:"sales_date"\\;s:0:""\\;s:12:"listed_agent"\\;s:0:""\\;s:7:"expired"\\;s:0:""\\;s:10:"bankruptcy"\\;s:2:"no"\\;s:10:"hear_about"\\;s:5:"agent"\\;s:13:"anything_else"\\;s:0:""\\;');
140
+
141
+ INSERT INTO `wp_customcontactforms_user_data` (id, data_time, data_formid, data_formpage, data_value) VALUES ('4', '1294333291', '2', 'www.buyersofcharlotte.com/fast-response.htm', 's:5:"1name"\\;s:3:"daf"\\;s:9:"day_phone"\\;s:10:"7049536365"\\;s:13:"evening_phone"\\;s:10:"7049536365"\\;s:9:"time2call"\\;s:0:""\\;s:5:"email"\\;s:31:"charlotteforeclosures@gmail.com"\\;s:7:"address"\\;s:33:"5009 Beatties Ford Rd Ste 107-299"\\;s:4:"city"\\;s:9:"Charlotte"\\;s:5:"state"\\;s:2:"nc"\\;s:8:"zip_code"\\;s:5:"28216"\\;s:17:"owner_of_property"\\;s:2:"no"\\;s:8:"occupied"\\;s:13:"owneroccupied"\\;s:8:"bedrooms"\\;s:1:"3"\\;s:9:"bathrooms"\\;s:1:"2"\\;s:5:"sq_ft"\\;s:4:"1550"\\;s:10:"year_built"\\;s:4:"2004"\\;s:6:"garage"\\;s:4:"none"\\;s:18:"property_condition"\\;s:2:"ok"\\;s:14:"repairs_needed"\\;s:0:""\\;s:11:"wood_floors"\\;s:2:"no"\\;s:6:"carpet"\\;s:2:"no"\\;s:10:"tile_floor"\\;s:8:"vinyl sq"\\;s:10:"bonus_room"\\;s:2:"no"\\;s:11:"dining_room"\\;s:2:"no"\\;s:9:"fireplace"\\;s:2:"no"\\;s:10:"foundation"\\;s:4:"slab"\\;s:4:"deck"\\;s:2:"no"\\;s:13:"swimming_pool"\\;s:2:"no"\\;s:5:"fence"\\;s:4:"none"\\;s:13:"type_of_house"\\;s:5:"block"\\;s:11:"central_air"\\;s:4:"none"\\;s:7:"heating"\\;s:14:"baseboard heat"\\;s:12:"water_system"\\;s:4:"city"\\;s:11:"why_selling"\\;s:6:"moving"\\;s:11:"house_value"\\;s:0:""\\;s:15:"determine_value"\\;s:5:"guess"\\;s:12:"asking_price"\\;s:0:""\\;s:12:"1st_mortgage"\\;s:0:""\\;s:16:"1st_mortgage_pmt"\\;s:0:""\\;s:15:"taxes_insurance"\\;s:2:"no"\\;s:19:"any_other_mortgages"\\;s:3:"yes"\\;s:21:"combined_mortgage_bal"\\;s:0:""\\;s:18:"will_sell_for_owed"\\;s:2:"no"\\;s:17:"bottom_line_price"\\;s:0:""\\;s:12:"lease_option"\\;s:2:"no"\\;s:15:"wait_for_equity"\\;s:3:"all"\\;s:11:"doesnt_sell"\\;s:0:""\\;s:9:"investors"\\;s:2:"no"\\;s:15:"liens_judgments"\\;s:0:""\\;s:16:"mortgage_current"\\;s:2:"no"\\;s:13:"payments_owed"\\;s:0:""\\;s:15:"payments_behind"\\;s:0:""\\;s:18:"foreclosure_notice"\\;s:2:"no"\\;s:10:"sales_date"\\;s:0:""\\;s:12:"listed_agent"\\;s:0:""\\;s:7:"expired"\\;s:0:""\\;s:10:"bankruptcy"\\;s:2:"no"\\;s:10:"hear_about"\\;s:5:"agent"\\;s:13:"anything_else"\\;s:0:""\\;');
142
+
143
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('2', 'alaska', 'Alaska', 'alaska', '0');
144
+
145
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('1', 'alabama', 'Alabama', 'Alabama', '0');
146
+
147
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('3', 'arizona', 'Arizona', 'arizona', '0');
148
+
149
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('4', 'california', 'California', 'california', '0');
150
+
151
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('5', 'colorado', 'Colorado', 'colorado', '0');
152
+
153
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('6', 'connecticut', 'Connecticut', 'connecticut', '0');
154
+
155
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('7', 'delaware', 'Delaware', 'delaware', '0');
156
+
157
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('8', 'district_of_columbia', 'District of Columbia', 'dc', '0');
158
+
159
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('9', 'florida', 'Florida', 'florida', '0');
160
+
161
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('10', 'georgia', 'Georgia', 'georgia', '0');
162
+
163
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('11', 'hawaii', 'Hawaii', 'hawaii', '0');
164
+
165
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('12', 'idaho', 'Idaho', 'idaho', '0');
166
+
167
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('13', 'illinois', 'Illinois', 'illinois', '0');
168
+
169
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('14', 'indiana', 'Indiana', 'indiana', '0');
170
+
171
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('15', 'iowa', 'Iowa', 'iowa', '0');
172
+
173
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('16', 'kansas', 'Kansas', 'kansas', '0');
174
+
175
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('17', 'kentucky', 'Kentucky', 'kentucky', '0');
176
+
177
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('18', 'louisiana', 'Louisiana', 'la', '0');
178
+
179
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('19', 'maine', 'Maine', 'maine', '0');
180
+
181
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('20', 'maryland', 'Maryland', 'md', '0');
182
+
183
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('21', 'massachusetts', 'Massachusetts', 'ma', '0');
184
+
185
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('22', 'michigan', 'Michigan', 'mi', '0');
186
+
187
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('23', 'minnesota', 'Minnesota', 'mn', '0');
188
+
189
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('24', 'mississippi', 'Mississippi', 'ms', '0');
190
+
191
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('25', 'missouri', 'Missouri', 'mo', '0');
192
+
193
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('26', 'montana', 'Montana', 'mt', '0');
194
+
195
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('27', 'nebraska', 'Nebraska', 'ne', '0');
196
+
197
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('28', 'nevada', 'Nevada', 'nv', '0');
198
+
199
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('29', 'new_hampshire', 'New Hampshire', 'nh', '0');
200
+
201
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('30', 'new_jersey', 'New Jersey', 'nj', '0');
202
+
203
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('31', 'new_mexico', 'New Mexico', 'nm', '0');
204
+
205
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('32', 'new_york', 'New York', 'ny', '0');
206
+
207
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('33', 'north_carolina', 'North Carolina', 'nc', '0');
208
+
209
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('34', 'north_dakota', 'North Dakota', 'nd', '0');
210
+
211
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('35', 'ohio', 'Ohio', 'oh', '0');
212
+
213
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('36', 'oklahoma', 'Oklahoma', 'ok', '0');
214
+
215
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('37', 'pennsylvania', 'Pennsylvania', 'pn', '0');
216
+
217
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('38', 'rhode_island', 'Rhode Islande', 'ri', '0');
218
+
219
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('39', 'south_carolina', 'South Carolina', 'sc', '0');
220
+
221
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('40', 'south_dakota', 'South Dakota', 'sd', '0');
222
+
223
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('41', 'tennessee', 'Tennessee', 'tn', '0');
224
+
225
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('42', 'texas', 'Texas', 'tx', '0');
226
+
227
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('43', 'utah', 'Utah', 'ut', '0');
228
+
229
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('44', 'vermont', 'Vermont', 'vt', '0');
230
+
231
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('45', 'virginia', 'Virginia', 'va', '0');
232
+
233
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('46', 'washington', 'Washington', 'wa', '0');
234
+
235
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('47', 'west_virginia', 'West Virginia', 'wv', '0');
236
+
237
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('48', 'wisconsin', 'Wisconsin', 'wi', '0');
238
+
239
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('49', 'wyoming', 'Wyoming', 'wy', '0');
240
+
241
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('50', 'owner_occupied', 'Owner Occupied', 'owneroccupied', '0');
242
+
243
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('51', 'vacant', 'Vacant', 'vacant', '0');
244
+
245
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('52', 'rented', 'Rented', 'rented', '0');
246
+
247
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('53', 'none', 'None', 'none', '0');
248
+
249
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('54', '1car', '1 Car', '1car', '0');
250
+
251
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('55', '2_car', '2 Car', '2car', '0');
252
+
253
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('56', '3_car', '3 Car +', '3_car+', '0');
254
+
255
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('57', 'good', 'Good', 'good', '0');
256
+
257
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('58', 'poor', 'Poor', 'poor', '0');
258
+
259
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('59', 'great', 'Great', 'great', '0');
260
+
261
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('60', 'ok', 'Ok', 'ok', '0');
262
+
263
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('61', 'demolition', 'Demolition', 'demo', '0');
264
+
265
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('62', 'needs_work', 'Needs Work', 'needs work', '0');
266
+
267
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('63', 'yes', 'Yes', 'yes', '0');
268
+
269
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('64', 'no', 'No', 'no', '0');
270
+
271
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('65', 'vinyl_sq', 'Vinyl Squares', 'vinyl sq', '0');
272
+
273
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('66', 'ceramic', 'Ceramic', 'ceramic', '0');
274
+
275
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('67', 'linoleum', 'Linoleum', 'linoleum', '0');
276
+
277
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('68', 'crawl_space', 'Crawl Space', 'crawl space', '0');
278
+
279
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('69', 'slab', 'Slab', 'slab', '0');
280
+
281
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('70', 'finished_basement', 'Finished Basement', 'finished basement', '0');
282
+
283
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('71', 'unfinished_basement', 'Unfinished Basement', 'unfinished basement', '0');
284
+
285
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('72', 'wood', 'Wood', 'wood', '0');
286
+
287
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('73', 'brick', 'Brick', 'brick', '0');
288
+
289
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('74', 'security', 'Security', 'security', '0');
290
+
291
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('75', 'metal', 'Metal', 'metal', '0');
292
+
293
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('76', 'stucco', 'Stucco', 'stucco', '0');
294
+
295
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('77', 'wood_siding', 'Wood Siding', 'wood siding', '0');
296
+
297
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('78', 'block', 'Block', 'block', '0');
298
+
299
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('79', 'aluminun', 'Aluminum Siding', 'aluminum siding', '0');
300
+
301
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('80', 'other', 'Other', 'other', '0');
302
+
303
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('81', 'vinyl_siding', 'Vinyl Siding', 'vinyl siding', '0');
304
+
305
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('82', 'central_heat', 'Central Heat', 'central heat', '0');
306
+
307
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('83', 'furnace', 'Furnace ', 'furnace', '0');
308
+
309
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('84', 'wood_stove', 'Wood Stove', 'wood stove', '0');
310
+
311
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('85', 'baseboard_heat', 'Baseboard Heat', 'baseboard heat', '0');
312
+
313
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('86', 'radiant', 'Radiant', 'radiant', '0');
314
+
315
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('87', 'central_air', 'Central Air', 'central air', '0');
316
+
317
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('88', 'window_unit', 'Window Unit', 'window unit', '0');
318
+
319
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('89', 'city', 'City', 'city', '0');
320
+
321
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('90', 'septic', 'Septic Tank', 'septic tank', '0');
322
+
323
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('91', 'both', 'Both', 'both', '0');
324
+
325
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('92', 'moving', 'Moving', 'moving', '0');
326
+
327
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('93', 'job_transfer', 'Job Transfer', 'job transfer', '0');
328
+
329
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('94', 'divorce', 'Divorce', 'divorce', '0');
330
+
331
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('95', 'foreclosure', 'Facing Foreclosure', 'foreclosure', '0');
332
+
333
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('96', 'job_lost', 'Job Lost', 'job lost', '0');
334
+
335
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('97', 'tired_landlord', 'Tired Landlord', 'tired landlord', '0');
336
+
337
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('98', 'upgrade', 'Upgrade', 'upgrade', '0');
338
+
339
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('99', 'guess', 'Guessed', 'guess', '0');
340
+
341
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('100', 'appraiser', 'Appraiser', 'appraiser', '0');
342
+
343
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('101', 'neighbor', 'Neighbor', 'neighbor', '0');
344
+
345
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('102', 'agent', 'Real Estate Agent', 'agent', '0');
346
+
347
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('103', 'maybe', 'Maybe', 'maybe', '0');
348
+
349
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('104', 'some', 'Some', 'some', '0');
350
+
351
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('105', 'all', 'All', 'all', '0');
352
+
353
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('106', 'search_engine', 'Search Engine', 'search engine', '0');
354
+
355
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('107', 'friend', 'Friend', 'friend', '0');
356
+
357
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('108', 'classifieds', 'Classified Ad', 'classifieds', '0');
358
+
359
+ INSERT INTO `wp_customcontactforms_field_options` (id, option_slug, option_label, option_value, option_dead) VALUES ('109', 'attorney', 'Attorney', 'attorney', '0');
360
+
361
+
362
+ UPDATE `wp_options` SET `option_value`='a:25:{s:16:"show_widget_home";i:1;s:17:"show_widget_pages";i:1;s:19:"show_widget_singles";i:1;s:22:"show_widget_categories";i:1;s:20:"show_widget_archives";i:1;s:16:"default_to_email";s:31:"charlotteforeclosures@gmail.com";s:18:"default_from_email";s:31:"charlotteforeclosures@gmail.com";s:20:"default_form_subject";s:37:"Someone Filled Out Your Contact Form!";s:21:"remember_field_values";i:0;s:11:"author_link";i:1;s:22:"enable_widget_tooltips";i:1;s:13:"mail_function";s:7:"default";s:26:"form_success_message_title";s:26:"Successful Form Submission";s:20:"form_success_message";s:69:"Thank you for filling out our web form. We will get back to you ASAP.";s:13:"enable_jquery";i:1;s:9:"code_type";s:5:"XHTML";s:20:"show_install_popover";i:0;s:22:"email_form_submissions";i:1;s:10:"admin_ajax";i:1;s:9:"smtp_host";s:0:"";s:15:"smtp_encryption";s:4:"none";s:19:"smtp_authentication";i:0;s:13:"smtp_username";s:0:"";s:13:"smtp_password";s:0:"";s:9:"smtp_port";s:0:"";}' WHERE `option_name`='customContactFormsAdminOptions';
js/custom-contact-forms-admin-ajax.js CHANGED
@@ -1,205 +1,252 @@
1
- jQuery.preloadImages(ccf_plugin_dir + "/images/wpspin_light.gif"); // preload loading image
2
- jQuery(document).ready(function() {
3
- jQuery(".delete-button").each(function(){
4
- var name = jQuery(this).attr('name');
5
- var value = jQuery(this).attr('value');
6
- var html = '<input class="delete-button" type="button" name="'+name+'" value="'+value+'" />';
7
- jQuery(this).after(html).remove(); // add new, then remove original input
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  });
9
- jQuery(".delete-button").live("click", function(event) {
10
- var object_id = jQuery(this).parents().find(".object-id").attr("value");
11
- var object_type = jQuery(this).parents().find(".object-type").attr("value");
12
- var parent_row = jQuery(this).parents("tr:eq(0)");
13
- var modal = fx.initModal();
14
- jQuery("<a>")
15
- .attr("href", "#")
16
- .addClass("modal-close-btn")
17
- .html("&times")
18
- .click(function(event) { fx.boxOut(event); })
19
- .appendTo(modal);
20
- jQuery("<p>")
21
- .html(delete_confirm + " " + object_type.replace("_", " ") + "?")
22
- .appendTo(modal);
23
- jQuery("<input>").attr({
24
- type: "button",
25
- value: click_to_confirm
26
- }).addClass("delete-button-confirm").appendTo(modal);
27
- var loading_img = jQuery("<img>")
28
- .attr("src", ccf_plugin_dir + '/images/wpspin_light.gif')
29
- .addClass("modal-wpspin")
30
- .appendTo(modal)
31
- .hide();
32
- //var option_pattern = RegExp('<option value="' + object_id + '">.*?<\/option>', "i");
33
- jQuery(".delete-button-confirm").click(function() {
34
- loading_img.show();
35
- jQuery.ajax({
36
- type: "POST",
37
- url: ccf_file,
38
- data: "ajax_action=delete&object_id=" + object_id + "&object_type=" + object_type,
39
- success: function(data) {
40
- if (object_type == "form" || object_type == "field" || object_type == "form_submission")
41
- parent_row.next().remove();
42
- if (object_type == "style") {
 
 
 
 
 
 
43
  /* delete occurences of this option within style dropdowns. */
44
- var style_inputs = jQuery(".form_style_input");
45
  style_inputs.each(function() {
46
- this_option = jQuery(this).find("option[value=" + object_id + "]");
47
  if (this_option.attr("selected") == "selected")
48
- jQuery(this).find("option[value=0]").attr("selected", "selected");
49
  this_option.remove();
50
  });
51
- } else if (object_type == "field" || object_type == "field_option") {
52
- /* delete occurences of this option within field and field option attach dropdowns. */
53
- var fields_options_input = jQuery("select[name=attach_object_id], select[name=dettach_object_id]");
 
 
54
  fields_options_input.each(function () {
55
- this_option = jQuery(this).find("option[value=" + object_id + "]");
 
 
 
 
 
 
 
56
  this_option.remove();
57
  });
 
 
 
 
 
 
 
 
58
  }
59
- parent_row.remove();
60
- },
61
- error: function() { modal.append(error); },
62
- complete: function() { modal.remove(); }
63
- });
64
- });
65
- });
66
- jQuery(".edit-button").each(function(){
67
- var name = jQuery(this).attr('name');
68
- var value = jQuery(this).attr('value');
69
- var html = '<input class="edit-button" type="button" name="'+name+'" value="'+value+'" />';
70
- jQuery(this).after(html).remove(); // add new, then remove original input
71
- });
72
- jQuery(".edit-button").live("click", function(event) {
73
- save_box = fx.initSaveBox("Saving");
74
- var object_id = jQuery(this).parents().find(".object-id").attr("value");
75
- var object_type = jQuery(this).parents().find(".object-type").attr("value");
76
- var values = "object_id=" + object_id + "&object_type=" + object_type + "&ajax_action=edit";
77
- var object_rows = jQuery(this).parents("tr:eq(0)");
78
- if (object_type == "form" || object_type == "field")
79
- object_rows = object_rows.add(object_rows.next());
80
- object_rows.find("input, select, textarea").each(function() {
81
- if (jQuery(this).attr("name").match(/\[/) && jQuery(this).attr("type") != "submit" && jQuery(this).attr("type") != "button") {
82
- key = jQuery(this).attr("name");;
83
- values = values + "&" + key + "=" + jQuery(this).attr("value");
84
  }
85
- });
86
- jQuery.ajax({
87
- type: "POST",
88
- url: ccf_file,
89
- data: values,
90
- //success: function(data) {
91
- //jQuery(".save-box").fadeOut().remove();
92
- //},
93
- error: function() { alert(error); },
94
- complete: function() { jQuery(".save-box").fadeOut().remove(); }
95
- });
96
  });
97
-
98
- jQuery(".attach-button").each(function(){
99
- var name = jQuery(this).attr('name');
100
- var value = jQuery(this).attr('value');
101
- var html = '<input class="attach-button" type="button" name="' + name + '" value="' + value + '" />';
102
- jQuery(this).after(html).remove(); // add new, then remove original input
 
 
 
103
  });
104
- jQuery(".attach-button").live("click", function() {
105
- var object_type = jQuery(this).parents().find(".object-type").attr("value");
106
- var attach_object_field = jQuery(this).parents().find("select[name=attach_object_id]:first");
107
  var object_id = attach_object_field.attr("class").split(' ')[0].replace(/[^0-9]*([0-9]*)/, "$1");
108
- var dettach_object_field = jQuery(this).parents().find("select[name=dettach_object_id]:first");
109
  var attach_object_id = attach_object_field.attr("value");
110
  var attach_object_slug = attach_object_field.find("option[value=" + attach_object_id + "]:eq(0)").first().text();
111
  pattern = new RegExp('<option value="' + attach_object_id + '">', "i");
112
- str = dettach_object_field.html();
113
  if (!str.match(pattern)) {
114
- var save_box = fx.initSaveBox(attaching);
115
- jQuery.ajax({
116
  type: "POST",
117
- url: ccf_file,
118
- data: "ajax_action=attach&attach_object_id=" + attach_object_id + "&attach_to=" + object_id + "&object_type=" + object_type,
119
  success: function(data) {
120
- //debug = fx.initDebugWindow();
121
- //jQuery("<div></div>").html(data).appendTo(debug);
122
- new_option = jQuery("<option></option>").attr("value", attach_object_id).text(attach_object_slug);
123
- dettach_object_field.append(new_option);
124
- dettach_object_field.find('option[value=-1]').remove();
125
 
126
  },
127
- error: function() { alert(error); },
128
- complete: function() { jQuery(".save-box").fadeOut().remove(); }
129
  });
130
  }
131
  });
132
 
133
- jQuery(".dettach-button").each(function(){
134
- var name = jQuery(this).attr('name');
135
- var value = jQuery(this).attr('value');
136
- var html = '<input class="dettach-button" type="button" name="' + name + '" value="' + value + '" />';
137
- jQuery(this).after(html).remove(); // add new, then remove original input
138
  });
139
- jQuery(".dettach-button").live("click", function() {
140
- var object_type = jQuery(this).parents().find(".object-type").attr("value");
141
- var dettach_object_field = jQuery(this).parents().find("select[name=dettach_object_id]:first");
142
- var object_id = dettach_object_field.attr("class").split(' ')[0].replace(/[^0-9]*([0-9]*)/, "$1");
143
- var dettach_object_id = dettach_object_field.attr("value");
144
- if (dettach_object_id != "-1") {
145
- var dettach_object_slug = dettach_object_field.find("option[value=" + dettach_object_id + "]:eq(0)").first().text();
146
- var save_box = fx.initSaveBox(dettaching);
147
- jQuery.ajax({
148
  type: "POST",
149
- url: ccf_file,
150
- data: "ajax_action=dettach&dettach_object_id=" + dettach_object_id + "&dettach_from=" + object_id + "&object_type=" + object_type,
151
  success: function(data) {
152
- //debug = fx.initDebugWindow();
153
- //jQuery("<div></div>").html(data).appendTo(debug);
154
- pattern = new RegExp('<option value="' + dettach_object_id + '">.*?<\/option>', "i");
155
- new_options = dettach_object_field.html().replace(pattern, '');
156
  if (!new_options.match(/<\/option>/)) new_options = '<option value="-1">Nothing Attached!</option>';
157
- dettach_object_field.html(new_options);
158
  },
159
- error: function() { alert(error); },
160
- complete: function() { jQuery(".save-box").fadeOut().remove(); }
 
 
 
 
161
  });
162
  }
163
  });
164
- /*
165
- jQuery(".create-button").each(function(){
166
- var name = jQuery(this).attr('name');
167
- var value = jQuery(this).attr('value');
168
- var html = '<input class="create-button" type="button" name="'+name+'" value="'+value+'" />';
169
- jQuery(this).after(html).remove(); // add new, then remove original input
170
- });
171
- jQuery(".create-button").live("click", function(event) {
172
- var icon = fx.getLoadingIcon().insertBefore(this);
173
- var object_type = jQuery(this).parents().find("input[name=object_type]").attr("value");
174
- if (object_type == "field_option") {
175
- var values = "ajax_action=create_field_option";
176
- var value_array = [];
177
- var new_row = jQuery('#edit-field-options tr:first').clone(true).addClass("new-object").hide().insertBefore('#edit-field-options tr:first');
178
- jQuery(this).parents("form:eq(0)").find("input").each(function() {
179
- if (jQuery(this).attr("name").match(/^option\[/)) {
180
- values = values + "&" + jQuery(this).attr("name") + "=" + jQuery(this).attr("value");
181
- key = jQuery(this).attr("name").replace(/^option\[(.*)\]$/, "$1");
182
- value_array[key] = jQuery(this).attr("value");
183
- jQuery(".new-object input[name=\"option[" + key + "]\"]").attr("value", value_array[key]);
184
- }
185
- });
186
- // Try to get first row of field options table to use its html as a framework for new row
187
- }
188
- //new_row = jQuery("#edit-field-options tr:first").html().appendTo("body").hide();
189
-
190
- // Create generic class of objects/functions to add delete/edit/insert capabilities on certain tables
191
- jQuery.ajax({
192
- type: "POST",
193
- url: ccf_file,
194
- data: values,
195
- success: function(data) {
196
-
197
- },
198
- error: function() {
199
- alert("An error has occured, please try again later.");
200
- }
201
- });
202
- new_row.fadeIn("slow").removeClass("new-object");
203
- jQuery(".ccf-loading-icon").remove();
204
- });*/
205
  });
1
+
2
+ function print_r(x, max, sep, l) {
3
+
4
+ l = l || 0;
5
+ max = max || 10;
6
+ sep = sep || ' ';
7
+
8
+ if (l > max) {
9
+ return "[WARNING: Too much recursion]\n";
10
+ }
11
+
12
+ var
13
+ i,
14
+ r = '',
15
+ t = typeof x,
16
+ tab = '';
17
+
18
+ if (x === null) {
19
+ r += "(null)\n";
20
+ } else if (t == 'object') {
21
+
22
+ l++;
23
+
24
+ for (i = 0; i < l; i++) {
25
+ tab += sep;
26
+ }
27
+
28
+ if (x && x.length) {
29
+ t = 'array';
30
+ }
31
+
32
+ r += '(' + t + ") :\n";
33
+
34
+ for (i in x) {
35
+ try {
36
+ r += tab + '<br />[' + i + '] : ' + print_r(x[i], max, sep, (l + 1));
37
+ } catch(e) {
38
+ return "[ERROR: " + e + "]\n";
39
+ }
40
+ }
41
+
42
+ } else {
43
+
44
+ if (t == 'string') {
45
+ if (x == '') {
46
+ x = '(empty)';
47
+ }
48
+ }
49
+
50
+ r += '(' + t + ') ' + x + "\n";
51
+
52
+ }
53
+
54
+ return r;
55
+
56
+ };
57
+
58
+ function getFormFieldValue(field_name, formData) {
59
+ for(var i = 0; i < formData.length; i++) {
60
+ if (formData[i].name == field_name) {
61
+ return formData[i].value;
62
+ }
63
+ }
64
+ return false;
65
+ };
66
+
67
+ /*function pageselectCallback(page_index, jq){
68
+ rows = $j('#form-submissions-hidden > tr')
69
+ items_per_page = 5;
70
+ max_elem = Math.min((page_index+1) * items_per_page, rows.length);
71
+ var new_content = '';
72
+ for(var i=page_index*items_per_page;i<max_elem;i++) {
73
+ if (rows.eq(i) != null) {
74
+ new_content += '<tr class="' + rows.eq(i).attr('class') + '">' + rows.eq(i).html() + '</tr>';
75
+ i += 1;
76
+ new_content += '<tr class="' + rows.eq(i).attr('class') + '">' + rows.eq(i).html() + '</tr>';
77
+ } else i += 1;
78
+ }
79
+ if (new_content != '' && new_content != null)
80
+ $j('#form-submissions-table tbody').empty().append(new_content);
81
+ $j('.submission-content').hide();
82
+ $j('.submission-content-expand-button').click(function() {
83
+ $j(this)
84
+ .parent()
85
+ .parent()
86
+ .parent()
87
+ .next()
88
+ .toggle();
89
  });
90
+ return false;
91
+ }
92
+
93
+ function initPagination() {
94
+ // Create content inside pagination element
95
+ var num_entries = $j('#form-submissions-hidden > tr').length;
96
+ $j("#form-submissions-pagination").pagination(num_entries, {
97
+ callback: pageselectCallback,
98
+ items_per_page: 5 // Show only one item per page
99
+ });
100
+ }*/
101
+
102
+ $j.preloadImages(ccfAjax.plugin_dir + "/images/wpspin_light.gif"); // preload loading image
103
+ $j(document).ready(function() {
104
+
105
+ //initPagination();
106
+ $j('.ccf-edit-ajax').attr("action", ccfAjax.url);
107
+
108
+ var loading_img = null;
109
+ var form_dom = null;
110
+ $j('.ccf-edit-ajax').ajaxForm({
111
+ data: { action: 'ccf-ajax', nonce: ccfLang.nonce },
112
+ beforeSubmit: function(formData, jqForm, options) {
113
+ var action_type = getFormFieldValue('object_bulk_action', formData);
114
+ //var bulk_apply_button = getFormFieldValue('object_bulk_action', formData);
115
+ var attach_button = getFormFieldValue('buttons', formData);
116
+ var detach_button = getFormFieldValue('object_bulk_action', formData);
117
+ if (action_type == 0) return false;
118
+ bulk_button = jqForm.find("input[name=object_bulk_apply]");
119
+ form_dom = jqForm;
120
+ loading_img = jqForm.find(".loading-img").fadeIn();
121
+ return true;
122
+ },
123
+ success : function(responseText) {
124
+ for (var i = 0; i < responseText.objects.length; i++) {
125
+ var this_object = responseText.objects[i];
126
+ if (responseText.object_bulk_action == 'delete') {
127
+
128
+ form_dom.find(".row-" + this_object.object_type + "-" + this_object.object_id).hide().remove();
129
+ if (this_object.object_type == "style") {
130
  /* delete occurences of this option within style dropdowns. */
131
+ var style_inputs = $j(".form_style_input");
132
  style_inputs.each(function() {
133
+ this_option = $j(this).find("option[value=" + this_object.object_id + "]");
134
  if (this_option.attr("selected") == "selected")
135
+ $j(this).find("option[value=0]").attr("selected", "selected");
136
  this_option.remove();
137
  });
138
+ } else if (this_object.object_type == "field" || this_object.object_type == "field_option") {
139
+ if (this_object.object_type == "field")
140
+ var fields_options_input = $j("select.detach-field");
141
+ else
142
+ var fields_options_input = $j("select.detach-field-option");
143
  fields_options_input.each(function () {
144
+ var this_obj = $j(this);
145
+ var this_option = this_obj.find("option[value=" + this_object.object_id + "]");
146
+ if (this_option.length >=1 && this_obj.find("option").length <= 1) {
147
+ $j("<option>")
148
+ .attr("value", "-1")
149
+ .text(ccfLang.nothing_attached)
150
+ .prependTo(this_obj);
151
+ }
152
  this_option.remove();
153
  });
154
+ if (this_object.object_type == "field")
155
+ fields_options_input = $j("select.attach-field option[value=" + this_object.object_id + "]");
156
+ else
157
+ fields_options_input = $j("select.attach-field-option option[value=" + this_object.object_id + "]");
158
+
159
+ fields_options_input.each(function () {
160
+ $j(this).remove();
161
+ });
162
  }
163
+ } else if (responseText.object_bulk_action == 'edit') {
164
+ /* TODO: update field and field option slug dropdowns */
165
+ if (responseText.objects[i].object_type == "field" || responseText.objects[i].object_type == "field_option") {
166
+
167
+ }
168
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
  }
170
+ },
171
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
172
+ debug = fx.initDebugWindow();
173
+ $j("<div></div>").html(textStatus + " " + errorThrown).appendTo(debug);
174
+ //alert(textStatus + " " + errorThrown);
175
+ },
176
+ complete: function() {
177
+ //j("test").html(data).appendTo(debug);
178
+ loading_img.fadeOut();
179
+ }
 
180
  });
181
+
182
+ //form_submissions = $j("#form-submissions-table tbody").clone();
183
+ //$j("#form-submissions-hidden").html(form_submissions.html());
184
+
185
+ $j("span.attach-lang").remove();
186
+ $j(".attach-check").each(function(){
187
+ var name = $j(this).attr('name');
188
+ var html = '<input class="attach-button" type="button" name="' + name + '" value="' + ccfLang.attach_button + '" />';
189
+ $j(this).after(html).remove(); // add new, then remove original input
190
  });
191
+ $j(".attach-button").live("click", function() {
192
+ var object_type = $j(this).parents().find(".object-type").attr("value");
193
+ var attach_object_field = $j(this).parents().find(".attach-object:first");
194
  var object_id = attach_object_field.attr("class").split(' ')[0].replace(/[^0-9]*([0-9]*)/, "$1");
195
+ var detach_object_field = $j(this).parents().find(".detach-object:first");
196
  var attach_object_id = attach_object_field.attr("value");
197
  var attach_object_slug = attach_object_field.find("option[value=" + attach_object_id + "]:eq(0)").first().text();
198
  pattern = new RegExp('<option value="' + attach_object_id + '">', "i");
199
+ str = detach_object_field.html();
200
  if (!str.match(pattern)) {
201
+ var save_box = fx.initSaveBox(ccfLang.attaching);
202
+ $j.ajax({
203
  type: "POST",
204
+ url: ccfAjax.url,
205
+ data: "nonce=" + ccfLang.nonce + "&action=ccf-ajax&object_attach=1&attach_object_id=" + attach_object_id + "&object_id=" + object_id + "&object_type=" + object_type,
206
  success: function(data) {
207
+ new_option = $j("<option></option>").attr("value", attach_object_id).text(attach_object_slug);
208
+ detach_object_field.append(new_option);
209
+ detach_object_field.find('option[value=-1]').remove();
 
 
210
 
211
  },
212
+ error: function() { alert(ccfLang.error); },
213
+ complete: function() { $j(".save-box").fadeOut().remove(); }
214
  });
215
  }
216
  });
217
 
218
+ $j("span.detach-lang").remove();
219
+ $j(".detach-check").each(function(){
220
+ var name = $j(this).attr('name');
221
+ var html = '<input class="detach-button" type="button" name="' + name + '" value="' + ccfLang.detach_button + '" />';
222
+ $j(this).after(html).remove(); // add new, then remove original input
223
  });
224
+ $j(".detach-button").live("click", function() {
225
+ var object_type = $j(this).parents().find(".object-type").attr("value");
226
+ var detach_object_field = $j(this).parents().find(".detach-object:first");
227
+ var object_id = detach_object_field.attr("class").split(' ')[0].replace(/[^0-9]*([0-9]*)/, "$1");
228
+ var detach_object_id = detach_object_field.attr("value");
229
+ if (detach_object_id != "-1") {
230
+ var detach_object_slug = detach_object_field.find("option[value=" + detach_object_id + "]:eq(0)").first().text();
231
+ var save_box = fx.initSaveBox(ccfLang.detaching);
232
+ $j.ajax({
233
  type: "POST",
234
+ url: ccfAjax.url,
235
+ data: "nonce=" + ccfLang.nonce + "&action=ccf-ajax&object_detach=1&detach_object_id=" + detach_object_id + "&object_id=" + object_id + "&object_type=" + object_type,
236
  success: function(data) {
237
+ pattern = new RegExp('<option value="' + detach_object_id + '">.*?<\/option>', "i");
238
+ new_options = detach_object_field.html().replace(pattern, '');
 
 
239
  if (!new_options.match(/<\/option>/)) new_options = '<option value="-1">Nothing Attached!</option>';
240
+ detach_object_field.html(new_options);
241
  },
242
+ error: function() { alert(ccfLang.error); },
243
+ /*beforeSubmit: function() {
244
+ debug = fx.initDebugWindow();
245
+ $j("<div></div>").html(textStatus + " " + errorThrown).appendTo(debug);
246
+ },*/
247
+ complete: function() { $j(".save-box").fadeOut().remove(); }
248
  });
249
  }
250
  });
251
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
252
  });
js/custom-contact-forms-admin-inc.js CHANGED
@@ -1,11 +1,13 @@
 
 
1
  function showCCFUsagePopover() {
2
- jQuery("#ccf-usage-popover").fadeIn('slow');
3
  }
4
 
5
- (function(jQuery) {
6
  var cache = [];
7
  // Arguments are image paths relative to the current page.
8
- jQuery.preloadImages = function() {
9
  var args_len = arguments.length;
10
  for (var i = args_len; i--;) {
11
  var cacheImage = document.createElement('img');
@@ -16,44 +18,34 @@ function showCCFUsagePopover() {
16
  })(jQuery)
17
 
18
  var fx = {
19
- "initModal" : function() {
20
- if (jQuery(".modal-window").length == 0) {
21
- return jQuery("<div>")
22
- .addClass("modal-window")
23
- .appendTo("body");
24
- } else {
25
- return jQuery(".modal-window");
26
- }
27
- },
28
-
29
  "initDebugWindow" : function() {
30
- if (jQuery(".debug-window").length == 0) {
31
- debug = jQuery("<div>").addClass("debug-window").appendTo("body");
32
  debug.click(function() { debug.remove(); });
33
  return debug;
34
  } else {
35
- return jQuery(".debug-window");
36
  }
37
  },
38
 
39
  "initSaveBox" : function(text) {
40
- if (jQuery(".save-box").length == 0) {
41
- box = jQuery("<div>").addClass("save-box").appendTo("body");
42
- jQuery("<a>")
43
  .attr("href", "#")
44
  .addClass("save-box-close-btn")
45
  .html("&times;")
46
- .click(function(event) { event.preventDefault(); jQuery(".save-box").fadeOut("slow"); })
47
  .appendTo(box);
48
- jQuery("<p>").html(text + ' <img src="' + ccf_plugin_dir + '/images/wpspin_light.gif" />').appendTo(".save-box");
49
  return box;
50
  } else {
51
- return jQuery(".save-box");
52
  }
53
  },
54
 
55
  "boxOut": function(event) {
56
  if (event != undefined) event.preventDefault();
57
- jQuery(".modal-window").fadeOut("slow", function() { jQuery(this).remove(); });
58
  }
59
  };
1
+ $j = jQuery.noConflict();
2
+
3
  function showCCFUsagePopover() {
4
+ $j("#ccf-usage-popover").fadeIn('slow');
5
  }
6
 
7
+ (function($j) {
8
  var cache = [];
9
  // Arguments are image paths relative to the current page.
10
+ $j.preloadImages = function() {
11
  var args_len = arguments.length;
12
  for (var i = args_len; i--;) {
13
  var cacheImage = document.createElement('img');
18
  })(jQuery)
19
 
20
  var fx = {
 
 
 
 
 
 
 
 
 
 
21
  "initDebugWindow" : function() {
22
+ if ($j(".debug-window").length == 0) {
23
+ debug = $j("<div>").addClass("debug-window").appendTo("body");
24
  debug.click(function() { debug.remove(); });
25
  return debug;
26
  } else {
27
+ return $j(".debug-window");
28
  }
29
  },
30
 
31
  "initSaveBox" : function(text) {
32
+ if ($j(".save-box").length == 0) {
33
+ box = $j("<div>").addClass("save-box").appendTo("body");
34
+ $j("<a>")
35
  .attr("href", "#")
36
  .addClass("save-box-close-btn")
37
  .html("&times;")
38
+ .click(function(event) { event.preventDefault(); $j(".save-box").fadeOut("slow"); })
39
  .appendTo(box);
40
+ $j("<p>").html(text + ' <img src="' + ccfAjax.plugin_dir + '/images/wpspin_light.gif" />').appendTo(".save-box");
41
  return box;
42
  } else {
43
+ return $j(".save-box");
44
  }
45
  },
46
 
47
  "boxOut": function(event) {
48
  if (event != undefined) event.preventDefault();
49
+ $j(".modal-window").fadeOut("slow", function() { $j(this).remove(); });
50
  }
51
  };
js/custom-contact-forms-admin.js CHANGED
@@ -1,9 +1,16 @@
1
- jQuery(document).ready(function(){
2
 
3
- jQuery('.form-extra-options').hide();
4
- jQuery('.form-options-expand').prepend('<input type="button" class="form-options-expand-link" value="' + more_options + '" />');
5
- jQuery('.form-options-expand-link').click(function() {
6
- jQuery(this)
 
 
 
 
 
 
 
7
  .parent()
8
  .parent()
9
  .parent()
@@ -11,12 +18,12 @@ jQuery(document).ready(function(){
11
  .find(".form-extra-options:first")
12
  .toggle();
13
  });
 
14
 
15
- jQuery('.submission-content').hide();
16
- jQuery('.submission-content-expand').prepend('<input type="button" class="submission-content-expand-button" value="' + expand + '" />');
17
- jQuery('.submission-content-expand-button').click(function() {
18
- jQuery(this)
19
- .parent()
20
  .parent()
21
  .parent()
22
  .parent()
@@ -24,10 +31,10 @@ jQuery(document).ready(function(){
24
  .toggle();
25
  });
26
 
27
- jQuery('.fixed-fields-extra-options').hide();
28
- jQuery('.fixed-fields-options-expand').prepend('<input type="button" class="fixed-fields-options-expand-link" value="' + more_options + '" />');
29
- jQuery('.fixed-fields-options-expand-link').click(function() {
30
- jQuery(this)
31
  .parent()
32
  .parent()
33
  .parent()
@@ -35,11 +42,11 @@ jQuery(document).ready(function(){
35
  .find(".fixed-fields-extra-options:first")
36
  .toggle();
37
  });
 
38
 
39
- jQuery('.fields-extra-options').hide();
40
- jQuery('.fields-options-expand').prepend('<input type="button" class="fields-options-expand-link" value="' + more_options + '" />');
41
- jQuery('.fields-options-expand-link').click(function() {
42
- jQuery(this)
43
  .parent()
44
  .parent()
45
  .parent()
@@ -47,14 +54,16 @@ jQuery(document).ready(function(){
47
  .find(".fields-extra-options:first")
48
  .toggle();
49
  });
50
- jQuery('.usage-popover-button').click(function() {
 
 
51
  showCCFUsagePopover();
52
  });
53
- jQuery("#ccf-usage-popover .close").click(function() {
54
- jQuery("#ccf-usage-popover").fadeOut();
55
  });
56
 
57
- jQuery("a[title].toollink").tooltip({
58
  position: "bottom left",
59
  offset: [-2, 10],
60
  effect: "fade",
1
+ $j(document).ready(function(){
2
 
3
+ $j('.checkall').live("click", function() {
4
+ var checked_status = this.checked;
5
+ $j(this).parents("form").find("input.object-check ,input.checkall").each(function() {
6
+ if ($j(this).attr("type") == "checkbox")
7
+ this.checked = checked_status;
8
+ });
9
+ });
10
+
11
+ $j('.form-options-expand').prepend('<input type="button" class="form-options-expand-link" value="' + ccfLang.more_options + '" />');
12
+ $j('.form-options-expand-link').click(function() {
13
+ $j(this)
14
  .parent()
15
  .parent()
16
  .parent()
18
  .find(".form-extra-options:first")
19
  .toggle();
20
  });
21
+ $j('.form-extra-options').hide();
22
 
23
+ $j('.submission-content').hide();
24
+ $j('.submission-content-expand').prepend('<input type="button" class="submission-content-expand-button" value="' + ccfLang.expand + '" />');
25
+ $j('.submission-content-expand-button').click(function() {
26
+ $j(this)
 
27
  .parent()
28
  .parent()
29
  .parent()
31
  .toggle();
32
  });
33
 
34
+
35
+ $j('.fixed-fields-options-expand').prepend('<input type="button" class="fixed-fields-options-expand-link" value="' + ccfLang.more_options + '" />');
36
+ $j('.fixed-fields-options-expand-link').click(function() {
37
+ $j(this)
38
  .parent()
39
  .parent()
40
  .parent()
42
  .find(".fixed-fields-extra-options:first")
43
  .toggle();
44
  });
45
+ $j('.fixed-fields-extra-options').hide();
46
 
47
+ $j('.fields-options-expand').prepend('<input type="button" class="fields-options-expand-link" value="' + ccfLang.more_options + '" />');
48
+ $j('.fields-options-expand-link').click(function() {
49
+ $j(this)
 
50
  .parent()
51
  .parent()
52
  .parent()
54
  .find(".fields-extra-options:first")
55
  .toggle();
56
  });
57
+ $j('.fields-extra-options').hide();
58
+
59
+ $j('.usage-popover-button').click(function() {
60
  showCCFUsagePopover();
61
  });
62
+ $j("#ccf-usage-popover .close").click(function() {
63
+ $j("#ccf-usage-popover").fadeOut();
64
  });
65
 
66
+ $j("a[title].toollink").tooltip({
67
  position: "bottom left",
68
  offset: [-2, 10],
69
  effect: "fade",
js/custom-contact-forms-dashboard.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Custom Contact Forms Dashboard Javascript */
2
+
3
+ $j = jQuery.noConflict();
4
+
5
+ $j(document).ready(function() {
6
+ $j("input.ccf-view-submission").click(function() {
7
+ var submission_window = $j(this).next();
8
+ submission_window.find("div.close").click(function() {
9
+ submission_window.fadeOut("slow");
10
+ });
11
+ submission_window.fadeIn("slow");
12
+
13
+ });
14
+ });
js/custom-contact-forms.js CHANGED
@@ -1,24 +1,24 @@
1
  // Custom Contact Forms plugin javascript
2
-
3
- jQuery(document).ready(function(){
4
- jQuery('<a></a>')
5
  .addClass('ccf-popover-close')
6
  .html('[close]')
7
  .prependTo('.ccf-popover');
8
- jQuery('.ccf-popover').css({'padding' : '10px 14px 10px 10px'});
9
- jQuery("a#in").click(function(){
10
  var sel = ".ccf-popover" + cid;
11
- jQuery(".ccf-popover1").fadeIn();
12
 
13
  });
14
- jQuery(".ccf-popover-close").click(function(){
15
- jQuery(".ccf-popover").hide();
16
  });
17
- jQuery('.show-field-instructions').click(function() {
18
 
19
  });
20
 
21
- jQuery(".ccf-tooltip-field").tooltip({
22
  position: "center right",
23
  offset: [-2, 10],
24
  effect: "fade",
@@ -27,9 +27,9 @@ jQuery(document).ready(function(){
27
 
28
  });
29
 
30
- jQuery("#ccf-form-success").delay(500).fadeIn('slow');
31
- jQuery("#ccf-form-success .close").click(function() {
32
- jQuery("#ccf-form-success").fadeOut();
33
  });
34
 
35
  });
1
  // Custom Contact Forms plugin javascript
2
+ $j = jQuery.noConflict();
3
+ $j(document).ready(function(){
4
+ $j('<a></a>')
5
  .addClass('ccf-popover-close')
6
  .html('[close]')
7
  .prependTo('.ccf-popover');
8
+ $j('.ccf-popover').css({'padding' : '10px 14px 10px 10px'});
9
+ $j("a#in").click(function(){
10
  var sel = ".ccf-popover" + cid;
11
+ $j(".ccf-popover1").fadeIn();
12
 
13
  });
14
+ $j(".ccf-popover-close").click(function(){
15
+ $j(".ccf-popover").hide();
16
  });
17
+ $j('.show-field-instructions').click(function() {
18
 
19
  });
20
 
21
+ $j(".ccf-tooltip-field").tooltip({
22
  position: "center right",
23
  offset: [-2, 10],
24
  effect: "fade",
27
 
28
  });
29
 
30
+ $j("#ccf-form-success").delay(500).fadeIn('slow');
31
+ $j("#ccf-form-success .close").click(function() {
32
+ $j("#ccf-form-success").fadeOut();
33
  });
34
 
35
  });
lang/custom-contact-forms.mo CHANGED
Binary file
lang/custom-contact-forms.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: custom-contact-forms\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2011-01-02 15:48-0500\n"
6
- "PO-Revision-Date: 2011-01-02 15:49-0500\n"
7
  "Last-Translator: Taylor Lovett <sdfds@sfs.com>\n"
8
  "Language-Team: TaylorLovett.com <admin@taylorlovett.com>\n"
9
  "MIME-Version: 1.0\n"
@@ -20,1682 +20,1740 @@ msgstr ""
20
  "X-Poedit-SearchPath-4: ../modules/usage_popover\n"
21
  "X-Poedit-SearchPath-5: ../modules/widget\n"
22
 
23
- #: ../custom-contact-forms-admin.php:158
24
- msgid "Attaching"
25
- msgstr ""
26
-
27
- #: ../custom-contact-forms-admin.php:159
28
- msgid "Dettaching"
29
- msgstr ""
30
-
31
- #: ../custom-contact-forms-admin.php:160
32
- msgid "Saving"
33
- msgstr ""
34
-
35
- #: ../custom-contact-forms-admin.php:161
36
- msgid "More Options"
37
- msgstr ""
38
-
39
- #: ../custom-contact-forms-admin.php:162
40
- msgid "Expand"
41
- msgstr ""
42
-
43
- #: ../custom-contact-forms-admin.php:163
44
- msgid "Click to Confirm"
45
- msgstr ""
46
-
47
- #: ../custom-contact-forms-admin.php:164
48
- msgid "Are you sure you want to delete this"
49
- msgstr ""
50
-
51
- #: ../custom-contact-forms-admin.php:165
52
- msgid "An error has occured. Please try again later."
53
- msgstr ""
54
-
55
- #: ../custom-contact-forms-admin.php:341
56
  msgid "Custom Contact Forms"
57
  msgstr ""
58
 
59
- #: ../custom-contact-forms-admin.php:344
60
- msgid "Plugin Instructions"
 
 
61
  msgstr ""
62
 
63
- #: ../custom-contact-forms-admin.php:345
64
- #: ../custom-contact-forms-admin.php:1152
65
- msgid "General Settings"
66
- msgstr ""
67
-
68
- #: ../custom-contact-forms-admin.php:346
69
- #: ../custom-contact-forms-admin.php:1399
70
- msgid "Mail Settings"
71
- msgstr ""
72
-
73
- #: ../custom-contact-forms-admin.php:347
74
  msgid "Create Fields"
75
  msgstr ""
76
 
77
- #: ../custom-contact-forms-admin.php:348
78
  msgid "Create Forms"
79
  msgstr ""
80
 
81
- #: ../custom-contact-forms-admin.php:349
82
  msgid "Manage Fields"
83
  msgstr ""
84
 
85
- #: ../custom-contact-forms-admin.php:350
86
- #: ../custom-contact-forms-admin.php:722
87
  msgid "Manage Fixed Fields"
88
  msgstr ""
89
 
90
- #: ../custom-contact-forms-admin.php:351
91
- #: ../custom-contact-forms-admin.php:936
92
  msgid "Manage Forms"
93
  msgstr ""
94
 
95
- #: ../custom-contact-forms-admin.php:352
96
- msgid "Saved Form Submissions (New!)"
97
- msgstr ""
98
-
99
- #: ../custom-contact-forms-admin.php:353
100
  msgid "Create Styles"
101
  msgstr ""
102
 
103
- #: ../custom-contact-forms-admin.php:354
104
  msgid "Manage Styles"
105
  msgstr ""
106
 
107
- #: ../custom-contact-forms-admin.php:355
 
108
  msgid "Manage Field Options"
109
  msgstr ""
110
 
111
- #: ../custom-contact-forms-admin.php:356
112
- #: ../custom-contact-forms-admin.php:2031
113
  msgid "Suggest a Feature"
114
  msgstr ""
115
 
116
- #: ../custom-contact-forms-admin.php:357
117
- #: ../custom-contact-forms-admin.php:2028
118
  msgid "Bug Report"
119
  msgstr ""
120
 
121
- #: ../custom-contact-forms-admin.php:358
122
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:20
123
  msgid "Custom HTML Forms"
124
  msgstr ""
125
 
126
- #: ../custom-contact-forms-admin.php:359
127
- msgid "Import / Export (New!)"
128
- msgstr ""
129
-
130
- #: ../custom-contact-forms-admin.php:360
131
  msgid "Plugin News"
132
  msgstr ""
133
 
134
- #: ../custom-contact-forms-admin.php:381
135
  msgid "Create A Form Field"
136
  msgstr ""
137
 
138
- #: ../custom-contact-forms-admin.php:388
139
  msgid "Field Slug:"
140
  msgstr ""
141
 
142
- #: ../custom-contact-forms-admin.php:392
143
  msgid "This is just a unique way for CCF to refer to your field. Must be unique from other slugs and contain only underscores and alphanumeric characters."
144
  msgstr ""
145
 
146
- #: ../custom-contact-forms-admin.php:396
147
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:130
148
  msgid "Field Label:"
149
  msgstr ""
150
 
151
- #: ../custom-contact-forms-admin.php:400
152
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:132
153
  msgid "The field label is displayed next to the field and is visible to the user."
154
  msgstr ""
155
 
156
- #: ../custom-contact-forms-admin.php:404
157
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:135
158
  msgid "Field Type:"
159
  msgstr ""
160
 
161
- #: ../custom-contact-forms-admin.php:417
162
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:140
163
  msgid "Initial Value:"
164
  msgstr ""
165
 
166
- #: ../custom-contact-forms-admin.php:422
167
  msgid ""
168
  "This is the initial value of the field. If you set the type as checkbox, it is recommend you set this to what the checkbox is implying. For example if I were creating the checkbox \n"
169
  "\t\t\t\t\t\t'Are you human?', I would set the initial value to 'Yes'."
170
  msgstr ""
171
 
172
- #: ../custom-contact-forms-admin.php:424
173
  msgid "If you set the field type as 'Dropdown' or 'Radio', you should enter the slug of the"
174
  msgstr ""
175
 
176
- #: ../custom-contact-forms-admin.php:425
177
- #: ../custom-contact-forms-admin.php:891
178
  msgid "Create a Field Option"
179
  msgstr ""
180
 
181
- #: ../custom-contact-forms-admin.php:425
182
  msgid "field option"
183
  msgstr ""
184
 
185
- #: ../custom-contact-forms-admin.php:426
186
  msgid "you would like initially selected."
187
  msgstr ""
188
 
189
- #: ../custom-contact-forms-admin.php:430
190
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:145
191
  msgid "Max Length:"
192
  msgstr ""
193
 
194
- #: ../custom-contact-forms-admin.php:434
195
  msgid "0 for no limit; only applies to Text fields"
196
  msgstr ""
197
 
198
- #: ../custom-contact-forms-admin.php:438
199
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:150
200
  msgid "Required Field:"
201
  msgstr ""
202
 
203
- #: ../custom-contact-forms-admin.php:442
204
- #: ../custom-contact-forms-admin.php:624
205
- #: ../custom-contact-forms-admin.php:765
206
- #: ../custom-contact-forms-admin.php:1166
207
- #: ../custom-contact-forms-admin.php:1243
208
- #: ../custom-contact-forms-admin.php:1275
 
 
209
  msgid "No"
210
  msgstr ""
211
 
212
- #: ../custom-contact-forms-admin.php:445
213
- #: ../custom-contact-forms-admin.php:621
214
- #: ../custom-contact-forms-admin.php:762
215
- #: ../custom-contact-forms-admin.php:772
216
- #: ../custom-contact-forms-admin.php:1163
217
- #: ../custom-contact-forms-admin.php:1240
218
- #: ../custom-contact-forms-admin.php:1272
 
 
219
  msgid "Yes"
220
  msgstr ""
221
 
222
- #: ../custom-contact-forms-admin.php:449
223
  msgid "If a field is required and a user leaves it blank, the plugin will display an error message (which you can customize using 'Field Error') explaining the problem."
224
  msgstr ""
225
 
226
- #: ../custom-contact-forms-admin.php:453
227
- #: ../custom-contact-forms-admin.php:645
228
- #: ../custom-contact-forms-admin.php:795
229
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:155
230
  msgid "Field Instructions:"
231
  msgstr ""
232
 
233
- #: ../custom-contact-forms-admin.php:457
234
- #: ../custom-contact-forms-admin.php:643
235
- #: ../custom-contact-forms-admin.php:793
236
  msgid "If this is filled out, a tooltip popover displaying this text will show when the field is selected."
237
  msgstr ""
238
 
239
- #: ../custom-contact-forms-admin.php:461
240
- #: ../custom-contact-forms-admin.php:650
241
- #: ../custom-contact-forms-admin.php:789
242
  msgid "Field Class:"
243
  msgstr ""
244
 
245
- #: ../custom-contact-forms-admin.php:465
246
  msgid "If you manage your own .css stylesheet, you can use this to attach a class to this field. Leaving this blank will do nothing."
247
  msgstr ""
248
 
249
- #: ../custom-contact-forms-admin.php:469
250
- #: ../custom-contact-forms-admin.php:655
251
- #: ../custom-contact-forms-admin.php:800
 
252
  msgid "Field Error:"
253
  msgstr ""
254
 
255
- #: ../custom-contact-forms-admin.php:473
 
256
  msgid "If a user leaves this field blank and the field is required, this error message will be shown. A generic default will show if left blank."
257
  msgstr ""
258
 
259
- #: ../custom-contact-forms-admin.php:477
260
  msgid "Create Field"
261
  msgstr ""
262
 
263
- #: ../custom-contact-forms-admin.php:486
 
 
 
 
264
  msgid "Create A Form"
265
  msgstr ""
266
 
267
- #: ../custom-contact-forms-admin.php:493
268
  msgid "Form Slug:"
269
  msgstr ""
270
 
271
- #: ../custom-contact-forms-admin.php:497
272
  msgid "This is just a unique way for CCF to refer to your form. Must be unique from other slugs and contain only underscores and alphanumeric characters."
273
  msgstr ""
274
 
275
- #: ../custom-contact-forms-admin.php:501
276
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:211
277
  msgid "Form Title:"
278
  msgstr ""
279
 
280
- #: ../custom-contact-forms-admin.php:504
281
  msgid "This text is displayed above the form as the heading."
282
  msgstr ""
283
 
284
- #: ../custom-contact-forms-admin.php:508
285
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:216
286
- msgid "Form Method:"
287
- msgstr ""
288
-
289
- #: ../custom-contact-forms-admin.php:514
290
- msgid "If unsure, leave as is."
291
- msgstr ""
292
-
293
- #: ../custom-contact-forms-admin.php:518
294
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:221
295
- msgid "Form Action:"
296
  msgstr ""
297
 
298
- #: ../custom-contact-forms-admin.php:522
299
- msgid "If unsure, leave blank. Enter a URL here, if and only if you want to process your forms somewhere else, for example with a service like Aweber or InfusionSoft."
300
  msgstr ""
301
 
302
- #: ../custom-contact-forms-admin.php:526
303
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:226
304
- msgid "Form Style:"
305
  msgstr ""
306
 
307
- #: ../custom-contact-forms-admin.php:531
308
- msgid "Click to create a style"
 
309
  msgstr ""
310
 
311
- #: ../custom-contact-forms-admin.php:534
312
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:231
313
- msgid "Submit Button Text:"
314
  msgstr ""
315
 
316
- #: ../custom-contact-forms-admin.php:540
317
- #: ../custom-contact-forms-admin.php:1043
318
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:236
319
- msgid "Custom Code:"
320
  msgstr ""
321
 
322
- #: ../custom-contact-forms-admin.php:544
323
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:238
324
- msgid "If unsure, leave blank. This field allows you to insert custom HTML directly after the starting form tag."
325
  msgstr ""
326
 
327
- #: ../custom-contact-forms-admin.php:548
328
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:241
329
- msgid "Form Destination Email:"
330
  msgstr ""
331
 
332
- #: ../custom-contact-forms-admin.php:552
333
- msgid "Will receive all submissions from this form; if left blank it will use the default specified in general settings."
334
  msgstr ""
335
 
336
- #: ../custom-contact-forms-admin.php:556
337
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:246
338
  msgid "Form Success Message:"
339
  msgstr ""
340
 
341
- #: ../custom-contact-forms-admin.php:560
342
- #: ../custom-contact-forms-admin.php:568
343
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:253
344
  msgid "Will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
345
  msgstr ""
346
 
347
- #: ../custom-contact-forms-admin.php:564
348
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:251
349
  msgid "Form Success Message Title:"
350
  msgstr ""
351
 
352
- #: ../custom-contact-forms-admin.php:572
353
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:256
354
  msgid "Custom Success URL:"
355
  msgstr ""
356
 
357
- #: ../custom-contact-forms-admin.php:576
358
  msgid "If this is filled out, users will be sent to this page when they successfully fill out this form. If it is left blank, a popover showing the form's 'success message' will be displayed on form success."
359
  msgstr ""
360
 
361
- #: ../custom-contact-forms-admin.php:579
 
 
 
 
 
 
 
 
362
  msgid "Create Form"
363
  msgstr ""
364
 
365
- #: ../custom-contact-forms-admin.php:587
 
 
 
 
366
  msgid "Manage User Fields"
367
  msgstr ""
368
 
369
- #: ../custom-contact-forms-admin.php:592
370
- #: ../custom-contact-forms-admin.php:710
371
- #: ../custom-contact-forms-admin.php:727
372
- #: ../custom-contact-forms-admin.php:815
373
- #: ../custom-contact-forms-admin.php:833
374
- #: ../custom-contact-forms-admin.php:876
375
- #: ../custom-contact-forms-admin.php:942
376
- #: ../custom-contact-forms-admin.php:1065
377
  msgid "Slug"
378
  msgstr ""
379
 
380
- #: ../custom-contact-forms-admin.php:593
381
- #: ../custom-contact-forms-admin.php:711
382
- #: ../custom-contact-forms-admin.php:728
383
- #: ../custom-contact-forms-admin.php:816
384
- #: ../custom-contact-forms-admin.php:836
385
- #: ../custom-contact-forms-admin.php:879
386
  msgid "Label"
387
  msgstr ""
388
 
389
- #: ../custom-contact-forms-admin.php:594
390
- #: ../custom-contact-forms-admin.php:712
391
- #: ../custom-contact-forms-admin.php:729
392
- #: ../custom-contact-forms-admin.php:817
393
  msgid "Type"
394
  msgstr ""
395
 
396
- #: ../custom-contact-forms-admin.php:595
397
- #: ../custom-contact-forms-admin.php:713
398
- #: ../custom-contact-forms-admin.php:730
399
- #: ../custom-contact-forms-admin.php:818
400
  msgid "Initial Value"
401
  msgstr ""
402
 
403
- #: ../custom-contact-forms-admin.php:596
404
- #: ../custom-contact-forms-admin.php:714
405
- #: ../custom-contact-forms-admin.php:731
406
- #: ../custom-contact-forms-admin.php:819
407
  msgid "Required"
408
  msgstr ""
409
 
410
- #: ../custom-contact-forms-admin.php:597
411
- #: ../custom-contact-forms-admin.php:715
412
- #: ../custom-contact-forms-admin.php:732
413
- #: ../custom-contact-forms-admin.php:820
414
  msgid "Maxlength"
415
  msgstr ""
416
 
417
- #: ../custom-contact-forms-admin.php:598
418
- #: ../custom-contact-forms-admin.php:716
419
- #: ../custom-contact-forms-admin.php:733
420
- #: ../custom-contact-forms-admin.php:821
421
- #: ../custom-contact-forms-admin.php:842
422
- #: ../custom-contact-forms-admin.php:885
423
- #: ../custom-contact-forms-admin.php:946
424
- #: ../custom-contact-forms-admin.php:1069
425
- #: ../custom-contact-forms-admin.php:1090
426
- #: ../custom-contact-forms-admin.php:1144
427
- msgid "Action"
428
- msgstr ""
429
-
430
- #: ../custom-contact-forms-admin.php:636
431
- #: ../custom-contact-forms-admin.php:784
432
- #: ../custom-contact-forms-admin.php:856
433
- #: ../custom-contact-forms-admin.php:971
434
- #: ../custom-contact-forms-admin.php:1780
435
- msgid "Save"
436
- msgstr ""
437
-
438
- #: ../custom-contact-forms-admin.php:637
439
- #: ../custom-contact-forms-admin.php:857
440
- #: ../custom-contact-forms-admin.php:972
441
- #: ../custom-contact-forms-admin.php:1113
442
- msgid "Delete"
443
- msgstr ""
444
-
445
- #: ../custom-contact-forms-admin.php:648
446
- #: ../custom-contact-forms-admin.php:788
447
  msgid "If you manage a .CSS file for your theme, you could create a class in that file and add it to this field. If the form attaching this field is using a \"Form Style\" other than the default, styles inherited from the \"Field Class\" might be overwritten."
448
  msgstr ""
449
 
450
- #: ../custom-contact-forms-admin.php:653
451
- #: ../custom-contact-forms-admin.php:798
452
  msgid "This lets you customize the error message displayed when this field is required and left blank."
453
  msgstr ""
454
 
455
- #: ../custom-contact-forms-admin.php:678
456
- msgid "Dettach Field Option"
457
- msgstr ""
458
-
459
- #: ../custom-contact-forms-admin.php:681
460
- msgid "Dettach field options you"
461
  msgstr ""
462
 
463
- #: ../custom-contact-forms-admin.php:683
464
- #: ../custom-contact-forms-admin.php:1034
465
  msgid "create"
466
  msgstr ""
467
 
468
- #: ../custom-contact-forms-admin.php:693
469
- msgid "Attach Field Option"
470
- msgstr ""
471
-
472
- #: ../custom-contact-forms-admin.php:697
473
  msgid "Attach field options in the order you want them to display."
474
  msgstr ""
475
 
476
- #: ../custom-contact-forms-admin.php:748
477
- #: ../custom-contact-forms-admin.php:779
478
- #: ../custom-contact-forms-admin.php:1414
479
  msgid "None"
480
  msgstr ""
481
 
482
- #: ../custom-contact-forms-admin.php:828
483
- msgid "Manage Field Options (for Dropdown and Radio Fields)"
484
- msgstr ""
485
-
486
  #: ../custom-contact-forms-admin.php:839
487
- #: ../custom-contact-forms-admin.php:882
488
  msgid "Value"
489
  msgstr ""
490
 
491
- #: ../custom-contact-forms-admin.php:868
 
 
 
 
 
492
  msgid "No field options have been created."
493
  msgstr ""
494
 
495
- #: ../custom-contact-forms-admin.php:896
 
 
 
 
496
  msgid "Option Slug:"
497
  msgstr ""
498
 
499
- #: ../custom-contact-forms-admin.php:900
500
  msgid "Used to identify this option, solely for admin purposes; must be unique, and contain only letters, numbers, and underscores. Example: 'slug_one'"
501
  msgstr ""
502
 
503
- #: ../custom-contact-forms-admin.php:904
504
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:183
505
  msgid "Option Label:"
506
  msgstr ""
507
 
508
- #: ../custom-contact-forms-admin.php:908
509
  msgid "This is what is shown to the user in the dropdown or radio field. Example: 'United States'"
510
  msgstr ""
511
 
512
- #: ../custom-contact-forms-admin.php:912
513
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:188
514
  msgid "Option Value:"
515
  msgstr ""
516
 
517
- #: ../custom-contact-forms-admin.php:914
518
  msgid "This is the actual value of the option which is not shown to the user. This can be the same thing as the label. An example pairing of label => value is: 'The color green' => 'green' or 'Yes' => '1'."
519
  msgstr ""
520
 
521
- #: ../custom-contact-forms-admin.php:916
522
  msgid "This is the actual value of the option which is not shown to the user. This can be the same thing as the label. An example pairing of label => value is: \"The color green\" => \"green\" or \"Yes\" => \"1\"."
523
  msgstr ""
524
 
525
- #: ../custom-contact-forms-admin.php:919
 
 
 
 
 
 
 
 
 
526
  msgid "Create Field Option"
527
  msgstr ""
528
 
529
- #: ../custom-contact-forms-admin.php:928
530
  msgid "Rate This Plugin"
531
  msgstr ""
532
 
533
- #: ../custom-contact-forms-admin.php:929
534
  msgid "We need your help to continue development! Please <span>rate this plugin</span> to show your support."
535
  msgstr ""
536
 
537
- #: ../custom-contact-forms-admin.php:941
538
  msgid "Form Display Code"
539
  msgstr ""
540
 
541
- #: ../custom-contact-forms-admin.php:943
542
- #: ../custom-contact-forms-admin.php:1066
 
 
 
 
 
543
  msgid "Title"
544
  msgstr ""
545
 
546
- #: ../custom-contact-forms-admin.php:944
547
- #: ../custom-contact-forms-admin.php:1067
548
  msgid "Button Text"
549
  msgstr ""
550
 
551
- #: ../custom-contact-forms-admin.php:945
552
- #: ../custom-contact-forms-admin.php:1068
553
  msgid "Style"
554
  msgstr ""
555
 
556
- #: ../custom-contact-forms-admin.php:979
557
  msgid "Method"
558
  msgstr ""
559
 
560
- #: ../custom-contact-forms-admin.php:980
561
  msgid "Form Action"
562
  msgstr ""
563
 
564
- #: ../custom-contact-forms-admin.php:981
565
- msgid "Destination Email"
 
 
 
 
566
  msgstr ""
567
 
568
- #: ../custom-contact-forms-admin.php:982
569
  msgid "Success Message Title"
570
  msgstr ""
571
 
572
- #: ../custom-contact-forms-admin.php:983
573
  msgid "Success Message"
574
  msgstr ""
575
 
576
- #: ../custom-contact-forms-admin.php:984
577
  msgid "Custom Success URL"
578
  msgstr ""
579
 
580
- #: ../custom-contact-forms-admin.php:987
581
  msgid "The Form Method is the method by which information is transfer through your form. If you aren't an expert with HTML and PHP, leave this as Post."
582
  msgstr ""
583
 
584
- #: ../custom-contact-forms-admin.php:991
585
  msgid "This lets you process your forms through alternate scripts. If you use a service like InfusionSoft or Aweber, set this to be the same form action as the code provided to you by that service, otherwise leave this blank."
586
  msgstr ""
587
 
588
- #: ../custom-contact-forms-admin.php:993
589
- msgid "Specify the email address(es) that you wish to receive form submission emails (provided that Email Form Submissions is set to Yes in general settings). Seperate multiple email addresses with semi-colons (ex: email1@gmail.com;email2@gmail.com;email3@gmail.com)."
590
- msgstr ""
591
-
592
- #: ../custom-contact-forms-admin.php:995
593
- msgid "This will be displayed as the header in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
594
- msgstr ""
595
-
596
- #: ../custom-contact-forms-admin.php:997
597
- msgid "This will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
598
- msgstr ""
599
-
600
- #: ../custom-contact-forms-admin.php:999
601
- msgid "If this is filled out, users will be sent to this thank you page when they successfully fill out this form. If it is left blank, a popover showing the form's 'success message' will be displayed on form success."
602
- msgstr ""
603
-
604
  #: ../custom-contact-forms-admin.php:1004
605
- msgid "Attached Fields:"
606
- msgstr ""
607
-
608
- #: ../custom-contact-forms-admin.php:1018
609
- msgid "Dettach Field"
610
  msgstr ""
611
 
612
- #: ../custom-contact-forms-admin.php:1021
613
- msgid "Attach fields in the order you want them displayed."
614
  msgstr ""
615
 
616
- #: ../custom-contact-forms-admin.php:1024
617
- msgid "Attach Field:"
618
  msgstr ""
619
 
620
- #: ../custom-contact-forms-admin.php:1029
621
- msgid "Attach Field"
622
  msgstr ""
623
 
624
- #: ../custom-contact-forms-admin.php:1032
625
- msgid "Attach fixed fields or ones you"
626
  msgstr ""
627
 
628
- #: ../custom-contact-forms-admin.php:1038
629
  msgid "The form display code above ([customcontact form=x]) will only work in Wordpress pages and posts. If you want to display this form in a theme file such as page.php, header.php, index.php, category.php, etc, then insert this PHP snippet."
630
  msgstr ""
631
 
632
- #: ../custom-contact-forms-admin.php:1039
633
  msgid "Code to Display Form in Theme Files:"
634
  msgstr ""
635
 
636
- #: ../custom-contact-forms-admin.php:1042
637
  msgid "This field allows you to insert HTML directly after the starting <form> tag."
638
  msgstr ""
639
 
640
- #: ../custom-contact-forms-admin.php:1064
641
- msgid "Form Code"
 
642
  msgstr ""
643
 
644
- #: ../custom-contact-forms-admin.php:1081
645
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:307
646
- msgid "Saved Form Submissions"
647
  msgstr ""
648
 
649
- #: ../custom-contact-forms-admin.php:1086
650
- #: ../custom-contact-forms-admin.php:1140
651
- msgid "Date Submitted"
652
  msgstr ""
653
 
654
- #: ../custom-contact-forms-admin.php:1087
655
- #: ../custom-contact-forms-admin.php:1141
656
- msgid "Form Submitted"
657
  msgstr ""
658
 
659
- #: ../custom-contact-forms-admin.php:1088
660
- #: ../custom-contact-forms-admin.php:1142
661
- msgid "Form Page"
662
  msgstr ""
663
 
664
- #: ../custom-contact-forms-admin.php:1107
665
- msgid "Custom HTML Form"
666
  msgstr ""
667
 
668
- #: ../custom-contact-forms-admin.php:1159
669
- msgid "Email Form Submissions:"
670
  msgstr ""
671
 
672
- #: ../custom-contact-forms-admin.php:1171
673
- msgid "When a user fills out one of your forms, the info submitted is saved in the Saved Form Submission section of the admin panel for you to view. If this is enabled, you will also be sent an email containing the submission info."
674
  msgstr ""
675
 
676
- #: ../custom-contact-forms-admin.php:1175
677
- msgid "Default Email:"
678
  msgstr ""
679
 
680
- #: ../custom-contact-forms-admin.php:1180
681
- msgid "Form emails will be sent <span>to</span> this address, if no destination email is specified by the form."
682
  msgstr ""
683
 
684
- #: ../custom-contact-forms-admin.php:1184
685
- msgid "Front End JQuery:"
686
  msgstr ""
687
 
688
- #: ../custom-contact-forms-admin.php:1188
689
- #: ../custom-contact-forms-admin.php:1256
690
- #: ../custom-contact-forms-admin.php:1297
691
- msgid "Enabled"
692
  msgstr ""
693
 
694
- #: ../custom-contact-forms-admin.php:1191
695
- #: ../custom-contact-forms-admin.php:1259
696
- #: ../custom-contact-forms-admin.php:1300
697
- msgid "Disabled"
698
  msgstr ""
699
 
700
- #: ../custom-contact-forms-admin.php:1196
701
- #, php-format
702
- msgid "Some plugins don't setup JQuery correctly, so when any other plugin uses JQuery (whether correctly or not), JQuery works for neither plugin. This plugin uses JQuery correctly. If another plugin isn't using JQuery correctly but is more important to you than this one: disable this option. 99% of this plugin's functionality will work without JQuery, just no field instruction tooltips."
 
703
  msgstr ""
704
 
705
- #: ../custom-contact-forms-admin.php:1200
706
- msgid "Default From Email:"
 
 
 
 
 
707
  msgstr ""
708
 
709
- #: ../custom-contact-forms-admin.php:1205
710
- msgid "Form emails will be sent <span>from</span> this address. It is recommended you provide a real email address that has been created through your host."
 
711
  msgstr ""
712
 
713
- #: ../custom-contact-forms-admin.php:1209
714
- msgid "Default Email Subject:"
715
  msgstr ""
716
 
717
- #: ../custom-contact-forms-admin.php:1214
718
- msgid "Default subject to be included in all form emails."
 
719
  msgstr ""
720
 
721
- #: ../custom-contact-forms-admin.php:1218
722
- msgid "Default Form Success Message Title:"
 
723
  msgstr ""
724
 
725
- #: ../custom-contact-forms-admin.php:1223
726
- msgid "If someone fills out a form for which a success message title is not provided and a custom success page is not provided, the plugin will show a popover using this field as the window title."
 
727
  msgstr ""
728
 
729
- #: ../custom-contact-forms-admin.php:1227
730
- msgid "Default Form Success Message:"
 
731
  msgstr ""
732
 
733
- #: ../custom-contact-forms-admin.php:1232
734
- msgid "If someone fills out a form for which a success message is not provided and a custom success page is not provided, the plugin will show a popover containing this message."
 
 
 
735
  msgstr ""
736
 
737
- #: ../custom-contact-forms-admin.php:1236
738
- msgid "Remember Field Values:"
739
  msgstr ""
740
 
741
- #: ../custom-contact-forms-admin.php:1248
742
- msgid "Selecting yes will make form fields remember how they were last filled out."
743
  msgstr ""
744
 
745
- #: ../custom-contact-forms-admin.php:1252
746
- msgid "Tooltips in Widget:"
 
747
  msgstr ""
748
 
749
- #: ../custom-contact-forms-admin.php:1264
750
- msgid "Enabling this shows tooltips containing field instructions on forms in the widget."
751
  msgstr ""
752
 
753
- #: ../custom-contact-forms-admin.php:1268
754
- msgid "Hide Plugin Author Link in Code:"
 
755
  msgstr ""
756
 
757
- #: ../custom-contact-forms-admin.php:1281
758
- msgid "Use Code Type:"
 
759
  msgstr ""
760
 
761
- #: ../custom-contact-forms-admin.php:1289
762
- msgid "This lets you switch the form code between HTML and XHTML."
 
763
  msgstr ""
764
 
765
- #: ../custom-contact-forms-admin.php:1293
766
- msgid "Fancy Admin AJAX Abilities:"
 
767
  msgstr ""
768
 
769
- #: ../custom-contact-forms-admin.php:1305
770
- msgid "If you enable this, creating, editing and modifying forms, fields, styles, etc in the admin panel will be done using AJAX. This means that clicking things like 'Edit' or 'Delete' will not cause the page to reload thus managing your forms will be much smoother and quicker. If you are having problems with things not saving, deleting, or inserting correctly, then disable this and fill out a bug report below."
 
 
 
771
  msgstr ""
772
 
773
- #: ../custom-contact-forms-admin.php:1308
774
- msgid "Show Sidebar Widget:"
 
775
  msgstr ""
776
 
777
- #: ../custom-contact-forms-admin.php:1313
778
- msgid "On Homepage"
779
  msgstr ""
780
 
781
- #: ../custom-contact-forms-admin.php:1317
782
- msgid "On Pages"
783
  msgstr ""
784
 
785
- #: ../custom-contact-forms-admin.php:1321
786
- msgid "On Single Posts"
787
  msgstr ""
788
 
789
- #: ../custom-contact-forms-admin.php:1326
790
- msgid "On Categories"
 
 
 
791
  msgstr ""
792
 
793
- #: ../custom-contact-forms-admin.php:1330
794
- msgid "On Archives"
 
795
  msgstr ""
796
 
797
- #: ../custom-contact-forms-admin.php:1334
798
- msgid "Update"
799
  msgstr ""
800
 
801
- #: ../custom-contact-forms-admin.php:1343
802
- msgid "Instructions"
803
  msgstr ""
804
 
805
- #: ../custom-contact-forms-admin.php:1347
806
- msgid "The default content will help you get a better feel of ways this plugin can be used and is the best way to learn."
 
807
  msgstr ""
808
 
809
- #: ../custom-contact-forms-admin.php:1351
810
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:41
811
- msgid "Insert Default Content"
812
  msgstr ""
813
 
814
- #: ../custom-contact-forms-admin.php:1355
815
- msgid "1. Create a form."
 
816
  msgstr ""
817
 
818
- #: ../custom-contact-forms-admin.php:1358
819
- msgid "2. Create fields and attach those fields to the forms of your choice."
820
  msgstr ""
821
 
822
- #: ../custom-contact-forms-admin.php:1360
823
- msgid "Attach the fields in the order that you want them to show up in the form. If you mess up you can detach and reattach them. Create field options in the field option manager; field options should be attached to radio and dropdown fields."
 
824
  msgstr ""
825
 
826
- #: ../custom-contact-forms-admin.php:1363
827
- msgid "3. Display those forms in posts and pages by inserting the code: [customcontact form=<b>FORMID</b>]. Replace <b>FORMID</b> with the id listed to the left of the form slug next to the form of your choice above. You can also display forms in theme files; the code for this is provided within each forms admin section."
828
  msgstr ""
829
 
830
- #: ../custom-contact-forms-admin.php:1366
831
- msgid "4. Prevent spam by attaching the fixed field, captcha or ishuman. Captcha requires users to type in a number shown on an image. Ishuman requires users to check a box to prove they aren't a spam bot."
 
832
  msgstr ""
833
 
834
- #: ../custom-contact-forms-admin.php:1369
835
- msgid "5. Add a form to your sidebar, by dragging the Custom Contact Form widget in to your sidebar."
836
  msgstr ""
837
 
838
- #: ../custom-contact-forms-admin.php:1372
839
- msgid "6. Configure the General Settings appropriately; this is important if you want to receive your web form messages!"
840
  msgstr ""
841
 
842
- #: ../custom-contact-forms-admin.php:1375
843
- msgid "7. Create form styles to change your forms appearances. The image below explains how each style field can change the look of your forms."
844
  msgstr ""
845
 
846
- #: ../custom-contact-forms-admin.php:1378
847
- msgid "8. (advanced) If you are confident in your HTML and CSS skills, you can use the"
 
848
  msgstr ""
849
 
850
- #: ../custom-contact-forms-admin.php:1380
851
- msgid "Custom HTML Forms feature"
852
  msgstr ""
853
 
854
- #: ../custom-contact-forms-admin.php:1382
855
- msgid "as a framework and write your forms from scratch. This allows you to use this plugin simply to process your form requests. The Custom HTML Forms feature will process and email any form variables sent to it regardless of whether they are created in the fields manager."
 
856
  msgstr ""
857
 
858
- #: ../custom-contact-forms-admin.php:1385
859
- msgid "These instructions briefly tell you in which order you should use forms, fields, field options, and styles."
860
  msgstr ""
861
 
862
- #: ../custom-contact-forms-admin.php:1387
863
- msgid "If you want to read in detail about using forms, fields, field options, styles and the rest of this plugin, click the button below."
 
864
  msgstr ""
865
 
866
- #: ../custom-contact-forms-admin.php:1390
867
- msgid "View Plugin Usage Popover"
 
868
  msgstr ""
869
 
870
- #: ../custom-contact-forms-admin.php:1403
871
- msgid "There are two ways you can send emails: using the PHP mail() function or using SMTP (secure/insecure). If you choose to use the PHP mail() function you can ignore all the other options. For some people Wordpress's default way of sending mail does not work; if for some reason your mail is being sent you should try the SMTP option."
 
872
  msgstr ""
873
 
874
- #: ../custom-contact-forms-admin.php:1404
875
- msgid "* Send My Emails Using the Following:"
 
876
  msgstr ""
877
 
878
- #: ../custom-contact-forms-admin.php:1406
879
- msgid "Wordpress Default"
 
880
  msgstr ""
881
 
882
- #: ../custom-contact-forms-admin.php:1407
883
- msgid "SMTP"
 
884
  msgstr ""
885
 
886
- #: ../custom-contact-forms-admin.php:1408
887
- msgid "(If mail isn't sending, try toggling this option.)"
888
  msgstr ""
889
 
890
- #: ../custom-contact-forms-admin.php:1411
891
- msgid "SMTP Host:"
892
  msgstr ""
893
 
894
- #: ../custom-contact-forms-admin.php:1412
895
- msgid "SMTP Port:"
896
  msgstr ""
897
 
898
- #: ../custom-contact-forms-admin.php:1413
899
- msgid "Encryption:"
900
  msgstr ""
901
 
902
- #: ../custom-contact-forms-admin.php:1415
903
- msgid "SSL"
904
  msgstr ""
905
 
906
- #: ../custom-contact-forms-admin.php:1416
907
- msgid "TLS"
 
908
  msgstr ""
909
 
910
- #: ../custom-contact-forms-admin.php:1420
911
- msgid "SMTP Authentication:"
912
  msgstr ""
913
 
914
- #: ../custom-contact-forms-admin.php:1420
915
- msgid "None Needed"
 
 
916
  msgstr ""
917
 
918
- #: ../custom-contact-forms-admin.php:1420
919
- msgid "Use SMTP Username/Password"
 
 
920
  msgstr ""
921
 
922
- #: ../custom-contact-forms-admin.php:1421
923
- msgid "SMTP Username:"
 
924
  msgstr ""
925
 
926
- #: ../custom-contact-forms-admin.php:1422
927
- msgid "SMTP Password:"
928
  msgstr ""
929
 
930
- #: ../custom-contact-forms-admin.php:1425
931
- msgid "Save Mail Sending Options"
932
  msgstr ""
933
 
934
- #: ../custom-contact-forms-admin.php:1432
935
- msgid "Create A Style for Your Forms"
936
  msgstr ""
937
 
938
- #: ../custom-contact-forms-admin.php:1436
939
- msgid "Use this manager to create styles for your forms. Each field is already filled out with nice look defaults. It is recommended you simply input a slug and click create to see the defaults before you start changing values."
 
 
 
 
 
 
 
940
  msgstr ""
941
 
942
  #: ../custom-contact-forms-admin.php:1442
943
- msgid "Style Slug:"
944
  msgstr ""
945
 
946
- #: ../custom-contact-forms-admin.php:1445
947
- msgid "(Must be unique)"
948
  msgstr ""
949
 
950
  #: ../custom-contact-forms-admin.php:1449
951
- #: ../custom-contact-forms-admin.php:1850
952
- #: ../custom-contact-forms-admin.php:1859
953
- msgid "Title Font Size:"
954
  msgstr ""
955
 
956
- #: ../custom-contact-forms-admin.php:1452
957
- msgid "(ex: 10pt, 10px, 1em)"
 
 
 
 
 
958
  msgstr ""
959
 
960
  #: ../custom-contact-forms-admin.php:1456
961
- #: ../custom-contact-forms-admin.php:1898
962
- #: ../custom-contact-forms-admin.php:1966
963
- msgid "Title Font Color:"
964
- msgstr ""
965
-
966
- #: ../custom-contact-forms-admin.php:1459
967
- #: ../custom-contact-forms-admin.php:1480
968
- #: ../custom-contact-forms-admin.php:1544
969
- #: ../custom-contact-forms-admin.php:1645
970
- #: ../custom-contact-forms-admin.php:1652
971
- #: ../custom-contact-forms-admin.php:1680
972
- msgid "(ex: FF0000)"
973
  msgstr ""
974
 
975
  #: ../custom-contact-forms-admin.php:1463
976
- #: ../custom-contact-forms-admin.php:1823
977
- msgid "Label Width:"
978
- msgstr ""
979
-
980
- #: ../custom-contact-forms-admin.php:1466
981
- msgid "(ex: 100px or 20%)"
982
  msgstr ""
983
 
984
- #: ../custom-contact-forms-admin.php:1470
985
- #: ../custom-contact-forms-admin.php:1864
986
- msgid "Label Font Size:"
987
  msgstr ""
988
 
989
- #: ../custom-contact-forms-admin.php:1473
990
- #: ../custom-contact-forms-admin.php:1638
991
- msgid "(ex: 10px, 10pt, 1em)"
992
  msgstr ""
993
 
994
- #: ../custom-contact-forms-admin.php:1477
995
- #: ../custom-contact-forms-admin.php:1903
996
- msgid "Label Font Color:"
997
  msgstr ""
998
 
999
- #: ../custom-contact-forms-admin.php:1484
1000
- #: ../custom-contact-forms-admin.php:1790
1001
- msgid "Text Field Width:"
1002
  msgstr ""
1003
 
1004
- #: ../custom-contact-forms-admin.php:1487
1005
- #: ../custom-contact-forms-admin.php:1494
1006
- #: ../custom-contact-forms-admin.php:1501
1007
- #: ../custom-contact-forms-admin.php:1581
1008
- msgid "(ex: 100px or 100%)"
1009
  msgstr ""
1010
 
1011
- #: ../custom-contact-forms-admin.php:1491
1012
- msgid "Textarea Field Width:"
1013
  msgstr ""
1014
 
1015
- #: ../custom-contact-forms-admin.php:1498
1016
- msgid "Textarea Field Height:"
1017
  msgstr ""
1018
 
1019
- #: ../custom-contact-forms-admin.php:1505
1020
- #: ../custom-contact-forms-admin.php:1869
1021
- msgid "Field Font Size:"
1022
  msgstr ""
1023
 
1024
- #: ../custom-contact-forms-admin.php:1508
1025
- msgid "(ex: 10px, 10pt, 1em"
1026
  msgstr ""
1027
 
1028
- #: ../custom-contact-forms-admin.php:1512
1029
- #: ../custom-contact-forms-admin.php:1908
1030
- msgid "Field Font Color:"
1031
  msgstr ""
1032
 
1033
- #: ../custom-contact-forms-admin.php:1515
1034
- #: ../custom-contact-forms-admin.php:1551
1035
- msgid "(ex: 333333)"
1036
  msgstr ""
1037
 
1038
- #: ../custom-contact-forms-admin.php:1519
1039
- #: ../custom-contact-forms-admin.php:1957
1040
- msgid "Field Border Style:"
1041
  msgstr ""
1042
 
1043
- #: ../custom-contact-forms-admin.php:1527
1044
- #: ../custom-contact-forms-admin.php:1918
1045
- msgid "Form Margin:"
1046
  msgstr ""
1047
 
1048
- #: ../custom-contact-forms-admin.php:1530
1049
- #: ../custom-contact-forms-admin.php:1537
1050
- #: ../custom-contact-forms-admin.php:1659
1051
- #: ../custom-contact-forms-admin.php:1666
1052
- msgid "(ex: 5px or 1em)"
1053
  msgstr ""
1054
 
1055
- #: ../custom-contact-forms-admin.php:1534
1056
- #: ../custom-contact-forms-admin.php:1810
1057
- msgid "Label Margin:"
 
 
1058
  msgstr ""
1059
 
1060
- #: ../custom-contact-forms-admin.php:1541
1061
- msgid "Textarea Background Color:"
1062
  msgstr ""
1063
 
1064
- #: ../custom-contact-forms-admin.php:1548
1065
- msgid "Success Popover Font Color:"
 
 
 
 
 
1066
  msgstr ""
1067
 
1068
- #: ../custom-contact-forms-admin.php:1555
1069
- msgid "Success Popover Title Font Size:"
 
1070
  msgstr ""
1071
 
1072
- #: ../custom-contact-forms-admin.php:1558
1073
- #: ../custom-contact-forms-admin.php:1565
1074
- #: ../custom-contact-forms-admin.php:1687
1075
- #: ../custom-contact-forms-admin.php:1710
1076
- msgid "(ex: 12px, 1em, 100%)"
1077
  msgstr ""
1078
 
1079
- #: ../custom-contact-forms-admin.php:1562
1080
- #: ../custom-contact-forms-admin.php:1854
1081
- msgid "Form Background Color:"
1082
  msgstr ""
1083
 
1084
- #: ../custom-contact-forms-admin.php:1569
1085
- msgid "Tooltip Background Color:"
 
1086
  msgstr ""
1087
 
1088
- #: ../custom-contact-forms-admin.php:1572
1089
- msgid "(ex: 000000 or black)"
1090
  msgstr ""
1091
 
1092
- #: ../custom-contact-forms-admin.php:1578
1093
- #: ../custom-contact-forms-admin.php:1952
1094
- msgid "Field Border Color:"
1095
  msgstr ""
1096
 
1097
- #: ../custom-contact-forms-admin.php:1585
1098
- #: ../custom-contact-forms-admin.php:1935
1099
- msgid "Form Border Style:"
1100
  msgstr ""
1101
 
1102
- #: ../custom-contact-forms-admin.php:1593
1103
- #: ../custom-contact-forms-admin.php:1947
1104
- msgid "Form Border Color:"
1105
  msgstr ""
1106
 
1107
- #: ../custom-contact-forms-admin.php:1596
1108
- msgid "(ex: 000000)"
1109
  msgstr ""
1110
 
1111
- #: ../custom-contact-forms-admin.php:1600
1112
- #: ../custom-contact-forms-admin.php:1942
1113
- msgid "Form Border Width:"
1114
  msgstr ""
1115
 
1116
- #: ../custom-contact-forms-admin.php:1603
1117
- msgid "(ex: 1px)"
1118
  msgstr ""
1119
 
1120
- #: ../custom-contact-forms-admin.php:1607
1121
- #: ../custom-contact-forms-admin.php:1785
1122
- msgid "Form Width:"
 
 
1123
  msgstr ""
1124
 
1125
- #: ../custom-contact-forms-admin.php:1610
1126
- msgid "(ex: 100px or 50%)"
 
 
 
1127
  msgstr ""
1128
 
1129
- #: ../custom-contact-forms-admin.php:1614
1130
- msgid "Form Font Family:"
 
1131
  msgstr ""
1132
 
1133
- #: ../custom-contact-forms-admin.php:1617
1134
- msgid "(ex: Verdana, Tahoma, Arial)"
1135
  msgstr ""
1136
 
1137
- #: ../custom-contact-forms-admin.php:1621
1138
- #: ../custom-contact-forms-admin.php:1828
1139
- msgid "Button Width:"
1140
  msgstr ""
1141
 
1142
- #: ../custom-contact-forms-admin.php:1624
1143
- msgid "(ex: 100px, 30%, auto)"
1144
  msgstr ""
1145
 
1146
- #: ../custom-contact-forms-admin.php:1628
1147
- #: ../custom-contact-forms-admin.php:1833
1148
- msgid "Button Height:"
1149
  msgstr ""
1150
 
1151
- #: ../custom-contact-forms-admin.php:1631
1152
- msgid "(ex: 100px or 30%)"
1153
  msgstr ""
1154
 
1155
- #: ../custom-contact-forms-admin.php:1635
1156
- #: ../custom-contact-forms-admin.php:1874
1157
- msgid "Button Font Size:"
1158
  msgstr ""
1159
 
1160
- #: ../custom-contact-forms-admin.php:1642
1161
- #: ../custom-contact-forms-admin.php:1913
1162
- msgid "Button Font Color:"
1163
  msgstr ""
1164
 
1165
- #: ../custom-contact-forms-admin.php:1649
1166
- #: ../custom-contact-forms-admin.php:1838
1167
- msgid "Field Background Color:"
1168
  msgstr ""
1169
 
1170
- #: ../custom-contact-forms-admin.php:1656
1171
- #: ../custom-contact-forms-admin.php:1879
1172
- msgid "Form Padding:"
1173
  msgstr ""
1174
 
1175
- #: ../custom-contact-forms-admin.php:1663
1176
- #: ../custom-contact-forms-admin.php:1843
1177
- msgid "Title Margin:"
1178
  msgstr ""
1179
 
1180
- #: ../custom-contact-forms-admin.php:1670
1181
- #: ../custom-contact-forms-admin.php:1805
1182
- msgid "Dropdown Width:"
1183
  msgstr ""
1184
 
1185
- #: ../custom-contact-forms-admin.php:1673
1186
- msgid "(ex: 30px, 20%, or auto)"
1187
  msgstr ""
1188
 
1189
- #: ../custom-contact-forms-admin.php:1677
1190
- msgid "Success Popover Border Color:"
1191
  msgstr ""
1192
 
1193
- #: ../custom-contact-forms-admin.php:1684
1194
- msgid "Success Popover Font Size:"
1195
  msgstr ""
1196
 
1197
- #: ../custom-contact-forms-admin.php:1691
1198
- msgid "Success Popover Height:"
1199
  msgstr ""
1200
 
1201
- #: ../custom-contact-forms-admin.php:1694
1202
- msgid "(ex: 200px, 6em, 50%)"
1203
  msgstr ""
1204
 
1205
- #: ../custom-contact-forms-admin.php:1698
1206
- #: ../custom-contact-forms-admin.php:1971
1207
- msgid "Field Border Roundness:"
1208
  msgstr ""
1209
 
1210
- #: ../custom-contact-forms-admin.php:1701
1211
- msgid "(ex: 6px, or 0px)"
1212
  msgstr ""
1213
 
1214
- #: ../custom-contact-forms-admin.php:1705
1215
- #: ../custom-contact-forms-admin.php:1774
1216
- #: ../custom-contact-forms-admin.php:1891
1217
- msgid "Tooltip"
1218
  msgstr ""
1219
 
1220
- #: ../custom-contact-forms-admin.php:1706
1221
- #: ../custom-contact-forms-admin.php:1775
1222
- #: ../custom-contact-forms-admin.php:1892
1223
- msgid "A tooltip is the little box that fades in displaying 'Field Instructions' when a user selects a particular field."
1224
  msgstr ""
1225
 
1226
- #: ../custom-contact-forms-admin.php:1707
1227
- #: ../custom-contact-forms-admin.php:1886
1228
- msgid "Font Size:"
1229
  msgstr ""
1230
 
1231
- #: ../custom-contact-forms-admin.php:1714
1232
- msgid "Tooltip Font Color:"
1233
  msgstr ""
1234
 
1235
- #: ../custom-contact-forms-admin.php:1717
1236
- msgid "(ex: ffffff or white)"
1237
  msgstr ""
1238
 
1239
- #: ../custom-contact-forms-admin.php:1720
1240
- msgid "Create Style"
1241
  msgstr ""
1242
 
1243
- #: ../custom-contact-forms-admin.php:1728
1244
- msgid "Manage Form Styles"
1245
  msgstr ""
1246
 
1247
- #: ../custom-contact-forms-admin.php:1750
1248
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:125
1249
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:178
1250
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:206
1251
- msgid "Slug:"
1252
  msgstr ""
1253
 
1254
- #: ../custom-contact-forms-admin.php:1755
1255
- msgid "Font Family:"
1256
  msgstr ""
1257
 
1258
- #: ../custom-contact-forms-admin.php:1760
1259
- msgid "Textarea Background"
1260
  msgstr ""
1261
 
1262
- #: ../custom-contact-forms-admin.php:1762
1263
- msgid "Color:"
1264
  msgstr ""
1265
 
1266
- #: ../custom-contact-forms-admin.php:1767
1267
- #: ../custom-contact-forms-admin.php:1815
1268
- #: ../custom-contact-forms-admin.php:1848
1269
- #: ../custom-contact-forms-admin.php:1884
1270
- #: ../custom-contact-forms-admin.php:1923
1271
- #: ../custom-contact-forms-admin.php:1964
1272
- msgid "Success Popover"
1273
  msgstr ""
1274
 
1275
- #: ../custom-contact-forms-admin.php:1769
1276
- msgid "Border Color:"
1277
  msgstr ""
1278
 
1279
- #: ../custom-contact-forms-admin.php:1776
1280
- #: ../custom-contact-forms-admin.php:1925
1281
- msgid "Font Color:"
1282
  msgstr ""
1283
 
1284
- #: ../custom-contact-forms-admin.php:1782
1285
- msgid "Delete Style"
1286
  msgstr ""
1287
 
1288
- #: ../custom-contact-forms-admin.php:1795
1289
- msgid "Textarea Width:"
1290
  msgstr ""
1291
 
1292
- #: ../custom-contact-forms-admin.php:1800
1293
- msgid "Textarea Height:"
1294
  msgstr ""
1295
 
1296
- #: ../custom-contact-forms-admin.php:1817
1297
- msgid "Height:"
1298
  msgstr ""
1299
 
1300
- #: ../custom-contact-forms-admin.php:1893
1301
- msgid "Background Color:"
1302
  msgstr ""
1303
 
1304
- #: ../custom-contact-forms-admin.php:1930
1305
- msgid "Tooltip Font Size:"
1306
  msgstr ""
1307
 
1308
- #: ../custom-contact-forms-admin.php:1999
1309
- msgid "Report a Bug/Suggest a Feature"
1310
  msgstr ""
1311
 
1312
- #: ../custom-contact-forms-admin.php:2006
1313
- msgid "Your Name:"
1314
  msgstr ""
1315
 
1316
- #: ../custom-contact-forms-admin.php:2012
1317
- msgid "Your Email:"
1318
  msgstr ""
1319
 
1320
- #: ../custom-contact-forms-admin.php:2018
1321
- msgid "Your Message:"
1322
  msgstr ""
1323
 
1324
- #: ../custom-contact-forms-admin.php:2024
1325
- msgid "Purpose of this message:"
1326
  msgstr ""
1327
 
1328
- #: ../custom-contact-forms-admin.php:2034
1329
- msgid "Plugin Question"
1330
  msgstr ""
1331
 
1332
- #: ../custom-contact-forms-admin.php:2040
1333
- msgid "Send Message"
1334
  msgstr ""
1335
 
1336
- #: ../custom-contact-forms-admin.php:2048
1337
- msgid "Custom HTML Forms (Advanced)"
1338
  msgstr ""
1339
 
1340
- #: ../custom-contact-forms-admin.php:2052
1341
- msgid ""
1342
- "If you know HTML and simply want to use this plugin to process form requests, this feature is for you. \n"
1343
- "\t\t\t\t\tThe following HTML is a the framework to which you must adhere. In order for your form to work you MUST do the following: a) Keep the form action/method the same (yes the action is supposed to be empty), b) Include all the hidden fields shown below, c) provide a \n"
1344
- "\t\t\t\t\thidden field with a success message or thank you page (both hidden fields are included below, you must choose one or the other and fill in the value part of the input field appropriately."
1345
  msgstr ""
1346
 
1347
- #: ../custom-contact-forms-admin.php:2059
1348
- msgid "Thank you for filling out our form!"
1349
  msgstr ""
1350
 
1351
- #: ../custom-contact-forms-admin.php:2064
1352
- msgid ""
1353
- "Paste all this code into a page or post and edit it to your liking. It is recommended you only use this feature if you are experienced with HTML. \n"
1354
- "The success_message field will add a popover containing the message when the form is completed successfully, the thank_you_page field will force \n"
1355
- "the user to be redirected to that specific page on successful form completion. The required_fields hidden field is optional; to use it seperate \n"
1356
- "the field names you want required by commas. Remember to use underscores instead of spaces in field names!"
1357
  msgstr ""
1358
 
1359
- #: ../custom-contact-forms-admin.php:2075
1360
  msgid "Export"
1361
  msgstr ""
1362
 
1363
- #: ../custom-contact-forms-admin.php:2080
1364
  msgid ""
1365
  "Preforming a Custom Contact Forms export will create a file of the form \n"
1366
  "\t\t\t\t\t\tccf-export-xxxx.sql on your web server. The file created contains SQL that \n"
1367
  "\t\t\t\t\t\twill recreate all the plugin data on any Wordpress installation. After Custom Contact Forms creates the export file, you will be prompted to download it. You can use this file as a backup in case your Wordpress database gets ruined."
1368
  msgstr ""
1369
 
1370
- #: ../custom-contact-forms-admin.php:2084
1371
  msgid "Export All CCF Plugin Content"
1372
  msgstr ""
1373
 
1374
- #: ../custom-contact-forms-admin.php:2090
1375
  msgid "Import"
1376
  msgstr ""
1377
 
1378
- #: ../custom-contact-forms-admin.php:2096
1379
  msgid "Browse to a CCF .sql export file to import Custom Contact Form data from another Wordpress installation to this one. Pressing the 'Clear and Import' button deletes all current data and then imports the selected file; this will not work for merging to data!. Clearing all CCF data before importing prevents any conflicts from occuring. Before you attempt an import, you should always download a backup, by clicking the 'Export All' button."
1380
  msgstr ""
1381
 
1382
- #: ../custom-contact-forms-admin.php:2099
1383
  msgid "Choose What You Want to Use from the Import File:"
1384
  msgstr ""
1385
 
1386
- #: ../custom-contact-forms-admin.php:2105
1387
  msgid "Use General Settings"
1388
  msgstr ""
1389
 
1390
- #: ../custom-contact-forms-admin.php:2111
1391
- #: ../custom-contact-forms-admin.php:2129
1392
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:8
1393
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:199
1394
  msgid "Forms"
1395
  msgstr ""
1396
 
1397
- #: ../custom-contact-forms-admin.php:2117
1398
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:26
1399
  msgid "Form Submissions"
1400
  msgstr ""
1401
 
1402
- #: ../custom-contact-forms-admin.php:2123
1403
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:11
1404
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:49
1405
  msgid "Fields"
1406
  msgstr ""
1407
 
1408
- #: ../custom-contact-forms-admin.php:2135
1409
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:14
1410
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:171
1411
  msgid "Field Options"
1412
  msgstr ""
1413
 
1414
- #: ../custom-contact-forms-admin.php:2141
1415
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:17
1416
  msgid "Styles"
1417
  msgstr ""
1418
 
1419
- #: ../custom-contact-forms-admin.php:2147
1420
  msgid "Choose an Import File:"
1421
  msgstr ""
1422
 
1423
- #: ../custom-contact-forms-admin.php:2151
1424
  msgid "Clear and Import"
1425
  msgstr ""
1426
 
1427
- #: ../custom-contact-forms-admin.php:2153
1428
  msgid "Yes, I want to do this and have created a backup."
1429
  msgstr ""
1430
 
1431
- #: ../custom-contact-forms-admin.php:2160
1432
- msgid "Custom Contact Forms Plugin News"
1433
- msgstr ""
1434
-
1435
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:3
1436
  msgid "How To Use Custom Contact Forms"
1437
  msgstr ""
1438
 
1439
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:23
 
 
 
 
 
1440
  msgid "Import/Export"
1441
  msgstr ""
1442
 
1443
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:30
1444
  msgid "Introduction"
1445
  msgstr ""
1446
 
1447
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:33
1448
  msgid ""
1449
  "CCF is an extremely intuitive plugin allowing you to create any type of contact form you can imagine. CCF is very user friendly but with possibilities comes complexity. It is recommend that you click the button below to create default fields, field options, and forms.\n"
1450
  " The default content will help you get a feel for the amazing things you can accomplish with this plugin. This popover only shows automatically the first time you visit the admin page;"
1451
  msgstr ""
1452
 
1453
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:36
1454
  msgid "if you want to view this popover again, click the 'Show Plugin Usage Popover'"
1455
  msgstr ""
1456
 
1457
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:38
1458
  msgid "in the instruction area of the admin page."
1459
  msgstr ""
1460
 
1461
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:44
 
 
 
 
1462
  msgid "Below is a basic usage outline of the four pillars of this plugin: fields, field options, styles, and forms. Another useful part of the plugin is the 'Custom HTML Feature' which allows you to write the form HTML yourself using the plugin simply as a form processor; this is great if you are a web developer with HTML experience. Also explained below is the 'Saved Form Submissions' feature which displays all form submissions in the admin panel."
1463
  msgstr ""
1464
 
1465
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:52
1466
  msgid "Fields are the actual input boxes in which users enter their information. There are six types of fields that you can attach to your forms.!"
1467
  msgstr ""
1468
 
1469
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:56
1470
  msgid "Text:"
1471
  msgstr ""
1472
 
1473
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:59
1474
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:66
1475
  msgid "This is a text field"
1476
  msgstr ""
1477
 
1478
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:63
1479
  msgid "Textarea:"
1480
  msgstr ""
1481
 
1482
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:70
1483
  msgid "Dropdown:"
1484
  msgstr ""
1485
 
1486
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:75
1487
  msgid "This is a dropdown field"
1488
  msgstr ""
1489
 
1490
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:78
1491
  msgid "Field Option 2!"
1492
  msgstr ""
1493
 
1494
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:81
1495
  msgid "Field Option 3!"
1496
  msgstr ""
1497
 
1498
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:84
1499
  msgid "Field Option 4!"
1500
  msgstr ""
1501
 
1502
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:87
1503
  msgid "Unlimited # of options allowed"
1504
  msgstr ""
1505
 
1506
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:93
1507
  msgid "Radio:"
1508
  msgstr ""
1509
 
1510
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:97
1511
  msgid "A radio field"
1512
  msgstr ""
1513
 
1514
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:99
1515
  msgid "Field Option 2"
1516
  msgstr ""
1517
 
1518
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:101
1519
  msgid "Field Option 3"
1520
  msgstr ""
1521
 
1522
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:105
1523
  msgid "Checkbox:"
1524
  msgstr ""
1525
 
1526
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:109
1527
  msgid "This is a checkbox field"
1528
  msgstr ""
1529
 
1530
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:113
1531
  msgid "(advanced) Hidden:"
1532
  msgstr ""
1533
 
1534
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:115
1535
  msgid "These fields are hidden (obviously), they allow you to pass hidden information within your forms. Great for using other form processors like Aweber or InfusionSoft."
1536
  msgstr ""
1537
 
1538
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:119
1539
  msgid "There are a variety of different options that you can use when creating a field,"
1540
  msgstr ""
1541
 
1542
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:121
1543
  msgid "denotes something required:"
1544
  msgstr ""
1545
 
1546
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:127
1547
  msgid "A slug is simply a way to identify your field. It can only contain underscores, letters, and numbers and must be unique."
1548
  msgstr ""
1549
 
1550
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:137
1551
  msgid "The six field types you can choose from are explained above."
1552
  msgstr ""
1553
 
1554
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:142
1555
  msgid "This is the initial value of the field. If you set the type as checkbox, it is recommend you set this to what the checkbox is implying. For example if I were creating the checkbox 'Are you human?', I would set the initial value to 'Yes'. If you set the field type as 'Dropdown' or 'Radio', you should enter the slug of the field option you would like initially selected (or just leave it blank and the first option attached will be selected)."
1556
  msgstr ""
1557
 
1558
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:147
1559
  msgid "This allows you to limit the amount of characters a user can enter in a field (does not apply to textareas as of version 3.5.5)"
1560
  msgstr ""
1561
 
1562
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:152
1563
  msgid "If a field is required and a user leaves it blank, the plugin will display an error message explaining the problem. The user will then have to go back and fill in the field properly."
1564
  msgstr ""
1565
 
1566
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:157
1567
  msgid "If this is filled out, a stylish tooltip popover displaying this text will show when the field is selected. This will only work if JQuery is enabled in general options."
1568
  msgstr ""
1569
 
1570
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:160
 
 
 
 
 
 
 
 
1571
  msgid "Field Options:"
1572
  msgstr ""
1573
 
1574
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:162
1575
  msgid "After you create a field, if it's field type is radio or dropdown, you can attach field options to the field. Field options are explained in the next section."
1576
  msgstr ""
1577
 
1578
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:166
1579
- msgid "The last important thing related to fields are <span>Fixed Fields</span>. Fixed Fields are special fields that come already created within the plugin such as the captcha spam blocker and email field. Fixed Fields do special things that you wouldn't be able to accomplish with normally; they cannot be deleted or created. If you use the fixedEmail field, as opposed to creating your own email field. the users email will be checked to make sure it is valid, if it isn't a form error will be displayed."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1580
  msgstr ""
1581
 
1582
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:174
 
 
 
 
 
 
 
 
1583
  msgid "In the field section above, look at the radio or dropdown fields. See how they have multiple options within the field? Those are called Field Options. Field Options have their own manager. There are only three things you must fill in to create a field option."
1584
  msgstr ""
1585
 
1586
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:180
1587
  msgid "Used to identify the field option, solely for admin purposes; must be unique, and contain only letters, numbers, and underscores. Example: 'slug_one'."
1588
  msgstr ""
1589
 
1590
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:185
1591
  msgid "This is what is shown to the user in the dropdown or radio field."
1592
  msgstr ""
1593
 
1594
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:190
1595
  msgid "This is the actual value of the option which isn't shown to the user. This can be the same thing as the label. An example pairing of label => value is: 'The color green' => 'green' or 'Yes' => '1'. The option value is behind the scences; unseen by the user, but when a user fills out the form, the option value is what is actually emailed to you and stored in the database. For dropdown fields the option value is optional, <span>for radio fields it is required</span>."
1596
  msgstr ""
1597
 
1598
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:194
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1599
  msgid "Once you create field options, you can attach them (in the field manager) to radio and dropdown fields (that are already created). It is important to remember that after you create a dropdown or radio field, they will not work until you attach one or more field options."
1600
  msgstr ""
1601
 
1602
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:202
1603
  msgid "Forms bring everything together. Each form you create in the form manager shows a code to display that form in posts/pages as well as theme files. The post/page form display code looks like: [customcontact id=FORMID]. There are a number of parameters that you can fill out when creating and managing each of your forms."
1604
  msgstr ""
1605
 
1606
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:208
1607
  msgid "A slug is simply a way to identify your form. It can only contain underscores, letters, and numbers and must be unique. Example 'my_contact_form'"
1608
  msgstr ""
1609
 
1610
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:213
1611
  msgid "The form title is heading text shown at the top of the form to users. Here's an example: 'My Contact Form'."
1612
  msgstr ""
1613
 
1614
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:218
 
 
 
 
1615
  msgid "If you don't know what this is leave it as 'Post'. This allows you to change the way a form sends user information."
1616
  msgstr ""
1617
 
1618
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:223
 
 
 
 
1619
  msgid "This allows you to process your forms using 3rd party services or your own scripts. If you don't know what this is, then leave it blank. This is useful if you use a service like Aweber or InfusionSoft."
1620
  msgstr ""
1621
 
1622
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:228
1623
  msgid "This allows you to apply styles you create in the style manager to your forms. If you haven't created a custom style yet, just choose 'Default'."
1624
  msgstr ""
1625
 
1626
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:233
1627
  msgid "Here, you can specify the text that shows on the submit button."
1628
  msgstr ""
1629
 
1630
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:243
 
 
 
 
1631
  msgid "Specify the email address(es) that should receive all form submissions. Seperate multiple email addresses with semi-colons (ex: email1@gmail.com;email2@gmail.com;email3@gmail.com). If you leave this blank it will revert to the default specified in general settings. You can set forms not to send email in General Settings."
1632
  msgstr ""
1633
 
1634
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:248
1635
  msgid "Will be displayed in a popover after the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
1636
  msgstr ""
1637
 
1638
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:258
1639
  msgid "If this is filled out, users will be sent to this page when they successfully fill out the form. If it is left blank, a popover showing the form's 'success message' will be displayed on successful form submission."
1640
  msgstr ""
1641
 
1642
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:261
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1643
  msgid "Attach Fields:"
1644
  msgstr ""
1645
 
1646
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:263
1647
- msgid "After creating a form you are given the option to attach (and dettach) fields to that specific form. Forms are useless until you attach fields."
1648
  msgstr ""
1649
 
1650
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:267
1651
  msgid "The form success message and success title apply to a popover that fades in after someone successfully completes a form (that does not have a custom success URL provided). The image below will help to give you a feel to how the popover will look and where the title and message actually show up."
1652
  msgstr ""
1653
 
1654
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:273
1655
  msgid "Style Manager"
1656
  msgstr ""
1657
 
1658
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:276
1659
  msgid "The style manager allows you to customize the appearance of forms without any knowledge of CSS. There are a ton of parameters you can fill out with each style and all of them are pretty self-explanitory. After you create a style, you need to go to the form manager and set the form style to the new style you created (the slug will be what shows in the 'Form Style' dropdown)."
1660
  msgstr ""
1661
 
1662
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:279
1663
  msgid "The image below will help you better understand how each style option will change your forms."
1664
  msgstr ""
1665
 
1666
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:285
1667
  msgid "Custom HTML Forms Feature (advanced)"
1668
  msgstr ""
1669
 
1670
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:288
1671
  msgid "If you know HTML and simply want to use this plugin to process form requests, this feature is for you. The following HTML is a the framework to which you must adhere. In order for your form to work you MUST do the following:"
1672
  msgstr ""
1673
 
1674
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:292
1675
  msgid "Keep the form action/method the same (yes the action is supposed to be empty)."
1676
  msgstr ""
1677
 
1678
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:295
1679
  msgid "Include all the hidden fields shown below."
1680
  msgstr ""
1681
 
1682
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:298
1683
  msgid "Provide a hidden field with a success message or thank you page (both hidden fields are included below, you must choose one or the other and fill in the value part of the input field appropriately)."
1684
  msgstr ""
1685
 
1686
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:302
1687
  msgid "Just to be clear, you don't edit the code in the Custom HTML Forms feature within the admin panel. Instead, you copy the code in to the page, post, or theme file you want to display a form, then edit the code to look how you want following the guidelines provided above."
1688
  msgstr ""
1689
 
1690
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:310
1691
  msgid "This features saves each user form submission. All the fields attached to the form along with the time of submission and form URL are saved in the database and displayed in a stylish format in the admin panel."
1692
  msgstr ""
1693
 
1694
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:315
1695
  msgid "Import / Export"
1696
  msgstr ""
1697
 
1698
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:318
1699
  msgid ""
1700
  "Import/export is a new feature that allows you to transfer forms, fields, field options, styles and everything else saved by the plugin between Wordpress installations. Clicking the Export All button will create a .SQL file for download. With the .SQL export file you can use the importer within the CCF plugin admin page to import the .SQL file. The built-in importer is completely safe as long as you only import files that have been generated by the CCF exporter. \n"
1701
  " You can also use PHPMyAdmin or any other MySQL database administration tool to run the import file. Importing a .SQL file will never overwrite any existing data. \n"
@@ -1703,39 +1761,56 @@ msgid ""
1703
  " If you are importing without using the built-in importer (such as PHPMyAdmin), then note the following: You should only run the import file on Wordpress installations that already have Custom Contact Forms installed; also you will need to change the table prefix for each query within the .SQL file."
1704
  msgstr ""
1705
 
1706
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:323
1707
  msgid "Custom Contact Forms allows you to import data in different ways."
1708
  msgstr ""
1709
 
1710
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:325
1711
  msgid "Clear and Import:"
1712
  msgstr ""
1713
 
1714
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:325
1715
  msgid "This is the safest way to import because it deletes all current content before importing. This is important because it prevents occurences of conflicting data ID's or slugs."
1716
  msgstr ""
1717
 
1718
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:327
1719
  msgid "You can also export data in different ways."
1720
  msgstr ""
1721
 
1722
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:329
1723
  msgid "Export All:"
1724
  msgstr ""
1725
 
1726
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:329
1727
  msgid "This exports all custom contact form data including your general settings in SQL format. This is allows you to easily create backups."
1728
  msgstr ""
1729
 
1730
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:331
1731
  msgid "More import/export methods will be added in the future. Always create a backup before attempting an import! * Note: If you are having problems getting the importer/exporter to work, try CHMODing the import/ and export/ directories to 0777."
1732
  msgstr ""
1733
 
1734
- #: ../modules/widget/custom-contact-forms-widget.php:43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1735
  msgid "Choose a Form:"
1736
  msgstr ""
1737
 
1738
- #: ../modules/widget/custom-contact-forms-widget.php:54
1739
  msgid "Create a Form"
1740
  msgstr ""
1741
 
2
  msgstr ""
3
  "Project-Id-Version: custom-contact-forms\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-01-24 01:22-0500\n"
6
+ "PO-Revision-Date: 2011-01-24 01:22-0500\n"
7
  "Last-Translator: Taylor Lovett <sdfds@sfs.com>\n"
8
  "Language-Team: TaylorLovett.com <admin@taylorlovett.com>\n"
9
  "MIME-Version: 1.0\n"
20
  "X-Poedit-SearchPath-4: ../modules/usage_popover\n"
21
  "X-Poedit-SearchPath-5: ../modules/widget\n"
22
 
23
+ #: ../custom-contact-forms-admin.php:310
24
+ #: ../custom-contact-forms-admin.php:1789
25
+ #: ../custom-contact-forms-admin.php:1920
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  msgid "Custom Contact Forms"
27
  msgstr ""
28
 
29
+ #: ../custom-contact-forms-admin.php:312
30
+ #: ../custom-contact-forms-admin.php:1791
31
+ #: ../custom-contact-forms-admin.php:1922
32
+ msgid "Plugin Usage Manual"
33
  msgstr ""
34
 
35
+ #: ../custom-contact-forms-admin.php:315
 
 
 
 
 
 
 
 
 
 
36
  msgid "Create Fields"
37
  msgstr ""
38
 
39
+ #: ../custom-contact-forms-admin.php:316
40
  msgid "Create Forms"
41
  msgstr ""
42
 
43
+ #: ../custom-contact-forms-admin.php:317
44
  msgid "Manage Fields"
45
  msgstr ""
46
 
47
+ #: ../custom-contact-forms-admin.php:318
48
+ #: ../custom-contact-forms-admin.php:716
49
  msgid "Manage Fixed Fields"
50
  msgstr ""
51
 
52
+ #: ../custom-contact-forms-admin.php:319
53
+ #: ../custom-contact-forms-admin.php:944
54
  msgid "Manage Forms"
55
  msgstr ""
56
 
57
+ #: ../custom-contact-forms-admin.php:320
 
 
 
 
58
  msgid "Create Styles"
59
  msgstr ""
60
 
61
+ #: ../custom-contact-forms-admin.php:321
62
  msgid "Manage Styles"
63
  msgstr ""
64
 
65
+ #: ../custom-contact-forms-admin.php:322
66
+ #: ../custom-contact-forms-admin.php:828
67
  msgid "Manage Field Options"
68
  msgstr ""
69
 
70
+ #: ../custom-contact-forms-admin.php:323
71
+ #: ../custom-contact-forms-admin.php:1721
72
  msgid "Suggest a Feature"
73
  msgstr ""
74
 
75
+ #: ../custom-contact-forms-admin.php:324
76
+ #: ../custom-contact-forms-admin.php:1718
77
  msgid "Bug Report"
78
  msgstr ""
79
 
80
+ #: ../custom-contact-forms-admin.php:325
81
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:23
82
  msgid "Custom HTML Forms"
83
  msgstr ""
84
 
85
+ #: ../custom-contact-forms-admin.php:326
 
 
 
 
86
  msgid "Plugin News"
87
  msgstr ""
88
 
89
+ #: ../custom-contact-forms-admin.php:347
90
  msgid "Create A Form Field"
91
  msgstr ""
92
 
93
+ #: ../custom-contact-forms-admin.php:354
94
  msgid "Field Slug:"
95
  msgstr ""
96
 
97
+ #: ../custom-contact-forms-admin.php:358
98
  msgid "This is just a unique way for CCF to refer to your field. Must be unique from other slugs and contain only underscores and alphanumeric characters."
99
  msgstr ""
100
 
101
+ #: ../custom-contact-forms-admin.php:362
102
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:133
103
  msgid "Field Label:"
104
  msgstr ""
105
 
106
+ #: ../custom-contact-forms-admin.php:366
107
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:135
108
  msgid "The field label is displayed next to the field and is visible to the user."
109
  msgstr ""
110
 
111
+ #: ../custom-contact-forms-admin.php:370
112
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:138
113
  msgid "Field Type:"
114
  msgstr ""
115
 
116
+ #: ../custom-contact-forms-admin.php:383
117
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:143
118
  msgid "Initial Value:"
119
  msgstr ""
120
 
121
+ #: ../custom-contact-forms-admin.php:388
122
  msgid ""
123
  "This is the initial value of the field. If you set the type as checkbox, it is recommend you set this to what the checkbox is implying. For example if I were creating the checkbox \n"
124
  "\t\t\t\t\t\t'Are you human?', I would set the initial value to 'Yes'."
125
  msgstr ""
126
 
127
+ #: ../custom-contact-forms-admin.php:390
128
  msgid "If you set the field type as 'Dropdown' or 'Radio', you should enter the slug of the"
129
  msgstr ""
130
 
131
+ #: ../custom-contact-forms-admin.php:391
 
132
  msgid "Create a Field Option"
133
  msgstr ""
134
 
135
+ #: ../custom-contact-forms-admin.php:391
136
  msgid "field option"
137
  msgstr ""
138
 
139
+ #: ../custom-contact-forms-admin.php:392
140
  msgid "you would like initially selected."
141
  msgstr ""
142
 
143
+ #: ../custom-contact-forms-admin.php:396
144
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:148
145
  msgid "Max Length:"
146
  msgstr ""
147
 
148
+ #: ../custom-contact-forms-admin.php:400
149
  msgid "0 for no limit; only applies to Text fields"
150
  msgstr ""
151
 
152
+ #: ../custom-contact-forms-admin.php:404
153
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:153
154
  msgid "Required Field:"
155
  msgstr ""
156
 
157
+ #: ../custom-contact-forms-admin.php:408
158
+ #: ../custom-contact-forms-admin.php:606
159
+ #: ../custom-contact-forms-admin.php:761
160
+ #: ../custom-contact-forms-admin.php:868
161
+ #: ../custom-contact-forms-admin.php:921
162
+ #: ../custom-contact-forms-admin.php:1955
163
+ #: ../custom-contact-forms-admin.php:2067
164
+ #: ../custom-contact-forms-admin.php:2099
165
  msgid "No"
166
  msgstr ""
167
 
168
+ #: ../custom-contact-forms-admin.php:411
169
+ #: ../custom-contact-forms-admin.php:603
170
+ #: ../custom-contact-forms-admin.php:758
171
+ #: ../custom-contact-forms-admin.php:768
172
+ #: ../custom-contact-forms-admin.php:868
173
+ #: ../custom-contact-forms-admin.php:921
174
+ #: ../custom-contact-forms-admin.php:1952
175
+ #: ../custom-contact-forms-admin.php:2064
176
+ #: ../custom-contact-forms-admin.php:2096
177
  msgid "Yes"
178
  msgstr ""
179
 
180
+ #: ../custom-contact-forms-admin.php:415
181
  msgid "If a field is required and a user leaves it blank, the plugin will display an error message (which you can customize using 'Field Error') explaining the problem."
182
  msgstr ""
183
 
184
+ #: ../custom-contact-forms-admin.php:419
185
+ #: ../custom-contact-forms-admin.php:625
186
+ #: ../custom-contact-forms-admin.php:790
187
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:158
188
  msgid "Field Instructions:"
189
  msgstr ""
190
 
191
+ #: ../custom-contact-forms-admin.php:423
192
+ #: ../custom-contact-forms-admin.php:623
193
+ #: ../custom-contact-forms-admin.php:788
194
  msgid "If this is filled out, a tooltip popover displaying this text will show when the field is selected."
195
  msgstr ""
196
 
197
+ #: ../custom-contact-forms-admin.php:427
198
+ #: ../custom-contact-forms-admin.php:630
199
+ #: ../custom-contact-forms-admin.php:784
200
  msgid "Field Class:"
201
  msgstr ""
202
 
203
+ #: ../custom-contact-forms-admin.php:431
204
  msgid "If you manage your own .css stylesheet, you can use this to attach a class to this field. Leaving this blank will do nothing."
205
  msgstr ""
206
 
207
+ #: ../custom-contact-forms-admin.php:435
208
+ #: ../custom-contact-forms-admin.php:635
209
+ #: ../custom-contact-forms-admin.php:795
210
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:163
211
  msgid "Field Error:"
212
  msgstr ""
213
 
214
+ #: ../custom-contact-forms-admin.php:439
215
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:165
216
  msgid "If a user leaves this field blank and the field is required, this error message will be shown. A generic default will show if left blank."
217
  msgstr ""
218
 
219
+ #: ../custom-contact-forms-admin.php:444
220
  msgid "Create Field"
221
  msgstr ""
222
 
223
+ #: ../custom-contact-forms-admin.php:446
224
+ msgid "If this is a dropdown or radio field, you should go to the field manager below to attach field options after you create it."
225
+ msgstr ""
226
+
227
+ #: ../custom-contact-forms-admin.php:455
228
  msgid "Create A Form"
229
  msgstr ""
230
 
231
+ #: ../custom-contact-forms-admin.php:462
232
  msgid "Form Slug:"
233
  msgstr ""
234
 
235
+ #: ../custom-contact-forms-admin.php:466
236
  msgid "This is just a unique way for CCF to refer to your form. Must be unique from other slugs and contain only underscores and alphanumeric characters."
237
  msgstr ""
238
 
239
+ #: ../custom-contact-forms-admin.php:470
240
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:243
241
  msgid "Form Title:"
242
  msgstr ""
243
 
244
+ #: ../custom-contact-forms-admin.php:473
245
  msgid "This text is displayed above the form as the heading."
246
  msgstr ""
247
 
248
+ #: ../custom-contact-forms-admin.php:477
249
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:258
250
+ msgid "Form Style:"
 
 
 
 
 
 
 
 
 
251
  msgstr ""
252
 
253
+ #: ../custom-contact-forms-admin.php:482
254
+ msgid "Click to create a style"
255
  msgstr ""
256
 
257
+ #: ../custom-contact-forms-admin.php:485
258
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:263
259
+ msgid "Submit Button Text:"
260
  msgstr ""
261
 
262
+ #: ../custom-contact-forms-admin.php:491
263
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:273
264
+ msgid "Form Destination Email:"
265
  msgstr ""
266
 
267
+ #: ../custom-contact-forms-admin.php:495
268
+ msgid "Will receive all submissions from this form; if left blank it will use the default specified in general settings."
 
269
  msgstr ""
270
 
271
+ #: ../custom-contact-forms-admin.php:499
272
+ msgid "Form Email Subject:"
 
 
273
  msgstr ""
274
 
275
+ #: ../custom-contact-forms-admin.php:503
276
+ msgid "When submitted and configured accordingly, the form will send an email with this subject."
 
277
  msgstr ""
278
 
279
+ #: ../custom-contact-forms-admin.php:507
280
+ msgid "Form Email Name:"
 
281
  msgstr ""
282
 
283
+ #: ../custom-contact-forms-admin.php:511
284
+ msgid "When submitted and configured accordingly, the form will send an email with this as the email 'from name'."
285
  msgstr ""
286
 
287
+ #: ../custom-contact-forms-admin.php:515
288
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:278
289
  msgid "Form Success Message:"
290
  msgstr ""
291
 
292
+ #: ../custom-contact-forms-admin.php:519
293
+ #: ../custom-contact-forms-admin.php:527
294
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:285
295
  msgid "Will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
296
  msgstr ""
297
 
298
+ #: ../custom-contact-forms-admin.php:523
299
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:283
300
  msgid "Form Success Message Title:"
301
  msgstr ""
302
 
303
+ #: ../custom-contact-forms-admin.php:531
304
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:288
305
  msgid "Custom Success URL:"
306
  msgstr ""
307
 
308
+ #: ../custom-contact-forms-admin.php:535
309
  msgid "If this is filled out, users will be sent to this page when they successfully fill out this form. If it is left blank, a popover showing the form's 'success message' will be displayed on form success."
310
  msgstr ""
311
 
312
+ #: ../custom-contact-forms-admin.php:538
313
+ msgid "Who Can View This Form:"
314
+ msgstr ""
315
+
316
+ #: ../custom-contact-forms-admin.php:554
317
+ msgid "Choose which types of users should be able to view this form."
318
+ msgstr ""
319
+
320
+ #: ../custom-contact-forms-admin.php:558
321
  msgid "Create Form"
322
  msgstr ""
323
 
324
+ #: ../custom-contact-forms-admin.php:560
325
+ msgid "You should got to the form manager below to attach fields to this form after you create it."
326
+ msgstr ""
327
+
328
+ #: ../custom-contact-forms-admin.php:567
329
  msgid "Manage User Fields"
330
  msgstr ""
331
 
332
+ #: ../custom-contact-forms-admin.php:574
333
+ #: ../custom-contact-forms-admin.php:698
334
+ #: ../custom-contact-forms-admin.php:723
335
+ #: ../custom-contact-forms-admin.php:810
336
+ #: ../custom-contact-forms-admin.php:837
337
+ #: ../custom-contact-forms-admin.php:846
338
+ #: ../custom-contact-forms-admin.php:952
339
+ #: ../custom-contact-forms-admin.php:1101
340
  msgid "Slug"
341
  msgstr ""
342
 
343
+ #: ../custom-contact-forms-admin.php:575
344
+ #: ../custom-contact-forms-admin.php:699
345
+ #: ../custom-contact-forms-admin.php:724
346
+ #: ../custom-contact-forms-admin.php:811
347
+ #: ../custom-contact-forms-admin.php:838
348
+ #: ../custom-contact-forms-admin.php:847
349
  msgid "Label"
350
  msgstr ""
351
 
352
+ #: ../custom-contact-forms-admin.php:576
353
+ #: ../custom-contact-forms-admin.php:700
354
+ #: ../custom-contact-forms-admin.php:725
355
+ #: ../custom-contact-forms-admin.php:812
356
  msgid "Type"
357
  msgstr ""
358
 
359
+ #: ../custom-contact-forms-admin.php:577
360
+ #: ../custom-contact-forms-admin.php:701
361
+ #: ../custom-contact-forms-admin.php:726
362
+ #: ../custom-contact-forms-admin.php:813
363
  msgid "Initial Value"
364
  msgstr ""
365
 
366
+ #: ../custom-contact-forms-admin.php:578
367
+ #: ../custom-contact-forms-admin.php:702
368
+ #: ../custom-contact-forms-admin.php:727
369
+ #: ../custom-contact-forms-admin.php:814
370
  msgid "Required"
371
  msgstr ""
372
 
373
+ #: ../custom-contact-forms-admin.php:579
374
+ #: ../custom-contact-forms-admin.php:703
375
+ #: ../custom-contact-forms-admin.php:728
376
+ #: ../custom-contact-forms-admin.php:815
377
  msgid "Maxlength"
378
  msgstr ""
379
 
380
+ #: ../custom-contact-forms-admin.php:628
381
+ #: ../custom-contact-forms-admin.php:783
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
382
  msgid "If you manage a .CSS file for your theme, you could create a class in that file and add it to this field. If the form attaching this field is using a \"Form Style\" other than the default, styles inherited from the \"Field Class\" might be overwritten."
383
  msgstr ""
384
 
385
+ #: ../custom-contact-forms-admin.php:633
386
+ #: ../custom-contact-forms-admin.php:793
387
  msgid "This lets you customize the error message displayed when this field is required and left blank."
388
  msgstr ""
389
 
390
+ #: ../custom-contact-forms-admin.php:665
391
+ msgid "Detach field options you"
 
 
 
 
392
  msgstr ""
393
 
394
+ #: ../custom-contact-forms-admin.php:667
395
+ #: ../custom-contact-forms-admin.php:1080
396
  msgid "create"
397
  msgstr ""
398
 
399
+ #: ../custom-contact-forms-admin.php:684
 
 
 
 
400
  msgid "Attach field options in the order you want them to display."
401
  msgstr ""
402
 
403
+ #: ../custom-contact-forms-admin.php:744
404
+ #: ../custom-contact-forms-admin.php:775
405
+ #: ../custom-contact-forms-admin.php:2190
406
  msgid "None"
407
  msgstr ""
408
 
 
 
 
 
409
  #: ../custom-contact-forms-admin.php:839
410
+ #: ../custom-contact-forms-admin.php:848
411
  msgid "Value"
412
  msgstr ""
413
 
414
+ #: ../custom-contact-forms-admin.php:840
415
+ #: ../custom-contact-forms-admin.php:849
416
+ msgid "Is Dead"
417
+ msgstr ""
418
+
419
+ #: ../custom-contact-forms-admin.php:876
420
  msgid "No field options have been created."
421
  msgstr ""
422
 
423
+ #: ../custom-contact-forms-admin.php:890
424
+ msgid "Create A Field Option"
425
+ msgstr ""
426
+
427
+ #: ../custom-contact-forms-admin.php:897
428
  msgid "Option Slug:"
429
  msgstr ""
430
 
431
+ #: ../custom-contact-forms-admin.php:901
432
  msgid "Used to identify this option, solely for admin purposes; must be unique, and contain only letters, numbers, and underscores. Example: 'slug_one'"
433
  msgstr ""
434
 
435
+ #: ../custom-contact-forms-admin.php:905
436
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:210
437
  msgid "Option Label:"
438
  msgstr ""
439
 
440
+ #: ../custom-contact-forms-admin.php:909
441
  msgid "This is what is shown to the user in the dropdown or radio field. Example: 'United States'"
442
  msgstr ""
443
 
444
+ #: ../custom-contact-forms-admin.php:913
445
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:215
446
  msgid "Option Value:"
447
  msgstr ""
448
 
449
+ #: ../custom-contact-forms-admin.php:915
450
  msgid "This is the actual value of the option which is not shown to the user. This can be the same thing as the label. An example pairing of label => value is: 'The color green' => 'green' or 'Yes' => '1'."
451
  msgstr ""
452
 
453
+ #: ../custom-contact-forms-admin.php:917
454
  msgid "This is the actual value of the option which is not shown to the user. This can be the same thing as the label. An example pairing of label => value is: \"The color green\" => \"green\" or \"Yes\" => \"1\"."
455
  msgstr ""
456
 
457
+ #: ../custom-contact-forms-admin.php:920
458
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:220
459
+ msgid "Is Dead Option:"
460
+ msgstr ""
461
+
462
+ #: ../custom-contact-forms-admin.php:922
463
+ msgid "A dead option is something like 'Please Select One'. This is a useful tool for required dropdown fields. If a dead option is submitted by a user for a required dropdown field, then the user will have to go back and fill out the field again."
464
+ msgstr ""
465
+
466
+ #: ../custom-contact-forms-admin.php:926
467
  msgid "Create Field Option"
468
  msgstr ""
469
 
470
+ #: ../custom-contact-forms-admin.php:936
471
  msgid "Rate This Plugin"
472
  msgstr ""
473
 
474
+ #: ../custom-contact-forms-admin.php:937
475
  msgid "We need your help to continue development! Please <span>rate this plugin</span> to show your support."
476
  msgstr ""
477
 
478
+ #: ../custom-contact-forms-admin.php:951
479
  msgid "Form Display Code"
480
  msgstr ""
481
 
482
+ #: ../custom-contact-forms-admin.php:953
483
+ #: ../custom-contact-forms-admin.php:1102
484
+ msgid "Destination Email"
485
+ msgstr ""
486
+
487
+ #: ../custom-contact-forms-admin.php:954
488
+ #: ../custom-contact-forms-admin.php:1103
489
  msgid "Title"
490
  msgstr ""
491
 
492
+ #: ../custom-contact-forms-admin.php:955
493
+ #: ../custom-contact-forms-admin.php:1104
494
  msgid "Button Text"
495
  msgstr ""
496
 
497
+ #: ../custom-contact-forms-admin.php:956
498
+ #: ../custom-contact-forms-admin.php:1105
499
  msgid "Style"
500
  msgstr ""
501
 
502
+ #: ../custom-contact-forms-admin.php:989
503
  msgid "Method"
504
  msgstr ""
505
 
506
+ #: ../custom-contact-forms-admin.php:990
507
  msgid "Form Action"
508
  msgstr ""
509
 
510
+ #: ../custom-contact-forms-admin.php:991
511
+ msgid "Email Subject"
512
+ msgstr ""
513
+
514
+ #: ../custom-contact-forms-admin.php:992
515
+ msgid "Email From Name"
516
  msgstr ""
517
 
518
+ #: ../custom-contact-forms-admin.php:993
519
  msgid "Success Message Title"
520
  msgstr ""
521
 
522
+ #: ../custom-contact-forms-admin.php:994
523
  msgid "Success Message"
524
  msgstr ""
525
 
526
+ #: ../custom-contact-forms-admin.php:995
527
  msgid "Custom Success URL"
528
  msgstr ""
529
 
530
+ #: ../custom-contact-forms-admin.php:998
531
  msgid "The Form Method is the method by which information is transfer through your form. If you aren't an expert with HTML and PHP, leave this as Post."
532
  msgstr ""
533
 
534
+ #: ../custom-contact-forms-admin.php:1002
535
  msgid "This lets you process your forms through alternate scripts. If you use a service like InfusionSoft or Aweber, set this to be the same form action as the code provided to you by that service, otherwise leave this blank."
536
  msgstr ""
537
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
538
  #: ../custom-contact-forms-admin.php:1004
539
+ msgid "This is the form email subject sent to the destination email address. If left blank, the default from General Settings will be used."
 
 
 
 
540
  msgstr ""
541
 
542
+ #: ../custom-contact-forms-admin.php:1006
543
+ msgid "This is the from name of the email sent on successful form submission. If left blank, the default from General Settings will be used."
544
  msgstr ""
545
 
546
+ #: ../custom-contact-forms-admin.php:1008
547
+ msgid "This will be displayed as the header in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
548
  msgstr ""
549
 
550
+ #: ../custom-contact-forms-admin.php:1010
551
+ msgid "This will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
552
  msgstr ""
553
 
554
+ #: ../custom-contact-forms-admin.php:1012
555
+ msgid "If this is filled out, users will be sent to this thank you page when they successfully fill out this form. If it is left blank, a popover showing the form's 'success message' will be displayed on form success."
556
  msgstr ""
557
 
558
+ #: ../custom-contact-forms-admin.php:1016
559
  msgid "The form display code above ([customcontact form=x]) will only work in Wordpress pages and posts. If you want to display this form in a theme file such as page.php, header.php, index.php, category.php, etc, then insert this PHP snippet."
560
  msgstr ""
561
 
562
+ #: ../custom-contact-forms-admin.php:1017
563
  msgid "Code to Display Form in Theme Files:"
564
  msgstr ""
565
 
566
+ #: ../custom-contact-forms-admin.php:1020
567
  msgid "This field allows you to insert HTML directly after the starting <form> tag."
568
  msgstr ""
569
 
570
+ #: ../custom-contact-forms-admin.php:1021
571
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:268
572
+ msgid "Custom Code:"
573
  msgstr ""
574
 
575
+ #: ../custom-contact-forms-admin.php:1023
576
+ msgid "If you want to show this form to only certain types of users, you can uncheck boxes accordingly. To show this form to anyone, check all the boxes."
 
577
  msgstr ""
578
 
579
+ #: ../custom-contact-forms-admin.php:1043
580
+ msgid "Attached Fields:"
 
581
  msgstr ""
582
 
583
+ #: ../custom-contact-forms-admin.php:1063
584
+ msgid "Attach fields in the order you want them displayed."
 
585
  msgstr ""
586
 
587
+ #: ../custom-contact-forms-admin.php:1067
588
+ msgid "Attach Field:"
 
589
  msgstr ""
590
 
591
+ #: ../custom-contact-forms-admin.php:1078
592
+ msgid "Attach fixed fields or ones you"
593
  msgstr ""
594
 
595
+ #: ../custom-contact-forms-admin.php:1100
596
+ msgid "Form Code"
597
  msgstr ""
598
 
599
+ #: ../custom-contact-forms-admin.php:1118
600
+ msgid "Create A Style for Your Forms"
601
  msgstr ""
602
 
603
+ #: ../custom-contact-forms-admin.php:1122
604
+ msgid "Use this manager to create styles for your forms. Each field is already filled out with nice look defaults. It is recommended you simply input a slug and click create to see the defaults before you start changing values."
605
  msgstr ""
606
 
607
+ #: ../custom-contact-forms-admin.php:1128
608
+ msgid "Style Slug:"
609
  msgstr ""
610
 
611
+ #: ../custom-contact-forms-admin.php:1131
612
+ msgid "(Must be unique)"
613
  msgstr ""
614
 
615
+ #: ../custom-contact-forms-admin.php:1135
616
+ #: ../custom-contact-forms-admin.php:1533
617
+ #: ../custom-contact-forms-admin.php:1542
618
+ msgid "Title Font Size:"
619
  msgstr ""
620
 
621
+ #: ../custom-contact-forms-admin.php:1138
622
+ msgid "(ex: 10pt, 10px, 1em)"
 
 
623
  msgstr ""
624
 
625
+ #: ../custom-contact-forms-admin.php:1142
626
+ #: ../custom-contact-forms-admin.php:1581
627
+ #: ../custom-contact-forms-admin.php:1649
628
+ msgid "Title Font Color:"
629
  msgstr ""
630
 
631
+ #: ../custom-contact-forms-admin.php:1145
632
+ #: ../custom-contact-forms-admin.php:1166
633
+ #: ../custom-contact-forms-admin.php:1230
634
+ #: ../custom-contact-forms-admin.php:1331
635
+ #: ../custom-contact-forms-admin.php:1338
636
+ #: ../custom-contact-forms-admin.php:1366
637
+ msgid "(ex: FF0000)"
638
  msgstr ""
639
 
640
+ #: ../custom-contact-forms-admin.php:1149
641
+ #: ../custom-contact-forms-admin.php:1506
642
+ msgid "Label Width:"
643
  msgstr ""
644
 
645
+ #: ../custom-contact-forms-admin.php:1152
646
+ msgid "(ex: 100px or 20%)"
647
  msgstr ""
648
 
649
+ #: ../custom-contact-forms-admin.php:1156
650
+ #: ../custom-contact-forms-admin.php:1547
651
+ msgid "Label Font Size:"
652
  msgstr ""
653
 
654
+ #: ../custom-contact-forms-admin.php:1159
655
+ #: ../custom-contact-forms-admin.php:1324
656
+ msgid "(ex: 10px, 10pt, 1em)"
657
  msgstr ""
658
 
659
+ #: ../custom-contact-forms-admin.php:1163
660
+ #: ../custom-contact-forms-admin.php:1586
661
+ msgid "Label Font Color:"
662
  msgstr ""
663
 
664
+ #: ../custom-contact-forms-admin.php:1170
665
+ #: ../custom-contact-forms-admin.php:1473
666
+ msgid "Text Field Width:"
667
  msgstr ""
668
 
669
+ #: ../custom-contact-forms-admin.php:1173
670
+ #: ../custom-contact-forms-admin.php:1180
671
+ #: ../custom-contact-forms-admin.php:1187
672
+ #: ../custom-contact-forms-admin.php:1267
673
+ msgid "(ex: 100px or 100%)"
674
  msgstr ""
675
 
676
+ #: ../custom-contact-forms-admin.php:1177
677
+ msgid "Textarea Field Width:"
678
  msgstr ""
679
 
680
+ #: ../custom-contact-forms-admin.php:1184
681
+ msgid "Textarea Field Height:"
682
  msgstr ""
683
 
684
+ #: ../custom-contact-forms-admin.php:1191
685
+ #: ../custom-contact-forms-admin.php:1552
686
+ msgid "Field Font Size:"
687
  msgstr ""
688
 
689
+ #: ../custom-contact-forms-admin.php:1194
690
+ msgid "(ex: 10px, 10pt, 1em"
691
  msgstr ""
692
 
693
+ #: ../custom-contact-forms-admin.php:1198
694
+ #: ../custom-contact-forms-admin.php:1591
695
+ msgid "Field Font Color:"
696
  msgstr ""
697
 
698
+ #: ../custom-contact-forms-admin.php:1201
699
+ #: ../custom-contact-forms-admin.php:1237
700
+ msgid "(ex: 333333)"
701
  msgstr ""
702
 
703
+ #: ../custom-contact-forms-admin.php:1205
704
+ #: ../custom-contact-forms-admin.php:1640
705
+ msgid "Field Border Style:"
706
  msgstr ""
707
 
708
+ #: ../custom-contact-forms-admin.php:1213
709
+ #: ../custom-contact-forms-admin.php:1601
710
+ msgid "Form Margin:"
711
  msgstr ""
712
 
713
+ #: ../custom-contact-forms-admin.php:1216
714
+ #: ../custom-contact-forms-admin.php:1223
715
+ #: ../custom-contact-forms-admin.php:1345
716
+ #: ../custom-contact-forms-admin.php:1352
717
+ msgid "(ex: 5px or 1em)"
718
  msgstr ""
719
 
720
+ #: ../custom-contact-forms-admin.php:1220
721
+ #: ../custom-contact-forms-admin.php:1493
722
+ msgid "Label Margin:"
723
  msgstr ""
724
 
725
+ #: ../custom-contact-forms-admin.php:1227
726
+ msgid "Textarea Background Color:"
727
  msgstr ""
728
 
729
+ #: ../custom-contact-forms-admin.php:1234
730
+ msgid "Success Popover Font Color:"
731
  msgstr ""
732
 
733
+ #: ../custom-contact-forms-admin.php:1241
734
+ msgid "Success Popover Title Font Size:"
735
  msgstr ""
736
 
737
+ #: ../custom-contact-forms-admin.php:1244
738
+ #: ../custom-contact-forms-admin.php:1251
739
+ #: ../custom-contact-forms-admin.php:1373
740
+ #: ../custom-contact-forms-admin.php:1396
741
+ msgid "(ex: 12px, 1em, 100%)"
742
  msgstr ""
743
 
744
+ #: ../custom-contact-forms-admin.php:1248
745
+ #: ../custom-contact-forms-admin.php:1537
746
+ msgid "Form Background Color:"
747
  msgstr ""
748
 
749
+ #: ../custom-contact-forms-admin.php:1255
750
+ msgid "Tooltip Background Color:"
751
  msgstr ""
752
 
753
+ #: ../custom-contact-forms-admin.php:1258
754
+ msgid "(ex: 000000 or black)"
755
  msgstr ""
756
 
757
+ #: ../custom-contact-forms-admin.php:1264
758
+ #: ../custom-contact-forms-admin.php:1635
759
+ msgid "Field Border Color:"
760
  msgstr ""
761
 
762
+ #: ../custom-contact-forms-admin.php:1271
763
+ #: ../custom-contact-forms-admin.php:1618
764
+ msgid "Form Border Style:"
765
  msgstr ""
766
 
767
+ #: ../custom-contact-forms-admin.php:1279
768
+ #: ../custom-contact-forms-admin.php:1630
769
+ msgid "Form Border Color:"
770
  msgstr ""
771
 
772
+ #: ../custom-contact-forms-admin.php:1282
773
+ msgid "(ex: 000000)"
774
  msgstr ""
775
 
776
+ #: ../custom-contact-forms-admin.php:1286
777
+ #: ../custom-contact-forms-admin.php:1625
778
+ msgid "Form Border Width:"
779
  msgstr ""
780
 
781
+ #: ../custom-contact-forms-admin.php:1289
782
+ msgid "(ex: 1px)"
783
  msgstr ""
784
 
785
+ #: ../custom-contact-forms-admin.php:1293
786
+ #: ../custom-contact-forms-admin.php:1468
787
+ msgid "Form Width:"
788
  msgstr ""
789
 
790
+ #: ../custom-contact-forms-admin.php:1296
791
+ msgid "(ex: 100px or 50%)"
792
  msgstr ""
793
 
794
+ #: ../custom-contact-forms-admin.php:1300
795
+ msgid "Form Font Family:"
796
  msgstr ""
797
 
798
+ #: ../custom-contact-forms-admin.php:1303
799
+ msgid "(ex: Verdana, Tahoma, Arial)"
800
  msgstr ""
801
 
802
+ #: ../custom-contact-forms-admin.php:1307
803
+ #: ../custom-contact-forms-admin.php:1511
804
+ msgid "Button Width:"
805
  msgstr ""
806
 
807
+ #: ../custom-contact-forms-admin.php:1310
808
+ msgid "(ex: 100px, 30%, auto)"
809
  msgstr ""
810
 
811
+ #: ../custom-contact-forms-admin.php:1314
812
+ #: ../custom-contact-forms-admin.php:1516
813
+ msgid "Button Height:"
814
  msgstr ""
815
 
816
+ #: ../custom-contact-forms-admin.php:1317
817
+ msgid "(ex: 100px or 30%)"
818
  msgstr ""
819
 
820
+ #: ../custom-contact-forms-admin.php:1321
821
+ #: ../custom-contact-forms-admin.php:1557
822
+ msgid "Button Font Size:"
823
  msgstr ""
824
 
825
+ #: ../custom-contact-forms-admin.php:1328
826
+ #: ../custom-contact-forms-admin.php:1596
827
+ msgid "Button Font Color:"
828
  msgstr ""
829
 
830
+ #: ../custom-contact-forms-admin.php:1335
831
+ #: ../custom-contact-forms-admin.php:1521
832
+ msgid "Field Background Color:"
833
  msgstr ""
834
 
835
+ #: ../custom-contact-forms-admin.php:1342
836
+ #: ../custom-contact-forms-admin.php:1562
837
+ msgid "Form Padding:"
838
  msgstr ""
839
 
840
+ #: ../custom-contact-forms-admin.php:1349
841
+ #: ../custom-contact-forms-admin.php:1526
842
+ msgid "Title Margin:"
843
  msgstr ""
844
 
845
+ #: ../custom-contact-forms-admin.php:1356
846
+ #: ../custom-contact-forms-admin.php:1488
847
+ msgid "Dropdown Width:"
848
  msgstr ""
849
 
850
+ #: ../custom-contact-forms-admin.php:1359
851
+ msgid "(ex: 30px, 20%, or auto)"
852
  msgstr ""
853
 
854
+ #: ../custom-contact-forms-admin.php:1363
855
+ msgid "Success Popover Border Color:"
856
  msgstr ""
857
 
858
+ #: ../custom-contact-forms-admin.php:1370
859
+ msgid "Success Popover Font Size:"
860
  msgstr ""
861
 
862
+ #: ../custom-contact-forms-admin.php:1377
863
+ msgid "Success Popover Height:"
864
  msgstr ""
865
 
866
+ #: ../custom-contact-forms-admin.php:1380
867
+ msgid "(ex: 200px, 6em, 50%)"
868
  msgstr ""
869
 
870
+ #: ../custom-contact-forms-admin.php:1384
871
+ #: ../custom-contact-forms-admin.php:1654
872
+ msgid "Field Border Roundness:"
873
  msgstr ""
874
 
875
+ #: ../custom-contact-forms-admin.php:1387
876
+ msgid "(ex: 6px, or 0px)"
877
  msgstr ""
878
 
879
+ #: ../custom-contact-forms-admin.php:1391
880
+ #: ../custom-contact-forms-admin.php:1461
881
+ #: ../custom-contact-forms-admin.php:1574
882
+ msgid "Tooltip"
883
  msgstr ""
884
 
885
+ #: ../custom-contact-forms-admin.php:1392
886
+ #: ../custom-contact-forms-admin.php:1462
887
+ #: ../custom-contact-forms-admin.php:1575
888
+ msgid "A tooltip is the little box that fades in displaying 'Field Instructions' when a user selects a particular field."
889
  msgstr ""
890
 
891
+ #: ../custom-contact-forms-admin.php:1393
892
+ #: ../custom-contact-forms-admin.php:1569
893
+ msgid "Font Size:"
894
  msgstr ""
895
 
896
+ #: ../custom-contact-forms-admin.php:1400
897
+ msgid "Tooltip Font Color:"
898
  msgstr ""
899
 
900
+ #: ../custom-contact-forms-admin.php:1403
901
+ msgid "(ex: ffffff or white)"
902
  msgstr ""
903
 
904
+ #: ../custom-contact-forms-admin.php:1407
905
+ msgid "Create Style"
906
  msgstr ""
907
 
908
+ #: ../custom-contact-forms-admin.php:1415
909
+ msgid "Manage Form Styles"
910
+ msgstr ""
911
+
912
+ #: ../custom-contact-forms-admin.php:1437
913
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:128
914
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:205
915
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:238
916
+ msgid "Slug:"
917
  msgstr ""
918
 
919
  #: ../custom-contact-forms-admin.php:1442
920
+ msgid "Font Family:"
921
  msgstr ""
922
 
923
+ #: ../custom-contact-forms-admin.php:1447
924
+ msgid "Textarea Background"
925
  msgstr ""
926
 
927
  #: ../custom-contact-forms-admin.php:1449
928
+ msgid "Color:"
 
 
929
  msgstr ""
930
 
931
+ #: ../custom-contact-forms-admin.php:1454
932
+ #: ../custom-contact-forms-admin.php:1498
933
+ #: ../custom-contact-forms-admin.php:1531
934
+ #: ../custom-contact-forms-admin.php:1567
935
+ #: ../custom-contact-forms-admin.php:1606
936
+ #: ../custom-contact-forms-admin.php:1647
937
+ msgid "Success Popover"
938
  msgstr ""
939
 
940
  #: ../custom-contact-forms-admin.php:1456
941
+ msgid "Border Color:"
 
 
 
 
 
 
 
 
 
 
 
942
  msgstr ""
943
 
944
  #: ../custom-contact-forms-admin.php:1463
945
+ #: ../custom-contact-forms-admin.php:1608
946
+ msgid "Font Color:"
 
 
 
 
947
  msgstr ""
948
 
949
+ #: ../custom-contact-forms-admin.php:1478
950
+ msgid "Textarea Width:"
 
951
  msgstr ""
952
 
953
+ #: ../custom-contact-forms-admin.php:1483
954
+ msgid "Textarea Height:"
 
955
  msgstr ""
956
 
957
+ #: ../custom-contact-forms-admin.php:1500
958
+ msgid "Height:"
 
959
  msgstr ""
960
 
961
+ #: ../custom-contact-forms-admin.php:1576
962
+ msgid "Background Color:"
 
963
  msgstr ""
964
 
965
+ #: ../custom-contact-forms-admin.php:1613
966
+ msgid "Tooltip Font Size:"
 
 
 
967
  msgstr ""
968
 
969
+ #: ../custom-contact-forms-admin.php:1683
970
+ msgid "Report a Bug/Suggest a Feature"
971
  msgstr ""
972
 
973
+ #: ../custom-contact-forms-admin.php:1690
974
+ msgid "Your Name:"
975
  msgstr ""
976
 
977
+ #: ../custom-contact-forms-admin.php:1696
978
+ msgid "Your Email:"
 
979
  msgstr ""
980
 
981
+ #: ../custom-contact-forms-admin.php:1702
982
+ msgid "Who Hosts Your Website?"
983
  msgstr ""
984
 
985
+ #: ../custom-contact-forms-admin.php:1708
986
+ msgid "Your Message:"
 
987
  msgstr ""
988
 
989
+ #: ../custom-contact-forms-admin.php:1714
990
+ msgid "Purpose of this message:"
 
991
  msgstr ""
992
 
993
+ #: ../custom-contact-forms-admin.php:1724
994
+ msgid "Plugin Question"
 
995
  msgstr ""
996
 
997
+ #: ../custom-contact-forms-admin.php:1730
998
+ msgid "Send Message"
 
999
  msgstr ""
1000
 
1001
+ #: ../custom-contact-forms-admin.php:1738
1002
+ msgid "Custom HTML Forms (Advanced)"
 
 
 
1003
  msgstr ""
1004
 
1005
+ #: ../custom-contact-forms-admin.php:1742
1006
+ msgid ""
1007
+ "If you know HTML and simply want to use this plugin to process form requests, this feature is for you. \n"
1008
+ "\t\t\t\t\tThe following HTML is a the framework to which you must adhere. In order for your form to work you MUST do the following: a) Keep the form action/method the same (yes the action is supposed to be empty), b) Include all the hidden fields shown below, c) provide a \n"
1009
+ "\t\t\t\t\thidden field with a success message or thank you page (both hidden fields are included below, you must choose one or the other and fill in the value part of the input field appropriately."
1010
  msgstr ""
1011
 
1012
+ #: ../custom-contact-forms-admin.php:1749
1013
+ msgid "Thank you for filling out our form!"
1014
  msgstr ""
1015
 
1016
+ #: ../custom-contact-forms-admin.php:1754
1017
+ msgid ""
1018
+ "Paste all this code into a page or post and edit it to your liking. It is recommended you only use this feature if you are experienced with HTML. The destination_email \n"
1019
+ "field specifies where emails will be sent on successful submission; you can have the form send to multiple addresses by separating email's with semi-colons (i.e. email@google.com; email2@google.com). \n"
1020
+ "The success_message field will add a popover containing the message when the form is completed successfully, the thank_you_page field will force \n"
1021
+ "the user to be redirected to that specific page on successful form completion. The required_fields hidden field is optional; to use it seperate \n"
1022
+ "the field names you want required by commas. Remember to use underscores instead of spaces in field names!"
1023
  msgstr ""
1024
 
1025
+ #: ../custom-contact-forms-admin.php:1809
1026
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:354
1027
+ msgid "Saved Form Submissions"
1028
  msgstr ""
1029
 
1030
+ #: ../custom-contact-forms-admin.php:1816
1031
+ #: ../custom-contact-forms-admin.php:1869
1032
+ msgid "Date Submitted"
 
 
1033
  msgstr ""
1034
 
1035
+ #: ../custom-contact-forms-admin.php:1817
1036
+ #: ../custom-contact-forms-admin.php:1870
1037
+ msgid "Form Submitted"
1038
  msgstr ""
1039
 
1040
+ #: ../custom-contact-forms-admin.php:1818
1041
+ #: ../custom-contact-forms-admin.php:1871
1042
+ msgid "Form Page"
1043
  msgstr ""
1044
 
1045
+ #: ../custom-contact-forms-admin.php:1836
1046
+ msgid "Custom HTML Form"
1047
  msgstr ""
1048
 
1049
+ #: ../custom-contact-forms-admin.php:1941
1050
+ msgid "General Settings"
 
1051
  msgstr ""
1052
 
1053
+ #: ../custom-contact-forms-admin.php:1948
1054
+ msgid "Email Form Submissions:"
 
1055
  msgstr ""
1056
 
1057
+ #: ../custom-contact-forms-admin.php:1960
1058
+ msgid "When a user fills out one of your forms, the info submitted is saved in the Saved Form Submission section of the admin panel for you to view. If this is enabled, you will also be sent an email containing the submission info."
 
1059
  msgstr ""
1060
 
1061
+ #: ../custom-contact-forms-admin.php:1964
1062
+ msgid "Default Email:"
1063
  msgstr ""
1064
 
1065
+ #: ../custom-contact-forms-admin.php:1969
1066
+ msgid "Form emails will be sent <span>to</span> this address, if no destination email is specified by the form."
 
1067
  msgstr ""
1068
 
1069
+ #: ../custom-contact-forms-admin.php:1973
1070
+ msgid "Front End JQuery:"
1071
  msgstr ""
1072
 
1073
+ #: ../custom-contact-forms-admin.php:1977
1074
+ #: ../custom-contact-forms-admin.php:2020
1075
+ #: ../custom-contact-forms-admin.php:2080
1076
+ #: ../custom-contact-forms-admin.php:2121
1077
+ msgid "Enabled"
1078
  msgstr ""
1079
 
1080
+ #: ../custom-contact-forms-admin.php:1980
1081
+ #: ../custom-contact-forms-admin.php:2023
1082
+ #: ../custom-contact-forms-admin.php:2083
1083
+ #: ../custom-contact-forms-admin.php:2124
1084
+ msgid "Disabled"
1085
  msgstr ""
1086
 
1087
+ #: ../custom-contact-forms-admin.php:1985
1088
+ #, php-format
1089
+ msgid "Some plugins don't setup JQuery correctly, so when any other plugin uses JQuery (whether correctly or not), JQuery works for neither plugin. This plugin uses JQuery correctly. If another plugin isn't using JQuery correctly but is more important to you than this one: disable this option. 99% of this plugin's functionality will work without JQuery, just no field instruction tooltips."
1090
  msgstr ""
1091
 
1092
+ #: ../custom-contact-forms-admin.php:1989
1093
+ msgid "Default From Email:"
1094
  msgstr ""
1095
 
1096
+ #: ../custom-contact-forms-admin.php:1994
1097
+ msgid "Form emails will be sent <span>from</span> this address. It is recommended you provide a real email address that has been created through your host."
 
1098
  msgstr ""
1099
 
1100
+ #: ../custom-contact-forms-admin.php:1998
1101
+ msgid "Default From Name:"
1102
  msgstr ""
1103
 
1104
+ #: ../custom-contact-forms-admin.php:2003
1105
+ msgid "This setting allows you to specify the name under which form emails are sent. The default is 'Custom Contact Forms'."
 
1106
  msgstr ""
1107
 
1108
+ #: ../custom-contact-forms-admin.php:2007
1109
+ msgid "Default Email Subject:"
1110
  msgstr ""
1111
 
1112
+ #: ../custom-contact-forms-admin.php:2012
1113
+ msgid "Default subject to be included in all form emails."
 
1114
  msgstr ""
1115
 
1116
+ #: ../custom-contact-forms-admin.php:2016
1117
+ msgid "Enable Dashboard Widget:"
 
1118
  msgstr ""
1119
 
1120
+ #: ../custom-contact-forms-admin.php:2027
1121
+ msgid "Enabling this will display a widget on your dashboard that shows the latest form submissions."
 
1122
  msgstr ""
1123
 
1124
+ #: ../custom-contact-forms-admin.php:2031
1125
+ msgid "Default Form Error Header:"
 
1126
  msgstr ""
1127
 
1128
+ #: ../custom-contact-forms-admin.php:2036
1129
+ msgid "When a form is filled out incorrectly, this message will be displayed followed by the individual field error messages."
 
1130
  msgstr ""
1131
 
1132
+ #: ../custom-contact-forms-admin.php:2042
1133
+ msgid "Default Form Success Message Title:"
 
1134
  msgstr ""
1135
 
1136
+ #: ../custom-contact-forms-admin.php:2047
1137
+ msgid "If someone fills out a form for which a success message title is not provided and a custom success page is not provided, the plugin will show a popover using this field as the window title."
1138
  msgstr ""
1139
 
1140
+ #: ../custom-contact-forms-admin.php:2051
1141
+ msgid "Default Form Success Message:"
1142
  msgstr ""
1143
 
1144
+ #: ../custom-contact-forms-admin.php:2056
1145
+ msgid "If someone fills out a form for which a success message is not provided and a custom success page is not provided, the plugin will show a popover containing this message."
1146
  msgstr ""
1147
 
1148
+ #: ../custom-contact-forms-admin.php:2060
1149
+ msgid "Remember Field Values:"
1150
  msgstr ""
1151
 
1152
+ #: ../custom-contact-forms-admin.php:2072
1153
+ msgid "Selecting yes will make form fields remember how they were last filled out."
1154
  msgstr ""
1155
 
1156
+ #: ../custom-contact-forms-admin.php:2076
1157
+ msgid "Tooltips in Widget:"
 
1158
  msgstr ""
1159
 
1160
+ #: ../custom-contact-forms-admin.php:2088
1161
+ msgid "Enabling this shows tooltips containing field instructions on forms in the widget."
1162
  msgstr ""
1163
 
1164
+ #: ../custom-contact-forms-admin.php:2092
1165
+ msgid "Hide Plugin Author Link in Code:"
 
 
1166
  msgstr ""
1167
 
1168
+ #: ../custom-contact-forms-admin.php:2105
1169
+ msgid "Use Code Type:"
 
 
1170
  msgstr ""
1171
 
1172
+ #: ../custom-contact-forms-admin.php:2113
1173
+ msgid "This lets you switch the form code between HTML and XHTML."
 
1174
  msgstr ""
1175
 
1176
+ #: ../custom-contact-forms-admin.php:2117
1177
+ msgid "Fancy Admin AJAX Abilities:"
1178
  msgstr ""
1179
 
1180
+ #: ../custom-contact-forms-admin.php:2129
1181
+ msgid "If you enable this, creating, editing and modifying forms, fields, styles, etc in the admin panel will be done using AJAX. This means that clicking things like 'Edit' or 'Delete' will not cause the page to reload thus managing your forms will be much smoother and quicker. If you are having problems with things not saving, deleting, or inserting correctly, then disable this and fill out a bug report below."
1182
  msgstr ""
1183
 
1184
+ #: ../custom-contact-forms-admin.php:2133
1185
+ msgid "Default Permissions Error:"
1186
  msgstr ""
1187
 
1188
+ #: ../custom-contact-forms-admin.php:2138
1189
+ msgid "When someone doesn't have the proper permissions to use a form, this message is displayed in place of the form."
1190
  msgstr ""
1191
 
1192
+ #: ../custom-contact-forms-admin.php:2141
1193
+ msgid "Show Sidebar Widget:"
 
 
 
1194
  msgstr ""
1195
 
1196
+ #: ../custom-contact-forms-admin.php:2146
1197
+ msgid "On Homepage"
1198
  msgstr ""
1199
 
1200
+ #: ../custom-contact-forms-admin.php:2150
1201
+ msgid "On Pages"
1202
  msgstr ""
1203
 
1204
+ #: ../custom-contact-forms-admin.php:2154
1205
+ msgid "On Single Posts"
1206
  msgstr ""
1207
 
1208
+ #: ../custom-contact-forms-admin.php:2159
1209
+ msgid "On Categories"
 
 
 
 
 
1210
  msgstr ""
1211
 
1212
+ #: ../custom-contact-forms-admin.php:2163
1213
+ msgid "On Archives"
1214
  msgstr ""
1215
 
1216
+ #: ../custom-contact-forms-admin.php:2167
1217
+ msgid "Update"
 
1218
  msgstr ""
1219
 
1220
+ #: ../custom-contact-forms-admin.php:2175
1221
+ msgid "Mail Settings"
1222
  msgstr ""
1223
 
1224
+ #: ../custom-contact-forms-admin.php:2179
1225
+ msgid "There are two ways you can send emails: using the PHP mail() function or using SMTP (secure/insecure). If you choose to use the PHP mail() function you can ignore all the other options. For some people Wordpress's default way of sending mail does not work; if for some reason your mail is being sent you should try the SMTP option."
1226
  msgstr ""
1227
 
1228
+ #: ../custom-contact-forms-admin.php:2180
1229
+ msgid "* Send My Emails Using the Following:"
1230
  msgstr ""
1231
 
1232
+ #: ../custom-contact-forms-admin.php:2182
1233
+ msgid "Wordpress Default"
1234
  msgstr ""
1235
 
1236
+ #: ../custom-contact-forms-admin.php:2183
1237
+ msgid "SMTP"
1238
  msgstr ""
1239
 
1240
+ #: ../custom-contact-forms-admin.php:2184
1241
+ msgid "(If mail isn't sending, try toggling this option.)"
1242
  msgstr ""
1243
 
1244
+ #: ../custom-contact-forms-admin.php:2187
1245
+ msgid "SMTP Host:"
1246
  msgstr ""
1247
 
1248
+ #: ../custom-contact-forms-admin.php:2188
1249
+ msgid "SMTP Port:"
1250
  msgstr ""
1251
 
1252
+ #: ../custom-contact-forms-admin.php:2189
1253
+ msgid "Encryption:"
1254
  msgstr ""
1255
 
1256
+ #: ../custom-contact-forms-admin.php:2191
1257
+ msgid "SSL"
1258
  msgstr ""
1259
 
1260
+ #: ../custom-contact-forms-admin.php:2192
1261
+ msgid "TLS"
1262
  msgstr ""
1263
 
1264
+ #: ../custom-contact-forms-admin.php:2196
1265
+ msgid "SMTP Authentication:"
1266
  msgstr ""
1267
 
1268
+ #: ../custom-contact-forms-admin.php:2196
1269
+ msgid "None Needed"
1270
  msgstr ""
1271
 
1272
+ #: ../custom-contact-forms-admin.php:2196
1273
+ msgid "Use SMTP Username/Password"
1274
  msgstr ""
1275
 
1276
+ #: ../custom-contact-forms-admin.php:2197
1277
+ msgid "SMTP Username:"
 
 
 
1278
  msgstr ""
1279
 
1280
+ #: ../custom-contact-forms-admin.php:2198
1281
+ msgid "SMTP Password:"
1282
  msgstr ""
1283
 
1284
+ #: ../custom-contact-forms-admin.php:2201
1285
+ msgid "Save Mail Sending Options"
 
 
 
 
1286
  msgstr ""
1287
 
1288
+ #: ../custom-contact-forms-admin.php:2208
1289
  msgid "Export"
1290
  msgstr ""
1291
 
1292
+ #: ../custom-contact-forms-admin.php:2213
1293
  msgid ""
1294
  "Preforming a Custom Contact Forms export will create a file of the form \n"
1295
  "\t\t\t\t\t\tccf-export-xxxx.sql on your web server. The file created contains SQL that \n"
1296
  "\t\t\t\t\t\twill recreate all the plugin data on any Wordpress installation. After Custom Contact Forms creates the export file, you will be prompted to download it. You can use this file as a backup in case your Wordpress database gets ruined."
1297
  msgstr ""
1298
 
1299
+ #: ../custom-contact-forms-admin.php:2217
1300
  msgid "Export All CCF Plugin Content"
1301
  msgstr ""
1302
 
1303
+ #: ../custom-contact-forms-admin.php:2223
1304
  msgid "Import"
1305
  msgstr ""
1306
 
1307
+ #: ../custom-contact-forms-admin.php:2229
1308
  msgid "Browse to a CCF .sql export file to import Custom Contact Form data from another Wordpress installation to this one. Pressing the 'Clear and Import' button deletes all current data and then imports the selected file; this will not work for merging to data!. Clearing all CCF data before importing prevents any conflicts from occuring. Before you attempt an import, you should always download a backup, by clicking the 'Export All' button."
1309
  msgstr ""
1310
 
1311
+ #: ../custom-contact-forms-admin.php:2232
1312
  msgid "Choose What You Want to Use from the Import File:"
1313
  msgstr ""
1314
 
1315
+ #: ../custom-contact-forms-admin.php:2238
1316
  msgid "Use General Settings"
1317
  msgstr ""
1318
 
1319
+ #: ../custom-contact-forms-admin.php:2244
1320
+ #: ../custom-contact-forms-admin.php:2262
1321
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:8
1322
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:231
1323
  msgid "Forms"
1324
  msgstr ""
1325
 
1326
+ #: ../custom-contact-forms-admin.php:2250
1327
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:29
1328
  msgid "Form Submissions"
1329
  msgstr ""
1330
 
1331
+ #: ../custom-contact-forms-admin.php:2256
1332
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:11
1333
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:52
1334
  msgid "Fields"
1335
  msgstr ""
1336
 
1337
+ #: ../custom-contact-forms-admin.php:2268
1338
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:17
1339
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:198
1340
  msgid "Field Options"
1341
  msgstr ""
1342
 
1343
+ #: ../custom-contact-forms-admin.php:2274
1344
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:20
1345
  msgid "Styles"
1346
  msgstr ""
1347
 
1348
+ #: ../custom-contact-forms-admin.php:2280
1349
  msgid "Choose an Import File:"
1350
  msgstr ""
1351
 
1352
+ #: ../custom-contact-forms-admin.php:2284
1353
  msgid "Clear and Import"
1354
  msgstr ""
1355
 
1356
+ #: ../custom-contact-forms-admin.php:2286
1357
  msgid "Yes, I want to do this and have created a backup."
1358
  msgstr ""
1359
 
 
 
 
 
1360
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:3
1361
  msgid "How To Use Custom Contact Forms"
1362
  msgstr ""
1363
 
1364
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:14
1365
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:180
1366
+ msgid "Fixed Fields"
1367
+ msgstr ""
1368
+
1369
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:26
1370
  msgid "Import/Export"
1371
  msgstr ""
1372
 
1373
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:33
1374
  msgid "Introduction"
1375
  msgstr ""
1376
 
1377
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:36
1378
  msgid ""
1379
  "CCF is an extremely intuitive plugin allowing you to create any type of contact form you can imagine. CCF is very user friendly but with possibilities comes complexity. It is recommend that you click the button below to create default fields, field options, and forms.\n"
1380
  " The default content will help you get a feel for the amazing things you can accomplish with this plugin. This popover only shows automatically the first time you visit the admin page;"
1381
  msgstr ""
1382
 
1383
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:39
1384
  msgid "if you want to view this popover again, click the 'Show Plugin Usage Popover'"
1385
  msgstr ""
1386
 
1387
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:41
1388
  msgid "in the instruction area of the admin page."
1389
  msgstr ""
1390
 
1391
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:44
1392
+ msgid "Insert Default Content"
1393
+ msgstr ""
1394
+
1395
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:47
1396
  msgid "Below is a basic usage outline of the four pillars of this plugin: fields, field options, styles, and forms. Another useful part of the plugin is the 'Custom HTML Feature' which allows you to write the form HTML yourself using the plugin simply as a form processor; this is great if you are a web developer with HTML experience. Also explained below is the 'Saved Form Submissions' feature which displays all form submissions in the admin panel."
1397
  msgstr ""
1398
 
1399
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:55
1400
  msgid "Fields are the actual input boxes in which users enter their information. There are six types of fields that you can attach to your forms.!"
1401
  msgstr ""
1402
 
1403
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:59
1404
  msgid "Text:"
1405
  msgstr ""
1406
 
1407
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:62
1408
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:69
1409
  msgid "This is a text field"
1410
  msgstr ""
1411
 
1412
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:66
1413
  msgid "Textarea:"
1414
  msgstr ""
1415
 
1416
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:73
1417
  msgid "Dropdown:"
1418
  msgstr ""
1419
 
1420
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:78
1421
  msgid "This is a dropdown field"
1422
  msgstr ""
1423
 
1424
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:81
1425
  msgid "Field Option 2!"
1426
  msgstr ""
1427
 
1428
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:84
1429
  msgid "Field Option 3!"
1430
  msgstr ""
1431
 
1432
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:87
1433
  msgid "Field Option 4!"
1434
  msgstr ""
1435
 
1436
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:90
1437
  msgid "Unlimited # of options allowed"
1438
  msgstr ""
1439
 
1440
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:96
1441
  msgid "Radio:"
1442
  msgstr ""
1443
 
1444
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:100
1445
  msgid "A radio field"
1446
  msgstr ""
1447
 
1448
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:102
1449
  msgid "Field Option 2"
1450
  msgstr ""
1451
 
1452
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:104
1453
  msgid "Field Option 3"
1454
  msgstr ""
1455
 
1456
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:108
1457
  msgid "Checkbox:"
1458
  msgstr ""
1459
 
1460
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:112
1461
  msgid "This is a checkbox field"
1462
  msgstr ""
1463
 
1464
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:116
1465
  msgid "(advanced) Hidden:"
1466
  msgstr ""
1467
 
1468
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:118
1469
  msgid "These fields are hidden (obviously), they allow you to pass hidden information within your forms. Great for using other form processors like Aweber or InfusionSoft."
1470
  msgstr ""
1471
 
1472
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:122
1473
  msgid "There are a variety of different options that you can use when creating a field,"
1474
  msgstr ""
1475
 
1476
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:124
1477
  msgid "denotes something required:"
1478
  msgstr ""
1479
 
1480
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:130
1481
  msgid "A slug is simply a way to identify your field. It can only contain underscores, letters, and numbers and must be unique."
1482
  msgstr ""
1483
 
1484
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:140
1485
  msgid "The six field types you can choose from are explained above."
1486
  msgstr ""
1487
 
1488
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:145
1489
  msgid "This is the initial value of the field. If you set the type as checkbox, it is recommend you set this to what the checkbox is implying. For example if I were creating the checkbox 'Are you human?', I would set the initial value to 'Yes'. If you set the field type as 'Dropdown' or 'Radio', you should enter the slug of the field option you would like initially selected (or just leave it blank and the first option attached will be selected)."
1490
  msgstr ""
1491
 
1492
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:150
1493
  msgid "This allows you to limit the amount of characters a user can enter in a field (does not apply to textareas as of version 3.5.5)"
1494
  msgstr ""
1495
 
1496
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:155
1497
  msgid "If a field is required and a user leaves it blank, the plugin will display an error message explaining the problem. The user will then have to go back and fill in the field properly."
1498
  msgstr ""
1499
 
1500
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:160
1501
  msgid "If this is filled out, a stylish tooltip popover displaying this text will show when the field is selected. This will only work if JQuery is enabled in general options."
1502
  msgstr ""
1503
 
1504
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:168
1505
+ msgid "(advanced) Field Class:"
1506
+ msgstr ""
1507
+
1508
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:170
1509
+ msgid "This allows you to assign a CSS class to an individual field without affecting anything else. This is a great way to take the customization of your form to the next level."
1510
+ msgstr ""
1511
+
1512
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:173
1513
  msgid "Field Options:"
1514
  msgstr ""
1515
 
1516
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:175
1517
  msgid "After you create a field, if it's field type is radio or dropdown, you can attach field options to the field. Field options are explained in the next section."
1518
  msgstr ""
1519
 
1520
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:183
1521
+ msgid "The last important thing related to fields are <span>Fixed Fields</span>. Fixed Fields are special fields that come already created within the plugin such as the captcha spam blocker and email field. Fixed Fields do special things that you wouldn't be able to accomplish with normal fields; they cannot be deleted or created. For example, if you use the fixedEmail field, as opposed to creating your own email field. the users email will be checked to make sure it is valid, if it isn't a form error will be displayed. Below is a list of fixed fields and their descriptions."
1522
+ msgstr ""
1523
+
1524
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:186
1525
+ msgid "fixedEmail:"
1526
+ msgstr ""
1527
+
1528
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:186
1529
+ msgid "When attached to a form and set to required, this field will validate a user's email addresses. If a user's email is not valid, an error will be shown."
1530
+ msgstr ""
1531
+
1532
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:187
1533
+ msgid "captcha:"
1534
+ msgstr ""
1535
+
1536
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:187
1537
+ msgid "This field helps prevent spam by prompting users to copy numbers displayed on an image. If a user copies the numbers incorrectly, the form will show an error."
1538
+ msgstr ""
1539
+
1540
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:188
1541
+ msgid "fixedWebsite:"
1542
+ msgstr ""
1543
+
1544
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:188
1545
+ msgid "When attached to a form and set to required, this field will validate a user's website. If a user's website is not valid, an error will be shown."
1546
+ msgstr ""
1547
+
1548
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:189
1549
+ msgid "emailSubject:"
1550
+ msgstr ""
1551
+
1552
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:189
1553
+ msgid "This lets a user enter in an email subject that will carry over as the subject of the email sent to you on form completion"
1554
+ msgstr ""
1555
+
1556
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:190
1557
+ msgid "usaStates:"
1558
+ msgstr ""
1559
+
1560
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:190
1561
+ msgid "This field displays a dropdown of all the states in the US."
1562
+ msgstr ""
1563
+
1564
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:191
1565
+ msgid "allCountries:"
1566
+ msgstr ""
1567
+
1568
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:191
1569
+ msgid "This field displays a dropdown of all the countries in the world."
1570
+ msgstr ""
1571
+
1572
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:192
1573
+ msgid "resetButton:"
1574
+ msgstr ""
1575
+
1576
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:192
1577
+ msgid "Attaching this field adds a reset button right next to the submit button in your form."
1578
  msgstr ""
1579
 
1580
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:193
1581
+ msgid "ishuman:"
1582
+ msgstr ""
1583
+
1584
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:193
1585
+ msgid "This field helps prevent spam by prompting users to check a box to verify that they are human. If the box is left unchecked, an error will be displayed and the user will have to go back."
1586
+ msgstr ""
1587
+
1588
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:201
1589
  msgid "In the field section above, look at the radio or dropdown fields. See how they have multiple options within the field? Those are called Field Options. Field Options have their own manager. There are only three things you must fill in to create a field option."
1590
  msgstr ""
1591
 
1592
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:207
1593
  msgid "Used to identify the field option, solely for admin purposes; must be unique, and contain only letters, numbers, and underscores. Example: 'slug_one'."
1594
  msgstr ""
1595
 
1596
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:212
1597
  msgid "This is what is shown to the user in the dropdown or radio field."
1598
  msgstr ""
1599
 
1600
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:217
1601
  msgid "This is the actual value of the option which isn't shown to the user. This can be the same thing as the label. An example pairing of label => value is: 'The color green' => 'green' or 'Yes' => '1'. The option value is behind the scences; unseen by the user, but when a user fills out the form, the option value is what is actually emailed to you and stored in the database. For dropdown fields the option value is optional, <span>for radio fields it is required</span>."
1602
  msgstr ""
1603
 
1604
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:221
1605
+ msgid "Please Select:"
1606
+ msgstr ""
1607
+
1608
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:221
1609
+ msgid "Option 1"
1610
+ msgstr ""
1611
+
1612
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:221
1613
+ msgid "Option 2"
1614
+ msgstr ""
1615
+
1616
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:222
1617
+ msgid "Dead options are only useful for required dropdown fields. The first field option \"Please Select\" would be a useful way to encorporate a dead option. Assume the field is required; if a user submitted that field and left it as \"Please Select:\", then the form would throw an error and the user would have to go back."
1618
+ msgstr ""
1619
+
1620
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:226
1621
  msgid "Once you create field options, you can attach them (in the field manager) to radio and dropdown fields (that are already created). It is important to remember that after you create a dropdown or radio field, they will not work until you attach one or more field options."
1622
  msgstr ""
1623
 
1624
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:234
1625
  msgid "Forms bring everything together. Each form you create in the form manager shows a code to display that form in posts/pages as well as theme files. The post/page form display code looks like: [customcontact id=FORMID]. There are a number of parameters that you can fill out when creating and managing each of your forms."
1626
  msgstr ""
1627
 
1628
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:240
1629
  msgid "A slug is simply a way to identify your form. It can only contain underscores, letters, and numbers and must be unique. Example 'my_contact_form'"
1630
  msgstr ""
1631
 
1632
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:245
1633
  msgid "The form title is heading text shown at the top of the form to users. Here's an example: 'My Contact Form'."
1634
  msgstr ""
1635
 
1636
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:248
1637
+ msgid "Form Method:"
1638
+ msgstr ""
1639
+
1640
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:250
1641
  msgid "If you don't know what this is leave it as 'Post'. This allows you to change the way a form sends user information."
1642
  msgstr ""
1643
 
1644
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:253
1645
+ msgid "Form Action:"
1646
+ msgstr ""
1647
+
1648
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:255
1649
  msgid "This allows you to process your forms using 3rd party services or your own scripts. If you don't know what this is, then leave it blank. This is useful if you use a service like Aweber or InfusionSoft."
1650
  msgstr ""
1651
 
1652
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:260
1653
  msgid "This allows you to apply styles you create in the style manager to your forms. If you haven't created a custom style yet, just choose 'Default'."
1654
  msgstr ""
1655
 
1656
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:265
1657
  msgid "Here, you can specify the text that shows on the submit button."
1658
  msgstr ""
1659
 
1660
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:270
1661
+ msgid "If unsure, leave blank. This field allows you to insert custom HTML directly after the starting form tag."
1662
+ msgstr ""
1663
+
1664
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:275
1665
  msgid "Specify the email address(es) that should receive all form submissions. Seperate multiple email addresses with semi-colons (ex: email1@gmail.com;email2@gmail.com;email3@gmail.com). If you leave this blank it will revert to the default specified in general settings. You can set forms not to send email in General Settings."
1666
  msgstr ""
1667
 
1668
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:280
1669
  msgid "Will be displayed in a popover after the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
1670
  msgstr ""
1671
 
1672
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:290
1673
  msgid "If this is filled out, users will be sent to this page when they successfully fill out the form. If it is left blank, a popover showing the form's 'success message' will be displayed on successful form submission."
1674
  msgstr ""
1675
 
1676
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:293
1677
+ msgid "Email From Name:"
1678
+ msgstr ""
1679
+
1680
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:295
1681
+ msgid "The email sent to you on form completion will be from this name. If this is left blank, it will default to the 'Default From Name' provided in General Settings."
1682
+ msgstr ""
1683
+
1684
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:298
1685
+ msgid "Email Subject:"
1686
+ msgstr ""
1687
+
1688
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:300
1689
+ msgid "This is the subject of the email that will be sent to you on form completion. If this is left blank, it will default to the 'Default Email Subject' provided in General Settings."
1690
+ msgstr ""
1691
+
1692
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:303
1693
+ msgid "Can View Form:"
1694
+ msgstr ""
1695
+
1696
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:305
1697
+ msgid "This lets you choose which types of users can view your form. If you want everyone to see the form, check all the boxes. If a user doesn't have access to the form, they will not be able to see it."
1698
+ msgstr ""
1699
+
1700
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:308
1701
  msgid "Attach Fields:"
1702
  msgstr ""
1703
 
1704
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:310
1705
+ msgid "After creating a form you are given the option to attach (and detach) fields to that specific form. Forms are useless until you attach fields."
1706
  msgstr ""
1707
 
1708
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:314
1709
  msgid "The form success message and success title apply to a popover that fades in after someone successfully completes a form (that does not have a custom success URL provided). The image below will help to give you a feel to how the popover will look and where the title and message actually show up."
1710
  msgstr ""
1711
 
1712
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:320
1713
  msgid "Style Manager"
1714
  msgstr ""
1715
 
1716
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:323
1717
  msgid "The style manager allows you to customize the appearance of forms without any knowledge of CSS. There are a ton of parameters you can fill out with each style and all of them are pretty self-explanitory. After you create a style, you need to go to the form manager and set the form style to the new style you created (the slug will be what shows in the 'Form Style' dropdown)."
1718
  msgstr ""
1719
 
1720
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:326
1721
  msgid "The image below will help you better understand how each style option will change your forms."
1722
  msgstr ""
1723
 
1724
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:332
1725
  msgid "Custom HTML Forms Feature (advanced)"
1726
  msgstr ""
1727
 
1728
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:335
1729
  msgid "If you know HTML and simply want to use this plugin to process form requests, this feature is for you. The following HTML is a the framework to which you must adhere. In order for your form to work you MUST do the following:"
1730
  msgstr ""
1731
 
1732
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:339
1733
  msgid "Keep the form action/method the same (yes the action is supposed to be empty)."
1734
  msgstr ""
1735
 
1736
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:342
1737
  msgid "Include all the hidden fields shown below."
1738
  msgstr ""
1739
 
1740
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:345
1741
  msgid "Provide a hidden field with a success message or thank you page (both hidden fields are included below, you must choose one or the other and fill in the value part of the input field appropriately)."
1742
  msgstr ""
1743
 
1744
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:349
1745
  msgid "Just to be clear, you don't edit the code in the Custom HTML Forms feature within the admin panel. Instead, you copy the code in to the page, post, or theme file you want to display a form, then edit the code to look how you want following the guidelines provided above."
1746
  msgstr ""
1747
 
1748
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:357
1749
  msgid "This features saves each user form submission. All the fields attached to the form along with the time of submission and form URL are saved in the database and displayed in a stylish format in the admin panel."
1750
  msgstr ""
1751
 
1752
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:362
1753
  msgid "Import / Export"
1754
  msgstr ""
1755
 
1756
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:365
1757
  msgid ""
1758
  "Import/export is a new feature that allows you to transfer forms, fields, field options, styles and everything else saved by the plugin between Wordpress installations. Clicking the Export All button will create a .SQL file for download. With the .SQL export file you can use the importer within the CCF plugin admin page to import the .SQL file. The built-in importer is completely safe as long as you only import files that have been generated by the CCF exporter. \n"
1759
  " You can also use PHPMyAdmin or any other MySQL database administration tool to run the import file. Importing a .SQL file will never overwrite any existing data. \n"
1761
  " If you are importing without using the built-in importer (such as PHPMyAdmin), then note the following: You should only run the import file on Wordpress installations that already have Custom Contact Forms installed; also you will need to change the table prefix for each query within the .SQL file."
1762
  msgstr ""
1763
 
1764
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:370
1765
  msgid "Custom Contact Forms allows you to import data in different ways."
1766
  msgstr ""
1767
 
1768
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:372
1769
  msgid "Clear and Import:"
1770
  msgstr ""
1771
 
1772
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:372
1773
  msgid "This is the safest way to import because it deletes all current content before importing. This is important because it prevents occurences of conflicting data ID's or slugs."
1774
  msgstr ""
1775
 
1776
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:374
1777
  msgid "You can also export data in different ways."
1778
  msgstr ""
1779
 
1780
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:376
1781
  msgid "Export All:"
1782
  msgstr ""
1783
 
1784
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:376
1785
  msgid "This exports all custom contact form data including your general settings in SQL format. This is allows you to easily create backups."
1786
  msgstr ""
1787
 
1788
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:378
1789
  msgid "More import/export methods will be added in the future. Always create a backup before attempting an import! * Note: If you are having problems getting the importer/exporter to work, try CHMODing the import/ and export/ directories to 0777."
1790
  msgstr ""
1791
 
1792
+ #: ../modules/widget/custom-contact-forms-dashboard.php:66
1793
+ msgid "View"
1794
+ msgstr ""
1795
+
1796
+ #: ../modules/widget/custom-contact-forms-dashboard.php:70
1797
+ msgid "CCF Saved Form Submission"
1798
+ msgstr ""
1799
+
1800
+ #: ../modules/widget/custom-contact-forms-dashboard.php:71
1801
+ msgid "Form Submitted:"
1802
+ msgstr ""
1803
+
1804
+ #: ../modules/widget/custom-contact-forms-dashboard.php:88
1805
+ #: ../modules/widget/custom-contact-forms-dashboard.php:98
1806
+ msgid "View All Submissions"
1807
+ msgstr ""
1808
+
1809
+ #: ../modules/widget/custom-contact-forms-widget.php:44
1810
  msgid "Choose a Form:"
1811
  msgstr ""
1812
 
1813
+ #: ../modules/widget/custom-contact-forms-widget.php:55
1814
  msgid "Create a Form"
1815
  msgstr ""
1816
 
modules/db/custom-contact-forms-activate-db.php ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Custom Contact Forms Plugin
4
+ By Taylor Lovett - http://www.taylorlovett.com
5
+ Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
+ */
7
+ if (!class_exists('CustomContactFormsActivateDB')) {
8
+ class CustomContactFormsActivateDB extends CustomContactFormsDB {
9
+ var $cache = array();
10
+
11
+ function CustomContactFormsActivateDB($run_activate = true) {
12
+ if ($run_activate)
13
+ $this->activateDB();
14
+ }
15
+
16
+ function activateDB() {
17
+ $this->createTables();
18
+ $this->updateTables();
19
+ parent::serializeAllFormFields();
20
+ parent::serializeAllFieldOptions();
21
+ $this->insertFixedFields();
22
+ }
23
+
24
+ function fieldsTableExists() {
25
+ global $wpdb;
26
+ return ($wpdb->get_var("show tables like '". CCF_FIELDS_TABLE . "'") == CCF_FIELDS_TABLE);
27
+ }
28
+
29
+ function formsTableExists() {
30
+ global $wpdb;
31
+ return ($wpdb->get_var("show tables like '". CCF_FORMS_TABLE . "'") == CCF_FORMS_TABLE);
32
+ }
33
+
34
+ function stylesTableExists() {
35
+ global $wpdb;
36
+ return ($wpdb->get_var("show tables like '". CCF_STYLES_TABLE . "'") == CCF_STYLES_TABLE);
37
+ }
38
+
39
+ function fieldOptionsTableExists() {
40
+ global $wpdb;
41
+ return ($wpdb->get_var("show tables like '". CCF_FIELD_OPTIONS_TABLE . "'") == CCF_FIELD_OPTIONS_TABLE);
42
+ }
43
+
44
+ function userDataTableExists() {
45
+ global $wpdb;
46
+ return ($wpdb->get_var("show tables like '". CCF_USER_DATA_TABLE . "'") == CCF_USER_DATA_TABLE);
47
+ }
48
+
49
+ function createTables() {
50
+ global $wpdb;
51
+ if(!$this->formsTableExists()) {
52
+ $sql1 = " CREATE TABLE `".CCF_FORMS_TABLE."` (
53
+ `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
54
+ `form_slug` VARCHAR( 100 ) NOT NULL ,
55
+ `form_title` VARCHAR( 200 ) NOT NULL ,
56
+ `form_action` TEXT NOT NULL ,
57
+ `form_method` VARCHAR( 4 ) NOT NULL ,
58
+ `form_fields` VARCHAR( 200 ) NOT NULL ,
59
+ `submit_button_text` VARCHAR( 200 ) NOT NULL ,
60
+ `custom_code` TEXT NOT NULL ,
61
+ PRIMARY KEY ( `id` )
62
+ ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
63
+ $wpdb->query($sql1);
64
+ } if(!$this->userDataTableExists()) {
65
+ $sql7 = " CREATE TABLE `".CCF_USER_DATA_TABLE."` (
66
+ `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
67
+ `data_time` INT( 11 ) NOT NULL DEFAULT '0',
68
+ `data_formid` INT( 11 ) NOT NULL ,
69
+ `data_formpage` VARCHAR ( 250 ) NOT NULL ,
70
+ `data_value` LONGTEXT NOT NULL ,
71
+ PRIMARY KEY ( `id` )
72
+ ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
73
+ $wpdb->query($sql7);
74
+ } if(!$this->fieldOptionsTableExists()) {
75
+ $sql5 = " CREATE TABLE `".CCF_FIELD_OPTIONS_TABLE."` (
76
+ `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
77
+ `option_slug` VARCHAR( 100 ) NOT NULL ,
78
+ `option_label` VARCHAR( 200 ) NOT NULL ,
79
+ `option_value` VARCHAR( 100 ) NOT NULL ,
80
+ PRIMARY KEY ( `id` )
81
+ ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
82
+ $wpdb->query($sql5);
83
+ } if(!$this->fieldsTableExists()) {
84
+ $sql2 = "CREATE TABLE `".CCF_FIELDS_TABLE."` (
85
+ `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
86
+ `field_slug` VARCHAR( 50 ) NOT NULL ,
87
+ `field_label` VARCHAR( 100 ) NOT NULL ,
88
+ `field_type` VARCHAR( 25 ) NOT NULL ,
89
+ `field_value` TEXT NOT NULL ,
90
+ `field_maxlength` INT ( 5 ) NOT NULL DEFAULT '0',
91
+ `user_field` INT ( 1 ) NOT NULL DEFAULT '1',
92
+ PRIMARY KEY ( `id` )
93
+ ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
94
+ $wpdb->query($sql2);
95
+ } if(!$this->stylesTableExists()) {
96
+ $sql3 = "CREATE TABLE `".CCF_STYLES_TABLE."` (
97
+ `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
98
+ `style_slug` VARCHAR( 30 ) NOT NULL ,
99
+ `input_width` VARCHAR( 10 ) NOT NULL DEFAULT '200px',
100
+ `textarea_width` VARCHAR( 10 ) NOT NULL DEFAULT '200px',
101
+ `textarea_height` VARCHAR( 10 ) NOT NULL DEFAULT '100px',
102
+ `form_borderwidth` VARCHAR( 10 ) NOT NULL DEFAULT '0px',
103
+ `label_width` VARCHAR( 10 ) NOT NULL DEFAULT '200px',
104
+ `form_width` VARCHAR( 10 ) NOT NULL DEFAULT '100%',
105
+ `submit_width` VARCHAR( 10 ) NOT NULL DEFAULT 'auto',
106
+ `submit_height` VARCHAR( 10 ) NOT NULL DEFAULT '40px',
107
+ `label_fontsize` VARCHAR( 10 ) NOT NULL DEFAULT '1em',
108
+ `title_fontsize` VARCHAR( 10 ) NOT NULL DEFAULT '1.2em',
109
+ `field_fontsize` VARCHAR( 10 ) NOT NULL DEFAULT '1.3em',
110
+ `submit_fontsize` VARCHAR( 10 ) NOT NULL DEFAULT '1.1em',
111
+ `field_bordercolor` VARCHAR( 10 ) NOT NULL DEFAULT '999999',
112
+ `form_borderstyle` VARCHAR( 30 ) NOT NULL DEFAULT 'none',
113
+ `form_bordercolor` VARCHAR( 20 ) NOT NULL DEFAULT '',
114
+ `field_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT '333333',
115
+ `label_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT '333333',
116
+ `title_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT '333333',
117
+ `submit_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT '333333',
118
+ `form_fontfamily` VARCHAR( 150 ) NOT NULL DEFAULT 'Tahoma, Verdana, Arial',
119
+ PRIMARY KEY ( `id` )
120
+ ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
121
+ $wpdb->query($sql3);
122
+ }
123
+ return true;
124
+ }
125
+
126
+ function updateTables() {
127
+ global $wpdb;
128
+ if (!$this->columnExists('user_field', CCF_FIELDS_TABLE))
129
+ $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` ADD `user_field` INT( 1 ) NOT NULL DEFAULT '1'");
130
+ if (!$this->columnExists('form_style', CCF_FORMS_TABLE))
131
+ $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_style` INT( 10 ) NOT NULL DEFAULT '0'");
132
+ if (!$this->columnExists('form_email', CCF_FORMS_TABLE))
133
+ $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_email` VARCHAR( 50 ) NOT NULL");
134
+ if (!$this->columnExists('form_success_message', CCF_FORMS_TABLE))
135
+ $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_success_message` TEXT NOT NULL");
136
+ if (!$this->columnExists('form_thank_you_page', CCF_FORMS_TABLE))
137
+ $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_thank_you_page` VARCHAR ( 200 ) NOT NULL");
138
+ if (!$this->columnExists('field_backgroundcolor', CCF_STYLES_TABLE))
139
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `field_backgroundcolor` VARCHAR( 20 ) NOT NULL DEFAULT 'f5f5f5'");
140
+ if (!$this->columnExists('field_borderstyle', CCF_STYLES_TABLE))
141
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `field_borderstyle` VARCHAR( 20 ) NOT NULL DEFAULT 'solid'");
142
+ if (!$this->columnExists('form_success_title', CCF_FORMS_TABLE))
143
+ $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_success_title` VARCHAR( 150 ) NOT NULL DEFAULT '".__('Form Success!', 'custom-contact-forms')."'");
144
+ if (!$this->columnExists('form_padding', CCF_STYLES_TABLE))
145
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `form_padding` VARCHAR( 20 ) NOT NULL DEFAULT '8px'");
146
+ if (!$this->columnExists('form_margin', CCF_STYLES_TABLE))
147
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `form_margin` VARCHAR( 20 ) NOT NULL DEFAULT '7px'");
148
+ if (!$this->columnExists('title_margin', CCF_STYLES_TABLE))
149
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `title_margin` VARCHAR( 20 ) NOT NULL DEFAULT '4px'");
150
+ if (!$this->columnExists('label_margin', CCF_STYLES_TABLE))
151
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `label_margin` VARCHAR( 20 ) NOT NULL DEFAULT '6px'");
152
+ if (!$this->columnExists('textarea_backgroundcolor', CCF_STYLES_TABLE))
153
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `textarea_backgroundcolor` VARCHAR( 20 ) NOT NULL DEFAULT 'f5f5f5'");
154
+ if (!$this->columnExists('success_popover_bordercolor', CCF_STYLES_TABLE))
155
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `success_popover_bordercolor` VARCHAR( 20 ) NOT NULL DEFAULT 'efefef'");
156
+ if (!$this->columnExists('dropdown_width', CCF_STYLES_TABLE))
157
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `dropdown_width` VARCHAR( 20 ) NOT NULL DEFAULT 'auto'");
158
+ if (!$this->columnExists('success_popover_fontsize', CCF_STYLES_TABLE))
159
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `success_popover_fontsize` VARCHAR( 20 ) NOT NULL DEFAULT '12px'");
160
+ if (!$this->columnExists('success_popover_title_fontsize', CCF_STYLES_TABLE))
161
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `success_popover_title_fontsize` VARCHAR( 20 ) NOT NULL DEFAULT '1.3em'");
162
+ if (!$this->columnExists('success_popover_height', CCF_STYLES_TABLE))
163
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `success_popover_height` VARCHAR( 20 ) NOT NULL DEFAULT '200px'");
164
+ if (!$this->columnExists('success_popover_fontcolor', CCF_STYLES_TABLE))
165
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `success_popover_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT '333333'");
166
+ if (!$this->columnExists('success_popover_title_fontcolor', CCF_STYLES_TABLE))
167
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `success_popover_title_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT '333333'");
168
+ if (!$this->columnExists('field_instructions', CCF_FIELDS_TABLE))
169
+ $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` ADD `field_instructions` TEXT NOT NULL");
170
+ if (!$this->columnExists('field_options', CCF_FIELDS_TABLE))
171
+ $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` ADD `field_options` VARCHAR( 300 ) NOT NULL");
172
+ if (!$this->columnExists('field_required', CCF_FIELDS_TABLE))
173
+ $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` ADD `field_required` INT( 1 ) NOT NULL DEFAULT '0'");
174
+ if (!$this->columnExists('form_backgroundcolor', CCF_STYLES_TABLE))
175
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `form_backgroundcolor` VARCHAR( 20 ) NOT NULL DEFAULT 'ffffff'");
176
+ if (!$this->columnExists('field_borderround', CCF_STYLES_TABLE))
177
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `field_borderround` VARCHAR( 20 ) NOT NULL DEFAULT '6px'");
178
+ if (!$this->columnExists('tooltip_backgroundcolor', CCF_STYLES_TABLE))
179
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `tooltip_backgroundcolor` VARCHAR( 20 ) NOT NULL DEFAULT '000000'");
180
+ if (!$this->columnExists('tooltip_fontsize', CCF_STYLES_TABLE))
181
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `tooltip_fontsize` VARCHAR( 20 ) NOT NULL DEFAULT '12px'");
182
+ if (!$this->columnExists('tooltip_fontcolor', CCF_STYLES_TABLE))
183
+ $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `tooltip_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT 'ffffff'");
184
+ if (!$this->columnExists('field_class', CCF_FIELDS_TABLE))
185
+ $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` ADD `field_class` VARCHAR( 50 ) NOT NULL");
186
+ if (!$this->columnExists('field_error', CCF_FIELDS_TABLE))
187
+ $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` ADD `field_error` VARCHAR( 300 ) NOT NULL");
188
+ if (!$this->columnExists('form_access', CCF_FORMS_TABLE)) {
189
+ $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_access` TEXT NOT NULL");
190
+ // This makes all forms accessible when upgrading from CCF versions older than 4.5.0
191
+ $this->makeAllFormsAccessible();
192
+ }
193
+ if (!$this->columnExists('form_email_subject', CCF_FORMS_TABLE))
194
+ $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_email_subject` VARCHAR(250) NOT NULL");
195
+ if (!$this->columnExists('form_email_name', CCF_FORMS_TABLE))
196
+ $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_email_name` VARCHAR(100) NOT NULL");
197
+ if (!$this->columnExists('option_dead', CCF_FIELD_OPTIONS_TABLE))
198
+ $wpdb->query("ALTER TABLE `" . CCF_FIELD_OPTIONS_TABLE . "` ADD `option_dead` INT( 1 ) NOT NULL DEFAULT '0'");
199
+ $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` CHANGE `form_email` `form_email` TEXT NOT NULL");
200
+ $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` CHANGE `form_fields` `form_fields` TEXT NOT NULL");
201
+ $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` CHANGE `field_label` `field_label` TEXT NOT NULL");
202
+ $this->updateTableCharSets();
203
+ }
204
+
205
+ function updateTableCharSets() {
206
+ global $wpdb;
207
+ foreach ($GLOBALS['ccf_tables_array'] as $table) {
208
+ $wpdb->query("ALTER TABLE `" . $table . "` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci");
209
+ $wpdb->query("ALTER TABLE `" . $table . "` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci");
210
+ }
211
+ }
212
+
213
+ function insertFixedFields() {
214
+ $captcha = array('field_slug' => 'captcha', 'field_label' => __('Type the numbers.', 'custom-contact-forms'), 'field_type' => 'Text', 'field_value' => '', 'field_maxlength' => '100', 'user_field' => 0, 'field_instructions' => 'Type the numbers displayed in the image above.');
215
+ $ishuman = array('field_slug' => 'ishuman', 'field_label' => __('Check if you are human.', 'custom-contact-forms'), 'field_type' => 'Checkbox', 'field_value' => '1', 'field_maxlength' => '0', 'user_field' => 0, 'field_instructions' => 'This helps us prevent spam.');
216
+ $fixedEmail = array('field_slug' => 'fixedEmail', 'field_required' => 1, 'field_label' => __('Your Email', 'custom-contact-forms'), 'field_type' => 'Text', 'field_value' => '', 'field_maxlength' => '100', 'user_field' => 0, 'field_instructions' => 'Please enter your email address.');
217
+ $fixedWebsite = array('field_slug' => 'fixedWebsite', 'field_required' => 1, 'field_label' => __('Your Website', 'custom-contact-forms'), 'field_type' => 'Text', 'field_value' => '', 'field_maxlength' => '200', 'user_field' => 0, 'field_instructions' => 'Please enter your website.');
218
+ $emailSubject = array('field_slug' => 'emailSubject', 'field_required' => 1, 'field_label' => __('Email Subject', 'custom-contact-forms'), 'field_type' => 'Text', 'field_value' => '', 'field_maxlength' => '200', 'user_field' => 0, 'field_instructions' => 'Please enter a subject for the email.');
219
+ $reset = array('field_slug' => 'resetButton', 'field_type' => 'Reset', 'field_value' => __('Reset Form', 'custom-contact-forms'), 'user_field' => 0);
220
+ $states = array('field_slug' => 'usaStates', 'field_label' => __('Select a State', 'custom-contact-forms'), 'field_type' => 'Dropdown', 'user_field' => 0);
221
+ $countries = array('field_slug' => 'allCountries', 'field_label' => __('Select a Country', 'custom-contact-forms'), 'field_type' => 'Dropdown', 'user_field' => 0);
222
+ if (!$this->fieldSlugExists('captcha'))
223
+ $this->insertField($captcha, true);
224
+ if (!$this->fieldSlugExists('usaStates'))
225
+ $this->insertField($states, true);
226
+ if (!$this->fieldSlugExists('allCountries'))
227
+ $this->insertField($countries, true);
228
+ if (!$this->fieldSlugExists('ishuman'))
229
+ $this->insertField($ishuman, true);
230
+ if (!$this->fieldSlugExists('fixedEmail'))
231
+ $this->insertField($fixedEmail, true);
232
+ if (!$this->fieldSlugExists('fixedWebsite'))
233
+ $this->insertField($fixedWebsite, true);
234
+ if (!$this->fieldSlugExists('emailWebsite'))
235
+ $this->insertField($emailSubject, true);
236
+ if (!$this->fieldSlugExists('resetButton'))
237
+ $this->insertField($reset, true);
238
+ }
239
+
240
+ function columnExists($column, $table) {
241
+ global $wpdb;
242
+ if (!is_array($this->cache[$table]))
243
+ $this->cache[$table] = array();
244
+ if (empty($this->cache[$table]['columns']))
245
+ $this->cache[$table]['columns'] = $wpdb->get_results('SHOW COLUMNS FROM ' . $table, ARRAY_A);
246
+ $col_array = $this->cache[$table]['columns'];
247
+ foreach ($col_array as $col) {
248
+ if ($col['Field'] == $column)
249
+ return true;
250
+ }
251
+ return false;
252
+ }
253
+
254
+ function makeAllFormsAccessible() {
255
+ $forms = parent::selectAllForms();
256
+ foreach ($forms as $form) {
257
+ parent::updateForm(array('form_access_update' => 1, 'form_access' => array_values(parent::getRolesArray())), $form->id);
258
+ }
259
+ }
260
+ }
261
+ }
262
+ ?>
modules/db/custom-contact-forms-db.php CHANGED
@@ -6,199 +6,20 @@
6
  */
7
  if (!class_exists('CustomContactFormsDB')) {
8
  class CustomContactFormsDB {
9
- var $cache = array();
10
- function createTables() {
11
- global $wpdb;
12
- if(!$this->formsTableExists()) {
13
- $sql1 = " CREATE TABLE `".CCF_FORMS_TABLE."` (
14
- `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
15
- `form_slug` VARCHAR( 100 ) NOT NULL ,
16
- `form_title` VARCHAR( 200 ) NOT NULL ,
17
- `form_action` TEXT NOT NULL ,
18
- `form_method` VARCHAR( 4 ) NOT NULL ,
19
- `form_fields` VARCHAR( 200 ) NOT NULL ,
20
- `submit_button_text` VARCHAR( 200 ) NOT NULL ,
21
- `custom_code` TEXT NOT NULL ,
22
- PRIMARY KEY ( `id` )
23
- ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
24
- $wpdb->query($sql1);
25
- } if(!$this->userDataTableExists()) {
26
- $sql7 = " CREATE TABLE `".CCF_USER_DATA_TABLE."` (
27
- `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
28
- `data_time` INT( 11 ) NOT NULL DEFAULT '0',
29
- `data_formid` INT( 11 ) NOT NULL ,
30
- `data_formpage` VARCHAR ( 250 ) NOT NULL ,
31
- `data_value` LONGTEXT NOT NULL ,
32
- PRIMARY KEY ( `id` )
33
- ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
34
- $wpdb->query($sql7);
35
- } if(!$this->fieldOptionsTableExists()) {
36
- $sql5 = " CREATE TABLE `".CCF_FIELD_OPTIONS_TABLE."` (
37
- `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
38
- `option_slug` VARCHAR( 100 ) NOT NULL ,
39
- `option_label` VARCHAR( 200 ) NOT NULL ,
40
- `option_value` VARCHAR( 100 ) NOT NULL ,
41
- PRIMARY KEY ( `id` )
42
- ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
43
- $wpdb->query($sql5);
44
- } if(!$this->fieldsTableExists()) {
45
- $sql2 = "CREATE TABLE `".CCF_FIELDS_TABLE."` (
46
- `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
47
- `field_slug` VARCHAR( 50 ) NOT NULL ,
48
- `field_label` VARCHAR( 100 ) NOT NULL ,
49
- `field_type` VARCHAR( 25 ) NOT NULL ,
50
- `field_value` TEXT NOT NULL ,
51
- `field_maxlength` INT ( 5 ) NOT NULL DEFAULT '0',
52
- `user_field` INT ( 1 ) NOT NULL DEFAULT '1',
53
- PRIMARY KEY ( `id` )
54
- ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
55
- $wpdb->query($sql2);
56
- } if(!$this->stylesTableExists()) {
57
- $sql3 = "CREATE TABLE `".CCF_STYLES_TABLE."` (
58
- `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
59
- `style_slug` VARCHAR( 30 ) NOT NULL ,
60
- `input_width` VARCHAR( 10 ) NOT NULL DEFAULT '200px',
61
- `textarea_width` VARCHAR( 10 ) NOT NULL DEFAULT '200px',
62
- `textarea_height` VARCHAR( 10 ) NOT NULL DEFAULT '100px',
63
- `form_borderwidth` VARCHAR( 10 ) NOT NULL DEFAULT '0px',
64
- `label_width` VARCHAR( 10 ) NOT NULL DEFAULT '200px',
65
- `form_width` VARCHAR( 10 ) NOT NULL DEFAULT '100%',
66
- `submit_width` VARCHAR( 10 ) NOT NULL DEFAULT 'auto',
67
- `submit_height` VARCHAR( 10 ) NOT NULL DEFAULT '40px',
68
- `label_fontsize` VARCHAR( 10 ) NOT NULL DEFAULT '1em',
69
- `title_fontsize` VARCHAR( 10 ) NOT NULL DEFAULT '1.2em',
70
- `field_fontsize` VARCHAR( 10 ) NOT NULL DEFAULT '1.3em',
71
- `submit_fontsize` VARCHAR( 10 ) NOT NULL DEFAULT '1.1em',
72
- `field_bordercolor` VARCHAR( 10 ) NOT NULL DEFAULT '999999',
73
- `form_borderstyle` VARCHAR( 30 ) NOT NULL DEFAULT 'none',
74
- `form_bordercolor` VARCHAR( 20 ) NOT NULL DEFAULT '',
75
- `field_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT '333333',
76
- `label_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT '333333',
77
- `title_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT '333333',
78
- `submit_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT '333333',
79
- `form_fontfamily` VARCHAR( 150 ) NOT NULL DEFAULT 'Tahoma, Verdana, Arial',
80
- PRIMARY KEY ( `id` )
81
- ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
82
- $wpdb->query($sql3);
83
- }
84
- return true;
85
- }
86
 
87
  function formatStyle($style) {
88
  return str_replace('#', '', str_replace(';', '', $style));
89
  }
90
 
91
- function updateTableCharSets() {
92
- global $wpdb;
93
- foreach ($GLOBALS['ccf_tables_array'] as $table) {
94
- $wpdb->query("ALTER TABLE `" . $table . "` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci");
95
- $wpdb->query("ALTER TABLE `" . $table . "` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci");
96
- }
97
- }
98
-
99
- function updateTables() {
100
- global $wpdb;
101
- if (!$this->columnExists('user_field', CCF_FIELDS_TABLE))
102
- $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` ADD `user_field` INT( 1 ) NOT NULL DEFAULT '1'");
103
- if (!$this->columnExists('form_style', CCF_FORMS_TABLE))
104
- $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_style` INT( 10 ) NOT NULL DEFAULT '0'");
105
- if (!$this->columnExists('form_email', CCF_FORMS_TABLE))
106
- $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_email` VARCHAR( 50 ) NOT NULL");
107
- if (!$this->columnExists('form_success_message', CCF_FORMS_TABLE))
108
- $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_success_message` TEXT NOT NULL");
109
- if (!$this->columnExists('form_thank_you_page', CCF_FORMS_TABLE))
110
- $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_thank_you_page` VARCHAR ( 200 ) NOT NULL");
111
- if (!$this->columnExists('field_backgroundcolor', CCF_STYLES_TABLE))
112
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `field_backgroundcolor` VARCHAR( 20 ) NOT NULL DEFAULT 'f5f5f5'");
113
- if (!$this->columnExists('field_borderstyle', CCF_STYLES_TABLE))
114
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `field_borderstyle` VARCHAR( 20 ) NOT NULL DEFAULT 'solid'");
115
- if (!$this->columnExists('form_success_title', CCF_FORMS_TABLE))
116
- $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_success_title` VARCHAR( 150 ) NOT NULL DEFAULT '".__('Form Success!', 'custom-contact-forms')."'");
117
- if (!$this->columnExists('form_padding', CCF_STYLES_TABLE))
118
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `form_padding` VARCHAR( 20 ) NOT NULL DEFAULT '8px'");
119
- if (!$this->columnExists('form_margin', CCF_STYLES_TABLE))
120
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `form_margin` VARCHAR( 20 ) NOT NULL DEFAULT '7px'");
121
- if (!$this->columnExists('title_margin', CCF_STYLES_TABLE))
122
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `title_margin` VARCHAR( 20 ) NOT NULL DEFAULT '4px'");
123
- if (!$this->columnExists('label_margin', CCF_STYLES_TABLE))
124
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `label_margin` VARCHAR( 20 ) NOT NULL DEFAULT '6px'");
125
- if (!$this->columnExists('textarea_backgroundcolor', CCF_STYLES_TABLE))
126
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `textarea_backgroundcolor` VARCHAR( 20 ) NOT NULL DEFAULT 'f5f5f5'");
127
- if (!$this->columnExists('success_popover_bordercolor', CCF_STYLES_TABLE))
128
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `success_popover_bordercolor` VARCHAR( 20 ) NOT NULL DEFAULT 'efefef'");
129
- if (!$this->columnExists('dropdown_width', CCF_STYLES_TABLE))
130
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `dropdown_width` VARCHAR( 20 ) NOT NULL DEFAULT 'auto'");
131
- if (!$this->columnExists('success_popover_fontsize', CCF_STYLES_TABLE))
132
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `success_popover_fontsize` VARCHAR( 20 ) NOT NULL DEFAULT '12px'");
133
- if (!$this->columnExists('success_popover_title_fontsize', CCF_STYLES_TABLE))
134
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `success_popover_title_fontsize` VARCHAR( 20 ) NOT NULL DEFAULT '1.3em'");
135
- if (!$this->columnExists('success_popover_height', CCF_STYLES_TABLE))
136
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `success_popover_height` VARCHAR( 20 ) NOT NULL DEFAULT '200px'");
137
- if (!$this->columnExists('success_popover_fontcolor', CCF_STYLES_TABLE))
138
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `success_popover_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT '333333'");
139
- if (!$this->columnExists('success_popover_title_fontcolor', CCF_STYLES_TABLE))
140
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `success_popover_title_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT '333333'");
141
- if (!$this->columnExists('field_instructions', CCF_FIELDS_TABLE))
142
- $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` ADD `field_instructions` TEXT NOT NULL");
143
- if (!$this->columnExists('field_options', CCF_FIELDS_TABLE))
144
- $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` ADD `field_options` VARCHAR( 300 ) NOT NULL");
145
- if (!$this->columnExists('field_required', CCF_FIELDS_TABLE))
146
- $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` ADD `field_required` INT( 1 ) NOT NULL DEFAULT '0'");
147
- if (!$this->columnExists('form_backgroundcolor', CCF_STYLES_TABLE))
148
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `form_backgroundcolor` VARCHAR( 20 ) NOT NULL DEFAULT 'ffffff'");
149
- if (!$this->columnExists('field_borderround', CCF_STYLES_TABLE))
150
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `field_borderround` VARCHAR( 20 ) NOT NULL DEFAULT '6px'");
151
- if (!$this->columnExists('tooltip_backgroundcolor', CCF_STYLES_TABLE))
152
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `tooltip_backgroundcolor` VARCHAR( 20 ) NOT NULL DEFAULT '000000'");
153
- if (!$this->columnExists('tooltip_fontsize', CCF_STYLES_TABLE))
154
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `tooltip_fontsize` VARCHAR( 20 ) NOT NULL DEFAULT '12px'");
155
- if (!$this->columnExists('tooltip_fontcolor', CCF_STYLES_TABLE))
156
- $wpdb->query("ALTER TABLE `" . CCF_STYLES_TABLE . "` ADD `tooltip_fontcolor` VARCHAR( 20 ) NOT NULL DEFAULT 'ffffff'");
157
- if (!$this->columnExists('field_class', CCF_FIELDS_TABLE))
158
- $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` ADD `field_class` VARCHAR( 50 ) NOT NULL");
159
- if (!$this->columnExists('field_error', CCF_FIELDS_TABLE))
160
- $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` ADD `field_error` VARCHAR( 300 ) NOT NULL");
161
- $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` CHANGE `form_email` `form_email` TEXT NOT NULL");
162
- $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` CHANGE `form_fields` `form_fields` TEXT NOT NULL");
163
- $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` CHANGE `field_label` `field_label` TEXT NOT NULL");
164
- $this->updateTableCharSets();
165
- }
166
-
167
- function insertFixedFields() {
168
- $captcha = array('field_slug' => 'captcha', 'field_label' => __('Type the numbers.', 'custom-contact-forms'), 'field_type' => 'Text', 'field_value' => '', 'field_maxlength' => '100', 'user_field' => 0, 'field_instructions' => 'Type the numbers displayed in the image above.');
169
- $ishuman = array('field_slug' => 'ishuman', 'field_label' => __('Check if you are human.', 'custom-contact-forms'), 'field_type' => 'Checkbox', 'field_value' => '1', 'field_maxlength' => '0', 'user_field' => 0, 'field_instructions' => 'This helps us prevent spam.');
170
- $fixedEmail = array('field_slug' => 'fixedEmail', 'field_label' => __('Your Email', 'custom-contact-forms'), 'field_type' => 'Text', 'field_value' => '', 'field_maxlength' => '100', 'user_field' => 0, 'field_instructions' => 'Please enter your email address.');
171
- $reset = array('field_slug' => 'resetButton', 'field_type' => 'Reset', 'field_value' => __('Reset Form', 'custom-contact-forms'), 'user_field' => 0);
172
- if (!$this->fieldSlugExists('captcha'))
173
- $this->insertField($captcha, true);
174
- if (!$this->fieldSlugExists('ishuman'))
175
- $this->insertField($ishuman, true);
176
- if (!$this->fieldSlugExists('fixedEmail'))
177
- $this->insertField($fixedEmail, true);
178
- if (!$this->fieldSlugExists('resetButton'))
179
- $this->insertField($reset, true);
180
- }
181
-
182
- function columnExists($column, $table) {
183
- global $wpdb;
184
- if (!is_array($this->cache[$table]))
185
- $this->cache[$table] = array();
186
- if (empty($this->cache[$table]['columns']))
187
- $this->cache[$table]['columns'] = $wpdb->get_results('SHOW COLUMNS FROM ' . $table, ARRAY_A);
188
- $col_array = $this->cache[$table]['columns'];
189
- foreach ($col_array as $col) {
190
- if ($col['Field'] == $column)
191
- return true;
192
- }
193
- return false;
194
- }
195
-
196
  function insertForm($form) {
197
  global $wpdb;
198
  if (empty($form) or empty($form['form_slug']) or $this->formSlugExists($this->formatSlug($form['form_slug']))) return false;
199
  $form['form_slug'] = $this->formatSlug($form['form_slug']);
 
 
200
  foreach ($form as $key => $value)
201
- $form[$key] = CustomContactFormsStatic::encodeOption($value);
 
202
  $wpdb->insert(CCF_FORMS_TABLE, $form);
203
  return $wpdb->insert_id;
204
  }
@@ -209,7 +30,8 @@ if (!class_exists('CustomContactFormsDB')) {
209
  return false;
210
  $field['field_slug'] = $this->formatSlug($field['field_slug']);
211
  foreach ($field as $key => $value)
212
- $field[$key] = CustomContactFormsStatic::encodeOption($value);
 
213
  $wpdb->insert(CCF_FIELDS_TABLE, $field);
214
  return $wpdb->insert_id;
215
  }
@@ -219,7 +41,7 @@ if (!class_exists('CustomContactFormsDB')) {
219
  if (empty($option) or empty($option['option_slug']) or empty($option['option_label']) or $this->fieldOptionsSlugExists($this->formatSlug($option['option_slug']))) return false;
220
  $option['option_slug'] = $this->formatSlug($option['option_slug']);
221
  foreach ($option as $key => $value)
222
- $option[$key] = CustomContactFormsStatic::encodeOption($value);
223
  $wpdb->insert(CCF_FIELD_OPTIONS_TABLE, $option);
224
  return $wpdb->insert_id;
225
  }
@@ -229,60 +51,64 @@ if (!class_exists('CustomContactFormsDB')) {
229
  if (empty($style) or empty($style['style_slug']) or $this->styleSlugExists($this->formatSlug($style['style_slug']))) return false;
230
  $style['style_slug'] = $this->formatSlug($style['style_slug']);
231
  foreach ($style as $key => $value)
232
- $style[$key] = CustomContactFormsStatic::encodeOption($value);
233
  $wpdb->insert(CCF_STYLES_TABLE, $style);
234
  return $wpdb->insert_id;
235
  }
236
 
237
-
238
- function fieldsTableExists() {
239
- global $wpdb;
240
- return ($wpdb->get_var("show tables like '". CCF_FIELDS_TABLE . "'") == CCF_FIELDS_TABLE);
241
- }
242
-
243
- function formsTableExists() {
244
- global $wpdb;
245
- return ($wpdb->get_var("show tables like '". CCF_FORMS_TABLE . "'") == CCF_FORMS_TABLE);
246
- }
247
-
248
- function stylesTableExists() {
249
- global $wpdb;
250
- return ($wpdb->get_var("show tables like '". CCF_STYLES_TABLE . "'") == CCF_STYLES_TABLE);
251
- }
252
-
253
- function fieldOptionsTableExists() {
254
- global $wpdb;
255
- return ($wpdb->get_var("show tables like '". CCF_FIELD_OPTIONS_TABLE . "'") == CCF_FIELD_OPTIONS_TABLE);
256
  }
257
 
258
- function userDataTableExists() {
259
- global $wpdb;
260
- return ($wpdb->get_var("show tables like '". CCF_USER_DATA_TABLE . "'") == CCF_USER_DATA_TABLE);
 
 
 
 
 
261
  }
262
 
263
- function updateForm($form, $fid) {
264
  global $wpdb;
265
  if (!empty($form['form_slug'])) {
266
  $test = $this->selectForm('', $this->formatSlug($form['form_slug']));
267
  if (!empty($test) and $test->id != $fid) return false;
268
  $form['form_slug'] = $this->formatSlug($form['form_slug']);
269
  }
 
 
 
 
 
 
 
270
  foreach ($form as $key => $value)
271
- $form[$key] = CustomContactFormsStatic::encodeOption($value);
 
272
  $wpdb->update(CCF_FORMS_TABLE, $form, array('id' => $fid));
273
  return true;
274
  }
275
 
276
- function updateField($field, $fid) {
277
  global $wpdb;
278
  if (!empty($field['field_slug'])) {
279
  $test = $this->selectField('', $this->formatSlug($field['field_slug']));
280
  if ((!empty($test) and $test->id != $fid) or array_key_exists($this->formatSlug($field['field_slug']), $GLOBALS['ccf_fixed_fields']))
281
  return false;
282
  $field['field_slug'] = $this->formatSlug($field['field_slug']);
283
- }
 
284
  foreach ($field as $key => $value)
285
- $field[$key] = CustomContactFormsStatic::encodeOption($value);
 
286
  $wpdb->update(CCF_FIELDS_TABLE, $field, array('id' => $fid));
287
  return true;
288
  }
@@ -296,7 +122,7 @@ if (!class_exists('CustomContactFormsDB')) {
296
  $option['option_slug'] = $this->formatSlug($option['option_slug']);
297
  }
298
  foreach ($option as $key => $value)
299
- $option[$key] = CustomContactFormsStatic::encodeOption($value);
300
  $wpdb->update(CCF_FIELD_OPTIONS_TABLE, $option, array('id' => $oid));
301
  return true;
302
  }
@@ -309,7 +135,7 @@ if (!class_exists('CustomContactFormsDB')) {
309
  return false;
310
  $style['style_slug'] = $this->formatSlug($style['style_slug']);
311
  foreach ($style as $key => $value)
312
- $style[$key] = CustomContactFormsStatic::encodeOption($value);
313
  $wpdb->update(CCF_STYLES_TABLE, $style, array('id' => $sid));
314
  return true;
315
  }
@@ -323,7 +149,7 @@ if (!class_exists('CustomContactFormsDB')) {
323
 
324
  function deleteField($fid, $slug = NULL) {
325
  global $wpdb;
326
- $this->dettachFieldAll($fid);
327
  $where_params = ($slug == NULL) ? "id='$fid'" : "field_slug='$slug'";
328
  $wpdb->query("DELETE FROM " . CCF_FIELDS_TABLE . ' WHERE ' . $where_params);
329
  return false;
@@ -337,7 +163,7 @@ if (!class_exists('CustomContactFormsDB')) {
337
 
338
  function deleteStyle($sid, $slug = NULL) {
339
  global $wpdb;
340
- $this->dettachStyleAll($sid);
341
  $where_params = ($slug == NULL) ? "id='$sid'" : "style_slug='$slug'";
342
  $wpdb->query("DELETE FROM " . CCF_STYLES_TABLE . ' WHERE ' . $where_params);
343
  return true;
@@ -345,7 +171,7 @@ if (!class_exists('CustomContactFormsDB')) {
345
 
346
  function deleteFieldOption($oid, $slug = NULL) {
347
  global $wpdb;
348
- $this->dettachFieldOptionAll($oid);
349
  $where_params = ($slug == NULL) ? "id='$oid'" : "option_slug='$slug'";
350
  $wpdb->query("DELETE FROM " . CCF_FIELD_OPTIONS_TABLE . ' WHERE ' . $where_params);
351
  return true;
@@ -353,6 +179,7 @@ if (!class_exists('CustomContactFormsDB')) {
353
 
354
  function deleteUserData($uid) {
355
  global $wpdb;
 
356
  $wpdb->query("DELETE FROM " . CCF_USER_DATA_TABLE . " WHERE id='$uid'");
357
  return true;
358
  }
@@ -372,7 +199,7 @@ if (!class_exists('CustomContactFormsDB')) {
372
  return $wpdb->get_results("SELECT * FROM " . CCF_FIELDS_TABLE . " ORDER BY field_slug ASC");
373
  }
374
 
375
- function selectAllFieldOptions() {
376
  global $wpdb;
377
  return $wpdb->get_results("SELECT * FROM " . CCF_FIELD_OPTIONS_TABLE . " ORDER BY option_slug ASC");
378
  }
@@ -423,8 +250,8 @@ if (!class_exists('CustomContactFormsDB')) {
423
  if (empty($form)) return false;
424
  $fields = $this->getAttachedFieldsArray($form_id);
425
  if (!in_array($field_id, $fields)) {
426
- $new_fields = $form->form_fields . $field_id . ',';
427
- $this->updateForm(array('form_fields' => $new_fields), $form_id);
428
  return true;
429
  }
430
  return false;
@@ -437,62 +264,79 @@ if (!class_exists('CustomContactFormsDB')) {
437
  if (empty($field)) return false;
438
  $options = $this->getAttachedFieldOptionsArray($field_id);
439
  if (!in_array($option_id, $options)) {
440
- $new_options = $field->field_options . $option_id . ',';
441
- $this->updateField(array('field_options' => $new_options), $field_id);
442
  return true;
443
  }
444
  return false;
445
  }
446
 
447
  function getAttachedFieldsArray($form_id) {
448
- $form = $this->selectForm($form_id, '');
449
- $out = explode(',', $form->form_fields);
450
- if (!empty($out)) array_pop($out);
451
- return $out;
452
  }
453
 
454
  function getAttachedFieldOptionsArray($field_id) {
455
  $field = $this->selectField($field_id);
456
- $out = explode(',', $field->field_options);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
457
  if (!empty($out)) array_pop($out);
458
  return $out;
459
  }
460
 
461
- function dettachField($field_id, $form_id) {
462
  $fields = $this->getAttachedFieldsArray($form_id);
463
  if (!empty($fields) && in_array($field_id, $fields)) {
464
- $form = $this->selectForm($form_id);
465
- $new_fields = str_replace($field_id . ',', '', $form->form_fields);
466
- $this->updateForm(array('form_fields' => $new_fields), $form_id);
467
  return true;
468
  }
469
  return false;
470
  }
471
 
472
- function dettachFieldOption($option_id, $field_id) {
473
  $options = $this->getAttachedFieldOptionsArray($field_id);
 
474
  if (!empty($options) && in_array($option_id, $options)) {
475
- $field = $this->selectField($field_id);
476
- $new_options = str_replace($option_id . ',', '', $field->field_options);
477
- $this->updateField(array('field_options' => $new_options), $field_id);
478
  return true;
479
  }
480
  return false;
481
  }
482
 
483
- function dettachFieldAll($field_id) {
484
  $forms = $this->selectAllForms();
485
  foreach ($forms as $form)
486
- $this->dettachField($field_id, $form->id);
487
  }
488
 
489
- function dettachFieldOptionAll($option_id) {
490
  $fields = $this->selectAllFields();
491
  foreach ($fields as $field)
492
- $this->dettachFieldOption($option_id, $field->id);
493
  }
494
 
495
- function dettachStyleAll($style_id) {
496
  $forms = $this->selectAllForms();
497
  foreach ($forms as $form) {
498
  if ($form->form_style == $style_id) {
@@ -544,67 +388,23 @@ if (!class_exists('CustomContactFormsDB')) {
544
  foreach ($styles as $style) $this->deleteStyle($style->id);
545
  foreach ($options as $option) $this->deleteFieldOption($option->id);
546
  }
 
547
 
548
- function insertDefaultContent($overwrite = false) {
549
- $field_slugs = array('name' => 'ccf_name', 'message' => 'ccf_message',
550
- 'website' => 'ccf_website', 'phone' => 'ccf_phone', 'google' => 'ccf_google',
551
- 'contact_method' => 'ccf_contact_method');
552
- $option_slugs = array('email' => 'ccf_email', 'phone' => 'ccf_phone', 'nocontact' => 'ccf_no_contact');
553
- $form_slugs = array('contact_form' => 'ccf_contact_form');
554
- if ($overwrite) {
555
- foreach($field_slugs as $slug) $this->deleteField(0, $slug);
556
- foreach($option_slugs as $slug) $this->deleteFieldOption(0, $slug);
557
- foreach($form_slugs as $slug) $this->deleteForm(0, $slug);
558
- }
559
- $name_field = array('field_slug' => $field_slugs['name'], 'field_label' => __('Your Name:', 'custom-contact-forms'),
560
- 'field_required' => 1, 'field_instructions' => __('Please enter your full name.', 'custom-contact-forms'),
561
- 'field_maxlength' => '100', 'field_type' => 'Text');
562
- $message_field = array('field_slug' => $field_slugs['message'], 'field_label' => __('Your Message:', 'custom-contact-forms'),
563
- 'field_required' => 0, 'field_instructions' => __('Enter any message or comment.', 'custom-contact-forms'),
564
- 'field_maxlength' => 0, 'field_type' => 'Textarea');
565
- $website_field = array('field_slug' => $field_slugs['website'], 'field_label' => __('Your Website:', 'custom-contact-forms'),
566
- 'field_required' => 0, 'field_instructions' => __('If you have a website, please enter it here.', 'custom-contact-forms'),
567
- 'field_maxlength' => 200, 'field_type' => 'Text');
568
- $phone_field = array('field_slug' => $field_slugs['phone'], 'field_label' => __('Your Phone Number:', 'custom-contact-forms'),
569
- 'field_required' => 0, 'field_instructions' => __('Please enter your phone number.', 'custom-contact-forms'),
570
- 'field_maxlength' => 30, 'field_type' => 'Text');
571
- $google_field = array('field_slug' => $field_slugs['google'], 'field_label' => __('Did you find my website through Google?', 'custom-contact-forms'),
572
- 'field_required' => 0, 'field_instructions' => __('If you found my website through Google, check this box.', 'custom-contact-forms'),
573
- 'field_maxlength' => 0, 'field_type' => 'Checkbox', 'field_value' => __('Yes', 'custom-contact-forms'));
574
- $contact_method_field = array('field_slug' => $field_slugs['contact_method'], 'field_label' => __('How should we contact you?', 'custom-contact-forms'),
575
- 'field_required' => 1, 'field_instructions' => __('By which method we should contact you?', 'custom-contact-forms'),
576
- 'field_maxlength' => 0, 'field_type' => 'Dropdown');
577
- $email_field = $this->selectField(0, 'fixedEmail');
578
- $captcha_field = $this->selectField(0, 'captcha');
579
- $reset_button = $this->selectField(0, 'resetButton');
580
- $email_option = array('option_slug' => $option_slugs['email'], 'option_label' => __('By Email', 'custom-contact-forms'));
581
- $phone_option = array('option_slug' => $option_slugs['phone'], 'option_label' => __('By Phone', 'custom-contact-forms'));
582
- $nocontact_option = array('option_slug' => $option_slugs['nocontact'], 'option_label' => __('Do Not Contact Me', 'custom-contact-forms'));
583
- $contact_form = array('form_slug' => $form_slugs['contact_form'], 'form_title' => __('Contact Form', 'custom-contact-forms'), 'form_method' => 'Post',
584
- 'submit_button_text' => __('Send Message', 'custom-contact-forms'), 'form_email' => get_option('admin_email'), 'form_success_message' => __('Thank you for filling out our contact form. We will contact you very soon by the way you specified.', 'custom-contact-forms'),
585
- 'form_success_title' => __('Thank You!', 'custom-contact-forms'), 'form_style' => 0);
586
- $name_field_id = $this->insertField($name_field);
587
- $message_field_id = $this->insertField($message_field);
588
- $website_field_id = $this->insertField($website_field);
589
- $phone_field_id = $this->insertField($phone_field);
590
- $google_field_id = $this->insertField($google_field);
591
- $contact_method_field_id = $this->insertField($contact_method_field);
592
- $email_option_id = $this->insertFieldOption($email_option);
593
- $phone_option_id = $this->insertFieldOption($phone_option);
594
- $nocontact_option_id = $this->insertFieldOption($nocontact_option);
595
- $contact_form_id = $this->insertForm($contact_form);
596
- $this->addFieldOptionToField($email_option_id, $contact_method_field_id);
597
- $this->addFieldOptionToField($phone_option_id, $contact_method_field_id);
598
- $this->addFieldOptionToField($nocontact_option_id, $contact_method_field_id);
599
- $this->addFieldToForm($name_field_id, $contact_form_id);
600
- $this->addFieldToForm($website_field_id, $contact_form_id);
601
- $this->addFieldToForm($email_field->id, $contact_form_id);
602
- $this->addFieldToForm($phone_field_id, $contact_form_id);
603
- $this->addFieldToForm($google_field_id, $contact_form_id);
604
- $this->addFieldToForm($contact_method_field_id, $contact_form_id);
605
- $this->addFieldToForm($message_field_id, $contact_form_id);
606
- $this->addFieldToForm($captcha_field->id, $contact_form_id);
607
- $this->addFieldToForm($reset_button->id, $contact_form_id);
608
  }
609
  }
610
  }
6
  */
7
  if (!class_exists('CustomContactFormsDB')) {
8
  class CustomContactFormsDB {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  function formatStyle($style) {
11
  return str_replace('#', '', str_replace(';', '', $style));
12
  }
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  function insertForm($form) {
15
  global $wpdb;
16
  if (empty($form) or empty($form['form_slug']) or $this->formSlugExists($this->formatSlug($form['form_slug']))) return false;
17
  $form['form_slug'] = $this->formatSlug($form['form_slug']);
18
+ $form['form_access'] = serialize($form['form_access']);
19
+ $skip_encode = array('form_access');
20
  foreach ($form as $key => $value)
21
+ if (!in_array($key, $skip_encode))
22
+ $form[$key] = ccf_utils::encodeOption($value);
23
  $wpdb->insert(CCF_FORMS_TABLE, $form);
24
  return $wpdb->insert_id;
25
  }
30
  return false;
31
  $field['field_slug'] = $this->formatSlug($field['field_slug']);
32
  foreach ($field as $key => $value)
33
+ if (!is_array($value))
34
+ $field[$key] = ccf_utils::encodeOption($value);
35
  $wpdb->insert(CCF_FIELDS_TABLE, $field);
36
  return $wpdb->insert_id;
37
  }
41
  if (empty($option) or empty($option['option_slug']) or empty($option['option_label']) or $this->fieldOptionsSlugExists($this->formatSlug($option['option_slug']))) return false;
42
  $option['option_slug'] = $this->formatSlug($option['option_slug']);
43
  foreach ($option as $key => $value)
44
+ $option[$key] = ccf_utils::encodeOption($value);
45
  $wpdb->insert(CCF_FIELD_OPTIONS_TABLE, $option);
46
  return $wpdb->insert_id;
47
  }
51
  if (empty($style) or empty($style['style_slug']) or $this->styleSlugExists($this->formatSlug($style['style_slug']))) return false;
52
  $style['style_slug'] = $this->formatSlug($style['style_slug']);
53
  foreach ($style as $key => $value)
54
+ $style[$key] = ccf_utils::encodeOption($value);
55
  $wpdb->insert(CCF_STYLES_TABLE, $style);
56
  return $wpdb->insert_id;
57
  }
58
 
59
+ function serializeAllFormFields() {
60
+ $forms = $this->selectAllForms();
61
+ foreach ($forms as $form) {
62
+ $fields = $form->form_fields;
63
+ if (!is_serialized($fields)) {
64
+ $this->updateForm(array('form_fields' => $this->old_getAttachedFieldsArray($fields)), $form->id);
65
+ }
66
+ }
 
 
 
 
 
 
 
 
 
 
 
67
  }
68
 
69
+ function serializeAllFieldOptions() {
70
+ $fields = $this->selectAllFields();
71
+ foreach ($fields as $field) {
72
+ $options = $field->field_options;
73
+ if (!is_serialized($options)) {
74
+ $this->updateField(array('field_options' => $this->old_getAttachedFieldsArray($options)), $field->id);
75
+ }
76
+ }
77
  }
78
 
79
+ function updateForm($form, $fid, $skip_encode = array('form_access', 'form_fields')) {
80
  global $wpdb;
81
  if (!empty($form['form_slug'])) {
82
  $test = $this->selectForm('', $this->formatSlug($form['form_slug']));
83
  if (!empty($test) and $test->id != $fid) return false;
84
  $form['form_slug'] = $this->formatSlug($form['form_slug']);
85
  }
86
+ if (!empty($form['form_access_update'])) {
87
+ $form['form_access'] = serialize($form['form_access']);
88
+ unset($form['form_access_update']);
89
+ } elseif (!empty($form['form_access'])) unset($form['form_access']);
90
+
91
+ if (isset($form['form_fields']))
92
+ $form['form_fields'] = serialize(array_unique($form['form_fields']));
93
  foreach ($form as $key => $value)
94
+ if (!in_array($key, $skip_encode))
95
+ $form[$key] = ccf_utils::encodeOption($value);
96
  $wpdb->update(CCF_FORMS_TABLE, $form, array('id' => $fid));
97
  return true;
98
  }
99
 
100
+ function updateField($field, $fid, $skip_encode = array('field_options')) {
101
  global $wpdb;
102
  if (!empty($field['field_slug'])) {
103
  $test = $this->selectField('', $this->formatSlug($field['field_slug']));
104
  if ((!empty($test) and $test->id != $fid) or array_key_exists($this->formatSlug($field['field_slug']), $GLOBALS['ccf_fixed_fields']))
105
  return false;
106
  $field['field_slug'] = $this->formatSlug($field['field_slug']);
107
+ } if (isset($field['field_options']))
108
+ $field['field_options'] = serialize(array_unique($field['field_options']));
109
  foreach ($field as $key => $value)
110
+ if (!in_array($key, $skip_encode))
111
+ $field[$key] = ccf_utils::encodeOption($value);
112
  $wpdb->update(CCF_FIELDS_TABLE, $field, array('id' => $fid));
113
  return true;
114
  }
122
  $option['option_slug'] = $this->formatSlug($option['option_slug']);
123
  }
124
  foreach ($option as $key => $value)
125
+ $option[$key] = ccf_utils::encodeOption($value);
126
  $wpdb->update(CCF_FIELD_OPTIONS_TABLE, $option, array('id' => $oid));
127
  return true;
128
  }
135
  return false;
136
  $style['style_slug'] = $this->formatSlug($style['style_slug']);
137
  foreach ($style as $key => $value)
138
+ $style[$key] = ccf_utils::encodeOption($value);
139
  $wpdb->update(CCF_STYLES_TABLE, $style, array('id' => $sid));
140
  return true;
141
  }
149
 
150
  function deleteField($fid, $slug = NULL) {
151
  global $wpdb;
152
+ $this->detachFieldAll($fid);
153
  $where_params = ($slug == NULL) ? "id='$fid'" : "field_slug='$slug'";
154
  $wpdb->query("DELETE FROM " . CCF_FIELDS_TABLE . ' WHERE ' . $where_params);
155
  return false;
163
 
164
  function deleteStyle($sid, $slug = NULL) {
165
  global $wpdb;
166
+ $this->detachStyleAll($sid);
167
  $where_params = ($slug == NULL) ? "id='$sid'" : "style_slug='$slug'";
168
  $wpdb->query("DELETE FROM " . CCF_STYLES_TABLE . ' WHERE ' . $where_params);
169
  return true;
171
 
172
  function deleteFieldOption($oid, $slug = NULL) {
173
  global $wpdb;
174
+ $this->detachFieldOptionAll($oid);
175
  $where_params = ($slug == NULL) ? "id='$oid'" : "option_slug='$slug'";
176
  $wpdb->query("DELETE FROM " . CCF_FIELD_OPTIONS_TABLE . ' WHERE ' . $where_params);
177
  return true;
179
 
180
  function deleteUserData($uid) {
181
  global $wpdb;
182
+ return true;
183
  $wpdb->query("DELETE FROM " . CCF_USER_DATA_TABLE . " WHERE id='$uid'");
184
  return true;
185
  }
199
  return $wpdb->get_results("SELECT * FROM " . CCF_FIELDS_TABLE . " ORDER BY field_slug ASC");
200
  }
201
 
202
+ function selectAllFieldOptions($user_option = -1) {
203
  global $wpdb;
204
  return $wpdb->get_results("SELECT * FROM " . CCF_FIELD_OPTIONS_TABLE . " ORDER BY option_slug ASC");
205
  }
250
  if (empty($form)) return false;
251
  $fields = $this->getAttachedFieldsArray($form_id);
252
  if (!in_array($field_id, $fields)) {
253
+ $fields[] = $field_id;
254
+ $this->updateForm(array('form_fields' => $fields), $form_id);
255
  return true;
256
  }
257
  return false;
264
  if (empty($field)) return false;
265
  $options = $this->getAttachedFieldOptionsArray($field_id);
266
  if (!in_array($option_id, $options)) {
267
+ $options[] = $option_id;
268
+ $this->updateField(array('field_options' => $options), $field_id);
269
  return true;
270
  }
271
  return false;
272
  }
273
 
274
  function getAttachedFieldsArray($form_id) {
275
+ $form = $this->selectForm($form_id);
276
+ $out = unserialize($form->form_fields);
277
+ if (!is_array($out)) return array();
278
+ return (empty($out)) ? array() : $out;
279
  }
280
 
281
  function getAttachedFieldOptionsArray($field_id) {
282
  $field = $this->selectField($field_id);
283
+ $out = unserialize($field->field_options);
284
+ if (!is_array($out)) return array();
285
+ return (empty($out)) ? array() : $out;
286
+ }
287
+
288
+ function old_getAttachedFieldsArray($fields) {
289
+ if (empty($fields)) return array();
290
+ $last_char = $fields[strlen($fields)-1];
291
+ if ($last_char != ',') $fields .= ',';
292
+ $out = explode(',', $fields);
293
+ if (!empty($out)) array_pop($out);
294
+ return $out;
295
+ }
296
+
297
+ function old_getAttachedFieldOptionsArray($options) {
298
+ if (empty($options)) return array();
299
+ $last_char = $options[strlen($options)-1];
300
+ if ($last_char != ',') $options .= ',';
301
+ $out = explode(',', $options);
302
  if (!empty($out)) array_pop($out);
303
  return $out;
304
  }
305
 
306
+ function detachField($field_id, $form_id) {
307
  $fields = $this->getAttachedFieldsArray($form_id);
308
  if (!empty($fields) && in_array($field_id, $fields)) {
309
+ unset($fields[array_search($field_id, $fields)]);
310
+ $this->updateForm(array('form_fields' => $fields), $form_id);
 
311
  return true;
312
  }
313
  return false;
314
  }
315
 
316
+ function detachFieldOption($option_id, $field_id) {
317
  $options = $this->getAttachedFieldOptionsArray($field_id);
318
+ //var_dump($options);
319
  if (!empty($options) && in_array($option_id, $options)) {
320
+ unset($options[array_search($option_id, $options)]);
321
+ $this->updateField(array('field_options' => $options), $field_id);
 
322
  return true;
323
  }
324
  return false;
325
  }
326
 
327
+ function detachFieldAll($field_id) {
328
  $forms = $this->selectAllForms();
329
  foreach ($forms as $form)
330
+ $this->detachField($field_id, $form->id);
331
  }
332
 
333
+ function detachFieldOptionAll($option_id) {
334
  $fields = $this->selectAllFields();
335
  foreach ($fields as $field)
336
+ $this->detachFieldOption($option_id, $field->id);
337
  }
338
 
339
+ function detachStyleAll($style_id) {
340
  $forms = $this->selectAllForms();
341
  foreach ($forms as $form) {
342
  if ($form->form_style == $style_id) {
388
  foreach ($styles as $style) $this->deleteStyle($style->id);
389
  foreach ($options as $option) $this->deleteFieldOption($option->id);
390
  }
391
+
392
 
393
+ function formHasRole($form_access_array, $role) {
394
+ return (in_array(strtolower($role), $form_access_array));
395
+ }
396
+
397
+ function getRolesArray() {
398
+ global $wp_roles;
399
+ $out = $wp_roles->get_names();
400
+ $out[] = __('Non-Registered User', 'custom-contact-forms');
401
+ return $out;
402
+ }
403
+
404
+ function getFormAccessArray($form_access_string) {
405
+ $arr = unserialize(strtolower($form_access_string));
406
+ if ($arr == false || empty($form_access_string)) $arr = array();
407
+ return $arr;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  }
409
  }
410
  }
modules/db/custom-contact-forms-default-db.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Custom Contact Forms Plugin
4
+ By Taylor Lovett - http://www.taylorlovett.com
5
+ Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
+ */
7
+ if (!class_exists('CustomContactFormsDefaultDB')) {
8
+ class CustomContactFormsDefaultDB extends CustomContactFormsDB {
9
+
10
+ function CustomContactFormsDefaultDB($insert_default_content = true) {
11
+ if ($insert_default_content)
12
+ $this->insertDefaultContent();
13
+ }
14
+
15
+ function insertDefaultContent($overwrite = false) {
16
+ $field_slugs = array('name' => 'ccf_name', 'message' => 'ccf_message',
17
+ 'phone' => 'ccf_phone', 'google' => 'ccf_google', 'contact_method' => 'ccf_contact_method');
18
+ $option_slugs = array('email' => 'ccf_email', 'phone' => 'ccf_phone', 'nocontact' => 'ccf_no_contact', 'pleaseselect' => 'please_select');
19
+ $form_slugs = array('contact_form' => 'ccf_contact_form');
20
+ if ($overwrite) {
21
+ foreach($field_slugs as $slug) parent::deleteField(0, $slug);
22
+ foreach($option_slugs as $slug) parent::deleteFieldOption(0, $slug);
23
+ foreach($form_slugs as $slug) parent::deleteForm(0, $slug);
24
+ }
25
+ $name_field = array('field_slug' => $field_slugs['name'], 'field_label' => __('Your Name:', 'custom-contact-forms'),
26
+ 'field_required' => 1, 'field_instructions' => __('Please enter your full name.', 'custom-contact-forms'),
27
+ 'field_maxlength' => '100', 'field_type' => 'Text');
28
+ $message_field = array('field_slug' => $field_slugs['message'], 'field_label' => __('Your Message:', 'custom-contact-forms'),
29
+ 'field_required' => 0, 'field_instructions' => __('Enter any message or comment.', 'custom-contact-forms'),
30
+ 'field_maxlength' => 0, 'field_type' => 'Textarea');
31
+ $phone_field = array('field_slug' => $field_slugs['phone'], 'field_label' => __('Your Phone Number:', 'custom-contact-forms'),
32
+ 'field_required' => 0, 'field_instructions' => __('Please enter your phone number.', 'custom-contact-forms'),
33
+ 'field_maxlength' => 30, 'field_type' => 'Text');
34
+ $google_field = array('field_slug' => $field_slugs['google'], 'field_label' => __('Did you find my website through Google?', 'custom-contact-forms'),
35
+ 'field_required' => 0, 'field_instructions' => __('If you found my website through Google, check this box.', 'custom-contact-forms'),
36
+ 'field_maxlength' => 0, 'field_type' => 'Checkbox', 'field_value' => __('Yes', 'custom-contact-forms'));
37
+ $contact_method_field = array('field_slug' => $field_slugs['contact_method'], 'field_label' => __('How should we contact you?', 'custom-contact-forms'),
38
+ 'field_required' => 1, 'field_instructions' => __('By which method we should contact you?', 'custom-contact-forms'),
39
+ 'field_maxlength' => 0, 'field_type' => 'Dropdown');
40
+ $email_field = parent::selectField(0, 'fixedEmail');
41
+ $website_field = parent::selectField(0, 'fixedWebsite');
42
+ $captcha_field = parent::selectField(0, 'captcha');
43
+ $reset_button = parent::selectField(0, 'resetButton');
44
+ $pleaseselect_option = array('option_slug' => $option_slugs['pleaseselect'], 'option_dead' => 1, 'option_label' => __('Please Select:', 'custom-contact-forms'));
45
+ $email_option = array('option_slug' => $option_slugs['email'], 'option_label' => __('By Email', 'custom-contact-forms'));
46
+ $phone_option = array('option_slug' => $option_slugs['phone'], 'option_label' => __('By Phone', 'custom-contact-forms'));
47
+ $nocontact_option = array('option_slug' => $option_slugs['nocontact'], 'option_label' => __('Do Not Contact Me', 'custom-contact-forms'));
48
+ $contact_form = array('form_slug' => $form_slugs['contact_form'], 'form_title' => __('Contact Form', 'custom-contact-forms'), 'form_method' => 'Post',
49
+ 'submit_button_text' => __('Send Message', 'custom-contact-forms'), 'form_email' => get_option('admin_email'), 'form_success_message' => __('Thank you for filling out our contact form. We will contact you very soon by the way you specified.', 'custom-contact-forms'),
50
+ 'form_success_title' => __('Thank You!', 'custom-contact-forms'), 'form_access' => parent::getRolesArray(), 'form_style' => 0);
51
+ $name_field_id = parent::insertField($name_field);
52
+ $message_field_id = parent::insertField($message_field);
53
+ $phone_field_id = parent::insertField($phone_field);
54
+ $google_field_id = parent::insertField($google_field);
55
+ $contact_method_field_id = parent::insertField($contact_method_field);
56
+ $email_option_id = parent::insertFieldOption($email_option);
57
+ $pleaseselect_option_id = parent::insertFieldOption($email_option);
58
+ $phone_option_id = parent::insertFieldOption($phone_option);
59
+ $nocontact_option_id = parent::insertFieldOption($nocontact_option);
60
+ $contact_form_id = parent::insertForm($contact_form);
61
+ parent::addFieldOptionToField($pleaseselect_option_id, $contact_method_field_id);
62
+ parent::addFieldOptionToField($email_option_id, $contact_method_field_id);
63
+ parent::addFieldOptionToField($phone_option_id, $contact_method_field_id);
64
+ parent::addFieldOptionToField($nocontact_option_id, $contact_method_field_id);
65
+ parent::addFieldToForm($name_field_id, $contact_form_id);
66
+ parent::addFieldToForm($website_field->id, $contact_form_id);
67
+ parent::addFieldToForm($email_field->id, $contact_form_id);
68
+ parent::addFieldToForm($phone_field_id, $contact_form_id);
69
+ parent::addFieldToForm($google_field_id, $contact_form_id);
70
+ parent::addFieldToForm($contact_method_field_id, $contact_form_id);
71
+ parent::addFieldToForm($message_field_id, $contact_form_id);
72
+ parent::addFieldToForm($captcha_field->id, $contact_form_id);
73
+ parent::addFieldToForm($reset_button->id, $contact_form_id);
74
+ }
75
+ }
76
+ }
77
+ ?>
modules/export/custom-contact-forms-export.php CHANGED
@@ -83,6 +83,7 @@ if (!class_exists('CustomContactFormsExport')) {
83
  $errors = 0;
84
  if ($settings['mode'] == 'clear_import') parent::emptyAllTables();
85
  foreach($commands as $command) {
 
86
  if (preg_match('/^[\s]*UPDATE/is', $command)) {
87
  if ($settings['import_general_settings'])
88
  if (!parent::query($command)) $errors++;
@@ -94,10 +95,15 @@ if (!class_exists('CustomContactFormsExport')) {
94
  if ($settings['import_field_options'] == 0) if ($table_name == CCF_FIELD_OPTIONS_TABLE) $no_query = 1;
95
  if ($settings['import_styles'] == 0) if ($table_name == CCF_STYLES_TABLE) $no_query = 1;
96
  if ($settings['import_saved_submissions'] == 0) if ($table_name == CCF_USER_DATA_TABLE) $no_query = 1;
97
- if ($no_query == 0)
98
  if (!parent::query($command)) $errors++;
 
99
  }
100
  }
 
 
 
 
101
  return ($errors == 0) ? true : $errors;
102
  }
103
  return false;
@@ -105,7 +111,7 @@ if (!class_exists('CustomContactFormsExport')) {
105
 
106
  function parseMultiQuery($sql, $unescape_semicolons = true, $replace_table_prefix = true) {
107
  if (empty($sql)) return false;
108
- $prefix = CustomContactFormsStatic::getWPTablePrefix();
109
  $commands = preg_split('/\);[\n\r]*/ims', $sql);
110
  foreach ($commands as $k => $v) {
111
  if (preg_match('/^[\s]*INSERT INTO/is', $v)) $commands[$k] = $v . ')';
@@ -119,7 +125,7 @@ if (!class_exists('CustomContactFormsExport')) {
119
 
120
  function generateOptionsUpdateQuery($option_name = NULL) {
121
  if ($option_name == NULL) $option_name = $this->option_name;
122
- $prefix = CustomContactFormsStatic::getWPTablePrefix();
123
  $options = serialize(get_option($option_name));
124
  return 'UPDATE `' . $prefix . "options` SET `option_value`='$options' WHERE `option_name`='$option_name';";
125
  }
83
  $errors = 0;
84
  if ($settings['mode'] == 'clear_import') parent::emptyAllTables();
85
  foreach($commands as $command) {
86
+
87
  if (preg_match('/^[\s]*UPDATE/is', $command)) {
88
  if ($settings['import_general_settings'])
89
  if (!parent::query($command)) $errors++;
95
  if ($settings['import_field_options'] == 0) if ($table_name == CCF_FIELD_OPTIONS_TABLE) $no_query = 1;
96
  if ($settings['import_styles'] == 0) if ($table_name == CCF_STYLES_TABLE) $no_query = 1;
97
  if ($settings['import_saved_submissions'] == 0) if ($table_name == CCF_USER_DATA_TABLE) $no_query = 1;
98
+ if ($no_query == 0) {
99
  if (!parent::query($command)) $errors++;
100
+ }
101
  }
102
  }
103
+ ccf_utils::load_module('db/custom-contact-forms-activate-db.php');
104
+ CustomContactFormsActivateDB::insertFixedFields();
105
+ parent::serializeAllFormFields();
106
+ parent::serializeAllFieldOptions();
107
  return ($errors == 0) ? true : $errors;
108
  }
109
  return false;
111
 
112
  function parseMultiQuery($sql, $unescape_semicolons = true, $replace_table_prefix = true) {
113
  if (empty($sql)) return false;
114
+ $prefix = ccf_utils::getWPTablePrefix();
115
  $commands = preg_split('/\);[\n\r]*/ims', $sql);
116
  foreach ($commands as $k => $v) {
117
  if (preg_match('/^[\s]*INSERT INTO/is', $v)) $commands[$k] = $v . ')';
125
 
126
  function generateOptionsUpdateQuery($option_name = NULL) {
127
  if ($option_name == NULL) $option_name = $this->option_name;
128
+ $prefix = ccf_utils::getWPTablePrefix();
129
  $options = serialize(get_option($option_name));
130
  return 'UPDATE `' . $prefix . "options` SET `option_value`='$options' WHERE `option_name`='$option_name';";
131
  }
modules/export/custom-contact-forms-user-data.php CHANGED
@@ -36,8 +36,8 @@ if (!class_exists('CustomContactFormsUserData')) {
36
  $data_array = $this->getDataArray();
37
  $encoded_data = '';
38
  foreach ($data_array as $key => $value) {
39
- $key = CustomContactFormsStatic::encodeOption($key);
40
- $value = CustomContactFormsStatic::encodeOption($value);
41
  $encoded_data .= 's:'.strlen($key).':"'.$key.'";';
42
  $encoded_data .= 's:'.strlen($value).':"'.$value.'";';
43
  }
36
  $data_array = $this->getDataArray();
37
  $encoded_data = '';
38
  foreach ($data_array as $key => $value) {
39
+ $key = ccf_utils::encodeOption($key);
40
+ $value = ccf_utils::encodeOption($value);
41
  $encoded_data .= 's:'.strlen($key).':"'.$key.'";';
42
  $encoded_data .= 's:'.strlen($value).':"'.$value.'";';
43
  }
modules/extra_fields/countries_field.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Custom Contact Forms Plugin
4
+ By Taylor Lovett - http://www.taylorlovett.com
5
+ Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
+ */
7
+ if (!class_exists('ccf_countries_field')) {
8
+ class ccf_countries_field {
9
+ var $field_code;
10
+
11
+ function ccf_countries_field($class = NULL, $id = NULL, $initial_value = NULL, $field_instructions = NULL) {
12
+ $this->field_code = '';
13
+ $class_attr = ($class == NULL) ? '' : $class;
14
+ $id_attr = ($id == NULL) ? '' : ' id="'.$id.'" ';
15
+ if ($field_instructions == NULL) {
16
+ $instructions_attr = '';
17
+ $tooltip_class = '';
18
+ } else {
19
+ $instructions_attr = ' title="'.$field_instructions.'" ';
20
+ $tooltip_class = 'ccf_tooltip_field';
21
+ }
22
+ $this->field_code .= '<select name="allCountries" class="'.tooltip_class.' ' . $class_attr . '" ' . $id_attr . $instructions_attr . '>' . "\n";
23
+ $countries = array('Afghanistan', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antarctica', 'Antigua And Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia And Herzegowina', 'Botswana',
24
+ 'Bouvet Island', 'Brazil', 'British Indian Ocean Territory', 'Brunei Darussalam', 'Bulgaria', 'Burkina Faso', 'Burundi', 'Cambodia', 'Cameroon', 'Canada', 'Cape Verde', 'Cayman Islands', 'Central African Republic', 'Chad', 'Chile', 'China', 'Christmas Island', 'Cocos (Keeling) Islands', 'Colombia', 'Comoros', 'Congo', 'Cook Islands', 'Costa Rica', "Cote D'Ivoire",
25
+ 'Croatia (Hrvatska)', 'Cuba', 'Cyprus', 'Czech Republic', 'Denmark', 'Djibouti', 'Dominica', 'Dominican Republic', 'East Timor', 'Ecuador', 'Egypt', 'El Salvador', 'Equatorial Guinea', 'Eritrea', 'Estonia', 'Ethiopia', 'Falkland Islands (Malvinas)', 'Faroe Islands', 'Fiji', 'Finland', 'France', 'French Guiana', 'French Polynesia', 'French Southern Territories', 'Gabon',
26
+ 'Gambia', 'Georgia', 'Germany', 'Ghana', 'Gibraltar', 'Greece', 'Greenland', 'Grenada', 'Guadeloupe', 'Guam', 'Guatemala', 'Guinea', 'Guinea-Bissau', 'Guyana', 'Haiti', 'Heard And Mc Donald Islands', 'Holy See (Vatican City State)', 'Honduras', 'Hong Kong', 'Hungary', 'Icel And', 'India', 'Indonesia', 'Iran', 'Iraq', 'Ireland', 'Israel', 'Italy',
27
+ 'Jamaica', 'Japan', 'Jordan', 'Kazakhstan', 'Kenya', 'Kiribati', "Korea, Dem People'S Republic", 'Korea, Republic Of', 'Kuwait', 'Kyrgyzstan', "Lao People'S Dem Republic", 'Latvia', 'Lebanon', 'Lesotho', 'Liberia', 'Libyan Arab Jamahiriya', 'Liechtenstein', 'Lithuania', 'Luxembourg', 'Macau', 'Macedonia', 'Madagascar', 'Malawi', 'Malaysia', 'Maldives', 'Mali',
28
+ 'Malta', 'Marshall Islands', 'Martinique', 'Mauritania', 'Mauritius', 'Mayotte', 'Mexico', 'Micronesia, Federated States', 'Moldova, Republic Of', 'Monaco', 'Mongolia', 'Montserrat', 'Morocco', 'Mozambique', 'Myanmar', 'Namibia', 'Nauru', 'Nepal', 'Netherlands', 'Netherlands Ant Illes', 'New Caledonia', 'New Zealand', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Norfolk Island',
29
+ 'Northern Mariana Islands', 'Norway', 'Oman', 'Pakistan', 'Palau', 'Panama', 'Papua New Guinea', 'Paraguay', 'Peru', 'Philippines', 'Pitcairn', 'Poland', 'Portugal', 'Puerto Rico', 'Qatar', 'Reunion', 'Romania', 'Russian Federation', 'Rwanda', 'Saint K Itts And Nevis', 'Saint Lucia', 'Saint Vincent, The Grenadines', 'Samoa', 'San Marino', 'Sao Tome And Principe', 'Saudi Arabia', 'Senegal',
30
+ 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovakia (Slovak Republic)', 'Slovenia', 'Solomon Islands', 'Somalia', 'South Africa', 'South Georgia , S Sandwich Is.', 'Spain', 'Sri Lanka', 'St. Helena', 'St. Pierre And Miquelon', 'Sudan', 'Suriname', 'Svalbard, Jan Mayen Islands', 'Sw Aziland', 'Sweden', 'Switzerland', 'Syrian Arab Republic', 'Taiwan', 'Tajikistan', 'Tanzania, United Republic Of',
31
+ 'Thailand', 'Togo', 'Tokelau', 'Tonga', 'Trinidad And Tobago', 'Tunisia', 'Turkey', 'Turkmenistan', 'Turks And Caicos Islands', 'Tuvalu', 'Uganda', 'Ukraine', 'United Arab Emirates', 'United Kingdom', 'United States', 'United States Minor Is.', 'Uruguay', 'Uzbekistan', 'Vanuatu', 'Venezuela', 'Viet Nam', 'Virgin Islands (British)', 'Virgin Islands (US)', 'Wallis And Futuna Islands',
32
+ 'Western Sahara', 'Yemen', 'Yugoslavia', 'Zaire', 'Zambia', 'Zimbabwe');
33
+ foreach ($countries as $country) {
34
+ if ($initial_value != NULL && $country == $initial_value)
35
+ $this->field_code .= '<option selected="selected">' . $country . '</option>' . "\n";
36
+ else
37
+ $this->field_code .= '<option>' . $country . '</option>' . "\n";
38
+ }
39
+ $this->field_code .= '</select>';
40
+ }
41
+
42
+ function getCode() {
43
+ return $this->field_code;
44
+ }
45
+ }
46
+ }
47
+ ?>
modules/extra_fields/date_field.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Custom Contact Forms Plugin
4
+ By Taylor Lovett - http://www.taylorlovett.com
5
+ Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
+ */
7
+ if (!class_exists('ccf_date_field')) {
8
+ class ccf_date_field {
9
+ var $field_code;
10
+
11
+ function ccf_date_field($class = NULL, $id = NULL, $initial_value = NULL, $field_instructions = NULL) {
12
+ $this->field_code = '';
13
+ $class_attr = ($class == NULL) ? '' : $class;
14
+ $id_attr = ($id == NULL) ? '' : ' id="'.$id.'" ';
15
+ if ($field_instructions == NULL) {
16
+ $instructions_attr = '';
17
+ $tooltip_class = '';
18
+ } else {
19
+ $instructions_attr = ' title="'.$field_instructions.'" ';
20
+ $tooltip_class = 'ccf_tooltip_field';
21
+ }
22
+ $this->field_code .= '<select name="allCountries" class="'.tooltip_class.' ' . $class_attr . '" ' . $id_attr . $instructions_attr . '>' . "\n";
23
+ $countries = array('Afghanistan', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antarctica', 'Antigua And Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia And Herzegowina', 'Botswana',
24
+ 'Bouvet Island', 'Brazil', 'British Indian Ocean Territory', 'Brunei Darussalam', 'Bulgaria', 'Burkina Faso', 'Burundi', 'Cambodia', 'Cameroon', 'Canada', 'Cape Verde', 'Cayman Islands', 'Central African Republic', 'Chad', 'Chile', 'China', 'Christmas Island', 'Cocos (Keeling) Islands', 'Colombia', 'Comoros', 'Congo', 'Cook Islands', 'Costa Rica', "Cote D'Ivoire",
25
+ 'Croatia (Hrvatska)', 'Cuba', 'Cyprus', 'Czech Republic', 'Denmark', 'Djibouti', 'Dominica', 'Dominican Republic', 'East Timor', 'Ecuador', 'Egypt', 'El Salvador', 'Equatorial Guinea', 'Eritrea', 'Estonia', 'Ethiopia', 'Falkland Islands (Malvinas)', 'Faroe Islands', 'Fiji', 'Finland', 'France', 'French Guiana', 'French Polynesia', 'French Southern Territories', 'Gabon',
26
+ 'Gambia', 'Georgia', 'Germany', 'Ghana', 'Gibraltar', 'Greece', 'Greenland', 'Grenada', 'Guadeloupe', 'Guam', 'Guatemala', 'Guinea', 'Guinea-Bissau', 'Guyana', 'Haiti', 'Heard And Mc Donald Islands', 'Holy See (Vatican City State)', 'Honduras', 'Hong Kong', 'Hungary', 'Icel And', 'India', 'Indonesia', 'Iran', 'Iraq', 'Ireland', 'Israel', 'Italy',
27
+ 'Jamaica', 'Japan', 'Jordan', 'Kazakhstan', 'Kenya', 'Kiribati', "Korea, Dem People'S Republic", 'Korea, Republic Of', 'Kuwait', 'Kyrgyzstan', "Lao People'S Dem Republic", 'Latvia', 'Lebanon', 'Lesotho', 'Liberia', 'Libyan Arab Jamahiriya', 'Liechtenstein', 'Lithuania', 'Luxembourg', 'Macau', 'Macedonia', 'Madagascar', 'Malawi', 'Malaysia', 'Maldives', 'Mali',
28
+ 'Malta', 'Marshall Islands', 'Martinique', 'Mauritania', 'Mauritius', 'Mayotte', 'Mexico', 'Micronesia, Federated States', 'Moldova, Republic Of', 'Monaco', 'Mongolia', 'Montserrat', 'Morocco', 'Mozambique', 'Myanmar', 'Namibia', 'Nauru', 'Nepal', 'Netherlands', 'Netherlands Ant Illes', 'New Caledonia', 'New Zealand', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Norfolk Island',
29
+ 'Northern Mariana Islands', 'Norway', 'Oman', 'Pakistan', 'Palau', 'Panama', 'Papua New Guinea', 'Paraguay', 'Peru', 'Philippines', 'Pitcairn', 'Poland', 'Portugal', 'Puerto Rico', 'Qatar', 'Reunion', 'Romania', 'Russian Federation', 'Rwanda', 'Saint K Itts And Nevis', 'Saint Lucia', 'Saint Vincent, The Grenadines', 'Samoa', 'San Marino', 'Sao Tome And Principe', 'Saudi Arabia', 'Senegal',
30
+ 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovakia (Slovak Republic)', 'Slovenia', 'Solomon Islands', 'Somalia', 'South Africa', 'South Georgia , S Sandwich Is.', 'Spain', 'Sri Lanka', 'St. Helena', 'St. Pierre And Miquelon', 'Sudan', 'Suriname', 'Svalbard, Jan Mayen Islands', 'Sw Aziland', 'Sweden', 'Switzerland', 'Syrian Arab Republic', 'Taiwan', 'Tajikistan', 'Tanzania, United Republic Of',
31
+ 'Thailand', 'Togo', 'Tokelau', 'Tonga', 'Trinidad And Tobago', 'Tunisia', 'Turkey', 'Turkmenistan', 'Turks And Caicos Islands', 'Tuvalu', 'Uganda', 'Ukraine', 'United Arab Emirates', 'United Kingdom', 'United States', 'United States Minor Is.', 'Uruguay', 'Uzbekistan', 'Vanuatu', 'Venezuela', 'Viet Nam', 'Virgin Islands (British)', 'Virgin Islands (US)', 'Wallis And Futuna Islands',
32
+ 'Western Sahara', 'Yemen', 'Yugoslavia', 'Zaire', 'Zambia', 'Zimbabwe');
33
+ foreach ($countries as $country) {
34
+ if ($initial_value != NULL && $country == $initial_value)
35
+ $this->field_code .= '<option selected="selected">' . $country . '</option>' . "\n";
36
+ else
37
+ $this->field_code .= '<option>' . $country . '</option>' . "\n";
38
+ }
39
+ $this->field_code .= '</select>';
40
+ }
41
+
42
+ function getCode() {
43
+ return $this->field_code;
44
+ }
45
+ }
46
+ }
47
+ ?>
modules/extra_fields/states_field.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Custom Contact Forms Plugin
4
+ By Taylor Lovett - http://www.taylorlovett.com
5
+ Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
+ */
7
+ if (!class_exists('ccf_states_field')) {
8
+ class ccf_states_field {
9
+ var $field_code;
10
+
11
+ function ccf_states_field($class = NULL, $id = NULL, $initial_value = NULL, $field_instructions = NULL) {
12
+ $this->field_code = '';
13
+ $class_attr = ($class == NULL) ? '' : $class;
14
+ $id_attr = ($id == NULL) ? '' : ' id="'.$id.'" ';
15
+ if ($field_instructions == NULL) {
16
+ $instructions_attr = '';
17
+ $tooltip_class = '';
18
+ } else {
19
+ $instructions_attr = ' title="'.$field_instructions.'" ';
20
+ $tooltip_class = 'ccf_tooltip_field';
21
+ }
22
+ $this->field_code .= '<select name="usaStates" class="'.tooltip_class.' ' . $class_attr . '" ' . $id_attr . $instructions_attr . '>' . "\n";
23
+ $states = array('Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'District of Columbia', 'Florida',
24
+ 'Georgia', 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana',
25
+ 'Maine', 'Maryland', 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana', 'Nebraska',
26
+ 'Nevada', 'New Hampshire', 'New Jersey', 'New Mexico', 'New York', 'North Carolina', 'North Dakota',
27
+ 'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island', 'South Carolina', 'South Dakota', 'Tennessee', 'Texas',
28
+ 'Utah', 'Vermont', 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming');
29
+ foreach ($states as $state) {
30
+ if ($initial_value != NULL && $state == $initial_value)
31
+ $this->field_code .= '<option selected="selected">' . $state . '</option>' . "\n";
32
+ else
33
+ $this->field_code .= '<option>' . $state . '</option>' . "\n";
34
+ }
35
+ $this->field_code .= '</select>';
36
+ }
37
+
38
+ function getCode() {
39
+ return $this->field_code;
40
+ }
41
+ }
42
+ }
43
+ ?>
modules/usage_popover/custom-contact-forms-usage-popover.php CHANGED
@@ -9,6 +9,9 @@
9
  </a></li>
10
  <li><a href="#pop-fields">
11
  <?php _e('Fields', 'custom-contact-forms'); ?>
 
 
 
12
  </a></li>
13
  <li><a href="#pop-field-options">
14
  <?php _e('Field Options', 'custom-contact-forms'); ?>
@@ -56,14 +59,14 @@
56
  <?php _e("Text:", 'custom-contact-forms'); ?>
57
  </span>
58
  <div>
59
- <input type="text" class="width200" value="<?php _e("This is a text field", 'custom-contact-forms'); ?>" />
60
  </div>
61
  </li>
62
  <li><span>
63
  <?php _e("Textarea:", 'custom-contact-forms'); ?>
64
  </span>
65
  <div>
66
- <textarea class="width2000"><?php _e("This is a text field", 'custom-contact-forms'); ?></textarea>
67
  </div>
68
  </li>
69
  <li><span>
@@ -155,6 +158,16 @@
155
  <?php _e("Field Instructions:", 'custom-contact-forms'); ?>
156
  </span>
157
  <?php _e("If this is filled out, a stylish tooltip popover displaying this text will show when the field is selected. This will only work if JQuery is enabled in general options.", 'custom-contact-forms'); ?>
 
 
 
 
 
 
 
 
 
 
158
  </li>
159
  <li><span>
160
  <?php _e("Field Options:", 'custom-contact-forms'); ?>
@@ -162,9 +175,23 @@
162
  <?php _e("After you create a field, if it's field type is radio or dropdown, you can attach field options to the field. Field options are explained in the next section.", 'custom-contact-forms'); ?>
163
  </li>
164
  </ul>
 
 
 
 
165
  <p>
166
- <?php _e("The last important thing related to fields are <span>Fixed Fields</span>. Fixed Fields are special fields that come already created within the plugin such as the captcha spam blocker and email field. Fixed Fields do special things that you wouldn't be able to accomplish with normally; they cannot be deleted or created. If you use the fixedEmail field, as opposed to creating your own email field. the users email will be checked to make sure it is valid, if it isn't a form error will be displayed.", 'custom-contact-forms'); ?>
167
  </p>
 
 
 
 
 
 
 
 
 
 
168
  </li>
169
  <li>
170
  <h3>
@@ -189,6 +216,11 @@
189
  </span>
190
  <?php _e("This is the actual value of the option which isn't shown to the user. This can be the same thing as the label. An example pairing of label => value is: 'The color green' => 'green' or 'Yes' => '1'. The option value is behind the scences; unseen by the user, but when a user fills out the form, the option value is what is actually emailed to you and stored in the database. For dropdown fields the option value is optional, <span>for radio fields it is required</span>.", 'custom-contact-forms'); ?>
191
  </li>
 
 
 
 
 
192
  </ul>
193
  <p>
194
  <?php _e("Once you create field options, you can attach them (in the field manager) to radio and dropdown fields (that are already created). It is important to remember that after you create a dropdown or radio field, they will not work until you attach one or more field options.", 'custom-contact-forms'); ?>
@@ -256,11 +288,26 @@
256
  <?php _e('Custom Success URL:', 'custom-contact-forms'); ?>
257
  </span>
258
  <?php _e("If this is filled out, users will be sent to this page when they successfully fill out the form. If it is left blank, a popover showing the form's 'success message' will be displayed on successful form submission.", 'custom-contact-forms'); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
259
  </li>
260
  <li><span>
261
  <?php _e('Attach Fields:', 'custom-contact-forms'); ?>
262
  </span>
263
- <?php _e("After creating a form you are given the option to attach (and dettach) fields to that specific form. Forms are useless until you attach fields.", 'custom-contact-forms'); ?>
264
  </li>
265
  </ul>
266
  <p>
9
  </a></li>
10
  <li><a href="#pop-fields">
11
  <?php _e('Fields', 'custom-contact-forms'); ?>
12
+ </a></li>
13
+ <li><a href="#pop-fixed-fields">
14
+ <?php _e('Fixed Fields', 'custom-contact-forms'); ?>
15
  </a></li>
16
  <li><a href="#pop-field-options">
17
  <?php _e('Field Options', 'custom-contact-forms'); ?>
59
  <?php _e("Text:", 'custom-contact-forms'); ?>
60
  </span>
61
  <div>
62
+ <input type="text" class="ccf-width200" value="<?php _e("This is a text field", 'custom-contact-forms'); ?>" />
63
  </div>
64
  </li>
65
  <li><span>
66
  <?php _e("Textarea:", 'custom-contact-forms'); ?>
67
  </span>
68
  <div>
69
+ <textarea class="ccf-width2000"><?php _e("This is a text field", 'custom-contact-forms'); ?></textarea>
70
  </div>
71
  </li>
72
  <li><span>
158
  <?php _e("Field Instructions:", 'custom-contact-forms'); ?>
159
  </span>
160
  <?php _e("If this is filled out, a stylish tooltip popover displaying this text will show when the field is selected. This will only work if JQuery is enabled in general options.", 'custom-contact-forms'); ?>
161
+ </li>
162
+ <li><span>
163
+ <?php _e("Field Error:", 'custom-contact-forms'); ?>
164
+ </span>
165
+ <?php _e("If a user leaves this field blank and the field is required, this error message will be shown. A generic default will show if left blank.", 'custom-contact-forms'); ?>
166
+ </li>
167
+ <li><span>
168
+ <?php _e("(advanced) Field Class:", 'custom-contact-forms'); ?>
169
+ </span>
170
+ <?php _e("This allows you to assign a CSS class to an individual field without affecting anything else. This is a great way to take the customization of your form to the next level.", 'custom-contact-forms'); ?>
171
  </li>
172
  <li><span>
173
  <?php _e("Field Options:", 'custom-contact-forms'); ?>
175
  <?php _e("After you create a field, if it's field type is radio or dropdown, you can attach field options to the field. Field options are explained in the next section.", 'custom-contact-forms'); ?>
176
  </li>
177
  </ul>
178
+ </li>
179
+ <li>
180
+ <h3><?php _e('Fixed Fields', 'custom-contact-forms'); ?>
181
+ <a name="pop-fixed-fields"></a></h3>
182
  <p>
183
+ <?php _e("The last important thing related to fields are <span>Fixed Fields</span>. Fixed Fields are special fields that come already created within the plugin such as the captcha spam blocker and email field. Fixed Fields do special things that you wouldn't be able to accomplish with normal fields; they cannot be deleted or created. For example, if you use the fixedEmail field, as opposed to creating your own email field. the users email will be checked to make sure it is valid, if it isn't a form error will be displayed. Below is a list of fixed fields and their descriptions.", 'custom-contact-forms'); ?>
184
  </p>
185
+ <ul>
186
+ <li><span><?php _e('fixedEmail:', 'custom-contact-forms'); ?></span> <?php _e("When attached to a form and set to required, this field will validate a user's email addresses. If a user's email is not valid, an error will be shown.", 'custom-contact-forms'); ?></li>
187
+ <li><span><?php _e('captcha:', 'custom-contact-forms'); ?></span> <?php _e('This field helps prevent spam by prompting users to copy numbers displayed on an image. If a user copies the numbers incorrectly, the form will show an error.', 'custom-contact-forms'); ?></li>
188
+ <li><span><?php _e('fixedWebsite:', 'custom-contact-forms'); ?></span> <?php _e("When attached to a form and set to required, this field will validate a user's website. If a user's website is not valid, an error will be shown.", 'custom-contact-forms'); ?></li>
189
+ <li><span><?php _e('emailSubject:', 'custom-contact-forms'); ?></span> <?php _e("This lets a user enter in an email subject that will carry over as the subject of the email sent to you on form completion", 'custom-contact-forms'); ?></li>
190
+ <li><span><?php _e('usaStates:', 'custom-contact-forms'); ?></span> <?php _e("This field displays a dropdown of all the states in the US.", 'custom-contact-forms'); ?></li>
191
+ <li><span><?php _e('allCountries:', 'custom-contact-forms'); ?></span> <?php _e("This field displays a dropdown of all the countries in the world.", 'custom-contact-forms'); ?></li>
192
+ <li><span><?php _e('resetButton:', 'custom-contact-forms'); ?></span> <?php _e("Attaching this field adds a reset button right next to the submit button in your form.", 'custom-contact-forms'); ?></li>
193
+ <li><span><?php _e('ishuman:', 'custom-contact-forms'); ?></span> <?php _e("This field helps prevent spam by prompting users to check a box to verify that they are human. If the box is left unchecked, an error will be displayed and the user will have to go back.", ''); ?></li>
194
+ </ul>
195
  </li>
196
  <li>
197
  <h3>
216
  </span>
217
  <?php _e("This is the actual value of the option which isn't shown to the user. This can be the same thing as the label. An example pairing of label => value is: 'The color green' => 'green' or 'Yes' => '1'. The option value is behind the scences; unseen by the user, but when a user fills out the form, the option value is what is actually emailed to you and stored in the database. For dropdown fields the option value is optional, <span>for radio fields it is required</span>.", 'custom-contact-forms'); ?>
218
  </li>
219
+ <li><span>
220
+ <?php _e("Is Dead Option:", 'custom-contact-forms'); ?>
221
+ </span> <select><option><?php _e('Please Select:', 'custom-contact-forms'); ?></option><option><?php _e('Option 1', 'custom-contact-forms'); ?></option><option><?php _e('Option 2', 'custom-contact-forms'); ?></option></select><br />
222
+ <?php _e('Dead options are only useful for required dropdown fields. The first field option "Please Select" would be a useful way to encorporate a dead option. Assume the field is required; if a user submitted that field and left it as "Please Select:", then the form would throw an error and the user would have to go back.', 'custom-contact-forms'); ?>
223
+ </li>
224
  </ul>
225
  <p>
226
  <?php _e("Once you create field options, you can attach them (in the field manager) to radio and dropdown fields (that are already created). It is important to remember that after you create a dropdown or radio field, they will not work until you attach one or more field options.", 'custom-contact-forms'); ?>
288
  <?php _e('Custom Success URL:', 'custom-contact-forms'); ?>
289
  </span>
290
  <?php _e("If this is filled out, users will be sent to this page when they successfully fill out the form. If it is left blank, a popover showing the form's 'success message' will be displayed on successful form submission.", 'custom-contact-forms'); ?>
291
+ </li>
292
+ <li><span>
293
+ <?php _e('Email From Name:', 'custom-contact-forms'); ?>
294
+ </span>
295
+ <?php _e("The email sent to you on form completion will be from this name. If this is left blank, it will default to the 'Default From Name' provided in General Settings.", 'custom-contact-forms'); ?>
296
+ </li>
297
+ <li><span>
298
+ <?php _e('Email Subject:', 'custom-contact-forms'); ?>
299
+ </span>
300
+ <?php _e("This is the subject of the email that will be sent to you on form completion. If this is left blank, it will default to the 'Default Email Subject' provided in General Settings.", 'custom-contact-forms'); ?>
301
+ </li>
302
+ <li><span>
303
+ <?php _e('Can View Form:', 'custom-contact-forms'); ?>
304
+ </span>
305
+ <?php _e("This lets you choose which types of users can view your form. If you want everyone to see the form, check all the boxes. If a user doesn't have access to the form, they will not be able to see it.", 'custom-contact-forms'); ?>
306
  </li>
307
  <li><span>
308
  <?php _e('Attach Fields:', 'custom-contact-forms'); ?>
309
  </span>
310
+ <?php _e("After creating a form you are given the option to attach (and detach) fields to that specific form. Forms are useless until you attach fields.", 'custom-contact-forms'); ?>
311
  </li>
312
  </ul>
313
  <p>
modules/widget/custom-contact-forms-dashboard.php ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Custom Contact Forms Plugin
4
+ By Taylor Lovett - http://www.taylorlovett.com
5
+ Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
+ */
7
+ if (!class_exists('CustomContactFormsDashboard')) {
8
+ class CustomContactFormsDashboard extends CustomContactFormsAdmin {
9
+ function install() {
10
+ wp_add_dashboard_widget('custom-contact-forms-dashboard', __('Custom Contact Forms - Saved Form Submissions', 'custom-contact-forms'), array(&$this, 'display'));
11
+ }
12
+
13
+ function isDashboardPage() {
14
+ return (is_admin() && preg_match('/index\.php$/', $_SERVER['REQUEST_URI']));
15
+ }
16
+
17
+ function insertDashboardStyles() {
18
+ wp_register_style('CCFDashboard', plugins_url() . '/custom-contact-forms/css/custom-contact-forms-dashboard.css');
19
+ wp_enqueue_style('CCFDashboard');
20
+ }
21
+
22
+ function insertDashboardScripts() {
23
+ wp_register_script('CCFDashboardJS', plugins_url() . '/custom-contact-forms/js/custom-contact-forms-dashboard.js');
24
+ wp_enqueue_script('CCFDashboardJS');
25
+ }
26
+
27
+ function display() {
28
+ ccf_utils::load_module('export/custom-contact-forms-user-data.php');
29
+ $user_data_array = parent::selectAllUserData();
30
+ ?>
31
+ <table id="ccf-dashboard" cellpadding="0" cellspacing="0">
32
+ <thead>
33
+ <tr>
34
+ <th>Date</th>
35
+ <th>Form</th>
36
+ <th>Form Location</th>
37
+ <th></th>
38
+ </tr>
39
+ </thead>
40
+ <tbody>
41
+ <?php
42
+ $i = 0;
43
+ foreach ($user_data_array as $data_object) {
44
+ if ($i > 3) break;
45
+ $data = new CustomContactFormsUserData(array('form_id' => $data_object->data_formid, 'data_time' => $data_object->data_time, 'form_page' => $data_object->data_formpage, 'encoded_data' => $data_object->data_value));
46
+ ?>
47
+ <tr class="<?php if ($i % 2 == 1) echo 'even'; ?>">
48
+ <td class="date"><?php echo date('m/d/y', $data->getDataTime()); ?></td>
49
+ <td class="slug">
50
+ <?php
51
+ if ($data->getFormID() > 0) {
52
+ $data_form = parent::selectForm($data->getFormID());
53
+ $this_form = (!empty($data_form->form_slug)) ? $data_form->form_slug : __('Form Not Found', 'custom-contact-forms');
54
+ } else
55
+ $this_form = __('Custom HTML Form', 'custom-contact-forms');
56
+ echo $this_form;
57
+ ?>
58
+ </td>
59
+ <td class="form-page">
60
+ <?php
61
+ if (strlen($data->getFormPage()) > 30) echo substr($data->getFormPage(), 0, 30) . '...';
62
+ else echo $data->getFormPage();
63
+ ?>
64
+ </td>
65
+ <td>
66
+ <input class="ccf-view-submission" type="button" value="<?php _e('View', 'custom-contact-forms'); ?>" />
67
+ <div class="view-submission-popover">
68
+ <div class="close">&times;</div>
69
+ <div class="top">
70
+ <div class="left"><?php _e('CCF Saved Form Submission', 'custom-contact-forms'); ?></div>
71
+ <div class="right"><p><span><?php echo date('F j, Y, g:i a', $data->getDataTime()); ?></span></p><p><?php _e('Form Submitted:', 'custom-contact-forms'); ?> <span><?php echo $this_form; ?></span></p></div>
72
+ </div>
73
+ <div class="separate"></div>
74
+ <ul>
75
+ <?php
76
+ $data_array = $data->getDataArray();
77
+ foreach ($data_array as $item_key => $item_value) {
78
+ ?>
79
+ <li>
80
+ <div><?php echo $item_key; ?></div>
81
+ <p><?php echo $item_value; ?></p>
82
+ </li>
83
+ <?php
84
+ }
85
+ ?>
86
+ </ul>
87
+ <div class="separate"></div>
88
+ <a href="admin.php?page=ccf-saved-form-submissions"><?php _e('View All Submissions', 'custom-contact-forms'); ?></a>
89
+ </div>
90
+ </td>
91
+ </tr>
92
+ <?php
93
+ $i++;
94
+ }
95
+ ?>
96
+ </tbody>
97
+ </table>
98
+ <a href="admin.php?page=ccf-saved-form-submissions"><?php _e('View All Submissions', 'custom-contact-forms'); ?></a>
99
+ <?php
100
+ }
101
+ }
102
+ }
103
+ ?>
modules/widget/custom-contact-forms-widget.php CHANGED
@@ -26,6 +26,7 @@ if (!class_exists('CustomContactFormsWidget')) {
26
  echo $before_widget . $before_title . $form_object->form_title . $after_title;
27
  echo $custom_contact_front->getFormCode($form_id, true);
28
  echo $after_widget;
 
29
  }
30
 
31
  function update($new_instance, $old_instance) {
26
  echo $before_widget . $before_title . $form_object->form_title . $after_title;
27
  echo $custom_contact_front->getFormCode($form_id, true);
28
  echo $after_widget;
29
+
30
  }
31
 
32
  function update($new_instance, $old_instance) {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Taylor Lovett
3
  Donate link: http://www.taylorlovett.com
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
5
  Requires at least: 2.8.1
6
- Tested up to: 3.0.4
7
- Stable tag: 4.0.9.1
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
@@ -12,18 +12,21 @@ Gauranteed to be the most customizable and intuitive contact form plugin for Wor
12
 
13
  Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, captchas, tooltip popovers, unlimited fields/forms/form styles, use a custom thank you page or built-in popover with a custom success message set for each form.
14
 
15
- Special Features:
16
  ------------------
17
- Custom Contact Forms 4.0 will revolutionize the idea of a Wordpress plugin.
18
 
 
19
  * __NEW__ - All form submissions saved and displayed in admin panel as well as emailed to you
20
- * __NEW__ - Import and export forms/fields/styles/etc. with ease!
21
- * __NEW__ - This plugin can now be translated in to different languages - UTF8 character encoding.
22
- * __NEW__ - Error messages can be customized for each field
 
23
  * Choose between XHTML or HTML. All code is clean and valid!
24
- * Create __unlimited__ forms and fields
 
25
  * Required Fields
26
- * __NEW__ - CCF works in all languages that are supported by UTF-8 Character Set
27
  * Custom Contact Forms now uses PHPMailer and thus supports STMP and SSL
28
  * __NEW__ Have your contact forms send mail to multiple email addresses
29
  * Create text fields, textareas, checkboxs, and dropdown fields!
@@ -51,6 +54,7 @@ Custom Contact Forms 4.0 will revolutionize the idea of a Wordpress plugin.
51
  * AJAX enabled admin panel
52
  * Assign different CSS classes to each field.
53
  * Ability to disable JQuery if it is conflicting with other plugins.
 
54
 
55
  Restrictions/Requirements:
56
  -------------------------
@@ -79,10 +83,8 @@ Restrictions/Requirements:
79
  Custom Contact Forms is an extremely intuitive plugin allowing you to create any type of contact form you can image. CCF is very user friendly but with possibilities comes complexity. __It is recommend that you click the button in the instructions section of the plugin to add default fields, field options, and forms.__ The default content will help you get a feel for the amazing things you can accomplish with this plugin. __It is also recommended you click the "Show Plugin Usage Popover"__ in the instruction area of the admin page to read in detail about all parts of the plugin.
80
 
81
  == Support ==
82
- For questions, feature requests, and support concerning the Custom Contact Forms plugin, please email me at:
83
- admin@taylorlovett.com
84
-
85
- I respond to emails same-day!
86
 
87
  == Frequently Asked Questions ==
88
 
@@ -121,6 +123,32 @@ Visit http://www.taylorlovett.com/wordpress-plugins for screenshots. Right now a
121
 
122
  == Changelog ==
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  = 4.0.9.1 =
125
  * custom-contact-forms-admin.php - Minor display changes
126
  * css/custom-contact-forms-admin.css - Minor display changes to field options
@@ -171,6 +199,7 @@ Visit http://www.taylorlovett.com/wordpress-plugins for screenshots. Right now a
171
  * custom-contact-forms-front.php - Mail bug fixed, email validation bug fixed
172
  * lang/custom-contact-forms.php - Phrases deleted/added
173
 
 
174
  = 4.0.0 =
175
  * custom-contact-forms.php - Saved form submissions manager, form background color added to style manager, import/export feature
176
  * custom-contact-forms-user-data.php - Saved form submission
3
  Donate link: http://www.taylorlovett.com
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
5
  Requires at least: 2.8.1
6
+ Tested up to: 3.1
7
+ Stable tag: 4.5.0
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
12
 
13
  Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, captchas, tooltip popovers, unlimited fields/forms/form styles, use a custom thank you page or built-in popover with a custom success message set for each form.
14
 
15
+ Special Features:
16
  ------------------
17
+ Custom Contact Forms 4.5.0 will revolutionize the idea of a Wordpress plugin.
18
 
19
+ * __NEW__ Saved Form Submission dashboard widget!
20
  * __NEW__ - All form submissions saved and displayed in admin panel as well as emailed to you
21
+ * __NEW__ - Instantly attach a dropdown with all the countries or all the US States - new fixed fields
22
+ * Import and export forms/fields/styles/etc. with ease!
23
+ * This plugin can now be translated in to different languages.
24
+ * Error messages can be customized for each field
25
  * Choose between XHTML or HTML. All code is clean and valid!
26
+ * Create __unlimited__ forms
27
+ * Create __unlimited__ fields
28
  * Required Fields
29
+ * __NEW__ - a dashboard widget that displays the latest form submissions
30
  * Custom Contact Forms now uses PHPMailer and thus supports STMP and SSL
31
  * __NEW__ Have your contact forms send mail to multiple email addresses
32
  * Create text fields, textareas, checkboxs, and dropdown fields!
54
  * AJAX enabled admin panel
55
  * Assign different CSS classes to each field.
56
  * Ability to disable JQuery if it is conflicting with other plugins.
57
+ * Uses UTF8 character set so non-english characters are easily used!
58
 
59
  Restrictions/Requirements:
60
  -------------------------
83
  Custom Contact Forms is an extremely intuitive plugin allowing you to create any type of contact form you can image. CCF is very user friendly but with possibilities comes complexity. __It is recommend that you click the button in the instructions section of the plugin to add default fields, field options, and forms.__ The default content will help you get a feel for the amazing things you can accomplish with this plugin. __It is also recommended you click the "Show Plugin Usage Popover"__ in the instruction area of the admin page to read in detail about all parts of the plugin.
84
 
85
  == Support ==
86
+ For questions, feature requests, and support concerning the Custom Contact Forms plugin, please visit:
87
+ http://www.taylorlovett.com/wordpress-plugins
 
 
88
 
89
  == Frequently Asked Questions ==
90
 
123
 
124
  == Changelog ==
125
 
126
+ = 4.5.0 =
127
+ * custom-contact-forms.php - Saved form submissions manager, form background color added to style manager, import/export feature
128
+ * custom-contact-forms-utils.php - Methods added/removed for efficiency
129
+ * custom-contact-forms-admin.php - Admin code seperated in to a different file
130
+ * custom-contact-forms-front.php - Admin code seperated in to a different file
131
+ * modules/db/custom-contact-forms-db.php - DB methods reorganized for efficiency
132
+ * modules/db/custom-contact-forms-activate-db.php - DB methods reorganized for efficiency
133
+ * modules/db/custom-contact-forms-default-db.php - DB methods reorganized for efficiency
134
+ * modules/usage-popover/custom-contact-forms-popover.php - Popover code seperated in to a different file
135
+ * modules/export/custom-contact-forms-export.php - Functions for importing and exporting
136
+ * modules/extra_fields/countries_field.php
137
+ * modules/extra_fields/date_field.php
138
+ * modules/extra_fields/states_field.php
139
+ * modules/widget/custom-contact-forms-dashboard.php
140
+ * css/custom-contact-forms-admin.css - AJAX abilities added
141
+ * css/custom-contact-forms-standard.css - Classes renamed
142
+ * css/custom-contact-forms.css - Classes renamed
143
+ * css/custom-contact-forms-dashboard.css - Classes renamed
144
+ * js/custom-contact-forms-dashboard.js - AJAX abilities added to admin panel
145
+ * lang/custom-contact-forms.po - Allows for translation to different languages
146
+ * lang/custom-contact-forms.mo - Allows for translation to different languages
147
+
148
+ = 4.0.9.2 =
149
+ * css/custom-contact-forms-admin.css - Minor display changes
150
+ * js/custom-contact-forms.js - JQuery conflict issue fixed
151
+
152
  = 4.0.9.1 =
153
  * custom-contact-forms-admin.php - Minor display changes
154
  * css/custom-contact-forms-admin.css - Minor display changes to field options
199
  * custom-contact-forms-front.php - Mail bug fixed, email validation bug fixed
200
  * lang/custom-contact-forms.php - Phrases deleted/added
201
 
202
+
203
  = 4.0.0 =
204
  * custom-contact-forms.php - Saved form submissions manager, form background color added to style manager, import/export feature
205
  * custom-contact-forms-user-data.php - Saved form submission