| 1 |
<?php |
| 2 |
/** |
| 3 |
* Admin View: Settings |
| 4 |
*/ |
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; |
| 7 |
} |
| 8 |
|
| 9 |
?> |
| 10 |
<div class="wrap"> |
| 11 |
<nav class="nav-tab-wrapper uwp-nav-tab-wrapper"> |
| 12 |
<?php |
| 13 |
foreach ( $tabs as $name => $label ) { |
| 14 |
echo '<a href="' . esc_url( admin_url( 'admin.php?page=uwp_form_builder&tab=' . $name ) ) . '" class="nav-tab ' . ( $current_tab == $name ? 'nav-tab-active' : '' ) . '">' . esc_html( $label ) . '</a>'; |
| 15 |
} |
| 16 |
do_action( 'uwp_settings_tabs' ); |
| 17 |
?> |
| 18 |
</nav> |
| 19 |
<h1 class="screen-reader-text"><?php echo esc_html( $tabs[ $current_tab ] ); ?></h1> |
| 20 |
<?php |
| 21 |
do_action( 'uwp_sections_' . $current_tab ); |
| 22 |
do_action( 'uwp_settings_' . $current_tab ); |
| 23 |
do_action( 'uwp_settings_tabs_' . $current_tab ); |
| 24 |
?> |
| 25 |
</div> |
| 26 |
|