PluginProbe
Nested Pages / trunk
Nested Pages vtrunk
3.3.1 3.2.15 3.2.14 3.1.8 3.1.9 3.2.0 3.2.1 3.2.10 3.2.11 3.2.12 3.2.13 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 All 106 releases
wp-nested-pages / app / Views / settings / settings.php
settings.php
26 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 -->