Adjust admin list icons and style with tooltip

This commit is contained in:
Brian Miyaji
2014-03-13 19:39:34 +11:00
parent 569245ae26
commit 6b8ca8eb20
7 changed files with 126 additions and 12 deletions

View File

@@ -187,16 +187,9 @@ if ( !function_exists( 'sportspress_set_post_views' ) ) {
if ( !function_exists( 'sportspress_get_post_datetime' ) ) {
function sportspress_get_post_datetime( $post ) {
if ( $post->post_status == 'future' ):
$status = __( 'Scheduled', 'sportspress' );
elseif( $post->post_status == 'publish' ):
$status = __( 'Published', 'sportspress' );
elseif( $post->post_status == 'draft' ):
$status = __( 'Draft', 'sportspress' );
else:
$status = __( 'Pending Review', 'sportspress' );
endif;
return $status . '<br />' . date_i18n( __( 'M j, Y @ G:i', 'sportspress' ), strtotime( $post->post_date ) );
$date = get_post_time( 'Y/m/d', false, $post );
$time = get_post_time( '@ H:i', false, $post );
return $date . '<br>' . $time;
}
}