diff --git a/includes/admin/class-sp-admin-dashboard.php b/includes/admin/class-sp-admin-dashboard.php
new file mode 100644
index 00000000..bd0b5ee4
--- /dev/null
+++ b/includes/admin/class-sp-admin-dashboard.php
@@ -0,0 +1,77 @@
+post_date );
+ $interval = date_diff( $now, $date );
+
+ $count = wp_count_posts( 'sp_event' );
+ $scheduled_count = $count->future;
+ $published_count = $count->publish;
+ ?>
+
+
+ -
+
+ %s until next event', 'sportspress' ), $interval->days . ' ' . __( 'days', 'sportspress' ) . ' ' . sprintf( '%02s:%02s:%02s', $interval->h, $interval->i, $interval->s ) ); ?>
+ (post_title; ?>)
+
+
+
+ -
+
+ %s event scheduled', '%s events scheduled', $scheduled_count, 'sportspress' ), $scheduled_count ); ?>
+
+
+ -
+
+ %s event published', '%s events published', $published_count, 'sportspress' ), $published_count ); ?>
+
+
+
+ id ) {
case 'dashboard' :
-// include( 'class-sp-admin-dashboard.php' );
+ include( 'class-sp-admin-dashboard.php' );
break;
case 'users' :
case 'user' :
@@ -76,7 +76,7 @@ class SP_Admin {
}
/**
- * Prevent any user who cannot 'edit_posts' (subscribers, customers etc) from accessing admin
+ * Prevent any user who cannot 'edit_posts' (subscribers, fans etc) from accessing admin
*/
public function prevent_admin_access() {
$prevent_access = false;