Move sports presets class

This commit is contained in:
Brian Miyaji
2014-05-01 16:31:21 +10:00
parent 8344fa2748
commit b2cc43c134
10 changed files with 253 additions and 11 deletions

View File

@@ -39,7 +39,10 @@ class SP_Settings_General extends SP_Settings_Page {
* @return array
*/
public function get_settings() {
$sports = sp_get_sport_options();
$sports = new SP_Admin_Sports();
$presets = $sports->get_preset_options();
return apply_filters( 'sportspress_general_settings', array(
@@ -52,7 +55,7 @@ class SP_Settings_General extends SP_Settings_Page {
'id' => 'sportspress_sport',
'default' => 'soccer',
'type' => 'select',
'options' => $sports,
'options' => $presets,
),
array( 'type' => 'sectionend', 'id' => 'general_options' ),