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' );
|
$title_format = get_option( 'sportspress_event_list_title_format', 'title' );
|
||||||
$time_format = get_option( 'sportspress_event_list_time_format', 'combined' );
|
$time_format = get_option( 'sportspress_event_list_time_format', 'combined' );
|
||||||
|
|
||||||
if ( is_array( $usecolumns ) )
|
if ( is_array( $usecolumns ) ) {
|
||||||
$usecolumns = array_filter( $usecolumns );
|
$usecolumns = array_filter( $usecolumns );
|
||||||
|
}else{
|
||||||
|
$usecolumns = array();
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<div class="sp-data-table-container">
|
<div class="sp-data-table-container">
|
||||||
<table class="widefat sp-data-table sp-calendar-table">
|
<table class="widefat sp-data-table sp-calendar-table">
|
||||||
@@ -272,4 +275,4 @@ class SP_Meta_Box_Calendar_Data {
|
|||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,11 @@ class SP_Meta_Box_Player_Statistics {
|
|||||||
public static function output( $post ) {
|
public static function output( $post ) {
|
||||||
$player = new SP_Player( $post );
|
$player = new SP_Player( $post );
|
||||||
$leagues = $player->get_terms_sorted_by_sp_order( 'sp_league' );
|
$leagues = $player->get_terms_sorted_by_sp_order( 'sp_league' );
|
||||||
$league_num = sizeof( $leagues );
|
if ( is_array ( $leagues ) ) {
|
||||||
|
$league_num = sizeof( $leagues );
|
||||||
|
}else{
|
||||||
|
$league_num =0;
|
||||||
|
}
|
||||||
$sections = get_option( 'sportspress_player_performance_sections', -1 );
|
$sections = get_option( 'sportspress_player_performance_sections', -1 );
|
||||||
$show_career_totals = 'yes' === get_option( 'sportspress_player_show_career_total', 'no' ) ? true : false;
|
$show_career_totals = 'yes' === get_option( 'sportspress_player_show_career_total', 'no' ) ? true : false;
|
||||||
|
|
||||||
@@ -245,4 +249,4 @@ class SP_Meta_Box_Player_Statistics {
|
|||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user