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/form_action.php +28 -24 6.27 → trunk View file →
@@ -19,23 +19,28 @@
19 19 id="frm_form_action_<?php echo esc_attr( $action_key ); ?>"
20 20 class="widget frm_form_action_settings frm_single_<?php echo esc_attr( $form_action->post_excerpt ); ?>_settings <?php echo esc_attr( $form_action->post_status === 'publish' ? '' : 'frm_disabled_action' ); ?>"
21 21 <?php FrmAppHelper::array_to_html_params( $data_attrs, true ); ?>
22 22 >
23 - <div class="widget-top">
24 - <div class="widget-title-action">
25 - <button type="button" class="widget-action hide-if-no-js" aria-expanded="false">
26 - <?php FrmAppHelper::icon_by_class( 'frmfont frm_arrow_right_icon' ); ?>
27 - </button>
23 + <div class="widget-top frm-h-stack-xs frm-cursor-pointer" tabindex="0">
24 + <div class="widget-title frm-flex-full">
25 + <h4 class="frm-h-stack-xs frm-text-md">
26 + <span class="frm-border-icon frm-border-icon--small"><?php FrmAppHelper::icon_by_class( $action_control->action_options['classes'], FrmFormActionsController::get_action_icon_atts( $action_control ) ); ?></span>
27 + <span><?php echo esc_html( $form_action->post_title ); ?></span>
28 + </h4>
28 29 </div>
29 - <span class="frm_email_icons alignright">
30 - <?php if ( $action_control->action_options['limit'] > 2 ) { ?>
31 - <a href="javascript:void(0)" class="frm_duplicate_form_action" title="<?php esc_attr_e( 'Duplicate', 'formidable' ); ?>">
32 - <?php FrmAppHelper::icon_by_class( 'frmfont frm_clone_icon' ); ?>
30 +
31 + <div class="frm-ml-auto frm-h-stack-sm frm-p-sm">
32 + <span class="frm_email_icons frm-flex frm-items-center frm-gap-sm frm-fadein-down-short">
33 + <?php if ( $action_control->action_options['limit'] > 2 ) { ?>
34 + <a href="javascript:void(0)" class="frm_duplicate_form_action" title="<?php esc_attr_e( 'Duplicate', 'formidable' ); ?>">
35 + <?php FrmAppHelper::icon_by_class( 'frmfont frm-copy-icon frm_svg24 frm-text-grey-800' ); ?>
36 + </a>
37 + <?php } ?>
38 +
39 + <a href="javascript:void(0)" data-removeid="frm_form_action_<?php echo esc_attr( $action_key ); ?>" class="frm_remove_form_action" data-frmverify="<?php esc_attr_e( 'Delete this form action?', 'formidable' ); ?>" data-frmverify-btn="frm-button-red" title="<?php esc_attr_e( 'Delete', 'formidable' ); ?>">
40 + <?php FrmAppHelper::icon_by_class( 'frmfont frm_trash_icon frm_svg24 frm-text-grey-800' ); ?>
33 41 </a>
34 - <?php } ?>
35 - <a href="javascript:void(0)" data-removeid="frm_form_action_<?php echo esc_attr( $action_key ); ?>" class="frm_remove_form_action" data-frmverify="<?php esc_attr_e( 'Delete this form action?', 'formidable' ); ?>" data-frmverify-btn="frm-button-red" title="<?php esc_attr_e( 'Delete', 'formidable' ); ?>">
36 - <?php FrmAppHelper::icon_by_class( 'frmfont frm_delete_icon ' ); ?>
37 - </a>
42 + </span>
38 43
39 44 <?php
40 45 FrmHtmlHelper::toggle(
41 46 $action_control->get_field_id( 'post_status', '' ),
@@ -45,29 +50,28 @@
45 50 'on_label' => 'publish',
46 51 'off_label' => 'OFF',
47 52 'show_labels' => false,
48 53 'echo' => true,
54 + 'div_class' => 'frm-ml-xs',
49 55 )
50 56 );
51 57 ?>
52 - </span>
53 - <div class="widget-title">
54 - <h4>
55 - <span class="frm_form_action_icon frm-outer-circle <?php echo esc_attr( ! str_contains( $action_control->action_options['classes'], 'frm-inverse' ) ? '' : ' frm-inverse' ); ?>">
56 - <?php FrmAppHelper::icon_by_class( $action_control->action_options['classes'] ); ?>
57 - </span>
58 - <?php echo esc_html( $form_action->post_title ); ?>
59 - </h4>
58 +
59 + <div class="widget-title-action">
60 + <button type="button" class="widget-action frm-flex frm-p-2xs-force hide-if-no-js" aria-expanded="false">
61 + <?php FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown8_icon frm_svg14' ); ?>
62 + </button>
63 + </div>
60 64 </div>
61 65 </div>
66 +
62 67 <div class="widget-inside">
63 68 <?php
69 + // Load settings only if just added or open, otherwise include hidden settings to prevent losing the action on update.
64 70 if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
65 - // only load settings if they are just added or are open
66 71 include __DIR__ . '/_action_inside.php';
67 72 } else {
68 - // include hidden settings so action won't get lost on update
69 - ?>
73 + ?>
70 74 <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name( 'post_excerpt', '' ) ); ?>" class="frm_action_name" value="<?php echo esc_attr( $form_action->post_excerpt ); ?>" />
71 75 <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name( 'ID', '' ) ); ?>" value="<?php echo esc_attr( $form_action->ID ); ?>" />
72 76 <?php } ?>
73 77 </div>