<?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);
}
    the_post_thumbnail('post-thumbnail');
    ?>
				
			</a>
			
					
		</div> <!-- /featured-media -->
			
	<?php 
}
?>
									                                    	    
<div class="post-excerpt">

<?php 
if ('espresso_events' == get_post_type() && !is_front_page() && espresso_display_ticket_selector_in_event_list()) {
    ?>
					<div class="post-content section-inner thin event-archive-tickets">
						
						<div class="event-tickets" style="clear: both;">
							<?php 
    espresso_ticket_selector($post);
    ?>
						</div>
						
						<div class="clear"></div>
					
					</div>

<?php 
} else {