Initialize settings classes
This commit is contained in:
26
includes/admin/views/html-admin-settings.php
Normal file
26
includes/admin/views/html-admin-settings.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<div class="wrap sportspress">
|
||||
<form method="post" id="mainform" action="" enctype="multipart/form-data">
|
||||
<div class="icon32 icon32-sportspress-settings" id="icon-sportspress"><br /></div><h2 class="nav-tab-wrapper sp-nav-tab-wrapper">
|
||||
<?php
|
||||
foreach ( $tabs as $name => $label )
|
||||
echo '<a href="' . admin_url( 'options-general.php?page=sportspress&tab=' . $name ) . '" class="nav-tab ' . ( $current_tab == $name ? 'nav-tab-active' : '' ) . '">' . $label . '</a>';
|
||||
|
||||
do_action( 'sportspress_settings_tabs' );
|
||||
?>
|
||||
</h2>
|
||||
|
||||
<?php
|
||||
do_action( 'sportspress_sections_' . $current_tab );
|
||||
do_action( 'sportspress_settings_' . $current_tab );
|
||||
do_action( 'sportspress_settings_tabs_' . $current_tab ); // @deprecated hook
|
||||
?>
|
||||
|
||||
<p class="submit">
|
||||
<?php if ( ! isset( $GLOBALS['hide_save_button'] ) ) : ?>
|
||||
<input name="save" class="button-primary" type="submit" value="<?php _e( 'Save changes', 'sportspress' ); ?>" />
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="subtab" id="last_tab" />
|
||||
<?php wp_nonce_field( 'sportspress-settings' ); ?>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user