Add classes and filters to team dropdown

This commit is contained in:
Brian Miyaji
2015-09-23 21:39:45 +10:00
parent 56a3af544b
commit b5ee62610e
4 changed files with 11 additions and 7 deletions

View File

@@ -33,7 +33,7 @@ class SP_Meta_Box_Event_Details {
<?php
foreach ( $taxonomies as $taxonomy ) {
if ( 'sp_venue' == $taxonomy ) continue;
sp_taxonomy_field( $taxonomy, $post, true );
sp_taxonomy_field( $taxonomy, $post, true, true );
}
?>
<div class="sp-event-sp_venue-field">

View File

@@ -71,7 +71,10 @@ class SP_Meta_Box_Event_Teams {
</ul>
<?php
foreach ( $tabs as $index => $post_type ) {
sp_post_checklist( $post->ID, $post_type, ( 0 == $index ? 'block' : 'none' ), array( 'sp_league', 'sp_season', 'sp_current_team' ), $i );
do_action( 'sportspress_event_teams_meta_box_checklist', $post->ID, $post_type, ( 0 == $index ? 'block' : 'none' ), $team, $i );
if ( apply_filters( 'sportspress_event_teams_meta_box_default_checklist', true ) ) {
sp_post_checklist( $post->ID, $post_type, ( 0 == $index ? 'block' : 'none' ), array( 'sp_league', 'sp_season', 'sp_current_team' ), $i );
}
}
?>
<?php } ?>
@@ -96,6 +99,7 @@ class SP_Meta_Box_Event_Teams {
sp_post_adder( 'sp_team', __( 'Add New', 'sportspress' ) );
endif;
}
wp_nonce_field( 'sp-get-players', 'sp-get-players-nonce', false );
}
/**