PluginProbe
Property Hive / 1.4.6
Property Hive v1.4.6
2.3.1 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 All 261 releases
propertyhive / includes / admin / views / html-admin-page-reports.php

html-admin-page-reports.php in Property Hive 1.4.6, at includes/admin/views/html-admin-page-reports.php

74 lines 1.7 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 - Reports
4 */
5
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit;
8 }
9
10 ?>
11 <div class="wrap propertyhive">
12 <nav class="nav-tab-wrapper">
13 <?php
14 foreach ( $reports as $key => $report_group ) {
15 echo '<a href="' . admin_url( 'admin.php?page=ph-reports&tab=' . urlencode( $key ) ) . '" class="nav-tab ';
16 if ( $current_tab == $key ) {
17 echo 'nav-tab-active';
18 }
19 echo '">' . esc_html( $report_group[ 'title' ] ) . '</a>';
20 }
21
22 do_action( 'ph_reports_tabs' );
23 ?>
24 </nav>
25 <?php //if ( sizeof( $reports[ $current_tab ]['reports'] ) > 1 ) {
26 ?>
27 <ul class="subsubsub">
28 <li><?php
29
30 $links = array();
31
32 foreach ( $reports[ $current_tab ]['reports'] as $key => $report ) {
33
34 $link = '<a href="admin.php?page=ph-reports&tab=' . urlencode( $current_tab ) . '&amp;report=' . urlencode( $key ) . '" class="';
35
36 if ( $key == $current_report ) {
37 $link .= 'current';
38 }
39
40 $link .= '">' . $report['title'] . '</a>';
41
42 $links[] = $link;
43
44 }
45
46 echo implode( ' | </li><li>', $links );
47
48 ?></li>
49 </ul>
50 <br class="clear" />
51 <?php
52 //}
53
54 if ( isset( $reports[ $current_tab ][ 'reports' ][ $current_report ] ) ) {
55
56 $report = $reports[ $current_tab ][ 'reports' ][ $current_report ];
57
58 if ( ! isset( $report['hide_title'] ) || $report['hide_title'] != true ) {
59 echo '<h1>' . esc_html( $report['title'] ) . '</h1>';
60 } else {
61 echo '<h1 class="screen-reader-text">' . esc_html( $report['title'] ) . '</h1>';
62 }
63
64 if ( $report['description'] ) {
65 echo '<p>' . $report['description'] . '</p>';
66 }
67
68 if ( $report['callback'] && ( is_callable( $report['callback'] ) ) ) {
69 call_user_func( $report['callback'], $current_report );
70 }
71 }
72 ?>
73 </div>
74