Example #1
0
 /**
  * Get the organizer label
  *
  * @param bool $singular TRUE to return the singular label, FALSE to return plural
  *
  * @return string
  */
 function tribe_get_organizer_label($singular = true)
 {
     if ($singular) {
         return tribe_get_organizer_label_singular();
     } else {
         return tribe_get_organizer_label_plural();
     }
 }
 public function initialize_filters()
 {
     static $initialized = false;
     if ($initialized) {
         return;
         // only run once
     }
     $initialized = true;
     new TribeEventsFilter_Category(__('Event Category', 'tribe-events-filter-view'), 'eventcategory');
     new TribeEventsFilter_Cost(sprintf(__('Cost (%s)', 'tribe-events-filter-view'), tribe_get_option('defaultCurrencySymbol', '$')), 'cost');
     new TribeEventsFilter_Tag(__('Tags', 'tribe-events-filter-view'), 'tags');
     new TribeEventsFilter_Venue(tribe_get_venue_label_plural(), 'venues');
     new TribeEventsFilter_Organizer(tribe_get_organizer_label_plural(), 'organizers');
     new TribeEventsFilter_DayOfWeek(__('Day', 'tribe-events-filter-view'), 'dayofweek');
     new TribeEventsFilter_TimeOfDay(__('Time', 'tribe-events-filter-view'), 'timeofday');
     do_action('tribe_events_filters_create_filters');
 }
Example #3
0
	</table>
	<?php 
/**
 * Fires after the venue entry form when creating & editing events in the admin
 * HTML outputted here should be wrapped in a table row (<tr>) that contains 2 cells (<td>s)
 *
 * @param int $event->ID the event currently being edited, will be 0 if creating a new event
 */
do_action('tribe_after_location_details', $event->ID);
?>
	<table id="event_organizer" class="eventtable">
		<thead>
			<tr>
				<td colspan="2" class="tribe_sectionheader">
					<h4><?php 
echo tribe_get_organizer_label_plural();
?>
</h4></td>
			</tr>
			<?php 
/**
 * Fires just after the header that appears above the organizer entry form when creating & editing events in the admin
 * HTML outputted here should be wrapped in a table row (<tr>) that contains 2 cells (<td>s)
 *
 * @param int $event->ID the event currently being edited, will be 0 if creating a new event
 */
do_action('tribe_organizer_table_top', $event->ID);
?>
		</thead>
		<?php 
$organizer_meta_box = new Tribe__Events__Admin__Organizer_Chooser_Meta_Box($event);
Example #4
0
 public function initialize_filters()
 {
     static $initialized = false;
     if ($initialized) {
         return;
         // only run once
     }
     $initialized = true;
     new Tribe__Events__Filterbar__Filters__Category(sprintf(__('%s Category', 'tribe-events-filter-view'), tribe_get_event_label_singular()), 'eventcategory');
     new Tribe__Events__Filterbar__Filters__Cost(sprintf(__('Cost (%s)', 'tribe-events-filter-view'), tribe_get_option('defaultCurrencySymbol', '$')), 'cost');
     new Tribe__Events__Filterbar__Filters__Tag(__('Tags', 'tribe-events-filter-view'), 'tags');
     new Tribe__Events__Filterbar__Filters__Venue(tribe_get_venue_label_plural(), 'venues');
     new Tribe__Events__Filterbar__Filters__Organizer(tribe_get_organizer_label_plural(), 'organizers');
     new Tribe__Events__Filterbar__Filters__Day_Of_Week(__('Day', 'tribe-events-filter-view'), 'dayofweek');
     new Tribe__Events__Filterbar__Filters__Time_Of_Day(__('Time', 'tribe-events-filter-view'), 'timeofday');
     Tribe__Events__Filterbar__Additional_Fields__Manager::init();
     do_action('tribe_events_filters_create_filters');
 }