Fix error in event performance table
This commit is contained in:
@@ -45,10 +45,8 @@ if ( true == $responsive && $mode == 'values' ){
|
|||||||
<th class="data-name">
|
<th class="data-name">
|
||||||
<?php if ( isset( $section_label ) ) { ?>
|
<?php if ( isset( $section_label ) ) { ?>
|
||||||
<?php echo $section_label; ?>
|
<?php echo $section_label; ?>
|
||||||
<?php $player_title = $section_label; ?>
|
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<?php _e( 'Player', 'sportspress' ); ?>
|
<?php _e( 'Player', 'sportspress' ); ?>
|
||||||
<?php $player_title = __( 'Player', 'sportspress' ); ?>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</th>
|
</th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
@@ -192,7 +190,7 @@ if ( true == $responsive && $mode == 'values' ){
|
|||||||
$name .= ' <small class="sp-player-position">' . $position . '</small>';
|
$name .= ' <small class="sp-player-position">' . $position . '</small>';
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
echo '<td class="data-name" data-label="'.$player_title.'">' . $name . '</td>';
|
echo '<td class="data-name" data-label="' . ( isset( $section_label ) ? $section_label : __( 'Player', 'sportspress' ) ) .'">' . $name . '</td>';
|
||||||
|
|
||||||
if ( $mode == 'icons' ):
|
if ( $mode == 'icons' ):
|
||||||
echo '<td class="sp-performance-icons">' . $content . '</td>';
|
echo '<td class="sp-performance-icons">' . $content . '</td>';
|
||||||
|
|||||||
Reference in New Issue
Block a user