| 1 |
<div class="wrap propertyhive"> |
| 2 |
<form method="post" id="mainform" action="" enctype="multipart/form-data"> |
| 3 |
<div class="icon32 icon32-propertyhive-settings" id="icon-propertyhive"><br /></div><h2 class="nav-tab-wrapper woo-nav-tab-wrapper"> |
| 4 |
<?php |
| 5 |
foreach ( $tabs as $name => $label ) |
| 6 |
echo '<a href="' . admin_url( 'admin.php?page=ph-settings&tab=' . $name ) . '" class="nav-tab ' . ( $current_tab == $name ? 'nav-tab-active' : '' ) . '">' . $label . '</a>'; |
| 7 |
|
| 8 |
do_action( 'propertyhive_settings_tabs' ); |
| 9 |
?> |
| 10 |
</h2> |
| 11 |
|
| 12 |
<?php |
| 13 |
do_action( 'propertyhive_sections_' . $current_tab ); |
| 14 |
do_action( 'propertyhive_settings_' . $current_tab ); |
| 15 |
do_action( 'propertyhive_settings_tabs_' . $current_tab ); // @deprecated hook |
| 16 |
?> |
| 17 |
|
| 18 |
<p class="submit"> |
| 19 |
<?php |
| 20 |
if ( ! isset( $GLOBALS['hide_save_button'] ) ) |
| 21 |
{ |
| 22 |
$button_text = __( 'Save changes', 'propertyhive' ); |
| 23 |
if ( isset( $GLOBALS['save_button_text'] ) && ! empty( $GLOBALS['save_button_text'] ) ) |
| 24 |
{ |
| 25 |
$button_text = $GLOBALS['save_button_text']; |
| 26 |
} |
| 27 |
?> |
| 28 |
<input name="save" class="button-primary" type="submit" value="<?php echo $button_text; ?>" /> |
| 29 |
<?php |
| 30 |
} |
| 31 |
?> |
| 32 |
<?php |
| 33 |
if ( isset( $GLOBALS['show_cancel_button'] ) && $GLOBALS['show_cancel_button'] === TRUE ) |
| 34 |
{ |
| 35 |
$cancel_href = 'javascript:history.go(-1);'; |
| 36 |
if ( isset( $GLOBALS['cancel_button_href'] ) && ! empty( $GLOBALS['cancel_button_href'] ) ) |
| 37 |
{ |
| 38 |
$cancel_href = $GLOBALS['cancel_button_href']; |
| 39 |
} |
| 40 |
?> |
| 41 |
<a href="<?php echo $cancel_href; ?>" class="button"><?php _e( 'Cancel', 'propertyhive' ); ?></a> |
| 42 |
<?php |
| 43 |
} |
| 44 |
?> |
| 45 |
<input type="hidden" name="subtab" id="last_tab" /> |
| 46 |
<?php wp_nonce_field( 'propertyhive-settings' ); ?> |
| 47 |
</p> |
| 48 |
</form> |
| 49 |
</div> |