/**
     * Output the metabox
     */
    public static function output($post)
    {
        ?>
		<div class="sp-instance">
			<ul id="sp_column-tabs" class="wp-tab-bar sp-tab-bar">
				<li class="wp-tab-active"><a href="#sp_performance-all"><?php 
        _e('Performance', 'sportspress');
        ?>
</a></li>
				<li class="wp-tab"><a href="#sp_metric-all"><?php 
        _e('Metrics', 'sportspress');
        ?>
</a></li>
				<li class="wp-tab"><a href="#sp_statistic-all"><?php 
        _e('Statistics', 'sportspress');
        ?>
</a></li>
			</ul>
			<?php 
        $selected = (array) get_post_meta($post->ID, 'sp_columns', true);
        sp_column_checklist($post->ID, 'sp_performance', 'block', $selected);
        sp_column_checklist($post->ID, 'sp_metric', 'none', $selected);
        sp_column_checklist($post->ID, 'sp_statistic', 'none', $selected);
        ?>
		</div>
		<?php 
    }
    /**
     * Output the metabox
     */
    public static function output($post)
    {
        $selected = (array) get_post_meta($post->ID, 'sp_columns', true);
        $tabs = apply_filters('sportspress_player_column_tabs', array('sp_performance', 'sp_statistic'));
        ?>
		<div class="sp-instance">
			<?php 
        if ($tabs) {
            ?>
			<ul id="sp_column-tabs" class="wp-tab-bar sp-tab-bar">
				<?php 
            foreach ($tabs as $index => $post_type) {
                $object = get_post_type_object($post_type);
                ?>
				<li class="wp-tab<?php 
                if (0 == $index) {
                    ?>
-active<?php 
                }
                ?>
"><a href="#<?php 
                echo $post_type;
                ?>
-all"><?php 
                echo $object->labels->name;
                ?>
</a></li>
				<?php 
            }
            ?>
			</ul>
			<?php 
            foreach ($tabs as $index => $post_type) {
                sp_column_checklist($post->ID, $post_type, 0 == $index ? 'block' : 'none', $selected);
            }
            ?>
			<?php 
        }
        ?>
		</div>
		<?php 
    }
    /**
     * Output the metabox
     */
    public static function output($post)
    {
        $selected = (array) get_post_meta($post->ID, 'sp_columns', true);
        $orderby = get_post_meta($post->ID, 'sp_orderby', true);
        ?>
		<p><strong><?php 
        _e('General', 'sportspress');
        ?>
</strong></p>
		<ul class="categorychecklist form-no-clear">
			<li>
				<label class="selectit">
					<input value="number" type="checkbox" name="sp_columns[]" id="sp_columns_number" <?php 
        checked(in_array('number', $selected));
        ?>
>
					<?php 
        if (in_array($orderby, array('number', 'name'))) {
            _e('Squad Number', 'sportspress');
        } else {
            _e('Rank', 'sportspress');
        }
        ?>
	
				</label>
			</li>
			<li>
				<label class="selectit">
					<input value="team" type="checkbox" name="sp_columns[]" id="sp_columns_team" <?php 
        checked(in_array('team', $selected));
        ?>
>
					<?php 
        _e('Team', 'sportspress');
        ?>
				</label>
			</li>
			<li>
				<label class="selectit">
					<input value="position" type="checkbox" name="sp_columns[]" id="sp_columns_position" <?php 
        checked(in_array('position', $selected));
        ?>
>
					<?php 
        _e('Position', 'sportspress');
        ?>
				</label>
			</li>
		</ul>
		<p><strong><?php 
        _e('Data', 'sportspress');
        ?>
</strong></p>
		<div class="sp-instance">
			<ul id="sp_column-tabs" class="wp-tab-bar sp-tab-bar">
				<li class="wp-tab-active"><a href="#sp_performance-all"><?php 
        _e('Performance', 'sportspress');
        ?>
</a></li>
				<li class="wp-tab"><a href="#sp_metric-all"><?php 
        _e('Metrics', 'sportspress');
        ?>
</a></li>
				<li class="wp-tab"><a href="#sp_statistic-all"><?php 
        _e('Statistics', 'sportspress');
        ?>
</a></li>
			</ul>
			<?php 
        sp_column_checklist($post->ID, 'sp_performance', 'block', $selected);
        sp_column_checklist($post->ID, 'sp_metric', 'none', $selected);
        sp_column_checklist($post->ID, 'sp_statistic', 'none', $selected);
        ?>
		</div>
		<?php 
    }