Fix event details box markup
This commit is contained in:
@@ -24,39 +24,41 @@ class SP_Meta_Box_Event_Details {
|
|||||||
$season_id = sp_get_the_term_id( $post->ID, 'sp_season', 0 );
|
$season_id = sp_get_the_term_id( $post->ID, 'sp_season', 0 );
|
||||||
$venue_id = sp_get_the_term_id( $post->ID, 'sp_venue', 0 );
|
$venue_id = sp_get_the_term_id( $post->ID, 'sp_venue', 0 );
|
||||||
?>
|
?>
|
||||||
<div>
|
<div class="sp-event-league-field">
|
||||||
<fieldset class="sp-event-format-field sp-league-event-field sp-friendly-event-field">
|
<p><strong><?php _e( 'League', 'sportspress' ); ?></strong></p>
|
||||||
<p><strong><?php _e( 'League', 'sportspress' ); ?></strong></p>
|
<p>
|
||||||
<p>
|
<?php
|
||||||
<?php
|
$args = array(
|
||||||
$args = array(
|
'taxonomy' => 'sp_league',
|
||||||
'taxonomy' => 'sp_league',
|
'name' => 'sp_league',
|
||||||
'name' => 'sp_league',
|
'selected' => $league_id,
|
||||||
'selected' => $league_id,
|
'values' => 'term_id',
|
||||||
'values' => 'term_id',
|
'show_option_none' => __( '-- Not set --', 'sportspress' ),
|
||||||
'show_option_none' => __( '-- Not set --', 'sportspress' ),
|
);
|
||||||
);
|
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' ) );
|
endif;
|
||||||
endif;
|
?>
|
||||||
?>
|
</p>
|
||||||
</p>
|
</div>
|
||||||
<p><strong><?php _e( 'Season', 'sportspress' ); ?></strong></p>
|
<div class="sp-event-season-field">
|
||||||
<p>
|
<p><strong><?php _e( 'Season', 'sportspress' ); ?></strong></p>
|
||||||
<?php
|
<p>
|
||||||
$args = array(
|
<?php
|
||||||
'taxonomy' => 'sp_season',
|
$args = array(
|
||||||
'name' => 'sp_season',
|
'taxonomy' => 'sp_season',
|
||||||
'selected' => $season_id,
|
'name' => 'sp_season',
|
||||||
'values' => 'term_id',
|
'selected' => $season_id,
|
||||||
'show_option_none' => __( '-- Not set --', 'sportspress' ),
|
'values' => 'term_id',
|
||||||
);
|
'show_option_none' => __( '-- Not set --', 'sportspress' ),
|
||||||
if ( ! sp_dropdown_taxonomies( $args ) ):
|
);
|
||||||
sp_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New', 'sportspress' ) );
|
if ( ! sp_dropdown_taxonomies( $args ) ):
|
||||||
endif;
|
sp_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New', 'sportspress' ) );
|
||||||
?>
|
endif;
|
||||||
</p>
|
?>
|
||||||
</fieldset>
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="sp-event-venue-field">
|
||||||
<p><strong><?php _e( 'Venue', 'sportspress' ); ?></strong></p>
|
<p><strong><?php _e( 'Venue', 'sportspress' ); ?></strong></p>
|
||||||
<p>
|
<p>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Reference in New Issue
Block a user