Make hiding child positions an option
This commit is contained in:
@@ -170,7 +170,7 @@ class SP_Meta_Box_Event_Performance {
|
|||||||
'class' => 'sp-position',
|
'class' => 'sp-position',
|
||||||
'property' => 'multiple',
|
'property' => 'multiple',
|
||||||
'chosen' => true,
|
'chosen' => true,
|
||||||
'include_children' => false,
|
'include_children' => ( 'no' == get_option( 'sportspress_event_hide_child_positions', 'no' ) ),
|
||||||
);
|
);
|
||||||
sp_dropdown_taxonomies( $args );
|
sp_dropdown_taxonomies( $args );
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -301,6 +301,14 @@ class SP_Settings_Events extends SP_Settings_Page {
|
|||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
),
|
),
|
||||||
|
|
||||||
|
array(
|
||||||
|
'title' => __( 'Positions', 'sportspress' ),
|
||||||
|
'desc' => __( 'Top-level only', 'sportspress' ),
|
||||||
|
'id' => 'sportspress_event_hide_child_positions',
|
||||||
|
'default' => 'no',
|
||||||
|
'type' => 'checkbox',
|
||||||
|
),
|
||||||
|
|
||||||
array(
|
array(
|
||||||
'title' => __( 'Players', 'sportspress' ),
|
'title' => __( 'Players', 'sportspress' ),
|
||||||
'desc' => __( 'Display squad numbers', 'sportspress' ),
|
'desc' => __( 'Display squad numbers', 'sportspress' ),
|
||||||
|
|||||||
@@ -77,6 +77,7 @@
|
|||||||
],
|
],
|
||||||
"options": {
|
"options": {
|
||||||
"event_teams" : "2",
|
"event_teams" : "2",
|
||||||
|
"sportspress_event_hide_child_positions" : "yes",
|
||||||
"event_show_players" : "yes",
|
"event_show_players" : "yes",
|
||||||
"event_show_extras" : "no",
|
"event_show_extras" : "no",
|
||||||
"event_show_total" : "yes",
|
"event_show_total" : "yes",
|
||||||
|
|||||||
Reference in New Issue
Block a user