<?php
/**
 * Single Event Template
 * A single event. This displays the event title, description, meta, and
 * optionally, the Google map for the event.
 *
 * Override this template in your own theme by creating a file at [your-theme]/tribe-events/single-event.php
 *
 * @package TribeEventsCalendar
 *
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

$events_label_singular = tribe_get_event_label_singular();
$events_label_plural = tribe_get_event_label_plural();

$event_id = get_the_ID();

?>
	<!-- Notices -->
	<?php tribe_the_notices() ?>

<!--div id="tribe-events-content" class="tribe-events-single"-->

	<!--p class="tribe-events-back">
		<a href="<?php echo esc_url( tribe_get_events_link() ); ?>"> <?php printf( '&laquo; ' . esc_html__( 'All %s', 'the-events-calendar' ), $events_label_plural ); ?></a>
	</p-->

	<?php while ( have_posts() ) :  the_post(); ?>
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12 col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2">
				<div class="content">
					<div class="event-single">
						<div class="row">
							<div class="col-xs-12">
								<div class="event-image">
									<?php echo tribe_event_featured_image( $event_id, 'full', false ); ?>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-xs-12">
								<div class="event-content">
									<?php do_action( 'tribe_events_single_event_before_the_content' ) ?>
									<?php the_content(); ?>
									<!-- .tribe-events-single-event-description -->
									<?php do_action( 'tribe_events_single_event_after_the_content' ) ?>
									<?php if ( get_post_type() == Tribe__Events__Main::POSTTYPE && tribe_get_option( 'showComments', false ) ) comments_template() ?>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-xs-12">
								<h2 class="event-title">Event Details</h2>
							</div>
						</div>

						<div class="row">
							<?php tribe_get_template_part( 'modules/meta' ); ?>
						</div>
					</div>
					<a href="javascript:history.go(-1);" class="italic">Back</a>
				</div>
			</div>
		</div>
	</div>



	



			
	<?php endwhile; ?>
