Clean up admin post list columns
This commit is contained in:
@@ -24,7 +24,10 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
|
|||||||
edit_post_link( get_the_post_thumbnail( $post_id, 'sportspress-fit-icon' ), '', '', $post_id );
|
edit_post_link( get_the_post_thumbnail( $post_id, 'sportspress-fit-icon' ), '', '', $post_id );
|
||||||
break;
|
break;
|
||||||
case 'sp_number':
|
case 'sp_number':
|
||||||
echo '<strong>' . get_post_meta( $post_id, 'sp_number', true ) . '</strong>';
|
$number = get_post_meta( $post_id, 'sp_number', true );
|
||||||
|
if ( $number != null ):
|
||||||
|
echo '<strong>' . $number . '</strong>';
|
||||||
|
endif;
|
||||||
break;
|
break;
|
||||||
case 'sp_views':
|
case 'sp_views':
|
||||||
echo sportspress_get_post_views( $post_id );
|
echo sportspress_get_post_views( $post_id );
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
content: "\f163";
|
content: "\f163";
|
||||||
}
|
}
|
||||||
|
|
||||||
.widefat .column-sp_team strong {
|
.fixed .column-sp_team strong {
|
||||||
background: #bbb;
|
background: #bbb;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
@@ -90,10 +90,25 @@
|
|||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fixed td.column-sp_format .dashicons:before {
|
||||||
|
color: #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fixed .column-sp_format,
|
||||||
|
.fixed .column-sp_icon,
|
||||||
|
.fixed .column-sp_number {
|
||||||
|
width: 2.3em;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.fixed .column-sp_time {
|
.fixed .column-sp_time {
|
||||||
width: 6%;
|
width: 6%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fixed .column-sp_league, .fixed .column-sp_season, .fixed .column-sp_venue, .fixed .column-sp_position, .fixed .column-sp_views {
|
||||||
|
width: 10%;
|
||||||
|
}
|
||||||
|
|
||||||
#sportspress_dashboard_status .inside {
|
#sportspress_dashboard_status .inside {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -314,29 +329,6 @@ table.widefat.sp-league-table th input[type=checkbox] {
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.widefat th.column-sp_format,
|
|
||||||
table.widefat td.column-sp_format,
|
|
||||||
table.widefat th.column-sp_icon,
|
|
||||||
table.widefat td.column-sp_icon,
|
|
||||||
table.widefat th.column-sp_number,
|
|
||||||
table.widefat td.column-sp_number {
|
|
||||||
width: 32px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
table.widefat th.column-sp_number,
|
|
||||||
table.widefat td.column-sp_number {
|
|
||||||
width: 32px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.widefat td.column-sp_number .sp-flag {
|
|
||||||
height: auto;
|
|
||||||
width: auto;
|
|
||||||
max-height: 16px;
|
|
||||||
max-width: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.widefat select.sp-outcome {
|
table.widefat select.sp-outcome {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user