die('-1');
}
?>

<?php 
$event = tribe_events_week_get_event();
?>
<div id="tribe-events-event-<?php 
echo $event->ID;
?>
" <?php 
tribe_events_the_header_attributes('week-hourly');
?>
 class="<?php 
tribe_events_event_classes();
?>
">
	<div class="hentry vevent">
		<h3 class="entry-title summary"><a href="<?php 
tribe_event_link($event);
?>
" class="url" rel="bookmark"><?php 
echo $event->post_title;
?>
</a></h3>
	</div>
	<?php 
tribe_get_template_part('pro/week/single-event', 'tooltip');
?>
</div>
function display_day($day, $monthView)
{
    global $post;
    $output = '';
    $posts_per_page = tribe_get_option('postsPerPage', 10);
    for ($i = 0; $i < count($monthView[$day]); $i++) {
        $post = $monthView[$day][$i];
        setup_postdata($post);
        $eventId = $post->ID . '-' . $day;
        $start = tribe_get_start_date($post->ID, false, 'U');
        $end = tribe_get_end_date($post->ID, false, 'U');
        $cost = tribe_get_cost($post->ID);
        ?>
		<div id='event_<?php 
        echo $eventId;
        ?>
' <?php 
        post_class('tribe-events-event tribe-events-real-event');
        ?>
>
			<a href="<?php 
        tribe_event_link();
        ?>
"><?php 
        the_title();
        ?>
</a>
			<div id='tooltip_<?php 
        echo $eventId;
        ?>
' class="tribe-events-tooltip" style="display:none;">
				<h5 class="tribe-events-event-title"><?php 
        the_title();
        ?>
</h5>
				<div class="tribe-events-event-body">
					<div class="tribe-events-event-date">
						<?php 
        if (!empty($start)) {
            echo date_i18n(get_option('date_format', 'F j, Y'), $start);
        }
        if (!tribe_get_event_meta($post->ID, '_EventAllDay', true)) {
            echo ' ' . date_i18n(get_option('time_format', 'g:i a'), $start);
        }
        ?>
						<?php 
        if (!empty($end) && $start !== $end) {
            if (date_i18n('Y-m-d', $start) == date_i18n('Y-m-d', $end)) {
                $time_format = get_option('time_format', 'g:i a');
                if (!tribe_get_event_meta($post->ID, '_EventAllDay', true)) {
                    echo " – " . date_i18n($time_format, $end);
                }
            } else {
                echo " – " . date_i18n(get_option('date_format', 'F j, Y'), $end);
                if (!tribe_get_event_meta($post->ID, '_EventAllDay', true)) {
                    echo ' ' . date_i18n(get_option('time_format', 'g:i a'), $end) . '<br />';
                }
            }
        }
        ?>
					</div>
					<?php 
        if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {
            ?>
						<div class="tribe-events-event-thumb"><?php 
            the_post_thumbnail(array(75, 75));
            ?>
</div>
					<?php 
        }
        ?>
					<?php 
        echo has_excerpt() ? TribeEvents::truncate($post->post_excerpt) : TribeEvents::truncate(get_the_content(), 30);
        ?>

				</div>
				<span class="tribe-events-arrow"></span>
			</div>
		</div>
		<?php 
        if ($i < count($monthView[$day]) - 1) {
            echo "<hr />";
        }
    }
}
Example #3
0
?>
'>
	<?php 
if (has_post_thumbnail()) {
    ?>
      <div class="thumbnail">
         <?php 
    the_post_thumbnail('thumbnail');
    ?>
      </div>   
   <?php 
}
?>
   <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 class="date">
      <i class="fa fa-clock-o"></i><?php 
echo tribe_get_start_date(get_the_id(), false, 'H:i m/d/Y');
?>
      <span> - </span> 
      <?php 
echo tribe_get_end_date(get_the_id(), false, 'H:i m/d/Y');
?>
    ?>
</div>
					<?php 
}
?>
					<div>@ <?php 
if (class_exists('Tribe__Events__Pro__Templates__Single_Venue')) {
    tribe_get_venue_link($post->ID, true);
} else {
    echo tribe_get_venue($post->ID);
}
?>
</div>
				</div>
				<a href="<?php 
tribe_event_link();
?>
" title="<?php 
esc_attr_e('Read More');
?>
" class="button button-border accent1 hover-accent1"><span class="btext"><?php 
wpvge('tribe-events-join-text');
?>
</span></a>
			</div><!-- .tribe-events-event-meta -->
		<?php 
do_action('tribe_events_after_the_meta');
?>
	</div>
	<?php 
echo $featured_image;