Esempio n. 1
0
<!-- Event Meta -->
<?php 
do_action('tribe_events_before_the_meta');
?>
<div class="tribe-events-event-meta <?php 
echo $has_venue . $has_venue_address;
?>
">

	<!-- Schedule & Recurrence Details -->
	<div class="updated published time-details">
		<?php 
echo tribe_events_event_schedule_details();
?>
		<?php 
echo tribe_events_event_recurring_info_tooltip();
?>
	</div>
	
	<?php 
if ($venue_details) {
    ?>
		<!-- Venue Display Info -->
		<div class="tribe-events-venue-details">
			<?php 
    echo implode(', ', $venue_details);
    ?>
		</div> <!-- .tribe-events-venue-details -->
	<?php 
}
?>
Esempio n. 2
0
 /**
  * Echos the single events page related events boxes.
  *
  * @param mixed $tag The specific tags you want it relating to.
  * @param mixed $category The specific categories you want it relating to.
  * @param int $count The number of related events to find.
  * @param mixed $blog What blog/site should they come from?
  * @param bool $only_display_related Should we show only related events if we don't find $count number of related ones?
  * @param string $post_type What post type are we finding related things in?
  * @return void.
  */
 function tribe_single_related_events($tag = false, $category = false, $count = 3, $blog = false, $only_display_related = true, $post_type = TribeEvents::POSTTYPE)
 {
     $posts = tribe_get_related_posts($tag, $category, $count, $blog, $only_display_related, $post_type);
     if (is_array($posts) && !empty($posts)) {
         echo '<h3 class="tribe-events-related-events-title">' . __('Related Events', 'tribe-events-calendar-pro') . '</h3>';
         echo '<ul class="tribe-related-events tribe-clearfix hfeed vcalendar">';
         foreach ($posts as $post) {
             echo '<li>';
             $thumb = has_post_thumbnail($post->ID) ? get_the_post_thumbnail($post->ID, 'large') : '<img src="' . trailingslashit(TribeEventsPro::instance()->pluginUrl) . 'resources/images/tribe-related-events-placeholder.png" alt="' . get_the_title($post->ID) . '" />';
             echo '<div class="tribe-related-events-thumbnail">';
             echo '<a href="' . get_permalink($post->ID) . '" class="url" rel="bookmark">' . $thumb . '</a>';
             echo '</div>';
             echo '<div class="tribe-related-event-info">';
             echo '<h3 class="tribe-related-events-title summary"><a href="' . get_permalink($post->ID) . '" class="url" rel="bookmark">' . get_the_title($post->ID) . '</a></h3>';
             if (class_exists('TribeEvents') && $post->post_type == TribeEvents::POSTTYPE && function_exists('tribe_events_event_schedule_details')) {
                 echo tribe_events_event_schedule_details($post);
             }
             if (class_exists('TribeEvents') && $post->post_type == TribeEvents::POSTTYPE && function_exists('tribe_events_event_recurring_info_tooltip')) {
                 echo tribe_events_event_recurring_info_tooltip($post->ID);
             }
             echo '</div>';
             echo '</li>';
         }
         echo '</ul>';
     }
 }
do_action('tribe_events_before_the_meta');
?>
		<div class="tribe-events-event-meta">
			<div class="updated published time-details">
				<?php 
if (!empty($post->distance)) {
    ?>
				<strong>[<?php 
    echo tribe_get_distance_with_unit($post->distance);
    ?>
]</strong>
				<?php 
}
?>
				<?php 
echo tribe_events_event_schedule_details(), tribe_events_event_recurring_info_tooltip();
?>
			</div>
		</div><!-- .tribe-events-event-meta -->
	<?php 
do_action('tribe_events_after_the_meta');
?>

	<!-- Event Content -->
	<?php 
do_action('tribe_events_before_the_content');
?>
	<div class="tribe-events-list-photo-description tribe-events-content entry-summary description">
		<?php 
echo tribe_events_get_the_excerpt();
?>