-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
109 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/** | ||
* The dashboard page. | ||
* | ||
* @package Statify | ||
* @since 2.0.0 | ||
*/ | ||
|
||
// Exit if accessed directly. | ||
defined( 'ABSPATH' ) || exit; | ||
|
||
?> | ||
<div class="wrap eefstatify"> | ||
<h1><?php esc_html_e( 'Statify – Extended Evaluation', 'extended-evaluation-for-statify' ); ?></h1> | ||
|
||
<section> | ||
<h3><?php esc_html_e( 'Monthly / Yearly Views', 'extended-evaluation-for-statify' ); ?></h3> | ||
<table id="table-data" class="wp-list-table widefat striped"> | ||
<thead> | ||
<tr> | ||
<th scope="col"><?php esc_html_e( 'Year', 'extended-evaluation-for-statify' ); ?></th> | ||
<?php foreach ( $months as $month ) { ?> | ||
<th scope="col"><?php echo esc_html( eefstatify_get_month_name( $month ) ); ?></th> | ||
<?php } ?> | ||
<th scope="col" class="right sum"><?php esc_html_e( 'Sum', 'extended-evaluation-for-statify' ); ?></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<?php foreach ( $years as $year ) { ?> | ||
<tr> | ||
<th scope="row"><a href="<?php echo esc_url( admin_url( 'admin.php?page=extended_evaluation_for_statify_dashboard&year=' . $year ) ); ?>"><?php echo esc_html( $year ); ?></a></th> | ||
<?php foreach ( $months as $month ) { ?> | ||
<td class="right"><?php eefstatify_echo_number( eefstatify_get_monthly_views( $views_for_all_months, $year, $month ) ); ?></td> | ||
<?php } ?> | ||
<td class="right sum"><?php eefstatify_echo_number( eefstatify_get_yearly_views( $views_for_all_years, $year ) ); ?></td> | ||
</tr> | ||
<?php } ?> | ||
</tbody> | ||
</table> | ||
</section> | ||
</div> |