Display full event results on hover in admin

This commit is contained in:
Brian Miyaji
2014-03-22 00:21:21 +11:00
parent f730f7886e
commit 412844830a
4 changed files with 19 additions and 5 deletions

View File

@@ -68,7 +68,9 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
endif; endif;
if ( $team_result != null ): if ( $team_result != null ):
echo '<strong class="result">' . $team_result . '</strong> '; unset( $team_results['outcome'] );
$team_results = implode( ' | ', $team_results );
echo '<a class="result tips" title="' . $team_results . '" href="' . get_edit_post_link( $post_id ) . '">' . $team_result . '</a> ';
endif; endif;
echo $team->post_title; echo $team->post_title;

View File

@@ -87,8 +87,8 @@
margin-bottom: 1px !important; margin-bottom: 1px !important;
} }
.fixed .column-sp_team strong.result, .fixed .column-sp_team .result,
.sp-calendar-table strong.result { .sp-calendar-table .result {
background: #888; background: #888;
color: #fff; color: #fff;
font-size: 11px; font-size: 11px;
@@ -100,6 +100,12 @@
display: inline-block; display: inline-block;
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
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, .fixed .column-sp_format,
@@ -452,7 +458,7 @@ table.widefat select.sp-outcome {
/* TipTip */ /* TipTip */
.tips { .tips {
cursor: help !important; cursor: help;
} }
#tiptip_holder { #tiptip_holder {

View File

@@ -852,7 +852,9 @@ if ( !function_exists( 'sportspress_edit_calendar_table' ) ) {
endif; endif;
if ( $team_result != null ): if ( $team_result != null ):
echo '<strong class="result">' . $team_result . '</strong> '; unset( $team_results['outcome'] );
$team_results = implode( ' | ', $team_results );
echo '<a class="result tips" title="' . $team_results . '" href="' . get_edit_post_link( $event->ID ) . '">' . $team_result . '</a> ';
endif; endif;
echo $name . '<br>'; echo $name . '<br>';

View File

@@ -152,6 +152,10 @@ SportsPress is currently in beta and is undergoing testing. We are still activel
== Changelog == == 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 = = 0.6 =
* Feature - New events shortcodes: countdown, events-calendar, and events-list. * Feature - New events shortcodes: countdown, events-calendar, and events-list.
* Feature - New teams shortcode: league-table. * Feature - New teams shortcode: league-table.