/** * This will only be fired if Advanced Post Manger is active * Helps ensure dates show correctly if only one or the other of * start & end date columns is showing */ public static function column_headers_check($columns) { $active = array_keys($columns); self::$end_col_active = in_array('end-date', $active); self::$start_col_active = in_array('start-date', $active); // What if, oddly, end_col is placed first when both are active? if (self::$end_col_active && self::$start_col_active) { self::$start_col_first = array_search('start-date', $active) < array_search('end-date', $active); } }
<td> <?php if (tribe_has_venue($post->ID)) { $venue_id = tribe_get_venue_id($post->ID); if (current_user_can('edit_post', $venue_id)) { echo '<a href="' . TribeCommunityEvents::instance()->getUrl('edit', $venue_id, null, TribeEvents::VENUE_POST_TYPE) . '">' . tribe_get_venue($post->ID) . '</a>'; } else { echo tribe_get_venue($post->ID); } } ?> </td> <td><?php echo TribeEventsAdminList::custom_columns('events-cats', $post->ID, false); ?> </td> <?php if (function_exists('tribe_is_recurring_event')) { ?> <td> <?php if (tribe_is_recurring_event($post->ID)) { _e('Yes', 'tribe-events-community'); } else { _e('No', 'tribe-events-community'); } ?> </td>