Fix double header when multiple player lists are displayed in team
This commit is contained in:
@@ -20,14 +20,6 @@ $lists = $team->lists();
|
|||||||
|
|
||||||
foreach ( $lists as $list ) :
|
foreach ( $lists as $list ) :
|
||||||
$id = $list->ID;
|
$id = $list->ID;
|
||||||
$grouping = get_post_meta( $id, 'sp_grouping', true );
|
|
||||||
|
|
||||||
if ( $grouping == 0 && sizeof( $lists ) > 1 ) :
|
|
||||||
?>
|
|
||||||
<h4 class="sp-table-caption"><?php echo wp_kses_post( $list->post_title ); ?></h4>
|
|
||||||
<?php
|
|
||||||
endif;
|
|
||||||
|
|
||||||
$format = get_post_meta( $id, 'sp_format', true );
|
$format = get_post_meta( $id, 'sp_format', true );
|
||||||
if ( array_key_exists( $format, SP()->formats->list ) ) {
|
if ( array_key_exists( $format, SP()->formats->list ) ) {
|
||||||
sp_get_template( 'player-' . $format . '.php', array( 'id' => $id ) );
|
sp_get_template( 'player-' . $format . '.php', array( 'id' => $id ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user