array( 'type' => 'heading', 'label' => esc_html__( 'Finding & extending your calendar.', 'the-events-calendar' ), 'conditional' => ( ! defined( 'TRIBE_HIDE_UPSELL' ) || ! TRIBE_HIDE_UPSELL ), ), 'finding-heading' => array( 'type' => 'heading', 'label' => esc_html__( 'Finding your calendar.', 'the-events-calendar' ), 'conditional' => ( defined( 'TRIBE_HIDE_UPSELL' ) && TRIBE_HIDE_UPSELL ), ), 'view-calendar-link' => array( 'type' => 'html', 'html' => '

' . esc_html__( 'Where\'s my calendar?', 'the-events-calendar' ) . ' ' . esc_html__( 'Right here', 'the-events-calendar' ) . '.

', ), ) ); $general_tab_fields = Tribe__Main::array_insert_before_key( 'debugEvents', $general_tab_fields, array( 'tribeEventsDisplayThemeTitle' => array( 'type' => 'html', 'html' => '

' . esc_html__( 'General Settings', 'the-events-calendar' ) . '

', ), 'postsPerPage' => array( 'type' => 'text', 'label' => esc_html__( 'Number of events to show per page', 'the-events-calendar' ), 'size' => 'small', 'default' => get_option( 'posts_per_page' ), 'validation_type' => 'positive_int', ), 'liveFiltersUpdate' => array( 'type' => 'checkbox_bool', 'label' => esc_html__( 'Use Javascript to control date filtering', 'the-events-calendar' ), 'tooltip' => tribe_get_option( 'tribeDisableTribeBar', false ) == true ? esc_html__( 'This option is disabled when "Disable the Event Search Bar" is checked on the Display settings tab.', 'the-events-calendar' ) : esc_html__( 'Enable live ajax for datepicker on front end (User submit not required).', 'the-events-calendar' ), 'attributes' => tribe_get_option( 'tribeDisableTribeBar', false ) == true ? array( 'disabled' => 'disabled' ) : null, 'default' => true, 'validation_type' => 'boolean', 'class' => tribe_get_option( 'tribeDisableTribeBar', false ) == true ? 'tribe-fieldset-disabled' : null, ), 'showComments' => array( 'type' => 'checkbox_bool', 'label' => esc_html__( 'Show comments', 'the-events-calendar' ), 'tooltip' => esc_html__( 'Enable comments on event pages.', 'the-events-calendar' ), 'default' => false, 'validation_type' => 'boolean', ), 'showEventsInMainLoop' => array( 'type' => 'checkbox_bool', 'label' => esc_html__( 'Include events in main blog loop', 'the-events-calendar' ), 'tooltip' => esc_html__( 'Show events with the site\'s other posts. When this box is checked, events will also continue to appear on the default events page.', 'the-events-calendar' ), 'default' => false, 'validation_type' => 'boolean', ), 'unprettyPermalinksUrl' => array( 'type' => 'html', 'label' => esc_html__( 'Events URL slug', 'the-events-calendar' ), 'html' => '

' . sprintf( __( 'You cannot edit the slug for your events page as you do not have pretty permalinks enabled. The current URL for your events page is %2$s. In order to edit the slug here, enable pretty permalinks.', 'the-events-calendar' ), esc_url( $tec->getLink( 'home' ) ), $tec->getLink( 'home ' ), esc_url( trailingslashit( get_admin_url() ) ) ) . '

', 'conditional' => ( '' == get_option( 'permalink_structure' ) ), ), 'eventsSlug' => array( 'type' => 'text', 'label' => esc_html__( 'Events URL slug', 'the-events-calendar' ), 'default' => 'events', 'validation_type' => 'slug', 'conditional' => ( '' != get_option( 'permalink_structure' ) ), ), 'current-events-slug' => array( 'type' => 'html', 'html' => '

' . esc_html__( 'The slug used for building the events URL.', 'the-events-calendar' ) . sprintf( esc_html__( 'Your current events URL is: %s', 'the-events-calendar' ), '' . tribe_get_events_link() . '' ) . '

', 'conditional' => ( '' != get_option( 'permalink_structure' ) ), ), 'ical-info' => array( 'type' => 'html', 'display_callback' => ( function_exists( 'tribe_get_ical_link' ) ) ? '' : '', 'conditional' => function_exists( 'tribe_get_ical_link' ), ), 'singleEventSlug' => array( 'type' => 'text', 'label' => esc_html__( 'Single event URL slug', 'the-events-calendar' ), 'default' => 'event', 'validation_type' => 'slug', 'conditional' => ( '' != get_option( 'permalink_structure' ) ), ), 'current-single-event-slug' => array( 'type' => 'html', 'html' => '

' . sprintf( __( 'The above should ideally be plural, and this singular.
Your single event URL is: %s', 'the-events-calendar' ), '' . trailingslashit( home_url() ) . tribe_get_option( 'singleEventSlug', 'event' ) . '/single-post-name/' ) . '

', 'conditional' => ( '' != get_option( 'permalink_structure' ) ), ), 'multiDayCutoff' => array( 'type' => 'dropdown', 'label' => esc_html__( 'End of day cutoff', 'the-events-calendar' ), 'validation_type' => 'options', 'size' => 'small', 'default' => '12:00', 'options' => array( '00:00' => '12:00 am', '01:00' => '01:00 am', '02:00' => '02:00 am', '03:00' => '03:00 am', '04:00' => '04:00 am', '05:00' => '05:00 am', '06:00' => '06:00 am', '07:00' => '07:00 am', '08:00' => '08:00 am', '09:00' => '09:00 am', '10:00' => '10:00 am', '11:00' => '11:00 am', ), ), 'multiDayCutoffHelper' => array( 'type' => 'html', 'html' => '

' . sprintf( esc_html__( "Have an event that runs past midnight? Select a time after that event's end to avoid showing the event on the next day's calendar.", 'the-events-calendar' ) ) . '

', 'conditional' => ( '' != get_option( 'permalink_structure' ) ), ), 'defaultCurrencySymbol' => array( 'type' => 'text', 'label' => esc_html__( 'Default currency symbol', 'the-events-calendar' ), 'tooltip' => esc_html__( 'Set the default currency symbol for event costs. Note that this only impacts future events, and changes made will not apply retroactively.', 'the-events-calendar' ), 'validation_type' => 'textarea', 'size' => 'small', 'default' => '$', ), 'reverseCurrencyPosition' => array( 'type' => 'checkbox_bool', 'label' => esc_html__( 'Currency symbol follows value', 'the-events-calendar' ), 'tooltip' => esc_html__( 'The currency symbol normally precedes the value. Enabling this option positions the symbol after the value.', 'the-events-calendar' ), 'default' => false, 'validation_type' => 'boolean', ), 'amalgamateDuplicates' => array( 'type' => 'html', 'html' => '
' . esc_html__( 'Duplicate Venues & Organizers', 'the-events-calendar' ) . '
' . Tribe__Events__Amalgamator::migration_button( esc_html__( 'Merge Duplicates', 'the-events-calendar' ) ) . '

' . esc_html__( 'You might find duplicate venues and organizers when updating The Events Calendar from a pre-3.0 version. Click this button to automatically merge identical venues and organizers.', 'the-events-calendar' ) . '

', 'conditional' => ( Tribe__Settings_Manager::get_option( 'organizer_venue_amalgamation', 0 ) < 1 ), ), 'tribeEventsMiscellaneousTitle' => array( 'type' => 'html', 'html' => '

' . esc_html__( 'Miscellaneous Settings', 'the-events-calendar' ) . '

', ), ) ); $general_tab_fields = Tribe__Main::array_insert_after_key( 'tribeEventsMiscellaneousTitle', $general_tab_fields, array( 'viewWelcomePage' => array( 'type' => 'html', 'html' => '
' . esc_html__( 'View Welcome Page', 'the-events-calendar' ) . '
' . esc_html__( 'View Welcome Page', 'the-events-calendar' ) . '

' . esc_html__( 'View the page that displayed when you initially installed the plugin.', 'the-events-calendar' ) . '

', ), 'viewUpdatePage' => array( 'type' => 'html', 'html' => '
' . esc_html__( 'View Update Page', 'the-events-calendar' ) . '
' . esc_html__( 'View Update Page', 'the-events-calendar' ) . '

' . esc_html__( 'View the page that displayed when you updated the plugin.', 'the-events-calendar' ) . '

', ), ) ); $general_tab_fields = Tribe__Main::array_insert_before_key( 'tribeEventsMiscellaneousTitle', $general_tab_fields, array( 'tribeEventsDisplayTitle' => array( 'type' => 'html', 'html' => '

' . esc_html__( 'Map Settings', 'the-events-calendar' ) . '

', ), 'embedGoogleMaps' => array( 'type' => 'checkbox_bool', 'label' => esc_html__( 'Enable Google Maps', 'the-events-calendar' ), 'tooltip' => esc_html__( 'Check to enable maps for events and venues.', 'the-events-calendar' ), 'default' => true, 'class' => 'google-embed-size', 'validation_type' => 'boolean', ), 'embedGoogleMapsZoom' => array( 'type' => 'text', 'label' => esc_html__( 'Google Maps default zoom level', 'the-events-calendar' ), 'tooltip' => esc_html__( '0 = zoomed out; 21 = zoomed in.', 'the-events-calendar' ), 'size' => 'small', 'default' => 10, 'class' => 'google-embed-field', 'validation_type' => 'number_or_percent', ), ) ); return $general_tab_fields;