tabs->get_active();
$origin_slug = 'gcal';
$field = (object) [];
$field->label = __( 'Import Type:', 'the-events-calendar' );
$field->placeholder = __( 'Select Import Type', 'the-events-calendar' );
$field->help = __(
'One-time imports include all events in the current feed, while scheduled imports automatically grab new events and updates from the feed on a set schedule.',
'the-events-calendar'
);
$field->source = 'gcal_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 = 'gcal_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 = __( 'https://calendar.google.com/calendar/ical/example/basic.ics', 'the-events-calendar' );
$field->help = __( 'Enter the url for the Google Calendar feed you wish to import.', 'the-events-calendar' );
$field->help .= '
';
$field->help .= __( 'You can find the url you need in your Google Calendar settings.', 'the-events-calendar' );
$field->help .= '';
$field->help .= '
' . __( 'Go to Settings > Calendars and select the calendar you wish to import.', 'the-events-calendar' ) . '
';
$field->help .= '
' . __( 'Scroll down to Calendar Address and click the iCal button (note: if your calendar is private, you\'ll need to click the iCal button next to the Private Address header instead).', 'the-events-calendar' ) . '
';
$field->help .= '
' . __( 'Copy the provided url into this field to import the events into your WordPress site.', 'the-events-calendar' ) . '