Display default icon when event format is not set

This commit is contained in:
Brian Miyaji
2014-03-16 14:18:10 +11:00
parent 67fb603ce7
commit 12864c49a5

View File

@@ -12,11 +12,14 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
case 'sp_format': case 'sp_format':
$format = get_post_meta( $post_id, 'sp_format', true ); $format = get_post_meta( $post_id, 'sp_format', true );
switch ( $format ): switch ( $format ):
case 'league':
echo '<span class="dashicons sp-icon-crown tips" title="' . __( 'League', 'sportspress' ) . '"></span>';
break;
case 'friendly': case 'friendly':
echo '<span class="dashicons sp-icon-smile tips" title="' . __( 'Friendly', 'sportspress' ) . '"></span>'; echo '<span class="dashicons sp-icon-smile tips" title="' . __( 'Friendly', 'sportspress' ) . '"></span>';
break; break;
default: default:
echo '<span class="dashicons sp-icon-crown tips" title="' . __( 'League', 'sportspress' ) . '"></span>'; echo '<span class="dashicons dashicons-editor-help tips" title="' . __( 'Not set', 'sportspress' ) . '"></span>';
break; break;
endswitch; endswitch;
break; break;