PK ][~F F limit.phpnu [ get_import_limit_count_options();
$global_limit_option = tribe_get_option( 'tribe_aggregator_default_import_limit_number', $settings->get_import_limit_count_default() );
$global_limit_message = esc_html(
sprintf(
__(
'Event Aggregator will try to fetch %s events starting from the current date or the specified date;',
'the-events-calendar'
),
$global_limit_strings[ $global_limit_option ]
)
);
if ( 'range' === $global_limit_type ) {
$global_limit_strings = $settings->get_import_range_options( false );
$global_limit_option = tribe_get_option( 'tribe_aggregator_default_import_limit_range', $settings->get_import_range_default() );
$global_limit_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'
),
$global_limit_strings[ $global_limit_option ]
)
);
}
$import_limit_link = esc_url( tribe( Plugin_Settings::class )->get_url( [ 'tab' => 'imports#tribe-field-tribe_aggregator_default_import_limit_type' ] ) );
$import_limit_message = $global_limit_message . ' ' . sprintf( '%s ', $import_limit_link, esc_html__( 'you can modify this setting here.', 'the-events-calendar' ) );
?>
PK ][ji
meetup.phpnu [ tabs->get_active();
$origin_slug = 'meetup';
$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 Meetup on a set schedule. Single events can be added via a one-time import.',
'the-events-calendar'
);
$field->source = 'meetup_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 = 'meetup_import_frequency';
$cron = Tribe__Events__Aggregator__Cron::instance();
$frequencies = $cron->get_frequency();
$missing_meetup_credentials = ! tribe( 'events-aggregator.settings' )->is_ea_authorized_for_meetup();
$data_depends = '#tribe-ea-field-origin';
$data_condition = 'meetup';
if ( $missing_meetup_credentials ) :
$data_depends = '#tribe-has-meetup-credentials';
$data_condition = '1';
$meetup_auth_url = Tribe__Events__Aggregator__Record__Meetup::get_auth_url();
?>
get_slug() ) {
$this->template(
'fields/schedule',
[ 'record' => $record, 'origin' => $origin_slug, 'aggregator_action' => $aggregator_action ]
);
}
?>
label = __( 'URL:', 'the-events-calendar' );
$field->placeholder = __( 'meetup.com/example', 'the-events-calendar' );
$field->help = __( 'Enter the url for a Meetup group, page, or individual. You can also enter the url of a single Meetup event.', 'the-events-calendar' );
?>
PK ][+& url.phpnu [ 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( tribe( Plugin_Settings::class )->get_url( [ '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' ) );
?>
range_message; ?>
PK ][̛.
ics.phpnu [ tabs->get_active();
$origin_slug = 'ics';
$field = (object) [];
$field->label = __( 'Choose File:', 'the-events-calendar' );
$field->placeholder = __( 'Choose File', 'the-events-calendar' );
$field->help = __( 'Select your ICS file from the WordPress media library. You may need to first upload the file from your computer to the library.', 'the-events-calendar' );
$field->source = 'ics_files';
$field->button = __( 'Upload', 'the-events-calendar' );
$field->media_title = __( 'Upload an ICS File', 'the-events-calendar' );
?>
PK ][{~7J J csv.phpnu [ label = __( 'Content Type:', 'the-events-calendar' );
$field->placeholder = __( 'Select Content Type', 'the-events-calendar' );
$field->help = __( 'Specify the type of content you wish to import, e.g. events.', 'the-events-calendar' );
$field->help .= ' ';
$field->help .= __( 'For the best results, import venue and organizer files before importing event files.', 'the-events-calendar' );
$field->source = 'csv_content_type';
$csv_record = Tribe__Events__Aggregator__Records::instance()->get_by_origin( 'csv' );
$post_types = $csv_record->get_import_post_types();
$main = Tribe__Events__Main::instance();
?>
label = __( 'Choose File:', 'the-events-calendar' );
$field->placeholder = __( 'Choose a CSV file', 'the-events-calendar' );
$field->help = __( 'Select your .CSV file from the WordPress media library. You may need to first upload the file from your computer to the library.', 'the-events-calendar' );
$field->button = __( 'Upload', 'the-events-calendar' );
$field->media_title = __( 'Upload a CSV File', 'the-events-calendar' );
?>
PK ][~ ical.phpnu [ tabs->get_active();
$origin_slug = 'ical';
$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 = 'ical_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 = 'ical_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/url.ics', 'the-events-calendar' );
$field->help = __(
'Enter the url for the iCalendar feed you wish to import, e.g. https://central.wordcamp.org/calendar.ics',
'the-events-calendar'
);
?>
PK ][&- gcal.phpnu [ 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' ) . '
';
$field->help .= '';
?>
PK ][RfL L
refine.phpnu [ placeholder = __( 'Keyword(s)', 'the-events-calendar' );
$location = new stdClass;
$location->placeholder = __( 'Location', 'the-events-calendar' );
$start_date = new stdClass;
$start_date->placeholder = __( 'Date', 'the-events-calendar' );
$radius = new stdClass;
$radius->placeholder = sprintf( _x( 'Radius (%s)', 'Radius with abbreviation', 'the-events-calendar' ), Tribe__Events__Utils__Radius::get_abbreviation() );
$depends_condition = 'data-condition-not-empty';
$location_depends = '#tribe-ea-field-origin';
$keyword_depends = '#tribe-ea-field-origin';
$keyword_exclusions = [ 'facebook' ];
$location_exclusions = [ 'url', 'facebook' ];
switch ( $origin_slug ) {
case 'ics':
$depends = "#tribe-ea-field-{$origin_slug}_file";
$radius->help = __( 'Use the filters to narrow down which events are fetched from your ICS file.', 'the-events-calendar' );
break;
case 'gcal':
$depends = "#tribe-ea-field-{$origin_slug}_import_type";
$radius->help = __( 'Use the filters to narrow down which events are fetched from this Google Calendar.', 'the-events-calendar' );
break;
case 'url':
$depends = "#tribe-ea-field-{$origin_slug}_import_type";
$radius->help = __( 'Use the filters to narrow down which events are fetched from this site.', 'the-events-calendar' );
break;
case 'eventbrite':
$depends = '#tribe-ea-field-eventbrite_import_source';
$radius->help = __( 'Use the filters to narrow down which events are fetched from Eventbrite.', 'the-events-calendar' );
$location_depends = '#tribe-ea-field-eventbrite_import_source';
$keyword_depends = '#tribe-ea-field-eventbrite_import_source';
$location_exclusions[] = 'https://www.eventbrite.com/me';
$keyword_exclusions[] = 'https://www.eventbrite.com/me';
// Only new events
if ( empty( $record->meta['start'] ) ) {
$record->meta['start'] = date_i18n( 'Y-m-d' );
}
break;
case 'ical':
default:
$depends = "#tribe-ea-field-{$origin_slug}_import_type";
$radius->help = __( 'Use the filters to narrow down which events are fetched from this iCalendar feed.', 'the-events-calendar' );
break;
}
/**
* Allow filtering of origins excluded from refining EA results by keyword.
*
* @since 4.6.24
*
* @param array $keyword_exclusions List of origins excluded.
*/
$keyword_exclusions = json_encode( apply_filters( 'tribe_events_aggregator_refine_keyword_exclusions', $keyword_exclusions ) );
/**
* Allow filtering of origins excluded from refining EA results by location.
*
* @since 4.6.24
*
* @param array $location_exclusions List of origins excluded.
*/
$location_exclusions = json_encode( apply_filters( 'tribe_events_aggregator_refine_location_exclusions', $location_exclusions ) );
?>