Display shorter names in player columns meta box

This commit is contained in:
Brian Miyaji
2016-03-30 23:30:03 +11:00
parent 6e2db373a1
commit 4e73d602cc
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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' ),