Display shorter names in player columns meta box
This commit is contained in:
@@ -26,7 +26,7 @@ class SP_Meta_Box_Player_Columns {
|
||||
<?php if ( $tabs ) { ?>
|
||||
<ul id="sp_column-tabs" class="wp-tab-bar sp-tab-bar">
|
||||
<?php foreach ( $tabs as $index => $post_type ) { $object = get_post_type_object( $post_type ); ?>
|
||||
<li class="wp-tab<?php if ( 0 == $index ) { ?>-active<?php } ?>"><a href="#<?php echo $post_type; ?>-all"><?php echo $object->labels->name; ?></a></li>
|
||||
<li class="wp-tab<?php if ( 0 == $index ) { ?>-active<?php } ?>"><a href="#<?php echo $post_type; ?>-all"><?php echo $object->labels->menu_name; ?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php
|
||||
|
||||
@@ -321,6 +321,7 @@ class SP_Post_types {
|
||||
array(
|
||||
'labels' => array(
|
||||
'name' => __( 'Player Performance', 'sportspress' ),
|
||||
'menu_name' => __( 'Performance', 'sportspress' ),
|
||||
'singular_name' => __( 'Player Performance', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Performance', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Performance', 'sportspress' ),
|
||||
@@ -351,6 +352,7 @@ class SP_Post_types {
|
||||
array(
|
||||
'labels' => array(
|
||||
'name' => __( 'Player Statistics', 'sportspress' ),
|
||||
'menu_name' => __( 'Statistics', 'sportspress' ),
|
||||
'singular_name' => __( 'Statistic', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Statistic', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Statistic', 'sportspress' ),
|
||||
|
||||
Reference in New Issue
Block a user