Use gettext filter to modify fronted text
This commit is contained in:
@@ -17,19 +17,19 @@ $time = get_the_time( get_option('time_format'), $id );
|
||||
$leagues = get_the_terms( $id, 'sp_league' );
|
||||
$seasons = get_the_terms( $id, 'sp_season' );
|
||||
|
||||
$data = array( SP()->text->string('Date') => $date, SP()->text->string('Time') => $time );
|
||||
$data = array( __( 'Date', 'sportspress' ) => $date, __( 'Time', 'sportspress' ) => $time );
|
||||
|
||||
if ( $leagues ):
|
||||
$league = array_pop( $leagues );
|
||||
$data[ SP()->text->string('League') ] = $league->name;
|
||||
$data[ __( 'League', 'sportspress' ) ] = $league->name;
|
||||
endif;
|
||||
|
||||
if ( $seasons ):
|
||||
$season = array_pop( $seasons );
|
||||
$data[ SP()->text->string('Season') ] = $season->name;
|
||||
$data[ __( 'Season', 'sportspress' ) ] = $season->name;
|
||||
endif;
|
||||
?>
|
||||
<h3><?php echo SP()->text->string('Details'); ?></h3>
|
||||
<h3><?php echo __( 'Details', 'sportspress' ); ?></h3>
|
||||
<div class="sp-table-wrapper sp-scrollable-table-wrapper">
|
||||
<table class="sp-event-details sp-data-table">
|
||||
<thead>
|
||||
|
||||
Reference in New Issue
Block a user