tabs->get_active();
$origin_slug = 'url';
$field = (object) [];
$field->label = __( 'Import Type:', 'the-events-calendar' );
$field->placeholder = __( 'Select Import Type', 'the-events-calendar' );
$field->help = __( 'One-time imports include currently listed upcoming events, while scheduled imports automatically grab new events and updates from this url on a set schedule.', 'the-events-calendar' );
$field->source = 'url_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 = 'url_import_frequency';
$cron = Tribe__Events__Aggregator__Cron::instance();
$frequencies = $cron->get_frequency();
?>
|
|
get_slug() ) {
$this->template(
'fields/schedule',
[
'record' => $record,
'origin' => $origin_slug,
'aggregator_action' => $aggregator_action,
]
);
}
?>
label = __( 'URL:', 'the-events-calendar' );
$field->placeholder = __( 'example.com/', 'the-events-calendar' );
$field->help = __( 'Enter the url for the calendar, website, or event you would like to import. Event Aggregator will attempt to import events at that location.', 'the-events-calendar' );
$range_option = tribe_get_option( 'tribe_aggregator_default_url_import_range', 30 * DAY_IN_SECONDS );
$range_strings = tribe( 'events-aggregator.settings' )->get_url_import_range_options( false );
$range_string = $range_strings[ $range_option ];
$range_message = esc_html( sprintf( __( 'Event Aggregator will try to fetch events starting within the next %s from the current date or the specified date;', 'the-events-calendar' ), $range_string ) );
$link = esc_attr( admin_url( '/edit.php?post_type=tribe_events&page=tribe-common&tab=imports#tribe-field-tribe_aggregator_default_url_import_range' ) );
$field->range_message = $range_message . ' ' . sprintf( '%s ', $link, esc_html__( 'you can modify this setting here.', 'the-events-calendar' ) );
?>
|
|
|