Adjust event details markup

This commit is contained in:
Brian Miyaji
2014-03-28 23:51:58 +11:00
parent 9cdf00abd0
commit 3734e53826

View File

@@ -18,25 +18,23 @@ if ( $seasons ):
$season = array_pop( $seasons ); $season = array_pop( $seasons );
$data[ SP()->text->string('Season') ] = $season->name; $data[ SP()->text->string('Season') ] = $season->name;
endif; endif;
?>
$output = '<h3>' . SP()->text->string('Details', 'event') . '</h3>'; <h3><?php echo SP()->text->string('Details', 'event'); ?></h3>
<div class="sp-table-wrapper">
$output .= '<div class="sp-table-wrapper">' . <table class="sp-event-details sp-data-table">
'<table class="sp-event-details sp-data-table"><tbody>'; <thead>
<tr>
$i = 0; <?php $i = 0; foreach( $data as $label => $value ): ?>
<th><?php echo $label; ?></th>
foreach( $data as $label => $value ): <?php $i++; endforeach; ?>
</tr>
$output .= '<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">'; </thead>
$output .= '<th>' . $label . '</th>'; <tbody>
$output .= '<td>' . $value . '</td>'; <tr class="odd">
$output .= '</tr>'; <?php $i = 0; foreach( $data as $value ): ?>
<td><?php echo $value; ?></td>
$i++; <?php $i++; endforeach; ?>
</tr>
endforeach; </tbody>
</table>
$output .= '</tbody></table></div>'; </div>
echo apply_filters( 'sportspress_event_details', $output );