<?php global $post;
$post_images = bdw_get_images($post->ID);
?>
<div class="event_list <?php if(get_post_meta($post->ID,'is_featured',true)){?>event_list_featured<?php }?> clearfix">
    <?php if(get_post_meta($post->ID,'is_featured',true)){?><div class="featured_tag"> </div><?php }?>
    <?php 
	if(get_the_post_thumbnail( $post->ID, array())){?>
	 <a class="event_img" href="<?php the_permalink(); ?>">
	 <?php echo get_the_post_thumbnail( $post->ID, array(90,70),array('class'	=> "",));?>
	 </a>
	<?php }else if($post_images[0]){ global $thumb_url;	 
		$thumb_url1 = $thumb_url.get_image_cutting_edge($args);
	?>
	 <a class="event_img" href="<?php the_permalink(); ?>">
	 <img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo $post_images[0];?>&amp;w=90&amp;h=70&amp;zc=1&amp;q=80<?php echo $thumb_url1;?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>"  /> </a>
	<?php
	} else { ?> 
	   <a  class="event_img" href="<?php the_permalink(); ?>"> <span class="img_not_available"> <b> <?php _e('Image Not Available ');?></b> </span> </a>
	<?php }?>
    <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
    <p class="date"> <span><?php _e('Start Date');?> :</span> <?php echo get_formated_date(get_post_meta($post->ID,'st_date',true));?><br />  
    <span><?php _e('End Date');?> :</span><?php echo get_formated_date(get_post_meta($post->ID,'end_date',true));?> <br />
    <span><?php _e('Time');?> :</span> <?php 
	if(get_post_meta($post->ID,'st_time',true) && get_post_meta($post->ID,'end_time',true))
	{
	echo get_formated_time(get_post_meta($post->ID,'st_time',true))?> <?php _e('to');?> <?php echo get_formated_time(get_post_meta($post->ID,'end_time',true));	
	}else
	{
		echo ' - ';	
	}
	
	?> </p> 
    <p class="location"> <span><?php _e('Location');?> :</span>  <br /> 
    <?php echo get_post_meta($post->ID,'address',true);?>
    <?php  global $current_user; if($current_user->data->ID == $post->post_author){?>
    <br /> <br />
    <span class="author_link"> 
        <?php
        if(get_time_difference( $post->post_date, $post->ID ))
		{
		?>
        <a href="<?php echo get_option('siteurl');?>/?ptype=post_event&pid=<?php echo $post->ID;?>"><?php echo EDIT_TEXT;?></a> | 
        <?php	
		}else
		{
		?>
        <a href="<?php echo get_option('siteurl');?>/?ptype=post_event&renew=1&pid=<?php echo $post->ID;?>"><?php echo RENEW_TEXT;?></a> |
		<?php
		}
		?>
        <a href="<?php echo get_option('siteurl');?>/?ptype=preview&pid=<?php echo $post->ID;?>"><?php echo DELETE_TEXT;?></a> </span>  
       <?php }?>
    </p> 
    <p class="bottom"><span class="fl"><?php _e('Listed in');?> 
    <?php the_taxonomies(array('before'=>'','sep'=>'','after'=>'')); ?>
    </span> 
    <a href="<?php the_permalink(); ?>" class="read_more" > <?php _e('Read More');?> </a>
    <a href="<?php the_permalink(); ?>" class="googe_map" ><?php _e(' Google Map');?></a>   </p>
</div>