-
Notifications
You must be signed in to change notification settings - Fork 63
/
template-metrics.php
76 lines (47 loc) · 2.38 KB
/
template-metrics.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/*
Template Name: Metrics
*/
dt_please_log_in();
if ( !current_user_can( 'access_disciple_tools' ) && !current_user_can( 'view_project_metrics' ) ) {
wp_safe_redirect( '/registered' );
exit();
}
?>
<?php get_header(); ?>
<?php get_template_part( 'dt-assets/parts/modals/modal', 'template-metrics' ); ?>
<div style="padding:15px" class="template-metrics">
<div id="inner-content" class="grid-x grid-margin-x grid-margin-y">
<div class="large-2 medium-3 small-12 cell" id="side-nav-container">
<section id="metrics-side-section" class="medium-12 cell">
<div class="bordered-box">
<div class="section-header show-for-small-only"><?php esc_html_e( 'Menu', 'disciple_tools' )?>
<button class="section-chevron chevron_down">
<img src="<?php echo esc_html( get_template_directory_uri() . '/dt-assets/images/chevron_down.svg' ) ?>" alt="expand"/>
</button>
<button class="section-chevron chevron_up">
<img src="<?php echo esc_html( get_template_directory_uri() . '/dt-assets/images/chevron_up.svg' ) ?>" alt="collapse"/>
</button>
</div>
<div class="section-body">
<ul id="metrics-sidemenu" class="vertical menu accordion-menu" data-accordion-menu>
<?php
// WordPress.XSS.EscapeOutput.OutputNotEscaped
// @phpcs:ignore
echo apply_filters( 'dt_metrics_menu', '' );
?>
</ul>
</div>
</div>
</section>
</div>
<div id="metrics-content" class="large-10 medium-9 small-12 cell ">
<section id="metrics-container" class="medium-12 cell">
<div class="bordered-box">
<div id="chart"><span class="loading-spinner active"></span></div><!-- Container for charts -->
</div>
</section>
</div>
</div> <!-- end #inner-content -->
</div> <!-- end #content -->
<?php get_footer(); ?>