echo __ => _e
This commit is contained in:
@@ -61,9 +61,9 @@ if ( ! isset( $post ) ) return;
|
||||
$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; ?>>
|
||||
<span><?php echo sprintf( '%02s', $days ); ?> <small><?php echo __( 'days', 'sportspress' ); ?></small></span>
|
||||
<span><?php echo sprintf( '%02s', $h ); ?> <small><?php echo __( 'hrs', 'sportspress' ); ?></small></span>
|
||||
<span><?php echo sprintf( '%02s', $i ); ?> <small><?php echo __( 'mins', 'sportspress' ); ?></small></span>
|
||||
<span><?php echo sprintf( '%02s', $s ); ?> <small><?php echo __( 'secs', 'sportspress' ); ?></small></span>
|
||||
<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>
|
||||
<span><?php echo sprintf( '%02s', $s ); ?> <small><?php _e( 'secs', 'sportspress' ); ?></small></span>
|
||||
</time></p>
|
||||
</div>
|
||||
|
||||
@@ -29,7 +29,7 @@ if ( $seasons ):
|
||||
$data[ __( 'Season', 'sportspress' ) ] = $season->name;
|
||||
endif;
|
||||
?>
|
||||
<h3><?php echo __( 'Details', 'sportspress' ); ?></h3>
|
||||
<h3><?php _e( 'Details', 'sportspress' ); ?></h3>
|
||||
<div class="sp-table-wrapper sp-scrollable-table-wrapper">
|
||||
<table class="sp-event-details sp-data-table">
|
||||
<thead>
|
||||
|
||||
@@ -163,9 +163,9 @@ if ( isset( $columns ) )
|
||||
endif;
|
||||
if ( $event->post_content !== null ):
|
||||
if ( $event->post_status == 'publish' ):
|
||||
echo __( 'Recap', 'sportspress' );
|
||||
_e( 'Recap', 'sportspress' );
|
||||
else:
|
||||
echo __( 'Preview', 'sportspress' );
|
||||
_e( 'Preview', 'sportspress' );
|
||||
endif;
|
||||
endif;
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ if ( isset( $columns ) && null !== $columns ):
|
||||
endif;
|
||||
$data = $list->data();
|
||||
|
||||
|
||||
// The first row should be column labels
|
||||
$labels = $data[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user