html-admin-page-addons.php
6 years ago
html-admin-page-builder-setup.php
6 years ago
html-admin-page-builder.php
6 years ago
html-admin-page-entries-view.php
6 years ago
html-admin-page-export.php
6 years ago
html-admin-page-import.php
6 years ago
html-admin-page-tools-logs.php
6 years ago
html-admin-page-tools.php
6 years ago
html-admin-settings.php
7 years ago
html-notice-custom.php
6 years ago
html-notice-review.php
6 years ago
html-notice-update.php
6 years ago
html-notice-updated.php
6 years ago
html-notice-updating.php
6 years ago
html-admin-settings.php
51 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin View: Settings |
| 4 | * |
| 5 | * @package EverestForms |
| 6 | */ |
| 7 | |
| 8 | defined( 'ABSPATH' ) || exit; |
| 9 | |
| 10 | $tab_exists = isset( $tabs[ $current_tab ] ) || has_action( 'everest_forms_sections_' . $current_tab ) || has_action( 'everest_forms_settings_' . $current_tab ); |
| 11 | $current_tab_label = isset( $tabs[ $current_tab ] ) ? $tabs[ $current_tab ] : ''; |
| 12 | |
| 13 | if ( ! $tab_exists ) { |
| 14 | wp_safe_redirect( admin_url( 'admin.php?page=evf-settings' ) ); |
| 15 | exit; |
| 16 | } |
| 17 | ?> |
| 18 | <div class="wrap everest-forms"> |
| 19 | <?php if ( 'integration' !== $current_tab ) : ?> |
| 20 | <form method="<?php echo esc_attr( apply_filters( 'everest_forms_settings_form_method_tab_' . $current_tab, 'post' ) ); ?>" id="mainform" action="" enctype="multipart/form-data"> |
| 21 | <?php endif; ?> |
| 22 | <nav class="nav-tab-wrapper evf-nav-tab-wrapper"> |
| 23 | <?php |
| 24 | foreach ( $tabs as $slug => $label ) { |
| 25 | echo '<a href="' . esc_html( admin_url( 'admin.php?page=evf-settings&tab=' . esc_attr( $slug ) ) ) . '" class="nav-tab ' . ( $current_tab === $slug ? 'nav-tab-active' : '' ) . '"><span class="evf-nav-icon ' . esc_attr( $slug ) . '"></span>' . esc_html( $label ) . '</a>'; |
| 26 | } |
| 27 | |
| 28 | do_action( 'everest_forms_settings_tabs' ); |
| 29 | ?> |
| 30 | </nav> |
| 31 | <div class="everest-forms-settings"> |
| 32 | <h1 class="screen-reader-text"><?php echo esc_html( $current_tab_label ); ?></h1> |
| 33 | <?php |
| 34 | do_action( 'everest_forms_sections_' . $current_tab ); |
| 35 | |
| 36 | self::show_messages(); |
| 37 | |
| 38 | do_action( 'everest_forms_settings_' . $current_tab ); |
| 39 | ?> |
| 40 | <p class="submit"> |
| 41 | <?php if ( empty( $GLOBALS['hide_save_button'] ) ) : ?> |
| 42 | <button name="save" class="everest-forms-btn everest-forms-btn-primary everest-forms-save-button" type="submit" value="<?php esc_attr_e( 'Save Changes', 'everest-forms' ); ?>"><?php esc_html_e( 'Save Changes', 'everest-forms' ); ?></button> |
| 43 | <?php endif; ?> |
| 44 | <?php wp_nonce_field( 'everest-forms-settings' ); ?> |
| 45 | </p> |
| 46 | </div> |
| 47 | <?php if ( 'integration' !== $current_tab ) : ?> |
| 48 | </form> |
| 49 | <?php endif; ?> |
| 50 | </div> |
| 51 |