| @@ -2,8 +2,13 @@ | ||
| 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 | 12 | $layout_setting_wrapper_atts = array( 'class' => 'frm_grid_container show_stripe frm-mb-xs' ); |
| 8 | 13 | |
| 9 | 14 | if ( ! $show_layout_setting ) { |