PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.2.66
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.2.66
1.2.73 1.2.72 1.2.71 1.2.70 1.2.69 1.2.68 1.2.67 1.2.66 1.2.65 1.2.64 1.2.63 trunk 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 All 173 releases
userswp / admin / views / html-admin-page-status.php

html-admin-page-status.php in UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP 1.2.66, at admin/views/html-admin-page-status.php

41 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin View: Page - Status
4 */
5
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit;
8 }
9
10 $current_tab = ! empty( $_REQUEST['tab'] ) ? sanitize_title( $_REQUEST['tab'] ) : 'status';
11 $tabs = array(
12 'status' => __( 'System Status', 'userswp' ),
13 );
14 $tabs = apply_filters( 'uwp_admin_status_tabs', $tabs );
15 ?>
16 <div class="wrap userswp">
17 <nav class="nav-tab-wrapper uwp-nav-tab-wrapper">
18 <?php
19 foreach ( $tabs as $name => $label ) {
20 echo '<a href="' . esc_url( admin_url( 'admin.php?page=uwp_status&tab=' . $name ) ) . '" class="nav-tab ';
21 if ( $current_tab == $name ) {
22 echo 'nav-tab-active';
23 }
24 echo '">' . esc_html( $label ) . '</a>';
25 }
26 ?>
27 </nav>
28 <h1 class="screen-reader-text"><?php echo esc_html( $tabs[ $current_tab ] ); ?></h1>
29 <?php
30 switch ( $current_tab ) {
31 default :
32 if ( array_key_exists( $current_tab, $tabs ) && has_action( 'uwp_admin_status_content_' . $current_tab ) ) {
33 do_action( 'uwp_admin_status_content_' . $current_tab );
34 } else {
35 UsersWP_Status::status_report();
36 }
37 break;
38 }
39 ?>
40 </div>
41