Created
September 29, 2016 09:27
-
-
Save andrasguseo/2d85f4ae41ccf40ecd74e8906caf3a0e to your computer and use it in GitHub Desktop.
Single event view, event venue meta for Manuela
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Single Event Meta (Venue) Template | |
* | |
* Override this template in your own theme by creating a file at: | |
* [your-theme]/tribe-events/modules/meta/venue.php | |
* | |
* @package TribeEventsCalendar | |
*/ | |
if ( ! tribe_get_venue_id() ) { | |
return; | |
} | |
$phone = tribe_get_phone(); | |
$website = tribe_get_venue_website_link(); | |
$venue_address = tribe_get_address(); | |
$venue_state = tribe_get_state(); | |
$venue_city = tribe_get_city(); | |
$venue_zip = tribe_get_zip(); | |
$venue_country = tribe_get_country(); | |
$venue_map = tribe_get_map_link_html(); | |
?> | |
<div class="tribe-events-meta-group tribe-events-meta-group-venue"> | |
<h3 class="tribe-events-single-section-title"> <?php esc_html_e( tribe_get_venue_label_singular(), 'the-events-calendar' ) ?> </h3> | |
<dl> | |
<?php do_action( 'tribe_events_single_meta_venue_section_start' ) ?> | |
<dd class="tribe-venue"> <?php echo tribe_get_venue() ?> </dd> | |
<?php if ( tribe_address_exists() ) : ?> | |
<dd class="tribe-venue-location"> | |
<address class="tribe-events-address"> | |
<?php echo $venue_address . '<br/>' . $venue_city . ', ' . $venue_zip . ' ' . $venue_country . ' ' . $venue_map; ?> | |
<?php //echo 'tribe_get_full_address(); ?> | |
<?php if ( tribe_show_google_map_link() ) : ?> | |
<?php echo tribe_get_map_link_html(); ?> | |
<?php endif; ?> | |
</address> | |
</dd> | |
<?php endif; ?> | |
<?php if ( ! empty( $phone ) ): ?> | |
<dt> <?php esc_html_e( 'Phone:', 'the-events-calendar' ) ?> </dt> | |
<dd class="tribe-venue-tel"> <?php echo $phone ?> </dd> | |
<?php endif ?> | |
<?php if ( ! empty( $website ) ): ?> | |
<dt> <?php esc_html_e( 'Website:', 'the-events-calendar' ) ?> </dt> | |
<dd class="url"> <?php echo $website ?> </dd> | |
<?php endif ?> | |
<?php do_action( 'tribe_events_single_meta_venue_section_end' ) ?> | |
</dl> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment