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 ) ); ?> >
meta['start'] ) ? '' : $record->meta['start']; if ( is_numeric( $start ) ) { $start = date( Tribe__Date_Utils::DATEONLYFORMAT, $start ); } ?> data-validation-is-required data-validation-error="" >