/** * Get the venue map * * @param int $meta_id * @return string */ public static function venue_map($meta_id) { global $_tribe_meta_factory; $post_id = get_the_ID(); $map = tribe_get_embedded_map($post_id); $venue_map = empty($map) ? '' : Tribe_Meta_Factory::template($_tribe_meta_factory->meta[$meta_id]['label'], $map, $meta_id); return apply_filters('tribe_event_meta_venue_map', $venue_map); }
?> " rel="bookmark"><?php printf(__('← Back to %s', 'tribe-events-calendar-pro'), tribe_get_event_label_plural()); ?> </a> </p> <div class="tribe-events-venue-meta vcard tribe-clearfix"> <?php if (tribe_embed_google_map() && tribe_address_exists()) { ?> <!-- Venue Map --> <div class="tribe-events-map-wrap"> <?php echo tribe_get_embedded_map($venue_id, '100%', '200px'); ?> </div><!-- .tribe-events-map-wrap --> <?php } ?> <!-- 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 /** * Single Event Meta (Map) Template * */ $map = apply_filters('tribe_event_meta_venue_map', tribe_get_embedded_map()); if (empty($map)) { return; } ?> <div class="grve-tribe-events-venue-map"> <?php do_action('tribe_events_single_meta_map_section_start'); echo $map; do_action('tribe_events_single_meta_map_section_end'); ?> </div>
/** * @deprecated */ function tribe_the_embedded_map($postId = null, $width = null, $height = null) { _deprecated_function(__FUNCTION__, '2.0.1', 'echo tribe_get_embedded_map()'); echo tribe_get_embedded_map($postId, $width, $height); }
<?php tribe_the_custom_fields(get_the_ID()); ?> <?php } ?> </div> <?php if (tribe_embed_google_map(get_the_ID())) { ?> <?php if (tribe_address_exists(get_the_ID())) { echo tribe_get_embedded_map(); } ?> <?php } ?> <div class="entry clear"> <?php the_content(); ?> <?php // if ( function_exists( 'tribe_get_ticket_form' ) && tribe_get_ticket_form() ) { tribe_get_ticket_form(); } ?>
<?php /** * Single Event Meta (Map) Template * * Override this template in your own theme by creating a file at: * [your-theme]/tribe-events/modules/meta/details.php * * @package TribeEventsCalendar */ $map = tribe_get_embedded_map(); if (empty($map)) { return; } ?> <div class="col-md-6 tribe-events-venue-map"> <?php // Display the map. do_action('tribe_events_single_meta_map_section_start'); echo $map; do_action('tribe_events_single_meta_map_section_end'); ?> </div>
_e('« Back to Events', 'tribe-events-calendar-pro'); ?> </a></span> <?php // Single venue meta ?> <div id="tribe-events-event-meta"> <?php // Map ?> <div style="margin: 0 0 10px 0; float: right;"> <?php echo tribe_get_embedded_map(get_the_ID(), '350px', '200px'); ?> </div> <?php // Location ?> <dl class="column location" itemscope itemtype="http://schema.org/Place"> <dt class="venue-label venue-label-name"><?php _e('Name:', 'tribe-events-calendar-pro'); ?> </dt> <dd itemprop="name" class="venue-meta venue-meta-name"><?php the_title(); ?>
public function add_google_map_preview($postId) { if (!$postId) { return; } if (tribe_get_option('embedGoogleMaps')) { $display = tribe_embed_google_map($postId) ? 'block' : 'none'; ?> <div style="float:right; display:<?php echo $display; ?> ;"> <?php echo tribe_get_embedded_map($postId, 200, 200, true); ?> </div> <?php } ?> <div style="clear:both"></div> <?php }