| @@ -2,10 +2,15 @@ | ||
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | 3 | die( 'You are not allowed to call this page directly.' ); |
| 4 | 4 | } |
| 5 | 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 | + | |
| 6 | 11 | $show_layout_setting = in_array( 'stripe', (array) $form_action->post_content['gateway'], true ); |
| 7 | -$layout_setting_wrapper_atts = array( 'class' => 'frm_grid_container show_stripe' ); | |
| 12 | +$layout_setting_wrapper_atts = array( 'class' => 'frm_grid_container show_stripe frm-mb-xs' ); | |
| 8 | 13 | |
| 9 | 14 | if ( ! $show_layout_setting ) { |
| 10 | 15 | $layout_setting_wrapper_atts['class'] .= ' frm_hidden'; |
| 11 | 16 | } |
| @@ -11,9 +16,9 @@ | ||
| 11 | 16 | } |
| 12 | 17 | ?> |
| 13 | 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'] ); ?>" /> |
| 14 | 19 | <div <?php FrmAppHelper::array_to_html_params( $layout_setting_wrapper_atts, true ); ?>> |
| 15 | - <p class="frm6"> | |
| 20 | + <p class="frm6 frm-mt-0"> | |
| 16 | 21 | <label for="<?php echo esc_attr( $action_control->get_field_id( 'layout' ) ); ?>"> |
| 17 | 22 | <?php esc_html_e( 'Layout', 'formidable' ); ?> |
| 18 | 23 | </label> |
| 19 | 24 | <select name="<?php echo esc_attr( $action_control->get_field_name( 'layout' ) ); ?>" id="<?php echo esc_attr( $action_control->get_field_id( 'layout' ) ); ?>"> |