Home › Forums › Calendar Products › Events Calendar PRO › How to Show Map In Photo View(?)
- This topic has 1 reply, 2 voices, and was last updated 12 years, 3 months ago by
Kelly.
-
AuthorPosts
-
January 13, 2014 at 9:09 am #91252
Anonymous
InactiveHi, We decided to drop the map view as we felt it would could be better utilized within the ‘photo’ view since there is a list view already.
So my Q is how can I get the event pins to show with the maps container displayed in the ‘photo’ php/view?
I copied the ‘Google Map Container’ from the map.php to the photo.php as shown below:
<?php do_action( ‘tribe_events_before_template’ ); ?>
<!– Google Map Container –>
<?php tribe_get_template_part( ‘pro/map/gmap-container’ ) ?>
<!– Tribe Bar –>
<?php tribe_get_template_part( ‘modules/bar’ ); ?>
<!– Main Events Content –>
<?php tribe_get_template_part( ‘pro/photo/content’ ) ?>
<?php do_action( ‘tribe_events_after_template’ ) ?>Also within the photo.php, I did the following changes:
<?php if ( !defined(‘ABSPATH’) ) { die(‘-1’); } ?>
<?php
global $post;
$venue_details = array();
if ($venue_name = tribe_get_meta( ‘tribe_event_venue_name’ ) ) {
$venue_details[] = $venue_name;
}
if ($venue_address = tribe_get_meta( ‘tribe_event_venue_address’ ) ) {
$venue_details[] = $venue_address;
}
// Venue microformats
$has_venue = ( $venue_details ) ? ‘ vcard’: ”;
$has_venue_address = ( $venue_address ) ? ‘ location’: ”;
?>
<?php echo tribe_event_featured_image( null, ‘medium’ ); ?>
<div class=”tribe-events-event-details tribe-clearfix”>
<!– Event Title –>
<?php do_action( ‘tribe_events_before_the_event_title’ ); ?>
<!– Event Distance –>
<?php echo tribe_event_distance(); ?>
<h2 class=”tribe-events-list-event-title entry-title summary”>
” title=”<?php the_title() ?>” rel=”bookmark”>
<?php the_title(); ?>
</h2>
<?php do_action( ‘tribe_events_after_the_event_title’ ); ?>
<!– Event Meta –>
<?php do_action( ‘tribe_events_before_the_meta’ ); ?>
<div class=”tribe-events-event-meta <?php echo $has_venue . $has_venue_address; ?>”>
<!– Schedule & Recurrence Details –>
<div class=”updated published time-details”>
<?php if ( ! empty( $post->distance ) ) : ?>
[<?php echo tribe_get_distance_with_unit( $post->distance ); ?>]
<?php endif; ?>
<?php echo tribe_events_event_schedule_details(), tribe_events_event_recurring_info_tooltip(); ?>
</div>
</div><!– .tribe-events-event-meta –>
<?php do_action( ‘tribe_events_after_the_meta’ ); ?>
<!– Event Content –>
<?php do_action( ‘tribe_events_before_the_content’ ); ?>
<div class=”tribe-events-list-photo-description tribe-events-content entry-summary description”>
<?php echo tribe_events_get_the_excerpt() ?>
</div>
<?php do_action( ‘tribe_events_after_the_content’ ) ?>
</div><!– /.tribe-events-event-details –>The map displays in the ‘photo’ view as expected. The problem is that the event pins do not show on the ‘photo’ view [They still show in the map view]. I looked thru the ‘tribe-events-ajax-maps.js’ to see what I needed to do to “link” it up to the ‘photo’ view and I’m not seeing it.
I am amusing that there is a function (onLoad?) needing to be fired to get the map data [to display the pins] when the user clicks or enters the ‘photo’ view page…?
Any help here would be greatly appreciated. Thnx.
January 13, 2014 at 4:49 pm #91719Kelly
ParticipantHi, walkingfish! I see that we’ve already addressed this issue in another thread. I’ll be closing this one to prevent confusion. 🙂
Thanks!
-
AuthorPosts
- The topic ‘How to Show Map In Photo View(?)’ is closed to new replies.
