[ 'type' => 'html', 'html' => '
', ], 'upsell-heading' => [ 'type' => 'heading', 'label' => tec_should_hide_upsell() ? esc_html__( 'Finding your calendar.', 'the-events-calendar' ) : esc_html__( 'Finding & extending your calendar.', 'the-events-calendar' ), ], 'tec-setup-guide' => [ 'type' => 'html', 'html' => '

' . 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' => '', ], 'ical-info' => [ 'type' => 'html', 'display_callback' => '', 'conditional' => function_exists( 'tribe_get_ical_link' ), // @TODO: this never loads. ], 'info-end' => [ 'type' => 'html', 'html' => '
', ], ]; $general_tab = new Tribe__Settings_Tab( 'general', esc_html__( 'General', 'the-events-calendar' ), [ 'priority' => 0, 'fields' => [], // Parent tabs don't have content of their own! ] ); // Add each of the sub-tabs. $viewing_tab = require_once __DIR__ . '/settings/tabs/general/general-viewing.php'; $general_tab->add_child( $viewing_tab ); $editing_tab = require_once __DIR__ . '/settings/tabs/general/general-editing.php'; $general_tab->add_child( $editing_tab ); $maintenance_tab = require_once __DIR__ . '/settings/tabs/general/general-maintenance.php'; $general_tab->add_child( $maintenance_tab ); $debugging_tab = require_once __DIR__ . '/settings/tabs/general/general-debugging.php'; $general_tab->add_child( $debugging_tab ); /** * Fires after the general tab has been set up. * * @param Tribe__Settings_Tab $general_tab The general tab. */ do_action( 'tec_events_settings_tab_general', $general_tab ); return $general_tab;