PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | stripe/views/action-settings/options.php +33 -0 6.5.2 → trunk View file →
@@ -1,6 +1,39 @@
1 1 <?php
2 2 if ( ! defined( 'ABSPATH' ) ) {
3 3 die( 'You are not allowed to call this page directly.' );
4 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 +}
5 17 ?>
6 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>