Clean up spaces, tabs, indentation, and bracket formatting

This commit is contained in:
Brian Miyaji
2021-11-10 15:41:40 +09:00
parent e58beb1201
commit 3dff686a00
285 changed files with 29638 additions and 24147 deletions

View File

@@ -2,29 +2,31 @@
/**
* Team Events
*
* @author ThemeBoy
* @package SportsPress/Templates
* @author ThemeBoy
* @package SportsPress/Templates
* @version 2.6.9
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! isset( $id ) )
if ( ! isset( $id ) ) {
$id = get_the_ID();
}
$format = get_option( 'sportspress_team_events_format', 'blocks' );
if ( 'calendar' === $format ) {
sp_get_template( 'event-calendar.php', array( 'team' => $id ) );
}
elseif ( 'list' === $format ) {
} elseif ( 'list' === $format ) {
$args = array(
'team' => $id,
'league' => apply_filters( 'sp_team_events_league', 0 ),
'season' => apply_filters( 'sp_team_events_season', 0 ),
'team' => $id,
'league' => apply_filters( 'sp_team_events_league', 0 ),
'season' => apply_filters( 'sp_team_events_season', 0 ),
'title_format' => 'homeaway',
'time_format' => 'separate',
'columns' => array( 'event', 'time', 'results' ),
'order' => 'DESC',
'time_format' => 'separate',
'columns' => array( 'event', 'time', 'results' ),
'order' => 'DESC',
);
$args = apply_filters( 'sp_team_events_list_args', $args );
sp_get_template( 'event-list.php', $args );