partials
1 year ago
settings-admincustom.php
6 years ago
settings-general.php
2 years ago
settings-posttypes.php
2 years ago
settings.php
6 years ago
settings.php
26 lines
| 1 | <div class="wrap"> |
| 2 | <h1><?php _e('Nested Pages Settings', 'wp-nested-pages'); ?></h1> |
| 3 | |
| 4 | <h2 class="nav-tab-wrapper"> |
| 5 | <a class="nav-tab <?php if ( $tab == 'general' ) echo 'nav-tab-active'; ?>" href="options-general.php?page=nested-pages-settings"> |
| 6 | <?php _e('General', 'wp-nested-pages'); ?> |
| 7 | </a> |
| 8 | <?php if ( count($this->getPostTypes()) > 0 ) : ?> |
| 9 | <a class="nav-tab <?php if ( $tab == 'posttypes' ) echo 'nav-tab-active'; ?>" href="options-general.php?page=nested-pages-settings&tab=posttypes"> |
| 10 | <?php _e('Post Types', 'wp-nested-pages'); ?> |
| 11 | </a> |
| 12 | <?php endif; ?> |
| 13 | <a class="nav-tab <?php if ( $tab == 'admincustom' ) echo 'nav-tab-active'; ?>" href="options-general.php?page=nested-pages-settings&tab=admincustom"> |
| 14 | <?php _e('Admin Customization', 'wp-nested-pages'); ?> |
| 15 | </a> |
| 16 | </h2> |
| 17 | |
| 18 | <?php |
| 19 | if ( $tab !== 'general' ) echo '<form method="post" enctype="multipart/form-data" action="options.php">'; |
| 20 | include(NestedPages\Helpers::view('settings/settings-' . $tab)); |
| 21 | if ( $tab !== 'general' ) { |
| 22 | submit_button(); |
| 23 | echo '</form>'; |
| 24 | } |
| 25 | ?> |
| 26 | </div><!-- .wrap --> |