/
wpgform-options.php
562 lines (544 loc) · 34.2 KB
/
wpgform-options.php
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
/**
* GForm options.
*
* $Id$
*
* (c) 2011 by Mike Walsh
*
* @author Mike Walsh <mpwalsh8@gmail.com>
* @package wpGForm
* @subpackage options
* @version $Revision$
* @lastmodified $Date$
* @lastmodifiedby $Author$
*
*/
/**
* wpgform_options_admin_footer()
*
* Hook into Admin head when showing the options page
* so the necessary jQuery script that controls the tabs
* is executed.
*
* @return null
*/
function wpgform_options_admin_footer()
{
?>
<!-- Setup jQuery Tabs -->
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#wpgform-tabs").tabs() ;
}) ;
</script>
<?php
} /* function wpgform_options_admin_footer() */
/**
* wpgform_options_print_scripts()
*
* Hook into Admin Print Scripts when showing the options page
* so the necessary scripts that controls the tabs are loaded.
*
* @return null
*/
function wpgform_options_print_scripts()
{
// Need to load jQuery UI Tabs to make the page work!
wp_enqueue_script('jquery-ui-tabs') ;
}
/**
* wpgform_options_print_styles()
*
* Hook into Admin Print Styles when showing the options page
* so the necessary style sheets that control the tabs are
* loaded.
*
* @return null
*/
function wpgform_options_print_styles()
{
// Need the jQuery UI CSS to make the tabs look correct.
// Load them from Google - should not be an issue since
// this plugin is all about consuming Google content!
wp_enqueue_style('xtra-jquery-ui-css', '//ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/base/jquery-ui.css') ;
}
/**
* wpgform_options_page()
*
* Build and render the options page.
*
* @return null
*/
function wpgform_options_page()
{
?>
<div class="wrap">
<?php
if (function_exists('screen_icon') && version_compare(get_bloginfo('version'),'3.8', '<=')) screen_icon() ;
?>
<h2><?php _e('WordPress Google Form Plugin Settings') ; ?></h2>
<?php
$wpgform_options = wpgform_get_plugin_options() ;
if (!$wpgform_options['donation_message'])
{
?>
<small><?php printf(__('Please consider making a <a href="%s" target="_blank">PayPal donation</a> if you find this plugin useful.', WPGFORM_I18N_DOMAIN), 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DK4MS3AA983CC') ; ?></small>
<?php
}
?>
<br /><br />
<div class="container">
<div id="wpgform-tabs">
<ul>
<li><a href="#wpgform-tabs-1"><?php _e('Options', WPGFORM_I18N_DOMAIN);?></a></li>
<li><a href="#wpgform-tabs-2"><?php _e('Advanced Options', WPGFORM_I18N_DOMAIN);?></a></li>
<li><a href="#wpgform-tabs-3"><?php _e('FAQs', WPGFORM_I18N_DOMAIN);?></a></li>
<li><a href="#wpgform-tabs-4"><?php _e('Usage', WPGFORM_I18N_DOMAIN);?></a></li>
<li><a href="#wpgform-tabs-5"><?php _e('About', WPGFORM_I18N_DOMAIN);?></a></li>
</ul>
<div id="wpgform-tabs-1">
<form method="post" action="options.php">
<?php settings_fields('wpgform_options') ; ?>
<?php wpgform_settings_input() ; ?>
<input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
</form>
</div>
<div id="wpgform-tabs-2">
<form method="post" action="options.php">
<?php settings_fields('wpgform_options') ; ?>
<?php wpgform_settings_advanced_options() ; ?>
<input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
<input type="submit" name="Submit" class="button-primary" value="<?php _e('Reset') ?>" />
</form>
</div>
<div id="wpgform-tabs-3">
<?php
//
// Instead of duplicating the FAQ and Other Notes content in the ReadMe.txt file,
// let's simply extract it from the WordPress plugin repository!
//
// Fetch via the content via the WordPress Plugins API which is largely undocumented.
//
// @see http://dd32.id.au/projects/wordpressorg-plugin-information-api-docs/
//
// We want just the 'sections' content of the ReadMe file which will yield an array
// which contains an element for each section of the ReadMe file. We'll use 'faq' and
// 'other_notes'.
//
require_once( ABSPATH . '/wp-admin/includes/plugin-install.php' );
$readme = plugins_api( 'plugin_information', array('slug' => 'wpgform', 'fields' => array( 'sections' ) ) );
if (is_wp_error($readme))
{
?>
<div class="updated fade"><?php _e('Unable to retrive FAQ content from WordPress plugin repository.', WPGFORM_I18N_DOMAIN);?></div>
<?php
}
else
{
echo $readme->sections['faq'] ;
}
?>
</div>
<div id="wpgform-tabs-4">
<?php
if (is_wp_error($readme))
{
?>
<div class="updated error"><?php _e('Unable to retrive Usage content from WordPress plugin repository.', WPGFORM_I18N_DOMAIN);?></div>
<?php
}
else
{
echo $readme->sections['other_notes'] ;
}
?>
</div>
<div id="wpgform-tabs-5">
<h4><?php _e('About WordPress Google Form', WPGFORM_I18N_DOMAIN);?></h4>
<div style="margin-left: 25px; text-align: center; float: right;" class="postbox">
<h3 class="hndle"><span><?php _e('Make a Donation', WPGFORM_I18N_DOMAIN);?></span></h3>
<div class="inside">
<div style="text-align: center; font-size: 0.75em;padding:0px 5px;margin:0px auto;"><!-- PayPal box wrapper -->
<div><!-- PayPal box-->
<p style="margin: 0.25em 0"><b>WordPress Google Form v<?php echo WPGFORM_VERSION; ?></b></p>
<p style="margin: 0.25em 0"><a href="http://wordpress.org/extend/plugins/wpgform/" target="_blank"><?php _e('Plugin\'s Home Page', WPGFORM_I18N_DOMAIN); ?></a></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="DK4MS3AA983CC">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</div><!-- PayPal box -->
</div>
</div><!-- inside -->
</div><!-- postbox -->
<div>
<p><?php _e('An easy to implement integration of a Google Form with WordPress. This plugin allows you to leverage the power of Google Docs Spreadsheets and Forms to collect data while retaining the look and feel of your WordPress based web site. The forms can optionally be styled to better integrate with your WordPress theme.', WPGFORM_I18N_DOMAIN);?></p>
<p><?php _e('WordPress Google Form is based on the <a href="%s"><b>WordPress HTTP API</b></a> and in particular, the <a href="%s"><b>wp_remote_get()</b></a> and <a href="http://codex.wordpress.org/Function_API/wp_remote_post"><b>wp_remote_post()</b></a> functions for retrieving and posting the form. WordPress Google Form also makes use of the <a href="%s"><b>wp_kses()</b></a> function for processing the HTML retrieved from Google and extracting the relevant parts of the form.</p><p>If you find this plugin useful, please consider <a href="%s" target="_blank">making small donation towards this plugin</a> to help keep it up to date.</p>', 'http://codex.wordpress.org/HTTP_API', 'http://codex.wordpress.org/Function_API/wp_remote_get', 'http://codex.wordpress.org/Function_Reference/wp_kses', 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DK4MS3AA983CC', WPGFORM_I18N_DOMAIN);?>
</div>
</div>
</div>
</div>
<?php
}
/**
* wpgform_settings_input()
*
* Build the form content and populate with any current plugin settings.
*
* @return none
*/
function wpgform_settings_input()
{
$wpgform_options = wpgform_get_plugin_options() ;
//error_log(print_r($wpgform_options, true)) ;
?>
<table class="form-table">
<tr valign="top">
<th scope="row"><label><b><i>wpGForm</i></b> Shortcode</label></th>
<td><fieldset>
<label for="wpgform_sc_posts">
<input name="wpgform_options[sc_posts]" type="checkbox" id="wpgform_sc_posts" value="1" <?php checked('1', $wpgform_options['sc_posts']) ; ?> />
<?php _e('Enable shortcodes for posts and pages', WPGFORM_I18N_DOMAIN);?></label>
<br />
<label for="wpgform_sc_widgets">
<input name="wpgform_options[sc_widgets]" type="checkbox" id="wpgform_sc_widgets" value="1" <?php checked('1', $wpgform_options['sc_widgets']) ; ?> />
<?php _e('Enable shortcodes in text widget', WPGFORM_I18N_DOMAIN);?></label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><label><b><i>wpGForm</i></b> CSS</label></th>
<td><fieldset>
<label for="wpgform_default_css">
<input name="wpgform_options[default_css]" type="checkbox" id="wpgform_default_css" value="1" <?php checked('1', $wpgform_options['default_css']) ; ?> />
<?php _e('Enable default WordPress Google Form CSS', WPGFORM_I18N_DOMAIN);?></label>
<br />
<label for="wpgform_custom_css">
<input name="wpgform_options[custom_css]" type="checkbox" id="wpgform_custom_css" value="1" <?php checked('1', $wpgform_options['custom_css']) ; ?> />
<?php _e('Enable custom WordPress Google Form CSS', WPGFORM_I18N_DOMAIN);?></label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><label><?php printf(__('Custom %s CSS', WPGFORM_I18N_DOMAIN), 'wpGForm');?></label><br/><small><i><?php _e('Optional CSS styles to control the appearance of the Google Form.', WPGFORM_I18N_DOMAIN);?></i></small></th>
<td>
<textarea class="regular-text code" name="wpgform_options[custom_css_styles]" rows="15" cols="80" id="wpgform_custom_css_styles"><?php echo $wpgform_options['custom_css_styles']; ?></textarea>
</td>
</tr>
<tr valign="top">
<th scope="row"><label><?php _e('CAPTCHA Options', WPGFORM_I18N_DOMAIN);?></label></th>
<td><fieldset>
<label for="wpgform_captcha_terms">
<input name="wpgform_options[captcha_terms]" type="radio" id="wpgform_captcha_terms" value="2" <?php checked(2, $wpgform_options['captcha_terms']) ; ?> />
<?php _e('Use two (2) terms for CAPTCHA: e.g. A + B = C (when enabled).', WPGFORM_I18N_DOMAIN);?></label>
<br/>
<input name="wpgform_options[captcha_terms]" type="radio" id="wpgform_captcha_terms" value="3" <?php checked(3, $wpgform_options['captcha_terms']) ; ?> />
<?php _e('Use three (3) terms for CAPTCHA: e.g. A + B - C = D (when enabled).', WPGFORM_I18N_DOMAIN);?></label>
<br style="margin-bottom: 10px;"/>
<label for="wpgform_captcha_operator_plus">
<input name="wpgform_options[captcha_operator_plus]" type="checkbox" id="wpgform_captcha_operator_plus" value="1" <?php checked('1', $wpgform_options['captcha_operator_plus']) ; ?> />
<?php _e('Addition: +', WPGFORM_I18N_DOMAIN);?></label><br />
<label for="wpgform_captcha_operator_minus">
<input name="wpgform_options[captcha_operator_minus]" type="checkbox" id="wpgform_captcha_operator_minus" value="1" <?php checked('1', $wpgform_options['captcha_operator_minus']) ; ?> />
<?php _e('Subtraction: -', WPGFORM_I18N_DOMAIN);?></label><br />
<label for="wpgform_captcha_operator_mult">
<input name="wpgform_options[captcha_operator_mult]" type="checkbox" id="wpgform_captcha_operator_mult" value="1" <?php checked('1', $wpgform_options['captcha_operator_mult']) ; ?> />
<?php _e('Multiplication: *', WPGFORM_I18N_DOMAIN);?></label><br />
<small><?php _e('Choose which operators can be used for CAPTCHA validation (when enabled)', WPGFORM_I18N_DOMAIN);?></small>
<br style="margin-bottom: 10px;"/>
<label for="wpgform_catcha_description">
<input style="width: 500px;" name="wpgform_options[captcha_description]" type="text" id="wpgform_captcha_description" value="<?php echo $wpgform_options['captcha_description'] ; ?>" /><br />
<small><?php _e('Optional description of what the CAPTCHA is and used for.', WPGFORM_I18N_DOMAIN);?></small></label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><label><?php _e('Confirmation<br />Email Format', WPGFORM_I18N_DOMAIN);?></label></th>
<td><fieldset>
<label for="wpgform_email_format">
<input name="wpgform_options[email_format]" type="radio" id="wpgform_email_format" value="<?php echo WPGFORM_EMAIL_FORMAT_HTML ;?>" <?php checked(WPGFORM_EMAIL_FORMAT_HTML, $wpgform_options['email_format']) ; ?> />
<?php _e('Send confirmation email (when used) in HTML format.', WPGFORM_I18N_DOMAIN);?></label>
<br/>
<input name="wpgform_options[email_format]" type="radio" id="wpgform_email_format" value="<?php echo WPGFORM_EMAIL_FORMAT_PLAIN ;?>" <?php checked(WPGFORM_EMAIL_FORMAT_PLAIN, $wpgform_options['email_format']) ; ?> />
<?php _e('Send confirmation email (when used) in Plain Text format.', WPGFORM_I18N_DOMAIN);?></label>
<br />
<label for="bcc_blog_admin">
<input name="wpgform_options[bcc_blog_admin]" type="checkbox" id="wpgform_bcc_blog_admin" value="1" <?php checked('1', $wpgform_options['bcc_blog_admin']) ; ?> />
<?php _e('Bcc Blog Admin on Confirmation Email (when used)', WPGFORM_I18N_DOMAIN);?></label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><label><?php _e('cURL Transport<br />Notification', WPGFORM_I18N_DOMAIN);?></label></th>
<td><fieldset>
<label for="wpgform_curl_transport_missing_message">
<table style="padding: 0px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="padding: 5px 0px; vertical-align: top;">
<input name="wpgform_options[curl_transport_missing_message]" type="checkbox" id="wpgform_curl_transport_missing_message" value="1" <?php checked('1', $wpgform_options['curl_transport_missing_message']) ; ?> />
</td>
<td style="padding: 5px;">
<?php _e('Hide the cURL Transport Missing notification message.<br /><small>The cURL transport is critical for proper operation of the Google Forms plugin.</small>', WPGFORM_I18N_DOMAIN);?>
</td>
</tr>
</table>
</label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><label><?php _e('Donation Request', WPGFORM_I18N_DOMAIN);?></label></th>
<td><fieldset>
<label for="wpgform_donation_message">
<table style="padding: 0px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="padding: 5px 0px; vertical-align: top;">
<input name="wpgform_options[donation_message]" type="checkbox" id="wpgform_donation_message" value="1" <?php checked('1', $wpgform_options['donation_message']) ; ?> />
</td>
<td style="padding: 5px;">
<?php _e('Hide the request for donation at the top of this page.<br/><small>The donation request will remain on the <b>About</b> tab.</small>', WPGFORM_I18N_DOMAIN);?>
</td>
</tr>
</table>
</label>
</fieldset></td>
</tr>
</table>
<br /><br />
<input name="wpgform_options[override_google_default_text]" type="hidden" id="wpgform_override_google_default_text" value="<?php echo $wpgform_options['override_google_default_text'] ; ?>" />
<input name="wpgform_options[required_text_override]" type="hidden" id="wpgform_required_text_override" value="<?php echo $wpgform_options['required_text_override'] ; ?>" />
<input name="wpgform_options[submit_button_text_override]" type="hidden" id="wpgform_submit_button_text_override" value="<?php echo $wpgform_options['submit_button_text_override'] ; ?>" />
<input name="wpgform_options[back_button_text_override]" type="hidden" id="wpgform_back_button_text_override" value="<?php echo $wpgform_options['back_button_text_override'] ; ?>" />
<input name="wpgform_options[continue_button_text_override]" type="hidden" id="wpgform_continue_button_text_override" value="<?php echo $wpgform_options['continue_button_text_override'] ; ?>" />
<input name="wpgform_options[radio_buttons_text_override]" type="hidden" id="wpgform_radio_buttons_text_override" value="<?php echo $wpgform_options['radio_buttons_text_override'] ; ?>" />
<input name="wpgform_options[radio_buttons_other_text_override]" type="hidden" id="wpgform_radio_buttons_other_text_override" value="<?php echo $wpgform_options['radio_buttons_other_text_override'] ; ?>" />
<input name="wpgform_options[check_boxes_text_override]" type="hidden" id="wpgform_check_boxes_text_override" value="<?php echo $wpgform_options['check_boxes_text_override'] ; ?>" />
<input name="wpgform_options[enable_debug]" type="hidden" id="wpgform_enable_debug" value="<?php echo $wpgform_options['enable_debug'] ; ?>" />
<input name="wpgform_options[fsockopen_transport]" type="hidden" id="wpgform_fsockopen_transport" value="<?php echo $wpgform_options['fsockopen_transport'] ; ?>" />
<input name="wpgform_options[streams_transport]" type="hidden" id="wpgform_streams_transport" value="<?php echo $wpgform_options['streams_transport'] ; ?>" />
<input name="wpgform_options[curl_transport]" type="hidden" id="wpgform_curl_transport" value="<?php echo $wpgform_options['curl_transport'] ; ?>" />
<input name="wpgform_options[ssl_verify]" type="hidden" id="wpgform_ssl_verify" value="<?php echo $wpgform_options['ssl_verify'] ; ?>" />
<input name="wpgform_options[local_ssl_verify]" type="hidden" id="wpgform_local_ssl_verify" value="<?php echo $wpgform_options['local_ssl_verify'] ; ?>" />
<input name="wpgform_options[http_request_timeout]" type="hidden" id="wpgform_http_request_timeout" value="<?php echo $wpgform_options['http_request_timeout'] ; ?>" />
<input name="wpgform_options[http_request_timeout_value]" type="hidden" id="wpgform_http_request_timeout_value" value="<?php echo $wpgform_options['http_request_timeout_value'] ; ?>" />
<input name="wpgform_options[browser_check]" type="hidden" id="wpgform_browser_check" value="<?php echo $wpgform_options['browser_check'] ; ?>" />
<input name="wpgform_options[form_submission_log]" type="hidden" id="wpgform_form_submission_log" value="<?php echo $wpgform_options['form_submission_log'] ; ?>" />
<?php
}
/**
* wpgform_settings_advanced_options()
*
* Build the form content and populate with any current plugin settings.
*
* @return none
*/
function wpgform_settings_advanced_options()
{
$wpgform_options = wpgform_get_plugin_options() ;
?>
<table class="form-table">
<tr valign="top">
<th scope="row"><label><?php _e('Disable HTML Filtering', WPGFORM_I18N_DOMAIN);?></label></th>
<td><fieldset>
<label for="wpgform_disable_html_filtering">
<table style="padding: 0px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="padding: 5px 0px; vertical-align: top;">
<input name="wpgform_options[disable_html_filtering]" type="checkbox" id="wpgform_disable_html_filtering" value="1" <?php checked('1', $wpgform_options['disable_html_filtering']) ; ?> />
</td>
<td style="padding: 5px;">
<?php _e('Disable HTML Filtering?<br/><small>Google Forms filters HTML retrieved from Google using <a href="https://codex.wordpress.org/Function_Reference/wp_kses">wp_kses()</a> to eliminate unnecessary HTML code.</small>', WPGFORM_I18N_DOMAIN);?>
</td>
</tr>
</table>
</label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><label><?php _e('Enable Form Submission Logging', WPGFORM_I18N_DOMAIN);?></label></th>
<td><fieldset>
<label for="wpgform_form_submission_log">
<table style="padding: 0px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="padding: 5px 0px; vertical-align: top;">
<input name="wpgform_options[form_submission_log]" type="checkbox" id="wpgform_form_submission_log" value="1" <?php checked('1', $wpgform_options['form_submission_log']) ; ?> />
</td>
<td style="padding: 5px;">
<?php _e('Log WordPress Google Form Submissions?<br/><small>Form submissions can be logged which will track a number of client related metrics upon form submission.</small>', WPGFORM_I18N_DOMAIN);?>
</td>
</tr>
</table>
</label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><label><?php _e('Google Default Text', WPGFORM_I18N_DOMAIN);?></label></th>
<td>
<fieldset>
<label for="wpgform_override_google_default_text">
<input name="wpgform_options[override_google_default_text]" type="checkbox" id="wpgform_override_google_default_text" value="1" <?php checked('1', $wpgform_options['override_google_default_text']) ; ?> />
<?php _e('Override <i><b>Google Default Text</b></i>', WPGFORM_I18N_DOMAIN);?></label>
<br />
<table style="padding: 0px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<th><?php _e('Required', WPGFORM_I18N_DOMAIN);?></th>
<td>
<label for="wpgform_required_text_override">
<input name="wpgform_options[required_text_override]" type="text" id="wpgform_required_text_override" value="<?php echo $wpgform_options['required_text_override'] ; ?>" /><br />
<small><?php _e('This is text that indicates a field is required.', WPGFORM_I18N_DOMAIN);?></small></label>
</td>
</tr>
<tr>
<th><?php _e('Submit Button', WPGFORM_I18N_DOMAIN);?></th>
<td>
<label for="wpgform_submit_button_text_override">
<input name="wpgform_options[submit_button_text_override]" type="text" id="wpgform_submit_button_text_override" value="<?php echo $wpgform_options['submit_button_text_override'] ; ?>" /><br />
<small><?php _e('This is text used for the Submit button.', WPGFORM_I18N_DOMAIN);?></small></label>
</td>
</tr>
<tr>
<th><?php _e('Back Button', WPGFORM_I18N_DOMAIN);?></th>
<td>
<label for="wpgform_back_button_text_override">
<input name="wpgform_options[back_button_text_override]" type="text" id="wpgform_back_button_text_override" value="<?php echo $wpgform_options['back_button_text_override'] ; ?>" /><br />
<small><?php _e('This is text used for the Back button.', WPGFORM_I18N_DOMAIN);?></small></label>
</td>
</tr>
<tr>
<th><?php _e('Continue Button', WPGFORM_I18N_DOMAIN);?></th>
<td>
<label for="wpgform_continue_button_text_override">
<input name="wpgform_options[continue_button_text_override]" type="text" id="wpgform_continue_button_text_override" value="<?php echo $wpgform_options['continue_button_text_override'] ; ?>" /><br />
<small><?php _e('This is text used for the Continue button.', WPGFORM_I18N_DOMAIN);?></small></label>
</td>
</tr>
<tr>
<th><?php _e('Radio Buttons', WPGFORM_I18N_DOMAIN);?></th>
<td>
<label for="wpgform_radio_buttons_text_override">
<input name="wpgform_options[radio_buttons_text_override]" type="text" id="wpgform_radio_buttons_text_override" value="<?php echo $wpgform_options['radio_buttons_text_override'] ; ?>" /><br />
<small><?php _e('This is text used for the Radio Buttons hint.', WPGFORM_I18N_DOMAIN);?></small></label>
</td>
</tr>
<tr>
<th><?php _e('Radio Buttons - Other', WPGFORM_I18N_DOMAIN);?></th>
<td>
<label for="wpgform_radio_buttons_other_text_override">
<input name="wpgform_options[radio_buttons_other_text_override]" type="text" id="wpgform_radio_buttons_other_text_override" value="<?php echo $wpgform_options['radio_buttons_other_text_override'] ; ?>" /><br />
<small><?php _e('This is text used for the Radio Buttons Other option.', WPGFORM_I18N_DOMAIN);?></small></label>
</td>
</tr>
<tr>
<th><?php _e('Check Boxes', WPGFORM_I18N_DOMAIN);?></th>
<td>
<label for="wpgform_check_boxes_text_override">
<input name="wpgform_options[check_boxes_text_override]" type="text" id="wpgform_check_boxes_text_override" value="<?php echo $wpgform_options['check_boxes_text_override'] ; ?>" /><br />
<small><?php _e('This is text used for the Check Boxes hint.', WPGFORM_I18N_DOMAIN);?></small></label>
</td>
</tr>
</table>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><label><?php _e('HTTP API Timeout', WPGFORM_I18N_DOMAIN);?></label></th>
<td><fieldset>
<label for="wpgform_http_api_timeout">
<select style="width: 150px;" name="wpgform_options[http_api_timeout]" id="wpgform_http_api_timeout">
<option value="5" <?php selected($wpgform_options['http_api_timeout'], 5); ?>>5 Seconds</option>
<option value="10" <?php selected($wpgform_options['http_api_timeout'], 10); ?>>10 Seconds</option>
<option value="15" <?php selected($wpgform_options['http_api_timeout'], 15); ?>>15 Seconds</option>
<option value="25" <?php selected($wpgform_options['http_api_timeout'], 25); ?>>25 Seconds</option>
<option value="30" <?php selected($wpgform_options['http_api_timeout'], 30); ?>>30 Seconds</option>
<option value="45" <?php selected($wpgform_options['http_api_timeout'], 45); ?>>45 Seconds</option>
<option value="60" <?php selected($wpgform_options['http_api_timeout'], 60); ?>>60 Seconds</option>
</select>
<br />
<small><?php _e('Change the default HTTP API Timeout setting (default is 5 seconds).', WPGFORM_I18N_DOMAIN);?></small></label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><label><?php _e('Browser Check', WPGFORM_I18N_DOMAIN);?></label></th>
<td><fieldset>
<label for="wpgform_browser_check">
<table style="padding: 0px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="padding: 5px 0px; vertical-align: top;">
<input name="wpgform_options[browser_check]" type="checkbox" id="wpgform_browser_check" value="1" <?php checked('1', $wpgform_options['browser_check']) ; ?> />
</td>
<td style="padding: 5px;">
<?php _e('Check browser compatibility?<br/><small>The WordPress Google Form plugin may not work as expected with older browser versions (e.g. IE6, IE7, etc.).</small>', WPGFORM_I18N_DOMAIN);?>
</td>
</tr>
</table>
</label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><label><?php _e('Enable Debug', WPGFORM_I18N_DOMAIN);?></label></th>
<td><fieldset>
<label for="wpgform_enable_debug">
<table style="padding: 0px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="padding: 5px 0px; vertical-align: top;">
<input name="wpgform_options[enable_debug]" type="checkbox" id="wpgform_enable_debug" value="1" <?php checked('1', $wpgform_options['enable_debug']) ; ?> />
</td>
<td style="padding: 5px;">
<?php printf(__('Enabling debug will collect data during the form rendering and processing process.<p>The data is added to the page footer but hidden with a link appearing above the form which can toggle the display of the debug data. This data is useful when trying to understand why the plugin isn\'t operating as expected.</p><p>When debugging is enabled, specific transports employed by the <a href="%s">WordPress HTTP API</a> can optionally be disabled. While rarely required, disabling transports can be useful when the plugin is not communcating correctly with the Google Docs API. <i>Extra care should be taken when disabling transports as other aspects of WordPress may not work correctly.</i> The <a href="%s">WordPress Core Control</a> plugin is recommended for advanced debugging of <a href="%s">WordPress HTTP API issues.</a></p>', WPGFORM_I18N_DOMAIN), 'http://codex.wordpress.org/HTTP_API', 'http://wordpress.org/extend/plugins/core-control/', 'http://codex.wordpress.org/HTTP_API');?>
</td>
</tr>
</table>
</label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><label><?php _e('WordPress HTTP API<br/>Transport Control', WPGFORM_I18N_DOMAIN);?></label></th>
<td><fieldset>
<label for="wpgform_fsockopen_transport">
<input name="wpgform_options[fsockopen_transport]" type="checkbox" id="wpgform_fsockopen_transport" value="1" <?php checked('1', $wpgform_options['fsockopen_transport']) ; ?> />
<?php _e('Disable <i><b>FSockOpen</b></i> Transport', WPGFORM_I18N_DOMAIN);?></label>
<br />
<label for="wpgform_streams_transport">
<input name="wpgform_options[streams_transport]" type="checkbox" id="wpgform_streams_transport" value="1" <?php checked('1', $wpgform_options['streams_transport']) ; ?> />
<?php _e('Disable <i><b>Streams</b></i> Transport', WPGFORM_I18N_DOMAIN);?></label>
<br />
<label for="wpgform_curl_transport">
<input name="wpgform_options[curl_transport]" type="checkbox" id="wpgform_curl_transport" value="1" <?php checked('1', $wpgform_options['curl_transport']) ; ?> />
<?php _e('Disable <i><b>cURL</b></i> Transport', WPGFORM_I18N_DOMAIN);?></label>
<br />
<label for="wpgform_ssl_verify">
<input name="wpgform_options[ssl_verify]" type="checkbox" id="wpgform_ssl_verify" value="1" <?php checked('1', $wpgform_options['ssl_verify']) ; ?> />
<?php _e('Disable <i><b>SSL Verify</b></i>', WPGFORM_I18N_DOMAIN);?></label>
<br />
<label for="wpgform_local_ssl_verify">
<input name="wpgform_options[local_ssl_verify]" type="checkbox" id="wpgform_local_ssl_verify" value="1" <?php checked('1', $wpgform_options['local_ssl_verify']) ; ?> />
<?php _e('Disable <i><b>Local SSL Verify</b></i>', WPGFORM_I18N_DOMAIN);?></label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><label><?php _e('HTTP Request Timeout', WPGFORM_I18N_DOMAIN);?></label></th>
<td><fieldset>
<label for="wpgform_http_request_timeout">
<input name="wpgform_options[http_request_timeout]" type="checkbox" id="wpgform_http_request_timeout" value="1" <?php checked('1', $wpgform_options['http_request_timeout']) ; ?> />
<?php _e('Change <i><b>HTTP Request Timeout</b></i>', WPGFORM_I18N_DOMAIN);?></label>
<br />
<label for="wpgform_http_request_timeout_value">
<input name="wpgform_options[http_request_timeout_value]" type="text" id="wpgform_http_request_timeout_value" value="<?php echo $wpgform_options['http_request_timeout_value'] ; ?>" /><br />
<small><?php _e('(in seconds)', WPGFORM_I18N_DOMAIN);?></small></label>
</fieldset></td>
</tr>
</table>
<br /><br />
<input name="wpgform_options[sc_posts]" type="hidden" id="wpgform_sc_posts" value="<?php echo $wpgform_options['sc_posts'] ; ?>" />
<input name="wpgform_options[sc_widgets]" type="hidden" id="wpgform_sc_widgets" value="<?php echo $wpgform_options['sc_widgets'] ; ?>" />
<input name="wpgform_options[default_css]" type="hidden" id="wpgform_default_css" value="<?php echo $wpgform_options['default_css'] ; ?>" />
<input name="wpgform_options[custom_css]" type="hidden" id="wpgform_custom_css" value="<?php echo $wpgform_options['custom_css'] ; ?>" />
<input name="wpgform_options[custom_css_styles]" type="hidden" id="wpgform_custom_css_styles" value="<?php echo $wpgform_options['custom_css_styles'] ; ?>" />
<input name="wpgform_options[donation_message]" type="hidden" id="wpgform_donation_message" value="<?php echo $wpgform_options['donation_message'] ; ?>" />
<input name="wpgform_options[captcha_terms]" type="hidden" id="wpgform_captcha_terms" value="<?php echo $wpgform_options['captcha_terms'] ; ?>" />
<input name="wpgform_options[captcha_operator_plus]" type="hidden" id="wpgform_captcha_operator_plus" value="<?php echo $wpgform_options['captcha_operator_plus'] ; ?>" />
<input name="wpgform_options[captcha_operator_minus]" type="hidden" id="wpgform_captcha_operator_minus" value="<?php echo $wpgform_options['captcha_operator_minus'] ; ?>" />
<input name="wpgform_options[captcha_operator_mult]" type="hidden" id="wpgform_captcha_operator_mult" value="<?php echo $wpgform_options['captcha_operator_mult'] ; ?>" />
<input name="wpgform_options[email_format]" type="hidden" id="wpgform_email_format" value="<?php echo $wpgform_options['email_format'] ; ?>" />
<input name="wpgform_options[serialize_post_vars]" type="hidden" id="wpgform_serialize_post_vars" value="<?php echo $wpgform_options['serialize_post_vars'] ; ?>" />
<input name="wpgform_options[bcc_blog_admin]" type="hidden" id="wpgform_bcc_blog_admin" value="<?php echo $wpgform_options['bcc_blog_admin'] ; ?>" />
<?php
}
?>