PluginProbe
Property Hive / 2.3.0
Property Hive v2.3.0
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 2.3.0, at includes/admin/views/html-admin-settings.php

61 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit;
4 }
5 ?>
6
7 <div class="wrap propertyhive">
8 <form method="post" id="mainform" action="" enctype="multipart/form-data">
9 <div class="icon32 icon32-propertyhive-settings" id="icon-propertyhive"><br /></div><h2 class="nav-tab-wrapper">
10 <?php
11 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope.
12 foreach ( $tabs as $name => $label )
13 echo '<a href="' . esc_url(admin_url( 'admin.php?page=ph-settings&tab=' . $name )) . '" class="nav-tab nav-tab-' . esc_attr(sanitize_title($name)) . ' ' . ( $current_tab == $name ? 'nav-tab-active' : '' ) . '">' . esc_html($label) . '</a>';
14
15 do_action( 'propertyhive_settings_tabs' );
16 ?>
17 </h2>
18
19 <?php
20 do_action( 'propertyhive_sections_' . $current_tab );
21 do_action( 'propertyhive_settings_' . $current_tab );
22 do_action( 'propertyhive_settings_tabs_' . $current_tab ); // @deprecated hook
23 ?>
24
25 <p class="submit">
26 <?php
27 if ( ! isset( $GLOBALS['hide_save_button'] ) )
28 {
29 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope.
30 $button_text = __( 'Save changes', 'propertyhive' );
31 if ( isset( $GLOBALS['save_button_text'] ) && ! empty( $GLOBALS['save_button_text'] ) )
32 {
33 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope.
34 $button_text = $GLOBALS['save_button_text'];
35 }
36 ?>
37 <button name="save" class="button-primary" type="submit" value="<?php echo esc_attr($button_text); ?>"><?php echo esc_html($button_text); ?></button>
38 <?php
39 }
40 ?>
41 <?php
42 if ( isset( $GLOBALS['show_cancel_button'] ) && $GLOBALS['show_cancel_button'] === TRUE )
43 {
44 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope.
45 $cancel_href = 'javascript:history.go(-1);';
46 if ( isset( $GLOBALS['cancel_button_href'] ) && ! empty( $GLOBALS['cancel_button_href'] ) )
47 {
48 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope.
49 $cancel_href = $GLOBALS['cancel_button_href'];
50 }
51 ?>
52 <a href="<?php echo esc_url($cancel_href); ?>" class="button"><?php echo esc_html(__( 'Cancel', 'propertyhive' )); ?></a>
53 <?php
54 }
55 ?>
56 <input type="hidden" name="subtab" id="last_tab" />
57 <input type="hidden" name="redirect" value="<?php echo esc_url( !empty($redirect_after_save) ? $redirect_after_save : '' ); ?>">
58 <?php wp_nonce_field( 'propertyhive-settings' ); ?>
59 </p>
60 </form>
61 </div>