Enable linking player lists to teams

This commit is contained in:
Brian Miyaji
2014-06-20 11:42:19 +10:00
parent d49f1c6c13
commit c3d86d3de8
11 changed files with 245 additions and 15 deletions

View File

@@ -4,7 +4,7 @@
*
* @author ThemeBoy
* @package SportsPress/Templates
* @version 0.8
* @version 1.1
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -12,6 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
$defaults = array(
'id' => get_the_ID(),
'number' => -1,
'grouptag' => 'h4',
'columns' => null,
'grouping' => null,
'orderby' => 'default',
@@ -76,7 +77,7 @@ $output = '';
foreach ( $groups as $group ):
if ( ! empty( $group->name ) ):
$output .= '<a name="group-' . $group->slug . '" id="group-' . $group->slug . '"></a>';
$output .= '<h3 class="sp-table-caption player-group-name player-list-group-name">' . $group->name . '</h3>';
$output .= '<' . $grouptag . ' class="sp-table-caption player-group-name player-list-group-name">' . $group->name . '</' . $grouptag . '>';
endif;
$output .= '<div class="sp-table-wrapper sp-scrollable-table-wrapper">' .