Complete refactoring and add style settings

This commit is contained in:
Brian Miyaji
2014-03-28 01:48:52 +11:00
parent d3b27c8c73
commit 7e6b4adb9b
83 changed files with 2063 additions and 7028 deletions

View File

@@ -7,19 +7,19 @@ $time = get_the_time( get_option('time_format'), $id );
$leagues = get_the_terms( $id, 'sp_league' );
$seasons = get_the_terms( $id, 'sp_season' );
$data = array( __( 'Date', 'sportspress' ) => $date, __( 'Time', 'sportspress' ) => $time );
$data = array( SP()->text->string('Date', 'event') => $date, SP()->text->string('Time', 'event') => $time );
if ( $leagues ):
$league = array_pop( $leagues );
$data[ __( 'League', 'sportspress' ) ] = $league->name;
$data[ SP()->text->string('League') ] = $league->name;
endif;
if ( $seasons ):
$season = array_pop( $seasons );
$data[ __( 'Season', 'sportspress' ) ] = $season->name;
$data[ SP()->text->string('Season') ] = $season->name;
endif;
$output = '<h3>' . __( 'Details', 'sportspress' ) . '</h3>';
$output = '<h3>' . SP()->text->string('Details', 'event') . '</h3>';
$output .= '<div class="sp-table-wrapper">' .
'<table class="sp-event-details sp-data-table"><tbody>';