Display metrics and statistics on player page
This commit is contained in:
@@ -2,23 +2,23 @@
|
||||
function sportspress_admin_post_thumbnail_html( $translated_text, $post_id ) {
|
||||
$texts = array(
|
||||
'sp_team' => array(
|
||||
'Set featured image' => 'Select Logo',
|
||||
'Remove featured image' => 'Remove Logo',
|
||||
'Set featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Logo', 'sportspress' ) ),
|
||||
'Remove featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Logo', 'sportspress' ) ),
|
||||
),
|
||||
'sp_player' => array(
|
||||
'Set featured image' => 'Select Photo',
|
||||
'Remove featured image' => 'Remove Photo',
|
||||
'Set featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
||||
'Remove featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
||||
),
|
||||
'sp_staff' => array(
|
||||
'Set featured image' => 'Select Photo',
|
||||
'Remove featured image' => 'Remove Photo',
|
||||
'Set featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
||||
'Remove featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
||||
),
|
||||
);
|
||||
|
||||
$typenow = get_post_type( $post_id );
|
||||
if ( is_admin() && array_key_exists( $typenow, $texts ) ):
|
||||
foreach ( $texts[ $typenow ] as $key => $value ):
|
||||
$translated_text = str_replace( __( $key ), __( $value, 'sportspress' ), $translated_text );
|
||||
$translated_text = str_replace( __( $key ), $value, $translated_text );
|
||||
endforeach;
|
||||
endif;
|
||||
return $translated_text;
|
||||
|
||||
Reference in New Issue
Block a user