@savvasha commit from BitBucket

This commit is contained in:
Brian Miyaji
2018-08-24 00:47:45 +10:00
parent 84782414d2
commit 7f03ca39b9
9 changed files with 58 additions and 42 deletions

View File

@@ -149,7 +149,7 @@ if ( $link_events ) $title = '<a href="' . get_post_permalink( $post->ID, false,
$s = $interval->invert ? 0 : $interval->s;
?>
<p class="countdown sp-countdown<?php if ( $days >= 10 ): ?> long-countdown<?php endif; ?>">
<time datetime="<?php echo $post->post_date; ?>"<?php if ( $live ): ?> data-countdown="<?php echo str_replace( '-', '/', $post->post_date ); ?>"<?php endif; ?>>
<time datetime="<?php echo $post->post_date; ?>"<?php if ( $live ): ?> data-countdown="<?php echo str_replace( '-', '/', get_gmt_from_date( $post->post_date ) ); ?>"<?php endif; ?>>
<span><?php echo sprintf( '%02s', $days ); ?> <small><?php _e( 'days', 'sportspress' ); ?></small></span>
<span><?php echo sprintf( '%02s', $h ); ?> <small><?php _e( 'hrs', 'sportspress' ); ?></small></span>
<span><?php echo sprintf( '%02s', $i ); ?> <small><?php _e( 'mins', 'sportspress' ); ?></small></span>