Display league/season in event blocks close #36
This commit is contained in:
@@ -64,6 +64,18 @@ class SP_Meta_Box_Calendar_Data {
|
||||
<?php _e( 'Time/Results', 'sportspress' ); ?>
|
||||
</label>
|
||||
</th>
|
||||
<th class="column-league">
|
||||
<label for="sp_columns_league">
|
||||
<input type="checkbox" name="sp_columns[]" value="league" id="sp_columns_league" <?php checked( ! is_array( $usecolumns ) || in_array( 'league', $usecolumns ) ); ?>>
|
||||
<?php _e( 'League', 'sportspress' ); ?>
|
||||
</label>
|
||||
</th>
|
||||
<th class="column-season">
|
||||
<label for="sp_columns_season">
|
||||
<input type="checkbox" name="sp_columns[]" value="season" id="sp_columns_season" <?php checked( ! is_array( $usecolumns ) || in_array( 'season', $usecolumns ) ); ?>>
|
||||
<?php _e( 'Season', 'sportspress' ); ?>
|
||||
</label>
|
||||
</th>
|
||||
<th class="column-venue">
|
||||
<label for="sp_columns_venue">
|
||||
<input type="checkbox" name="sp_columns[]" value="venue" id="sp_columns_venue" <?php checked( ! is_array( $usecolumns ) || in_array( 'venue', $usecolumns ) ); ?>>
|
||||
@@ -136,6 +148,8 @@ class SP_Meta_Box_Calendar_Data {
|
||||
endif;
|
||||
?>
|
||||
</td>
|
||||
<td><?php the_terms( $event->ID, 'sp_league' ); ?></td>
|
||||
<td><?php the_terms( $event->ID, 'sp_season' ); ?></td>
|
||||
<td><?php the_terms( $event->ID, 'sp_venue' ); ?></td>
|
||||
<td>
|
||||
<a href="<?php echo get_edit_post_link( $event->ID ); ?>#sp_articlediv">
|
||||
|
||||
@@ -83,7 +83,6 @@ class SP_Settings_Events extends SP_Settings_Page {
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Player Performance', 'sportspress' ),
|
||||
'desc' => __( 'Display players', 'sportspress' ),
|
||||
'id' => 'sportspress_event_show_players',
|
||||
'default' => 'yes',
|
||||
@@ -157,6 +156,23 @@ class SP_Settings_Events extends SP_Settings_Page {
|
||||
|
||||
array( 'title' => __( 'Event Blocks', 'sportspress' ), 'type' => 'title', 'id' => 'event_blocks_options' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Details', 'sportspress' ),
|
||||
'desc' => __( 'Display league', 'sportspress' ),
|
||||
'id' => 'sportspress_event_blocks_show_league',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
'checkboxgroup' => 'start',
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Display season', 'sportspress' ),
|
||||
'id' => 'sportspress_event_blocks_show_season',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
'checkboxgroup' => 'end',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Pagination', 'sportspress' ),
|
||||
'desc' => __( 'Paginate', 'sportspress' ),
|
||||
|
||||
Reference in New Issue
Block a user