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 | classes/views/frm-form-actions/on_submit_settings.php +11 -7 6.5.2 → trunk View file →
@@ -2,8 +2,9 @@
2 2 /**
3 3 * On Submit form action settings
4 4 *
5 5 * @package Formidable
6 + *
6 7 * @since 6.0
7 8 *
8 9 * @var object $instance Form action post object.
9 10 * @var array $args Contains `form`, `action_key`, `values`.
@@ -18,24 +19,25 @@
18 19
19 20 $types = array(
20 21 'message' => array(
21 22 'label' => __( 'Show Message', 'formidable' ),
22 - 'icon' => 'frm_icon_font frm_chat_forms_icon frm_svg20',
23 + 'icon' => 'frmfont frm_chat_forms_icon frm_svg20',
23 24 'sub_settings' => array( 'FrmOnSubmitHelper', 'show_message_settings' ),
24 25 ),
25 26 'redirect' => array(
26 27 'label' => __( 'Redirect to URL', 'formidable' ),
27 - 'icon' => 'frm_icon_font frm_globe_icon frm_svg20',
28 + 'icon' => 'frmfont frm_globe_icon frm_svg20',
28 29 'sub_settings' => array( 'FrmOnSubmitHelper', 'show_redirect_settings' ),
29 30 ),
30 31 'page' => array(
31 32 'label' => __( 'Show Page Content', 'formidable' ),
32 - 'icon' => 'frm_icon_font frm_file_text_icon frm_svg20',
33 + 'icon' => 'frmfont frm_file_text_icon frm_svg20',
33 34 'sub_settings' => array( 'FrmOnSubmitHelper', 'show_page_settings' ),
34 35 ),
35 36 );
36 37
37 38 $col_count = count( $types );
39 +
38 40 if ( $col_count <= 4 ) {
39 41 $col_class = 'frm' . ( 12 / $col_count );
40 42 } else {
41 43 $col_count = 'frm2';
@@ -46,9 +48,9 @@
46 48 <?php
47 49 foreach ( $types as $type => $type_data ) :
48 50 $input_id = $this->get_field_id( 'success_action_' . $type );
49 51 ?>
50 - <div class="frm_on_submit_type frm_form_field <?php echo esc_attr( $col_class ); ?>">
52 + <div class="frm_on_submit_type frm_form_field frm-m-0 <?php echo esc_attr( $col_class ); ?>">
51 53 <input
52 54 type="radio"
53 55 id="<?php echo esc_attr( $input_id ); ?>"
54 56 name="<?php echo esc_attr( $this->get_field_name( 'success_action' ) ); ?>"
@@ -54,11 +56,11 @@
54 56 name="<?php echo esc_attr( $this->get_field_name( 'success_action' ) ); ?>"
55 57 value="<?php echo esc_attr( $type ); ?>"
56 58 <?php checked( $type, $success_action ); ?>
57 59 />
58 - <label for="<?php echo esc_attr( $input_id ); ?>">
59 - <?php FrmAppHelper::icon_by_class( $type_data['icon'], array( 'echo' => true ) ); ?>
60 - <?php echo esc_html( $type_data['label'] ); ?>
60 + <label class="frm-cursor-pointer" for="<?php echo esc_attr( $input_id ); ?>">
61 + <?php FrmAppHelper::icon_by_class( $type_data['icon'] ); ?>
62 + <span><?php echo esc_html( $type_data['label'] ); ?></span>
61 63 </label>
62 64 </div>
63 65 <?php endforeach; ?>
64 66 </div>
@@ -67,10 +69,12 @@
67 69 <?php
68 70 $type_args = $args;
69 71 $type_args['form_action'] = $instance;
70 72 $type_args['action_control'] = $this;
73 +
71 74 foreach ( $types as $type_name => $type ) {
72 75 $css_class = 'frm_on_submit_' . esc_attr( $type_name ) . '_settings frm_on_submit_dependent_setting';
76 +
73 77 if ( $success_action !== $type_name ) {
74 78 $css_class .= ' frm_hidden';
75 79 }
76 80 ?>