PluginProbe
Property Hive / 1.4.53
Property Hive v1.4.53
2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 1.4.62 All 260 releases
propertyhive / includes / admin / views / html-admin-settings.php

html-admin-settings.php in Property Hive 1.4.53, at includes/admin/views/html-admin-settings.php

49 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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>