Refine event performance interface

This commit is contained in:
Brian Miyaji
2014-08-14 23:04:08 +10:00
parent 5bcd97a5d2
commit c62b52b7a8
5 changed files with 15 additions and 4 deletions

View File

@@ -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">&nbsp;</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>

View File

@@ -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> |

View File

@@ -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' ),