| @@ -17,48 +17,52 @@ | ||
| 17 | 17 | ); |
| 18 | 18 | ?> |
| 19 | 19 | |
| 20 | 20 | <div class="columns-2"> |
| 21 | - <div class="frm-right-panel"> | |
| 22 | - <?php include( FrmAppHelper::plugin_path() . '/classes/views/frm-settings/tabs.php' ); ?> | |
| 21 | + <div class="frm-right-panel frm-scrollbar-wrapper"> | |
| 22 | + <?php require FrmAppHelper::plugin_path() . '/classes/views/frm-settings/tabs.php'; ?> | |
| 23 | 23 | </div> |
| 24 | 24 | |
| 25 | 25 | <div id="post-body-content" class="frm-fields"> |
| 26 | 26 | |
| 27 | - <?php require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); ?> | |
| 28 | - <input type="hidden" name="frm_action" value="process-form"/> | |
| 29 | - <input type="hidden" name="action" value="process-form"/> | |
| 30 | - <?php wp_nonce_field( 'process_form_nonce', 'process_form' ); ?> | |
| 27 | + <?php require FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php'; ?> | |
| 28 | + <input type="hidden" name="frm_action" value="process-form"/> | |
| 29 | + <input type="hidden" name="action" value="process-form"/> | |
| 30 | + <?php wp_nonce_field( 'process_form_nonce', 'process_form' ); ?> | |
| 31 | 31 | |
| 32 | + <?php | |
| 33 | + foreach ( $sections as $section ) { | |
| 34 | + if ( $current === $section['anchor'] ) { | |
| 35 | + ?> | |
| 36 | + <style type="text/css">.<?php echo esc_html( $section['anchor'] ); ?> { | |
| 37 | + display: block; | |
| 38 | + }</style> | |
| 39 | + <?php } ?> | |
| 40 | + <div id="<?php echo esc_attr( $section['anchor'] ); ?>" | |
| 41 | + class="<?php echo esc_attr( $section['anchor'] ); ?> tabs-panel <?php echo esc_attr( $current === $section['anchor'] ? 'frm_block' : 'frm_hidden' ); ?>"> | |
| 42 | + <h2 class="frm-h2"> | |
| 43 | + <?php FrmAppHelper::kses_echo( $section['name'], array( 'span' ) ); ?> | |
| 44 | + </h2> | |
| 45 | + <?php if ( isset( $section['ajax'] ) ) { ?> | |
| 46 | + <div class="frm_ajax_settings_tab frm_<?php echo esc_attr( $section['anchor'] ); ?>_ajax"> | |
| 47 | + <span class="frm-wait"></span> | |
| 48 | + </div> | |
| 49 | + <?php } else { ?> | |
| 32 | 50 | <?php |
| 33 | - foreach ( $sections as $section ) { | |
| 34 | - if ( $current === $section['anchor'] ) { | |
| 35 | - ?> | |
| 36 | - <style type="text/css">.<?php echo esc_attr( $section['anchor'] ); ?> { | |
| 37 | - display: block; | |
| 38 | - }</style> | |
| 39 | - <?php } ?> | |
| 40 | - <div id="<?php echo esc_attr( $section['anchor'] ); ?>" | |
| 41 | - class="<?php echo esc_attr( $section['anchor'] ); ?> tabs-panel <?php echo esc_attr( $current === $section['anchor'] ? 'frm_block' : 'frm_hidden' ); ?>"> | |
| 42 | - <h2 class="frm-h2"> | |
| 43 | - <?php echo FrmAppHelper::kses( $section['name'], array( 'span' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> | |
| 44 | - </h2> | |
| 45 | - <?php if ( isset( $section['ajax'] ) ) { ?> | |
| 46 | - <div class="frm_ajax_settings_tab frm_<?php echo esc_attr( $section['anchor'] ); ?>_ajax"> | |
| 47 | - <span class="frm-wait"></span> | |
| 48 | - </div> | |
| 49 | - <?php } else { ?> | |
| 50 | - <?php | |
| 51 | - if ( isset( $section['class'] ) ) { | |
| 52 | - call_user_func( array( $section['class'], $section['function'] ) ); | |
| 53 | - } elseif ( isset( $section['function'] ) ) { | |
| 54 | - call_user_func( $section['function'] ); | |
| 55 | - } | |
| 56 | - } | |
| 57 | - do_action( 'frm_' . $section['anchor'] . '_form', $frm_settings ); | |
| 58 | - ?> | |
| 59 | - </div> | |
| 60 | - <?php } ?> | |
| 51 | + if ( isset( $section['class'] ) ) { | |
| 52 | + call_user_func( array( $section['class'], $section['function'] ) ); | |
| 53 | + } elseif ( isset( $section['function'] ) ) { | |
| 54 | + call_user_func( $section['function'] ); | |
| 55 | + } | |
| 56 | + } | |
| 57 | + do_action( 'frm_' . $section['anchor'] . '_form', $frm_settings ); | |
| 58 | + ?> | |
| 59 | + </div> | |
| 60 | + <?php | |
| 61 | + }//end foreach | |
| 62 | + | |
| 63 | + do_action( 'frm_after_settings_tabs' ); | |
| 64 | + ?> | |
| 61 | 65 | </div> |
| 62 | 66 | </div> |
| 63 | 67 | </div> |
| 64 | 68 | </form> |