Display default icon when event format is not set
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user