/** * Add the custom columns. * * @param string $column_id The custom column id. * @param int $post_id The post id for the data. * */ public static function custom_columns($column_id, $post_id) { switch ($column_id) { case 'events-cats': $event_cats = get_the_term_list($post_id, Tribe__Events__Main::TAXONOMY, '', ', ', ''); echo $event_cats ? strip_tags($event_cats) : '—'; break; case 'start-date': echo tribe_get_start_date($post_id, false); break; case 'end-date': echo tribe_get_display_end_date($post_id, false); break; } }
$time_title = apply_filters('tribe_events_single_event_time_title', __('Time:', 'the-events-calendar'), $event_id); $cost = tribe_get_formatted_cost(); $website = tribe_get_event_website_link(); ?> <div class="tribe-events-meta-group tribe-events-meta-group-details"> <h3 class="tribe-events-single-section-title"> <?php esc_html_e('Details', 'the-events-calendar'); ?> </h3> <dl> <?php do_action('tribe_events_single_meta_details_section_start'); $time_format = get_option('time_format', Tribe__Date_Utils::TIMEFORMAT); $start_date = tribe_get_start_date(null, false); $start_time = tribe_get_start_date(null, false, $time_format); $end_date = tribe_get_display_end_date(null, false); $end_time = tribe_get_end_date(null, false, $time_format); $full_start = $start_date . ' @ ' . $start_time; $full_end = $end_date . ' @ ' . $end_time; $iso_start = tribe_get_start_date(null, false, 'c'); $iso_end = tribe_get_end_date(null, false, 'c'); // All day (multiday) events if (tribe_event_is_all_day() && tribe_event_is_multiday()) { ?> <dt> <?php esc_html_e('Start:', 'the-events-calendar'); ?> </dt> <dd> <meta itemprop="startDate" content="<?php echo $iso_start;