Tidy up event settings and add referee options
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
* @author ThemeBoy
|
* @author ThemeBoy
|
||||||
* @category Admin
|
* @category Admin
|
||||||
* @package SportsPress/Admin
|
* @package SportsPress/Admin
|
||||||
* @version 2.3
|
* @version 2.5
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
@@ -137,45 +137,9 @@ class SP_Settings_Events extends SP_Settings_Page {
|
|||||||
'id' => 'sportspress_event_filter_teams_by_season',
|
'id' => 'sportspress_event_filter_teams_by_season',
|
||||||
'default' => 'no',
|
'default' => 'no',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'checkboxgroup' => '',
|
|
||||||
),
|
|
||||||
|
|
||||||
array(
|
|
||||||
'desc' => __( 'Reverse order', 'sportspress' ),
|
|
||||||
'id' => 'sportspress_event_reverse_teams',
|
|
||||||
'default' => 'no',
|
|
||||||
'type' => 'checkbox',
|
|
||||||
'checkboxgroup' => 'end',
|
'checkboxgroup' => 'end',
|
||||||
),
|
),
|
||||||
|
|
||||||
array(
|
|
||||||
'title' => __( 'Venues', 'sportspress' ),
|
|
||||||
'desc' => __( 'Display maps', 'sportspress' ),
|
|
||||||
'id' => 'sportspress_event_show_maps',
|
|
||||||
'default' => 'yes',
|
|
||||||
'type' => 'checkbox',
|
|
||||||
'checkboxgroup' => 'start',
|
|
||||||
),
|
|
||||||
|
|
||||||
array(
|
|
||||||
'desc' => __( 'Link venues', 'sportspress' ),
|
|
||||||
'id' => 'sportspress_link_venues',
|
|
||||||
'default' => 'no',
|
|
||||||
'type' => 'checkbox',
|
|
||||||
'checkboxgroup' => 'end',
|
|
||||||
),
|
|
||||||
|
|
||||||
array(
|
|
||||||
'title' => __( 'Google Maps', 'sportspress' ),
|
|
||||||
'id' => 'sportspress_map_type',
|
|
||||||
'default' => 'ROADMAP',
|
|
||||||
'type' => 'radio',
|
|
||||||
'options' => array(
|
|
||||||
'ROADMAP' => __( 'Default', 'sportspress' ),
|
|
||||||
'SATELLITE' => __( 'Satellite', 'sportspress' ),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
|
|
||||||
array(
|
array(
|
||||||
'title' => __( 'Full Time', 'sportspress' ),
|
'title' => __( 'Full Time', 'sportspress' ),
|
||||||
'id' => 'sportspress_event_minutes',
|
'id' => 'sportspress_event_minutes',
|
||||||
@@ -208,6 +172,33 @@ class SP_Settings_Events extends SP_Settings_Page {
|
|||||||
),
|
),
|
||||||
|
|
||||||
apply_filters( 'sportspress_venue_options', array(
|
apply_filters( 'sportspress_venue_options', array(
|
||||||
|
array(
|
||||||
|
'title' => __( 'Link', 'sportspress' ),
|
||||||
|
'desc' => __( 'Link venues', 'sportspress' ),
|
||||||
|
'id' => 'sportspress_link_venues',
|
||||||
|
'default' => 'no',
|
||||||
|
'type' => 'checkbox',
|
||||||
|
),
|
||||||
|
|
||||||
|
array(
|
||||||
|
'title' => __( 'Google Maps', 'sportspress' ),
|
||||||
|
'desc' => __( 'Display maps', 'sportspress' ),
|
||||||
|
'id' => 'sportspress_event_show_maps',
|
||||||
|
'default' => 'yes',
|
||||||
|
'type' => 'checkbox',
|
||||||
|
),
|
||||||
|
|
||||||
|
array(
|
||||||
|
'title' => __( 'Type', 'sportspress' ),
|
||||||
|
'id' => 'sportspress_map_type',
|
||||||
|
'default' => 'ROADMAP',
|
||||||
|
'type' => 'radio',
|
||||||
|
'options' => array(
|
||||||
|
'ROADMAP' => __( 'Default', 'sportspress' ),
|
||||||
|
'SATELLITE' => __( 'Satellite', 'sportspress' ),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
array(
|
array(
|
||||||
'title' => __( 'Zoom', 'sportspress' ),
|
'title' => __( 'Zoom', 'sportspress' ),
|
||||||
'id' => 'sportspress_map_zoom',
|
'id' => 'sportspress_map_zoom',
|
||||||
@@ -232,6 +223,14 @@ class SP_Settings_Events extends SP_Settings_Page {
|
|||||||
),
|
),
|
||||||
|
|
||||||
apply_filters( 'sportspress_event_logo_options', array(
|
apply_filters( 'sportspress_event_logo_options', array(
|
||||||
|
array(
|
||||||
|
'title' => __( 'Order', 'sportspress' ),
|
||||||
|
'desc' => __( 'Reverse order', 'sportspress' ),
|
||||||
|
'id' => 'sportspress_event_reverse_teams',
|
||||||
|
'default' => 'no',
|
||||||
|
'type' => 'checkbox',
|
||||||
|
),
|
||||||
|
|
||||||
array(
|
array(
|
||||||
'title' => __( 'Layout', 'sportspress' ),
|
'title' => __( 'Layout', 'sportspress' ),
|
||||||
'id' => 'sportspress_event_logos_format',
|
'id' => 'sportspress_event_logos_format',
|
||||||
|
|||||||
Reference in New Issue
Block a user