<?php
/**
 * Single Event Meta (Venue) Template
 *
 * Override this template in your own theme by creating a file at:
 * [your-theme]/tribe-events/modules/meta/venue.php
 *
 * @package TribeEventsCalendar
 */

if ( ! tribe_get_venue_id() ) {
	return;
}

$phone   = tribe_get_phone();
$website = tribe_get_venue_website_link();

?>

		<?php //do_action( 'tribe_events_single_meta_venue_section_start' ) ?>
		<div class="col-xs-12 col-sm-4">
			<div class="event-meta"><strong><?php esc_html_e( 'Location:', 'the-events-calendar' ) ?></strong> <?php echo tribe_get_venue() ?>
			</div>
			<?php if ( !tribe_address_exists() ) : ?>
				<div class="event-meta"> <?php echo tribe_get_full_address(); ?>

						<?php if ( tribe_show_google_map_link() ) : ?>
							<?php echo tribe_get_map_link_html(); ?>
						<?php endif; ?>
				</div>
				
			<?php endif; ?>
		</div>

		

		<?php if ( ! empty( $phone ) ): ?>
		<div class="col-xs-12 col-sm-4">
			<div class="event-meta"><strong><?php esc_html_e( 'Phone:', 'the-events-calendar' ) ?></strong> 
				<?php echo $phone ?>
			</div>
		</div>
			
		<?php endif ?>

		<?php if ( ! empty( $website ) ): ?>
		<div class="col-xs-12 col-sm-4">
			<div class="event-meta"><strong><?php esc_html_e( 'Website:', 'the-events-calendar' ) ?></strong> 
				<?php echo $website; ?>
			</div>
		</div>
		<?php endif ?>

		<?php //do_action( 'tribe_events_single_meta_venue_section_end' ) ?>

