tabs->get_active(); $origin_slug = 'facebook'; $field = (object) []; $field->label = __( 'Import Type:', 'the-events-calendar' ); $field->placeholder = __( 'Select Import Type', 'the-events-calendar' ); $field->help = __( 'One-time imports include all currently listed events, while scheduled imports automatically grab new events and updates from Facebook on a set schedule. Single events can be added via a one-time import.', 'the-events-calendar' ); $field->source = 'facebook_import_type'; $frequency = (object) []; $frequency->placeholder = __( 'Select Frequency', 'the-events-calendar' ); $frequency->help = __( 'Select how often you would like events to be automatically imported.', 'the-events-calendar' ); $frequency->source = 'facebook_import_frequency'; $cron = Tribe__Events__Aggregator__Cron::instance(); $frequencies = $cron->get_frequency(); $missing_facebook_credentials = ! tribe( 'events-aggregator.settings' )->is_fb_credentials_valid(); $data_depends = '#tribe-ea-field-origin'; $data_condition = 'facebook'; if ( $missing_facebook_credentials ) : $data_depends = '#tribe-has-facebook-credentials'; $data_condition = '1'; ?>

get_slug() ) { $this->template( 'fields/schedule', [ 'record' => $record, 'origin' => $origin_slug, 'aggregator_action' => $aggregator_action, ] ); } ?> label = __( 'URL:', 'the-events-calendar' ); $field->placeholder = __( 'facebook.com/example', 'the-events-calendar' ); $field->help = __( 'Enter the url for a Facebook group or page. You can also enter the url of a single Facebook event.', 'the-events-calendar' ); ?>