|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* Day View Single Featured Event |
|
4
|
|
|
* This file contains one featured 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-featured.php |
|
7
|
|
|
* |
|
8
|
|
|
* @version 4.5.6 |
|
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
|
|
|
// Event Image. |
|
23
|
|
|
echo wp_kses_post( tribe_event_featured_image( null, 'large' ) ); |
|
|
|
|
|
|
24
|
|
|
?> |
|
25
|
|
|
|
|
26
|
|
|
<div class="tribe-events-event-content"> |
|
27
|
|
|
<!-- Event Title --> |
|
28
|
|
|
<?php do_action( 'tribe_events_before_the_event_title' ); ?> |
|
29
|
|
|
<h2 class="tribe-events-list-event-title summary"> |
|
30
|
|
|
<a class="url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"> |
|
|
|
|
|
|
31
|
|
|
<?php the_title(); ?> |
|
32
|
|
|
</a> |
|
33
|
|
|
</h2> |
|
34
|
|
|
<?php do_action( 'tribe_events_after_the_event_title' ); ?> |
|
35
|
|
|
|
|
36
|
|
|
<!-- Event Meta --> |
|
37
|
|
|
<?php do_action( 'tribe_events_before_the_meta' ); ?> |
|
38
|
|
|
<div class="tribe-events-event-meta <?php echo esc_attr( $has_venue . $has_venue_address ); ?>"> |
|
39
|
|
|
|
|
40
|
|
|
<!-- Schedule & Recurrence Details --> |
|
41
|
|
|
<div class="tribe-updated published time-details"> |
|
42
|
|
|
<?php echo wp_kses_post( tribe_events_event_schedule_details() ); ?> |
|
|
|
|
|
|
43
|
|
|
</div> |
|
44
|
|
|
|
|
45
|
|
|
<?php if ( $venue_details ) : ?> |
|
46
|
|
|
<!-- Venue Display Info --> |
|
47
|
|
|
<div class="tribe-events-venue-details"> |
|
48
|
|
|
<?php echo implode( ', ', $venue_details ); ?> |
|
|
|
|
|
|
49
|
|
|
</div> <!-- .tribe-events-venue-details --> |
|
50
|
|
|
<?php endif; ?> |
|
51
|
|
|
|
|
52
|
|
|
</div><!-- .tribe-events-event-meta --> |
|
53
|
|
|
<?php do_action( 'tribe_events_after_the_meta' ); ?> |
|
54
|
|
|
|
|
55
|
|
|
<?php if ( tribe_get_cost() ) : ?> |
|
|
|
|
|
|
56
|
|
|
<div class="tribe-events-event-cost"> |
|
57
|
|
|
<?php esc_html_e( 'Price:', 'lsx' ); ?> |
|
58
|
|
|
<span class="ticket-cost"><?php echo tribe_get_cost( null, true ); ?></span> |
|
|
|
|
|
|
59
|
|
|
<?php |
|
60
|
|
|
/** This action is documented in the-events-calendar/src/views/list/single-event.php */ |
|
61
|
|
|
do_action( 'tribe_events_inside_cost' ) |
|
62
|
|
|
?> |
|
63
|
|
|
</div> |
|
64
|
|
|
<?php endif; ?> |
|
65
|
|
|
|
|
66
|
|
|
<!-- Event Content --> |
|
67
|
|
|
<?php do_action( 'tribe_events_before_the_content' ); ?> |
|
68
|
|
|
<div class="tribe-events-list-event-description tribe-events-content description entry-summary"> |
|
69
|
|
|
<?php echo wp_kses_post( tribe_events_get_the_excerpt() ); ?> |
|
|
|
|
|
|
70
|
|
|
<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> |
|
71
|
|
|
</div><!-- .tribe-events-list-event-description --> |
|
72
|
|
|
|
|
73
|
|
|
<?php do_action( 'tribe_events_after_the_content' ); ?> |
|
74
|
|
|
</div> |
|
75
|
|
|
|