/**
  * Output the data metabox
  */
 public static function data($post)
 {
     $bracket = new SP_Tournament($post);
     list($labels, $data, $rounds, $rows) = $bracket->data(true);
     self::table($labels, $data, $rounds, $rows, $post->ID);
 }
/**
 * Player Gallery Thumbnail
 *
 * @author 		ThemeBoy
 * @package 	SportsPress/Templates
 * @version     1.8.8
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
$defaults = array('id' => get_the_ID(), 'show_logos' => get_option('sportspress_tournament_show_logos', 'yes') == 'yes' ? true : false, 'show_venue' => get_option('sportspress_tournament_show_venue', 'no') == 'yes' ? true : false, 'link_teams' => get_option('sportspress_link_teams', 'no') == 'yes' ? true : false, 'link_events' => get_option('sportspress_link_events', 'yes') == 'yes' ? true : false, 'scrollable' => get_option('sportspress_enable_scrollable_tables', 'yes') == 'yes' ? true : false, 'layout' => 'bracket');
extract($defaults, EXTR_SKIP);
$tournament = new SP_Tournament($id);
list($labels, $data, $rounds, $rows) = $tournament->data($layout);
?>
<table class="sp-data-table sp-tournament-bracket<?php 
if ($scrollable) {
    ?>
 sp-scrollable-table<?php 
}
?>
">
	<thead>
		<tr>
			<?php 
for ($round = 0; $round < $rounds; $round++) {
    ?>
				<th>
					<?php