/** * Outputs event-specific details as HTML to be prepended to post content * when displayed in an excerpt format. * * @param Ai1ec_Event $event The event being displayed */ function excerpt_view($event) { global $ai1ec_view_helper, $ai1ec_calendar_helper; $location = str_replace("\n", ', ', rtrim($event->get_location())); $args = array('event' => $event, 'location' => $location); $ai1ec_view_helper->display_theme('event-excerpt.php', $args); }