',
],
]
);
$posts_per_page_tooltip = esc_html__( 'The number of events per page on the List View. Does not affect other views.', 'the-events-calendar' );
if ( class_exists( 'Tribe__Events__Pro__Main' ) ) {
$posts_per_page_tooltip = esc_html__( 'The number of events per page on the List, Photo, and Map Views. Does not affect other views.', 'the-events-calendar' );
}
$general_tab_fields = Tribe__Main::array_insert_before_key(
'debugEvents',
$general_tab_fields,
[
'tribeEventsDisplayThemeTitle' => [
'type' => 'html',
'html' => '
',
],
'postsPerPage' => [
'type' => 'text',
'label' => esc_html__( 'Number of events to show per page', 'the-events-calendar' ),
'tooltip' => $posts_per_page_tooltip,
'size' => 'small',
'default' => tribe_events_views_v2_is_enabled() ? 12 : get_option( 'posts_per_page' ),
'validation_type' => 'positive_int',
],
'showComments' => [
'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',
],
'disable_metabox_custom_fields' => [
'type' => 'checkbox_bool',
'label' => esc_html__( 'Show Custom Fields metabox', 'the-events-calendar' ),
'tooltip' => esc_html__( 'Enable WordPress Custom Fields on events in the classic editor.', 'the-events-calendar' ),
'default' => true,
'validation_type' => 'boolean',
],
'showEventsInMainLoop' => [
'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' => [
'type' => 'wrapped_html',
'label' => esc_html__( 'Events URL slug', 'the-events-calendar' ),
'html' => '
'
. sprintf(
__( 'The current URL for your events page is %1$s.
You cannot edit the slug for your events page as you do not have pretty permalinks enabled. In order to edit the slug here, enable pretty permalinks.', 'the-events-calendar' ),
sprintf (
'%2$s',
esc_url( $tec->getLink( 'home' ) ),
esc_url( $tec->getLink( 'home' ) )
),
esc_url( trailingslashit( get_admin_url() ) . 'options-permalink.php' )
)
. '
' . sprintf( __( 'The above should ideally be plural, and this singular. Your single event URL is: %s', 'the-events-calendar' ), '' . trailingslashit( home_url() ) . urldecode( 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' ) ),
],
'defaultCurrencySymbol' => [
'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' => [
'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' => [
'type' => 'html',
'html' => '',
],
tribe( 'tec.event-cleaner' )->key_trash_events => [
'type' => 'dropdown',
'label' => esc_html__( 'Move to trash events older than', 'the-events-calendar' ),
'tooltip' => esc_html__( 'This option allows you to automatically move past events to trash.', 'the-events-calendar' ),
'validation_type' => 'options',
'size' => 'small',
'default' => null,
'options' => [
null => esc_html__( 'Disabled', 'the-events-calendar' ),
1 => esc_html__( '1 month', 'the-events-calendar' ),
3 => esc_html__( '3 months', 'the-events-calendar' ),
6 => esc_html__( '6 months', 'the-events-calendar' ),
9 => esc_html__( '9 months', 'the-events-calendar' ),
12 => esc_html__( '1 year', 'the-events-calendar' ),
24 => esc_html__( '2 years', 'the-events-calendar' ),
36 => esc_html__( '3 years', 'the-events-calendar' ),
],
],
tribe( 'tec.event-cleaner' )->key_delete_events => [
'type' => 'dropdown',
'label' => esc_html__( 'Permanently delete events older than', 'the-events-calendar' ),
'tooltip' => esc_html__( 'This option allows you to bulk delete past events. Be careful and backup your database before removing your events as there is no way to reverse the changes.', 'the-events-calendar' ),
'validation_type' => 'options',
'size' => 'small',
'default' => null,
'options' => [
null => esc_html__( 'Disabled', 'the-events-calendar' ),
1 => esc_html__( '1 month', 'the-events-calendar' ),
3 => esc_html__( '3 months', 'the-events-calendar' ),
6 => esc_html__( '6 months', 'the-events-calendar' ),
9 => esc_html__( '9 months', 'the-events-calendar' ),
12 => esc_html__( '1 year', 'the-events-calendar' ),
24 => esc_html__( '2 years', 'the-events-calendar' ),
36 => esc_html__( '3 years', 'the-events-calendar' ),
],
],
'tribeEventsMiscellaneousTitle' => [
'type' => 'html',
'html' => '