Abbreviate team names independently

This commit is contained in:
Brian Miyaji
2016-04-13 23:59:21 +10:00
parent 99c29a0766
commit 6ba028f2cf
11 changed files with 31 additions and 26 deletions

View File

@@ -231,7 +231,7 @@ function sp_get_logo_url( $post = 0, $size = 'icon' ) {
}
function sp_get_abbreviation( $post = 0 ) {
return get_post_meta ( $post, 'sp_abbreviation', true );
return get_post_meta( $post, 'sp_abbreviation', true );
}
function sp_get_venues( $post = 0, $ids = true ) {
@@ -286,6 +286,14 @@ function sp_short_name( $post = 0 ) {
echo sp_get_short_name( $post );
}
function sp_get_team_name( $post = 0, $short = true ) {
if ( $short ) {
return sp_get_short_name( $post );
} else {
return get_the_title( $post );
}
}
function sp_team_details( $post = 0 ) {
sp_get_template( 'team-details.php', array( 'id' => $post ) );
}