Emphasize team results in admin list
This commit is contained in:
@@ -38,8 +38,6 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
|
|||||||
if ( ! $team_id ) continue;
|
if ( ! $team_id ) continue;
|
||||||
$team = get_post( $team_id );
|
$team = get_post( $team_id );
|
||||||
|
|
||||||
echo $team->post_title;
|
|
||||||
|
|
||||||
$team_results = sportspress_array_value( $results, $team_id, null );
|
$team_results = sportspress_array_value( $results, $team_id, null );
|
||||||
|
|
||||||
if ( $main_result ):
|
if ( $main_result ):
|
||||||
@@ -57,6 +55,8 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
|
|||||||
echo '<strong>' . $team_result . '</strong> ';
|
echo '<strong>' . $team_result . '</strong> ';
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
echo $team->post_title;
|
||||||
|
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
endforeach;
|
endforeach;
|
||||||
elseif ( $post_type == 'sp_player' ):
|
elseif ( $post_type == 'sp_player' ):
|
||||||
|
|||||||
@@ -72,49 +72,17 @@
|
|||||||
content: "\f163";
|
content: "\f163";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.widefat .column-sp_team strong {
|
||||||
|
background: #555;
|
||||||
|
color: #fff;
|
||||||
|
padding: 0 4px;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
.fixed .column-sp_datetime {
|
.fixed .column-sp_datetime {
|
||||||
width: 10%;
|
width: 10%;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.wp-list-table .sp_datetime_head, table.wp-list-table .sp_team_head, table.wp-list-table .sp_player_head {
|
|
||||||
display: block;
|
|
||||||
text-indent: -9999px;
|
|
||||||
position: relative;
|
|
||||||
height: 1em;
|
|
||||||
width: 1em;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.wp-list-table .sp_datetime_head:after, table.wp-list-table .sp_team_head:after, table.wp-list-table .sp_player_head:after {
|
|
||||||
font-family: sportspress, dashicons !important;
|
|
||||||
speak: none;
|
|
||||||
font-weight: 400;
|
|
||||||
font-variant: normal;
|
|
||||||
text-transform: none;
|
|
||||||
line-height: 1;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
margin: 0;
|
|
||||||
text-indent: 0;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.wp-list-table .sp_datetime_head:after {
|
|
||||||
content: "\f145";
|
|
||||||
}
|
|
||||||
|
|
||||||
table.wp-list-table .sp_team_head:after {
|
|
||||||
content: "\f334";
|
|
||||||
}
|
|
||||||
|
|
||||||
table.wp-list-table .sp_player_head:after {
|
|
||||||
content: "\f307";
|
|
||||||
}
|
|
||||||
|
|
||||||
#sportspress_dashboard_status .inside {
|
#sportspress_dashboard_status .inside {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user