Enable individual sport mode

This commit is contained in:
Brian Miyaji
2014-06-19 15:37:16 +10:00
parent cdf74285d5
commit 33069f395d
12 changed files with 217 additions and 124 deletions

View File

@@ -5,7 +5,7 @@
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin
* @version 0.8
* @version 1.1
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -42,25 +42,29 @@ class SP_Settings_Config extends SP_Settings_Page {
*/
public function get_settings() {
return apply_filters('sportspress_config_settings', array(
$settings = array(
array( 'title' => __( 'Configure SportsPress', 'sportspress' ), 'type' => 'title','desc' => '', 'id' => 'config_options' ),
array( 'type' => 'outcomes' ),
array( 'type' => 'results' ),
);
array( 'type' => 'performance' ),
if ( SP()->mode == 'team' ) $settings[] = array( 'type' => 'performance' );
array( 'type' => 'columns' ),
$settings[] = array( 'type' => 'columns' );
array( 'type' => 'metrics' ),
if ( SP()->mode == 'team' ):
$settings = array_merge( $settings, array(
array( 'type' => 'metrics' ),
array( 'type' => 'statistics' ),
array( 'type' => 'statistics' ),
));
endif;
array( 'type' => 'sectionend', 'id' => 'config_options' ),
$settings[] = array( 'type' => 'sectionend', 'id' => 'config_options' ); // End event settings
)); // End event settings
return apply_filters( 'sportspress_config_settings', $settings );
}
/**