Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Quick and dirty variant of pro/single-venue.php - places the venue description, meta
- * etc below the upcoming events.
- */
- if ( !defined('ABSPATH') ) { die('-1'); }
- $venue_id = get_the_ID();
- ?>
- <div class="tribe-events-venue">
- <p class="tribe-events-back"><a href="<?php echo tribe_get_events_link() ?>" rel="bookmark"><?php _e( '← Back to Events', 'tribe-events-calendar-pro' ) ?></a></p>
- <?php ob_start() ?>
- <div class="tribe-events-venue-meta vcard tribe-clearfix">
- <?php if ( tribe_embed_google_map() ) : ?>
- <!-- Venue Map -->
- <div class="tribe-events-map-wrap">
- <?php echo tribe_get_embedded_map( $venue_id, '350px', '200px' ); ?>
- </div><!-- .tribe-events-map-wrap -->
- <?php endif; ?>
- <!-- 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 endif; ?>
- <!-- Venue Meta -->
- <?php do_action('tribe_events_single_venue_before_the_meta') ?>
- <?php echo tribe_get_meta_group( 'tribe_event_venue' ) ?>
- <?php do_action('tribe_events_single_venue_after_the_meta') ?>
- <!-- Venue Description -->
- <?php if( get_the_content() ) { ?>
- <div class="tribe-venue-description tribe-events-content entry-content">
- <?php the_content(); ?>
- </div>
- <?php } ?>
- <!-- Venue Featured Image -->
- <?php echo tribe_event_featured_image(null, 'full') ?>
- </div><!-- .tribe-events-event-meta -->
- <?php $venue_meta = ob_get_clean() ?>
- <!-- Upcoming event list -->
- <?php do_action('tribe_events_single_venue_before_upcoming_events') ?>
- <?php // Use the 'tribe_events_single_venue_posts_per_page' to filter the
- // number of events to display beneath the venue info on the venue page.
- ?>
- <?php echo tribe_include_view_list( array('venue' => $venue_id, 'eventDisplay' => 'upcoming', 'posts_per_page' => apply_filters( 'tribe_events_single_venue_posts_per_page', 100 ) ) )?>
- <?php do_action('tribe_events_single_venue_after_upcoming_events') ?>
- <?php echo $venue_meta ?>
- </div><!-- .tribe-events-venue -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement