| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
if ( class_exists( 'FrmStrpHooksController', false ) ) { |
| 7 |
// Prevent the Layout setting from appearing twice when the Stripe add-on is active. |
| 8 |
return; |
| 9 |
} |
| 10 |
|
| 11 |
$show_layout_setting = in_array( 'stripe', (array) $form_action->post_content['gateway'], true ); |
| 12 |
$layout_setting_wrapper_atts = array( 'class' => 'frm_grid_container show_stripe frm-mb-xs' ); |
| 13 |
|
| 14 |
if ( ! $show_layout_setting ) { |
| 15 |
$layout_setting_wrapper_atts['class'] .= ' frm_hidden'; |
| 16 |
} |
| 17 |
?> |
| 18 |
<input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name( 'plan_id' ) ); ?>" value="<?php echo esc_attr( $form_action->post_content['plan_id'] ); ?>" /> |
| 19 |
<div <?php FrmAppHelper::array_to_html_params( $layout_setting_wrapper_atts, true ); ?>> |
| 20 |
<p class="frm6 frm-mt-0"> |
| 21 |
<label for="<?php echo esc_attr( $action_control->get_field_id( 'layout' ) ); ?>"> |
| 22 |
<?php esc_html_e( 'Layout', 'formidable' ); ?> |
| 23 |
</label> |
| 24 |
<select name="<?php echo esc_attr( $action_control->get_field_name( 'layout' ) ); ?>" id="<?php echo esc_attr( $action_control->get_field_id( 'layout' ) ); ?>"> |
| 25 |
<option value=""> |
| 26 |
<?php esc_html_e( 'Tabs', 'formidable' ); ?> |
| 27 |
</option> |
| 28 |
<option value="accordion" |
| 29 |
<?php |
| 30 |
if ( isset( $form_action->post_content['layout'] ) ) { |
| 31 |
selected( $form_action->post_content['layout'], 'accordion' ); |
| 32 |
} |
| 33 |
?> |
| 34 |
> |
| 35 |
<?php esc_html_e( 'Accordion', 'formidable' ); ?> |
| 36 |
</option> |
| 37 |
</select> |
| 38 |
</p> |
| 39 |
</div> |
| 40 |
|