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' => '
' . 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.
There are going to be situations where no out-of-the-box template is 100% perfect. Check out our our themer\'s guide 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' ) . '
', ), 'info-end' => array( 'type' => 'html', 'html' => '' . __( 'Only includes enough css to achieve complex layouts like calendar and week view.', 'the-events-calendar' ) . '
', 'full' => __( 'Full Styles', 'the-events-calendar' ) . '' . __( 'More detailed styling, tries to grab styles from your theme.', 'the-events-calendar' ) . '
', 'tribe' => __( 'Tribe Events Styles', 'the-events-calendar' ) . '' . __( 'A fully designed and styled theme for your events pages.', 'the-events-calendar' ) . '
', ), 'validation_type' => 'options', ), 'tribeEventsTemplate' => array( 'type' => 'dropdown', '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', '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. Read more.', '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. Read more.', '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' => '