get_the_ID(), 'number' => -1, 'columns' => null, 'show_full_table_link' => false, 'show_team_logo' => get_option( 'sportspress_table_show_logos', 'yes' ) == 'yes' ? true : false, 'link_posts' => get_option( 'sportspress_table_link_teams', 'no' ) == 'yes' ? true : false, 'sortable' => get_option( 'sportspress_enable_sortable_tables', 'yes' ) == 'yes' ? true : false, 'responsive' => get_option( 'sportspress_enable_responsive_tables', 'yes' ) == 'yes' ? true : false, 'paginated' => get_option( 'sportspress_table_paginated', 'yes' ) == 'yes' ? true : false, 'rows' => get_option( 'sportspress_table_rows', 10 ), ); extract( $defaults, EXTR_SKIP ); $output = '
| ' . SP()->text->string('Pos') . ' | '; foreach( $labels as $key => $label ): if ( ! is_array( $columns ) || $key == 'name' || in_array( $key, $columns ) ) $output .= '' . $label . ' | '; endforeach; $output .= '|
|---|---|---|
| ' . ( $i + 1 ) . ' | '; if ( $show_team_logo ): $logo = get_the_post_thumbnail( $team_id, 'sportspress-fit-icon', array( 'class' => 'team-logo' ) ); $name = $logo . ' ' . $name; endif; if ( $link_posts ): $permalink = get_post_permalink( $team_id ); $name = '' . $name . ''; endif; $output .= '' . $name . ' | '; foreach( $labels as $key => $value ): if ( $key == 'name' ) continue; if ( ! is_array( $columns ) || in_array( $key, $columns ) ) $output .= '' . sp_array_value( $row, $key, '—' ) . ' | '; endforeach; $output .= '