/**
  * Adds timezone settings to the *General* settings tab.
  *
  * When it is determined that timezone data still needs to be generated for one or more
  * events then only the update tool will be exposed in this area, in all other cases this
  * is not exposed and the ordinary timezone settings will be visible.
  *
  * @param array $general_settings
  *
  * @return array
  */
 public function settings_ui(array $general_settings)
 {
     $updater = new Tribe__Events__Admin__Timezone_Updater();
     // Load all timezone settings
     $timezone_settings = $this->get_settings_array();
     // Remove unneeded options: until timezone data has been updated, users should only see the update
     // button - after that point, they should see the "real" settings but not the update button
     if ($updater->update_needed()) {
         unset($timezone_settings['tribe_events_timezone_mode']);
         unset($timezone_settings['tribe_events_timezones_show_zone']);
     } else {
         unset($timezone_settings['tribe_events_enable_timezones']);
     }
     // Add the new section just before the settings form is closed
     return Tribe__Main::array_insert_before_key('tribe-form-content-end', $general_settings, $timezone_settings);
 }
<?php

$tec = Tribe__Events__Main::instance();
$template_options = array('' => esc_html__('Default Events Template', 'the-events-calendar'), 'default' => esc_html__('Default Page Template', 'the-events-calendar'));
$templates = get_page_templates();
ksort($templates);
foreach (array_keys($templates) as $template) {
    $template_options[$templates[$template]] = $template;
}
/**
 * Filter the array of views that are registered for the tribe bar
 * @param array array() {
 *     Array of views, where each view is itself represented by an associative array consisting of these keys:
 *
 *     @type string $displaying         slug for the view
 *     @type string $anchor             display text (i.e. "List" or "Month")
 *     @type string $event_bar_hook     not used
 *     @type string $url                url to the view
 * }
 * @param boolean
 */
