Rename competitions to leagues

This commit is contained in:
Brian Miyaji
2017-11-04 18:20:47 +11:00
parent 5ad7219b03
commit bf7b0d3d11
39 changed files with 53 additions and 53 deletions

View File

@@ -1,4 +1,4 @@
Number,Name,Positions,Teams,Competitions,Seasons,Nationality Number,Name,Positions,Teams,Leagues,Seasons,Nationality
1,Joe Allen,Goalkeeper,Eagles,Primary League|Secondary League,2014,aus 1,Joe Allen,Goalkeeper,Eagles,Primary League|Secondary League,2014,aus
3,Steven Gerrard,Defender,Kangaroos,Primary League,2014|2013,usa 3,Steven Gerrard,Defender,Kangaroos,Primary League,2014|2013,usa
5,Daniel Sturridge,Midfielder|Forward,Sharks,Primary League|Secondary League,2014|2013,eng 5,Daniel Sturridge,Midfielder|Forward,Sharks,Primary League|Secondary League,2014|2013,eng
1 Number Name Positions Teams Competitions Leagues Seasons Nationality
2 1 Joe Allen Goalkeeper Eagles Primary League|Secondary League Primary League|Secondary League 2014 aus
3 3 Steven Gerrard Defender Kangaroos Primary League Primary League 2014|2013 usa
4 5 Daniel Sturridge Midfielder|Forward Sharks Primary League|Secondary League Primary League|Secondary League 2014|2013 eng

View File

@@ -1,4 +1,4 @@
Name,Jobs,Teams,Competitions,Seasons,Nationality Name,Jobs,Teams,Leagues,Seasons,Nationality
Bobby Brown,Coach,Eagles,Primary League|Secondary League,2014,aus Bobby Brown,Coach,Eagles,Primary League|Secondary League,2014,aus
Charles Johnson,Assistant Coach,Kangaroos,Primary League,2014,eng Charles Johnson,Assistant Coach,Kangaroos,Primary League,2014,eng
Matt Smith,Waterboy,Sharks,Primary League|Secondary League,2013|2014,aus Matt Smith,Waterboy,Sharks,Primary League|Secondary League,2013|2014,aus
1 Name Jobs Teams Competitions Leagues Seasons Nationality
2 Bobby Brown Coach Eagles Primary League|Secondary League Primary League|Secondary League 2014 aus
3 Charles Johnson Assistant Coach Kangaroos Primary League Primary League 2014 eng
4 Matt Smith Waterboy Sharks Primary League|Secondary League Primary League|Secondary League 2013|2014 aus

View File

@@ -1,4 +1,4 @@
Name,Competitions,Seasons,Site URL,Abbreviation,Home Name,Leagues,Seasons,Site URL,Abbreviation,Home
Eagles,Primary League|Secondary League,2014,http://tboy.co/eagles,EAGLES,Little Park Eagles,Primary League|Secondary League,2014,http://tboy.co/eagles,EAGLES,Little Park
Sharks,Primary League|Secondary League,2014|2013,http://tboy.co/sharks,SHARKS Sharks,Primary League|Secondary League,2014|2013,http://tboy.co/sharks,SHARKS
Kangaroos,Primary League,2014|2013,http://tboy.co/roos,ROOS,Big Stadium Kangaroos,Primary League,2014|2013,http://tboy.co/roos,ROOS,Big Stadium
1 Name,Competitions,Seasons,Site URL,Abbreviation,Home Name,Leagues,Seasons,Site URL,Abbreviation,Home
2 Eagles,Primary League|Secondary League,2014,http://tboy.co/eagles,EAGLES,Little Park Eagles,Primary League|Secondary League,2014,http://tboy.co/eagles,EAGLES,Little Park
3 Sharks,Primary League|Secondary League,2014|2013,http://tboy.co/sharks,SHARKS Sharks,Primary League|Secondary League,2014|2013,http://tboy.co/sharks,SHARKS
4 Kangaroos,Primary League,2014|2013,http://tboy.co/roos,ROOS,Big Stadium Kangaroos,Primary League,2014|2013,http://tboy.co/roos,ROOS,Big Stadium

View File

