| 1 |
<?php |
| 2 |
/** |
| 3 |
* Primary options for gdpr field |
| 4 |
* |
| 5 |
* @package Formidable |
| 6 |
* |
| 7 |
* @since 6.19 |
| 8 |
* |
| 9 |
* @var array $field Field array. |
| 10 |
* @var array $args Includes 'field', 'display', and 'values'. |
| 11 |
* @var FrmFieldGdpr $this Field type object. |
| 12 |
*/ |
| 13 |
|
| 14 |
if ( ! defined( 'ABSPATH' ) ) { |
| 15 |
die( 'You are not allowed to call this page directly.' ); |
| 16 |
} |
| 17 |
|
| 18 |
// Options here need to be declared in FrmFieldGdpr::extra_field_opts(). |
| 19 |
$field_id = $field['id']; |
| 20 |
?> |
| 21 |
<p> |
| 22 |
<label for="gdpr_agreement_text_<?php echo esc_attr( $field_id ); ?>"> |
| 23 |
<?php esc_html_e( 'Agreement text', 'formidable' ); ?> |
| 24 |
</label> |
| 25 |
<input type="text" name="field_options[gdpr_agreement_text_<?php echo esc_attr( $field_id ); ?>]" id="gdpr_agreement_text_<?php echo esc_attr( $field_id ); ?>" value="<?php echo esc_attr( FrmField::get_option( $field, 'gdpr_agreement_text' ) ); ?>"> |
| 26 |
</p> |
| 27 |
|