$views = apply_filters('tribe-events-bar-views', array(), false);
$views_options = array();
foreach ($views as $view) {
    $views_options[$view['displaying']] = $view['anchor'];
}
$display_tab_fields = Tribe__Main::array_insert_before_key('tribe-form-content-start', $display_tab_fields, array('info-start' => array('type' => 'html', 'html' => '<div id="modern-tribe-info">'), 'info-box-title' => array('type' => 'html', 'html' => '<h2>' . __('Display Settings', 'the-events-calendar') . '</h2>'), 'info-box-description' => array('type' => 'html', 'html' => '<p>' . sprintf(__('The settings below control the display of your calendar. If things don\'t look right, try switching between the three style sheet options or pick a page template from your theme.</p><p>There are going to be situations where no out-of-the-box template is 100&#37; perfect. Check out our <a href="%s">our themer\'s guide</a> for instructions on custom modifications.', 'the-events-calendar'), Tribe__Main::$tec_url . 'knowledgebase/themers-guide/?utm_medium=plugin-tec&utm_source=generaltab&utm_campaign=in-app') . '</p>'), 'info-end' => array('type' => 'html', 'html' => '</div>')));
$display_tab_fields = Tribe__Main::array_insert_after_key('dateWithYearFormat', $display_tab_fields, array('dateWithoutYearFormat' => array('type' => 'text', 'label' => esc_html__('Date without year', 'the-events-calendar'), 'tooltip' => esc_html__('Enter the format to use for displaying dates without a year. Used when showing an event from the current year.', 'the-events-calendar'), 'default' => 'F j', 'size' => 'medium', 'validation_type' => 'html'), 'monthAndYearFormat' => array('type' => 'text', 'label' => esc_html__('Month and year format', 'the-events-calendar'), 'tooltip' => esc_html__('Enter the format to use for dates that show a month and year only. Used on month view.', 'the-events-calendar'), 'default' => 'F Y', 'size' => 'medium', 'validation_type' => 'html')));
$display_tab_fields = Tribe__Main::array_insert_after_key('dateTimeSeparator', $display_tab_fields, array('timeRangeSeparator' => array('type' => 'text', 'label' => esc_html__('Time range separator', 'the-events-calendar'), 'tooltip' => esc_html__('Enter the separator that will be used between the start and end time of an event.', 'the-events-calendar'), 'default' => ' - ', 'size' => 'small', 'validation_type' => 'html')));
$display_tab_fields = Tribe__Main::array_insert_before_key('tribeEventsDateFormatSettingsTitle', $display_tab_fields, array('tribeEventsBasicSettingsTitle' => array('type' => 'html', 'html' => '<h3>' . __('Basic Template Settings', 'the-events-calendar') . '</h3>'), 'stylesheetOption' => array('type' => 'radio', 'label' => __('Default stylesheet used for events templates', 'the-events-calendar'), 'default' => 'tribe', 'options' => array('skeleton' => __('Skeleton Styles', 'the-events-calendar') . '<p class=\'description tribe-style-selection\'>' . __('Only includes enough css to achieve complex layouts like calendar and week view.', 'the-events-calendar') . '</p>', 'full' => __('Full Styles', 'the-events-calendar') . '<p class=\'description tribe-style-selection\'>' . __('More detailed styling, tries to grab styles from your theme.', 'the-events-calendar') . '</p>', 'tribe' => __('Tribe Events Styles', 'the-events-calendar') . '<p class=\'description tribe-style-selection\'>' . __('A fully designed and styled theme for your events pages.', 'the-events-calendar') . '</p>'), 'validation_type' => 'options'), 'tribeEventsTemplate' => array('type' => 'dropdown_select2', 'label' => __('Events template', 'the-events-calendar'), 'tooltip' => __('Choose a page template to control the appearance of your calendar and event content.', 'the-events-calendar'), 'validation_type' => 'options', 'size' => 'large', 'default' => 'default', 'options' => $template_options), 'tribeEnableViews' => array('type' => 'checkbox_list', 'label' => __('Enable event views', 'the-events-calendar'), 'tooltip' => __('You must select at least one view.', 'the-events-calendar'), 'default' => array_keys($views_options), 'options' => $views_options, 'validation_type' => 'options_multi'), 'viewOption' => array('type' => 'dropdown_select2', 'label' => __('Default view', 'the-events-calendar'), 'validation_type' => 'options', 'size' => 'large', 'default' => 'month', 'options' => $views_options), 'tribeDisableTribeBar' => array('type' => 'checkbox_bool', 'label' => __('Disable the Event Search Bar', 'the-events-calendar'), 'tooltip' => __('Check this to use the classic header.', 'the-events-calendar'), 'default' => false, 'validation_type' => 'boolean'), 'monthEventAmount' => array('type' => 'text', 'label' => __('Month view events per day', 'the-events-calendar'), 'tooltip' => sprintf(__('Change the default 3 events per day in month view. Please note there may be performance issues if you set this too high. <a href="%s">Read more</a>.', 'the-events-calendar'), 'http://m.tri.be/rh'), 'validation_type' => 'positive_int', 'size' => 'small', 'default' => '3'), 'enable_month_view_cache' => array('type' => 'checkbox_bool', 'label' => __('Enable the Month View Cache', 'the-events-calendar'), 'tooltip' => sprintf(__('Check this to cache your month view HTML in transients, which can help improve calendar speed on sites with many events. <a href="%s">Read more</a>.', 'the-events-calendar'), 'http://m.tri.be/18di'), 'default' => false, 'validation_type' => 'boolean')));
$display_tab_fields = Tribe__Main::array_insert_after_key('datepickerFormat', $display_tab_fields, array('tribeEventsAdvancedSettingsTitle' => array('type' => 'html', 'html' => '<h3>' . esc_html__('Advanced Template Settings', 'the-events-calendar') . '</h3>'), 'tribeEventsBeforeHTML' => array('type' => 'wysiwyg', 'label' => esc_html__('Add HTML before event content', 'the-events-calendar'), 'tooltip' => esc_html__('If you are familiar with HTML, you can add additional code before the event template. Some themes may require this to help with styling or layout.', 'the-events-calendar'), 'validation_type' => 'html'), 'tribeEventsAfterHTML' => array('type' => 'wysiwyg', 'label' => esc_html__('Add HTML after event content', 'the-events-calendar'), 'tooltip' => esc_html__('If you are familiar with HTML, you can add additional code after the event template. Some themes may require this to help with styling or layout.', 'the-events-calendar'), 'validation_type' => 'html')));
<?php

