?
| Current Path : /home/w/e/b/webyoo/www/zohar/site/wp-content/themes/accu/tribe-events/pro/ |
| Current File : /home/w/e/b/webyoo/www/zohar/site/wp-content/themes/accu/tribe-events/pro/single-venue.php |
<?php
/**
* Single Venue Template
* The template for a venue. By default it displays venue information and lists
* events that occur at the specified venue.
*
* This view contains the filters required to create an effective single venue view.
*
* You can recreate an ENTIRELY new single venue view by doing a template override, and placing
* a single-venue.php file in a tribe-events/pro/ directory within your theme directory, which
* will override the /views/single-venue.php.
*
* You can use any or all filters included in this file or create your own filters in
* your functions.php. In order to modify or extend a single filter, please see our
* readme on templates hooks and filters (TO-DO)
*
* @package TribeEventsCalendarPro
*
*/
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
$venue_id = get_the_ID();
?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="tribe-events-venue">
<p class="tribe-events-back">
<a href="<?php echo esc_url( tribe_get_events_link() ); ?>" rel="bookmark"><?php printf( esc_html__( '%s Back to %s', 'accu' ), '←', tribe_get_event_label_plural() ); ?></a>
</p>
<div class="dt-sc-clear"></div>
<div class="dt-sc-hr-invisible-xsmall"></div>
<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 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'); ?>
<div class="tribe-events-event-meta">
<?php if ( tribe_show_google_map_link() && tribe_address_exists() ) : ?>
<!-- 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'); ?>
</div><!-- .tribe-events-event-meta -->
<!-- Venue Description -->
<?php if( get_the_content() ) : ?>
<div class="tribe-venue-description tribe-events-content entry-content">
<?php the_content(); ?>
</div>
<?php endif; ?>
<!-- Venue Featured Image -->
<?php echo tribe_event_featured_image(null, 'full'); ?>
</div><!-- .tribe-events-event-meta -->
<!-- Upcoming event list -->
<?php do_action( 'tribe_events_single_venue_before_upcoming_events' ); ?>
<?php
// Use the tribe_events_single_venuer_posts_per_page to filter the number of events to get here.
echo tribe_venue_upcoming_events( $venue_id ); ?>
<?php do_action( 'tribe_events_single_venue_after_upcoming_events' ); ?>
</div><!-- .tribe-events-venue -->
<?php endwhile; ?>