| @@ -9,13 +9,13 @@ | ||
| 9 | 9 | |
| 10 | 10 | <?php |
| 11 | 11 | FrmAppHelper::get_admin_header( |
| 12 | 12 | array( |
| 13 | - 'label' => __( 'Settings', 'formidable' ), | |
| 14 | - 'form' => $form, | |
| 15 | - 'hide_title' => true, | |
| 16 | - 'close' => '?page=formidable', | |
| 17 | - 'publish' => array( 'FrmFormsController::form_publish_button', compact( 'values' ) ), | |
| 13 | + 'label' => __( 'Settings', 'formidable' ), | |
| 14 | + 'form' => $form, | |
| 15 | + 'hide_title' => true, | |
| 16 | + 'close' => '?page=formidable', | |
| 17 | + 'publish' => array( 'FrmFormsController::form_publish_button', compact( 'values' ) ), | |
| 18 | 18 | ) |
| 19 | 19 | ); |
| 20 | 20 | ?> |
| 21 | 21 | |
| @@ -20,9 +20,9 @@ | ||
| 20 | 20 | ?> |
| 21 | 21 | |
| 22 | 22 | <div class="columns-2"> |
| 23 | 23 | <div class="frm-right-panel"> |
| 24 | - <?php require FrmAppHelper::plugin_path() . '/classes/views/frm-settings/tabs.php'; ?> | |
| 24 | + <?php include( FrmAppHelper::plugin_path() . '/classes/views/frm-settings/tabs.php' ); ?> | |
| 25 | 25 | </div> |
| 26 | 26 | |
| 27 | 27 | <div id="post-body-content" class="frm-fields"> |
| 28 | 28 | |
| @@ -33,13 +33,13 @@ | ||
| 33 | 33 | <div id="frm-categorydiv"> |
| 34 | 34 | <div class="inside frm-inner-content"> |
| 35 | 35 | <?php |
| 36 | 36 | // Add form messages. |
| 37 | - require FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php'; | |
| 37 | + require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); | |
| 38 | 38 | ?> |
| 39 | 39 | |
| 40 | 40 | <?php foreach ( $sections as $section ) { ?> |
| 41 | - <div id="<?php echo esc_attr( $section['id'] ); ?>" class="tabs-panel <?php echo $current === $section['anchor'] ? ' frm_block' : ' frm_hidden'; ?> <?php echo esc_attr( $section['anchor'] . ' frm_' . $section['anchor'] ); ?>"> | |
| 41 | + <div id="<?php echo esc_attr( $section['id'] ); ?>" class="tabs-panel <?php echo ( $current === $section['anchor'] ) ? ' frm_block' : ' frm_hidden'; ?> <?php echo esc_attr( $section['anchor'] . ' frm_' . $section['anchor'] ); ?>"> | |
| 42 | 42 | <h2> |
| 43 | 43 | <?php echo esc_html( $section['title'] ); ?> |
| 44 | 44 | </h2> |
| 45 | 45 | |
| @@ -46,9 +46,9 @@ | ||
| 46 | 46 | <?php |
| 47 | 47 | if ( isset( $section['class'] ) ) { |
| 48 | 48 | call_user_func( array( $section['class'], $section['function'] ), $values ); |
| 49 | 49 | } elseif ( ! isset( $section['data'] ) ) { |
| 50 | - call_user_func( $section['function'] ?? $section, $values ); | |
| 50 | + call_user_func( ( isset( $section['function'] ) ? $section['function'] : $section ), $values ); | |
| 51 | 51 | } |
| 52 | 52 | ?> |
| 53 | 53 | </div> |
| 54 | 54 | <?php } ?> |
| @@ -54,9 +54,9 @@ | ||
| 54 | 54 | <?php } ?> |
| 55 | 55 | |
| 56 | 56 | <?php do_action( 'frm_add_form_option_section', $values ); ?> |
| 57 | 57 | <div class="clear"></div> |
| 58 | - <?php require FrmAppHelper::plugin_path() . '/classes/views/frm-forms/mb_insert_fields.php'; ?> | |
| 58 | + <?php include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/mb_insert_fields.php' ); ?> | |
| 59 | 59 | <?php do_action( 'frm_page_footer', array( 'table' => 'form-settings' ) ); ?> |
| 60 | 60 | </div> |
| 61 | 61 | </div> |
| 62 | 62 | </div> |
| @@ -63,4 +63,7 @@ | ||
| 63 | 63 | </div> |
| 64 | 64 | </div> |
| 65 | 65 | </form> |
| 66 | 66 | </div> |
| 67 | + | |
| 68 | +<?php | |
| 69 | +FrmAppHelper::multiselect_accessibility(); | |