-
Notifications
You must be signed in to change notification settings - Fork 135
/
reporting.php
49 lines (33 loc) · 1.32 KB
/
reporting.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* Reporting Screen Main Template
*
* @package LifterLMS/Templates/Admin
*
* @since Unknown
* @version 3.29.0
*/
defined( 'ABSPATH' ) || exit;
is_admin() || exit;
?>
<div class="wrap lifterlms llms-reporting tab--<?php echo esc_attr( $current_tab ); ?>">
<form action="<?php echo esc_url( admin_url( 'admin.php' ) ); ?>" class="llms-reporting-nav" method="GET">
<nav class="llms-nav-tab-wrapper llms-nav-secondary">
<div class="llms-inside-wrap">
<ul class="llms-nav-items">
<?php foreach ( $tabs as $name => $label ) : ?>
<?php $current_tab_class = ( $current_tab === $name ) ? ' llms-active' : ''; ?>
<li class="llms-nav-item<?php echo esc_attr( $current_tab_class ); ?>"><a class="llms-nav-link" href="<?php echo esc_url( admin_url( 'admin.php?page=llms-reporting&tab=' . $name ) ); ?>"><?php echo esc_html( $label ); ?></a>
<?php endforeach; ?>
</ul>
</div>
</nav>
<?php do_action( 'llms_reporting_after_nav', $current_tab ); ?>
</form>
<h1 style="display:none;"></h1><!-- find a home for admin notices -->
<div class="llms-options-page-contents">
<?php do_action( 'llms_reporting_before_content', $current_tab ); ?>
<?php do_action( 'llms_reporting_content_' . $current_tab ); ?>
<?php do_action( 'llms_reporting_after_content', $current_tab ); ?>
</div>
</div>