From 8651dbc1c6ef0e70e0a815824ea2760426825379 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 1 May 2014 12:48:13 +1000 Subject: [PATCH] Output player statistics in system status --- .../admin/views/html-admin-page-status.php | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/includes/admin/views/html-admin-page-status.php b/includes/admin/views/html-admin-page-status.php index 2acfedde..b0409e25 100644 --- a/includes/admin/views/html-admin-page-status.php +++ b/includes/admin/views/html-admin-page-status.php @@ -227,6 +227,16 @@ : + + : + 'sp_outcome', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'any' ) ); + foreach ( $posts as $post ) + $display_posts[] = $post->post_title . ' (' . $post->post_name . ') [' . $post->menu_order . ']'; + echo implode( ', ', array_map( 'esc_html', $display_posts ) ); + ?> + : - : + : 'sp_outcome', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'any' ) ); + $posts = get_posts( array( 'post_type' => 'sp_performance', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'any' ) ); foreach ( $posts as $post ) $display_posts[] = $post->post_title . ' (' . $post->post_name . ') [' . $post->menu_order . ']'; echo implode( ', ', array_map( 'esc_html', $display_posts ) ); @@ -253,7 +263,7 @@ $display_posts = array(); $posts = get_posts( array( 'post_type' => 'sp_column', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'any' ) ); foreach ( $posts as $post ) - $display_posts[] = $post->post_title . ' (' . $post->post_name . ') [' . $post->menu_order . ']'; + $display_posts[] = $post->post_title . ' (' . $post->post_name . ' = ' . get_post_meta( $post->ID, 'sp_equation', true ) . ') [' . $post->menu_order . ']'; echo implode( ', ', array_map( 'esc_html', $display_posts ) ); ?> @@ -268,12 +278,12 @@ ?> - : + : 'sp_performance', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'any' ) ); + $posts = get_posts( array( 'post_type' => 'sp_statistic', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'any' ) ); foreach ( $posts as $post ) - $display_posts[] = $post->post_title . ' (' . $post->post_name . ') [' . $post->menu_order . ']'; + $display_posts[] = $post->post_title . ' (' . $post->post_name . ' = ' . get_post_meta( $post->ID, 'sp_equation', true ) . ') [' . $post->menu_order . ']'; echo implode( ', ', array_map( 'esc_html', $display_posts ) ); ?>