PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 2.8.23.4
Pods – Custom Content Types and Fields v2.8.23.4
2.8.23.4 2.9.19.4 3.0.10.4 3.1.4.2 3.2.8.3 3.3.9.1 trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / ui / admin / settings.php
pods / ui / admin Last commit date
callouts 2 weeks ago upgrade 2 weeks ago widgets 2 weeks ago components-admin.php 2 weeks ago help.php 2 weeks ago postbox-header.php 2 weeks ago settings-reset.php 2 weeks ago settings-settings.php 2 weeks ago settings.php 2 weeks ago setup-add.php 2 weeks ago setup-edit.php 2 weeks ago shortcode.php 2 weeks ago view.php 2 weeks ago
settings.php
90 lines
1 <?php
2 // Don't load directly.
3 if ( ! defined( 'ABSPATH' ) || ! pods_is_admin( 'pods_settings' ) ) {
4 die( '-1' );
5 }
6 ?>
7 <div class="wrap pods-admin pods-admin--flex">
8 <div class="pods-admin__content-container">
9 <form action="" method="post" class="pods-submittable pods-form pods-form-settings">
10
11 <div id="icon-pods" class="icon32"><br /></div>
12
13 <?php
14 $default = 'settings';
15
16 $tabs = [
17 'settings' => __( 'Settings', 'pods' ),
18 'reset' => __( 'Cleanup &amp; Reset', 'pods' ),
19 ];
20
21 /**
22 * Allow filtering of settings page tabs.
23 *
24 * @since 2.8.0
25 *
26 * @param array $tabs List of settings page tabs.
27 */
28 $tabs = apply_filters( 'pods_admin_settings_tabs', $tabs );
29
30 $current_tab = pods_v( 'tab', 'get', $default, true );
31
32 if ( ! isset( $tabs[ $current_tab ] ) ) {
33 $current_tab = $default;
34 }
35 ?>
36
37 <h2 class="nav-tab-wrapper">
38 <?php
39 foreach ( $tabs as $tab => $label ) {
40 $class = '';
41
42 if ( $tab === $current_tab ) {
43 $class = ' nav-tab-active';
44
45 $label = 'Pods ' . $label;
46 }
47
48 $url = pods_query_arg( [ 'tab' => $tab ], [ 'page' ] );
49 ?>
50 <a href="<?php echo esc_url( $url ); ?>" class="nav-tab<?php echo esc_attr( $class ); ?>">
51 <?php echo $label; ?>
52 </a>
53 <?php
54 }
55 ?>
56 </h2>
57 <img src="<?php echo esc_url( PODS_URL ); ?>ui/images/pods-logo-notext-rgb-transparent.png" class="pods-leaf-watermark-right" />
58
59 <?php
60 wp_nonce_field( 'pods-settings' );
61
62 /**
63 * Allow customizations on tab page before output.
64 *
65 * @since 2.8.0
66 */
67 do_action( 'pods_admin_settings_page_pre_' . $current_tab );
68
69 pods_view( PODS_DIR . 'ui/admin/settings-' . sanitize_title( $current_tab ) . '.php' );
70
71 /**
72 * Allow customizations on tab page after output.
73 *
74 * @since 2.8.0
75 */
76 do_action( 'pods_admin_settings_page_post_' . $current_tab );
77 ?>
78 </form>
79 </div>
80
81 <?php
82 /**
83 * Allow additional output after the container area of the Pods settings screen.
84 *
85 * @since 2.7.17
86 */
87 do_action( 'pods_admin_after_settings' );
88 ?>
89 </div>
90