Merge globals into single file, load options, and add text settings page

This commit is contained in:
Brian Miyaji
2014-03-18 16:39:53 +11:00
parent ee33f7b630
commit 37ebe39620
25 changed files with 748 additions and 497 deletions

View File

@@ -46,8 +46,8 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
break;
elseif ( $post_type == 'sp_event' ):
$results = get_post_meta( $post_id, 'sp_results', true );
$options = get_option( 'sportspress' );
$main_result = sportspress_array_value( $options, 'main_result', null );
global $sportspress_options;
$main_result = sportspress_array_value( $sportspress_options, 'main_result', null );
foreach( $teams as $team_id ):
if ( ! $team_id ) continue;
$team = get_post( $team_id );