Remove "All" option from division and team selectors
This commit is contained in:
@@ -51,7 +51,6 @@ function sp_event_team_meta( $post ) {
|
|||||||
'name' => 'sp_team[]',
|
'name' => 'sp_team[]',
|
||||||
'class' => 'sportspress-pages',
|
'class' => 'sportspress-pages',
|
||||||
'show_option_none' => sprintf( __( 'Select %s' ), 'Team' ),
|
'show_option_none' => sprintf( __( 'Select %s' ), 'Team' ),
|
||||||
'option_none_value' => 0,
|
|
||||||
'selected' => $teams[ $i ]
|
'selected' => $teams[ $i ]
|
||||||
);
|
);
|
||||||
wp_dropdown_pages( $args );
|
wp_dropdown_pages( $args );
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ function sp_list_player_meta( $post ) {
|
|||||||
<p class="sp-tab-select">
|
<p class="sp-tab-select">
|
||||||
<?php
|
<?php
|
||||||
$args = array(
|
$args = array(
|
||||||
'show_option_all' => sprintf( __( 'All %s', 'sportspress' ), __( 'Divisions', 'sportspress' ) ),
|
'show_option_none' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Division', 'sportspress' ) ),
|
||||||
'taxonomy' => 'sp_div',
|
'taxonomy' => 'sp_div',
|
||||||
'name' => 'sp_div',
|
'name' => 'sp_div',
|
||||||
'selected' => $division_id
|
'selected' => $division_id
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ function sp_table_team_meta( $post ) {
|
|||||||
<p class="sp-tab-select">
|
<p class="sp-tab-select">
|
||||||
<?php
|
<?php
|
||||||
$args = array(
|
$args = array(
|
||||||
'show_option_all' => sprintf( __( 'All %s', 'sportspress' ), __( 'Divisions', 'sportspress' ) ),
|
'show_option_none' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Division', 'sportspress' ) ),
|
||||||
'taxonomy' => 'sp_div',
|
'taxonomy' => 'sp_div',
|
||||||
'name' => 'sp_div',
|
'name' => 'sp_div',
|
||||||
'selected' => $division_id
|
'selected' => $division_id
|
||||||
|
|||||||
@@ -98,8 +98,7 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.sp-data-table input[type="text"],
|
.sp-data-table input[type="text"],
|
||||||
.sp-data-table input[type="number"],
|
.sp-data-table input[type="number"] {
|
||||||
.sp-data-table select {
|
|
||||||
min-width: 14px;
|
min-width: 14px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user