Skip to content

Instantly share code, notes, and snippets.

@geoffgraham
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geoffgraham/47a2110f77e2507ad9c6 to your computer and use it in GitHub Desktop.
Save geoffgraham/47a2110f77e2507ad9c6 to your computer and use it in GitHub Desktop.
Events Calendar 3.9 // Override month/tooltip.php to display Venue
<?php
/**
* Month Single Event
* This file contains one event in the month view
*
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/month/single-event.php
*
* @package TribeEventsCalendar
*
*/
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
} ?>
<?php
global $post;
$day = tribe_events_get_current_month_day();
$event_id = "{$post->ID}-{$day['daynum']}";
$start = tribe_get_start_date( $post, false, 'U' );
$end = tribe_get_end_date( $post, false, 'U' );
$venue = array();
$getvenue = tribe_get_venue();
$venue['venue'] = $getvenue;
?>
<div id="tribe-events-event-<?php echo $event_id ?>" class="<?php tribe_events_event_classes() ?>" data-tribejson='<?php echo tribe_events_template_data( $post, $venue ); ?>'>
<h3 class="tribe-events-month-event-title entry-title summary"><a href="<?php tribe_event_link( $post ); ?>" class="url"><?php the_title() ?></a></h3>
</div><!-- #tribe-events-event-# -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment