<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>
/** * Get the venue address * * @deprecated 4.3 * * @param int $meta_id * * @return string */ public static function venue_address($meta_id) { _deprecated_function(__METHOD__, '4.3'); 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()) ? tribe_get_map_link_html(get_the_ID()) : ''; $gmap_link = apply_filters('tribe_event_meta_venue_address_gmap', $gmap_link); $venue_address = empty($address) ? '' : Tribe__Events__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); }
<?php if (tribe_address_exists()) { ?> <dt>Location:</dt> <br> <dd class="location"> <address class="tribe-events-address"> <?php echo tribe_get_full_address(); ?> <?php if (tribe_show_google_map_link()) { ?> <br><?php echo tribe_get_map_link_html(); ?> <?php } ?> </address> </dd> <br> <dt>Phone:</dt> <?php if (!empty($phone)) { ?> <dd><?php echo $phone; ?> </dd>
return; } ?> <div class="tribe-events-venue-map"> <div class="event-map-info"> <span class="event-map-title"><?php _e('Venue', 'vh'); ?> </span> <div class="clearfix"></div> <span class="event-map-address icon-location-1"><?php echo tribe_get_full_address(); ?> </span> <div class="clearfix"></div> <?php $gmap_link = tribe_get_map_link_html(); $gmap_link = apply_filters('tribe_event_meta_venue_address_gmap', $gmap_link); $gmap_link = str_replace("+ Google Map", __('Get directions', 'vh'), $gmap_link); $gmap_link = str_replace("class=\"tribe-events-gmap\"", "class=\"tribe-events-gmap wpb_button wpb_btn-transparent\"", $gmap_link); echo $gmap_link; ?> </div> <?php do_action('tribe_events_single_meta_map_section_start'); echo $map; do_action('tribe_events_single_meta_map_section_end'); ?> </div> <div class="clearfix"></div>