$organizers = Tribe__Events__Main::instance()->get_organizer_info();
$organizer_options = array();
if (is_array($organizers) && !empty($organizers)) {
    $organizer_options[0] = __('No Default', 'tribe-events-calendar-pro');
    foreach ($organizers as $organizer) {
        $organizer_options[$organizer->ID] = $organizer->post_title;
    }
}
$venues = Tribe__Events__Main::instance()->get_venue_info();
$venue_options = array();
if (is_array($venues) && !empty($venues)) {
    $venue_options[0] = __('No Default', 'tribe-events-calendar-pro');
    foreach ($venues as $venue) {
        $venue_options[$venue->ID] = $venue->post_title;
    }
}
$state_options = Tribe__View_Helpers::loadStates();
$state_options = array_merge(array('' => __('Select a State', 'tribe-events-calendar-pro')), $state_options);
$country_options = Tribe__View_Helpers::constructCountries();
$defaultsTab = array('priority' => 30, 'fields' => array('info-start' => array('type' => 'html', 'html' => '<div id="modern-tribe-info">'), 'info-box-title' => array('type' => 'html', 'html' => '<h2>' . __('Default Content', 'tribe-events-calendar-pro') . '</h2>'), 'info-box-description' => array('type' => 'html', 'html' => '<p>' . __('<p>Choose the default venue & organizer. Set default address information to save time when entering a new venue or organizer.</p><p>You can override these settings as you enter a new event.</p>', 'tribe-events-calendar-pro') . '</p>'), 'info-end' => array('type' => 'html', 'html' => '</div>'), 'tribe-form-content-start' => array('type' => 'html', 'html' => '<div class="tribe-settings-form-wrap">'), 'eventsDefaultOrganizerHelperTitle' => array('type' => 'html', 'html' => '<h3>' . __('Organizer', 'tribe-events-calendar-pro') . '</h3>'), 'eventsDefaultOrganizerID' => array('type' => 'dropdown_chosen', 'label' => __('Default organizer', 'tribe-events-calendar-pro'), 'default' => false, 'validation_type' => 'options', 'options' => $organizer_options, 'if_empty' => __('No saved organizers yet.', 'tribe-events-calendar-pro'), 'can_be_empty' => true), 'current-default-organizer' => array('type' => 'html', 'display_callback' => 'tribe_display_saved_organizer'), 'eventsDefaultVenueHelperTitle' => array('type' => 'html', 'html' => '<h3>' . __('Venue', 'tribe-events-calendar-pro') . '</h3>'), 'eventsDefaultVenueID' => array('type' => 'dropdown_chosen', 'label' => __('Default venue', 'tribe-events-calendar-pro'), 'default' => false, 'validation_type' => 'options', 'options' => $venue_options, 'if_empty' => __('No saved venues yet.', 'tribe-events-calendar-pro'), 'can_be_empty' => true), 'current-default-venue' => array('type' => 'html', 'display_callback' => 'tribe_display_saved_venue'), 'eventsDefaultAddressHelperTitle' => array('type' => 'html', 'html' => '<h3>' . __('Address', 'tribe-events-calendar-pro') . '</h3>'), 'eventsDefaultAddressHelperText' => array('type' => 'html', 'html' => '<p class="description">' . __('You can use this setting to set specific, individual defaults for any new Venue you create (these will not be used for your default venue).', 'tribe-events-calendar-pro') . '</p>'), 'eventsDefaultAddress' => array('type' => 'text', 'label' => __('Default address', 'tribe-events-calendar-pro'), 'default' => false, 'class' => 'venue-default-info', 'validation_type' => 'address', 'can_be_empty' => true), 'current-default-address' => array('type' => 'html', 'class' => 'venue-default-info', 'display_callback' => 'tribe_display_saved_address'), 'eventsDefaultCity' => array('type' => 'text', 'label' => __('Default city', 'tribe-events-calendar-pro'), 'default' => false, 'class' => 'venue-default-info', 'validation_type' => 'city_or_province', 'can_be_empty' => true), 'current-default-city' => array('type' => 'html', 'class' => 'venue-default-info', 'display_callback' => 'tribe_display_saved_city'), 'eventsDefaultState' => array('type' => 'dropdown_chosen', 'label' => __('Default state', 'tribe-events-calendar-pro'), 'default' => false, 'class' => 'venue-default-info', 'validation_type' => 'options', 'options' => $state_options, 'can_be_empty' => true), 'current-default-state' => array('type' => 'html', 'display_callback' => 'tribe_display_saved_state'), 'eventsDefaultProvince' => array('type' => 'text', 'label' => __('Default province', 'tribe-events-calendar-pro'), 'default' => false, 'class' => 'venue-default-info', 'validation_type' => 'city_or_province', 'can_be_empty' => true), 'current-default-province' => array('type' => 'html', 'class' => 'venue-default-info', 'display_callback' => 'tribe_display_saved_province'), 'eventsDefaultZip' => array('type' => 'text', 'label' => __('Default postal code/zip code', 'tribe-events-calendar-pro'), 'default' => false, 'class' => 'venue-default-info', 'validation_type' => 'address', 'can_be_empty' => true), 'current-default-zip' => array('type' => 'html', 'class' => 'venue-default-info', 'display_callback' => 'tribe_display_saved_zip'), 'defaultCountry' => array('type' => 'dropdown_chosen', 'label' => __('Default country', 'tribe-events-calendar-pro'), 'default' => false, 'class' => 'venue-default-info', 'validation_type' => 'options_with_label', 'options' => $country_options, 'can_be_empty' => true), 'current-default-country' => array('type' => 'html', 'display_callback' => 'tribe_display_saved_country'), 'eventsDefaultPhone' => array('type' => 'text', 'label' => __('Default phone', 'tribe-events-calendar-pro'), 'default' => false, 'class' => 'venue-default-info', 'validation_type' => 'phone', 'can_be_empty' => true), 'current-default-phone' => array('type' => 'html', 'class' => 'venue-default-info', 'display_callback' => 'tribe_display_saved_phone'), 'tribeEventsCountries' => array('type' => 'textarea', 'label' => __('Use a custom list of countries', 'tribe-events-calendar-pro'), 'default' => false, 'validation_type' => 'country_list', 'tooltip' => __('One country per line in the following format: <br>US, United States <br> UK, United Kingdom. <br> (Replaces the default list.)', 'tribe-events-calendar-pro'), 'can_be_empty' => true), 'tribe-form-content-end' => array('type' => 'html', 'html' => '</div>')));
/**
 * @todo remove in 4.3
 * @deprecated
 */
