Clean up spaces, tabs, indentation, and bracket formatting
This commit is contained in:
@@ -2,21 +2,32 @@
|
||||
/**
|
||||
* Team League Tables
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 1.8.7
|
||||
*/
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
$team = new SP_Team( $id );
|
||||
$team = new SP_Team( $id );
|
||||
$tables = $team->tables();
|
||||
|
||||
foreach ( $tables as $table ):
|
||||
if ( ! $table ) continue;
|
||||
foreach ( $tables as $table ) :
|
||||
if ( ! $table ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
sp_get_template( 'league-table.php', array( 'id' => $table->ID, 'highlight' => $id ) );
|
||||
sp_get_template(
|
||||
'league-table.php',
|
||||
array(
|
||||
'id' => $table->ID,
|
||||
'highlight' => $id,
|
||||
)
|
||||
);
|
||||
endforeach;
|
||||
|
||||
Reference in New Issue
Block a user