Advertisement
BakerMan

Alt single venue (meta below events)

Oct 10th, 2013
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.31 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Quick and dirty variant of pro/single-venue.php - places the venue description, meta
  4.  * etc below the upcoming events.
  5.  */
  6. if ( !defined('ABSPATH') ) { die('-1'); }
  7.  
  8. $venue_id = get_the_ID();
  9. ?>
  10.  
  11. <div class="tribe-events-venue">
  12.  
  13.     <p class="tribe-events-back"><a href="<?php echo tribe_get_events_link() ?>" rel="bookmark"><?php _e( '&larr; Back to Events', 'tribe-events-calendar-pro' ) ?></a></p>
  14.  
  15.     <?php ob_start() ?>
  16.         <div class="tribe-events-venue-meta vcard tribe-clearfix">
  17.  
  18.             <?php if ( tribe_embed_google_map() ) : ?>
  19.                 <!-- Venue Map -->
  20.                 <div class="tribe-events-map-wrap">
  21.                     <?php echo tribe_get_embedded_map( $venue_id, '350px', '200px' ); ?>
  22.                 </div><!-- .tribe-events-map-wrap -->
  23.             <?php endif; ?>
  24.  
  25.             <!-- Venue Title -->
  26.             <?php do_action('tribe_events_single_venue_before_title') ?>
  27.             <?php the_title('<h2 class="entry-title author fn org">','</h2>'); ?>
  28.             <?php do_action('tribe_events_single_venue_after_title') ?>
  29.  
  30.             <?php if ( tribe_show_google_map_link() ) : ?>
  31.                 <!-- Google Map Link -->
  32.                 <?php echo tribe_get_meta('tribe_event_venue_gmap_link'); ?>
  33.             <?php endif; ?>
  34.  
  35.             <!-- Venue Meta -->
  36.             <?php do_action('tribe_events_single_venue_before_the_meta') ?>
  37.             <?php echo tribe_get_meta_group( 'tribe_event_venue' ) ?>
  38.             <?php do_action('tribe_events_single_venue_after_the_meta') ?>
  39.  
  40.             <!-- Venue Description -->
  41.             <?php if( get_the_content() ) { ?>
  42.             <div class="tribe-venue-description tribe-events-content entry-content">
  43.                 <?php the_content(); ?>
  44.             </div>
  45.             <?php } ?>
  46.  
  47.             <!-- Venue Featured Image -->
  48.             <?php echo tribe_event_featured_image(null, 'full') ?>
  49.  
  50.         </div><!-- .tribe-events-event-meta -->
  51.     <?php $venue_meta = ob_get_clean() ?>
  52.  
  53.     <!-- Upcoming event list -->
  54.     <?php do_action('tribe_events_single_venue_before_upcoming_events') ?>
  55.     <?php // Use the 'tribe_events_single_venue_posts_per_page' to filter the
  56.           // number of events to display beneath the venue info on the venue page.
  57.     ?>
  58.     <?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 ) ) )?>
  59.     <?php do_action('tribe_events_single_venue_after_upcoming_events') ?>
  60.  
  61.     <?php echo $venue_meta ?>
  62.  
  63. </div><!-- .tribe-events-venue -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement