/**
  * 	process_shortcode - ESPRESSO_TICKET_SELECTOR 
  * 
  *  @access 	public
  *  @param		array 	$attributes
  *  @return 	void
  */
 public function process_shortcode($attributes = array())
 {
     extract($attributes);
     $event = EE_Registry::instance()->load_model('Event')->get_one_by_ID($event_id);
     ob_start();
     do_action('AHEE_event_details_before_post', $event_id);
     espresso_ticket_selector($event);
     do_action('AHEE_event_details_after_post');
     return ob_get_clean();
 }
<?php

//echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' &nbsp; <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>';
global $post;
if (espresso_display_ticket_selector($post->ID) && (is_single() || is_archive() && espresso_display_ticket_selector_in_event_list())) {
    ?>
<br/>
<div class="event-tickets" style="clear: both;">
	<h3 class="ticket-selector-h3 ee-event-h3">
		<span class="ee-icon ee-icon-tickets"></span><?php 
    _e('Ticket Options', 'event_espresso');
    ?>
	</h3>
	<?php 
    espresso_ticket_selector($post);
    ?>
</div>
<!-- .event-tickets -->
<?php 
} elseif (!is_single()) {
    espresso_view_details_btn($post);
}