-
-
Save roblagatta/9de92d07773a761d4fd8 to your computer and use it in GitHub Desktop.
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 | |
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' ); | |
// Maintain custom crafted excerpts | |
$data = tribe_events_template_data( $post ); | |
$data = json_decode( $data ); | |
$data->excerpt = $post->post_excerpt; | |
$data = json_encode( $data ); | |
?> | |
<div id="tribe-events-event-<?php echo $event_id ?>" class="<?php tribe_events_event_classes() ?>" data-tribejson='<?php echo $data ?>'> | |
<h3 class="tribe-events-month-event-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