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; + ?> + + 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;