Add option to select if calendar links to teams
This commit is contained in:
@@ -32,7 +32,7 @@ class SP_Meta_Box_Event_Teams {
|
||||
'name' => 'sp_team[]',
|
||||
'class' => 'sportspress-pages',
|
||||
'show_option_none' => sprintf( __( '— None —', 'sportspress' ), 'Team' ),
|
||||
'selected' => $team
|
||||
'selected' => $team,
|
||||
);
|
||||
wp_dropdown_pages( $args );
|
||||
?>
|
||||
|
||||
@@ -101,6 +101,14 @@ class SP_Settings_Events extends SP_Settings_Page {
|
||||
|
||||
array( 'title' => __( 'Calendars', 'sportspress' ), 'type' => 'title', 'id' => 'calendar_options' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Teams', 'sportspress' ),
|
||||
'desc' => __( 'Link teams', 'sportspress' ),
|
||||
'id' => 'sportspress_calendar_link_teams',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Pagination', 'sportspress' ),
|
||||
'desc' => __( 'Paginate', 'sportspress' ),
|
||||
|
||||
Reference in New Issue
Block a user