Rename competitions to leagues
This commit is contained in:
@@ -144,7 +144,7 @@ endif;
|
||||
}
|
||||
|
||||
if ( sp_column_active( $usecolumns, 'league' ) )
|
||||
echo '<th class="data-league">' . __( 'Competition', 'sportspress' ) . '</th>';
|
||||
echo '<th class="data-league">' . __( 'League', 'sportspress' ) . '</th>';
|
||||
|
||||
if ( sp_column_active( $usecolumns, 'season' ) )
|
||||
echo '<th class="data-season">' . __( 'Season', 'sportspress' ) . '</th>';
|
||||
|
||||
@@ -104,7 +104,7 @@ if ( $show_leagues ):
|
||||
foreach ( $leagues as $league ) {
|
||||
$terms[] = $league->name;
|
||||
}
|
||||
$data[ __( 'Competitions', 'sportspress' ) ] = implode( ', ', $terms );
|
||||
$data[ __( 'Leagues', 'sportspress' ) ] = implode( ', ', $terms );
|
||||
endif;
|
||||
endif;
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ if ( $show_leagues ):
|
||||
foreach ( $leagues as $league ) {
|
||||
$terms[] = $league->name;
|
||||
}
|
||||
$data[ __( 'Competitions', 'sportspress' ) ] = implode( ', ', $terms );
|
||||
$data[ __( 'Leagues', 'sportspress' ) ] = implode( ', ', $terms );
|
||||
endif;
|
||||
endif;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* Player Statistics for Single Competition
|
||||
* Player Statistics for Single League
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
|
||||
@@ -21,7 +21,7 @@ if ( $terms ):
|
||||
foreach ( $terms as $term ):
|
||||
$leagues[] = $term->name;
|
||||
endforeach;
|
||||
$data[ __( 'Competitions', 'sportspress' ) ] = implode( ', ', $leagues );
|
||||
$data[ __( 'Leagues', 'sportspress' ) ] = implode( ', ', $leagues );
|
||||
endif;
|
||||
|
||||
$terms = get_the_terms( $id, 'sp_season' );
|
||||
|
||||
Reference in New Issue
Block a user