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,24 +2,24 @@
/**
* Event Logos Block
*
* @author ThemeBoy
* @package SportsPress/Templates
* @author ThemeBoy
* @package SportsPress/Templates
* @version 2.7.1
*/
?>
<div class="sp-template sp-template-event-logos sp-template-event-blocks sp-template-event-logos-block">
<div class="sp-table-wrapper">
<table class="sp-event-blocks sp-data-table" data-sp-rows="1">
<thead><tr><th></th></tr></thead> <?php # Required for DataTables ?>
<thead><tr><th></th></tr></thead> <?php // Required for DataTables ?>
<tbody>
<tr class="sp-row sp-post alternate">
<td>
<?php
$j = 0;
foreach( $teams as $team ):
foreach ( $teams as $team ) :
$j++;
if ( has_post_thumbnail ( $team ) ) {
if ( has_post_thumbnail( $team ) ) {
$logo = get_the_post_thumbnail( $team, 'sportspress-fit-icon' );
} else {
$logo = '';
@@ -33,12 +33,12 @@
}
}
if ( $link_teams ):
if ( $link_teams ) :
$logo = '<a class="team-logo logo-' . ( $j % 2 ? 'odd' : 'even' ) . '" href="' . get_permalink( $team, false, true ) . '" title="' . get_the_title( $team ) . '">' . $logo . '</a>';
else:
else :
$logo = '<span class="team-logo logo-' . ( $j % 2 ? 'odd' : 'even' ) . '" title="' . get_the_title( $team ) . '">' . $logo . '</span>';
endif;
echo $logo;
endforeach;
?>
@@ -48,7 +48,7 @@
<?php
$status = __( 'Preview', 'sportspress' );
if ( $show_time ) {
?>
<h5 class="sp-event-results">
@@ -56,7 +56,7 @@
</h5>
<?php
}
if ( $show_results && ! empty( $results ) ) {
?>
<h5 class="sp-event-results">