Add filter to event settings
This commit is contained in:
@@ -44,7 +44,8 @@ class SP_Settings_Events extends SP_Settings_Page {
|
|||||||
array( 'title' => __( 'Event Options', 'sportspress' ), 'type' => 'title', 'desc' => '', 'id' => 'event_options' ),
|
array( 'title' => __( 'Event Options', 'sportspress' ), 'type' => 'title', 'desc' => '', 'id' => 'event_options' ),
|
||||||
),
|
),
|
||||||
|
|
||||||
apply_filters( 'sportspress_event_options', array(
|
apply_filters( 'sportspress_event_options', array_merge(
|
||||||
|
array(
|
||||||
array(
|
array(
|
||||||
'title' => __( 'Link', 'sportspress' ),
|
'title' => __( 'Link', 'sportspress' ),
|
||||||
'desc' => __( 'Link events', 'sportspress' ),
|
'desc' => __( 'Link events', 'sportspress' ),
|
||||||
@@ -52,7 +53,9 @@ class SP_Settings_Events extends SP_Settings_Page {
|
|||||||
'default' => 'yes',
|
'default' => 'yes',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
apply_filters( 'sportspress_event_template_options', array(
|
||||||
array(
|
array(
|
||||||
'title' => __( 'Templates', 'sportspress' ),
|
'title' => __( 'Templates', 'sportspress' ),
|
||||||
'desc' => __( 'Logos', 'sportspress' ),
|
'desc' => __( 'Logos', 'sportspress' ),
|
||||||
@@ -93,7 +96,9 @@ class SP_Settings_Events extends SP_Settings_Page {
|
|||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'checkboxgroup' => 'end',
|
'checkboxgroup' => 'end',
|
||||||
),
|
),
|
||||||
|
) ),
|
||||||
|
|
||||||
|
array(
|
||||||
array(
|
array(
|
||||||
'title' => __( 'Mode', 'sportspress' ),
|
'title' => __( 'Mode', 'sportspress' ),
|
||||||
'id' => 'sportspress_load_individual_mode_module',
|
'id' => 'sportspress_load_individual_mode_module',
|
||||||
@@ -123,6 +128,23 @@ class SP_Settings_Events extends SP_Settings_Page {
|
|||||||
|
|
||||||
array( 'type' => 'delimiter' ),
|
array( 'type' => 'delimiter' ),
|
||||||
|
|
||||||
|
array(
|
||||||
|
'title' => __( 'Logos', 'sportspress' ),
|
||||||
|
'desc' => __( 'Display team names', 'sportspress' ),
|
||||||
|
'id' => 'sportspress_event_logos_show_team_names',
|
||||||
|
'default' => 'no',
|
||||||
|
'type' => 'checkbox',
|
||||||
|
'checkboxgroup' => 'start',
|
||||||
|
),
|
||||||
|
|
||||||
|
array(
|
||||||
|
'desc' => __( 'Display results', 'sportspress' ),
|
||||||
|
'id' => 'sportspress_event_logos_show_results',
|
||||||
|
'default' => 'no',
|
||||||
|
'type' => 'checkbox',
|
||||||
|
'checkboxgroup' => 'end',
|
||||||
|
),
|
||||||
|
|
||||||
array(
|
array(
|
||||||
'title' => __( 'Teams', 'sportspress' ),
|
'title' => __( 'Teams', 'sportspress' ),
|
||||||
'desc' => __( 'Filter by competition', 'sportspress' ),
|
'desc' => __( 'Filter by competition', 'sportspress' ),
|
||||||
@@ -190,6 +212,7 @@ class SP_Settings_Events extends SP_Settings_Page {
|
|||||||
'default' => 'no',
|
'default' => 'no',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
),
|
),
|
||||||
|
)
|
||||||
) ),
|
) ),
|
||||||
|
|
||||||
array(
|
array(
|
||||||
|
|||||||
Reference in New Issue
Block a user