Always display performance icons in admin
This commit is contained in:
@@ -140,10 +140,8 @@ $columns = get_option( 'sportspress_player_columns', 'auto' );
|
|||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
$selection = get_option( 'sportspress_primary_performance', 0 );
|
$selection = get_option( 'sportspress_primary_performance', 0 );
|
||||||
$mode = get_option( 'sportspress_event_performance_mode', 'values' );
|
$colspan = 8;
|
||||||
$colspan = 7;
|
|
||||||
|
|
||||||
if ( 'icons' === $mode ) $colspan ++;
|
|
||||||
if ( 'auto' === $columns ) $colspan ++;
|
if ( 'auto' === $columns ) $colspan ++;
|
||||||
|
|
||||||
$args = array(
|
$args = array(
|
||||||
@@ -168,9 +166,7 @@ $columns = get_option( 'sportspress_player_columns', 'auto' );
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="radio" scope="col"><?php _e( 'Primary', 'sportspress' ); ?></th>
|
<th class="radio" scope="col"><?php _e( 'Primary', 'sportspress' ); ?></th>
|
||||||
<?php if ( 'icons' === $mode ) { ?>
|
|
||||||
<th class="icon" scope="col"><?php _e( 'Icon', 'sportspress' ); ?></th>
|
<th class="icon" scope="col"><?php _e( 'Icon', 'sportspress' ); ?></th>
|
||||||
<?php } ?>
|
|
||||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||||
<th scope="col"><?php _e( 'Variable', 'sportspress' ); ?></th>
|
<th scope="col"><?php _e( 'Variable', 'sportspress' ); ?></th>
|
||||||
<th scope="col"><?php _e( 'Category', 'sportspress' ); ?></th>
|
<th scope="col"><?php _e( 'Category', 'sportspress' ); ?></th>
|
||||||
@@ -188,9 +184,7 @@ $columns = get_option( 'sportspress_player_columns', 'auto' );
|
|||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="radio"><input type="radio" class="sp-primary-performance-option" id="sportspress_primary_performance_0" name="sportspress_primary_performance" value="0" <?php checked( $selection, 0 ); ?>></th>
|
<th class="radio"><input type="radio" class="sp-primary-performance-option" id="sportspress_primary_performance_0" name="sportspress_primary_performance" value="0" <?php checked( $selection, 0 ); ?>></th>
|
||||||
<?php if ( 'icons' === $mode ) { ?>
|
|
||||||
<th class="icon"> </td>
|
<th class="icon"> </td>
|
||||||
<?php } ?>
|
|
||||||
<th colspan="<?php echo $colspan - 1; ?>"><label for="sportspress_primary_performance_0">
|
<th colspan="<?php echo $colspan - 1; ?>"><label for="sportspress_primary_performance_0">
|
||||||
<?php
|
<?php
|
||||||
if ( sizeof( $data ) > 0 ):
|
if ( sizeof( $data ) > 0 ):
|
||||||
@@ -210,7 +204,6 @@ $columns = get_option( 'sportspress_player_columns', 'auto' );
|
|||||||
?>
|
?>
|
||||||
<tr<?php if ( $i % 2 == 0 ) echo ' class="alternate"'; ?>>
|
<tr<?php if ( $i % 2 == 0 ) echo ' class="alternate"'; ?>>
|
||||||
<td class="radio"><input type="radio" class="sp-primary-performance-option" id="sportspress_primary_performance_<?php echo $row->post_name; ?>" name="sportspress_primary_performance" value="<?php echo $row->post_name; ?>" <?php checked( $selection, $row->post_name ); ?>></td>
|
<td class="radio"><input type="radio" class="sp-primary-performance-option" id="sportspress_primary_performance_<?php echo $row->post_name; ?>" name="sportspress_primary_performance" value="<?php echo $row->post_name; ?>" <?php checked( $selection, $row->post_name ); ?>></td>
|
||||||
<?php if ( 'icons' === $mode ) { ?>
|
|
||||||
<td class="icon">
|
<td class="icon">
|
||||||
<?php
|
<?php
|
||||||
if ( has_post_thumbnail( $row->ID ) )
|
if ( has_post_thumbnail( $row->ID ) )
|
||||||
@@ -221,7 +214,6 @@ $columns = get_option( 'sportspress_player_columns', 'auto' );
|
|||||||
echo apply_filters( 'sportspress_performance_icon', $icon, $row->ID );
|
echo apply_filters( 'sportspress_performance_icon', $icon, $row->ID );
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<?php } ?>
|
|
||||||
<td class="row-title"><?php echo $row->post_title; ?></td>
|
<td class="row-title"><?php echo $row->post_title; ?></td>
|
||||||
<td><code><?php echo $row->post_name; ?></code></td>
|
<td><code><?php echo $row->post_name; ?></code></td>
|
||||||
<td><?php echo sp_get_post_section( $row->ID ); ?></td>
|
<td><?php echo sp_get_post_section( $row->ID ); ?></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user