<?php
/**
 * Template for displaying facebook events shortcode style 1
 *
 */
?>
<div class="event_wiget_style2 fbevents_widget" >
	<div class="event_details" style="height: auto;">
		
		<?php if( $picture_url !='' && $is_display_image ){
			?>
			<div class="event_picture">
				<a href="<?php echo esc_url( $event_link ); ?>" <?php if( $new_window ){ echo 'target="_blank"'; } ?> >
				<img src="<?php echo $picture_url;?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" >
				</a>
			</div>
			<?php
		} else {
			?>
			<div class="event_date">
				<span class="month"><?php echo $start_date->format('M'); ?></span>
				<span class="date"> <?php echo $start_date->format('d'); ?> </span>
			</div>
			<?php
		} ?>					
		
		<div class="event_desc">
			<div class="event_name">
				<a href="<?php echo esc_url( $event_link ); ?>" rel="bookmark" <?php if( $new_window ){ echo 'target="_blank"'; } ?> >
					<?php echo $name; ?>
				</a>
			</div>
			<?php 
			if( $event_date != '' ){
				?><div class="event_dates"><i class="fa fa-calendar"></i> <?php echo $event_date; ?></div><?php
			}

			if( $location != '' && $is_display_location ){ ?>
				<div class="event_address"><i class="fa fa-map-marker"></i> <?php echo $location; ?></div>
			<?php }	?>

			<?php if( $short_description != '' && $is_display_desc ){ ?>
			<p class="description" >
				<?php echo $short_description; ?>
			</p>
			<?php }	?>
		</div>
		<div style="clear: both"></div>
	</div>
</div>