if (apply_filters('tribe_enable_default_value_replace_checkbox', false)) {
    _deprecated_function("'defaultValueReplace checkbox'", '4.0', 'Built-in WordPress postmeta filters');
    $defaultsTab['fields'] = Tribe__Main::array_insert_before_key('eventsDefaultOrganizerHelperTitle', $defaultsTab['fields'], array('eventsDefaultOptionsHelperTitle' => array('type' => 'html', 'html' => '<h3>' . esc_html__('Options', 'tribe-events-calendar-pro') . '</h3>'), 'defaultValueReplace' => array('type' => 'checkbox_bool', 'label' => esc_html__('If fields are left empty when they\'re submitted, automatically fill them in with these values.', 'tribe-events-calendar-pro'), 'default' => false, 'validation_type' => 'boolean')));
}
<?php

$tec = Tribe__Events__Main::instance();
$general_tab_fields = Tribe__Main::array_insert_after_key('info-start', $general_tab_fields, array('upsell-heading' => array('type' => 'heading', 'label' => esc_html__('Finding & extending your calendar.', 'the-events-calendar'), 'conditional' => !defined('TRIBE_HIDE_UPSELL') || !TRIBE_HIDE_UPSELL), 'finding-heading' => array('type' => 'heading', 'label' => esc_html__('Finding your calendar.', 'the-events-calendar'), 'conditional' => defined('TRIBE_HIDE_UPSELL') && TRIBE_HIDE_UPSELL), 'view-calendar-link' => array('type' => 'html', 'html' => '<p>' . esc_html__('Where\'s my calendar?', 'the-events-calendar') . ' <a href="' . esc_url(Tribe__Events__Main::instance()->getLink()) . '">' . esc_html__('Right here', 'the-events-calendar') . '</a>.</p>')));
$general_tab_fields = Tribe__Main::array_insert_before_key('debugEvents', $general_tab_fields, array('tribeEventsDisplayThemeTitle' => array('type' => 'html', 'html' => '<h3>' . esc_html__('General Settings', 'the-events-calendar') . '</h3>'), 'postsPerPage' => array('type' => 'text', 'label' => esc_html__('Number of events to show per page', 'the-events-calendar'), 'size' => 'small', 'default' => get_option('posts_per_page'), 'validation_type' => 'positive_int'), 'liveFiltersUpdate' => array('type' => 'checkbox_bool', 'label' => esc_html__('Use Javascript to control date filtering', 'the-events-calendar'), 'tooltip' => tribe_get_option('tribeDisableTribeBar', false) == true ? esc_html__('This option is disabled when "Disable the Event Search Bar" is checked on the Display settings tab.', 'the-events-calendar') : esc_html__('Enable live ajax for datepicker on front end (User submit not required).', 'the-events-calendar'), 'attributes' => tribe_get_option('tribeDisableTribeBar', false) == true ? array('disabled' => 'disabled') : null, 'default' => true, 'validation_type' => 'boolean', 'class' => tribe_get_option('tribeDisableTribeBar', false) == true ? 'tribe-fieldset-disabled' : null), 'showComments' => array('type' => 'checkbox_bool', 'label' => esc_html__('Show comments', 'the-events-calendar'), 'tooltip' => esc_html__('Enable comments on event pages.', 'the-events-calendar'), 'default' => false, 'validation_type' => 'boolean'), 'showEventsInMainLoop' => array('type' => 'checkbox_bool', 'label' => esc_html__('Include events in main blog loop', 'the-events-calendar'), 'tooltip' => esc_html__('Show events with the site\'s other posts. When this box is checked, events will also continue to appear on the default events page.', 'the-events-calendar'), 'default' => false, 'validation_type' => 'boolean'), 'unprettyPermalinksUrl' => array('type' => 'html', 'label' => esc_html__('Events URL slug', 'the-events-calendar'), 'html' => '<p>' . sprintf(__('You cannot edit the slug for your events page as you do not have pretty permalinks enabled. The current URL for your events page is <a href="%1$s">%2$s</a>. In order to edit the slug here, <a href="%3$soptions-permalink.php">enable pretty permalinks</a>.', 'the-events-calendar'), esc_url($tec->getLink('home')), $tec->getLink('home '), esc_url(trailingslashit(get_admin_url()))) . '</p>', 'conditional' => '' == get_option('permalink_structure')), 'eventsSlug' => array('type' => 'text', 'label' => esc_html__('Events URL slug', 'the-events-calendar'), 'default' => 'events', 'validation_type' => 'slug', 'conditional' => '' != get_option('permalink_structure')), 'current-events-slug' => array('type' => 'html', 'html' => '<p class="tribe-field-indent tribe-field-description description">' . esc_html__('The slug used for building the events URL.', 'the-events-calendar') . sprintf(esc_html__('Your current events URL is: %s', 'the-events-calendar'), '<code><a href="' . esc_url(tribe_get_events_link()) . '">' . tribe_get_events_link() . '</a></code>') . '</p>', 'conditional' => '' != get_option('permalink_structure')), 'ical-info' => array('type' => 'html', 'display_callback' => function_exists('tribe_get_ical_link') ? '<p id="ical-link" class="tribe-field-indent tribe-field-description description">' . esc_html__('Here is the iCal feed URL for your events:', 'the-events-calendar') . ' <code>' . tribe_get_ical_link() . '</code></p>' : '', 'conditional' => function_exists('tribe_get_ical_link')), 'singleEventSlug' => array('type' => 'text', 'label' => esc_html__('Single event URL slug', 'the-events-calendar'), 'default' => 'event', 'validation_type' => 'slug', 'conditional' => '' != get_option('permalink_structure')), 'current-single-event-slug' => array('type' => 'html', 'html' => '<p class="tribe-field-indent tribe-field-description description">' . sprintf(__('The above should ideally be plural, and this singular.<br />Your single event URL is: %s', 'the-events-calendar'), '<code>' . trailingslashit(home_url()) . tribe_get_option('singleEventSlug', 'event') . '/single-post-name/</code>') . '</p>', 'conditional' => '' != get_option('permalink_structure')), 'multiDayCutoff' => array('type' => 'dropdown', 'label' => esc_html__('End of day cutoff', 'the-events-calendar'), 'validation_type' => 'options', 'size' => 'small', 'default' => '12:00', 'options' => array('00:00' => '12:00 am', '01:00' => '01:00 am', '02:00' => '02:00 am', '03:00' => '03:00 am', '04:00' => '04:00 am', '05:00' => '05:00 am', '06:00' => '06:00 am', '07:00' => '07:00 am', '08:00' => '08:00 am', '09:00' => '09:00 am', '10:00' => '10:00 am', '11:00' => '11:00 am')), 'multiDayCutoffHelper' => array('type' => 'html', 'html' => '<p class="tribe-field-indent tribe-field-description description">' . sprintf(esc_html__("Have an event that runs past midnight? Select a time after that event's end to avoid showing the event on the next day's calendar.", 'the-events-calendar')) . '</p>', 'conditional' => '' != get_option('permalink_structure')), 'defaultCurrencySymbol' => array('type' => 'text', 'label' => esc_html__('Default currency symbol', 'the-events-calendar'), 'tooltip' => esc_html__('Set the default currency symbol for event costs. Note that this only impacts future events, and changes made will not apply retroactively.', 'the-events-calendar'), 'validation_type' => 'textarea', 'size' => 'small', 'default' => '$'), 'reverseCurrencyPosition' => array('type' => 'checkbox_bool', 'label' => esc_html__('Currency symbol follows value', 'the-events-calendar'), 'tooltip' => esc_html__('The currency symbol normally precedes the value. Enabling this option positions the symbol after the value.', 'the-events-calendar'), 'default' => false, 'validation_type' => 'boolean'), 'amalgamateDuplicates' => array('type' => 'html', 'html' => '<fieldset class="tribe-field tribe-field-html"><legend>' . esc_html__('Duplicate Venues &amp; Organizers', 'the-events-calendar') . '</legend><div class="tribe-field-wrap">' . Tribe__Events__Amalgamator::migration_button(esc_html__('Merge Duplicates', 'the-events-calendar')) . '<p class="tribe-field-indent description">' . esc_html__('You might find duplicate venues and organizers when updating The Events Calendar from a pre-3.0 version. Click this button to automatically merge identical venues and organizers.', 'the-events-calendar') . '</p></div></fieldset><div class="clear"></div>', 'conditional' => Tribe__Settings_Manager::get_option('organizer_venue_amalgamation', 0) < 1), 'tribeEventsMiscellaneousTitle' => array('type' => 'html', 'html' => '<h3>' . esc_html__('Miscellaneous Settings', 'the-events-calendar') . '</h3>')));
$general_tab_fields = Tribe__Main::array_insert_after_key('tribeEventsMiscellaneousTitle', $general_tab_fields, array('viewWelcomePage' => array('type' => 'html', 'html' => '<fieldset class="tribe-field tribe-field-html"><legend>' . esc_html__('View Welcome Page', 'the-events-calendar') . '</legend><div class="tribe-field-wrap"><a href="' . Tribe__Settings::instance()->get_url(array(Tribe__Events__Main::instance()->activation_page->welcome_slug => 1)) . '" class="button">' . esc_html__('View Welcome Page', 'the-events-calendar') . '</a><p class="tribe-field-indent description">' . esc_html__('View the page that displayed when you initially installed the plugin.', 'the-events-calendar') . '</p></div></fieldset><div class="clear"></div>'), 'viewUpdatePage' => array('type' => 'html', 'html' => '<fieldset class="tribe-field tribe-field-html"><legend>' . esc_html__('View Update Page', 'the-events-calendar') . '</legend><div class="tribe-field-wrap"><a href="' . Tribe__Settings::instance()->get_url(array(Tribe__Events__Main::instance()->activation_page->update_slug => 1)) . '" class="button">' . esc_html__('View Update Page', 'the-events-calendar') . '</a><p class="tribe-field-indent description">' . esc_html__('View the page that displayed when you updated the plugin.', 'the-events-calendar') . '</p></div></fieldset><div class="clear"></div>')));
$general_tab_fields = Tribe__Main::array_insert_before_key('tribeEventsMiscellaneousTitle', $general_tab_fields, array('tribeEventsDisplayTitle' => array('type' => 'html', 'html' => '<h3>' . esc_html__('Map Settings', 'the-events-calendar') . '</h3>'), 'embedGoogleMaps' => array('type' => 'checkbox_bool', 'label' => esc_html__('Enable Google Maps', 'the-events-calendar'), 'tooltip' => esc_html__('Check to enable maps for events and venues.', 'the-events-calendar'), 'default' => true, 'class' => 'google-embed-size', 'validation_type' => 'boolean'), 'embedGoogleMapsZoom' => array('type' => 'text', 'label' => esc_html__('Google Maps default zoom level', 'the-events-calendar'), 'tooltip' => esc_html__('0 = zoomed out; 21 = zoomed in.', 'the-events-calendar'), 'size' => 'small', 'default' => 10, 'class' => 'google-embed-field', 'validation_type' => 'number_or_percent')));
return $general_tab_fields;
示例#5
0
 public function add_settings(array $settings_fields)
 {
     $extra_settings = $this->additional_settings();
     return Tribe__Main::array_insert_before_key('tribe-form-content-end', $settings_fields, $extra_settings);
 }