Display venue map, fix table and sports sorting, support player excerpts

This commit is contained in:
Brian Miyaji
2014-02-08 13:17:48 +11:00
parent 4c0f8c5126
commit c54bbade6d
12 changed files with 92 additions and 34 deletions

View File

@@ -3,7 +3,6 @@ function sportspress_gettext( $translated_text, $untranslated_text, $domain ) {
global $typenow;
if ( is_admin() ):
if ( 'sp_team' == $typenow ):
switch ( $untranslated_text ):
case 'Enter title here':
@@ -44,6 +43,14 @@ function sportspress_gettext( $translated_text, $untranslated_text, $domain ) {
break;
endswitch;
endif;
else:
if ( $untranslated_text == 'Archives' && is_tax( 'sp_venue' ) ):
$slug = get_query_var( 'sp_venue' );
if ( $slug ):
$venue = get_term_by( 'slug', $slug, 'sp_venue' );
$translated_text = $venue->name;
endif;
endif;
endif;
return $translated_text;