Merge branch 'master' into feature-gutenberg
This commit is contained in:
@@ -39,8 +39,11 @@ class SP_Meta_Box_Calendar_Data {
|
||||
$title_format = get_option( 'sportspress_event_list_title_format', 'title' );
|
||||
$time_format = get_option( 'sportspress_event_list_time_format', 'combined' );
|
||||
|
||||
if ( is_array( $usecolumns ) )
|
||||
if ( is_array( $usecolumns ) ) {
|
||||
$usecolumns = array_filter( $usecolumns );
|
||||
}else{
|
||||
$usecolumns = array();
|
||||
}
|
||||
?>
|
||||
<div class="sp-data-table-container">
|
||||
<table class="widefat sp-data-table sp-calendar-table">
|
||||
|
||||
@@ -21,7 +21,11 @@ class SP_Meta_Box_Player_Statistics {
|
||||
public static function output( $post ) {
|
||||
$player = new SP_Player( $post );
|
||||
$leagues = $player->get_terms_sorted_by_sp_order( 'sp_league' );
|
||||
if ( is_array ( $leagues ) ) {
|
||||
$league_num = sizeof( $leagues );
|
||||
}else{
|
||||
$league_num =0;
|
||||
}
|
||||
$sections = get_option( 'sportspress_player_performance_sections', -1 );
|
||||
$show_career_totals = 'yes' === get_option( 'sportspress_player_show_career_total', 'no' ) ? true : false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user