Example #1
0
	<div class="widget-content">
		<dl>
			<?php 
do_action('tribe_events_single_meta_venue_section_start');
?>

			<dd class="author fn org"> <?php 
echo tribe_get_venue();
?>
 </dd>
			<div class="clearfix"></div>
			<?php 
// Do we have an address?
$address = tribe_address_exists() ? '<address class="tribe-events-address">' . tribe_get_full_address() . '</address>' : '';
// Do we have a Google Map link to display?
$gmap_link = tribe_show_google_map_link() ? tribe_get_map_link_html() : '';
$gmap_link = apply_filters('tribe_event_meta_venue_address_gmap', $gmap_link);
// Display if appropriate
if (!empty($address)) {
    echo '<dd class="location">' . "{$address} {$gmap_link} </dd>";
    echo '<div class="clearfix"></div>';
}
?>

			<?php 
if (!empty($phone)) {
    ?>
				<dt> <?php 
    esc_html_e('Phone:', 'training');
    ?>
 </dt>
Example #2
0
 /**
  * Get the venue address
  *
  * @param int $meta_id
  * @return string
  */
 public static function venue_address($meta_id)
 {
     global $_tribe_meta_factory;
     $address = tribe_address_exists(get_the_ID()) ? '<address class="tribe-events-address">' . tribe_get_full_address(get_the_ID()) . '</address>' : '';
     // Google map link
     $gmap_link = tribe_show_google_map_link(get_the_ID()) ? self::gmap_link() : '';
     $gmap_link = apply_filters('tribe_event_meta_venue_address_gmap', $gmap_link);
     $venue_address = empty($address) ? '' : Tribe_Meta_Factory::template($_tribe_meta_factory->meta[$meta_id]['label'], $address . $gmap_link, $meta_id);
     return apply_filters('tribe_event_meta_venue_address', $venue_address);
 }
}
?>

		<!-- Venue Title -->
		<?php 
do_action('tribe_events_single_venue_before_title');
?>
		<?php 
the_title('<h2 class="entry-title author fn org">', '</h2>');
?>
		<?php 
do_action('tribe_events_single_venue_after_title');
?>

		<?php 
if (tribe_show_google_map_link()) {
    ?>
			<!-- Google Map Link -->
			<?php 
    echo tribe_get_meta('tribe_event_venue_gmap_link');
    ?>
		<?php 
}
?>

		<!-- Venue Meta -->
		<?php 
do_action('tribe_events_single_venue_before_the_meta');
?>
		<?php 
echo tribe_get_meta_group('tribe_event_venue');
Example #4
0
		<!-- Venue Title -->
		<?php 
    do_action('tribe_events_single_venue_before_title');
    ?>
		<?php 
    the_title('<h2 class="entry-title author fn org">', '</h2>');
    ?>
		<?php 
    do_action('tribe_events_single_venue_after_title');
    ?>

		<div class="tribe-events-event-meta">

			<?php 
    if (tribe_show_google_map_link() && tribe_address_exists()) {
        ?>
				<!-- Google Map Link -->
				<?php 
        echo tribe_get_meta('tribe_event_venue_gmap_link');
        ?>
			<?php 
    }
    ?>

			<!-- Venue Meta -->
			<?php 
    do_action('tribe_events_single_venue_before_the_meta');
    ?>
			<?php 
    echo tribe_get_meta_group('tribe_event_venue');
Example #5
0
		<?php 
if (tribe_address_exists(get_the_ID())) {
    ?>
			<dt class="event-label event-label-address">
				<?php 
    _e('Address:', 'tribe-events-calendar');
    ?>
<br />
			</dt>
			<dd class="event-meta event-meta-address">
				<?php 
    echo tribe_get_full_address(get_the_ID());
    ?>
				<?php 
    if (tribe_show_google_map_link(get_the_ID())) {
        ?>
					<!-- <a class="gmap" itemprop="maps" href="<?php 
        echo tribe_get_map_link();
        ?>
" title="<?php 
        _e('Click to view a Google Map', 'tribe-events-calendar');
        ?>
" target="_blank"><?php 
        _e('Google Map', 'tribe-events-calendar');
        ?>
</a> -->
				<?php 
    }
    ?>
			</dd>