Adjust custom post list column labels

This commit is contained in:
Brian Miyaji
2014-03-08 23:33:50 +11:00
parent 8d561f5639
commit dfd4ff7904
6 changed files with 16 additions and 12 deletions

View File

@@ -11,6 +11,8 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
switch ( $column ):
case 'sp_icon':
edit_post_link( get_the_post_thumbnail( $post_id, 'sportspress-fit-icon' ), '', '', $post_id );
break;
case 'sp_number':
echo '<strong>' . get_post_meta( $post_id, 'sp_number', true ) . '</strong>';
break;
case 'sp_views':

View File

@@ -214,7 +214,7 @@ function sportspress_event_edit_columns() {
'sp_league' => __( 'League', 'sportspress' ),
'sp_season' => __( 'Season', 'sportspress' ),
'sp_venue' => __( 'Venue', 'sportspress' ),
'sp_datetime' => __( 'Date/Time', 'sportspress' ),
'sp_datetime' => '<span class="dashicons dashicons-calendar" title="' . __( 'Date/Time', 'sportspress' ) . '"></span>',
'sp_views' => __( 'Views', 'sportspress' ),
);
return $columns;

View File

@@ -32,8 +32,8 @@ add_action( 'init', 'sportspress_player_post_init' );
function sportspress_player_edit_columns() {
$columns = array(
'cb' => '<input type="checkbox" />',
'sp_icon' => '&nbsp;',
'title' => __( 'Name', 'sportspress' ),
'sp_number' => '<span class="sp-icon-tshirt" title="' . __( 'Number', 'sportspress' ) . '"></span>',
'title' => __( 'Player', 'sportspress' ),
'sp_position' => __( 'Positions', 'sportspress' ),
'sp_team' => __( 'Teams', 'sportspress' ),
'sp_league' => __( 'Leagues', 'sportspress' ),

View File

@@ -45,7 +45,7 @@ function sportspress_staff_profile_meta( $post ) {
function sportspress_staff_edit_columns() {
$columns = array(
'cb' => '<input type="checkbox" />',
'sp_icon' => '&nbsp;',
'sp_icon' => '<span class="dashicons dashicons-businessman" title="' . __( 'Staff', 'sportspress' ) . '"></span>',
'title' => __( 'Name', 'sportspress' ),
'sp_position' => __( 'Positions', 'sportspress' ),
'sp_team' => __( 'Teams', 'sportspress' ),

View File

@@ -40,7 +40,7 @@ function sportspress_team_meta_init( $post ) {
function sportspress_team_edit_columns() {
$columns = array(
'cb' => '<input type="checkbox" />',
'sp_icon' => '&nbsp;',
'sp_icon' => '<span class="sp-icon-shield" title="' . __( 'Logo', 'sportspress' ) . '"></span>',
'title' => __( 'Team', 'sportspress' ),
'sp_league' => __( 'Leagues', 'sportspress' ),
'sp_season' => __( 'Seasons', 'sportspress' ),

View File

@@ -11,7 +11,7 @@
font-style: normal;
}
[class^="icon-"], [class*=" icon-"] {
[class^="sp-icon-"], [class*=" sp-icon-"] {
font-family: 'sportspress';
speak: none;
font-style: normal;
@@ -25,19 +25,19 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-calendar:before {
.sp-icon-calendar:before {
content: "\f145";
}
.icon-shield:before {
.sp-icon-shield:before {
content: "\f334";
}
.icon-calendar:before {
.sp-icon-clock:before {
content: "\f469";
}
.icon-tshirt:before {
.sp-icon-tshirt:before {
content: "\f307";
}
.icon-megaphone:before {
.sp-icon-megaphone:before {
content: "\f155";
}
@@ -274,7 +274,9 @@ table.widefat.sp-league-table th input[type=checkbox] {
}
table.widefat th.column-sp_icon,
table.widefat td.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;
}