/**
  * Outputs event-specific details as HTML to be prepended to post content
  * when displayed as a single page.
  *
  * @param Ai1ec_Event $event  The event being displayed
  */
 function single_view($event)
 {
     global $ai1ec_view_helper, $ai1ec_calendar_helper, $ai1ec_settings;
     $subscribe_url = AI1EC_EXPORT_URL . "&ai1ec_post_ids={$event->post_id}";
     $subscribe_url = str_replace('webcal://', 'http://', $subscribe_url);
     $args = array('event' => $event, 'recurrence' => $event->get_recurrence_html(), 'exclude' => $event->get_exclude_html(), 'categories' => $event->get_categories_html(), 'tags' => $event->get_tags_html(), 'location' => nl2br($event->get_location()), 'map' => $this->get_map_view($event), 'contact' => $event->get_contact_html(), 'back_to_calendar' => $event->get_back_to_calendar_button_html(), 'subscribe_url' => $subscribe_url, 'edit_instance_url' => NULL, 'edit_instance_text' => NULL, 'google_url' => 'http://www.google.com/calendar/render?cid=' . urlencode($subscribe_url), 'show_subscribe_buttons' => !$ai1ec_settings->turn_off_subscription_buttons);
     if (!empty($args['recurrence']) && !empty($event->instance_id) && current_user_can('edit_ai1ec_events')) {
         $args['edit_instance_url'] = admin_url('post.php?post=' . $event->post_id . '&action=edit&instance=' . $event->instance_id);
         $args['edit_instance_text'] = sprintf(__('Edit this occurrence (%s)', AI1EC_PLUGIN_NAME), $event->get_short_start_date());
     }
     $ai1ec_view_helper->display_theme('event-single.php', $args);
 }