| @@ -2,49 +2,27 @@ | ||
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | 3 | die( 'You are not allowed to call this page directly.' ); |
| 4 | 4 | } |
| 5 | 5 | ?> |
| 6 | -<div id="frm_form_editor_container" class="frm-m-12 <?php echo ( $has_fields ? 'frm-has-fields' : '' ); ?>"> | |
| 6 | +<div id="frm_form_editor_container" class="<?php echo ( $has_fields ? 'frm-has-fields' : '' ); ?>"> | |
| 7 | 7 | |
| 8 | 8 | <?php |
| 9 | 9 | if ( $has_fields ) { |
| 10 | 10 | // Add form messages. |
| 11 | - require FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php'; | |
| 11 | + require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); | |
| 12 | 12 | } |
| 13 | 13 | ?> |
| 14 | 14 | |
| 15 | 15 | <div id="frm-fake-page" class="frm_hidden"> |
| 16 | - <?php | |
| 17 | - /** | |
| 18 | - * Fires before the fake page in form builder. | |
| 19 | - * | |
| 20 | - * @since 6.9 | |
| 21 | - * | |
| 22 | - * @param array $form_array Processed form array. | |
| 23 | - */ | |
| 24 | - do_action( 'frm_before_builder_fake_page', $values ); | |
| 25 | - ?> | |
| 26 | - | |
| 27 | 16 | <div class="frm-page-break"> |
| 28 | - <div class="frm-collapse-page button frm-button-secondary frm-button-sm"> | |
| 17 | + <div class="frm-collapse-page button frm-button-secondary"> | |
| 29 | 18 | <?php |
| 30 | 19 | /* translators: %s: The page number */ |
| 31 | 20 | printf( esc_html__( 'Page %s', 'formidable' ), '<span class="frm-page-num">1</span>' ); |
| 32 | 21 | ?> |
| 33 | - <?php FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown6_icon', array( 'aria-hidden' => 'true' ) ); ?> | |
| 22 | + <i class="frm_icon_font frm_arrowdown6_icon"></i> | |
| 34 | 23 | </div> |
| 35 | 24 | </div> |
| 36 | - | |
| 37 | - <?php | |
| 38 | - /** | |
| 39 | - * Fires after the fake page in form builder. | |
| 40 | - * | |
| 41 | - * @since 6.9 | |
| 42 | - * | |
| 43 | - * @param array $form_array Processed form array. | |
| 44 | - */ | |
| 45 | - do_action( 'frm_after_builder_fake_page', $values ); | |
| 46 | - ?> | |
| 47 | 25 | </div> |
| 48 | 26 | |
| 49 | 27 | <ul id="frm-show-fields" class="frm_sorting inside"> |
| 50 | 28 | <?php |
| @@ -50,11 +28,10 @@ | ||
| 50 | 28 | <?php |
| 51 | 29 | if ( ! empty( $values['fields'] ) ) { |
| 52 | 30 | $grid_helper = new FrmFieldGridHelper(); |
| 53 | 31 | $values['count'] = 0; |
| 54 | - | |
| 55 | 32 | foreach ( $values['fields'] as $field ) { |
| 56 | - ++$values['count']; | |
| 33 | + $values['count']++; | |
| 57 | 34 | $grid_helper->set_field( $field ); |
| 58 | 35 | $grid_helper->maybe_begin_field_wrapper(); |
| 59 | 36 | FrmFieldsController::load_single_field( $field, $values ); |
| 60 | 37 | $grid_helper->sync_list_size(); |
| @@ -65,22 +42,22 @@ | ||
| 65 | 42 | } |
| 66 | 43 | ?> |
| 67 | 44 | </ul> |
| 68 | 45 | |
| 69 | - <?php if ( ! FrmAppHelper::is_admin_page() ) : ?> | |
| 70 | - <p id="frm-form-button"> | |
| 71 | - <button class="frm_button_submit" disabled="disabled"> | |
| 72 | - <?php echo esc_html( $form->options['submit_value'] ?? __( 'Submit', 'formidable' ) ); ?> | |
| 73 | - </button> | |
| 74 | - </p> | |
| 75 | - <?php endif; ?> | |
| 46 | + <p id="frm-form-button"> | |
| 47 | + <button class="frm_button_submit" disabled="disabled"> | |
| 48 | + <?php echo esc_attr( isset( $form->options['submit_value'] ) ? $form->options['submit_value'] : __( 'Submit', 'formidable' ) ); ?> | |
| 49 | + </button> | |
| 50 | + </p> | |
| 76 | 51 | |
| 77 | 52 | <div class="frm_no_fields"> |
| 78 | - <img src="<?php echo esc_url( FrmAppHelper::plugin_url() . '/images/form-empty.png' ); ?>" alt="<?php esc_attr_e( 'Start Building Your Form', 'formidable' ); ?>" /> | |
| 79 | - <div class="frm-no-fields-content"> | |
| 80 | - <h4 class="frm_drag_inst"><?php esc_html_e( 'Start Building Your Form', 'formidable' ); ?></h4> | |
| 81 | - <p><?php esc_html_e( 'Drag and drop fields from the left or click a field to add it to your form.', 'formidable' ); ?></p> | |
| 53 | + | |
| 54 | + <div class="frm_drag_inst"> | |
| 55 | + <?php esc_html_e( 'Add Fields Here', 'formidable' ); ?> | |
| 82 | 56 | </div> |
| 57 | + <p> | |
| 58 | + <?php esc_html_e( 'Click or drag a field from the sidebar to add it to your form', 'formidable' ); ?> | |
| 59 | + </p> | |
| 83 | 60 | <div class="clear"></div> |
| 84 | 61 | </div> |
| 85 | 62 | |
| 86 | 63 | <?php do_action( 'frm_page_footer', array( 'table' => 'form-builder' ) ); ?> |
| @@ -86,4 +63,5 @@ | ||
| 86 | 63 | <?php do_action( 'frm_page_footer', array( 'table' => 'form-builder' ) ); ?> |
| 87 | 64 | </div> |
| 88 | 65 | <?php |
| 89 | 66 | FrmFieldsHelper::bulk_options_overlay(); |
| 67 | +FrmAppHelper::multiselect_accessibility(); | |