| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
$div_attrs = array( |
| 7 |
'class' => 'frm_grid_container show_paypal', |
| 8 |
); |
| 9 |
|
| 10 |
ob_start(); |
| 11 |
FrmTransLitePaymentsController::maybe_hide_payment_setting( 'paypal', $form_action->post_content['gateway'] ); |
| 12 |
$div_attrs['class'] .= ob_get_clean(); |
| 13 |
?> |
| 14 |
<div <?php FrmAppHelper::array_to_html_params( $div_attrs, true ); ?>> |
| 15 |
<h3> |
| 16 |
<?php esc_html_e( 'Shipping Information', 'formidable' ); ?> |
| 17 |
</h3> |
| 18 |
|
| 19 |
<p class="frm6"> |
| 20 |
<label for="<?php echo esc_attr( $action_control->get_field_id( 'shipping_email' ) ); ?>"> |
| 21 |
<?php esc_html_e( 'Email', 'formidable' ); ?> |
| 22 |
</label> |
| 23 |
<input type="text" name="<?php echo esc_attr( $action_control->get_field_name( 'shipping_email' ) ); ?>" id="<?php echo esc_attr( $action_control->get_field_id( 'shipping_email' ) ); ?>" value="<?php echo esc_attr( $form_action->post_content['shipping_email'] ?? '' ); ?>" class="frm_not_email_to large-text" /> |
| 24 |
</p> |
| 25 |
<p class="frm6"> |
| 26 |
<label for="<?php echo esc_attr( $action_control->get_field_id( 'shipping_address' ) ); ?>"> |
| 27 |
<?php esc_html_e( 'Address', 'formidable' ); ?> |
| 28 |
</label> |
| 29 |
<?php |
| 30 |
$action_control->show_fields_dropdown( |
| 31 |
$field_dropdown_atts, |
| 32 |
array( |
| 33 |
'name' => 'shipping_address', |
| 34 |
'allowed_fields' => 'address', |
| 35 |
) |
| 36 |
); |
| 37 |
?> |
| 38 |
</p> |
| 39 |
<p class="frm6"> |
| 40 |
<label for="<?php echo esc_attr( $action_control->get_field_id( 'shipping_first_name' ) ); ?>"> |
| 41 |
<?php esc_html_e( 'First Name', 'formidable' ); ?> |
| 42 |
</label> |
| 43 |
<?php $action_control->show_fields_dropdown( $field_dropdown_atts, array( 'name' => 'shipping_first_name' ) ); ?> |
| 44 |
</p> |
| 45 |
<p class="frm6"> |
| 46 |
<label for="<?php echo esc_attr( $action_control->get_field_id( 'shipping_last_name' ) ); ?>"> |
| 47 |
<?php esc_html_e( 'Last Name', 'formidable' ); ?> |
| 48 |
</label> |
| 49 |
<?php $action_control->show_fields_dropdown( $field_dropdown_atts, array( 'name' => 'shipping_last_name' ) ); ?> |
| 50 |
</p> |
| 51 |
</div> |
| 52 |
|