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

@@ -7,10 +7,10 @@ if ( !function_exists( 'sportspress_player_metrics' ) ) {
global $sportspress_countries;
$options = get_option( 'sportspress' );
global $sportspress_options;
$defaults = array(
'show_nationality_flag' => sportspress_array_value( $options, 'player_show_nationality_flag', true ),
'show_nationality_flag' => sportspress_array_value( $sportspress_options, 'player_show_nationality_flag', true ),
);
$r = wp_parse_args( $args, $defaults );