Escape outputs
This commit is contained in:
@@ -4,7 +4,7 @@ $columns = get_option( 'sportspress_player_columns', 'auto' );
|
||||
|
||||
<div class="wrap sportspress sportspress-config-wrap">
|
||||
<h2>
|
||||
<?php _e( 'Configure', 'sportspress' ); ?>
|
||||
<?php esc_html_e( 'Configure', 'sportspress' ); ?>
|
||||
</h2>
|
||||
<table class="form-table">
|
||||
<tbody>
|
||||
@@ -20,18 +20,18 @@ $columns = get_option( 'sportspress_player_columns', 'auto' );
|
||||
?>
|
||||
<tr valign="top">
|
||||
<th scope="row" class="titledesc">
|
||||
<?php _e( 'Event Outcomes', 'sportspress' ); ?>
|
||||
<p class="description"><?php _e( 'Used for events.', 'sportspress' ); ?></p>
|
||||
<?php esc_html_e( 'Event Outcomes', 'sportspress' ); ?>
|
||||
<p class="description"><?php esc_html_e( 'Used for events.', 'sportspress' ); ?></p>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<table class="widefat sp-admin-config-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Variable', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Abbreviation', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Condition', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Description', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Variable', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Abbreviation', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Condition', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Description', 'sportspress' ); ?></th>
|
||||
<th scope="col" class="edit"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -50,20 +50,20 @@ $columns = get_option( 'sportspress_player_columns', 'auto' );
|
||||
<td><?php echo esc_html( sp_get_post_abbreviation( $row->ID ) ); ?></td>
|
||||
<td><?php echo esc_html( sp_get_post_condition( $row->ID ) ); ?></td>
|
||||
<td><p class="description"><?php echo wp_kses_post( $row->post_excerpt ); ?></p></td>
|
||||
<td class="edit"><a class="button" href="<?php echo get_edit_post_link( $row->ID ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></s></td>
|
||||
<td class="edit"><a class="button" href="<?php echo esc_url( get_edit_post_link( $row->ID ) ); ?>"><?php esc_html_e( 'Edit', 'sportspress' ); ?></s></td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
endforeach; else :
|
||||
?>
|
||||
<tr class="alternate">
|
||||
<td colspan="6"><?php _e( 'No results found.', 'sportspress' ); ?></td>
|
||||
<td colspan="6"><?php esc_html_e( 'No results found.', 'sportspress' ); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<div class="tablenav bottom">
|
||||
<a class="button alignleft" href="<?php echo admin_url( 'edit.php?post_type=sp_outcome' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
||||
<a class="button button-primary alignright" href="<?php echo admin_url( 'post-new.php?post_type=sp_outcome' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
||||
<a class="button alignleft" href="<?php echo esc_url( admin_url( 'edit.php?post_type=sp_outcome' ) ); ?>"><?php esc_html_e( 'View All', 'sportspress' ); ?></a>
|
||||
<a class="button button-primary alignright" href="<?php echo esc_url( admin_url( 'post-new.php?post_type=sp_outcome' ) ); ?>"><?php esc_html_e( 'Add New', 'sportspress' ); ?></a>
|
||||
<br class="clear">
|
||||
</div>
|
||||
</td>
|
||||
@@ -86,22 +86,22 @@ endforeach; else :
|
||||
?>
|
||||
<tr valign="top">
|
||||
<th scope="row" class="titledesc">
|
||||
<?php _e( 'Event Results', 'sportspress' ); ?>
|
||||
<p class="description"><?php _e( 'Used for events.', 'sportspress' ); ?></p>
|
||||
<?php esc_html_e( 'Event Results', 'sportspress' ); ?>
|
||||
<p class="description"><?php esc_html_e( 'Used for events.', 'sportspress' ); ?></p>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<legend class="screen-reader-text"><span><?php _e( 'Event Results', 'sportspress' ); ?></span></legend>
|
||||
<legend class="screen-reader-text"><span><?php esc_html_e( 'Event Results', 'sportspress' ); ?></span></legend>
|
||||
<form>
|
||||
<?php wp_nonce_field( 'sp-save-primary-result', 'sp-primary-result-nonce', false ); ?>
|
||||
<table class="widefat sp-admin-config-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="radio" scope="col"><?php _e( 'Primary', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Variables', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Equation', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Decimal Places', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Description', 'sportspress' ); ?></th>
|
||||
<th class="radio" scope="col"><?php esc_html_e( 'Primary', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Variables', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Equation', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Decimal Places', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Description', 'sportspress' ); ?></th>
|
||||
<th scope="col" class="edit"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -113,9 +113,9 @@ endforeach; else :
|
||||
if ( sizeof( $data ) > 0 ) :
|
||||
$default = end( $data );
|
||||
reset( $data );
|
||||
printf( __( 'Default (%s)', 'sportspress' ), $default->post_title );
|
||||
printf( esc_html__( 'Default (%s)', 'sportspress' ), esc_html( $default->post_title ) );
|
||||
else :
|
||||
_e( 'Default', 'sportspress' );
|
||||
esc_attr_e( 'Default', 'sportspress' );
|
||||
endif;
|
||||
?>
|
||||
</label></th>
|
||||
@@ -137,21 +137,21 @@ endforeach; else :
|
||||
<td><?php echo esc_html( sp_get_post_equation( $row->ID ) ); ?></td>
|
||||
<td><?php echo esc_html( sp_get_post_precision( $row->ID ) ); ?></td>
|
||||
<td><p class="description"><?php echo wp_kses_post( $row->post_excerpt ); ?></p></td>
|
||||
<td class="edit"><a class="button" href="<?php echo get_edit_post_link( $row->ID ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></s></td>
|
||||
<td class="edit"><a class="button" href="<?php echo esc_url( get_edit_post_link( $row->ID ) ); ?>"><?php esc_html_e( 'Edit', 'sportspress' ); ?></s></td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
endforeach; else :
|
||||
?>
|
||||
<tr class="alternate">
|
||||
<td colspan="7"><?php _e( 'No results found.', 'sportspress' ); ?></td>
|
||||
<td colspan="7"><?php esc_html_e( 'No results found.', 'sportspress' ); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</form>
|
||||
<div class="tablenav bottom">
|
||||
<a class="button alignleft" href="<?php echo admin_url( 'edit.php?post_type=sp_result' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
||||
<a class="button button-primary alignright" href="<?php echo admin_url( 'post-new.php?post_type=sp_result' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
||||
<a class="button alignleft" href="<?php echo esc_url( admin_url( 'edit.php?post_type=sp_result' ) ); ?>"><?php esc_html_e( 'View All', 'sportspress' ); ?></a>
|
||||
<a class="button button-primary alignright" href="<?php echo esc_url( admin_url( 'post-new.php?post_type=sp_result' ) ); ?>"><?php esc_html_e( 'Add New', 'sportspress' ); ?></a>
|
||||
<br class="clear">
|
||||
</div>
|
||||
</td>
|
||||
@@ -179,29 +179,29 @@ endforeach; else :
|
||||
?>
|
||||
<tr valign="top">
|
||||
<th scope="row" class="titledesc">
|
||||
<?php _e( 'Player Performance', 'sportspress' ); ?>
|
||||
<p class="description"><?php _e( 'Used for events.', 'sportspress' ); ?></p>
|
||||
<?php esc_html_e( 'Player Performance', 'sportspress' ); ?>
|
||||
<p class="description"><?php esc_html_e( 'Used for events.', 'sportspress' ); ?></p>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<legend class="screen-reader-text"><span><?php _e( 'Player Performance', 'sportspress' ); ?></span></legend>
|
||||
<legend class="screen-reader-text"><span><?php esc_html_e( 'Player Performance', 'sportspress' ); ?></span></legend>
|
||||
<form>
|
||||
<?php wp_nonce_field( 'sp-save-primary-performance', 'sp-primary-performance-nonce', false ); ?>
|
||||
<table class="widefat sp-admin-config-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="radio" scope="col"><?php _e( 'Primary', 'sportspress' ); ?></th>
|
||||
<th class="icon" scope="col"><?php _e( 'Icon', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Variable', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Category', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Format', 'sportspress' ); ?></th>
|
||||
<th class="radio" scope="col"><?php esc_html_e( 'Primary', 'sportspress' ); ?></th>
|
||||
<th class="icon" scope="col"><?php esc_html_e( 'Icon', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Variable', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Category', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Format', 'sportspress' ); ?></th>
|
||||
<?php if ( 'auto' === $columns ) { ?>
|
||||
<th scope="col">
|
||||
<?php _e( 'Visible', 'sportspress' ); ?>
|
||||
<i class="dashicons dashicons-editor-help sp-desc-tip" title="<?php _e( 'Display in player profile?', 'sportspress' ); ?>"></i>
|
||||
<?php esc_html_e( 'Visible', 'sportspress' ); ?>
|
||||
<i class="dashicons dashicons-editor-help sp-desc-tip" title="<?php esc_html_e( 'Display in player profile?', 'sportspress' ); ?>"></i>
|
||||
</th>
|
||||
<?php } ?>
|
||||
<th scope="col"><?php _e( 'Description', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Description', 'sportspress' ); ?></th>
|
||||
<th scope="col" class="edit"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -209,13 +209,13 @@ endforeach; else :
|
||||
<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="icon"> </td>
|
||||
<th colspan="<?php echo $colspan - 1; ?>"><label for="sportspress_primary_performance_0">
|
||||
<th colspan="<?php echo esc_html( $colspan - 1 ); ?>"><label for="sportspress_primary_performance_0">
|
||||
<?php
|
||||
if ( sizeof( $data ) > 0 ) :
|
||||
$default = reset( $data );
|
||||
printf( __( 'Default (%s)', 'sportspress' ), $default->post_title );
|
||||
printf( esc_html__( 'Default (%s)', 'sportspress' ), esc_html( $default->post_title ) );
|
||||
else :
|
||||
_e( 'Default', 'sportspress' );
|
||||
esc_attr_e( 'Default', 'sportspress' );
|
||||
endif;
|
||||
?>
|
||||
</label></th>
|
||||
@@ -246,7 +246,7 @@ endforeach; else :
|
||||
$icon = ' ';
|
||||
}
|
||||
|
||||
echo apply_filters( 'sportspress_performance_icon', $icon, $row->ID );
|
||||
echo wp_kses_post( apply_filters( 'sportspress_performance_icon', $icon, $row->ID ) );
|
||||
?>
|
||||
</td>
|
||||
<td class="row-title"><?php echo esc_html( $row->post_title ); ?></td>
|
||||
@@ -266,21 +266,21 @@ endforeach; else :
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td><p class="description"><?php echo wp_kses_post( $row->post_excerpt ); ?></p></td>
|
||||
<td class="edit"><a class="button" href="<?php echo get_edit_post_link( $row->ID ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></s></td>
|
||||
<td class="edit"><a class="button" href="<?php echo esc_url( get_edit_post_link( $row->ID ) ); ?>"><?php esc_html_e( 'Edit', 'sportspress' ); ?></s></td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
endforeach; else :
|
||||
?>
|
||||
<tr class="alternate">
|
||||
<td colspan="<?php echo $colspan; ?>"><?php _e( 'No results found.', 'sportspress' ); ?></td>
|
||||
<td colspan="<?php echo esc_attr( $colspan ); ?>"><?php esc_html_e( 'No results found.', 'sportspress' ); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</form>
|
||||
<div class="tablenav bottom">
|
||||
<a class="button alignleft" href="<?php echo admin_url( 'edit.php?post_type=sp_performance' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
||||
<a class="button button-primary alignright" href="<?php echo admin_url( 'post-new.php?post_type=sp_performance' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
||||
<a class="button alignleft" href="<?php echo esc_url( admin_url( 'edit.php?post_type=sp_performance' ) ); ?>"><?php esc_html_e( 'View All', 'sportspress' ); ?></a>
|
||||
<a class="button button-primary alignright" href="<?php echo esc_url( admin_url( 'post-new.php?post_type=sp_performance' ) ); ?>"><?php esc_html_e( 'Add New', 'sportspress' ); ?></a>
|
||||
<br class="clear">
|
||||
</div>
|
||||
</td>
|
||||
@@ -301,18 +301,18 @@ endforeach; else :
|
||||
?>
|
||||
<tr valign="top">
|
||||
<th scope="row" class="titledesc">
|
||||
<?php _e( 'Table Columns', 'sportspress' ); ?>
|
||||
<p class="description"><?php _e( 'Used for league tables.', 'sportspress' ); ?></p>
|
||||
<?php esc_html_e( 'Table Columns', 'sportspress' ); ?>
|
||||
<p class="description"><?php esc_html_e( 'Used for league tables.', 'sportspress' ); ?></p>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<table class="widefat sp-admin-config-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Equation', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Decimal Places', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Sort Order', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Description', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Equation', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Decimal Places', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Sort Order', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Description', 'sportspress' ); ?></th>
|
||||
<th scope="col" class="edit"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -331,20 +331,20 @@ endforeach; else :
|
||||
<td><?php echo esc_html( sp_get_post_precision( $row->ID ) ); ?></td>
|
||||
<td><?php echo esc_html( sp_get_post_order( $row->ID ) ); ?></td>
|
||||
<td><p class="description"><?php echo wp_kses_post( $row->post_excerpt ); ?></p></td>
|
||||
<td class="edit"><a class="button" href="<?php echo get_edit_post_link( $row->ID ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></s></td>
|
||||
<td class="edit"><a class="button" href="<?php echo esc_url( get_edit_post_link( $row->ID ) ); ?>"><?php esc_html_e( 'Edit', 'sportspress' ); ?></s></td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
endforeach; else :
|
||||
?>
|
||||
<tr class="alternate">
|
||||
<td colspan="7"><?php _e( 'No results found.', 'sportspress' ); ?></td>
|
||||
<td colspan="7"><?php esc_html_e( 'No results found.', 'sportspress' ); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<div class="tablenav bottom">
|
||||
<a class="button alignleft" href="<?php echo admin_url( 'edit.php?post_type=sp_column' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
||||
<a class="button button-primary alignright" href="<?php echo admin_url( 'post-new.php?post_type=sp_column' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
||||
<a class="button alignleft" href="<?php echo esc_url( admin_url( 'edit.php?post_type=sp_column' ) ); ?>"><?php esc_html_e( 'View All', 'sportspress' ); ?></a>
|
||||
<a class="button button-primary alignright" href="<?php echo esc_url( admin_url( 'post-new.php?post_type=sp_column' ) ); ?>"><?php esc_html_e( 'Add New', 'sportspress' ); ?></a>
|
||||
<br class="clear">
|
||||
</div>
|
||||
</fieldset>
|
||||
@@ -366,16 +366,16 @@ endforeach; else :
|
||||
?>
|
||||
<tr valign="top">
|
||||
<th scope="row" class="titledesc">
|
||||
<?php _e( 'Player Metrics', 'sportspress' ); ?>
|
||||
<p class="description"><?php _e( 'Used for player lists.', 'sportspress' ); ?></p>
|
||||
<?php esc_html_e( 'Player Metrics', 'sportspress' ); ?>
|
||||
<p class="description"><?php esc_html_e( 'Used for player lists.', 'sportspress' ); ?></p>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<table class="widefat sp-admin-config-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Variable', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Description', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Variable', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Description', 'sportspress' ); ?></th>
|
||||
<th scope="col" class="edit"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -392,20 +392,20 @@ endforeach; else :
|
||||
<td class="row-title"><?php echo esc_html( $row->post_title ); ?></td>
|
||||
<td><code><?php echo esc_html( $row->post_name ); ?></code></td>
|
||||
<td><p class="description"><?php echo wp_kses_post( $row->post_excerpt ); ?></p></td>
|
||||
<td class="edit"><a class="button" href="<?php echo get_edit_post_link( $row->ID ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></s></td>
|
||||
<td class="edit"><a class="button" href="<?php echo esc_url( get_edit_post_link( $row->ID ) ); ?>"><?php esc_html_e( 'Edit', 'sportspress' ); ?></s></td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
endforeach; else :
|
||||
?>
|
||||
<tr class="alternate">
|
||||
<td colspan="4"><?php _e( 'No results found.', 'sportspress' ); ?></td>
|
||||
<td colspan="4"><?php esc_html_e( 'No results found.', 'sportspress' ); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<div class="tablenav bottom">
|
||||
<a class="button alignleft" href="<?php echo admin_url( 'edit.php?post_type=sp_metric' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
||||
<a class="button button-primary alignright" href="<?php echo admin_url( 'post-new.php?post_type=sp_metric' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
||||
<a class="button alignleft" href="<?php echo esc_url( admin_url( 'edit.php?post_type=sp_metric' ) ); ?>"><?php esc_html_e( 'View All', 'sportspress' ); ?></a>
|
||||
<a class="button button-primary alignright" href="<?php echo esc_url( admin_url( 'post-new.php?post_type=sp_metric' ) ); ?>"><?php esc_html_e( 'Add New', 'sportspress' ); ?></a>
|
||||
<br class="clear">
|
||||
</div>
|
||||
</td>
|
||||
@@ -432,25 +432,25 @@ endforeach; else :
|
||||
?>
|
||||
<tr valign="top">
|
||||
<th scope="row" class="titledesc">
|
||||
<?php _e( 'Player Statistics', 'sportspress' ); ?>
|
||||
<p class="description"><?php _e( 'Used for player lists.', 'sportspress' ); ?></p>
|
||||
<?php esc_html_e( 'Player Statistics', 'sportspress' ); ?>
|
||||
<p class="description"><?php esc_html_e( 'Used for player lists.', 'sportspress' ); ?></p>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<table class="widefat sp-admin-config-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th class="icon" scope="col"><?php _e( 'Icon', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Equation', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Decimal Places', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Category', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Label', 'sportspress' ); ?></th>
|
||||
<th class="icon" scope="col"><?php esc_html_e( 'Icon', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Equation', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Decimal Places', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Category', 'sportspress' ); ?></th>
|
||||
<?php if ( 'auto' === $columns ) { ?>
|
||||
<th scope="col">
|
||||
<?php _e( 'Visible', 'sportspress' ); ?>
|
||||
<i class="dashicons dashicons-editor-help sp-desc-tip" title="<?php _e( 'Display in player profile?', 'sportspress' ); ?>"></i>
|
||||
<?php esc_html_e( 'Visible', 'sportspress' ); ?>
|
||||
<i class="dashicons dashicons-editor-help sp-desc-tip" title="<?php esc_html_e( 'Display in player profile?', 'sportspress' ); ?>"></i>
|
||||
</th>
|
||||
<?php } ?>
|
||||
<th scope="col"><?php _e( 'Description', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Description', 'sportspress' ); ?></th>
|
||||
<th scope="col" class="edit"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -479,7 +479,7 @@ endforeach; else :
|
||||
$icon = ' ';
|
||||
}
|
||||
|
||||
echo apply_filters( 'sportspress_performance_icon', $icon, $row->ID );
|
||||
echo wp_kses_post( apply_filters( 'sportspress_performance_icon', $icon, $row->ID ) );
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo wp_kses_post( sp_get_post_equation( $row->ID ) ); ?></td>
|
||||
@@ -498,20 +498,20 @@ endforeach; else :
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td><p class="description"><?php echo wp_kses_post( $row->post_excerpt ); ?></p></td>
|
||||
<td class="edit"><a class="button" href="<?php echo get_edit_post_link( $row->ID ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></s></td>
|
||||
<td class="edit"><a class="button" href="<?php echo esc_url( get_edit_post_link( $row->ID ) ); ?>"><?php esc_html_e( 'Edit', 'sportspress' ); ?></s></td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
endforeach; else :
|
||||
?>
|
||||
<tr class="alternate">
|
||||
<td colspan="<?php echo $colspan; ?>"><?php _e( 'No results found.', 'sportspress' ); ?></td>
|
||||
<td colspan="<?php echo esc_attr( $colspan ); ?>"><?php esc_html_e( 'No results found.', 'sportspress' ); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<div class="tablenav bottom">
|
||||
<a class="button alignleft" href="<?php echo admin_url( 'edit.php?post_type=sp_statistic' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
||||
<a class="button button-primary alignright" href="<?php echo admin_url( 'post-new.php?post_type=sp_statistic' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
||||
<a class="button alignleft" href="<?php echo esc_url( admin_url( 'edit.php?post_type=sp_statistic' ) ); ?>"><?php esc_html_e( 'View All', 'sportspress' ); ?></a>
|
||||
<a class="button button-primary alignright" href="<?php echo esc_url( admin_url( 'post-new.php?post_type=sp_statistic' ) ); ?>"><?php esc_html_e( 'Add New', 'sportspress' ); ?></a>
|
||||
<br class="clear">
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user