From 412844830af339c449c5126f406e9ae111b50709 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 22 Mar 2014 00:21:21 +1100 Subject: [PATCH] Display full event results on hover in admin --- admin/hooks/manage-posts-columns.php | 4 +++- assets/css/admin.css | 12 +++++++++--- functions.php | 4 +++- readme.txt | 4 ++++ 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/admin/hooks/manage-posts-columns.php b/admin/hooks/manage-posts-columns.php index e9ce0ce1..58f56456 100644 --- a/admin/hooks/manage-posts-columns.php +++ b/admin/hooks/manage-posts-columns.php @@ -68,7 +68,9 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) { endif; if ( $team_result != null ): - echo '' . $team_result . ' '; + unset( $team_results['outcome'] ); + $team_results = implode( ' | ', $team_results ); + echo '' . $team_result . ' '; endif; echo $team->post_title; diff --git a/assets/css/admin.css b/assets/css/admin.css index 2f968756..3f867f49 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -87,8 +87,8 @@ margin-bottom: 1px !important; } -.fixed .column-sp_team strong.result, -.sp-calendar-table strong.result { +.fixed .column-sp_team .result, +.sp-calendar-table .result { background: #888; color: #fff; font-size: 11px; @@ -100,6 +100,12 @@ display: inline-block; -webkit-border-radius: 2px; border-radius: 2px; + cursor: pointer; +} + +.fixed .column-sp_team .result:hover, +.sp-calendar-table .result:hover { + background: #2ea2cc; } .fixed .column-sp_format, @@ -452,7 +458,7 @@ table.widefat select.sp-outcome { /* TipTip */ .tips { - cursor: help !important; + cursor: help; } #tiptip_holder { diff --git a/functions.php b/functions.php index eb0b2c23..23004232 100644 --- a/functions.php +++ b/functions.php @@ -852,7 +852,9 @@ if ( !function_exists( 'sportspress_edit_calendar_table' ) ) { endif; if ( $team_result != null ): - echo '' . $team_result . ' '; + unset( $team_results['outcome'] ); + $team_results = implode( ' | ', $team_results ); + echo '' . $team_result . ' '; endif; echo $name . '
'; diff --git a/readme.txt b/readme.txt index 676dad52..3a8f2963 100644 --- a/readme.txt +++ b/readme.txt @@ -152,6 +152,10 @@ SportsPress is currently in beta and is undergoing testing. We are still activel == Changelog == += 0.6.1 = +* Feature - Display full event results on hover over main team result in admin. +* Feature - Add option to choose delimiter to use between team names in event titles. + = 0.6 = * Feature - New events shortcodes: countdown, events-calendar, and events-list. * Feature - New teams shortcode: league-table.