Add player performance format selector

This commit is contained in:
Brian Miyaji
2016-03-02 23:09:43 +11:00
parent 6bf57e27b9
commit 2b26d1166f
4 changed files with 22 additions and 9 deletions

View File

@@ -13,7 +13,8 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
$totals = array();
// Set null
if ( ! isset( $section ) ) $section = null;
if ( ! isset( $section ) ) $section = -1;
if ( ! isset( $section_label ) ) $section_label = null;
if ( ! isset( $class ) ) $class = null;
// Initialize arrays
@@ -33,8 +34,8 @@ if ( ! isset( $subs ) ) $subs = array();
<th class="data-number">#</th>
<?php } ?>
<th class="data-name">
<?php if ( isset( $section ) ) { ?>
<?php echo $section; ?>
<?php if ( isset( $section_label ) ) { ?>
<?php echo $section_label; ?>
<?php } else { ?>
<?php _e( 'Player', 'sportspress' ); ?>
<?php } ?>