Fix HTML for staff in event performance table
This commit is contained in:
@@ -236,6 +236,7 @@ if ( is_array( $teams ) ):
|
||||
'performance_ids' => isset( $performance_ids ) ? $performance_ids : null,
|
||||
'primary' => 'primary' == $total ? $primary : null,
|
||||
'class' => 'sp-template-event-performance-team-' . $index . ' sp-template-event-performance-section sp-template-event-performance-section-' . $section_id . ' sp-template-event-performance-team-' . $index . '-section-' . $section_id,
|
||||
'show_staff' => $show_staff,
|
||||
) );
|
||||
}
|
||||
|
||||
@@ -256,9 +257,12 @@ if ( is_array( $teams ) ):
|
||||
}
|
||||
|
||||
sp_get_template( 'event-performance-table.php', array(
|
||||
'id' => $id,
|
||||
'index' => $index,
|
||||
'scrollable' => $scrollable,
|
||||
'sortable' => $sortable,
|
||||
'show_players' => $show_team_players,
|
||||
'show_staff' => $show_staff,
|
||||
'show_numbers' => $show_numbers,
|
||||
'show_minutes' => $show_minutes,
|
||||
'show_total' => $show_total,
|
||||
@@ -272,14 +276,9 @@ if ( is_array( $teams ) ):
|
||||
'link_posts' => $link_posts,
|
||||
'performance_ids' => isset( $performance_ids ) ? $performance_ids : null,
|
||||
'primary' => 'primary' == $total ? $primary : null,
|
||||
|
||||
) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( $show_staff ):
|
||||
sp_get_template( 'event-staff.php', array( 'id' => $id, 'index' => $index ) );
|
||||
endif;
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user