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( 'defaultCurrencySymbol', $general_tab_fields, array( '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() . '' ) . '
' . esc_html__( 'Here is the iCal feed URL for your events:', 'the-events-calendar' ) . ' ' . tribe_get_ical_link() . '
' . 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/' ) . '
' . 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' ) ), ), ) ); $general_tab_fields = Tribe__Main::array_insert_before_key( 'tribeEventsMiscellaneousTitle', $general_tab_fields, array( 'amalgamateDuplicates' => array( 'type' => 'html', 'html' => '', 'conditional' => ( Tribe__Settings_Manager::get_option( 'organizer_venue_amalgamation', 0 ) < 1 ), ), ) ); $general_tab_fields = Tribe__Main::array_insert_before_key( 'tribeEventsMiscellaneousTitle', $general_tab_fields, array( 'tribeEventsDisplayTitle' => array( 'type' => 'html', 'html' => '