Display rank and team logo in league table

This commit is contained in:
ThemeBoy
2013-12-10 22:59:33 +11:00
parent a7ebb8292e
commit 3d1f501849

View File

@@ -1208,6 +1208,8 @@ if ( !function_exists( 'sp_get_table_html' ) ) {
$output .= '</tr>' . '</th>' . '</thead>' . '<tbody>';
$i = 1;
foreach( $data as $team_id => $row ):
$output .= '<tr>';
@@ -1216,6 +1218,11 @@ if ( !function_exists( 'sp_get_table_html' ) ) {
$output .= '<td>';
if ( $key == 'name' ):
$permalink = get_post_permalink( $team_id );
$thumbnail = get_the_post_thumbnail( $team_id, 'sp_icon' );
$output .= $i . ' ';
if ( $thumbnail ):
$output .= '<a href="' . $permalink . '">' . $thumbnail . '</a> ';
endif;
$output .= '<a href="' . $permalink . '">';
endif;
$output .= $value;
@@ -1227,6 +1234,8 @@ if ( !function_exists( 'sp_get_table_html' ) ) {
$output .= '</tr>';
$i++;
endforeach;
$output .= '</tbody>' . '</table>';