All leagues and seasons option to league table
This commit is contained in:
@@ -25,13 +25,14 @@ class SP_Meta_Box_Table_Details {
|
|||||||
?>
|
?>
|
||||||
<div>
|
<div>
|
||||||
<p><strong><?php _e( 'League', 'sportspress' ); ?></strong></p>
|
<p><strong><?php _e( 'League', 'sportspress' ); ?></strong></p>
|
||||||
<p>
|
<p class="sp-tab-select">
|
||||||
<?php
|
<?php
|
||||||
$args = array(
|
$args = array(
|
||||||
'taxonomy' => 'sp_league',
|
'taxonomy' => 'sp_league',
|
||||||
'name' => 'sp_league',
|
'name' => 'sp_league',
|
||||||
|
'show_option_all' => __( 'All', 'sportspress' ),
|
||||||
'selected' => $league_id,
|
'selected' => $league_id,
|
||||||
'values' => 'term_id'
|
'values' => 'term_id',
|
||||||
);
|
);
|
||||||
if ( ! sp_dropdown_taxonomies( $args ) ):
|
if ( ! sp_dropdown_taxonomies( $args ) ):
|
||||||
sp_taxonomy_adder( 'sp_league', 'sp_team', __( 'Add New', 'sportspress' ) );
|
sp_taxonomy_adder( 'sp_league', 'sp_team', __( 'Add New', 'sportspress' ) );
|
||||||
@@ -44,8 +45,9 @@ class SP_Meta_Box_Table_Details {
|
|||||||
$args = array(
|
$args = array(
|
||||||
'taxonomy' => 'sp_season',
|
'taxonomy' => 'sp_season',
|
||||||
'name' => 'sp_season',
|
'name' => 'sp_season',
|
||||||
|
'show_option_all' => __( 'All', 'sportspress' ),
|
||||||
'selected' => $season_id,
|
'selected' => $season_id,
|
||||||
'values' => 'term_id'
|
'values' => 'term_id',
|
||||||
);
|
);
|
||||||
if ( ! sp_dropdown_taxonomies( $args ) ):
|
if ( ! sp_dropdown_taxonomies( $args ) ):
|
||||||
sp_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New', 'sportspress' ) );
|
sp_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New', 'sportspress' ) );
|
||||||
@@ -54,7 +56,7 @@ class SP_Meta_Box_Table_Details {
|
|||||||
</p>
|
</p>
|
||||||
<p><strong><?php _e( 'Teams', 'sportspress' ); ?></strong></p>
|
<p><strong><?php _e( 'Teams', 'sportspress' ); ?></strong></p>
|
||||||
<?php
|
<?php
|
||||||
sp_post_checklist( $post->ID, 'sp_team', 'block', 'sp_season' );
|
sp_post_checklist( $post->ID, 'sp_team', 'block', array( 'sp_league', 'sp_season' ) );
|
||||||
sp_post_adder( 'sp_team', __( 'Add New', 'sportspress' ) );
|
sp_post_adder( 'sp_team', __( 'Add New', 'sportspress' ) );
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user