'. esc_html__( 'Looking for additional functionality including recurring events, custom meta, community events, ticket sales and more?', 'the-events-calendar' )
],
'tec-add-ons-link' => [
'type' => 'html',
'html' => sprintf(
' %2$s
',
esc_url( 'edit.php?post_type=tribe_events&page=tribe-app-shop' ),
esc_html_x( 'Check out the available add-ons.', 'Text for link to the add-ons page.', 'the-events-calendar')
),
],
'tec-links-section-start' => [
'type' => 'html',
'html' => '
' . esc_html__( 'If you’re enjoying The Events Calendar, give us kudos by including a link in the footer of calendar views. It really helps us a lot.', 'the-events-calendar' ) . '
'
. 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/' ) . '
',
'conditional' => ( '' != get_option( 'permalink_structure' ) ),
],
'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',
],
'enable_month_view_cache' => [
'type' => 'checkbox_bool',
'label' => __( 'Enable the Month View Cache', 'the-events-calendar' ),
'tooltip' => sprintf( __( 'Check this to cache your month view HTML in transients, which can help improve calendar speed on sites with many events. Read more.', 'the-events-calendar' ), 'https://evnt.is/18di' ),
'default' => true,
'validation_type' => 'boolean',
],
];
$general_tab_fields += apply_filters( 'tribe_general_settings_viewing_section', $tec_events_general_viewing );
$is_missing_aggregator_license_key = '' === get_option( 'pue_install_key_event_aggregator' );
$should_hide_upsell = tec_should_hide_upsell();
// Add the "Editing" section.
$tec_events_general_editing = [
'tec-events-settings-general-editing-title' => [
'type' => 'html',
'html' => '
' . esc_html_x( 'Editing', 'Title for the editing section of the general settings.', 'the-events-calendar' ) . '
' . __( 'There is a solution for every problem', 'the-events-calendar' ) . '
',
],
'tec-troubleshooting-infobox-content' => [
'type' => 'html',
'html' => sprintf(
/* Translators: %1$s - opening paragraph tag, %2$s - opening anchor tag, %3$s - closing anchor tag, %4$s - closing paragraph tag */
__( '%1$sSometimes things just don’t work as expected. The %2$stroubleshooting page%3$s has a wealth of resources to get you back on track.%4$s', 'the-events-calendar' ),
'
',
],
'debugEvents' => [
'type' => 'checkbox_bool',
'label' => esc_html__( 'Debug mode', 'the-event-calendar' ),
'tooltip' => sprintf(
esc_html__(
'Enable this option to log debug information. By default this will log to your server PHP error log. If you\'d like to see the log messages in your browser, then we recommend that you install the %s and look for the "Tribe" tab in the debug output.',
'the-event-calendar'
),
'' . esc_html__( 'Debug Bar Plugin', 'the-event-calendar' ) . ''
),
'default' => false,
'validation_type' => 'boolean',
'conditional' => is_super_admin()
],
];
$general_tab_fields += apply_filters( 'tribe_general_settings_debugging_section', $tec_events_general_debugging );
// Close the form content wrapper.
$general_tab_fields += [
'tribe-form-content-end' => [
'type' => 'html',
'html' => '