Rename player metrics to player details
This commit is contained in:
@@ -23,7 +23,6 @@ class SP_Shortcodes {
|
|||||||
'event_list' => __CLASS__ . '::event_list',
|
'event_list' => __CLASS__ . '::event_list',
|
||||||
'event_calendar' => __CLASS__ . '::event_calendar',
|
'event_calendar' => __CLASS__ . '::event_calendar',
|
||||||
'league_table' => __CLASS__ . '::league_table',
|
'league_table' => __CLASS__ . '::league_table',
|
||||||
'player_metrics' => __CLASS__ . '::player_metrics',
|
|
||||||
'player_list' => __CLASS__ . '::player_list',
|
'player_list' => __CLASS__ . '::player_list',
|
||||||
'player_gallery' => __CLASS__ . '::player_gallery',
|
'player_gallery' => __CLASS__ . '::player_gallery',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ if ( ! function_exists( 'sportspress_output_league_table' ) ) {
|
|||||||
|
|
||||||
/** Single Player ********************************************************/
|
/** Single Player ********************************************************/
|
||||||
|
|
||||||
if ( ! function_exists( 'sportspress_output_player_metrics' ) ) {
|
if ( ! function_exists( 'sportspress_output_player_details' ) ) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Output the player metrics.
|
* Output the player metrics.
|
||||||
@@ -205,8 +205,8 @@ if ( ! function_exists( 'sportspress_output_player_metrics' ) ) {
|
|||||||
* @subpackage Player/Metrics
|
* @subpackage Player/Metrics
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function sportspress_output_player_metrics() {
|
function sportspress_output_player_details() {
|
||||||
sp_get_template( 'player-metrics.php' );
|
sp_get_template( 'player-details.php' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( ! function_exists( 'sportspress_output_player_performance' ) ) {
|
if ( ! function_exists( 'sportspress_output_player_performance' ) ) {
|
||||||
|
|||||||
@@ -61,10 +61,10 @@ add_action( 'sportspress_single_table_content', 'sportspress_output_league_table
|
|||||||
/**
|
/**
|
||||||
* Single Player Content
|
* Single Player Content
|
||||||
*
|
*
|
||||||
* @see sportspress_output_player_metrics()
|
* @see sportspress_output_player_details()
|
||||||
* @see sportspress_output_player_performance()
|
* @see sportspress_output_player_performance()
|
||||||
*/
|
*/
|
||||||
add_action( 'sportspress_single_player_content', 'sportspress_output_player_metrics', 10 );
|
add_action( 'sportspress_single_player_content', 'sportspress_output_player_details', 10 );
|
||||||
add_action( 'sportspress_single_player_content', 'sportspress_output_player_performance', 20 );
|
add_action( 'sportspress_single_player_content', 'sportspress_output_player_performance', 20 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Player Metrics
|
* Player Details
|
||||||
*
|
*
|
||||||
* @author ThemeBoy
|
* @author ThemeBoy
|
||||||
* @package SportsPress/Templates
|
* @package SportsPress/Templates
|
||||||
@@ -45,7 +45,7 @@ if ( $past_teams ):
|
|||||||
endif;
|
endif;
|
||||||
|
|
||||||
$output = '<div class="sp-list-wrapper">' .
|
$output = '<div class="sp-list-wrapper">' .
|
||||||
'<dl class="sp-player-metrics">';
|
'<dl class="sp-player-details">';
|
||||||
|
|
||||||
foreach( $data as $label => $value ):
|
foreach( $data as $label => $value ):
|
||||||
|
|
||||||
@@ -55,4 +55,4 @@ endforeach;
|
|||||||
|
|
||||||
$output .= '</dl></div>';
|
$output .= '</dl></div>';
|
||||||
|
|
||||||
echo apply_filters( 'sportspress_player_metrics', $output );
|
echo apply_filters( 'sportspress_player_details', $output );
|
||||||
Reference in New Issue
Block a user