|
@@ -3,17 +3,17 @@ discard block |
|
|
block discarded – undo |
|
3
|
3
|
<?php } else if ( $field['type'] == 'textarea' ) { ?> |
|
4
|
4
|
<textarea name="<?php echo esc_attr( $field_name ) ?>" <?php |
|
5
|
5
|
echo ( FrmField::is_option_true( $field, 'size' ) ) ? esc_attr( 'style="width:' . $field['size'] . ( is_numeric( $field['size'] ) ? 'px' : '' ) . ';"' ) : ''; |
|
6
|
|
- ?> rows="<?php echo esc_attr( $field['max'] ); ?>" id="<?php echo esc_attr( $html_id ) ?>" class="dyn_default_value"><?php echo FrmAppHelper::esc_textarea(force_balance_tags($field['default_value'])); ?></textarea> |
|
|
6
|
+ ?> rows="<?php echo esc_attr( $field['max'] ); ?>" id="<?php echo esc_attr( $html_id ) ?>" class="dyn_default_value"><?php echo FrmAppHelper::esc_textarea( force_balance_tags( $field['default_value'] ) ); ?></textarea> |
|
7
|
7
|
|
|
8
|
8
|
<?php |
|
9
|
9
|
|
|
10
|
10
|
} else if ( $field['type'] == 'radio' || $field['type'] == 'checkbox' ) { |
|
11
|
|
- $field['default_value'] = maybe_unserialize($field['default_value']); |
|
12
|
|
- if ( isset($field['post_field']) && $field['post_field'] == 'post_category' ) { |
|
|
11
|
+ $field['default_value'] = maybe_unserialize( $field['default_value'] ); |
|
|
12
|
+ if ( isset( $field['post_field'] ) && $field['post_field'] == 'post_category' ) { |
|
13
|
13
|
do_action( 'frm_after_checkbox', array( 'field' => $field, 'field_name' => $field_name, 'type' => $field['type'] ) ); |
|
14
|
14
|
} else { |
|
15
|
|
- do_action('frm_add_multiple_opts_labels', $field); ?> |
|
16
|
|
- <ul id="frm_field_<?php echo esc_attr( $field['id'] ) ?>_opts" class="frm_sortable_field_opts frm_clear<?php echo (count($field['options']) > 10) ? ' frm_field_opts_list' : ''; ?>"> |
|
|
15
|
+ do_action( 'frm_add_multiple_opts_labels', $field ); ?> |
|
|
16
|
+ <ul id="frm_field_<?php echo esc_attr( $field['id'] ) ?>_opts" class="frm_sortable_field_opts frm_clear<?php echo ( count( $field['options'] ) > 10 ) ? ' frm_field_opts_list' : ''; ?>"> |
|
17
|
17
|
<?php include( FrmAppHelper::plugin_path() . '/classes/views/frm-fields/radio.php' ); ?> |
|
18
|
18
|
</ul> |
|
19
|
19
|
<?php |
|
@@ -21,8 +21,8 @@ discard block |
|
|
block discarded – undo |
|
21
|
21
|
} else if ( $field['type'] == 'select' ) { |
|
22
|
22
|
include( FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/dropdown-field.php' ); |
|
23
|
23
|
} else if ( $field['type'] == 'captcha' ) { |
|
24
|
|
- if ( empty($frm_settings->pubkey) ) { ?> |
|
25
|
|
- <div class="howto frm_no_captcha_text"><?php printf(__( 'Your captcha will not appear on your form until you %1$sset up%2$s the Site and Secret Keys', 'formidable' ), '<a href="?page=formidable-settings">', '</a>') ?></div> |
|
|
24
|
+ if ( empty( $frm_settings->pubkey ) ) { ?> |
|
|
25
|
+ <div class="howto frm_no_captcha_text"><?php printf( __( 'Your captcha will not appear on your form until you %1$sset up%2$s the Site and Secret Keys', 'formidable' ), '<a href="?page=formidable-settings">', '</a>' ) ?></div> |
|
26
|
26
|
<?php |
|
27
|
27
|
} ?> |
|
28
|
28
|
<img src="<?php echo esc_url( FrmAppHelper::plugin_url() . '/images/recaptcha.png' ) ?>" class="recaptcha_placeholder" alt="reCaptcha"/> |