function widget($args, $instance)
    {
        global $wpdb, $current_site, $post, $wiki_tree;
        extract($args);
        if ($post->post_type != 'incsub_event') {
            return;
        }
        $options = $instance;
        $event = new Eab_EventModel($post);
        $title = apply_filters('widget_title', empty($instance['title']) ? __('Attendees', $this->translation_domain) : $instance['title'], $instance, $this->id_base);
        if (is_single() && $event->has_bookings()) {
            ?>
	<?php 
            echo $before_widget;
            ?>
	<?php 
            echo $before_title . $title . $after_title;
            ?>
    <div id="event-bookings">
        <div id="event-booking-yes">
            <?php 
            echo Eab_Template::get_bookings(Eab_EventModel::BOOKING_YES, $event);
            ?>
        </div>
        <div class="clear"></div>
        <div id="event-booking-maybe">
            <?php 
            echo Eab_Template::get_bookings(Eab_EventModel::BOOKING_MAYBE, $event);
            ?>
        </div>
    </div>
    <br />
<?php 
            echo $after_widget;
            ?>
        <?php 
        }
        ?>
	<?php 
    }