@@ -58,7 +58,7 @@ class SP_Admin_Menus {
* Add menu item * Add menu item
*/ */
public function leagues_menu() { public function leagues_menu() {
add_submenu_page( 'sportspress', __( 'Competitions', 'sportspress' ), __( 'Competitions', 'sportspress' ), 'manage_sportspress', 'edit-tags.php?taxonomy=sp_league'); add_submenu_page( 'sportspress', __( 'Leagues', 'sportspress' ), __( 'Leagues', 'sportspress' ), 'manage_sportspress', 'edit-tags.php?taxonomy=sp_league');
} }
/** /**
@@ -195,26 +195,26 @@ class SP_Admin_Menus {
$menu[ $separator_position ] = array( '', 'read', 'separator-sportspress', '', 'wp-menu-separator sportspress' ); $menu[ $separator_position ] = array( '', 'read', 'separator-sportspress', '', 'wp-menu-separator sportspress' );
endif; endif;
// Remove "Competitions" and "Seasons" links from Events submenu // Remove "Leagues" and "Seasons" links from Events submenu
if ( isset( $submenu['edit.php?post_type=sp_event'] ) ): if ( isset( $submenu['edit.php?post_type=sp_event'] ) ):
$submenu['edit.php?post_type=sp_event'] = array_filter( $submenu['edit.php?post_type=sp_event'], array( $this, 'remove_leagues' ) ); $submenu['edit.php?post_type=sp_event'] = array_filter( $submenu['edit.php?post_type=sp_event'], array( $this, 'remove_leagues' ) );
$submenu['edit.php?post_type=sp_event'] = array_filter( $submenu['edit.php?post_type=sp_event'], array( $this, 'remove_seasons' ) ); $submenu['edit.php?post_type=sp_event'] = array_filter( $submenu['edit.php?post_type=sp_event'], array( $this, 'remove_seasons' ) );
endif; endif;
// Remove "Venues", "Competitions" and "Seasons" links from Teams submenu // Remove "Venues", "Leagues" and "Seasons" links from Teams submenu
if ( isset( $submenu['edit.php?post_type=sp_team'] ) ): if ( isset( $submenu['edit.php?post_type=sp_team'] ) ):
$submenu['edit.php?post_type=sp_team'] = array_filter( $submenu['edit.php?post_type=sp_team'], array( $this, 'remove_venues' ) ); $submenu['edit.php?post_type=sp_team'] = array_filter( $submenu['edit.php?post_type=sp_team'], array( $this, 'remove_venues' ) );
$submenu['edit.php?post_type=sp_team'] = array_filter( $submenu['edit.php?post_type=sp_team'], array( $this, 'remove_leagues' ) ); $submenu['edit.php?post_type=sp_team'] = array_filter( $submenu['edit.php?post_type=sp_team'], array( $this, 'remove_leagues' ) );
$submenu['edit.php?post_type=sp_team'] = array_filter( $submenu['edit.php?post_type=sp_team'], array( $this, 'remove_seasons' ) ); $submenu['edit.php?post_type=sp_team'] = array_filter( $submenu['edit.php?post_type=sp_team'], array( $this, 'remove_seasons' ) );
endif; endif;
// Remove "Competitions" and "Seasons" links from Players submenu // Remove "Leagues" and "Seasons" links from Players submenu
if ( isset( $submenu['edit.php?post_type=sp_player'] ) ): if ( isset( $submenu['edit.php?post_type=sp_player'] ) ):
$submenu['edit.php?post_type=sp_player'] = array_filter( $submenu['edit.php?post_type=sp_player'], array( $this, 'remove_leagues' ) ); $submenu['edit.php?post_type=sp_player'] = array_filter( $submenu['edit.php?post_type=sp_player'], array( $this, 'remove_leagues' ) );
$submenu['edit.php?post_type=sp_player'] = array_filter( $submenu['edit.php?post_type=sp_player'], array( $this, 'remove_seasons' ) ); $submenu['edit.php?post_type=sp_player'] = array_filter( $submenu['edit.php?post_type=sp_player'], array( $this, 'remove_seasons' ) );
endif; endif;
// Remove "Competitions" and "Seasons" links from Staff submenu // Remove "Leagues" and "Seasons" links from Staff submenu
if ( isset( $submenu['edit.php?post_type=sp_staff'] ) ): if ( isset( $submenu['edit.php?post_type=sp_staff'] ) ):
$submenu['edit.php?post_type=sp_staff'] = array_filter( $submenu['edit.php?post_type=sp_staff'], array( $this, 'remove_leagues' ) ); $submenu['edit.php?post_type=sp_staff'] = array_filter( $submenu['edit.php?post_type=sp_staff'], array( $this, 'remove_leagues' ) );
$submenu['edit.php?post_type=sp_staff'] = array_filter( $submenu['edit.php?post_type=sp_staff'], array( $this, 'remove_seasons' ) ); $submenu['edit.php?post_type=sp_staff'] = array_filter( $submenu['edit.php?post_type=sp_staff'], array( $this, 'remove_seasons' ) );
@@ -250,7 +250,7 @@ class SP_Admin_Menus {
} }
public function remove_leagues( $arr = array() ) { public function remove_leagues( $arr = array() ) {
return $arr[0] != __( 'Competitions', 'sportspress' ); return $arr[0] != __( 'Leagues', 'sportspress' );
} }
public function remove_positions( $arr = array() ) { public function remove_positions( $arr = array() ) {

View File

@@ -26,7 +26,7 @@ class SP_Admin_Permalink_Settings {
array( 'venue', __( 'Venues', 'sportspress' ) ), array( 'venue', __( 'Venues', 'sportspress' ) ),
array( 'calendar', __( 'Calendars', 'sportspress' ) ), array( 'calendar', __( 'Calendars', 'sportspress' ) ),
array( 'team', __( 'Teams', 'sportspress' ) ), array( 'team', __( 'Teams', 'sportspress' ) ),
array( 'league', __( 'Competitions', 'sportspress' ) ), array( 'league', __( 'Leagues', 'sportspress' ) ),
array( 'season', __( 'Seasons', 'sportspress' ) ), array( 'season', __( 'Seasons', 'sportspress' ) ),
array( 'table', __( 'League Tables', 'sportspress' ) ), array( 'table', __( 'League Tables', 'sportspress' ) ),
array( 'player', __( 'Players', 'sportspress' ) ), array( 'player', __( 'Players', 'sportspress' ) ),

View File

@@ -40,7 +40,7 @@ class SP_Admin_Sample_Data {
// Terms to insert // Terms to insert
$taxonomies = array(); $taxonomies = array();
// Competitions // Leagues
$taxonomies['sp_league'] = array( _x( 'Primary League', 'example', 'sportspress' ), _x( 'Secondary League', 'example', 'sportspress' ) ); $taxonomies['sp_league'] = array( _x( 'Primary League', 'example', 'sportspress' ), _x( 'Secondary League', 'example', 'sportspress' ) );
// Seasons // Seasons

View File

@@ -280,7 +280,7 @@ class SP_Admin_Setup_Wizard {
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row"><?php _e( 'Main Competition', 'sportspress' ); ?> <i class="dashicons dashicons-editor-help sp-desc-tip" title="<?php _e( 'The name of a league or division.', 'sportspress' ); ?>"></i></th> <th scope="row"><?php _e( 'Main League', 'sportspress' ); ?> <i class="dashicons dashicons-editor-help sp-desc-tip" title="<?php _e( 'The name of a league or division.', 'sportspress' ); ?>"></i></th>
<td> <td>
<input name="league" type="text" class="widefat" value="<?php _ex( 'Primary League', 'example', 'sportspress' ); ?>"> <input name="league" type="text" class="widefat" value="<?php _ex( 'Primary League', 'example', 'sportspress' ); ?>">
</td> </td>

View File

@@ -479,7 +479,7 @@ if ( class_exists( 'WP_Importer' ) ) {
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row"><label><?php _e( 'Competition', 'sportspress' ); ?></label><br/></th> <th scope="row"><label><?php _e( 'League', 'sportspress' ); ?></label><br/></th>
<td><?php <td><?php
$args = array( $args = array(
'taxonomy' => 'sp_league', 'taxonomy' => 'sp_league',

View File

@@ -287,7 +287,7 @@ if ( class_exists( 'WP_Importer' ) ) {
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row"><label><?php _e( 'Competition', 'sportspress' ); ?></label><br/></th> <th scope="row"><label><?php _e( 'League', 'sportspress' ); ?></label><br/></th>
<td><?php <td><?php
$args = array( $args = array(
'taxonomy' => 'sp_league', 'taxonomy' => 'sp_league',

View File

@@ -27,7 +27,7 @@ if ( class_exists( 'WP_Importer' ) ) {
'post_title' => __( 'Name', 'sportspress' ), 'post_title' => __( 'Name', 'sportspress' ),
'sp_position' => __( 'Positions', 'sportspress' ), 'sp_position' => __( 'Positions', 'sportspress' ),
'sp_team' => __( 'Teams', 'sportspress' ), 'sp_team' => __( 'Teams', 'sportspress' ),
'sp_league' => __( 'Competitions', 'sportspress' ), 'sp_league' => __( 'Leagues', 'sportspress' ),
'sp_season' => __( 'Seasons', 'sportspress' ), 'sp_season' => __( 'Seasons', 'sportspress' ),
'sp_nationality' => __( 'Nationality', 'sportspress' ), 'sp_nationality' => __( 'Nationality', 'sportspress' ),
); );

View File

@@ -26,7 +26,7 @@ if ( class_exists( 'WP_Importer' ) ) {
'post_title' => __( 'Name', 'sportspress' ), 'post_title' => __( 'Name', 'sportspress' ),
'sp_role' => __( 'Jobs', 'sportspress' ), 'sp_role' => __( 'Jobs', 'sportspress' ),
'sp_team' => __( 'Teams', 'sportspress' ), 'sp_team' => __( 'Teams', 'sportspress' ),
'sp_league' => __( 'Competitions', 'sportspress' ), 'sp_league' => __( 'Leagues', 'sportspress' ),
'sp_season' => __( 'Seasons', 'sportspress' ), 'sp_season' => __( 'Seasons', 'sportspress' ),
'sp_nationality' => __( 'Nationality', 'sportspress' ), 'sp_nationality' => __( 'Nationality', 'sportspress' ),
); );

View File

@@ -24,7 +24,7 @@ if ( class_exists( 'WP_Importer' ) ) {
$this->import_label = __( 'Import Teams', 'sportspress' ); $this->import_label = __( 'Import Teams', 'sportspress' );
$this->columns = array( $this->columns = array(
'post_title' => __( 'Name', 'sportspress' ), 'post_title' => __( 'Name', 'sportspress' ),
'sp_league' => __( 'Competitions', 'sportspress' ), 'sp_league' => __( 'Leagues', 'sportspress' ),
'sp_season' => __( 'Seasons', 'sportspress' ), 'sp_season' => __( 'Seasons', 'sportspress' ),
'sp_url' => __( 'Site URL', 'sportspress' ), 'sp_url' => __( 'Site URL', 'sportspress' ),
'sp_abbreviation' => __( 'Abbreviation', 'sportspress' ), 'sp_abbreviation' => __( 'Abbreviation', 'sportspress' ),

View File

@@ -46,7 +46,7 @@ class SP_Admin_CPT_Calendar extends SP_Admin_CPT {
$columns = array_merge( array( $columns = array_merge( array(
'cb' => '<input type="checkbox" />', 'cb' => '<input type="checkbox" />',
'title' => __( 'Title', 'sportspress' ), 'title' => __( 'Title', 'sportspress' ),
'sp_league' => __( 'Competition', 'sportspress' ), 'sp_league' => __( 'League', 'sportspress' ),
'sp_season' => __( 'Season', 'sportspress' ), 'sp_season' => __( 'Season', 'sportspress' ),
'sp_venue' => __( 'Venue', 'sportspress' ), 'sp_venue' => __( 'Venue', 'sportspress' ),
'sp_team' => __( 'Team', 'sportspress' ), 'sp_team' => __( 'Team', 'sportspress' ),

View File

@@ -119,7 +119,7 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT {
'date' => __( 'Date', 'sportspress' ), 'date' => __( 'Date', 'sportspress' ),
'sp_time' => __( 'Time', 'sportspress' ), 'sp_time' => __( 'Time', 'sportspress' ),
'sp_team' => __( 'Teams', 'sportspress' ), 'sp_team' => __( 'Teams', 'sportspress' ),
'sp_league' => __( 'Competition', 'sportspress' ), 'sp_league' => __( 'League', 'sportspress' ),
'sp_season' => __( 'Season', 'sportspress' ), 'sp_season' => __( 'Season', 'sportspress' ),
'sp_venue' => __( 'Venue', 'sportspress' ), 'sp_venue' => __( 'Venue', 'sportspress' ),
'sp_day' => __( 'Match Day', 'sportspress' ), 'sp_day' => __( 'Match Day', 'sportspress' ),

View File

@@ -46,7 +46,7 @@ class SP_Admin_CPT_List extends SP_Admin_CPT {
$columns = array_merge( array( $columns = array_merge( array(
'cb' => '<input type="checkbox" />', 'cb' => '<input type="checkbox" />',
'title' => __( 'Title', 'sportspress' ), 'title' => __( 'Title', 'sportspress' ),
'sp_league' => __( 'Competition', 'sportspress' ), 'sp_league' => __( 'League', 'sportspress' ),
'sp_season' => __( 'Season', 'sportspress' ), 'sp_season' => __( 'Season', 'sportspress' ),
'sp_team' => __( 'Team', 'sportspress' ), 'sp_team' => __( 'Team', 'sportspress' ),
'sp_player' => __( 'Players', 'sportspress' ), 'sp_player' => __( 'Players', 'sportspress' ),

View File

@@ -74,7 +74,7 @@ class SP_Admin_CPT_Player extends SP_Admin_CPT {
'title' => null, 'title' => null,
'sp_position' => __( 'Positions', 'sportspress' ), 'sp_position' => __( 'Positions', 'sportspress' ),
'sp_team' => __( 'Teams', 'sportspress' ), 'sp_team' => __( 'Teams', 'sportspress' ),
'sp_league' => __( 'Competitions', 'sportspress' ), 'sp_league' => __( 'Leagues', 'sportspress' ),
'sp_season' => __( 'Seasons', 'sportspress' ), 'sp_season' => __( 'Seasons', 'sportspress' ),
), $existing_columns, array( ), $existing_columns, array(
'title' => __( 'Name', 'sportspress' ) 'title' => __( 'Name', 'sportspress' )

View File

@@ -64,7 +64,7 @@ class SP_Admin_CPT_Staff extends SP_Admin_CPT {
'title' => null, 'title' => null,
'sp_role' => __( 'Job', 'sportspress' ), 'sp_role' => __( 'Job', 'sportspress' ),
'sp_team' => __( 'Teams', 'sportspress' ), 'sp_team' => __( 'Teams', 'sportspress' ),
'sp_league' => __( 'Competitions', 'sportspress' ), 'sp_league' => __( 'Leagues', 'sportspress' ),
'sp_season' => __( 'Seasons', 'sportspress' ), 'sp_season' => __( 'Seasons', 'sportspress' ),
), $existing_columns, array( ), $existing_columns, array(
'title' => __( 'Name', 'sportspress' ) 'title' => __( 'Name', 'sportspress' )

View File

@@ -46,7 +46,7 @@ class SP_Admin_CPT_Table extends SP_Admin_CPT {
$columns = array_merge( array( $columns = array_merge( array(
'cb' => '<input type="checkbox" />', 'cb' => '<input type="checkbox" />',
'title' => __( 'Title', 'sportspress' ), 'title' => __( 'Title', 'sportspress' ),
'sp_league' => __( 'Competition', 'sportspress' ), 'sp_league' => __( 'League', 'sportspress' ),
'sp_season' => __( 'Season', 'sportspress' ), 'sp_season' => __( 'Season', 'sportspress' ),
'sp_team' => __( 'Teams', 'sportspress' ), 'sp_team' => __( 'Teams', 'sportspress' ),
), $existing_columns ); ), $existing_columns );

View File

@@ -64,7 +64,7 @@ class SP_Admin_CPT_Team extends SP_Admin_CPT {
'title' => null, 'title' => null,
'sp_url' => __( 'URL', 'sportspress' ), 'sp_url' => __( 'URL', 'sportspress' ),
'sp_abbreviation' => __( 'Abbreviation', 'sportspress' ), 'sp_abbreviation' => __( 'Abbreviation', 'sportspress' ),
'sp_league' => __( 'Competitions', 'sportspress' ), 'sp_league' => __( 'Leagues', 'sportspress' ),
'sp_season' => __( 'Seasons', 'sportspress' ), 'sp_season' => __( 'Seasons', 'sportspress' ),
), $existing_columns, array( ), $existing_columns, array(
'title' => __( 'Team', 'sportspress' ), 'title' => __( 'Team', 'sportspress' ),

View File

@@ -47,7 +47,7 @@ class SP_Meta_Box_Calendar_Columns {
$columns['results'] = __( 'Results', 'sportspress' ); $columns['results'] = __( 'Results', 'sportspress' );
} }
$columns['league'] = __( 'Competition', 'sportspress' ); $columns['league'] = __( 'League', 'sportspress' );
$columns['season'] = __( 'Season', 'sportspress' ); $columns['season'] = __( 'Season', 'sportspress' );
$columns['venue'] = __( 'Venue', 'sportspress' ); $columns['venue'] = __( 'Venue', 'sportspress' );
$columns['article'] = __( 'Article', 'sportspress' ); $columns['article'] = __( 'Article', 'sportspress' );

View File

@@ -87,7 +87,7 @@ class SP_Meta_Box_Calendar_Data {
<?php if ( ! is_array( $usecolumns ) || in_array( 'league', $usecolumns ) ) { ?> <?php if ( ! is_array( $usecolumns ) || in_array( 'league', $usecolumns ) ) { ?>
<th class="column-league"> <th class="column-league">
<label for="sp_columns_league"> <label for="sp_columns_league">
<?php _e( 'Competition', 'sportspress' ); ?> <?php _e( 'League', 'sportspress' ); ?>
</label> </label>
</th> </th>
<?php } ?> <?php } ?>

View File

@@ -131,14 +131,14 @@ class SP_Meta_Box_Player_Details {
?></p> ?></p>
<?php if ( taxonomy_exists( 'sp_league' ) ) { ?> <?php if ( taxonomy_exists( 'sp_league' ) ) { ?>
<p><strong><?php _e( 'Competitions', 'sportspress' ); ?></strong></p> <p><strong><?php _e( 'Leagues', 'sportspress' ); ?></strong></p>
<p><?php <p><?php
$args = array( $args = array(
'taxonomy' => 'sp_league', 'taxonomy' => 'sp_league',
'name' => 'tax_input[sp_league][]', 'name' => 'tax_input[sp_league][]',
'selected' => $league_ids, 'selected' => $league_ids,
'values' => 'term_id', 'values' => 'term_id',
'placeholder' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Competitions', 'sportspress' ) ), 'placeholder' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Leagues', 'sportspress' ) ),
'class' => 'widefat', 'class' => 'widefat',
'property' => 'multiple', 'property' => 'multiple',
'chosen' => true, 'chosen' => true,

View File

@@ -119,14 +119,14 @@ class SP_Meta_Box_Staff_Details {
sp_dropdown_pages( $args ); sp_dropdown_pages( $args );
?></p> ?></p>
<p><strong><?php _e( 'Competitions', 'sportspress' ); ?></strong></p> <p><strong><?php _e( 'Leagues', 'sportspress' ); ?></strong></p>
<p><?php <p><?php
$args = array( $args = array(
'taxonomy' => 'sp_league', 'taxonomy' => 'sp_league',
'name' => 'tax_input[sp_league][]', 'name' => 'tax_input[sp_league][]',
'selected' => $league_ids, 'selected' => $league_ids,
'values' => 'term_id', 'values' => 'term_id',
'placeholder' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Competitions', 'sportspress' ) ), 'placeholder' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Leagues', 'sportspress' ) ),
'class' => 'widefat', 'class' => 'widefat',
'property' => 'multiple', 'property' => 'multiple',
'chosen' => true, 'chosen' => true,

View File

@@ -57,14 +57,14 @@ class SP_Meta_Box_Team_Details {
?> ?>
<?php if ( taxonomy_exists( 'sp_league' ) ) { ?> <?php if ( taxonomy_exists( 'sp_league' ) ) { ?>
<p><strong><?php _e( 'Competitions', 'sportspress' ); ?></strong></p> <p><strong><?php _e( 'Leagues', 'sportspress' ); ?></strong></p>
<p><?php <p><?php
$args = array( $args = array(
'taxonomy' => 'sp_league', 'taxonomy' => 'sp_league',
'name' => 'tax_input[sp_league][]', 'name' => 'tax_input[sp_league][]',
'selected' => $league_ids, 'selected' => $league_ids,
'values' => 'term_id', 'values' => 'term_id',
'placeholder' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Competitions', 'sportspress' ) ), 'placeholder' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Leagues', 'sportspress' ) ),
'class' => 'widefat', 'class' => 'widefat',
'property' => 'multiple', 'property' => 'multiple',
'chosen' => true, 'chosen' => true,

View File

@@ -58,7 +58,7 @@ class SP_Meta_Box_Team_Lists {
<?php _e( 'Players', 'sportspress' ); ?> <?php _e( 'Players', 'sportspress' ); ?>
</th> </th>
<th class="column-league"> <th class="column-league">
<?php _e( 'Competition', 'sportspress' ); ?> <?php _e( 'League', 'sportspress' ); ?>
</th> </th>
<th class="column-season"> <th class="column-season">
<?php _e( 'Season', 'sportspress' ); ?> <?php _e( 'Season', 'sportspress' ); ?>

View File

@@ -58,7 +58,7 @@ class SP_Meta_Box_Team_Staff {
<?php _e( 'Job', 'sportspress' ); ?> <?php _e( 'Job', 'sportspress' ); ?>
</th> </th>
<th class="column-league"> <th class="column-league">
<?php _e( 'Competition', 'sportspress' ); ?> <?php _e( 'League', 'sportspress' ); ?>
</th> </th>
<th class="column-season"> <th class="column-season">
<?php _e( 'Season', 'sportspress' ); ?> <?php _e( 'Season', 'sportspress' ); ?>

View File

@@ -58,7 +58,7 @@ class SP_Meta_Box_Team_Tables {
<?php _e( 'Teams', 'sportspress' ); ?> <?php _e( 'Teams', 'sportspress' ); ?>
</th> </th>
<th class="column-league"> <th class="column-league">
<?php _e( 'Competition', 'sportspress' ); ?> <?php _e( 'League', 'sportspress' ); ?>
</th> </th>
<th class="column-season"> <th class="column-season">
<?php _e( 'Season', 'sportspress' ); ?> <?php _e( 'Season', 'sportspress' ); ?>

View File

@@ -107,7 +107,7 @@ class SP_Settings_Players extends SP_Settings_Page {
), ),
array( array(
'desc' => __( 'Competitions', 'sportspress' ), 'desc' => __( 'Leagues', 'sportspress' ),
'id' => 'sportspress_player_show_leagues', 'id' => 'sportspress_player_show_leagues',
'default' => 'no', 'default' => 'no',
'type' => 'checkbox', 'type' => 'checkbox',

View File

@@ -331,7 +331,7 @@ class SP_Settings_Status extends SP_Settings_Page {
<tbody> <tbody>
<tr> <tr>
<td><?php _e( 'Competitions', 'sportspress' ); ?>:</td> <td><?php _e( 'Leagues', 'sportspress' ); ?>:</td>
<td><?php <td><?php
$display_terms = array(); $display_terms = array();
$terms = get_terms( 'sp_league', array( 'hide_empty' => 0 ) ); $terms = get_terms( 'sp_league', array( 'hide_empty' => 0 ) );

View File

@@ -293,7 +293,7 @@
<tbody> <tbody>
<tr> <tr>
<td><?php _e( 'Competitions', 'sportspress' ); ?>:</td> <td><?php _e( 'Leagues', 'sportspress' ); ?>:</td>
<td><?php <td><?php
$display_terms = array(); $display_terms = array();
$terms = get_terms( 'sp_league', array( 'hide_empty' => 0 ) ); $terms = get_terms( 'sp_league', array( 'hide_empty' => 0 ) );

View File

@@ -218,7 +218,7 @@ class SP_AJAX {
</p> </p>
<p> <p>
<label> <label>
<?php _e( 'Competition:', 'sportspress' ); ?> <?php _e( 'League:', 'sportspress' ); ?>
<?php <?php
$args = array( $args = array(
'taxonomy' => 'sp_league', 'taxonomy' => 'sp_league',
@@ -335,7 +335,7 @@ class SP_AJAX {
</p> </p>
<p> <p>
<label> <label>
<?php _e( 'Competition:', 'sportspress' ); ?> <?php _e( 'League:', 'sportspress' ); ?>
<?php <?php
$args = array( $args = array(
'taxonomy' => 'sp_league', 'taxonomy' => 'sp_league',
@@ -427,7 +427,7 @@ class SP_AJAX {
'event' => __( 'Event', 'sportspress' ), 'event' => __( 'Event', 'sportspress' ),
'teams' => __( 'Teams', 'sportspress' ), 'teams' => __( 'Teams', 'sportspress' ),
'time' => __( 'Time', 'sportspress' ), 'time' => __( 'Time', 'sportspress' ),
'league' => __( 'Competition', 'sportspress' ), 'league' => __( 'League', 'sportspress' ),
'season' => __( 'Season', 'sportspress' ), 'season' => __( 'Season', 'sportspress' ),
'venue' => __( 'Venue', 'sportspress' ), 'venue' => __( 'Venue', 'sportspress' ),
'article' => __( 'Article', 'sportspress' ), 'article' => __( 'Article', 'sportspress' ),
@@ -498,7 +498,7 @@ class SP_AJAX {
</p> </p>
<p> <p>
<label> <label>
<?php _e( 'Competition:', 'sportspress' ); ?> <?php _e( 'League:', 'sportspress' ); ?>
<?php <?php
$args = array( $args = array(
'taxonomy' => 'sp_league', 'taxonomy' => 'sp_league',

View File

@@ -36,10 +36,10 @@ class SP_Post_types {
if ( apply_filters( 'sportspress_has_leagues', true ) ): if ( apply_filters( 'sportspress_has_leagues', true ) ):
$labels = array( $labels = array(
'name' => __( 'Competitions', 'sportspress' ), 'name' => __( 'Leagues', 'sportspress' ),
'singular_name' => __( 'Competition', 'sportspress' ), 'singular_name' => __( 'League', 'sportspress' ),
'all_items' => __( 'All', 'sportspress' ), 'all_items' => __( 'All', 'sportspress' ),
'edit_item' => __( 'Edit Competition', 'sportspress' ), 'edit_item' => __( 'Edit League', 'sportspress' ),
'view_item' => __( 'View', 'sportspress' ), 'view_item' => __( 'View', 'sportspress' ),
'update_item' => __( 'Update', 'sportspress' ), 'update_item' => __( 'Update', 'sportspress' ),
'add_new_item' => __( 'Add New', 'sportspress' ), 'add_new_item' => __( 'Add New', 'sportspress' ),
@@ -50,7 +50,7 @@ class SP_Post_types {
'not_found' => __( 'No results found.', 'sportspress' ), 'not_found' => __( 'No results found.', 'sportspress' ),
); );
$args = apply_filters( 'sportspress_register_taxonomy_league', array( $args = apply_filters( 'sportspress_register_taxonomy_league', array(
'label' => __( 'Competitions', 'sportspress' ), 'label' => __( 'Leagues', 'sportspress' ),
'labels' => $labels, 'labels' => $labels,
'public' => true, 'public' => true,
'show_ui' => $show, 'show_ui' => $show,

View File

@@ -1440,7 +1440,7 @@ function sp_get_text_options() {
__( 'Box Score', 'sportspress' ), __( 'Box Score', 'sportspress' ),
__( 'Canceled', 'sportspress' ), __( 'Canceled', 'sportspress' ),
__( 'Career Total', 'sportspress' ), __( 'Career Total', 'sportspress' ),
__( 'Competition', 'sportspress' ), __( 'League', 'sportspress' ),
__( 'Current Team', 'sportspress' ), __( 'Current Team', 'sportspress' ),
__( 'Date', 'sportspress' ), __( 'Date', 'sportspress' ),
__( 'Defense', 'sportspress' ), __( 'Defense', 'sportspress' ),

View File

@@ -144,7 +144,7 @@ endif;
} }
if ( sp_column_active( $usecolumns, 'league' ) ) 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' ) ) if ( sp_column_active( $usecolumns, 'season' ) )
echo '<th class="data-season">' . __( 'Season', 'sportspress' ) . '</th>'; echo '<th class="data-season">' . __( 'Season', 'sportspress' ) . '</th>';

View File

@@ -104,7 +104,7 @@ if ( $show_leagues ):
foreach ( $leagues as $league ) { foreach ( $leagues as $league ) {
$terms[] = $league->name; $terms[] = $league->name;
} }
$data[ __( 'Competitions', 'sportspress' ) ] = implode( ', ', $terms ); $data[ __( 'Leagues', 'sportspress' ) ] = implode( ', ', $terms );
endif; endif;
endif; endif;

View File

@@ -104,7 +104,7 @@ if ( $show_leagues ):
foreach ( $leagues as $league ) { foreach ( $leagues as $league ) {
$terms[] = $league->name; $terms[] = $league->name;
} }
$data[ __( 'Competitions', 'sportspress' ) ] = implode( ', ', $terms ); $data[ __( 'Leagues', 'sportspress' ) ] = implode( ', ', $terms );
endif; endif;
endif; endif;

View File

@@ -1,6 +1,6 @@
<?php <?php
/** /**
* Player Statistics for Single Competition * Player Statistics for Single League
* *
* @author ThemeBoy * @author ThemeBoy
* @category Admin * @category Admin

View File

@@ -21,7 +21,7 @@ if ( $terms ):
foreach ( $terms as $term ): foreach ( $terms as $term ):
$leagues[] = $term->name; $leagues[] = $term->name;
endforeach; endforeach;
$data[ __( 'Competitions', 'sportspress' ) ] = implode( ', ', $leagues ); $data[ __( 'Leagues', 'sportspress' ) ] = implode( ', ', $leagues );
endif; endif;
$terms = get_the_terms( $id, 'sp_season' ); $terms = get_the_terms( $id, 'sp_season' );

View File

@@ -6,7 +6,6 @@
<key name="Birthday"/> <key name="Birthday"/>
<key name="Box Score"/> <key name="Box Score"/>
<key name="Canceled"/> <key name="Canceled"/>
<key name="Competition"/>
<key name="Current Team"/> <key name="Current Team"/>
<key name="Current Teams"/> <key name="Current Teams"/>
<key name="Date"/> <key name="Date"/>
@@ -17,6 +16,7 @@
<key name="Excerpt"/> <key name="Excerpt"/>
<key name="Fixtures"/> <key name="Fixtures"/>
<key name="Full Time"/> <key name="Full Time"/>
<key name="League"/>
<key name="League Tables"/> <key name="League Tables"/>
<key name="Logos"/> <key name="Logos"/>
<key name="Match Day"/> <key name="Match Day"/>