Add venue map zoom setting

This commit is contained in:
Brian Miyaji
2015-09-18 12:19:44 +10:00
parent 1d710b6e2b
commit cefbd283f2
3 changed files with 26 additions and 2 deletions

View File

@@ -214,6 +214,30 @@ class SP_Settings_Events extends SP_Settings_Page {
array( 'type' => 'sectionend', 'id' => 'event_options' ),
),
array(
array( 'title' => __( 'Venues', 'sportspress' ), 'type' => 'title', 'desc' => '', 'id' => 'venue_options' ),
),
apply_filters( 'sportspress_venue_options', array(
array(
'title' => __( 'Zoom', 'sportspress' ),
'id' => 'sportspress_map_zoom',
'class' => 'small-text',
'default' => '15',
'desc' => '0 - 21',
'type' => 'number',
'custom_attributes' => array(
'min' => 0,
'max' => 21,
'step' => 1
),
),
) ),
array(
array( 'type' => 'sectionend', 'id' => 'venue_options' ),
),
array(
array( 'title' => __( 'Event Results', 'sportspress' ), 'type' => 'title', 'desc' => '', 'id' => 'result_options' ),
),