tickets
12 years ago
app-shop.php
12 years ago
datepicker.php
12 years ago
event-map.php
12 years ago
event-sidebar-options.php
12 years ago
events-audit-trail.php
12 years ago
events-meta-box.php
12 years ago
no-comments.php
12 years ago
organizer-meta-box.php
12 years ago
recurrence-dialog.php
12 years ago
tribe-options-display.php
12 years ago
tribe-options-general.php
12 years ago
tribe-options-help.php
12 years ago
tribe-options-network.php
12 years ago
venue-meta-box.php
12 years ago
widget-admin-list.php
12 years ago
tribe-options-display.php
134 lines
| 1 | <?php |
| 2 | |
| 3 | $template_options = array( |
| 4 | '' => __( 'Default Events Template', 'tribe-events-calendar' ), |
| 5 | 'default' => __( 'Default Page Template', 'tribe-events-calendar' ), |
| 6 | ); |
| 7 | $templates = get_page_templates(); |
| 8 | ksort( $templates ); |
| 9 | foreach ( array_keys( $templates ) as $template ) { |
| 10 | $template_options[$templates[$template]] = $template; |
| 11 | } |
| 12 | |
| 13 | $views = apply_filters( 'tribe-events-bar-views', array(), FALSE ); |
| 14 | |
| 15 | $views_options = array(); |
| 16 | foreach( $views as $view ) { |
| 17 | $views_options[$view['displaying']] = $view['anchor']; |
| 18 | } |
| 19 | |
| 20 | $displayTab = array( |
| 21 | 'priority' => 20, |
| 22 | 'fields' => apply_filters( 'tribe_display_settings_tab_fields', array( |
| 23 | 'info-start' => array( |
| 24 | 'type' => 'html', |
| 25 | 'html' => '<div id="modern-tribe-info">' |
| 26 | ), |
| 27 | 'info-box-title' => array( |
| 28 | 'type' => 'html', |
| 29 | 'html' => '<h2>' . __('Display Settings', 'tribe-events-calendar') . '</h2>', |
| 30 | ), |
| 31 | 'info-box-description' => array( |
| 32 | 'type' => 'html', |
| 33 | 'html' => sprintf( |
| 34 | __('<p>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% perfect. Check out our <a href="%s">our themer\'s guide</a> for instructions on custom modifications. Want to create a new view? Grab a copy of the <a href="%s">Sample Agenda View plugin from Github</a></p>', 'tribe-events-calendar' ), |
| 35 | TribeEvents::$tribeUrl . 'support/documentation/events-calendar-themers-guide/?utm_medium=plugin-tec&utm_source=generaltab&utm_campaign=in-app', |
| 36 | 'https://github.com/moderntribe/tribe-events-agenda-view' |
| 37 | ), |
| 38 | ), |
| 39 | 'info-end' => array( |
| 40 | 'type' => 'html', |
| 41 | 'html' => '</div>', |
| 42 | ), |
| 43 | 'tribe-form-content-start' => array( |
| 44 | 'type' => 'html', |
| 45 | 'html' => '<div class="tribe-settings-form-wrap">', |
| 46 | ), |
| 47 | 'tribeEventsBasicSettingsTitle' => array( |
| 48 | 'type' => 'html', |
| 49 | 'html' => '<h3>' . __( 'Basic Template Settings', 'tribe-events-calendar' ) . '</h3>', |
| 50 | ), |
| 51 | 'stylesheetOption' => array( |
| 52 | 'type' => 'radio', |
| 53 | 'label' => __( 'Default stylesheet used for events templates', 'tribe-events-calendar' ), |
| 54 | 'default' => 'tribe', |
| 55 | 'options' => array( |
| 56 | 'skeleton' => __( 'Skeleton Styles', 'tribe-events-calendar' ) . |
| 57 | '<p class=\'description tribe-style-selection\'>' . |
| 58 | __('Only includes enough css to achieve complex layouts like calendar and week view.', 'tribe-events-calendar' ) . |
| 59 | '</p>', |
| 60 | 'full' => __( 'Full Styles', 'tribe-events-calendar' ) . |
| 61 | '<p class=\'description tribe-style-selection\'>' . |
| 62 | __( 'More detailed styling, tries to grab styles from your theme.', 'tribe-events-calendar' ) . |
| 63 | '</p>', |
| 64 | 'tribe' => __( 'Tribe Events Styles', 'tribe-events-calendar' ) . |
| 65 | '<p class=\'description tribe-style-selection\'>' . |
| 66 | __( 'A fully designed and styled theme for your events pages.', 'tribe-events-calendar' ) . |
| 67 | '</p>', |
| 68 | ), |
| 69 | 'validation_type' => 'options', |
| 70 | ), |
| 71 | 'tribeEventsTemplate' => array( |
| 72 | 'type' => 'dropdown_select2', |
| 73 | 'label' => __( 'Events template', 'tribe-events-calendar' ), |
| 74 | 'tooltip' => __( 'Choose a page template to control the appearance of your calendar and event content.', 'tribe-events-calendar' ), |
| 75 | 'validation_type' => 'options', |
| 76 | 'size' => 'large', |
| 77 | 'default' => 'default', |
| 78 | 'options' => $template_options |
| 79 | ), |
| 80 | 'tribeEnableViews' => array( |
| 81 | 'type' => 'checkbox_list', |
| 82 | 'label' => __( 'Enable event views', 'tribe-events-calendar' ), |
| 83 | 'tooltip' => __( 'You must select at least one view.', 'tribe-events-calendar' ), |
| 84 | 'default' => array_keys($views_options), |
| 85 | 'options' => $views_options, |
| 86 | 'validation_type' => 'options_multi' |
| 87 | ), |
| 88 | 'viewOption' => array( |
| 89 | 'type' => 'dropdown_select2', |
| 90 | 'label' => __( 'Default view', 'tribe-events-calendar' ), |
| 91 | 'validation_type' => 'options', |
| 92 | 'size' => 'large', |
| 93 | 'default' => 'month', |
| 94 | 'options' => $views_options |
| 95 | ), |
| 96 | 'tribeDisableTribeBar' => array( |
| 97 | 'type' => 'checkbox_bool', |
| 98 | 'label' => __( 'Disable the Event Search Bar', 'tribe-events-calendar' ), |
| 99 | 'tooltip' => __( 'Check this to use the classic header.', 'tribe-events-calendar' ), |
| 100 | 'default' => false, |
| 101 | 'validation_type' => 'boolean', |
| 102 | ), |
| 103 | 'monthEventAmount' => array( |
| 104 | 'type' => 'text', |
| 105 | 'label' => __( 'Month view events per day', 'tribe-events-calendar' ), |
| 106 | 'tooltip' => __( 'Allow more than the default 3 events per day in month view.', 'tribe-events-calendar' ), |
| 107 | 'validation_type' => 'positive_int', |
| 108 | 'size' => 'small', |
| 109 | 'default' => '3' |
| 110 | ), |
| 111 | 'tribeEventsAdvancedSettingsTitle' => array( |
| 112 | 'type' => 'html', |
| 113 | 'html' => '<h3>' . __( 'Advanced Template Settings', 'tribe-events-calendar' ) . '</h3>', |
| 114 | ), |
| 115 | 'tribeEventsBeforeHTML' => array( |
| 116 | 'type' => 'wysiwyg', |
| 117 | 'label' => __( 'Add HTML before event content', 'tribe-events-calendar' ), |
| 118 | 'tooltip' => __( '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.', 'tribe-events-calendar' ), |
| 119 | 'validation_type' => 'html' |
| 120 | ), |
| 121 | 'tribeEventsAfterHTML' => array( |
| 122 | 'type' => 'wysiwyg', |
| 123 | 'label' => __( 'Add HTML after event content', 'tribe-events-calendar' ), |
| 124 | 'tooltip' => __( '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.', 'tribe-events-calendar' ), |
| 125 | 'validation_type' => 'html', |
| 126 | ), |
| 127 | 'tribe-form-content-end' => array( |
| 128 | 'type' => 'html', |
| 129 | 'html' => '</div>', |
| 130 | ), |
| 131 | ) |
| 132 | ) |
| 133 | ); |
| 134 |