Refine event performance interface
This commit is contained in:
@@ -58,6 +58,7 @@ class SP_Meta_Box_Event_Performance {
|
||||
<table class="widefat sp-data-table sp-performance-table sp-sortable-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="icon"> </th>
|
||||
<th>#</th>
|
||||
<th><?php _e( 'Player', 'sportspress' ); ?></th>
|
||||
<th>
|
||||
@@ -93,6 +94,7 @@ class SP_Meta_Box_Event_Performance {
|
||||
$value = sp_array_value( $player_performance, 'number', '' );
|
||||
?>
|
||||
<tr class="sp-row sp-post" data-player="<?php echo $player_id; ?>">
|
||||
<td class="icon"><span class="dashicons dashicons-menu post-state-format"></span></td>
|
||||
<td>
|
||||
<input class="small-text sp-player-number-input" type="text" name="sp_players[<?php echo $team_id; ?>][<?php echo $player_id; ?>][number]" value="<?php echo $value; ?>" />
|
||||
</td>
|
||||
|
||||
@@ -40,7 +40,7 @@ class SP_Meta_Box_Table_Data {
|
||||
public static function table( $columns = array(), $usecolumns = null, $data = array(), $placeholders = array(), $adjustments = array() ) {
|
||||
if ( is_array( $usecolumns ) )
|
||||
$usecolumns = array_filter( $usecolumns );
|
||||
$show_team_logo = get_option( 'sportspress_table_show_logos', false );
|
||||
$show_team_logo = get_option( 'sportspress_table_show_logos', 'no' ) == 'yes' ? true : false;
|
||||
?>
|
||||
<ul class="subsubsub sp-table-bar">
|
||||
<li><a href="#sp-table-values" class="current"><?php _e( 'Values', 'sportspress' ); ?></a></li> |
|
||||
|
||||
@@ -51,7 +51,7 @@ class SP_Settings_Teams extends SP_Settings_Page {
|
||||
array( 'type' => 'sectionend', 'id' => 'team_options' ),
|
||||
|
||||
array( 'title' => __( 'League Tables', 'sportspress' ), 'type' => 'title', 'id' => 'table_options' ),
|
||||
|
||||
|
||||
array(
|
||||
'title' => __( 'Teams', 'sportspress' ),
|
||||
'desc' => __( 'Display logos', 'sportspress' ),
|
||||
|
||||
Reference in New Issue
Block a user