get_url( array( 'tab' => 'addons' ) ); // if there's an Event Aggregator license key, add the Meetup.com API fields if ( get_option( 'pue_install_key_event_aggregator' ) ) { $internal = array( 'meetup-start' => array( 'type' => 'html', 'html' => '
' . esc_html__( 'You need a Meetup API Key to import your events from Meetup.', 'the-events-calendar' ) . '
', ), 'meetup_api_key' => array( 'type' => 'text', 'label' => esc_html__( 'Meetup API Key', 'the-events-calendar' ), 'tooltip' => sprintf( __( '%s to view your Meetup API Key', 'the-events-calendar' ), '' . __( 'Click here', 'the-events-calendar' ) . '' ), 'size' => 'medium', 'validation_type' => 'alpha_numeric', 'can_be_empty' => true, 'parent_option' => Tribe__Events__Main::OPTIONNAME, ), ); } /** * Show Eventbrite API Connection only if Eventbrite Plugin is Active or Event Aggregator license key has a license key */ if ( class_exists( 'Tribe__Events__Tickets__Eventbrite__Main' ) || get_option( 'pue_install_key_event_aggregator' ) ) { $missing_eb_credentials = ! tribe( 'events-aggregator.settings' )->is_ea_authorized_for_eb(); ob_start(); ?> array( 'type' => 'html', 'html' => '' . esc_html__( 'You need to connect Event Aggregator to Eventbrite to import your events from Eventbrite.', 'the-events-calendar' ) . '
', ), 'eb_token_button' => array( 'type' => 'html', 'html' => $eventbrite_token_html, ), ); $internal = array_merge( $internal, $internal2 ); } $internal = apply_filters( 'tribe_addons_tab_fields', $internal ); $fields = array_merge( array( 'addons-box-start' => array( 'type' => 'html', 'html' => '' . __( 'Some features and add-ons require you to enter an API key or log into a third-party website so that The Events Calendar can communicate with an outside source.', 'the-events-calendar' ) . '
', ), 'addons-box-end' => array( 'type' => 'html', 'html' => '