1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Day View Single Event |
4
|
|
|
* This file contains one event in the day view |
5
|
|
|
* |
6
|
|
|
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/day/single-event.php |
7
|
|
|
* |
8
|
|
|
* @version 4.5.11 |
9
|
|
|
* @package TribeEventsCalendarPro |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
if ( ! defined( 'ABSPATH' ) ) { |
13
|
|
|
die( '-1' ); |
14
|
|
|
} |
15
|
|
|
|
16
|
|
|
$venue_details = tribe_get_venue_details(); |
|
|
|
|
17
|
|
|
|
18
|
|
|
// Venue microformats. |
19
|
|
|
$has_venue = ( $venue_details ) ? ' vcard' : ''; |
20
|
|
|
$has_venue_address = ( ! empty( $venue_details['address'] ) ) ? ' location' : ''; |
21
|
|
|
|
22
|
|
|
// The address string via tribe_get_venue_details will often be populated even when there's |
23
|
|
|
// no address, so let's get the address string on its own for a couple of checks below. |
24
|
|
|
$venue_address = tribe_get_address(); |
|
|
|
|
25
|
|
|
|
26
|
|
|
// Event Image. |
27
|
|
|
echo wp_kses_post( tribe_event_featured_image( null, 'medium' ) ); |
|
|
|
|
28
|
|
|
?> |
29
|
|
|
|
30
|
|
|
<div class="tribe-events-event-content"> |
31
|
|
|
<!-- Event Title --> |
32
|
|
|
<?php do_action( 'tribe_events_before_the_event_title' ); ?> |
33
|
|
|
<h2 class="tribe-events-list-event-title summary"> |
34
|
|
|
<a class="url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"> |
|
|
|
|
35
|
|
|
<?php the_title(); ?> |
36
|
|
|
</a> |
37
|
|
|
</h2> |
38
|
|
|
<?php do_action( 'tribe_events_after_the_event_title' ); ?> |
39
|
|
|
|
40
|
|
|
<!-- Event Meta --> |
41
|
|
|
<?php do_action( 'tribe_events_before_the_meta' ); ?> |
42
|
|
|
<div class="tribe-events-event-meta <?php echo esc_attr( $has_venue . $has_venue_address ); ?>"> |
43
|
|
|
|
44
|
|
|
<!-- Schedule & Recurrence Details --> |
45
|
|
|
<div class="tribe-updated published time-details"> |
46
|
|
|
<?php echo wp_kses_post( tribe_events_event_schedule_details() ); ?> |
|
|
|
|
47
|
|
|
</div> |
48
|
|
|
|
49
|
|
|
<?php if ( $venue_details ) : ?> |
50
|
|
|
<!-- Venue Display Info --> |
51
|
|
|
<div class="tribe-events-venue-details"> |
52
|
|
|
<?php |
53
|
|
|
$address_delimiter = empty( $venue_address ) ? ' ' : ', '; |
54
|
|
|
|
55
|
|
|
// These details are already escaped in various ways earlier in the code. |
56
|
|
|
echo implode( $address_delimiter, $venue_details ); |
|
|
|
|
57
|
|
|
?> |
58
|
|
|
</div> <!-- .tribe-events-venue-details --> |
59
|
|
|
<?php endif; ?> |
60
|
|
|
|
61
|
|
|
</div><!-- .tribe-events-event-meta --> |
62
|
|
|
|
63
|
|
|
<?php if ( tribe_get_cost() ) : ?> |
|
|
|
|
64
|
|
|
<div class="tribe-events-event-cost"> |
65
|
|
|
<?php esc_html_e( 'Price:', 'lsx' ); ?> |
66
|
|
|
<span class="ticket-cost"><?php echo tribe_get_cost( null, true ); ?></span> |
|
|
|
|
67
|
|
|
<?php |
68
|
|
|
/** This action is documented in the-events-calendar/src/views/list/single-event.php */ |
69
|
|
|
do_action( 'tribe_events_inside_cost' ) |
70
|
|
|
?> |
71
|
|
|
</div> |
72
|
|
|
<?php endif; ?> |
73
|
|
|
|
74
|
|
|
<?php do_action( 'tribe_events_after_the_meta' ); ?> |
75
|
|
|
|
76
|
|
|
<!-- Event Content --> |
77
|
|
|
<?php do_action( 'tribe_events_before_the_content' ); ?> |
78
|
|
|
<div class="tribe-events-list-event-description tribe-events-content description entry-summary"> |
79
|
|
|
<?php echo wp_kses_post( tribe_events_get_the_excerpt() ); ?> |
|
|
|
|
80
|
|
|
<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e( 'Find out more', 'lsx' ); ?></a> |
81
|
|
|
</div><!-- .tribe-events-list-event-description --> |
82
|
|
|
|
83
|
|
|
<?php do_action( 'tribe_events_after_the_content' ); ?> |
84
|
|
|
</div> |
85
|
|
|
|